*{box-sizing:border-box}body{margin:0;background:#f2eee4;color:#283c32;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif}header,footer{max-width:1060px;margin:auto;display:flex;justify-content:space-between;gap:16px;padding:22px 20px;font-size:13px}a{color:#285444;text-decoration:none}main{max-width:1000px;padding:8px 20px 24px;margin:auto}.heading{text-align:center;margin:9px 0 23px}.heading small,.overlay-body small{font-size:10px;letter-spacing:.22em;color:#997241}.heading h1{font-family:serif;font-size:32px;letter-spacing:.12em;margin:8px 0}.heading p{font-size:13px;margin:0;color:#6b7164}#game{position:relative;background:#163d32;border:1px solid #b79254;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px #192f2922;outline-offset:4px}.hud{display:flex;justify-content:space-between;padding:17px 22px;color:#fff2d6;gap:12px;font-size:14px}.progress{height:3px;background:#fff2}.progress i{height:100%;display:block;background:#e0b65e;transition:width .3s}.scene{padding:24px 20px 18px;background:linear-gradient(180deg,#20372a10,#16332670),url('/assets/covers/acorn-sort.jpg') center 48%/cover;min-height:390px}.scene-copy{color:#fff3d6;text-shadow:0 2px 5px #16291b;font-size:10px;letter-spacing:.18em;margin-bottom:40px}.scene-copy span{display:block;font-family:serif;font-size:19px;letter-spacing:.08em;margin-top:8px}#board{display:grid;grid-template-columns:repeat(var(--baskets,6),minmax(0,1fr));gap:10px;padding:20px 14px 14px;background:linear-gradient(#694521aa,#382512d9);border:1px solid #d5b67c88;border-radius:14px;box-shadow:inset 0 2px 5px #fff4,0 8px 18px #172b2355}.basket{position:relative;padding:8px 5px 9px;border:2px solid #dab97880;border-radius:12px;background:linear-gradient(#f4e3bded,#d9b97eea);color:#3a2a1a;cursor:pointer;min-width:0;box-shadow:0 5px 0 #4c321b,0 8px 10px #0003}.basket.cursor{outline:3px solid #fff5d5;outline-offset:3px}.basket.selected{background:#fff1bf;border-color:#a96316;transform:translateY(-5px)}.basket.target{box-shadow:0 0 0 3px #99d29f,0 5px 0 #4c321b}.basket.hinted{border-color:#9bc7fa}.basket.complete{background:linear-gradient(#e1edc7,#b9cc9a)}.basket-label{display:flex;justify-content:space-between;gap:2px;font-size:12px;font-weight:800}.basket-label small{font-size:9px;align-self:center}.stack{display:flex;flex-direction:column;margin:9px 0 0;position:relative;z-index:1}.slot{height:46px;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #815f2422}.nut-name{position:absolute;bottom:0;background:#fff9dbed;border-radius:3px;padding:0 3px;font-size:8px;color:#402d19;font-weight:700}.empty-slot{color:#94764e;font-size:24px}.nut{display:block;position:relative;width:28px;height:32px;filter:drop-shadow(2px 3px 2px #33200955)}.nut-0{border-radius:40% 40% 55% 55%;background:linear-gradient(100deg,#cd9c53,#895422 60%,#5f361c);border:1px solid #74451b}.nut-0:before{content:'';position:absolute;top:-2px;left:-3px;right:-3px;height:13px;border-radius:50% 50% 20% 20%;background:repeating-linear-gradient(35deg,#5a4029 0 2px,#896338 3px 5px);border:1px solid #482d16}.nut-0:after{content:'';position:absolute;top:-7px;left:12px;width:4px;height:7px;background:#533b20;transform:rotate(20deg)}.nut-1{width:33px;height:30px;border-radius:70% 65% 45% 45%;background:radial-gradient(ellipse at 30% 25%,#c16d37,#682c14 55%,#3d190c);border-bottom:8px solid #c4a16b;border-top:1px solid #ad6d38;transform:rotate(-6deg)}.nut-2{width:31px;height:31px;border-radius:45%;background:repeating-linear-gradient(85deg,transparent 0 5px,#785529 6px 7px,transparent 8px),radial-gradient(ellipse at 30% 30%,#e6bd79,#a3793e);border:2px solid #93692e;transform:rotate(12deg)}.nut-2:after{content:'';position:absolute;inset:2px 12px;border-left:2px solid #6b4c28;transform:rotate(5deg)}.nut-3{height:35px;width:26px;border-radius:65% 65% 45% 45%;background:repeating-linear-gradient(30deg,#654428 0 4px,#b68c51 5px 8px,#49311e 9px 10px);border:1px solid #49311e;transform:rotate(-9deg)}.wicker{display:block;height:20px;border-radius:0 0 25% 25%;background:repeating-linear-gradient(0deg,#bd8b46 0 3px,#795224 4px 5px);border:2px solid #725021;box-shadow:inset 0 2px 2px #f6d998}.basket-foot{display:block;font-size:9px;min-height:22px;padding-top:7px;line-height:1.3}.play{padding:16px 22px;color:#fff0d5}.play p{font-size:13px;line-height:1.7;margin:0 0 9px}#status{background:#ffffff0b;padding:8px 10px;border-radius:6px;color:#ffe1a2;min-height:39px}.tools{display:flex;gap:8px;justify-content:center;margin:13px 0}button{font-family:inherit;touch-action:manipulation}.tools button,#action{border:1px solid #d1b274;border-radius:7px;background:#f6e5bc;color:#2f452f;padding:12px 16px;font-weight:700;cursor:pointer;min-height:44px}.tools button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:3px solid #fff;outline-offset:3px}.keys{font-size:11px;line-height:1.9;text-align:center;color:#ddd9c1}#overlay{position:absolute;inset:0;background:#173b31;z-index:4;overflow:auto}#overlay[hidden]{display:none}#overlay-art{display:block;width:100%;height:290px;object-fit:cover;object-position:center 47%}.overlay-body{text-align:center;color:#fff0d5;padding:23px 32px}.overlay-body h2{font-family:serif;letter-spacing:.06em;font-size:27px;margin:10px 0}.overlay-body p{max-width:550px;margin:12px auto;font-size:14px;line-height:1.8}.overlay-body small{color:#e0b674}.overlay-body .intro-keys{font-size:12px;color:#d7dfcb}#action{font-size:15px;min-width:230px;margin-top:10px;background:#e8c580}.note{font-size:11px;color:#777868;text-align:center;line-height:1.8}footer{justify-content:center;font-size:11px}#game:focus{outline:2px solid #b59049}@media(max-width:660px){main{padding:0 10px 16px}header{padding:15px 12px;font-size:11px}.heading{margin:8px 0 16px}.heading h1{font-size:25px}.heading small{font-size:8px}.hud{padding:13px 13px;font-size:12px}.scene{padding:17px 12px 15px;min-height:0}.scene-copy{margin-bottom:26px;font-size:8px}.scene-copy span{font-size:15px}#board{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;padding:14px 10px}.basket{padding:7px 4px}.slot{height:36px}.nut{transform:scale(.86)}.nut-name{font-size:7px}.basket-label{font-size:11px}.stack{margin-top:6px}.basket-foot{font-size:8px;min-height:21px}.play{padding:13px 12px}.play p{font-size:12px}.tools{gap:6px}.tools button{padding:10px 8px;font-size:11px;flex:1}.keys{font-size:10px}#overlay-art{height:230px}.overlay-body{padding:22px 17px}.overlay-body h2{font-size:24px}.overlay-body p{font-size:13px}.overlay-body .intro-keys{font-size:11px}#action{min-width:200px}.note{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
