@charset "UTF-8";
:root{--paper:#f6f3e9;--ink:#35483c;--muted:#829082;--green:#427158;--green-dark:#2c5941;--line:#dce2d4;--peach:#f3b493;--mint:#e4ecdd;--cream:#fffdf6;--shadow:0 12px 28px #414b3710;--rounded:"Hiragino Maru Gothic ProN","Yuanti SC","PingFang SC",sans-serif;--serif:"Iowan Old Style","Baskerville","Songti SC",serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--rounded);font-size:14px;-webkit-font-smoothing:antialiased}body::before{content:"";position:fixed;inset:0;opacity:.22;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23938667' opacity='.15' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ce834d;outline-offset:4px}button svg{pointer-events:none}a{color:inherit;text-decoration:none}svg{display:block}img{max-width:100%}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:96px;margin:0 auto;max-width:1432px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:relative}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:54px;height:54px;background:#dfe8d6;border:1px solid #d4deca;border-radius:17px;display:grid;place-items:center;transform:rotate(-5deg)}.brand-mark svg{width:47px;height:47px;transform:rotate(5deg)}.brand strong{font-size:19px;letter-spacing:2px;font-weight:800;display:block}.brand small{font-size:9px;letter-spacing:2.2px;display:block;margin-top:5px;color:#839181}.topbar-note{font-family:var(--serif);font-size:11px;letter-spacing:2px;color:#839080}.top-actions{display:flex;align-items:center;gap:16px}.quiet-button{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px}.tiny-count{display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:50%;background:#e0e8d7;font-size:11px}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fcfbf3;transition:background .2s}.icon-button:hover{background:#e3ebd9}.workspace{display:grid;grid-template-columns:minmax(225px,280px) minmax(0,510px) minmax(175px,230px);gap:40px;max-width:1220px;padding:39px 20px 20px;margin:auto;align-items:start}.left-panel{padding-top:21px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:2px;font-weight:700;color:#839080}.little-line{height:1px;width:24px;background:#789075}h1{font-size:35px;line-height:1.6;letter-spacing:1px;margin:23px 0 16px;font-weight:800}.intro>p{font-size:14px;line-height:2;color:#829080;margin:0}.handwritten{font-family:var(--serif);font-style:italic;font-size:17px;color:#ba8666;display:block;transform:rotate(-5deg);margin:24px 0 44px 5px}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:12px}.section-label>span:last-child{font-size:8px;letter-spacing:1.2px;color:#97a18d}.level-list{display:flex;flex-direction:column;gap:11px}.level-card{position:relative;display:flex;align-items:center;gap:12px;padding:13px 12px;text-align:left;border:1px solid #e1e3d5;border-radius:17px;background:#faf9f0;min-height:90px;transition:.2s}.level-card.active{border-color:#94a88a;background:#eef2e4;box-shadow:0 3px 0 #dae2cd}.level-card:not(:disabled):hover{transform:translateX(3px);background:#eaf0dd}.level-card:disabled{opacity:.54}.level-art{width:59px;height:59px;border-radius:14px;flex-shrink:0;display:grid;place-items:center;background:#f6e2d4}.level-art.yellow{background:#f1e8bc}.level-art.green{background:#dfead0}.level-art svg{width:53px;height:53px}.level-card-text{flex:1}.level-card-text small{display:block;font-size:9px;letter-spacing:1px;color:#94a083;margin-bottom:4px}.level-card-text strong{font-size:14px}.level-card-text p{font-size:10px;color:#8a9682;margin:5px 0 0}.level-state{width:18px}.level-state .icon{width:16px;height:16px}.gentle-note{display:flex;align-items:center;gap:12px;padding:22px 10px}.gentle-note .icon{color:#829979}.gentle-note p{color:#8f9a88;font-size:11px;line-height:1.9}.game-column{min-width:0}.mode-bar{height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.mode-label{font-size:11px;color:#7f8f7c;white-space:nowrap}.mode-tabs{display:flex;padding:4px;background:#eaeede;border-radius:13px;gap:2px}.mode-tab{min-height:44px;padding:0 11px;display:flex;align-items:center;gap:6px;white-space:nowrap;border-radius:9px;color:#87947e;font-size:12px}.mode-tab .icon{width:16px;height:16px}.mode-tab.active{background:#fffdf4;color:#3e674d;box-shadow:0 2px 4px #3d472013;font-weight:700}.game-frame{background:var(--cream);border:1px solid #d8ddcb;border-radius:25px;overflow:hidden;box-shadow:0 6px 0 #e6e8d8,0 20px 55px #4950320d;position:relative}.order-panel{height:126px;display:flex;align-items:center;gap:17px;padding:20px 24px;background:#fffdf4;position:relative;z-index:1}.order-art{width:72px;height:72px;flex-shrink:0;border-radius:18px;background:#f4efdb;display:grid;place-items:center;position:relative}.order-art>svg:not(.icon){width:64px;height:64px}.order-art .icon{width:33px;height:33px;color:var(--green)}.order-art.listening{background:#e5eddf}.order-art.listening.playing::after{content:"";position:absolute;inset:-4px;border:2px solid #88a781;border-radius:23px;animation:pulse 1s infinite}.order-copy{flex:1;min-width:0}.order-kicker{display:flex;gap:6px;align-items:center;font-size:10px;color:#8b927b;margin-bottom:5px;letter-spacing:.8px}.order-copy h2{margin:0;font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.1;color:#38523f}.order-copy h2.hidden-word{font-family:var(--rounded);font-size:19px;line-height:1.6;letter-spacing:.6px}.order-copy p{font-size:11px;color:#949681;margin:6px 0 0}.order-right{text-align:right;align-self:stretch;display:flex;flex-direction:column;align-items:end;justify-content:space-between}.order-progress{font-size:10px;color:#829079}.collection-dots{display:flex;gap:5px}.collection-dot{width:17px;height:17px;border:1.5px dashed #c3cbb8;border-radius:50%;background:#f9faed}.collection-dot.filled{border:1.5px solid #71936b;background:#71936b;box-shadow:inset 0 0 0 3px #f3f6e9}.order-hear{display:flex;align-items:center;gap:6px;min-height:44px;font-size:10px;color:#648360}.order-hear .icon{width:16px;height:16px}.scene{position:relative;aspect-ratio:720/780;isolation:isolate;overflow:hidden;background:#e6e8d3}.kitchen-background{width:100%;height:100%;object-fit:fill;position:absolute;inset:0;pointer-events:none;user-select:none}.scene-caption{position:absolute;inset:15px 15px auto 15px;display:flex;justify-content:space-between;align-items:center;z-index:3;pointer-events:none}.scene-pill{background:#fffbeaeb;border:1px solid #e2dec6;padding:8px 10px;border-radius:20px;display:flex;align-items:center;gap:6px;color:#7a8366;font-size:8px;letter-spacing:1.2px;box-shadow:0 2px 6px #73674609}.scene-pill span{width:5px;height:5px;background:#83a374;border-radius:50%}.scene-restart{pointer-events:auto;border:1px solid #d8d8bb;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fffceacc;color:#7e8a6d}.scene-restart .icon{width:17px;height:17px}.objects{position:absolute;inset:0}.game-object{position:absolute;width:13.8%;height:13%;min-width:44px;min-height:44px;padding:0;transform:translate(-50%,-50%) rotate(var(--rotation,0deg));transition:filter .15s,scale .15s,opacity .15s;filter:drop-shadow(1px 5px 2px #685d4424);z-index:2}.game-object svg{width:100%;height:100%;pointer-events:none;overflow:visible}.game-object::after{content:"";position:absolute;inset:7%;border:2px solid transparent;border-radius:50%;transition:.15s}.game-object:focus-visible{outline:0}.game-object:focus-visible::after{border-color:#496745;background:#ffffff30}.game-object:hover{filter:drop-shadow(1px 7px 2px #685d443b);scale:1.1;z-index:4}.game-object:active{scale:.88}.game-object.hinted{animation:hint-bounce .85s 3;filter:drop-shadow(0 0 6px #fffac0);z-index:4}.game-object.hinted::after{border:2px dashed #f5f0ba;background:#fff6ab25}.flying-object{position:fixed;width:70px;height:70px;pointer-events:none;z-index:20;transition:transform .43s cubic-bezier(.3,.6,.4,1),opacity .43s;filter:drop-shadow(0 4px 3px #5b55352b)}.flying-object svg{height:100%;width:100%}.tray-area{padding:12px 20px 17px;background:#fffdf4;border-top:1px solid #e6e4ce}.tray-label{display:flex;justify-content:space-between;margin-bottom:8px;color:#7b886d;font-size:10px}.tray-label span:last-child{font-size:9px;color:#a1a58f}.tray{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.tray-slot{aspect-ratio:1.12;min-height:44px;background:#f2f1e6;border:1px dashed #d8dac6;border-radius:10px;position:relative;padding:0;display:grid;place-items:center}.tray-slot.empty::after{content:"";width:5px;height:5px;background:#dddccb;border-radius:50%}.tray-slot:not(.empty){background:#f5e7d3;border:1px solid #e3ceb0;cursor:pointer}.tray-slot svg{width:92%;height:92%;position:absolute}.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:10px;color:#8f9983;min-height:44px}.help-button{min-height:44px;display:flex;align-items:center;gap:5px;color:#6f8262;font-size:11px;white-space:nowrap}.help-button .icon{width:16px;height:16px}.help-button.needed{animation:help-pulse 2s infinite}.start-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#f3eed029;backdrop-filter:blur(1.5px)}.start-overlay[hidden]{display:none}.welcome-card{max-width:80%;width:290px;border:1px solid #d4d9bd;border-radius:24px;background:#fffdf0f7;padding:23px 24px;text-align:center;box-shadow:0 15px 60px #68653b2e;animation:welcome .5s ease-out}.welcome-bear{width:83px;height:83px;margin:-9px auto 7px}.welcome-card .eyebrow{justify-content:center;font-size:8px;letter-spacing:1.5px}.welcome-card h2{font-size:22px;margin:12px 0 8px;font-weight:800;letter-spacing:1px}.welcome-card p{font-size:12px;line-height:1.9;color:#889176;margin:8px 0 18px}.primary-button{min-height:48px;border-radius:13px;background:var(--green);box-shadow:0 3px 0 var(--green-dark);color:#fffced;padding:12px 24px;display:flex;align-items:center;justify-content:center;gap:13px;font-weight:700;width:100%;transition:.2s}.primary-button:hover{background:#365f47;transform:translateY(-1px)}.primary-button:active{box-shadow:0 1px 0 var(--green-dark);transform:translateY(2px)}.primary-button .icon{width:18px;height:18px}.welcome-foot{display:block;color:#a1a58d;font-size:9px;margin-top:15px}.right-panel{padding-top:95px}.field-notes{background:#fbfaef;border:1px solid #e5e3d2;padding:26px 22px 19px;transform:rotate(1.4deg);position:relative;box-shadow:4px 5px 0 #ebeadd}.field-notes::before{content:"";position:absolute;top:-12px;left:calc(50% - 30px);width:60px;height:23px;background:#c4d2b477;transform:rotate(-6deg);border-left:1px dashed #e3e6cb;border-right:1px dashed #e3e6cb}.note-eyebrow{font-size:8px;letter-spacing:1.5px;color:#a1a089}.field-notes h2{font-size:16px;line-height:1.8;margin:14px 0 8px;letter-spacing:.5px}.notebook-art{height:94px;display:grid;place-items:center}.notebook-art svg{width:83px;height:83px;transform:rotate(-9deg)}.field-notes>p{font-size:11px;color:#919580;line-height:2;text-align:center}.notebook-divider{height:1px;background:repeating-linear-gradient(90deg,#dbdcca 0 4px,transparent 4px 8px);margin:19px 0 14px}.word-preview{min-height:120px}.preview-word{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #eeecdc;font-size:13px;font-family:var(--serif);font-style:italic;color:#a4aa94}.preview-word.met{color:#526e48}.preview-word span:last-child{font-size:10px;font-family:var(--rounded);font-style:normal}.preview-word .icon{width:15px;height:15px}.text-link{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:10px;min-height:46px;padding:8px 0 0;color:#788864}.text-link .icon{width:15px;height:15px}.small-print{display:flex;gap:8px;align-items:start;margin:29px 8px;font-size:10px;line-height:1.9;color:#9bA38e}.status-dot{width:5px;height:5px;background:#9aaa86;border-radius:50%;margin-top:7px;flex-shrink:0}.page-footer{display:flex;justify-content:space-between;max-width:1180px;margin:20px auto 0;border-top:1px solid var(--line);padding:21px 0 25px;font-size:9px;letter-spacing:1.3px;color:#9ca591}.page-footer span:last-child{letter-spacing:.3px}.game-toast{position:absolute;bottom:30px;left:50%;max-width:93%;width:max-content;transform:translate(-50%,12px);padding:11px 17px;border-radius:14px;background:#fffdefed;box-shadow:0 4px 16px #514b2526;border:1px solid #dad9bb;color:#58724c;font-size:12px;line-height:1.7;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:8;text-align:center}.game-toast.visible{opacity:1;transform:translate(-50%,0)}.storage-warning{margin-top:9px;background:#f6e4c5;border-radius:10px;padding:12px;font-size:11px;line-height:1.7;color:#8b612d}.modal{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:31px;border-radius:26px;background:#fffdf3;color:var(--ink);border:1px solid #d3dbc7;box-shadow:0 25px 90px #27312330;overflow-y:auto}.modal::backdrop{background:#344c4260;backdrop-filter:blur(5px)}.modal-close{position:absolute;top:12px;right:12px;width:40px;height:40px;background:#f5f4e8}.modal-kicker{color:#8c9a7e;font-size:9px;letter-spacing:1.7px;margin-top:10px}.modal h2{font-size:25px;margin:13px 0 11px}.modal-description{color:#8a947c;font-size:12px;line-height:1.9;margin-bottom:22px}.word-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:19px}.word-card{border:1px solid #e0e3d0;border-radius:17px;padding:14px 10px;background:#f6f5e8;text-align:center;position:relative}.word-card.met{background:#edf2e4;border-color:#cbd9be}.word-card svg:not(.icon){width:74px;height:74px;margin:auto}.word-card strong{font-family:var(--serif);font-size:23px;display:block;font-weight:500}.word-card span{display:block;font-size:11px;margin-top:5px;color:#8e9880}.word-card .icon{position:absolute;right:9px;top:9px;width:14px;height:14px;color:#6b8861}.word-card.playing{outline:2px solid #6b8861}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #e8e9da;font-size:13px}.setting-row small{display:block;font-size:10px;color:#929b85;margin-top:6px}.toggle{width:46px;height:27px;appearance:none;border-radius:20px;background:#d8ddca;position:relative;cursor:pointer;flex-shrink:0}.toggle::after{content:"";position:absolute;width:21px;height:21px;border-radius:50%;background:#fffdf6;left:3px;top:3px;transition:.2s}.toggle:checked{background:#668b5b}.toggle:checked::after{left:22px}.language-options{display:flex;border:1px solid #d4dec7;border-radius:9px;padding:3px;gap:3px}.language-options button{min-height:38px;min-width:43px;border-radius:6px}.language-options button.active{background:#dfe9d4}.secondary-button{border:1px solid #d5dfc8;border-radius:12px;min-height:46px;width:100%;padding:10px 14px;margin-top:12px;background:#f2f4e7;color:#6d8260;font-size:12px}.danger-button{color:#aa755a;background:none;border:0}.completion{text-align:center}.completion-bear{width:110px;height:110px;margin:8px auto 15px;background:#e6edd9;border-radius:50%;padding:4px}.completion h2{margin-top:8px}.completion p{font-size:12px;line-height:1.9;color:#8b967e}.result-strip{display:flex;justify-content:center;gap:6px;margin:20px 0;flex-wrap:wrap}.result-word{background:#f2efd9;border-radius:9px;padding:6px 10px;font-family:var(--serif);font-size:17px;color:#6d7c52}.result-note{padding:12px;border-radius:12px;background:#edf2e4;font-size:11px;line-height:1.9;color:#788b66;margin-bottom:18px}.dialog-actions{margin-top:20px}.confetti{position:absolute;inset:0;pointer-events:none;z-index:9;overflow:hidden}.confetti i{position:absolute;top:-15px;width:7px;height:13px;border-radius:2px;animation:confetti 1.6s ease-in forwards}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.empty-state{font-size:12px;color:#98a28d;line-height:1.9}.audio-options{display:flex;flex-direction:column;gap:10px}.audio-options button{margin-top:0}.resume-label{background:#f3e2bd;color:#8d7b4c;border-radius:7px;padding:3px 6px;font-size:8px}.progress-track{position:absolute;bottom:0;height:3px;background:#8ea47d;left:0;transition:width .3s}
@keyframes welcome{from{opacity:0;transform:translateY(12px) rotate(-2deg)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.2;scale:1.05}}@keyframes hint-bounce{50%{transform:translate(-50%,-59%) rotate(var(--rotation))}}@keyframes help-pulse{50%{color:#b77a43;background:#f0e8cc;border-radius:9px}}@keyframes confetti{to{transform:translateY(550px) rotate(520deg);opacity:0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation:none!important;transition:none!important}
@media(min-width:1400px){.workspace{gap:48px;padding-top:48px}}@media(max-width:1190px){.workspace{grid-template-columns:235px minmax(0,480px);max-width:850px;gap:35px}.right-panel{display:none}.topbar{padding:0 32px}.page-footer{margin-inline:32px}.topbar-note{display:none}h1{font-size:31px}}@media(max-width:760px){.topbar{height:76px;padding:0 20px}.brand-mark{width:44px;height:44px;border-radius:14px}.brand-mark svg{width:40px;height:40px}.brand strong{font-size:16px;letter-spacing:1px}.brand small{font-size:7px;letter-spacing:1.7px}.top-actions{gap:6px}.quiet-button{gap:6px}.quiet-button>span:not(.tiny-count){display:none}.top-actions .icon-button{border:0;background:none}.workspace{display:flex;flex-direction:column;align-items:stretch;max-width:550px;padding:18px 16px 8px;gap:0}.left-panel{padding:0}.intro,.gentle-note,.section-label{display:none}.level-list{flex-direction:row;gap:8px;margin-bottom:16px}.level-card{min-height:64px;flex:1;min-width:0;border-radius:13px;padding:8px 9px;gap:5px}.level-art{width:35px;height:37px;border-radius:9px;background:none!important}.level-art svg{width:35px;height:35px}.level-card-text small{font-size:8px;margin-bottom:3px}.level-card-text strong{font-size:12px;white-space:nowrap}.level-card-text p{display:none}.level-state{display:none}.level-card.active{box-shadow:0 2px 0 #dae2cd}.level-card:not(:disabled):hover{transform:none}.mode-bar{height:52px;margin-bottom:13px}.mode-label{font-size:10px}.mode-tab{padding:0 10px;font-size:11px;min-height:44px}.mode-tabs{padding:3px;border-radius:11px}.mode-tab .icon{width:14px;height:14px}.game-frame{border-radius:21px}.order-panel{height:108px;padding:16px 17px;gap:13px}.order-art{width:63px;height:63px;border-radius:16px}.order-art>svg:not(.icon){width:57px;height:57px}.order-copy h2{font-size:28px}.order-copy p{font-size:10px}.order-copy h2.hidden-word{font-size:17px}.order-kicker{font-size:9px}.order-progress{font-size:9px}.collection-dot{width:14px;height:14px}.collection-dots{gap:4px}.order-hear{font-size:9px;min-height:44px}.tray-area{padding:11px 14px 14px}.tray{gap:7px}.tray-slot{border-radius:9px;aspect-ratio:1}.game-bottom{margin-top:9px;font-size:9px}.help-button{font-size:10px}.scene-caption{inset:12px 12px auto}.scene-pill{font-size:7px;padding:7px 9px}.scene-restart{height:32px;width:32px}.welcome-card{width:260px;padding:18px 22px;border-radius:22px}.welcome-bear{width:66px;height:66px}.welcome-card h2{font-size:20px;margin-top:9px}.welcome-card p{font-size:11px;margin-bottom:15px}.welcome-card .primary-button{min-height:45px;font-size:13px}.welcome-foot{font-size:8px;margin-top:12px}.page-footer{max-width:518px;margin:8px auto 0;padding:14px 16px 20px;display:block;text-align:center;font-size:8px}.page-footer span:last-child{display:block;margin-top:7px;font-size:8px}.modal{padding:25px 22px}.game-toast{font-size:11px;bottom:17px;padding:9px 13px}}
@media(max-width:360px){.workspace{padding-inline:10px}.mode-label{display:none}.mode-tabs{width:100%;justify-content:center}.level-card{padding:7px 5px}.order-panel{gap:8px;padding-inline:12px}.order-art{width:56px}.order-copy h2{font-size:25px}.brand{gap:8px}.brand strong{font-size:14px}.tiny-count{display:none}.game-bottom>span{max-width:55%}.game-object{min-width:42px}.tray{gap:5px}}@media(min-width:761px) and (max-width:900px){.workspace{grid-template-columns:220px minmax(0,460px);gap:25px;padding:30px 25px}.mode-label{display:none}.mode-tabs{width:100%;justify-content:center}.order-panel{padding-inline:16px}.order-art{width:62px;height:62px}.order-copy h2{font-size:27px}}

/* Scene selection and visible destinations make tidying more than disappearance. */
.scene-pill #scene-name{width:auto;height:auto;background:none;border-radius:0}
.scene-nav{display:flex;gap:8px;align-items:center;margin:0 0 20px}
.scene-tabs{display:flex;gap:6px;flex:1;padding:3px;border:1px solid #dce2d1;border-radius:13px;background:#eeefe1}
.scene-tab{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-height:44px;border-radius:9px;font-size:12px;color:#7e8e77;white-space:nowrap}
.scene-tab svg{width:27px;height:27px}
.scene-tab.active{background:#fffdf3;box-shadow:0 2px 4px #53614315;color:#42684f;font-weight:700}
.level-picker{display:none;min-width:54px;min-height:44px;align-items:center;justify-content:center;gap:4px;border:1px solid #d6dfcc;background:#fffdf1;border-radius:11px;font-size:11px}
.level-picker .icon{width:16px;height:16px}
.level-art.blue{background:#dfe9e4}
.storage-area{position:absolute;left:8%;right:8%;bottom:2.8%;height:13.5%;min-height:38px;display:flex;justify-content:space-around;gap:8px;z-index:3;pointer-events:none}
.storage-destination{position:relative;flex:1;min-width:0;display:flex;justify-content:center;align-items:center;filter:drop-shadow(0 3px 1px #514f2820)}
.storage-art{height:100%;width:auto;max-width:100%;overflow:visible}
.storage-label{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px;font-weight:600;color:#586b51;background:#fff8e4e8;border:1px solid #dfdec2;border-radius:6px;padding:2px 6px}
.stored-items{position:absolute;display:flex;justify-content:center;align-items:end;top:12%;left:12%;right:12%;height:52%;gap:1px}
.stored-mini{position:relative;max-width:34px;height:100%;flex:1;filter:drop-shadow(0 1px 1px #6a57384d)}
.stored-mini svg{width:100%;height:100%}
.stored-mini small{position:absolute;bottom:-1px;right:-1px;border:1px solid #8aa17d;border-radius:8px;background:#f7f8dd;min-width:13px;height:13px;display:grid;place-items:center;font-size:8px;line-height:1;color:#4b6746}
.storage-count{position:absolute;top:-4px;right:10%;display:flex;align-items:center;gap:2px;font-size:9px;color:#52764a;background:#f8f9e5;border-radius:7px;padding:2px 5px}
.storage-count .icon{width:10px;height:10px}
.storage-destination.just-packed{animation:storage-pop .45s ease-out}
.packing-items{display:flex;width:108px;flex-shrink:0;align-items:center;justify-content:center}
.packing-items svg{width:36px;height:44px}
.packing-art{animation:pulse .7s infinite}
.flying-object.collecting{transition:none;z-index:25}
.dialog-levels{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.dialog-levels .level-card{flex:initial;min-height:80px;width:100%;padding:10px 15px}
.dialog-levels .level-card-text p,.dialog-levels .level-state{display:block}
body[data-scene="schoolbag"] .game-frame{border-color:#bdcfc9}
body[data-scene="schoolbag"] .scene-tab.active{color:#496a72}
body[data-scene="schoolbag"] .game-column{--green:#4c777c;--green-dark:#385e64}
@keyframes storage-pop{0%{transform:scale(1)}45%{transform:translateY(-5px) scale(1.12)}100%{transform:scale(1)}}
@media(max-width:760px){
  .topbar{height:52px;padding:0 12px;gap:8px}
  .brand{gap:8px}.brand-mark{width:35px;height:35px;border-radius:11px}.brand-mark svg{width:33px;height:33px}.brand strong{font-size:14px}.brand small{font-size:6px;margin-top:3px}
  .top-actions{gap:3px}.quiet-button{min-width:44px;justify-content:center}.icon-button{width:44px;height:44px}
  .workspace{max-width:540px;padding:4px 12px 6px;gap:0}
  .left-panel{flex:0 0 auto;min-height:0}
  .scene-nav{height:44px;margin:0 0 4px;gap:7px}
  .scene-tabs{height:44px;padding:0;border-radius:10px;gap:2px}
  .scene-tab{min-height:44px;padding:0 6px;font-size:12px}.scene-tab svg{width:26px;height:26px}
  .level-picker{display:flex;min-width:55px}
  .level-section{display:none}
  .mode-bar{height:44px;min-height:44px;margin:0 0 4px;justify-content:center}
  .mode-label{display:none}.mode-tabs{height:44px;padding:0;width:100%;border-radius:10px;gap:0}.mode-tab{flex:1;justify-content:center;min-height:44px;font-size:12px}
  .game-frame{border-radius:17px;box-shadow:0 3px 0 #e1e7d5,0 10px 25px #4a5d3410}
  .order-panel{height:76px;min-height:76px;padding:8px 12px;gap:10px}
  .order-art{width:52px;height:52px;border-radius:12px}.order-art>svg:not(.icon){width:47px;height:47px}.order-art .icon{width:25px;height:25px}
  .order-copy h2{font-size:25px}.order-copy h2.hidden-word{font-size:16px;line-height:1.4}.order-copy p{font-size:9px;line-height:1.4;margin-top:4px}.order-kicker{font-size:8px;letter-spacing:.4px;margin-bottom:4px}
  .order-right{display:grid;grid-template-columns:repeat(2,auto);grid-template-rows:16px 44px;gap:0 6px;align-items:center;min-width:70px}
  .order-progress{grid-column:1/3;align-self:center}.collection-dots{gap:3px}.collection-dot{width:10px;height:10px}.order-hear{min-width:44px;min-height:44px;font-size:0;justify-content:center;padding:0}.order-hear .icon{width:19px;height:19px}
  .scene{min-height:220px}.objects{bottom:8%}.game-object{min-width:44px;min-height:44px}
  .scene-caption{inset:4px 6px auto}.scene-pill{font-size:7px;padding:5px 7px}.scene-pill #scene-name{background:none;width:auto;height:auto;border-radius:0}.scene-restart{width:44px;height:44px;background:#fffceac9}
  .storage-area{left:6%;right:6%;bottom:5%;height:14%;min-height:35px;gap:5px}.storage-label{font-size:8px;bottom:-10px;padding:1px 4px}.storage-count{font-size:8px;padding:1px 3px;top:-3px;right:5%}.storage-count .icon{width:8px;height:8px}
  .stored-mini{max-width:26px}.stored-mini small{font-size:7px;min-width:11px;height:11px}
  .tray-area{padding:5px 10px 7px;min-height:66px}.tray-label{margin-bottom:4px;font-size:9px;line-height:10px}.tray-label span:last-child{font-size:8px}.tray{gap:6px}.tray-slot{height:44px;min-height:44px;aspect-ratio:auto;border-radius:8px}
  .game-bottom{height:44px;min-height:44px;margin:0;gap:7px;font-size:9px}.game-bottom>span{max-width:58%;line-height:1.5}.help-button{min-height:44px;font-size:11px;padding-inline:7px}
  .welcome-card{max-width:86%;width:270px;padding:13px 18px;border-radius:18px}.welcome-bear{width:51px;height:51px;margin:0 auto 5px}.welcome-card .eyebrow{font-size:7px}.welcome-card h2{font-size:18px;margin:8px 0 6px}.welcome-card p{font-size:11px;line-height:1.6;margin:7px 0 12px}.welcome-foot{font-size:8px;margin-top:8px}.welcome-card .primary-button{min-height:44px}
  .packing-items{width:78px}.packing-items svg{width:26px;height:36px}.packing-art{width:46px}
  .game-toast{bottom:23%;font-size:10px;padding:7px 10px;max-width:92%}
  .page-footer{display:none}
  .storage-warning:not([hidden]){position:fixed;z-index:12;left:12px;right:12px;bottom:50px;margin:0;font-size:10px;box-shadow:var(--shadow)}
}
@media(max-width:760px) and (min-height:600px){
  body{min-height:100svh}
  .workspace{height:calc(100svh - 52px);height:calc(100dvh - 52px);padding-bottom:max(6px,env(safe-area-inset-bottom));}
  .game-column{display:flex;flex-direction:column;flex:1;min-height:0}
  .mode-bar,.game-bottom{flex-shrink:0}
  .game-frame{flex:1;min-height:0;display:flex;flex-direction:column}
  .order-panel,.tray-area{flex-shrink:0}
  .scene{flex:1;aspect-ratio:auto}
}
@media(max-width:760px) and (max-height:720px){
  .welcome-bear,.welcome-foot{display:none}.welcome-card{padding:11px 17px}.welcome-card h2{font-size:17px;margin:5px 0}.welcome-card p{font-size:10px;margin:5px 0 9px}.welcome-card .eyebrow{font-size:7px}
  .order-panel{height:70px;min-height:70px;padding-block:5px}.order-art{width:47px;height:47px}.order-art>svg:not(.icon){width:43px;height:43px}.order-copy h2{font-size:24px}
  .scene-caption .scene-pill{opacity:.85}
}

/* v0.3: touch-safe exploration, sentence actions, and portable progress. */
.scene-details{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.scene-mat{position:absolute;left:8%;top:36%;width:39%;height:29%;opacity:.5;transform:rotate(-9deg)}
.scene-desk-mat{position:absolute;right:9%;top:51%;width:37%;height:24%;opacity:.43;transform:rotate(7deg)}
.scene-note{position:absolute;right:16%;top:26%;width:10%;height:9%;opacity:.75;transform:rotate(11deg)}
body[data-scene="schoolbag"] .scene-mat{opacity:.2}
body[data-scene="kitchen"] .scene-desk-mat{opacity:.22}
.game-object{transform:translate(-50%,-50%);filter:none;width:13.2%;height:12.3%}
.game-object>svg{transform:rotate(var(--rotation,0deg));filter:drop-shadow(1px 4px 2px #69533330)}
.game-object:hover{scale:1;filter:none}.game-object:hover>svg{scale:1.07}
.game-object:active{scale:.94}
.exploration-cover{z-index:4;overflow:visible}
.opened-cover{position:absolute;width:15%;height:14%;min-width:44px;min-height:44px;transform:translate(-50%,-50%) rotate(var(--rotation));pointer-events:none;z-index:1;opacity:.85}
.opened-cover svg{width:100%;height:100%}
.discovered-item>svg{filter:drop-shadow(1px 3px 2px #564c3235)}
.exploration-cover>svg{width:110%;height:110%;margin:-5%}
.cover-tab{position:absolute;right:0;bottom:0;width:19px;height:19px;border:1px solid #aaa879;border-radius:8px;background:#fff7cb;display:grid;place-items:center;box-shadow:0 2px 4px #5a57251a}
.cover-tab .icon{width:12px;height:12px;color:#8d7e40}
.exploration-cover.hinted{outline:2px dashed #aab369;outline-offset:2px;border-radius:12px}
.game-object.hinted{animation:discovery-hint .75s ease-in-out 3}
@keyframes discovery-hint{50%{transform:translate(-50%,-60%)}}
.review-button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 8px;color:#64815e;font-size:11px;white-space:nowrap}
.review-button .icon{width:16px;height:16px}
.game-bottom>span{max-width:35%;font-size:9px}.game-bottom{gap:3px}
.preview-word span:last-child{font-size:8px;max-width:95px;text-align:right;line-height:1.5}
.mode-tabs{flex:1}.mode-tab{padding:0 9px}.mode-label{display:none}
.mode-tab[data-mode="sentence"]{color:#946a46}.mode-tab[data-mode="sentence"].active{background:#f6e6c6;color:#795836}
.sentence-copy{align-self:center}.order-copy .sentence-text{font-family:var(--serif);font-size:21px;line-height:1.25;letter-spacing:0}
.sentence-copy>p{font-size:10px;line-height:1.5}.sentence-hear{min-width:36px;justify-content:center}
.storage-area.interactive{pointer-events:auto;height:16%;min-height:52px}
.storage-destination.can-place{min-height:48px;border:1px dashed #7e9987;border-radius:15px;background:#fffbea55;padding:0}
.storage-destination.can-place:hover,.storage-destination.destination-hint{background:#fbf0bcbb;border:2px solid #85974c;box-shadow:0 0 0 3px #edf5c880}
.storage-destination.can-place:active{transform:scale(.95)}
.sentence-tray{display:flex;align-items:center;gap:10px;min-height:44px}
.held-item{width:48px;height:44px;flex-shrink:0;aspect-ratio:auto}
.held-instruction{font-size:11px;line-height:1.65;color:#7c8067;display:flex;align-items:center;justify-content:space-between;flex:1;gap:9px}
.held-instruction .icon{width:18px;height:18px;transform:rotate(-90deg)}
.review-list{margin:18px 0 22px;display:flex;flex-direction:column;gap:10px}
.review-row{display:flex;align-items:center;gap:14px;padding:10px 13px;border:1px solid #dce2ca;border-radius:15px;background:#f3f5e6}
.review-row>svg{width:56px;height:56px;flex-shrink:0}.review-row>div{flex:1}
.review-row strong{font:22px var(--serif)}.review-row small{display:block;font-size:10px;color:#889779;margin-top:4px}
.review-row>span{text-align:center;font-size:17px;color:#658053}
.progress-tools{margin-top:20px;border-top:1px dashed #d8dcc5;padding-top:8px}.progress-tools h3{font-size:15px;margin:13px 0 7px}
.progress-tools .modal-description{font-size:11px;margin:0 0 9px}
.progress-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.progress-actions .secondary-button{margin-top:0}
.import-file-label{position:relative;display:grid;place-items:center;cursor:pointer;text-align:center;overflow:hidden}
.import-file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.import-file-label:focus-within{outline:3px solid #ce834d;outline-offset:3px}
.progress-feedback{font-size:11px;line-height:1.7;min-height:0;color:#658254;margin:9px 0 0}.progress-feedback.error{color:#a66543;background:#f8ebd7;border-radius:8px;padding:8px}
.import-summary{display:flex;flex-direction:column;border:1px solid #dde4cd;background:#f1f5e7;border-radius:15px;padding:10px 14px;gap:12px}
.import-summary>span{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#86917a}.import-summary strong{color:#4e6a4a;font-weight:600}
.import-confirm{margin-top:15px}
@media(max-width:760px){
  .mode-tab{font-size:10px;padding:0 3px;gap:4px}.mode-tab .icon{width:14px;height:14px}
  .game-object{min-width:44px;min-height:44px;width:12.7%;height:12.3%}
  .cover-tab{width:16px;height:16px;border-radius:6px}.cover-tab .icon{width:10px;height:10px}
  .order-copy .sentence-text{font-size:17px;line-height:1.4}.sentence-mode .order-panel{height:95px;min-height:95px;padding:7px 10px;gap:7px}
  .sentence-copy>p{font-size:9px;line-height:1.4}.sentence-mode .order-art{width:44px;height:44px;flex-shrink:0}.sentence-hear{min-width:44px;min-height:44px}
  .storage-area.interactive{bottom:5%;height:17%;min-height:48px;left:7%;right:7%}.storage-destination.can-place{min-height:48px}
  .storage-area.interactive .storage-label{bottom:-8px}.storage-area.interactive .stored-items{pointer-events:none}
  .game-bottom>span{display:none}.game-bottom{justify-content:space-between}.review-button{font-size:11px;min-height:44px;padding:0 7px}
  .held-instruction{font-size:10px;line-height:1.5}.scene-note{top:26%;width:9%;right:13%}
  .scene-mat{top:35%;width:38%;height:27%}
  .dialog-levels .level-card{min-height:80px}
  .progress-actions{gap:7px}.progress-actions .secondary-button{font-size:11px}
}
@media(max-width:360px){.mode-tab{font-size:9px;gap:2px}.mode-tab .icon{width:12px;height:12px}.sentence-mode .order-panel{gap:5px}.order-copy .sentence-text{font-size:15px}}

/* v0.4: a small picnic story without adding another screen to the game. */
body[data-scene="picnic"] .game-column{--green:#71864d;--green-dark:#526536}
body[data-scene="picnic"] .game-frame{border-color:#cbd3af}
body[data-scene="picnic"] .scene-desk-mat,body[data-scene="picnic"] .scene-note{display:none}
body[data-scene="picnic"] .scene-mat{opacity:.12}
.quantity-pill{margin-left:auto;display:inline-flex;padding:2px 7px;border-radius:7px;background:#e7eddb;color:#6d7e4b;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}
.story-strip{position:absolute;top:61px;left:12%;right:12%;height:33px;display:flex;align-items:center;justify-content:center;gap:9px;z-index:3;pointer-events:none}
.story-strip[hidden]{display:none}
.story-step{display:flex;gap:4px;align-items:center;border-radius:15px;padding:7px 9px;background:#fffbeaeb;color:#969781;font-size:10px;box-shadow:0 2px 0 #afa78325;white-space:nowrap}
.story-step b{font-size:9px;width:13px;height:13px;border-radius:50%;background:#eeecd8;display:grid;place-items:center}
.story-step.active{background:#f0efc2;color:#6b7d47;border:1px solid #b9bf82}
.story-step.complete{background:#dfeacb;color:#587346}.story-step .icon{width:13px;height:13px}
.scene-nav .scene-tab{padding-inline:5px;gap:4px;font-size:10px}.scene-nav .scene-tab svg{width:23px;height:23px}
@media(max-width:760px){
  .scene-nav .scene-tab{font-size:10px;min-width:0;padding:0 4px}.scene-nav .scene-tab svg{width:21px;height:21px;flex-shrink:0}
  .scene-tabs{min-width:0}.scene-nav .scene-tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .scene-nav .level-picker{min-width:48px;gap:2px;font-size:10px}.scene-nav .level-picker .icon{width:14px}
  .story-strip{top:42px;left:8%;right:8%;height:28px;gap:5px}.story-step{font-size:8px;padding:5px 7px;gap:3px}
  .story-step b,.story-step .icon{width:11px;height:11px;font-size:8px}
  .quantity-pill{font-size:9px;padding:2px 5px}
  .topbar .brand{min-width:0}.topbar .brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .brand>span:last-child{min-width:0}
  .topbar .top-actions{flex-shrink:0}
}
.scene-restart{width:44px;height:44px}
.order-hear,.sentence-hear{min-width:44px;min-height:44px}
@media(min-width:761px) and (max-height:1100px){
  .topbar{height:80px}
  .workspace{padding-top:20px;padding-bottom:8px}
  .left-panel{padding-top:12px}
  .intro h1{font-size:29px;line-height:1.45;margin:15px 0 12px}
  .handwritten{margin:18px 0 24px}
  .level-card{min-height:77px;padding-block:8px}
  .level-art{width:50px;height:50px}.level-art svg{width:47px;height:47px}
  .gentle-note{padding-top:12px;padding-bottom:12px}
  .scene{height:clamp(260px,calc(100dvh - 540px),460px);aspect-ratio:auto}
  .game-object{min-width:44px;min-height:44px}
  .right-panel{padding-top:72px}
  .page-footer{margin-top:8px;padding-top:12px;padding-bottom:12px}
}

/* v0.5: a tray-first free play mode and a tiny, unfolding picture book. */
:root{--free-ink:#775139;--free-paper:#f3e5ce;--ending-paper:#fff9e9;--ending-line:#d0bfa0;--ending-shadow:0 5px 0 #bbaa862b;--ending-radius:18px}
.mode-tabs{width:100%;min-width:0}.mode-tab{flex:1;justify-content:center;min-width:44px;padding-inline:6px}
.mode-tab[data-mode="free"]{color:var(--free-ink)}.mode-tab[data-mode="free"].active{background:var(--free-paper);color:var(--free-ink)}
.free-mode .order-panel{min-height:110px;height:110px;gap:12px}
.free-copy h2.free-title{font-family:var(--rounded);font-size:18px;line-height:1.4}
.free-copy h2.free-prompt{font-family:var(--serif);font-size:22px;line-height:1.3}
.free-copy p{line-height:1.5;color:var(--free-ink);font-size:10px}
.free-challenge{flex-shrink:0;width:56px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:12px;border:1px dashed var(--ending-line);background:var(--ending-paper);color:var(--free-ink);font-size:9px;line-height:1.3}
.free-challenge[aria-pressed="true"]{background:var(--free-paper);border-style:solid}
.free-mode .tray-slot:not(.empty){background:var(--free-paper);border-color:var(--ending-line)}
.free-mode .tray-slot.has-pair{box-shadow:inset 0 0 0 2px var(--green);background:var(--mint)}
.free-mode .tray-slot small{position:absolute;right:2px;bottom:2px;min-width:16px;border-radius:6px;background:var(--cream);font-size:9px;color:var(--green-dark)}
.ending-peek{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:76px;max-width:120px;padding:3px 7px;border:1px solid var(--ending-line);border-radius:12px;background:var(--ending-paper);color:var(--free-ink);box-shadow:var(--ending-shadow)}
.ending-peek>svg{width:49px;height:30px;border-radius:5px;flex-shrink:0}.ending-peek>span{font-size:9px;line-height:1.4;white-space:nowrap}
.ending-peek:disabled{opacity:.65}.ending-peek.ending-changed{animation:story-page .6s ease-out}
.scene-ending{position:absolute;inset:22% 5% 19%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;z-index:2;pointer-events:none}
.scene-ending[hidden]{display:none}.ending-picture{display:block;width:100%;min-height:0;aspect-ratio:600/330;border:1px solid var(--ending-line);border-radius:var(--ending-radius);overflow:hidden;background:var(--ending-paper);box-shadow:var(--ending-shadow)}
.scene-ending .ending-picture{flex:1;max-height:85%;width:100%;animation:story-page .6s ease-out}
.ending-caption{font-size:11px;line-height:1.5;text-align:center;margin:0;padding:5px 10px;border-radius:9px;color:var(--ink);background:var(--ending-paper)}
.scene.is-finished .scene-details{opacity:.15}.scene.is-finished .kitchen-background{opacity:.65}
.scene.is-finished .scene-ending{background:radial-gradient(ellipse at center,var(--ending-paper),transparent 75%)}
.ending-dialog .ending-picture,.completion .ending-picture{margin:18px 0 14px;max-height:220px}
.ending-dialog .ending-caption{background:none;font-size:13px}.ending-dialog h2{font-family:var(--serif);line-height:1.4}
.ending-steps{display:flex;justify-content:center;gap:7px;margin:14px 0}.ending-steps span{width:24px;height:4px;border-radius:3px;background:var(--line)}.ending-steps span.reached{background:var(--green)}
.ending-summary{min-width:44px;min-height:44px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--ending-line);background:var(--ending-paper);border-radius:12px;color:var(--free-ink)}
@keyframes story-page{from{opacity:.3;transform:translateY(8px) rotate(-1deg)}to{opacity:1;transform:none}}
@media(max-width:900px){.mode-tab{font-size:10px;gap:4px;padding-inline:3px}.mode-tab .icon{width:13px;height:13px}}
@media(max-width:760px){
  .free-mode .order-panel{height:95px;min-height:95px;gap:8px;padding:7px 10px}
  .free-copy h2.free-title{font-size:16px}.free-copy h2.free-prompt{font-size:18px;line-height:1.35}
  .free-copy p{font-size:9px}.free-mode .order-art{width:44px;height:44px}.free-mode .order-art>svg:not(.icon){width:40px;height:40px}
  .free-challenge{width:48px;font-size:8px;min-height:50px}.free-challenge .icon{width:18px;height:18px}
  .ending-peek{min-width:70px;max-width:92px;padding:2px 4px;gap:4px;box-shadow:none}.ending-peek>svg{width:41px;height:28px}.ending-peek>span{font-size:8px}
  .scene-ending{inset:23% 5% 22%;gap:4px}.ending-caption{font-size:9px;padding:4px 8px}.scene-ending .ending-picture{border-radius:12px}
  .mode-tab{font-size:10px;gap:3px}.mode-tab .icon{width:12px;height:12px}
}
@media(max-width:390px){.mode-tab .icon{display:none}.mode-tab{font-size:10px}.free-copy h2.free-prompt{font-size:17px}}

/* v0.6: a tactile scrapbook, not a score board. */
:root{--album-paper:#fcf6e6;--album-edge:#d8c4a2;--album-clay:#a66c4e;--album-faint:#ece9d8;--album-ribbon:#dce6d1;--album-rule:1px solid var(--album-edge)}
.album-button{min-width:44px;min-height:44px;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--free-ink)}
.album-button .icon{width:22px;height:22px}.album-button.has-pages::after{content:"";width:5px;height:5px;background:var(--album-clay);border-radius:50%}
.layer-under{position:absolute;width:13.2%;height:12.3%;min-width:44px;min-height:44px;transform:translate(-42%,-34%) rotate(13deg);pointer-events:none;z-index:1;opacity:.75;filter:drop-shadow(0 2px 1px #66503930)}
.layer-under svg{width:100%;height:100%}.game-object.stack-top{z-index:3}.stack-top>svg{filter:drop-shadow(0 5px 2px #66503950);transform:rotate(-9deg)}
.stack-mark{position:absolute;bottom:-1px;right:0;background:var(--ending-paper);border:1px solid var(--ending-line);border-radius:7px;padding:1px 4px;color:var(--free-ink);font-size:9px;line-height:1.2;pointer-events:none}
.stack-lift{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;border:1px dashed var(--ending-line);border-radius:12px;background:var(--ending-paper);color:var(--free-ink);z-index:2;font-size:8px;line-height:1.2}
.stack-lift .icon{width:16px;height:16px;transform:rotate(-35deg)}.stack-lift:hover{background:var(--free-paper)}.stack-lift:disabled{opacity:.55}
.scene-decoration{position:absolute;left:3%;top:19%;width:12%;max-width:60px;aspect-ratio:1;z-index:1;pointer-events:none;filter:drop-shadow(1px 3px 1px #64543720)}.scene-decoration[hidden]{display:none}.scene-decoration svg{width:100%;height:100%}
.modal.album-modal{width:min(620px,calc(100vw - 24px));background:var(--album-paper);padding:28px;border-color:var(--album-edge)}
.album-modal .modal-close{width:44px;height:44px}
.album-header{padding-right:24px}.album-header h2{font-family:var(--serif);font-size:28px;font-weight:600;margin:10px 0}.album-header p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.album-tabs{display:flex;gap:6px;padding:4px;background:var(--album-faint);border-radius:13px;margin:10px 0 20px}
.album-tabs button{flex:1;min-width:44px;min-height:44px;padding:7px;font-size:12px;line-height:1.4;border-radius:10px;color:var(--muted)}.album-tabs button[aria-pressed="true"]{background:var(--cream);color:var(--green-dark);box-shadow:0 2px 0 var(--album-edge)}
.album-sheet{padding:17px;background:var(--cream);border:var(--album-rule);border-radius:5px 18px 18px 5px;box-shadow:3px 4px 0 var(--album-faint);position:relative}
.album-sheet::before{content:"";position:absolute;left:6px;top:12px;bottom:12px;border-left:1px dashed var(--album-edge);opacity:.7}
.album-page-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:1px;color:var(--album-clay);margin-bottom:12px}
.album-page-heading span:last-child{letter-spacing:0;background:var(--album-ribbon);color:var(--green-dark);padding:4px 8px;border-radius:8px}
.album-art{position:relative}.album-art>svg{width:100%;aspect-ratio:600/330;border-radius:12px;border:var(--album-rule);background:var(--album-paper)}
.album-art.is-locked>svg{opacity:.55}.album-art .album-decoration{position:absolute;right:4%;bottom:5%;width:16%;aspect-ratio:1;filter:drop-shadow(1px 3px 2px #584e322b)}.album-decoration svg{width:100%;height:100%}
.album-lock-note{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:var(--free-ink);text-align:center;padding:20px;text-shadow:0 1px var(--cream)}
.album-story-title{font-family:var(--serif);font-size:23px;line-height:1.35;font-weight:600;margin:14px 0 8px}.album-caption{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}
.album-stamps{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.album-stamp{display:flex;align-items:center;gap:4px;font-size:10px;padding:5px 8px;border:1px dashed var(--album-edge);border-radius:7px;color:var(--muted)}.album-stamp.collected{border-style:solid;background:var(--album-ribbon);color:var(--green-dark)}.album-stamp .icon{width:12px;height:12px}
.album-keepsakes{margin-top:20px}.album-keepsakes h3{font-size:14px;margin:0 0 6px}.album-keepsakes>p{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 10px}
.keepsake-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.keepsake{min-height:94px;min-width:44px;padding:7px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:12px;background:var(--cream);font-size:10px;line-height:1.4;text-align:center;position:relative}
.keepsake>svg{width:44px;height:44px}.keepsake[aria-pressed="true"]{border:2px solid var(--green);background:var(--album-ribbon);padding:6px 3px}.keepsake:disabled{background:var(--album-faint);color:var(--muted)}.keepsake:disabled>svg{opacity:.4;filter:grayscale(.7)}.keepsake small{font-size:9px;color:var(--album-clay)}
.album-sheet>[data-album-play]{display:flex;align-items:center;justify-content:center;gap:8px}.completion [data-open-album]{margin-bottom:12px}.stack-lift.hinted{outline:2px dashed var(--green);outline-offset:2px}
.album-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.album-page-turn{min-width:44px;min-height:44px;border-radius:50%;border:var(--album-rule);display:grid;place-items:center;background:var(--cream)}.album-page-turn.previous .icon{transform:rotate(180deg)}.album-page-turn:disabled{opacity:.3}.album-bottom span{font-family:var(--serif);font-size:16px;color:var(--album-clay)}
.album-status{font-size:11px;line-height:1.6;color:var(--green-dark);min-height:18px;margin:10px 0 0}.album-status.error{color:var(--album-clay)}
.completion-keepsake{display:flex;gap:10px;align-items:center;justify-content:center;padding:9px 12px;border:1px dashed var(--album-edge);border-radius:12px;background:var(--album-paper);margin-bottom:15px;font-size:12px;line-height:1.6;color:var(--free-ink)}.completion-keepsake svg{width:45px;height:45px;flex-shrink:0}
@media(max-width:760px){.album-button>span{display:none}.album-button{justify-content:center;position:relative}.album-button.has-pages::after{position:absolute;right:6px;top:8px}.top-actions .tiny-count{display:none}.topbar .brand strong{font-size:13px;letter-spacing:.5px}.modal.album-modal{padding:23px 16px}.album-header h2{font-size:24px}.album-header p{font-size:11px}.album-tabs{margin-bottom:14px}.album-tabs button{font-size:11px}.album-sheet{padding:13px}.album-story-title{font-size:21px}.album-caption{font-size:11px}.keepsake-list{gap:5px}.keepsake{font-size:9px;min-height:90px}.keepsake small{font-size:8px}.scene-decoration{top:19%;max-width:42px}.layer-under{width:12.7%}}
