@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--paper:#f5f5ef;--ink:#263e34;--muted:#798078;--green:#335c49;--mint:#e8eedf;--line:#e7e9df;--white:#fffefa;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,.upload-button:focus-within{outline:3px solid #aaad61;outline-offset:4px}button{border:0}button, .upload-button{transition:background .18s,transform .18s,box-shadow .18s}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.site-header{height:97px;max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;font-family:Manrope,sans-serif;font-size:22px;font-weight:800;letter-spacing:-1px;text-decoration:none;color:var(--ink)}.brand-mark{width:37px;height:37px;background:var(--green);border-radius:11px;display:grid;place-items:center;color:#e5edce;transform:rotate(-8deg)}.brand-mark svg{width:22px;height:22px;transform:rotate(8deg)}.brand-dot{color:#96a46e}.help-button{display:flex;gap:8px;align-items:center;background:none;font-size:12px;font-weight:500}.help-button svg{width:16px;height:16px}main{max-width:1280px;margin:auto;padding:0 48px}.intro{display:flex;align-items:center;justify-content:space-between;padding:40px 0 31px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;display:flex;align-items:center;gap:7px;color:#6e7b65}.eyebrow>span{width:5px;height:5px;background:#8b9c6e;border-radius:50%}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:43px;letter-spacing:-1.4px;line-height:1.15;margin:13px 0 10px}.intro p{margin:0;color:var(--muted);font-size:13px}.intro-note{display:flex;gap:13px;align-items:center;margin-right:16px;transform:rotate(-5deg);color:#89947d}.intro-note svg{width:32px;height:32px;stroke-width:1.1}.intro-note span{font-family:Georgia,serif;font-style:italic;font-size:15px;line-height:1.5}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.puzzle-card{padding:23px 24px 0;background:var(--white);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 30px #283e3404}.board-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.small-label{font-size:8px;letter-spacing:1.5px;font-weight:600;color:#899084}.board-heading h2{font-family:Manrope,sans-serif;font-size:16px;font-weight:700;letter-spacing:-.5px;margin:6px 0 0}.status{display:flex;align-items:center;gap:6px;background:#eff2e8;border-radius:30px;padding:7px 10px;font-size:9px;color:#6a7b5f;white-space:nowrap}.status>span{width:5px;height:5px;background:#8c9d77;border-radius:50%}.status.playing{background:#f7f0dc;color:#96824d}.status.playing>span{background:#bfa357}.status.won{background:#dfeeda;color:#3b6b40}.board-wrap{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#e6e7df;isolation:isolate}.board{display:grid;grid-template-columns:repeat(var(--size,3),1fr);grid-template-rows:repeat(var(--size,3),1fr);gap:3px;height:100%;padding:3px;position:absolute;inset:0;background:#e5e7df}.tile{background-repeat:no-repeat;background-size:calc(var(--size)*100%) calc(var(--size)*100%);border-radius:3px;position:relative;touch-action:none;user-select:none;cursor:grab;min-width:0;min-height:0;padding:0;box-shadow:inset 0 0 0 1px #ffffff15;transition:box-shadow .16s,filter .16s;overflow:hidden}.tile:hover{filter:brightness(1.06)}.tile.selected{box-shadow:inset 0 0 0 4px #e6fa96;z-index:1;filter:brightness(1.05)}.tile:focus-visible{outline:3px solid #e6fa96;outline-offset:-4px;z-index:2}.tile.drag-source{opacity:.35}.tile.drop-target{box-shadow:inset 0 0 0 4px #e6fa96}.tile-number{position:absolute;bottom:6px;right:6px;display:none;background:#193d37bd;color:#fff;font-size:12px;border-radius:4px;min-width:23px;padding:3px 5px;box-shadow:0 1px 4px #0001}.show-numbers .tile-number{display:block}.picture-layer{position:absolute;inset:0;z-index:2;pointer-events:none}.picture-layer img{width:100%;height:100%;object-fit:fill;display:block}.picture-caption{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);background:#fffffff0;box-shadow:0 2px 8px #0001;display:flex;gap:7px;align-items:center;padding:10px 14px;border-radius:6px;font-size:10px;white-space:nowrap;color:#4c5d4d}.picture-caption svg{width:15px;height:15px}.board-instruction{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0 18px;border-bottom:1px solid var(--line);font-size:10px;color:#848b7f}.piece-tag{font-size:9px;white-space:nowrap;background:#f4f4ef;padding:5px 8px;border-radius:4px;color:#8b9186}.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 23px}.stats{display:flex;gap:28px}.stat{display:flex;flex-direction:column;gap:6px}.stat strong{font-family:Manrope,sans-serif;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.stat-total{font-size:12px;font-weight:500;color:#9ba094;letter-spacing:0}.primary-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px;padding:0 19px;border-radius:7px;background:var(--green);color:#fcfff4;font-size:12px;font-weight:500}.primary-button:not(:disabled):hover{background:#234532;transform:translateY(-1px);box-shadow:0 4px 10px #244b3520}.primary-button svg{width:17px;height:17px}.primary-button .button-arrow{margin-left:14px;width:15px}.progress-track{height:3px;background:#eceee4;margin:0 -24px}.progress-track>div{height:100%;width:0;background:#9cb47c;transition:width .3s}.sidebar{display:flex;flex-direction:column;gap:17px}.settings-card,.tools-card{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:23px}.section-title h2{font-family:Manrope,sans-serif;font-size:13px;font-weight:700;letter-spacing:-.3px;margin:0}.section-title>span{font-size:7px;letter-spacing:1px;color:#a2a798;white-space:nowrap}.picture-choice{display:flex;align-items:center;gap:10px;margin-bottom:16px}.picture-choice img{width:49px;height:49px;object-fit:cover;border-radius:7px}.picture-choice>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.picture-choice strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picture-choice>div>span{font-size:8px;color:#979d91;line-height:1.6}.selected-check{width:16px;height:16px;background:#e8eddd;border-radius:50%;color:#748767;display:grid;place-items:center}.selected-check svg{width:10px;height:10px}.upload-button{display:flex;position:relative;align-items:center;justify-content:center;gap:8px;height:40px;border:1px dashed #ccd3c3;border-radius:6px;font-size:10px;cursor:pointer;background:#fdfdf8}.upload-button:hover{background:#edf0e4}.upload-button svg{width:14px;height:14px}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.upload-note{font-size:8px;color:#a1a596;text-align:center;margin:9px 0 0}.setting-divider{height:1px;background:var(--line);margin:22px 0}.field-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.field-heading h3{font-size:11px;font-weight:600;margin:0}.field-heading>span{font-size:8px;color:#959d8e}.difficulty{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.difficulty-button{display:flex;flex-direction:column;align-items:center;background:#fafbf6;border:1px solid #e7eadf;border-radius:7px;padding:12px 4px 9px;gap:6px}.difficulty-button.active{background:#eef2e4;border-color:#a2b48c;box-shadow:0 0 0 1px #a2b48c10}.difficulty-button:hover{background:#eef2e4}.difficulty-button strong{font-size:10px;font-weight:500}.difficulty-button>span:last-child{font-size:8px;color:#8e9785}.mini-grid{width:21px;height:21px;border:1px solid #9ca98c;background-image:linear-gradient(to right,transparent calc(100% - 1px),#9ca98c 0),linear-gradient(to bottom,transparent calc(100% - 1px),#9ca98c 0);margin-bottom:2px}.grid-3{background-size:33.333% 33.333%}.grid-4{background-size:25% 25%}.grid-5{background-size:20% 20%}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px;font-size:10px;cursor:pointer;position:relative}.toggle-row small{display:block;font-size:8px;color:#979d91;margin-top:5px}.toggle-row input{position:absolute;right:0;width:31px;height:19px;opacity:0}.toggle{width:29px;height:17px;border-radius:20px;background:#dfe3d8;flex-shrink:0;position:relative}.toggle:after{content:'';position:absolute;width:11px;height:11px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0001;transition:transform .2s}.toggle-row input:checked+.toggle{background:#6e8f5f}.toggle-row input:checked+.toggle:after{transform:translateX(12px)}.toggle-row input:focus-visible+.toggle{outline:3px solid #aaad61;outline-offset:3px}.tools-card .section-title{margin-bottom:17px}.tool-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tool-buttons button{border:1px solid #e4e8da;border-radius:7px;min-height:62px;background:#f9faf4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:9px}.tool-buttons svg{width:17px;height:17px;color:#8c9a7c}.tool-buttons button:not(:disabled):hover,.tool-buttons button[aria-pressed=true]{background:#e8eedc}.tools-card>p{text-align:center;color:#a2a798;font-size:8px;margin:13px 0 0}.howto-note{display:flex;align-items:flex-start;gap:10px;padding:4px 12px;color:#8b9581}.note-icon{font-size:21px;font-weight:300;line-height:1}.howto-note p{margin:0;font-size:10px;line-height:1.8}.howto-note strong{display:block;font-size:10px;font-weight:500;margin-bottom:2px;color:#717f68}footer{display:flex;align-items:center;justify-content:space-between;margin:29px 0 25px;font-size:9px;color:#a4a997}footer>span:last-child{display:flex;align-items:center;gap:7px}footer svg{width:12px;height:12px}.text-button{background:none;font-size:10px;color:#6a7d5b;text-decoration:underline;text-underline-offset:3px;padding:9px}.restore-photo{display:block;margin:5px auto -6px}.loading{position:absolute;inset:0;z-index:5;background:#e9ede1;display:grid;place-items:center;font-size:13px;color:#7b8d70}.win-panel{position:absolute;z-index:4;inset:0;background:#fafff0e8;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.win-check{display:grid;place-items:center;border:1px solid #bacba4;border-radius:50%;width:53px;height:53px;margin-bottom:22px;background:#e6efd9}.win-check svg{width:25px;height:25px}.win-panel h2{font-family:Georgia,serif;font-size:32px;font-weight:400;letter-spacing:-1px;margin:14px 0 6px}.win-panel p{font-size:12px;color:#7e8b73;margin:0 0 23px}.win-panel .text-button{margin-top:7px}.drag-ghost{position:fixed!important;z-index:1000!important;pointer-events:none!important;opacity:.92;box-shadow:0 10px 25px #0005;transform:scale(1.04);cursor:grabbing}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2000;max-width:min(90vw,500px);background:#294a3d;color:#fff;padding:13px 20px;font-size:12px;border-radius:10px;box-shadow:0 4px 20px #0002;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{width:min(470px,90vw);padding:38px;border:1px solid #e0e6d6;border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 20px 80px #1d382533}dialog::backdrop{background:#243d3260;backdrop-filter:blur(4px)}dialog h2{font-family:Georgia,serif;font-size:30px;font-weight:400;letter-spacing:-1px;line-height:1.2;margin:14px 0 27px}dialog ol{padding-left:22px;display:flex;flex-direction:column;gap:15px}dialog li{padding-left:7px;font-size:13px}dialog p{font-size:12px;line-height:1.7;color:#87907f;margin:5px 0}.dialog-tip{padding:15px;background:#f0f3e8;border-radius:8px;margin:20px 0}.close-button{position:absolute;right:15px;top:15px;background:transparent;display:grid;place-items:center;padding:5px}.close-button svg{width:17px;height:17px}[hidden]{display:none!important}
@media(min-width:1450px){.site-header,main{max-width:1380px}.game-layout{grid-template-columns:minmax(0,1fr) 330px;gap:30px}.intro{padding:45px 0 36px}.settings-card,.tools-card{padding:25px}.section-title h2{font-size:14px}.picture-choice strong{font-size:12px}.board-heading h2{font-size:18px}.board-instruction{font-size:11px}}
@media(max-width:1000px){main{padding:0 28px}.site-header{padding:0 28px}.game-layout{grid-template-columns:minmax(0,1fr) 275px;gap:17px}.puzzle-card{padding:20px 18px 0}.settings-card,.tools-card{padding:18px}.stats{gap:17px}.primary-button{padding:0 13px}.primary-button .button-arrow{display:none}.intro-note{margin:0}.board-instruction{font-size:9px}.picture-caption{font-size:9px}.stat strong{font-size:18px}.progress-track{margin:0 -18px}}
@media(max-width:780px){.site-header{height:77px}.intro{padding:30px 0 25px}.intro-note{display:none}h1{font-size:37px}.game-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.settings-card{grid-row:span 2}.howto-note{padding:0 12px}.tools-card{height:max-content}.board-heading{margin-bottom:17px}.puzzle-card{padding:22px 22px 0}.board-instruction{font-size:10px}.primary-button{padding:0 20px}.primary-button .button-arrow{display:block}.stats{gap:30px}.progress-track{margin:0 -22px}footer{margin-top:25px}}
@media(max-width:480px){main{padding:0 17px}.site-header{padding:0 20px;height:74px}.brand{font-size:20px}.brand-mark{width:32px;height:32px}.brand-mark svg{width:19px;height:19px}.help-button{font-size:10px;gap:5px}.help-button svg{width:14px;height:14px}h1{font-size:34px;letter-spacing:-1.4px}.eyebrow{font-size:8px;letter-spacing:1.3px}.intro p{font-size:11px}.intro{padding:28px 1px 24px}.puzzle-card{padding:17px 13px 0;border-radius:13px}.board-heading h2{font-size:14px}.small-label{font-size:7px;letter-spacing:1.2px}.status{font-size:8px;padding:6px 8px}.board-heading{margin-bottom:14px}.picture-caption{bottom:12px;padding:8px 10px;font-size:8px;gap:5px}.picture-caption svg{width:12px;height:12px}.board-instruction{font-size:9px;line-height:1.5;padding:12px 0}.piece-tag{font-size:8px;padding:4px 6px}.game-bottom{gap:10px;padding:16px 0 19px}.stats{gap:16px}.stat strong{font-size:18px}.stat-total{font-size:10px}.primary-button{min-height:41px;font-size:10px;padding:0 12px;gap:6px}.primary-button svg{width:14px;height:14px}.primary-button .button-arrow{display:none}.progress-track{margin:0 -13px}.sidebar{grid-template-columns:1fr;gap:14px}.settings-card{grid-row:auto;padding:21px}.section-title h2{font-size:13px}.section-title>span{font-size:8px}.picture-choice img{width:50px;height:50px}.picture-choice strong{font-size:12px}.picture-choice>div>span{font-size:10px}.upload-button{font-size:11px}.difficulty-button{padding:13px 4px 11px}.difficulty-button strong{font-size:11px}.difficulty-button>span:last-child{font-size:9px}.field-heading h3{font-size:12px}.toggle-row{font-size:11px}.toggle-row small{font-size:9px}.tools-card{padding:21px}.tool-buttons button{flex-direction:row;min-height:43px;font-size:10px}.tools-card>p{font-size:9px}.howto-note{padding:5px 12px}.win-panel h2{font-size:25px}.win-panel .small-label{font-size:7px}.win-check{width:39px;height:39px;margin-bottom:12px}.win-panel p{font-size:10px;margin-bottom:13px}.win-panel h2{margin-top:10px}.win-panel .text-button{font-size:9px;margin:0}footer{gap:15px;font-size:8px;line-height:1.6}.loading{font-size:11px}dialog{padding:28px}dialog h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
