@charset "UTF-8";
:root{--ink:#405568;--cream:#fffdf3;--mint:#6dba9c;--line:#d6dfd8;--font:"YouYuan","幼圆","Microsoft YaHei","PingFang SC",sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:var(--font);color:var(--ink);background:#d8ece8}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:4px solid #f1b468;outline-offset:5px}button:disabled{cursor:default}button svg{width:32px;height:32px}button:active{transform:translateY(3px)}button{transition:transform .16s,box-shadow .16s,background .16s}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.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}#app,#island-app{position:relative;width:100%;height:100dvh;overflow:hidden}#island-app{background:radial-gradient(ellipse at 58% 84%,#ecf2cf 0,transparent 60%),linear-gradient(170deg,#e9f3ec 5%,#c8e5e7 62%,#e2eedc 100%)}#world{position:absolute;inset:0;width:100%;height:100%;transition:left .45s,width .45s}#world canvas{display:block;width:100%;height:100%;touch-action:none}.home-mode #world{left:22%;width:78%;height:100%;top:0}.reward-mode #world{left:0;width:100%;filter:blur(3px);opacity:.75}.sky-orb{position:absolute;border-radius:50%;pointer-events:none}.orb-one{width:220px;height:220px;background:#fff4c0a6;right:10%;top:8%;box-shadow:0 0 70px 25px #fff5cc8f}.orb-two{width:500px;height:500px;background:#fffdf320;left:-220px;bottom:1%;border:1px solid #fffffc45}.island-header{position:absolute;left:0;right:0;top:0;height:105px;padding:25px 48px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:4;pointer-events:none}.island-header>*{pointer-events:auto}.island-brand{display:flex;align-items:center;gap:14px}.brand-bunny{width:42px;height:39px;position:relative;background:#fff6e6;border:2px solid #bbaa91;border-radius:46%;display:block;box-shadow:0 4px 0 #acb7a620}.brand-bunny i{width:11px;height:23px;position:absolute;background:#fff1df;border:2px solid #bbaa91;border-bottom:0;border-radius:70% 70% 20% 20%;top:-18px;left:5px;transform:rotate(-12deg)}.brand-bunny i:nth-child(2){left:auto;right:5px;transform:rotate(12deg)}.brand-bunny b{font-size:18px;position:absolute;left:3px;top:6px;color:#957964;font-family:Georgia,serif;white-space:nowrap}.island-brand strong{display:block;font-size:21px;letter-spacing:3px;color:#45645e}.island-brand small{display:block;font:8px Georgia,serif;letter-spacing:2px;color:#8a9d93;margin-top:6px}.parent-entry{display:flex;align-items:center;justify-content:center;gap:8px;background:#fffaf2c4;color:#78918a;padding:11px 17px;border-radius:23px;border:1px solid #fffdfce6;font-size:12px;box-shadow:0 4px 20px #7297850a;min-width:87px;position:relative;overflow:hidden}.parent-entry svg{width:20px;height:20px}.parent-entry.holding{background:#f8d998;box-shadow:0 0 0 5px #eacb8477}.header-progress{display:flex;gap:9px;align-items:center;position:absolute;left:50%;transform:translateX(-50%);font-size:13px;color:#91a49b}.header-progress b{font:italic 22px Georgia,serif;color:#6d8877}.mini-star{width:24px;height:24px;color:#e5ba64}.mini-star>svg{width:100%;height:100%}.level-name{font-size:11px;letter-spacing:1px;color:#859a8c}.home-copy{position:absolute;left:6%;top:23%;z-index:2;pointer-events:none;width:390px}.tiny-label{font:9px Georgia,serif;color:#88a092;letter-spacing:2.5px;display:block}.home-copy h1{font-size:clamp(33px,3.0vw,48px);line-height:1.55;color:#446459;letter-spacing:3px;margin:17px 0 21px;font-weight:700}.home-copy h1>span{color:#8ab08d;position:relative}.home-copy h1>span::after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:8px;border-bottom:3px solid #c3d6a8;border-radius:50%;transform:rotate(-3deg)}.home-copy>p{font-size:13px;line-height:2.2;color:#819a8c;letter-spacing:.5px}.play-wrap{position:relative;margin-top:35px;width:140px;height:110px;pointer-events:auto}.big-play{width:110px;height:88px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#93cba9,#6bad8f);border:4px solid #f5f9e7;border-radius:31px;color:#fffaf0;box-shadow:0 7px 0 #5b9579,0 14px 25px #4c887134;position:relative;z-index:2}.big-play>svg{width:51px;height:51px;filter:drop-shadow(0 2px 0 #5d957544)}.big-play:hover{background:linear-gradient(#acd9b4,#80bb9b);transform:translateY(-2px)}.tap-hand{position:absolute;left:88px;top:55px;width:52px;height:61px;z-index:3;pointer-events:none;transform:rotate(-12deg);filter:drop-shadow(0 3px 0 #90a78b25)}.tap-hand svg,.tutorial-hand svg{width:100%;height:100%}.play-ring{position:absolute;left:-14px;top:-14px;width:138px;height:115px;border:2px solid #a8cda786;border-radius:40px}.home-parent-note{font-size:10px;color:#899f8c;margin-top:15px;letter-spacing:1px}.home-chips{display:flex;gap:9px;margin-top:24px}.home-chips>span{font-size:9px;background:#fffff264;border:1px solid #fffff0a3;padding:5px 11px;border-radius:16px;color:#96a88d}.world-caption{position:absolute;bottom:10%;left:52%;z-index:2;display:flex;align-items:center;gap:10px;background:#fffef48c;border:1px solid #ffffff9f;padding:10px 18px;border-radius:24px;color:#8c9d86;font-size:10px;white-space:nowrap;backdrop-filter:blur(7px);pointer-events:none}.world-caption i{width:6px;height:6px;border-radius:50%;background:#93b98f}.world-caption b{color:#c7b779;font-size:13px}.floating-stamp{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;background:#fff7eccc;border:1px solid #fffef5;padding:9px 16px;border-radius:22px;font-size:22px;color:#cda375;box-shadow:0 8px 30px #7b938815;pointer-events:none}.floating-stamp span{font-size:11px;color:#a18e75;letter-spacing:1px}.stamp-one{left:49%;top:19%;transform:rotate(-7deg)}.stamp-two{right:7%;bottom:24%;transform:rotate(7deg)}.island-footer{position:absolute;bottom:22px;left:48px;right:48px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9aac96;letter-spacing:.6px;pointer-events:none}.game-mode .island-footer{display:none}.game-mode .island-header{height:75px;padding-top:19px;padding-bottom:15px}.game-mode .island-brand{transform:scale(.85);transform-origin:left center}.game-mode .parent-entry{transform:scale(.9);transform-origin:right}.game-mode #world{top:95px;height:calc(100% - 130px)}.game-nav{position:absolute;left:34px;right:140px;top:100px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:4}.game-nav>*{pointer-events:auto}.icon-button{width:55px;height:55px;display:flex;align-items:center;justify-content:center;border-radius:19px;background:#fffaf2d9;border:2px solid #fffcf1;color:#7d9d8e;box-shadow:0 4px 0 #adc5b64a,0 7px 17px #5e88710c}.icon-button svg{width:29px;height:29px}.round-stars{display:flex;gap:8px;position:absolute;left:50%;transform:translateX(-50%);top:-6px;padding:8px 19px;border-radius:25px;background:#fffdf1a6;border:1px solid #ffffffc2}.round-stars>span{display:block;width:28px;height:28px;color:#d2ddce}.round-stars>span svg{width:100%;height:100%}.round-stars .current{color:#f1d592;filter:drop-shadow(0 0 5px #f2dd9daa)}.round-stars .earned{color:#efbe62}.speech-bubble{position:absolute;z-index:3;left:50%;transform:translateX(-50%);top:139px;width:min(630px,65vw);min-height:75px;display:flex;align-items:center;gap:13px;padding:13px 17px;background:#fffdf5ed;border-radius:23px;box-shadow:0 7px 0 #bcd1bf27,0 12px 25px #869c850e;border:1px solid #ffffff;pointer-events:none}.speech-bubble::after{content:'';position:absolute;bottom:-12px;left:42px;border-left:12px solid transparent;border-right:12px solid transparent;border-top:14px solid #fffdf5}.voice-avatar{width:43px;height:43px;border-radius:50%;background:#f3e7be;display:flex;align-items:center;justify-content:center;font-size:30px;color:#cdaa79;flex-shrink:0}.speech-text{flex:1;min-width:0}.speech-text>span{font-size:9px;color:#acb094;letter-spacing:1px}.speech-text>p{font-size:12px;line-height:1.8;color:#7b8c78;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.replay-button{pointer-events:auto;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:41px;height:41px;border-radius:50%;color:#83ab8d;background:#eaf2dc}.replay-button svg{width:25px;height:25px}.voice-wave{height:22px;display:flex;align-items:center;gap:3px;width:22px}.voice-wave i{display:block;background:#a9c299;width:3px;height:5px;border-radius:3px}.voice-wave.speaking i{animation:wave .7s ease-in-out infinite}.voice-wave i:nth-child(2){animation-delay:-.3s}.voice-wave i:nth-child(3){animation-delay:-.1s}.voice-wave i:nth-child(4){animation-delay:-.4s}.bottom-controls{position:absolute;left:35px;right:35px;bottom:30px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:4}.bottom-controls>*{pointer-events:auto}.hint-button{color:#c9a663;background:#fff5da}.check-button{width:81px;height:73px;border-radius:25px;background:linear-gradient(#9bccac,#78b38f);border:4px solid #f8fbe9;box-shadow:0 6px 0 #5e9676,0 10px 24px #65886b20;color:#fffdf1;display:flex;align-items:center;justify-content:center}.check-button svg{width:42px;height:42px}.check-button.glow{animation:checkGlow .8s ease-in-out infinite}.task-counter{display:flex;align-items:baseline;gap:9px;position:absolute;left:50%;transform:translateX(-50%);padding:8px 22px;border-radius:25px;background:#fffdf3d9;border:2px solid #fffff4;color:#afba99;font-family:Georgia,serif;box-shadow:0 5px 0 #b8c7a820;pointer-events:none}.task-counter b{font-size:26px;color:#799b77}.task-counter strong{font-size:19px}.task-counter span{font-size:20px}.tutorial-hand{position:fixed;z-index:8;width:49px;height:60px;transform:rotate(-17deg);pointer-events:none;animation:handTap 1.1s ease-in-out infinite;filter:drop-shadow(0 3px 4px #7d9e7c36)}.game-feedback{position:absolute;right:9%;top:30%;pointer-events:none;z-index:5}.success-star{width:90px;height:90px;display:block;color:#edc06a;filter:drop-shadow(0 6px 0 #cfb57744);animation:pop .55s ease-out}.success-star svg{width:100%;height:100%}.retry-flower{font-size:66px;color:#e7b394;display:block;animation:pop .5s ease-out}.center-overlay{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;background:#d7e8d979;backdrop-filter:blur(6px)}.center-overlay .big-play{width:120px;height:105px;border-radius:34px}.audio-gate-card{text-align:center;background:#fffbed;padding:38px;border-radius:30px;box-shadow:0 20px 70px #78977525}.audio-gate-card>.big-play{margin:auto}.audio-gate-card p{font-size:13px;margin-top:25px;color:#879c7c}.reward-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;width:min(500px,88vw);background:#fffcefdf;border:2px solid #fffef5;border-radius:35px;box-shadow:0 18px 80px #6e957622;backdrop-filter:blur(14px);text-align:center;padding:40px 28px}.reward-stars{display:flex;justify-content:center;align-items:center;gap:11px;margin:25px 0;color:#ecc371}.reward-stars svg{width:47px;height:47px;filter:drop-shadow(0 4px 0 #dac39d55)}.reward-stars svg:nth-child(2){width:74px;height:74px}.reward-card h2{font-size:25px;color:#608265}.reward-card p{font-size:12px;color:#9ba589;margin:17px 0 25px}.reward-play{margin:10px auto 25px;width:90px;height:80px}.reward-card small{font-size:11px;color:#99a28a}.reward-card .tiny-label{font-size:8px}.reward-mode .island-footer{opacity:.3}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;color:#fffdf1;background:#566f61f2;padding:13px 21px;border-radius:12px;transition:.2s;font-size:13px;max-width:90vw;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}#webgl-error{position:absolute;z-index:20;top:30%;left:50%;transform:translateX(-50%);max-width:540px;padding:30px;background:#fffbed;border-radius:20px;text-align:center}#webgl-error h2{font-size:24px}#webgl-error p{font-size:13px;margin-top:15px;line-height:1.8}dialog{background:#fffdf4;color:#536956;border:1px solid #e1e7d2;border-radius:26px;width:min(1050px,94vw);max-height:90dvh;padding:32px 36px;box-shadow:0 25px 100px #45674640;overscroll-behavior:contain}dialog::backdrop{background:#4f6e665e;backdrop-filter:blur(6px)}dialog h2{font-size:27px;margin:9px 0 15px}.dialog-x{position:absolute;right:18px;top:18px;width:35px;height:35px;background:#f0f2e6;border-radius:50%;color:#93a084;padding:8px}.dialog-x svg{width:100%;height:100%}.parent-intro{font-size:13px;line-height:1.95;color:#89937e;max-width:880px}.parent-stats{display:flex;gap:22px;background:#ecf2e2;border-radius:15px;padding:17px 24px;margin:24px 0}.parent-stats>div{flex:1}.parent-stats b{font:italic 27px Georgia,serif;color:#75986b;display:block}.parent-stats span{font-size:11px;color:#95a185}.settings-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:15px 24px}.settings-grid label,.note-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#8d987d}.settings-grid input:not([type=checkbox]),.settings-grid select,textarea{min-height:42px;background:#fffef9;border:1px solid #dde5d1;border-radius:8px;padding:9px 12px;font-size:13px;max-width:100%}.settings-grid .checkbox-label{flex-direction:row;align-items:center}.checkbox-label input{width:19px;height:19px;accent-color:#81a87b}input[type=range]{accent-color:#85ac7e}.parent-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.parent-buttons button,.import-label,#save-note{background:#eff3e5;padding:10px 15px;border:1px solid #dbe5ce;border-radius:8px;font-size:12px;min-height:42px}.parent-buttons .parent-primary{background:#7fa174;color:#fffdf1}.import-label{position:relative;overflow:hidden;cursor:pointer}.import-label input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.import-label:focus-within{outline:3px solid #dfb565}.parent-small{font-size:11px;line-height:1.9;color:#98a087;margin:13px 0 21px}details{border-top:1px solid #e5ead9;padding:20px 0}summary{cursor:pointer;color:#738a68;font-size:15px;font-weight:bold;min-height:36px}.parent-chapter{margin:22px 0}.parent-chapter h3{font-size:17px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.parent-chapter h3 small{font-size:10px;font-weight:normal;color:#9eaa8d}.parent-week-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.parent-week{background:#f4f5e8;border:1px solid #e0e6d2;padding:14px;text-align:left;border-radius:12px;display:flex;flex-direction:column;gap:7px}.parent-week.selected{border:2px solid #b6c49b;padding:13px;background:#edf2df}.parent-week>span{font-size:9px;color:#a0aa8d}.parent-week>strong{font-size:12px;font-weight:bold;color:#738567}.parent-week>small{font-size:10px;line-height:1.7;color:#96a186}.parent-week>em{font-size:8px;font-style:normal;color:#aaa582;margin-top:auto}.note-label{margin:15px 0}textarea{width:100%;min-height:90px;resize:vertical}.game-mode .header-progress{top:30px}
@keyframes wave{50%{height:21px}}@keyframes handTap{50%{translate:0 -9px;rotate:-5deg}}@keyframes pop{from{transform:scale(.4) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@keyframes checkGlow{50%{box-shadow:0 6px 0 #5e9676,0 0 0 12px #f6d58077}}@media(prefers-reduced-motion:no-preference){.tap-hand{animation:handTap 1.5s ease-in-out infinite}.floating-stamp{animation:float 5s ease-in-out infinite}.stamp-two{animation-delay:-2s}@keyframes float{50%{translate:0 -7px}}}.replay-button.speaking{box-shadow:0 0 0 4px #cce0b644}
@media(max-width:1100px){.home-copy{left:5%;top:24%;width:310px}.home-copy h1{font-size:34px;letter-spacing:1px}.home-mode #world{left:20%;width:80%}.home-copy>p{font-size:11px}.island-header{padding:25px 30px}.island-brand strong{font-size:19px}.island-footer{left:30px;right:30px}.world-caption{font-size:9px;left:49%;bottom:12%;padding:9px 13px}.stamp-one{left:47%;top:19%}.stamp-two{right:4%;bottom:24%}.speech-bubble{top:139px;width:65vw}.game-nav{left:25px;right:117px;top:93px}.bottom-controls{left:25px;right:25px;bottom:24px}.parent-week-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.island-header{height:83px;padding:22px 20px}.island-brand{gap:10px}.island-brand strong{font-size:17px;letter-spacing:2px}.island-brand small{font-size:6px;letter-spacing:1.4px;margin-top:5px}.brand-bunny{transform:scale(.85);transform-origin:left center;margin-right:-5px}.header-progress{left:auto;right:94px;transform:none;font-size:11px;gap:4px}.header-progress .progress-label{display:none}.header-progress b{font-size:19px}.mini-star{width:21px;height:21px}.parent-entry{padding:8px 10px;min-width:50px;border-radius:18px;font-size:10px;gap:5px}.parent-entry svg{width:18px;height:18px}.home-mode #world{left:0;width:100%;top:10%;height:76%}.home-copy{left:0;right:0;top:12%;width:auto;display:flex;align-items:center;flex-direction:column;text-align:center;pointer-events:none}.home-copy .tiny-label{font-size:7px;letter-spacing:2px}.home-copy h1{font-size:30px;line-height:1.4;letter-spacing:2px;margin:9px 0 7px}.home-copy h1 br{display:block}.home-copy>p{display:none}.play-wrap{position:fixed;left:calc(50% - 54px);top:auto;bottom:12%;margin:0;width:120px;height:96px}.big-play{width:108px;height:84px;border-radius:29px}.home-parent-note{position:fixed;left:0;right:0;bottom:8.7%;font-size:9px;text-align:center;margin:0}.home-chips{display:none}.world-caption{left:50%;transform:translateX(-50%);bottom:27.5%;font-size:8px;gap:7px;padding:7px 11px}.stamp-one{left:7%;top:34%;font-size:20px;padding:6px 11px}.stamp-one>span,.stamp-two>span{font-size:9px}.stamp-two{right:6%;bottom:35%;padding:6px 11px;font-size:20px}.orb-one{width:130px;height:130px;top:23%;right:5%;box-shadow:0 0 40px 12px #fff5cc8f}.island-footer{bottom:21px;left:15px;right:15px;font-size:8px;justify-content:center;flex-direction:column;gap:5px}.island-footer span{font-size:7px;color:#9dad92}.game-mode .island-header{height:65px;padding:19px 17px 10px}.game-mode .island-brand{transform:scale(.8)}.game-mode .parent-entry{transform:scale(.95)}.game-mode .header-progress{display:none}.game-mode #world{top:120px;height:calc(100% - 180px)}.game-nav{left:18px;right:18px;top:77px}.icon-button{width:45px;height:45px;border-radius:16px}.icon-button svg{width:24px;height:24px}.round-stars{top:-2px;padding:8px 14px;gap:7px}.round-stars>span{width:24px;height:24px}.speech-bubble{top:137px;width:calc(100% - 35px);max-width:590px;min-height:71px;border-radius:20px;padding:10px 12px;gap:9px}.speech-text>p{font-size:10px;line-height:1.7;-webkit-line-clamp:2}.speech-text>span{font-size:8px}.voice-avatar{width:33px;height:33px;font-size:24px}.replay-button{width:34px;height:34px}.replay-button svg{width:21px;height:21px}.voice-wave{width:17px;gap:2px}.voice-wave i{width:3px}.bottom-controls{left:20px;right:20px;bottom:25px}.check-button{width:73px;height:65px;border-radius:23px}.check-button svg{width:36px;height:36px}.task-counter{padding:6px 19px;gap:8px}.task-counter b{font-size:23px}.task-counter strong{font-size:17px}.game-feedback{right:7%;top:30%}.success-star{height:60px;width:60px}.retry-flower{font-size:44px}.tutorial-hand{width:38px;height:46px}.reward-card{padding:32px 22px;border-radius:30px}.reward-card h2{font-size:23px}.reward-card p{font-size:11px}.reward-stars{margin:18px 0}.reward-stars svg{width:36px;height:36px}.reward-stars svg:nth-child(2){width:65px;height:65px}.reward-card .reward-play{position:relative;left:auto;bottom:auto;top:auto}dialog{width:94vw;padding:28px 20px;border-radius:21px;max-height:93dvh}dialog h2{font-size:22px;line-height:1.6;margin-top:10px}.parent-intro{font-size:12px;line-height:1.9}.parent-stats{gap:12px;padding:15px}.parent-stats b{font-size:24px}.parent-stats span{font-size:9px}.settings-grid{grid-template-columns:1fr;gap:15px}.parent-week-grid{grid-template-columns:repeat(2,1fr);gap:9px}.parent-week{padding:11px}.parent-week.selected{padding:10px}.parent-week>strong{font-size:11px}.parent-week>small{font-size:9px}.parent-chapter h3{font-size:15px;display:block}.parent-chapter h3 small{display:block;margin-top:5px}.parent-buttons{gap:8px}.parent-buttons button,.import-label{font-size:11px;padding:9px 12px}.parent-small{font-size:10px}#webgl-error{width:90vw}#webgl-error h2{font-size:22px}}
@media(max-height:680px) and (min-width:761px){.home-copy{top:22%}.home-copy h1{font-size:32px;margin:8px 0 12px}.home-copy>p{font-size:11px}.play-wrap{margin-top:20px;height:80px}.big-play{height:72px;width:96px;border-radius:26px}.home-parent-note{margin-top:14px}.home-chips{margin-top:13px}.game-mode #world{top:70px;height:calc(100% - 85px)}.speech-bubble{top:105px;min-height:63px;padding:8px 14px;width:54vw}.game-nav{top:86px}.bottom-controls{bottom:20px}.speech-text>p{font-size:10px}.check-button{height:60px;width:67px;border-radius:20px}.island-footer{bottom:14px}.world-caption{bottom:9%}.home-mode #world{top:0;height:100%}.stamp-one{top:16%}.header-progress{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The map is a child's visible game menu. All islands are immediately playable. */
.game-mode #world,.gift-mode #world{transition:none}
.home-mode #world{left:64%;top:5%;width:33%;height:31%;pointer-events:auto;transition:none}.home-mode .island-footer{display:none}.home-mode .header-progress{left:58%}.home-mode .sky-orb{opacity:.7}.map-intro{position:absolute;left:5%;top:14%;z-index:2;width:56%;pointer-events:none}.map-intro h1{font-size:clamp(29px,3vw,45px);color:#42685e;letter-spacing:2px;margin:8px 0 5px}.map-intro h1 span{color:#bd856e}.map-intro>p{font-size:13px;color:#789182;margin:10px 0 18px}.map-actions{display:flex;gap:11px;align-items:center;pointer-events:auto}.journey-start,.map-tool{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:19px;min-height:49px;padding:10px 18px;border:2px solid #fffbee;font-size:13px}.journey-start{background:#75ac91;color:#fff8df;box-shadow:0 4px 0 #548c74}.journey-start svg{width:25px;height:25px}.map-tool{background:#fff9ecd9;color:#7b9382;box-shadow:0 3px 0 #d1dfc8}.map-tool svg{width:23px;height:23px}.map-tool b{font-family:Georgia,serif;font-weight:normal}.map-area{position:absolute;left:5%;right:5%;top:36%;bottom:3%;z-index:3;display:flex;flex-direction:column}.map-legend{display:flex;align-items:center;justify-content:space-between;padding:0 3px 13px;color:#7a9481;font-size:12px;letter-spacing:1px}.map-legend small{font-size:10px;color:#93a18c}.adventure-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,minmax(125px,1fr));gap:17px;min-height:0;flex:1;overflow:auto;padding:0 3px 8px;scrollbar-width:thin;scrollbar-color:#b6cab5 transparent;overscroll-behavior:contain}.adventure-card{border:2px solid #fffdf0;background:linear-gradient(140deg,#fff9eef5,#fffcf0b8);box-shadow:0 5px 0 color-mix(in srgb,var(--tile) 62%,#9ea98c 38%),0 10px 18px #7b907e0a;border-radius:26px;display:flex;align-items:center;position:relative;min-width:0;padding:6px 12px 7px 3px;text-align:left;overflow:hidden;isolation:isolate}.adventure-card:before{content:'';position:absolute;left:-25%;top:-30%;width:85%;height:145%;background:var(--tile);opacity:.2;border-radius:50%;z-index:-1}.adventure-card:hover{transform:translateY(-4px);background:#fffaf0}.adventure-card:active{transform:translateY(2px)}.adventure-art{width:49%;flex-shrink:0;display:block;transition:transform .3s}.adventure-art>svg{width:100%;height:auto;display:block;filter:drop-shadow(0 3px 0 #ae9b7720)}.adventure-card:hover .adventure-art{transform:rotate(-5deg) scale(1.05)}.adventure-copy{display:flex;flex-direction:column;gap:7px;position:relative;z-index:1;min-width:0}.adventure-copy>small{font:8px Georgia,serif;letter-spacing:1.5px;color:#9eac94}.adventure-copy>strong{font-size:clamp(13px,1.18vw,18px);letter-spacing:1px;color:#5d7869;white-space:nowrap}.adventure-copy>span{font-size:9px;line-height:1.7;color:#91a087}.adventure-copy>i{display:flex;gap:4px;font-style:normal;margin-top:1px}.adventure-copy>i b{font-size:12px;color:#d8ddcb}.adventure-copy>i b.lit{color:#d7ac57}.card-go{position:absolute;right:12px;bottom:11px;border-radius:50%;background:var(--tile);width:25px;height:25px;color:#fff8ed;display:flex;align-items:center;justify-content:center}.card-go svg{width:21px;height:21px}.owned-toy{position:absolute;right:14px;top:10px;font-size:18px;color:#c4a15b}.game-mode .speech-bubble{min-height:59px;width:min(485px,65vw);padding:9px 14px}.game-mode .speech-text>p{font-size:13px;-webkit-line-clamp:1;color:#69856e}.game-mode .speech-text>span{font-size:8px}.game-mode .voice-avatar{height:36px;width:36px;font-size:24px}.next-round{position:absolute;z-index:7;right:33px;bottom:122px;width:66px;height:58px;display:flex;align-items:center;justify-content:center;color:#fff9dc;background:#e5be77;border:3px solid #fff9e9;border-radius:20px;box-shadow:0 5px 0 #cda665}.next-round svg{width:35px;height:35px}.gift-mode #world{left:0;top:11%;width:100%;height:80%;filter:none;opacity:1}.gift-mode .island-footer{display:none}.gift-heading{position:absolute;left:20px;right:20px;top:17%;text-align:center;z-index:4;pointer-events:none}.gift-heading h2{font-size:32px;letter-spacing:2px;color:#557863;margin:12px 0}.gift-heading p{font-size:13px;color:#8ba081}.gift-actions{position:absolute;left:0;right:0;bottom:7%;display:flex;justify-content:center;z-index:5}.gift-actions .journey-start{min-width:165px;min-height:58px}.catalog-groups section{margin:25px 0}.catalog-groups h3{font-size:16px;margin-bottom:12px;color:#77916e}.catalog-levels{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}.catalog-levels button{position:relative;background:#f1f3e2;border:1px solid #dfe6cd;border-radius:19px;min-height:160px;padding:10px;display:flex;flex-direction:column;align-items:center}.catalog-levels button:hover{background:#e3eed6}.catalog-levels svg{width:95px;height:88px}.catalog-levels b{position:absolute;top:11px;left:12px;color:#86a078;font:italic 21px Georgia,serif}.catalog-levels span{font-size:11px;line-height:1.7;margin-top:7px;color:#819473}.toy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:22px 0}.toy-grid button{background:#f1f3e3;border-radius:18px;padding:8px 12px 20px;border:1px solid #e4e8d4}.toy-grid svg{width:100%;max-width:170px}.toy-grid strong{display:block;font-size:12px;color:#7b9371}.toy-grid .unowned svg{filter:grayscale(1);opacity:.2}.toy-grid .unowned strong{color:#b9c3ac}.hint-button.glow{box-shadow:0 0 0 9px #ebc98355}
@media(max-width:1100px){.map-intro{top:13%}.map-intro h1{font-size:32px}.map-intro>p{font-size:11px;margin:7px 0 13px}.map-area{top:35%;left:4%;right:4%}.adventure-grid{gap:13px}.adventure-card{border-radius:22px;padding-right:8px}.adventure-copy{gap:5px}.adventure-copy>strong{font-size:13px;letter-spacing:0}.adventure-copy>span{font-size:8px}.journey-start,.map-tool{font-size:11px;padding:9px 11px;min-height:44px}.map-actions{gap:7px}.card-go{right:9px;bottom:8px;width:21px;height:21px}.adventure-copy>i b{font-size:10px}.catalog-levels{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.home-mode #world{left:44%;top:7%;width:56%;height:26%}.home-mode .header-progress{display:none}.map-intro{left:6%;top:12%;width:91%;pointer-events:none}.map-intro .tiny-label{font-size:6px;letter-spacing:1px;max-width:170px;line-height:1.8}.map-intro h1{font-size:25px;max-width:175px;line-height:1.45;margin-top:10px}.map-intro>p{font-size:9px;margin:7px 0 0}.map-actions{position:fixed;bottom:0;left:0;right:0;z-index:8;padding:11px 12px 17px;background:#e9f1e1ed;border-top:1px solid #fffbee;backdrop-filter:blur(10px);gap:7px;justify-content:center}.journey-start,.map-tool{padding:8px 11px;min-height:46px;font-size:10px;border-radius:16px;gap:6px}.journey-start svg,.map-tool svg{width:21px;height:21px}.map-tool b{display:none}.map-area{top:32%;left:4%;right:4%;bottom:86px}.map-legend{padding-bottom:13px;font-size:10px;letter-spacing:0}.map-legend small{font-size:8px}.adventure-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:none;grid-auto-rows:142px;gap:15px 11px;padding:1px 2px 10px}.adventure-card{padding:5px 8px 10px;display:flex;flex-direction:column;justify-content:flex-start;border-radius:23px;overflow:visible}.adventure-card:before{inset:0;width:100%;height:100%;border-radius:23px;opacity:.16}.adventure-art{width:94px;height:84px;position:relative;margin-top:-4px}.adventure-art svg{height:100%;width:100%}.adventure-copy{align-items:center;text-align:center;gap:4px}.adventure-copy>small,.adventure-copy>i{display:none}.adventure-copy>strong{font-size:13px;letter-spacing:1px}.adventure-copy>span{font-size:8px;white-space:nowrap}.card-go{right:9px;bottom:9px;width:18px;height:18px;opacity:.75}.card-go svg{width:14px;height:14px}.owned-toy{right:9px;top:7px;font-size:15px}.catalog-levels{grid-template-columns:repeat(3,1fr);gap:8px}.catalog-levels button{min-height:131px;border-radius:14px;padding:8px 5px}.catalog-levels svg{width:72px;height:73px}.catalog-levels b{font-size:17px;top:6px;left:6px}.catalog-levels span{font-size:9px}.toy-grid{grid-template-columns:repeat(2,1fr);gap:12px}.toy-grid strong{font-size:11px}.game-mode .speech-bubble{width:calc(100% - 35px);min-height:61px}.game-mode .speech-text>p{font-size:11px;-webkit-line-clamp:2}.next-round{right:24px;bottom:107px;width:54px;height:49px}.gift-heading{top:16%}.gift-heading h2{font-size:26px}.gift-heading p{font-size:11px}.gift-mode #world{height:71%;top:17%}.gift-actions{bottom:10%}}
@media(max-height:680px) and (min-width:761px){.map-intro{top:16%}.map-intro h1{font-size:27px;margin:4px 0}.map-intro>p{display:none}.map-actions{margin-top:12px}.map-area{top:39%;bottom:3%}.adventure-grid{grid-template-rows:none;grid-auto-rows:132px}.home-mode #world{top:6%;height:34%}.map-legend{padding-bottom:10px}.gift-heading{top:15%}.gift-heading h2{font-size:25px}.gift-actions{bottom:5%}}

/* Separate the narration, play surface and controls into non-overlapping bands. */
#island-app{background:radial-gradient(ellipse at 75% 20%,#fff3ce88,transparent 55%),linear-gradient(150deg,#f2f6ec,#dceee7 65%,#e7f0d9)}
.island-header{height:76px;padding:20px 32px}.island-brand strong{color:#345f58}.parent-entry{color:#436c62;background:#fffaf1;border:2px solid white;min-height:44px}.tiny-label{color:#698d81}
.game-mode #world,.toy-mode #world{left:16px;top:195px;width:calc(100% - 32px);height:calc(100% - 290px);border-radius:32px;overflow:hidden;box-shadow:inset 0 0 0 2px #fffef580;background:radial-gradient(ellipse at 50% 20%,#fffcf1,#e2eddd);transition:none;filter:none;opacity:1}
.game-mode .island-header,.toy-mode .island-header{height:70px;padding:18px 28px}.game-mode .header-progress{top:28px;display:flex;gap:10px}.header-progress .level-name{color:#4d756a}.game-mode .island-brand{transform:scale(.85)}
.game-mode .game-nav{top:75px;left:26px;right:26px;height:48px}.game-mode .icon-button,.toy-mode .icon-button{width:48px;height:48px;border-radius:17px;color:#548e7c;background:#fffdf5}.game-mode .round-stars{position:absolute;top:0;left:50%;height:47px;padding:8px 19px;display:flex;align-items:center;gap:16px;background:#fff9e9;border:2px solid white;white-space:nowrap}.round-stars>strong{font-size:22px;color:#568376}.round-stars>strong small{font-size:12px;color:#98a597}.progress-beads{display:flex;gap:6px}.progress-beads i{width:10px;height:10px;border-radius:50%;background:#d9e2d2}.progress-beads i:nth-child(4n){margin-right:5px}.progress-beads i.earned{background:#eab944}.progress-beads i.current{background:#df8b9f;box-shadow:0 0 0 3px #f5dce4}
.game-mode .speech-bubble{top:133px;left:50%;width:min(830px,calc(100% - 48px));height:53px;min-height:53px;padding:5px 12px;gap:10px;border-radius:18px;box-shadow:0 3px 0 #c4d7c738;background:#fffdf7;pointer-events:none}.game-mode .speech-bubble:after{display:none}.game-mode .voice-avatar{width:34px;height:34px;font-size:25px}.game-mode .speech-text>span{display:none}.game-mode .speech-text>p{font-size:14px;color:#426657;line-height:1.5;margin:0}.game-mode .replay-button{width:43px;height:43px;flex-shrink:0;background:#e3efdc;color:#599075}.game-mode .bottom-controls{bottom:14px;left:30px;right:30px;height:66px}.game-mode .check-button{width:73px;height:64px}.game-mode .next-round{right:125px;bottom:22px;width:60px;height:52px;z-index:6}.game-feedback{right:8%;top:auto;bottom:21%;opacity:.8}.game-mode .sky-orb,.toy-mode .sky-orb{display:none}
.test-badge{font-size:10px;background:#fff0bd;padding:6px 9px;border-radius:10px;color:#95763b}.gate-sum{display:flex;align-items:center;gap:12px;font-size:26px;margin:30px 0}.gate-sum input{width:110px;height:56px;border:2px solid #b9d3c4;border-radius:14px;background:white;text-align:center;font-size:25px}#gate-error{min-height:30px;color:#af696b}#parent-dialog>p{font-size:13px;line-height:1.8;color:#698172}#parent-dialog h3{margin:24px 0 16px}#test-index{margin:0 0 20px 10px;padding:8px;border-radius:8px}.parent-week:hover{border-color:#73b595;background:#e8f2df}
.route-mode #world{left:66%;top:70px;width:31%;height:208px;pointer-events:auto}.route-mode .header-progress{left:56%;display:flex}.route-intro{position:absolute;left:5%;top:98px;width:59%;pointer-events:none}.route-intro h1{font-size:clamp(25px,2.9vw,41px);color:#365f55;line-height:1.5;margin:8px 0 5px;letter-spacing:1px}.route-intro h1 span{color:#b47c72}.route-intro p{font-size:12px;color:#779787;letter-spacing:1px}.route-actions{display:flex;gap:12px;margin-top:20px;pointer-events:auto}.journey-start{background:#67a68e;border:2px solid #ffffec;box-shadow:0 4px 0 #47896f;font-weight:bold}.map-tool{color:#648673;background:#fff8e9}.route-scroll{position:absolute;left:5%;right:5%;top:300px;bottom:12px;overflow:auto;overscroll-behavior:contain;padding:0 10px 25px 0;scrollbar-width:thin;scrollbar-color:#a9c4b3 transparent}.route-summary{display:flex;align-items:center;justify-content:space-between;margin:8px 5px 19px;font-size:13px;color:#4d7364}.route-summary span{font-size:11px;color:#7a9583}.route-region{display:flex;gap:20px;margin-bottom:23px;padding:18px 20px;background:linear-gradient(115deg,color-mix(in srgb,var(--region) 25%,#fffdf6),#fffdf7ea);border:2px solid #fffdf4;border-radius:29px;box-shadow:0 5px 0 #acbfaa27;align-items:center}.region-art{width:128px;flex-shrink:0;display:flex;flex-direction:column;align-items:center}.region-art>svg{width:106px;height:93px}.region-art strong{font-size:13px;letter-spacing:1px;color:#547462}.region-art small{font-size:10px;color:#8b987e;margin-top:6px}.route-levels{display:grid;grid-template-columns:repeat(5,minmax(80px,1fr));gap:18px;align-items:start;flex:1;min-width:0}.route-level{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;background:transparent;padding:9px 1px 5px;min-width:0}.route-level .level-number{position:relative;background:var(--region);width:66px;height:65px;display:flex;justify-content:center;align-items:center;border-radius:24px;border:3px solid #fffdf4;box-shadow:0 5px 0 color-mix(in srgb,var(--region),#699376 27%);font:900 27px 'Trebuchet MS',sans-serif;color:#fffdf3;transition:transform .2s}.route-level:hover .level-number{transform:translateY(-3px) rotate(-5deg)}.route-level>strong{font-size:11px;color:#63806b;line-height:1.6;text-align:center}.route-level>small{font-size:9px;color:#9aaa93}.route-level.available .level-number{background:#72b59a;box-shadow:0 5px 0 #51987c,0 0 0 7px #a3d3b638}.route-level.complete .level-number{background:#eabe62;box-shadow:0 5px 0 #cda04b}.route-level.pending .level-number{background:#e0e5d9;color:#a3b09f;box-shadow:0 4px 0 #c9d3c2}.route-level.pending>strong{color:#8c9d86}.lock-mark{position:absolute;right:-7px;bottom:-5px;border-radius:50%;background:#f5f6eb;color:#a4b39a;width:24px;height:24px;padding:5px}.lock-mark svg{height:14px;width:14px}.route-mode .island-footer{display:none}
.toy-mode .island-footer{display:none}.toy-mode #world{top:153px;height:calc(100% - 246px)}.toy-top{position:absolute;top:84px;left:27px;right:27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.toy-top p{background:#fffaf1;padding:16px 25px;border-radius:20px;text-align:center;font-size:14px;color:#527762}.toy-bottom{position:absolute;left:0;right:0;bottom:20px;display:flex;justify-content:center;gap:15px}.toy-grid small{display:block;margin-top:10px;color:#879779}.gift-mode #world{left:16px;top:220px;width:calc(100% - 32px);height:calc(100% - 335px);border-radius:35px;overflow:hidden}.gift-heading{top:108px}.gift-heading h2{font-size:29px;margin:9px 0}.gift-actions{bottom:30px;gap:15px}
@media(max-width:760px){.island-header{padding:18px 17px;height:70px}.game-mode .island-header,.toy-mode .island-header{padding:18px 16px;height:64px}.game-mode .header-progress,.toy-mode .header-progress{display:none}.game-mode .game-nav{top:69px;left:17px;right:17px}.game-mode .round-stars{padding:6px 10px;gap:10px;height:43px}.progress-beads{gap:3px}.progress-beads i{width:6px;height:6px}.progress-beads i:nth-child(4n){margin-right:3px}.round-stars>strong{font-size:19px}.round-stars>strong small{font-size:10px}.game-mode .speech-bubble{top:123px;width:calc(100% - 28px);height:63px;min-height:63px;gap:7px}.game-mode .speech-text>p{font-size:11px;line-height:1.65;-webkit-line-clamp:3}.game-mode .voice-wave{display:none}.game-mode .voice-avatar{width:27px;height:27px;font-size:21px}.game-mode #world{left:7px;top:197px;width:calc(100% - 14px);height:calc(100% - 290px);border-radius:22px}.game-mode .bottom-controls{left:19px;right:19px;bottom:16px}.game-mode .next-round{right:111px;bottom:23px;width:49px;height:48px}.route-mode .header-progress{display:none}.route-mode #world{left:65%;top:75px;width:35%;height:142px}.route-intro{left:5%;top:92px;width:93%}.route-intro .tiny-label{font-size:6px;letter-spacing:1px}.route-intro h1{font-size:24px;max-width:240px;line-height:1.6}.route-intro h1 span{display:block}.route-intro p{font-size:9px;margin-top:9px;letter-spacing:0}.route-actions{position:fixed;bottom:0;left:0;right:0;padding:11px 13px 19px;justify-content:center;background:#edf3e5f5;z-index:8;margin:0;border-top:2px solid #fffcf3}.route-actions button{min-height:47px;font-size:12px}.route-scroll{top:244px;left:4%;right:4%;bottom:88px;padding-right:0}.route-summary{font-size:11px;gap:10px;margin-bottom:15px}.route-summary span{font-size:8px;max-width:142px;text-align:right}.route-region{display:block;padding:12px 13px 20px;gap:0;margin-bottom:18px;border-radius:24px}.region-art{width:100%;display:grid;grid-template-columns:65px 1fr;grid-template-rows:26px 24px;text-align:left;margin-bottom:12px}.region-art svg{width:63px;height:59px;grid-row:span 2}.region-art strong{font-size:13px;align-self:end}.region-art small{font-size:10px;margin:0;align-self:center}.route-levels{grid-template-columns:repeat(3,minmax(70px,1fr));gap:12px 8px}.route-level .level-number{height:55px;width:56px;border-radius:20px;font-size:23px}.route-level>strong{font-size:9px}.route-level>small{font-size:8px}.route-level{gap:6px;padding:7px 0}.toy-top{top:76px;left:14px;right:14px;gap:7px}.toy-top p{font-size:10px;line-height:1.7;padding:10px 12px;flex:1}.toy-top .icon-button{flex-shrink:0}.toy-mode #world{top:155px;left:7px;width:calc(100% - 14px);height:calc(100% - 253px)}.toy-bottom{gap:10px}.toy-bottom button{font-size:11px;min-height:47px}.gift-heading{top:100px}.gift-heading h2{font-size:24px}.gift-mode #world{top:205px;height:calc(100% - 320px)}.gift-actions{bottom:28px}.gift-actions button{min-width:130px;font-size:12px}.parent-week-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-height:680px) and (min-width:761px){.route-intro{top:89px}.route-intro h1{font-size:29px}.route-scroll{top:258px}.route-mode #world{height:170px}.game-mode #world{top:184px;height:calc(100% - 271px)}.game-mode .speech-bubble{top:126px}.game-mode .game-nav{top:72px}.game-mode .bottom-controls{bottom:10px}}

/* A picture-book cover, twelve destinations, then a quiet small-level chooser. */
.storybook-mode{background:radial-gradient(ellipse at 8% 8%,#fff7dc,transparent 45%),linear-gradient(150deg,#f7f5e9,#e7f1e6 68%,#e1ede3)!important}
.storybook-mode #world{visibility:hidden;pointer-events:none}.storybook-mode .island-footer,.storybook-mode .sky-orb{display:none}.storybook-mode .island-header{height:78px;padding:20px 4.5%}.storybook-mode .header-progress{left:auto;right:173px;transform:none;color:#91a18a;font-size:11px}.storybook-mode .header-progress b{font-style:normal;font-family:var(--font);font-size:16px}.storybook-mode .island-brand strong{font-size:21px}.storybook-mode .parent-entry{box-shadow:0 3px 0 #d8e3cd70;color:#77917b}.storybook-hero{position:absolute;top:87px;left:4.5%;right:4.5%;height:265px;border-radius:37px;background:#ebf3e6;overflow:hidden;box-shadow:inset 0 0 0 2px #fff9e6,0 8px 25px #7187680b}.hero-copy{position:absolute;top:40px;left:35px;z-index:2;pointer-events:none}.hero-copy .tiny-label{font-size:8px;letter-spacing:2px;color:#829675}.hero-copy h1{font-size:41px;letter-spacing:2px;color:#3b6654;line-height:1.45;margin:12px 0 9px}.hero-copy h1 span{color:#c5867d}.hero-copy p{font-size:12px;color:#789079;letter-spacing:1px}.hero-actions{display:flex;align-items:center;gap:13px;margin-top:24px;pointer-events:auto}.hero-actions .journey-start{font-size:13px;min-height:49px;padding:10px 23px;background:#71a98d;box-shadow:0 4px 0 #58896f}.hero-actions .map-tool{font-size:12px;min-height:49px;border:2px solid #fffefa;background:#fff9eac9}.hero-actions .map-tool b{font:12px var(--font);background:#e5ebd3;padding:3px 6px;border-radius:10px}.hero-picture{position:absolute;right:0;top:0;width:59%;height:100%;background-image:var(--island-hero);background-size:cover;background-position:50% 43%;mask-image:linear-gradient(90deg,transparent,black 23%);-webkit-mask-image:linear-gradient(90deg,transparent,black 23%)}.hero-spark{position:absolute;color:#e1bd70;font-size:30px;z-index:2;pointer-events:none}.spark-a{top:32px;left:38%;transform:rotate(-12deg)}.spark-b{bottom:30px;left:45%;font-size:23px}
.theme-area{position:absolute;top:379px;left:4.5%;right:4.5%;bottom:21px;display:flex;flex-direction:column;min-height:0}.theme-heading{display:flex;align-items:center;justify-content:space-between;padding:0 6px 15px;color:#577c68;font-size:13px;letter-spacing:1px}.theme-heading small{font-size:10px;color:#91a188;letter-spacing:.5px}.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(115px,1fr));gap:16px;min-height:0;overflow:auto;padding:1px 3px 9px;scrollbar-width:thin;scrollbar-color:#bbceb5 transparent}.theme-card{position:relative;display:flex;align-items:center;gap:2px;background:linear-gradient(125deg,color-mix(in srgb,var(--tile) 19%,#fff9ec),#fffdf5);border:2px solid #fffdf5;border-radius:26px;box-shadow:0 5px 0 color-mix(in srgb,var(--tile) 34%,#ccd2b9),0 8px 12px #77866609;padding:9px 11px;min-width:0;isolation:isolate;overflow:hidden;text-align:left}.theme-card:before{content:'';position:absolute;left:-40px;top:-25px;width:155px;height:155px;border-radius:50%;background:var(--tile);opacity:.10;z-index:-1}.theme-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 color-mix(in srgb,var(--tile) 45%,#c3ceb5),0 12px 20px #6d886515}.theme-card:active{transform:translateY(2px)}.theme-art{width:43%;flex-shrink:0;filter:drop-shadow(0 5px 1px #89744514);transition:transform .22s}.theme-art svg{width:100%;height:auto;display:block;filter:saturate(1.13)}.theme-card:hover .theme-art{transform:rotate(-5deg) scale(1.05)}.theme-copy{display:flex;flex-direction:column;gap:9px;min-width:0}.theme-copy strong{font-size:clamp(12px,1.2vw,17px);color:#4f745e;letter-spacing:1px;white-space:nowrap}.theme-copy small{color:#889a7d;font-size:10px;white-space:nowrap}.theme-dots{display:flex;gap:4px;margin-top:3px}.theme-dots i{width:5px;height:5px;border-radius:50%;background:#d3ddc6}.theme-dots i.done{background:#dcb965}.theme-dots i.current{background:#87b79b;box-shadow:0 0 0 2px #c8dec1}.theme-enter{position:absolute;right:11px;bottom:9px;width:23px;height:23px;border-radius:50%;padding:4px;color:#91a28c;background:#f4f6e8}.theme-enter svg{width:100%;height:100%}.theme-current{border-color:#b2d0b3;background:linear-gradient(120deg,#e4edcf,#fff9e6)}.theme-ribbon{position:absolute;right:0;top:0;border-radius:0 20px 0 11px;background:#a6c3a2;color:white;font-size:8px;padding:5px 10px;letter-spacing:1px}.theme-current .theme-enter{background:#82b195;color:white}
.theme-sheet-heading{display:flex;align-items:center;gap:24px;padding:12px 20px 21px;border-radius:20px;background:linear-gradient(110deg,color-mix(in srgb,var(--tile) 20%,#fffaf1),#fffcf7)}.theme-sheet-heading>div{width:135px;flex-shrink:0}.theme-sheet-heading svg{width:100%;height:123px}.theme-sheet-heading h2{margin:6px 0;color:#4f785d}.theme-sheet-heading p{font-size:12px;color:#859477}.small-level-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:17px;padding-top:30px}.small-level{display:flex;flex-direction:column;align-items:center;gap:11px;padding:25px 13px 19px;border:2px solid #f0efdd;border-radius:24px;background:#f4f5e9;min-height:250px;box-shadow:0 5px 0 #d9deca}.small-level-medallion{display:flex;align-items:center;justify-content:center;width:71px;height:71px;background:#e0e5d5;border:3px solid white;border-radius:26px;box-shadow:0 5px 0 #cbd6bc;color:#99ab90}.small-level-medallion svg{width:32px;height:32px}.small-level>small{font-size:11px;color:#99a288}.small-level>strong{font-size:14px;color:#68825e;text-align:center;line-height:1.6}.small-level .focus-label{font-size:10px;color:#99a18c;line-height:1.7;text-align:center;max-width:150px}.small-level em{font-size:9px;font-style:normal;color:#a7aa92;margin-top:auto}.small-level.available{background:#eff4df;border-color:#bfd5b1}.small-level.available .small-level-medallion{background:#8cb596;color:#fffdf0;box-shadow:0 5px 0 #6a9977}.small-level.done .small-level-medallion{background:#edcd89;color:white;box-shadow:0 5px 0 #d7b16b}.small-level:hover{transform:translateY(-3px)}.small-level.locked{opacity:.76}
/* Keep the voice lane outside the scene, but remove the boxed worksheet feeling. */
.game-mode #island-app{background:#ebf3e6}.game-mode #world,.toy-mode #world{border-radius:30px;background:radial-gradient(ellipse at 50% 40%,#f8f8df,#ddecd7 75%);box-shadow:inset 0 0 0 2px #ffffff88}.game-mode .speech-bubble{background:#fffbed;box-shadow:0 4px 0 #cfdbc72b;border:2px solid white}.game-mode .speech-text>p{color:#5f775d}.game-mode .voice-avatar{background:#f5dcae;color:#c9936c}.game-mode .round-stars{background:#fff9e9}.game-mode .progress-beads i.current{background:#d796a9}.game-mode .check-button{background:linear-gradient(#92c1a0,#71a78a)}
@media(min-width:1500px){.storybook-hero{height:290px}.hero-copy{top:43px;left:46px}.hero-copy h1{font-size:48px}.hero-picture{width:60%}.theme-area{top:406px}.theme-art{max-width:146px}.theme-card{padding:15px 18px}.theme-copy strong{font-size:18px}}
@media(max-width:1000px) and (min-width:761px){.storybook-hero{height:241px}.hero-copy{left:25px;top:30px}.hero-copy h1{font-size:34px}.hero-copy p{font-size:10px}.hero-actions{gap:8px}.hero-actions button{padding:9px 12px!important}.hero-picture{width:55%}.theme-area{top:349px}.theme-grid{gap:13px}.theme-copy strong{font-size:12px;letter-spacing:0}.theme-copy small{font-size:9px}.theme-card{padding:9px 6px}.theme-copy{gap:7px}.theme-heading{padding-bottom:13px}}
@media(max-width:760px){.storybook-mode .island-header{height:72px;padding:18px 19px}.storybook-mode .island-brand strong{font-size:17px}.storybook-mode .header-progress{display:none}.storybook-hero{left:4%;right:4%;top:80px;height:233px;border-radius:27px;background:#e9f0df}.hero-copy{top:20px;left:19px;right:12px}.hero-copy .tiny-label{font-size:5px;letter-spacing:1.4px}.hero-copy h1{font-size:27px;max-width:180px;margin:8px 0 7px;line-height:1.5}.hero-copy h1 span{display:block}.hero-copy p{font-size:8px;letter-spacing:0;max-width:145px;line-height:1.8}.hero-picture{width:74%;background-position:49% 50%;opacity:.95;mask-image:linear-gradient(90deg,transparent,black 35%);-webkit-mask-image:linear-gradient(90deg,transparent,black 35%)}.hero-actions{margin-top:20px;gap:9px}.hero-actions .journey-start,.hero-actions .map-tool{min-height:42px;font-size:10px;padding:7px 12px;border-radius:15px;gap:7px}.hero-actions svg{height:20px;width:20px}.hero-actions .map-tool b{display:none}.hero-spark{display:none}.theme-area{top:333px;left:4%;right:4%;bottom:15px}.theme-heading{font-size:10px;letter-spacing:0;padding:0 4px 13px}.theme-heading small{font-size:8px}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:132px;gap:13px 12px;padding:0 2px 9px}.theme-card{padding:8px 7px;border-radius:22px;gap:0}.theme-art{width:46%}.theme-copy{gap:8px}.theme-copy strong{font-size:11px;letter-spacing:0;white-space:normal;line-height:1.5}.theme-copy small{font-size:8px}.theme-dots{gap:3px}.theme-dots i{width:4px;height:4px}.theme-enter{width:20px;height:20px;bottom:8px;right:8px}.theme-ribbon{font-size:6px;padding:4px 7px}.theme-sheet-heading{padding:9px 5px;gap:10px}.theme-sheet-heading>div{width:85px}.theme-sheet-heading svg{height:90px}.theme-sheet-heading h2{font-size:21px}.theme-sheet-heading p{font-size:9px;line-height:1.8}.theme-sheet-heading .tiny-label{font-size:6px;letter-spacing:1px}.small-level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding-top:20px}.small-level{min-height:221px;padding:19px 8px 15px;gap:9px;border-radius:21px}.small-level>strong{font-size:12px}.small-level .focus-label{font-size:9px}.small-level-medallion{width:61px;height:60px;border-radius:23px}}
@media(max-height:750px) and (min-width:761px){.storybook-hero{height:202px;top:80px}.hero-copy{top:24px}.hero-copy h1{font-size:31px;margin:7px 0}.hero-copy p{font-size:10px}.hero-actions{margin-top:16px}.hero-actions button{min-height:43px!important}.theme-area{top:306px;bottom:14px}.theme-grid{grid-template-rows:repeat(3,minmax(102px,1fr));gap:13px}.theme-heading{padding-bottom:11px}.theme-card{padding:4px 12px}.theme-art{width:40%;max-width:110px}.theme-copy{gap:6px}.theme-copy strong{font-size:13px}.theme-copy small{font-size:9px}}

/* A felt story world: the illustrated set surrounds a clear interactive 3D stage. */
#scene-backdrop{display:none;position:absolute;left:16px;right:16px;top:195px;bottom:95px;border-radius:32px;background-size:100% 100%;background-position:center;box-shadow:0 8px 28px #48695712;overflow:hidden;pointer-events:none}
.game-mode #scene-backdrop,.toy-mode #scene-backdrop,.gift-mode #scene-backdrop{display:block}
.game-mode #world{left:12%;top:calc(195px + (100% - 290px)*.27);width:76%;height:calc((100% - 290px)*.66);border-radius:0;background:none;box-shadow:none}
.toy-mode #world,.gift-mode #world{left:12%;top:calc(170px + (100% - 270px)*.27);width:76%;height:calc((100% - 270px)*.66);background:none;box-shadow:none}
.toy-mode #scene-backdrop,.gift-mode #scene-backdrop{top:170px;bottom:100px}
.game-mode .speech-bubble{max-width:800px;width:70vw;border-radius:25px}.game-mode .voice-avatar{background:#f3e6d1;overflow:hidden;width:55px;height:49px;border-radius:20px}.guide-portrait{display:block;width:55px;height:49px;background-size:300% 200%;background-position:0 0;transform:scale(1.1)}
.pet-entry{position:fixed;bottom:18px;left:calc(50% + 92px);z-index:6;display:flex;align-items:center;justify-content:center;gap:4px;background:#fff8eb;border:2px solid white;border-radius:22px;box-shadow:0 4px 0 #d1ddc3;height:57px;padding:5px 13px;color:#768d68}.pet-entry svg{width:29px;height:34px}.pet-entry b{font-size:15px}.pet-entry .mini-pet{width:44px;height:45px}.pet-entry span.label{font-size:10px}
.home-pet-button{display:flex;align-items:center;gap:7px;background:#fff4dc!important}.home-pet-button .plush-pet{width:36px;height:41px}.home-pet-button b{color:#c68d5e}
.plush-pet{display:block;background-repeat:no-repeat;background-size:var(--sprite-size);background-position:var(--sprite-pos);aspect-ratio:var(--sprite-ratio);filter:drop-shadow(0 5px 3px #634e4112)}
.pet-mode #world,.pet-mode #home-ui,.pet-mode #game-ui,.pet-mode #celebration{display:none!important}.pet-mode .header-progress{display:none}.pet-mode .island-footer{display:none}.pet-mode #island-app{background:#eff2e4}
#pet-ui{position:absolute;inset:76px 22px 20px}.pet-room-top{position:absolute;left:12px;right:12px;top:0;display:flex;align-items:flex-start;justify-content:space-between;z-index:3}.pet-title{text-align:center;color:#60765b}.pet-title h1{font-size:26px;margin:6px 0 10px;letter-spacing:4px}.pet-title>small{font-size:10px;color:#819479;letter-spacing:1px}.care-track{width:170px;height:8px;background:#dfe8d5;border:2px solid #fffaf0;border-radius:9px;overflow:hidden;margin:0 auto 7px}.care-track span{display:block;height:100%;border-radius:9px;background:#e8b08f;transition:width .5s}
.pet-room-scene{position:absolute;inset:110px 0 98px;border-radius:34px;background-position:center;background-size:cover;overflow:hidden;border:2px solid #fff9e8;box-shadow:0 6px 0 #d4dfc533}.pet-touch{position:absolute;bottom:13%;left:50%;transform:translateX(-50%);background:none;padding:0;width:clamp(240px,31vw,440px);height:auto;z-index:2;isolation:isolate;transition:none}.pet-touch:active{transform:translateX(-50%) scale(.98)}.pet-touch .plush-pet{width:100%;transform-origin:50% 95%;animation:pet-breathe 3s ease-in-out infinite}.pet-touch .plush-pet[data-stage="0"]{width:100%;margin:0 auto}.pet-shadow{position:absolute;bottom:0;left:20%;width:60%;height:19px;border-radius:50%;background:#6c59423b;filter:blur(9px);z-index:-1}.pet-touch.happy .plush-pet{animation:pet-happy .55s ease-in-out 3}.pet-touch.eating .plush-pet{animation:pet-eat .38s ease-in-out 3}.pet-touch.growing .plush-pet{animation:pet-grow 1.1s ease-out}
#pet-response{position:absolute;left:50%;transform:translateX(-50%);top:9%;z-index:3;background:#fffaf0ed;border:2px solid white;border-radius:24px;padding:11px 23px;color:#7a8060;font-size:14px;box-shadow:0 5px 0 #d4d9bd3b;white-space:nowrap}#pet-hearts{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}#pet-hearts i{position:absolute;bottom:35%;left:50%;font-size:35px;color:#e69ca8;font-style:normal;animation:pet-heart 1.8s ease-out forwards}#pet-food-flight{position:absolute;left:31%;bottom:8%;opacity:0;z-index:5;width:60px;pointer-events:none}#pet-food-flight.flying{animation:pet-feed 1s ease-in-out forwards}#pet-food-flight svg{width:100%;height:80px}
.pet-ball{position:absolute;left:70%;bottom:15%;background:none;border:0;width:82px;height:82px;border-radius:50%;padding:0;z-index:3;box-shadow:0 9px 9px #5c674130}.pet-ball span{display:block;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffffbf,transparent 35%),conic-gradient(#ebc987 0 80deg,#a5cbb9 80deg 170deg,#edb3c1 170deg 260deg,#a9cadc 260deg);border:3px solid #fff4d8;box-shadow:inset -7px -9px 0 #89664b17}.pet-ball.rolling{animation:pet-ball 1.5s ease-in-out}
.pet-room-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:24px;height:88px}.pet-action{display:flex;align-items:center;justify-content:center;gap:8px;background:#fdf5e3;border:3px solid white;border-radius:24px;padding:11px 20px;min-height:69px;box-shadow:0 5px 0 #cad7bd;color:#77906b}.pet-action svg{width:39px;height:43px}.pet-action span{font-size:13px}.pet-action b{font-size:19px;color:#bd8e5c}.explore-action{background:#94b99b;color:white;box-shadow:0 5px 0 #769b79}.pet-wardrobe{display:flex;gap:12px;background:#fffaf08f;border:2px solid #fffdf5;border-radius:27px;padding:5px 13px}.outfit-button{position:relative;width:75px;height:74px;padding:0;background:#eaf0df;border-radius:18px;border:2px solid #fff8e7;overflow:hidden}.outfit-button>.plush-pet{height:100%;width:auto;aspect-ratio:var(--sprite-ratio);margin:auto}.outfit-button span:last-child{position:absolute;right:0;bottom:0;background:#fff6e7eb;border-radius:10px 0 0;padding:2px 5px;font-size:10px;color:#8e906b}.outfit-button.chosen{border:3px solid #93b88d}.outfit-button.locked{filter:saturate(.35);opacity:.7}
.pet-reward-toast{position:fixed;left:50%;bottom:98px;transform:translateX(-50%);z-index:10;pointer-events:none;display:flex;align-items:center;gap:8px;padding:11px 21px;border:2px solid white;border-radius:22px;background:#fff5dfea;color:#ad845d;box-shadow:0 5px 0 #d5dac048;animation:reward-arrive .4s ease-out;font-size:13px}.pet-reward-toast svg{width:28px;height:35px}
.checkpoint-card{position:absolute;inset:0;z-index:16;display:flex;align-items:center;justify-content:center;background:#e8efdca8;backdrop-filter:blur(8px)}.checkpoint-inner{background:#fffbef;border:3px solid white;border-radius:35px;padding:26px 37px;text-align:center;box-shadow:0 18px 50px #36553a20;max-width:90vw}.checkpoint-inner>.plush-pet{width:155px;margin:auto}.checkpoint-inner h2{font-size:23px;color:#62836a;margin:10px 0}.checkpoint-inner p{font-size:12px;color:#879472;margin:12px 0 23px}.checkpoint-actions{display:flex;gap:17px;justify-content:center}.checkpoint-actions button{display:flex;align-items:center;gap:8px;min-height:64px;padding:12px 22px;background:#96bca1;border:3px solid white;border-radius:22px;color:white;box-shadow:0 5px 0 #779b7d}.checkpoint-actions button:first-child{background:#edc291;box-shadow:0 5px 0 #cba97c}.checkpoint-actions svg{width:31px;height:31px}.checkpoint-actions span{font-size:12px}
@keyframes pet-breathe{50%{transform:translateY(-4px) rotate(1deg)}}@keyframes pet-happy{50%{transform:translateY(-16px) rotate(-4deg)}}@keyframes pet-eat{50%{transform:scale(1.035,.97) rotate(2deg)}}@keyframes pet-grow{0%{transform:scale(.7);filter:brightness(1.8)}75%{transform:scale(1.08)}100%{transform:scale(1)}}@keyframes pet-heart{to{transform:translate(var(--dx),-190px) rotate(20deg);opacity:0}}@keyframes pet-feed{0%{opacity:1;transform:translate(0,0) rotate(-25deg)}75%{opacity:1;left:48%;bottom:40%;transform:scale(.5) rotate(20deg)}100%{left:48%;bottom:40%;opacity:0;transform:scale(0)}}@keyframes pet-ball{50%{transform:translateX(-260px) rotate(-260deg)}100%{transform:translateX(0) rotate(-520deg)}}@keyframes reward-arrive{from{opacity:0;transform:translate(-50%,15px)}}
@media(max-width:760px){#scene-backdrop{left:7px;right:7px;top:197px;bottom:112px;border-radius:25px;background-size:auto 100%}.game-mode #world{left:4%;width:92%;top:calc(197px + (100% - 309px)*.29);height:calc((100% - 309px)*.61)}.toy-mode #scene-backdrop,.gift-mode #scene-backdrop{top:170px;bottom:100px}.toy-mode #world,.gift-mode #world{left:4%;width:92%;top:calc(170px + (100% - 270px)*.28);height:calc((100% - 270px)*.63)}.game-mode .speech-bubble{width:calc(100% - 28px)}.game-mode .voice-avatar{width:36px;height:36px}.guide-portrait{width:36px;height:36px}.game-mode .task-counter{left:43%;font-size:13px;padding:5px 12px}.pet-entry{left:auto;right:103px;bottom:18px;width:48px;height:53px;padding:4px;flex-wrap:wrap;gap:0}.pet-entry .mini-pet{display:none}.pet-entry svg{width:21px;height:28px}.pet-entry b{font-size:11px}.pet-entry .label{display:none}.home-pet-button .plush-pet{width:28px;height:33px}.hero-actions .map-tool{padding:7px 9px}.hero-actions{gap:6px}.hero-actions .map-tool span{font-size:9px}#pet-ui{inset:79px 9px 14px}.pet-title h1{font-size:21px}.pet-title>small{font-size:8px}.pet-room-top{left:8px;right:8px}.pet-room-scene{inset:111px 0 131px;background-size:auto 100%;border-radius:24px}.pet-touch{width:295px;bottom:13%}.pet-ball{width:55px;height:55px;left:77%;bottom:11%}#pet-response{font-size:11px;padding:10px 12px;top:6%;max-width:90%;white-space:normal;text-align:center}.pet-room-bottom{height:119px;gap:7px;align-items:flex-end}.pet-action{flex-direction:column;min-height:89px;padding:9px;gap:2px;min-width:66px;border-radius:19px}.pet-action svg{width:30px;height:33px}.pet-action span{font-size:10px}.pet-action b{font-size:13px}.pet-wardrobe{gap:3px;padding:7px 4px;align-self:flex-end;margin-bottom:8px;border-radius:18px}.outfit-button{width:49px;height:66px}.outfit-button span:last-child{font-size:8px}.checkpoint-inner{padding:22px}.checkpoint-actions{gap:9px}.checkpoint-actions button{padding:11px 13px}.checkpoint-inner h2{font-size:20px}.pet-reward-toast{bottom:116px;font-size:11px}.game-mode .next-round{right:166px;bottom:22px}}
@media(prefers-reduced-motion:reduce){.pet-touch .plush-pet,.pet-ball,.pet-reward-toast{animation:none!important}}

/* Keep illustrated architecture in its original proportions. */
#scene-backdrop{background-size:cover;background-position:center 38%}
.pet-room-scene{background-size:cover}
.pet-canvas{position:absolute;inset:35px 7% 89px;z-index:2;touch-action:none;cursor:grab}
.pet-canvas canvas{display:block;width:100%;height:100%;touch-action:none}
.pet-picker{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);display:flex;gap:9px;padding:5px 10px;background:#fff9eddf;border:2px solid #fffdfa;border-radius:24px;z-index:5;box-shadow:0 7px 22px #866c4920}
.pet-picker button{width:68px;height:77px;border-radius:17px;background:#e9eddf;border:2px solid transparent;padding:0;position:relative;transition:background .2s}
.pet-picker button.chosen{background:#cee0c9;border-color:#7f9d77;box-shadow:0 3px 0 #809876}
.pet-picker img{display:block;width:60px;height:62px;object-fit:contain;margin:-4px auto 0;pointer-events:none}
.pet-picker button span{display:block;font-size:10px;color:#6e7561;line-height:14px;pointer-events:none}
.pet-motions{position:absolute;right:20px;top:38%;display:flex;flex-direction:column;gap:12px;z-index:4}
.pet-motions>button{position:static;width:57px;height:57px;padding:8px;border:2px solid #fffcf0;border-radius:21px;background:#fff6e5dc;box-shadow:0 5px 0 #b7b59870;color:#809d89;font-size:31px;line-height:1}
.pet-motions .pet-ball{border-radius:50%;padding:2px}
.pet-title h1{margin-bottom:8px}
#pet-response{top:13px;padding:9px 20px;font-size:13px;pointer-events:none}
.outfit-button>svg{width:90%;height:90%;filter:drop-shadow(0 3px 1px #98856020)}
.pet-room-scene #pet-food-flight{display:none}
@media(max-width:760px){
 #scene-backdrop{background-size:cover;background-position:center}
 .pet-canvas{inset:48px 0 89px}
 .pet-picker{gap:3px;padding:5px 4px;bottom:10px;width:max-content;max-width:98%;border-radius:18px}
 .pet-picker button{width:49px;height:66px;border-radius:12px}
 .pet-picker img{width:47px;height:53px}.pet-picker button span{font-size:8px}
 .pet-motions{right:9px;top:28%;gap:10px}.pet-motions>button{width:46px;height:46px;font-size:24px;padding:6px;border-radius:17px}
 #pet-response{top:12px;font-size:10px;padding:9px 11px}
 .pet-title h1{font-size:20px;letter-spacing:2px}
}
@media(max-height:680px) and (min-width:761px){#pet-ui{top:65px}.pet-room-scene{top:87px;bottom:86px}.pet-room-top .pet-title h1{font-size:21px}.pet-room-bottom{height:77px}.pet-canvas{inset:20px 15% 73px}.pet-picker{bottom:7px}.pet-picker button{height:61px;width:59px}.pet-picker img{height:48px;width:49px}.pet-motions{top:24%}}

/* A landscape storybook frame avoids cropping the roof on ultrawide screens. */
@media(min-width:761px){
 #scene-backdrop{width:min(calc(100% - 32px),calc((100dvh - 290px)*1.75));left:50%;right:auto;transform:translateX(-50%);background-position:center top}
 .game-mode #world{left:50%;transform:translateX(-50%);width:min(76%,calc((100dvh - 290px)*1.45))}
 .toy-mode #scene-backdrop,.gift-mode #scene-backdrop{width:min(calc(100% - 32px),calc((100dvh - 270px)*1.75))}
 .toy-mode #world,.gift-mode #world{left:50%;transform:translateX(-50%);width:min(76%,calc((100dvh - 270px)*1.45))}
}

/* V9: a tactile play table, with controls kept outside the objects being counted. */
:root{--font:'Microsoft YaHei','Trebuchet MS',sans-serif}
.storybook-mode{background:#f8f5ea!important}
.storybook-hero{height:310px;background:#edf0df;border:3px solid #fffaf1;box-shadow:0 8px 0 #e5e6d8}
.hero-picture{width:66%;background-position:50% 52%;mask-image:linear-gradient(90deg,transparent,black 21%)}
.hero-copy{top:39px}.hero-copy h1{font-size:40px;letter-spacing:0}.hero-copy p{letter-spacing:0}
.theme-area{top:427px}.theme-card{border-radius:24px;box-shadow:0 5px 0 #e0decd;background:#fffaf0}
.theme-copy strong{color:#617863}.theme-current{border-color:#a9c19e;background:#eef3dc}
#scene-backdrop{background-size:cover;background-position:center;width:min(calc(100% - 28px),calc((100dvh - 300px)*1.5));top:210px;bottom:90px;border:3px solid #fff9ee;box-shadow:0 8px 0 #dbdccc;left:50%;transform:translateX(-50%)}
.game-mode #world{left:50%;transform:translateX(-50%);top:calc(210px + (100dvh - 300px)*.34);width:min(83%,calc((100dvh - 300px)*1.28));height:calc((100dvh - 300px)*.52);background:none;box-shadow:none}
.game-mode .speech-bubble{top:95px;min-height:67px;height:67px;width:min(700px,65vw);border-radius:24px;background:#fffaf0}
.game-mode .game-nav{top:91px}.game-mode .round-stars{display:none}
#mission-trail{position:absolute;left:50%;transform:translateX(-50%);top:170px;width:min(710px,77vw);height:37px;display:flex;align-items:center;justify-content:space-between;z-index:4;color:#789178}
.mission-story{display:flex;align-items:center;gap:9px;font-size:12px}.mission-story small{display:block;font-size:9px;margin-top:3px;color:#9b9f87}
.mission-badge{font-size:29px;color:#d6b376}.mission-path{display:flex;gap:29px;align-items:center}.mission-stop{position:relative;color:#c6c9b5;font-size:22px;text-align:center}
.mission-stop:not(:last-child):after{content:'';position:absolute;top:12px;left:30px;width:24px;border-top:2px dashed #d6d9c6}.mission-stop.active{color:#d0a477}.mission-stop.done{color:#6e9d82}
.mission-stop i{display:flex;gap:3px;margin-top:0}.mission-stop b{width:5px;height:5px;border-radius:50%;background:#d7ddcb}.mission-stop b.filled{background:#8bab87}
#try-again{font-size:26px;border-radius:14px;background:#f9edda;color:#9a8c72;min-width:44px;min-height:44px;border:2px solid white;box-shadow:0 3px 0 #e4dac5}
.mission-celebrate .active{animation:pet-happy .5s ease-in-out}
.game-mode .voice-avatar{background:#e6d8bd}.game-mode .speech-text>p{font-size:15px;color:#6e7e64}
.pet-room-scene{background-position:center 56%;box-shadow:0 7px 0 #dbd8c6}
.pet-canvas{inset:48px 7% 85px}.pet-picker{box-shadow:0 5px 0 #c8cab1;background:#fff8e9ef}
.pet-room-bottom .pet-action{border-radius:25px}.pet-title h1{letter-spacing:1px}
.bonus-play{background:#edd19a!important;color:#7f7354!important}
@media(max-width:1000px) and (min-width:761px){.storybook-hero{height:260px}.theme-area{top:378px}.hero-copy h1{font-size:32px}}
@media(max-width:760px){
 .storybook-hero{height:274px}.hero-picture{width:100%;height:100%;background-position:65% 45%;mask-image:linear-gradient(0deg,transparent,black 45%);opacity:.94}.hero-copy{top:150px;left:20px}.hero-copy h1{font-size:24px;margin:0}.hero-copy .tiny-label,.hero-copy p{display:none}.hero-actions{margin-top:12px;gap:6px}.hero-actions button{font-size:10px!important;padding:7px 10px!important}.hero-actions .home-pet-button .plush-pet{width:25px;height:30px}.theme-area{top:368px}
 .game-mode .game-nav{top:68px}.game-mode .speech-bubble{top:121px;height:64px;width:calc(100% - 22px)}.game-mode .speech-text>p{font-size:11px}
 #mission-trail{top:195px;width:calc(100% - 36px);height:37px}.mission-story{font-size:10px;max-width:41%}.mission-story small{display:none}.mission-badge{font-size:23px}.mission-path{gap:15px}.mission-stop:not(:last-child):after{width:12px;left:25px}.mission-stop{font-size:19px}#try-again{min-width:44px;min-height:44px}
 .game-mode #scene-backdrop{top:245px;bottom:97px;width:calc(100% - 16px);background-size:auto 100%;border-radius:25px}
 .game-mode #world{left:50%;top:calc(245px + (100dvh - 342px)*.29);width:92%;height:calc((100dvh - 342px)*.58);border-radius:0;transform:translateX(-50%)}
 .pet-canvas{inset:42px 0 87px}
}
@media(max-height:720px) and (min-width:761px){.storybook-hero{height:230px}.theme-area{top:340px}.hero-copy{top:25px}.hero-copy h1{font-size:30px}.hero-actions{margin-top:14px}}

.reference-toy{display:block;width:100%;aspect-ratio:1;background-size:300% 400%;background-repeat:no-repeat;border-radius:22px;mix-blend-mode:multiply}
.toy-grid .reference-toy{width:100%;max-width:150px;margin:auto}.theme-sheet-heading .reference-toy{height:130px}.theme-art{filter:none}
.checkpoint-actions{flex-wrap:wrap}.checkpoint-actions .bonus-play{min-height:54px}

.godot-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#6d836b;font-size:15px}
.pet-canvas{overflow:visible}.pet-canvas iframe{border:0;outline:none}
.pet-picker .pet-icon{display:block;margin:auto;background-repeat:no-repeat;filter:drop-shadow(0 2px 2px #694a3117)}
.pet-picker button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.pet-picker button span:last-child{font-size:10px}
.pet-motions>button[data-hug]{color:#d499a7;font-size:31px}
@media(max-width:760px){.pet-picker .pet-icon{max-height:49px}.pet-picker button span:last-child{font-size:8px}}

/* A quiet felt playroom: decoration stays outside the manipulatives. */
:root{--dream-cream:#fffaf2;--dream-pink:#e8b8cd;--dream-mint:#b8d7c6;--dream-ink:#647b78}
.storybook-mode{background:linear-gradient(145deg,#f5f5e9,#fff5f3 60%,#f0f2ff)!important}
.dream-icon{display:block;width:100%;max-height:100%;background-repeat:no-repeat;filter:drop-shadow(0 4px 3px #90736718)}
.theme-art{display:grid;place-items:center;padding:6px}.theme-art .dream-icon{width:min(100%,calc(90px * var(--ratio)));height:auto;max-height:none;max-width:115px}
.theme-card{background:#fffdf6;border:2px solid #fff;box-shadow:0 5px 0 #e8dcd3,0 8px 22px #bdb1a316;transition:transform .18s,box-shadow .18s}
.theme-card:hover{transform:translateY(-3px);box-shadow:0 7px 0 #e6d6d3,0 13px 25px #bdb1a31c}.theme-current{background:#f0f7ee;border-color:#b8d5c3}
.theme-sheet-heading .dream-icon{height:auto;width:min(150px,calc(122px * var(--ratio)));margin:auto}.toy-grid .dream-icon{height:auto;width:min(150px,calc(115px * var(--ratio)));margin:auto}
.storybook-hero{border:4px solid #fffdf6;box-shadow:0 7px 0 #e9e2d5,0 15px 38px #b0aea11c}.hero-copy h1{color:#657d73;text-shadow:0 2px #fff}.journey-start{box-shadow:0 5px 0 #b0c8b5!important}
.game-mode,.toy-mode,.gift-mode{background:radial-gradient(ellipse at 20% 18%,#fff9ef,transparent 60%),linear-gradient(140deg,#eff8f2,#f9f0f4 72%,#eef0ff)!important}
#scene-backdrop{border:4px solid #fffcf5;box-shadow:0 7px 0 #dedbcf,0 12px 35px #c6bca42b;background-size:cover}
.game-mode #world{height:calc((100dvh - 300px)*.59)}
.game-mode .speech-bubble{background:#fffdf6;border:2px solid #fff;box-shadow:0 5px 0 #eadfe2}.game-mode .voice-avatar{background:#f5e6db}.game-mode .speech-text>p{color:#5f7975}
#mission-trail{color:#73968e}.mission-stop.active{color:#d994b0}.mission-stop.done{color:#87b99d}.mission-stop b.filled{background:#accbb5}
.game-actions button,.game-nav button,.pet-room-bottom .pet-action{border:2px solid #fff9ee!important;box-shadow:0 4px 0 #ded8c8!important}
#task-counter{background:#fff8ed;color:#778e86;border:2px solid #fff;border-radius:20px;box-shadow:0 4px 0 #e4d8c6}#check{background:linear-gradient(#c8e0c4,#b5d1b3)!important;color:#446c5a!important}
#try-again{background:#f5e5ee;color:#ba88a3;box-shadow:0 3px 0 #e6d2df}#game-feedback{color:#bd8da9;text-shadow:0 2px #fff}
#checkpoint{background:linear-gradient(135deg,#fff9eb,#fff4fa 58%,#eef7f4)!important;border:4px solid white;box-shadow:0 8px 0 #ddcdd9,0 25px 80px #91839929}
.checkpoint-actions button{border:2px solid #fff;box-shadow:0 4px 0 #d9ccbe}.pet-reward-toast{background:#fffaf0!important;border:2px solid white!important;box-shadow:0 5px 0 #e7d5ce!important}
#dream-celebration{position:fixed;inset:0;z-index:18;pointer-events:none;overflow:hidden;animation:dream-fade 1.75s both}
.dream-rainbow{position:absolute;left:50%;top:32%;width:min(620px,80vw);height:290px;transform:translateX(-50%);overflow:hidden;opacity:.60;mask-image:linear-gradient(#000 40%,transparent 100%)}
.dream-rainbow i{position:absolute;inset:0;border:17px solid #edb9ce;border-bottom:none;border-radius:400px 400px 0 0;filter:blur(1px)}.dream-rainbow i:nth-child(2){inset:19px 20px -20px;border-color:#f3dca4}.dream-rainbow i:nth-child(3){inset:38px 40px -40px;border-color:#bce0d0}.dream-rainbow i:nth-child(4){inset:57px 60px -60px;border-color:#c7c2e6}
.dream-cheer{position:absolute;right:9%;bottom:17%;width:150px;animation:dream-hug 1.65s ease both}.cheer-pet{display:block;width:100%;background-repeat:no-repeat;filter:drop-shadow(0 7px 7px #84665620)}
.cheer-bubble{position:absolute;bottom:95%;left:50%;transform:translateX(-50%);white-space:nowrap;padding:11px 21px;border-radius:24px;background:#fffaf3;border:3px solid white;color:#b781a0;font-size:16px;box-shadow:0 4px 0 #e7d5e0}
.dream-spark{position:absolute;left:var(--x);top:48%;font-size:36px;color:var(--tint);text-shadow:0 2px white,0 0 12px #fff;animation:dream-float 1.55s var(--delay) ease-out both}
@keyframes dream-float{0%{opacity:0;transform:translateY(55px) scale(.3) rotate(0)}20%{opacity:1}80%{opacity:.85}100%{opacity:0;transform:translateY(-150px) scale(1.2) rotate(var(--turn))}}
@keyframes dream-hug{0%{opacity:0;transform:translateY(35px) scale(.8)}25%{opacity:1;transform:translateY(0) scale(1.03)}60%{transform:rotate(-5deg)}80%{opacity:1;transform:rotate(4deg)}100%{opacity:0;transform:translateY(10px)}}
@keyframes dream-fade{0%{opacity:0}12%,84%{opacity:1}100%{opacity:0}}
@media(max-width:760px){.game-mode #world{height:calc((100dvh - 342px)*.62)}.dream-cheer{width:100px;right:8%;bottom:22%}.dream-rainbow{top:40%;height:200px}.dream-rainbow i{border-width:12px}.cheer-bubble{font-size:12px;padding:8px 12px}.dream-spark{font-size:25px}.theme-art .dream-icon{width:min(100%,calc(65px * var(--ratio)))}.toy-grid .dream-icon{height:auto;width:min(110px,calc(82px * var(--ratio)))}}
@media(prefers-reduced-motion:reduce){#dream-celebration,.dream-cheer,.dream-spark{animation:none}.dream-spark{display:none}.dream-rainbow{opacity:.25}.theme-card{transition:none}}

/* v14: explicit SVG artwork sizing works without large CSS data-URL variables. */
.theme-art .dream-icon{width:100%;height:100px;max-width:125px}.theme-sheet-heading .dream-icon,.toy-grid .dream-icon{width:100%;height:120px;max-width:150px}
.free-play-badge{background:#e3efdd;border:1px solid #c1d7bb;border-radius:20px;padding:5px 12px;color:#688a6b;font-size:11px;margin-right:10px;white-space:nowrap}
.game-mode.dense-task #scene-backdrop{width:min(calc(100% - 28px),calc((100dvh - 270px)*1.9));top:200px;bottom:70px}
.game-mode.dense-task #world{top:calc(200px + (100dvh - 270px)*.19);width:min(93%,calc((100dvh - 270px)*1.78));height:calc((100dvh - 270px)*.77)}
@media(max-width:760px){.theme-art .dream-icon{height:76px}.game-mode.dense-task #scene-backdrop{top:225px;bottom:90px}.game-mode.dense-task #world{top:calc(225px + (100dvh - 315px)*.09);width:94%;height:calc((100dvh - 315px)*.87)}}

/* Text and controls own their space; scenery begins after the entire ribbon. */
.game-mode{--stage-top:240px;--stage-bottom:90px;--stage-height:calc(100dvh - var(--stage-top) - var(--stage-bottom))}
.game-mode .speech-bubble{height:auto;min-height:67px;padding-top:10px;padding-bottom:10px}
.game-mode .speech-text{min-width:0}.game-mode .speech-text>p{display:block;overflow:visible;-webkit-line-clamp:unset;white-space:normal;line-height:1.55}
#mission-trail{min-height:52px;height:auto;padding:7px 11px;border:2px solid #fff;border-radius:20px;background:#fffcf4;box-shadow:0 4px 0 #e9dfd4;color:#668279;gap:14px}
.mission-story{min-width:0;line-height:1.45}.mission-story small{color:#84907f}.mission-path{flex-shrink:0}.mission-stop i{margin-top:2px}#try-again{flex-shrink:0}
.game-mode #scene-backdrop,.game-mode.dense-task #scene-backdrop{top:var(--stage-top);bottom:var(--stage-bottom);width:min(calc(100% - 28px),calc(var(--stage-height)*1.65))}
.game-mode #world{top:calc(var(--stage-top) + var(--stage-height)*.20);width:min(90%,calc(var(--stage-height)*1.45));height:calc(var(--stage-height)*.76)}
.game-mode.dense-task #scene-backdrop{width:min(calc(100% - 28px),calc(var(--stage-height)*1.95))}
.game-mode.dense-task #world{top:calc(var(--stage-top) + var(--stage-height)*.16);width:min(93%,calc(var(--stage-height)*1.80));height:calc(var(--stage-height)*.80)}
.garden-magic{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit;box-shadow:inset 0 0 30px #fff5dd70}
.garden-magic i{position:absolute;left:var(--side);top:var(--high);font-size:19px;font-style:normal;color:#fff8cb;text-shadow:0 0 9px #fff9ce,0 0 19px #f3d6e9;opacity:.7;animation:garden-breathe 5s var(--delay) ease-in-out infinite}
@keyframes garden-breathe{0%,100%{opacity:.3;transform:translateY(3px) scale(.8)}50%{opacity:.8;transform:translateY(-4px) scale(1.05)}}
.dream-cheer:before{content:'';position:absolute;inset:12% -25% -9%;border-radius:50%;background:radial-gradient(ellipse,#fffbe3b8,#f6d8e65c 48%,transparent 70%);z-index:-1}
.cheer-bubble{background:linear-gradient(135deg,#fffaf1,#fff0f6);box-shadow:0 4px 0 #e7d5e0,0 0 25px #fff9eccc}.dream-rainbow{filter:drop-shadow(0 0 16px #fffbde)}
@media(max-width:760px){.game-mode{--stage-top:265px;--stage-bottom:97px}.game-mode .speech-bubble{min-height:64px}.game-mode #mission-trail{width:calc(100% - 26px);padding:6px 8px;gap:6px;min-height:54px}.mission-story{max-width:41%;font-size:10px}.mission-path{gap:10px}.mission-stop:not(:last-child):after{width:9px;left:24px}.game-mode #scene-backdrop,.game-mode.dense-task #scene-backdrop{width:calc(100% - 16px)}.game-mode #world,.game-mode.dense-task #world{top:calc(var(--stage-top) + var(--stage-height)*.08);height:calc(var(--stage-height)*.88);width:94%}.garden-magic i{font-size:13px}}
@media(prefers-reduced-motion:reduce){.garden-magic i{animation:none;opacity:.4}.dream-cheer:before{opacity:.5}}

.play-mode-bar{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin:0 5px 18px;color:#7b9089}.play-mode-switch{display:flex;gap:4px;background:#eee8df;border:2px solid white;padding:4px;border-radius:28px}.play-mode-switch button{display:flex;align-items:center;gap:6px;padding:9px 17px;border:0;border-radius:22px;background:transparent;color:#77877f;cursor:pointer;font:inherit}.play-mode-switch svg{width:19px;height:19px}.play-mode-switch button[aria-pressed=true]{background:#fffdf5;color:#537967;box-shadow:0 3px 0 #d4d6c7}.play-mode-bar small{font-size:13px}.play-mode-switch button:focus-visible{outline:3px solid #d6abbe;outline-offset:2px}
.storybook-mode #home-ui{position:absolute;inset:0;overflow:auto;padding:86px 4.5% 28px;pointer-events:auto}.storybook-mode .storybook-hero{position:relative;inset:auto;width:100%}.storybook-mode .theme-area{position:relative;inset:auto;margin-top:28px}.storybook-mode .theme-grid{grid-template-rows:repeat(3,minmax(120px,1fr));overflow:visible}.storybook-mode .island-header{background:#faf8f0f5}
@media(max-width:760px){.play-mode-bar{flex-direction:column;gap:8px;margin-bottom:12px}.play-mode-switch button{min-height:44px;padding:9px 16px}}
@media(max-width:760px){.storybook-mode #home-ui{padding:76px 4% 25px}.storybook-mode .theme-grid{grid-template-rows:none}.storybook-mode .theme-area{margin-top:20px}}
@media(max-width:760px){.storybook-mode .hero-copy h1{max-width:none;font-size:23px}.storybook-mode .hero-copy h1 span{display:inline}.storybook-mode .hero-actions{flex-wrap:nowrap;gap:5px}.storybook-mode .hero-actions button{flex-shrink:0}}

/* A touch-first storybook work surface. Scenery stays behind the work, never over it. */
.game-mode.quest-mode #world{visibility:hidden;pointer-events:none}
#quest-board{position:absolute;z-index:4;top:calc(var(--stage-top) + 16px);bottom:calc(var(--stage-bottom) + 14px);left:50%;transform:translateX(-50%);width:min(92%,calc(var(--stage-height)*1.48));overflow:auto;overscroll-behavior:contain;padding:12px 16px 20px;border-radius:36px;background:linear-gradient(150deg,#fffdf5ef,#fff9eef5 55%,#f5edf5ec);box-shadow:0 8px 32px #745d4920,inset 0 0 0 3px #fff9;pointer-events:auto;color:#57766d}
.q-board-content{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;max-width:100%;margin:auto}
#quest-board svg{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
.q-button{min-width:52px;min-height:52px;border:2px solid #fffdf4;border-radius:22px;background:#fff9efd9;box-shadow:0 4px 0 #decebd,0 5px 12px #88684912;color:#59796c;font:700 28px/1.2 'Segoe UI',sans-serif;cursor:pointer;padding:7px;touch-action:manipulation;transition:transform .14s,background .14s}
.q-button:active{transform:translateY(3px) scale(.96)}.q-button:focus-visible{outline:4px solid #ae84b1;outline-offset:2px}.q-button.selected{background:#e4efdc;box-shadow:0 0 0 3px #97b797,0 4px 0 #c1d3b7}.q-button.departed{opacity:.2;transform:translateY(-6px)}
.q-number{display:inline-flex;justify-content:center;height:58px;min-width:38px;vertical-align:middle;gap:0}.q-number svg{width:40px!important;height:58px!important}.q-order{display:flex;align-items:center;justify-content:center;gap:14px;height:66px;padding:5px 22px;border-radius:22px;background:#fffdf6;box-shadow:0 3px 0 #e4d7c4}.q-order>svg{width:58px!important}.q-order .q-number{height:48px}
.q-choices,.q-palette,.q-route-card,.q-adjust{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px}.q-choices>.q-button{min-width:82px}.q-palette>.q-button{width:76px;height:76px}.q-route-card{font-size:28px;gap:16px}.q-adjust{gap:12px}.q-adjust>.q-button{width:54px;height:52px;border-radius:50%}.q-adjust>.q-button:first-child{background:#f5dfE6}.q-adjust>.q-button:last-child{background:#deecd6}
.q-field{display:grid;grid-template-columns:repeat(var(--cols),minmax(46px,1fr));gap:12px;max-width:95%;width:700px}.q-field>.q-button{aspect-ratio:1;max-height:82px;min-width:0}.q-field .q-button.selected:after{content:'✓';position:absolute;font-size:18px;color:#567555}.q-pile{display:grid;grid-template-columns:repeat(var(--cols),minmax(28px,1fr));gap:5px;padding:8px;align-items:center;justify-items:center;width:100%}.q-pile>span{display:block;width:clamp(28px,4vw,55px);height:clamp(33px,4.4vw,58px)}
.q-groups{display:flex;align-items:stretch;justify-content:center;gap:18px;width:100%;flex-wrap:wrap}.q-dish{border:4px solid #f8e5dd;box-shadow:0 5px 0 #d7c6af;border-radius:36px;background:#fffbed;padding:14px;min-width:140px;max-width:420px;flex:1}.q-groups>.q-dish{flex-basis:24%}.q-dish .q-adjust{margin-top:10px}.q-dish>svg{max-height:120px}
.q-tenframes{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}.q-tenframe{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:12px;background:#eee6d7;border-radius:24px;box-shadow:inset 0 2px 5px #99866c30}.q-tenframe>.q-button{width:60px;height:62px;min-width:0;padding:5px;border-radius:14px}.q-empty{color:#c7baa8}
.q-mail{width:140px;height:140px}.q-sequence{display:flex;gap:12px;justify-content:center;max-width:100%;flex-wrap:wrap}.q-cloud{min-width:72px;min-height:76px;padding:8px;background:#fffdf8;border-radius:25px;box-shadow:0 5px 0 #dcd5e6;display:grid;place-items:center}.q-slot{border:3px dashed #c6b5c9;min-width:64px;min-height:60px;border-radius:18px;display:grid;place-items:center;font-size:36px;color:#ae92af}.q-line{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:10px;max-width:100%;width:760px}.q-line .q-button{position:relative;min-height:84px;padding-top:18px}.q-line .q-number{height:44px}.q-line .q-number svg{height:44px!important;width:30px!important}.q-frog{position:absolute;left:50%;top:-12px;transform:translateX(-50%);font-size:28px}.q-small-status{color:#9cb994;font-size:23px}
.q-mosaics{display:flex;gap:20px;align-items:center;justify-content:center;max-width:100%}.q-mosaic{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:6px;border:8px solid #efe2d4;background:#efe2d4;border-radius:24px}.q-stitch{width:66px;height:66px;padding:6px;display:block;background:#fffaf0;border-radius:12px;box-shadow:inset 0 0 0 2px #d8ceb8}.q-copy-arrow{font-size:32px;color:#b7a88a}.q-pattern{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;width:min(640px,100%)}.q-pattern>.q-button{height:85px;min-width:0}.q-route-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.q-route-grid>.q-button{width:66px;height:60px}.q-arrows{display:flex;gap:14px;font-size:32px}.q-arrows .done{color:#c2d5bc}
.q-clock{width:240px;height:240px;position:relative;flex-shrink:0}.q-hour{position:absolute;width:40px;height:40px;min-height:0;transform:translate(-50%,-50%);border:0;background:transparent;border-radius:50%;cursor:pointer}.q-hour:focus-visible{outline:4px solid #aa8fb5}.q-choices .q-clock{width:96px;height:96px}.q-sequence .q-clock{width:90px;height:90px}
.q-rulers{width:min(850px,100%);padding:24px 14px;background:#fffaf0;border-radius:25px}.q-scarf{width:calc(var(--length)*7.5%);display:flex;height:50px;background:repeating-linear-gradient(90deg,#e5b1ba 0,#e5b1ba 14px,#f0cbd0 14px,#f0cbd0 18px);border:4px solid #d69eac;border-radius:15px;margin:0 0 14px;box-shadow:0 5px 0 #efd7db}.q-scarf.blue{background:#b3cdda;border-color:#90b2c1}.q-scarf i{flex:1;border-right:2px dashed #fff7}.q-units{display:flex;gap:0}.q-units .q-button{width:7.5%;min-width:0;height:50px;min-height:44px;padding:3px;border-radius:9px}
.q-balance{display:flex;gap:20px;align-items:center;width:100%;max-width:740px}.q-balance>span{font-size:58px;color:#c1a765}.q-scale{background:#fff9e8;border-bottom:6px solid #d0bb89;border-radius:30px;flex:1;min-height:170px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.q-scale>svg{width:95px!important;height:100px!important}
.q-chart{display:flex;align-items:flex-end;gap:22px;width:min(600px,100%);padding:12px;border-bottom:4px solid #d9cab4;min-height:180px}.q-chart-column{display:flex;flex:1;flex-direction:column;align-items:center;gap:6px}.q-chart-column>svg{width:48px!important;height:48px!important}.q-bar{display:flex;flex-direction:column-reverse;gap:4px;width:100%;max-width:64px}.q-bar i{height:16px;background:#d9bfdc;border-radius:6px;box-shadow:inset 0 2px 0 #fff8}.q-chart-column:nth-child(2) .q-bar i{background:#accfba}.q-chart-column:nth-child(3) .q-bar i{background:#e8c986}.q-chart-column:nth-child(4) .q-bar i{background:#e8b6c1}.q-chart-column .q-button{width:55px;height:56px}.q-chart-column .q-adjust{gap:5px}.q-chart-column .q-adjust .q-button{min-width:40px;width:40px;height:42px;min-height:42px}.q-inventory{display:flex;width:100%;max-height:240px;overflow:auto;gap:12px}.q-inventory .q-pile{background:#fffaf0;border-radius:20px}.q-inventory .q-pile>span{width:35px;height:38px}.q-covered{height:110px;width:64px;background:#e9dfeb;border-radius:20px;text-align:center;font-size:52px}
.q-bond{text-align:center;width:min(550px,100%)}.q-bond>span{font-size:45px;color:#c5b496}.q-bond-parts{display:flex;gap:26px;justify-content:center}.q-bond-parts>div{flex:1;border-radius:25px;background:#fffbef;padding:12px;max-width:240px}.q-story{display:flex;align-items:center;gap:14px;font-size:28px}.q-story>div{max-width:220px;text-align:center}.q-complete{box-shadow:0 0 0 5px #cce5c1,0 0 50px #f1d3e8!important}.q-help{outline:5px solid #dfc7e6}
@media(max-width:760px){#quest-board{top:calc(var(--stage-top) + 5px);bottom:calc(var(--stage-bottom) + 5px);width:calc(100% - 26px);padding:12px 9px 20px;border-radius:24px}.q-board-content{gap:14px;justify-content:flex-start}.q-number,.q-number svg{height:43px!important}.q-number svg{width:29px!important}.q-choices{gap:10px}.q-choices>.q-button{min-width:62px}.q-field{gap:8px}.q-field>.q-button{min-height:48px;padding:4px}.q-tenframe>.q-button{width:47px;height:48px;min-height:48px}.q-tenframe{padding:8px}.q-groups{gap:12px}.q-groups>.q-dish{min-width:135px;flex-basis:42%;padding:9px}.q-pile>span{width:30px;height:35px}.q-mosaics{gap:7px}.q-mosaic{gap:3px;border-width:4px}.q-stitch{width:34px;height:44px;padding:3px;min-width:34px;min-height:44px;border-radius:8px}.q-copy-arrow{font-size:18px}.q-palette>.q-button{width:58px;height:58px;min-width:48px}.q-line{gap:6px;grid-template-columns:repeat(4,1fr)}.q-line .q-button{min-height:72px}.q-pattern{gap:7px;grid-template-columns:repeat(4,1fr)}.q-pattern>.q-button{height:62px}.q-clock{width:220px;height:220px}.q-chart{gap:9px}.q-inventory .q-pile{gap:3px;padding:4px}.q-inventory .q-pile>span{width:24px;height:29px}.q-balance{gap:8px}.q-balance>span{font-size:32px}.q-scale{min-height:140px}.q-story{gap:5px}.q-story>div{max-width:135px}.q-play-ordinal .q-field{grid-template-columns:repeat(5,1fr)}.q-route-card{font-size:22px}.q-play-clockSet .q-choices .q-clock{width:65px;height:65px}}
@media(prefers-reduced-motion:reduce){.q-button{transition:none}}
/* Keep the plush landscape visible. Only the manipulatives have a reading surface. */
#quest-board{background:transparent;box-shadow:none;padding-top:clamp(30px,8vh,85px)}
.q-companion{position:absolute;left:3%;bottom:18px;width:90px;height:140px;pointer-events:none;opacity:.96;filter:drop-shadow(0 6px 5px #77613d22)}
.q-companion .plush-pet{display:block!important;width:100%!important;height:100%!important;background-repeat:no-repeat;animation:q-companion-breathe 4s ease-in-out infinite}
.q-board-content{padding:12px 0 28px}.q-field,.q-mosaics,.q-pattern,.q-line,.q-route-grid{padding:14px;background:#fffaf0ce;border:3px solid #fffdf6;border-radius:28px;box-shadow:0 5px 0 #ddd0b75c}.q-field{width:660px}.q-button{background:#fff9eee8}.q-order{box-shadow:0 4px 0 #d4bf9f,0 0 22px #fffbd9a0}.q-order:before{content:'✦';font-size:19px;color:#d2b66e}.q-route-card{background:#fffaf0e6;padding:8px 18px;border-radius:24px}.q-dish{background:#fffbeeeb}.q-rulers,.q-bond{background:#fffaf0e8;padding:18px;border-radius:28px}.q-story{background:#fffaf0e8;padding:10px;border-radius:24px}.q-chart{background:#fffaf0ed;border-radius:24px}.q-field .q-button.selected{position:relative}.q-small-status{padding:4px 18px;border-radius:18px;background:#fffaf0bd}
@keyframes q-companion-breathe{50%{transform:translateY(-3px) rotate(1deg)}}
@media(max-width:760px){#quest-board{padding-top:30px}.q-companion{display:none}.q-field,.q-mosaics,.q-pattern,.q-line,.q-route-grid{padding:8px;border-width:2px;border-radius:19px}.q-mosaics{padding:5px}.q-stitch{width:33px;min-width:33px}.q-board-content{padding-bottom:20px}.q-bond{padding:8px}.q-bond-parts{gap:10px}}
@media(prefers-reduced-motion:reduce){.q-companion .plush-pet{animation:none}}
.q-pile{grid-template-columns:repeat(var(--cols),minmax(0,1fr))}.q-pile>span{width:100%;max-width:55px}
.q-groups .q-adjust{flex-wrap:nowrap;gap:7px}.q-groups .q-adjust .q-button{min-width:44px;width:44px;height:48px;min-height:48px}.q-groups .q-adjust .q-number svg{width:27px!important;height:43px!important}
@media(max-width:760px){.q-groups .q-pile{grid-template-columns:repeat(3,minmax(0,1fr))}.q-groups .q-pile>span{width:100%;height:40px;max-width:38px}.q-groups .q-dish{min-width:140px}.q-pile>span{max-width:38px}.q-play-ordinal .q-field{gap:6px}.q-play-ordinal .q-button{min-height:48px}.q-mosaic{max-width:100%}}
.q-route-card>svg{width:60px!important;height:60px!important}.q-play-ordinal .q-button{position:relative}.q-play-ordinal .plush-pet{display:block;width:100%;height:100%;background-repeat:no-repeat;min-height:55px}.q-start-flag{position:absolute;top:-15px;left:0;font-size:23px}.q-count-mark{position:absolute;right:0;top:0;font:700 16px/24px 'Segoe UI';background:#799f86;color:white;width:24px;height:24px;border-radius:50%}
@media(max-width:360px){.q-mosaics{flex-direction:column}.q-copy-arrow{transform:rotate(90deg)}.q-groups>.q-dish{flex-basis:100%;min-width:0}.q-play-ordinal .q-field{grid-template-columns:repeat(4,1fr)}.q-tenframe{gap:4px}.q-tenframe>.q-button{width:43px;height:46px}}
.q-rotated-shape{display:block;width:100%;height:100%;padding:5px}.q-pattern>.q-button{position:relative}.q-pattern>.q-button:first-child:before{content:'🚩';position:absolute;top:-17px;left:-6px;font-size:22px;pointer-events:none}
@media(max-width:760px){.q-inventory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}.q-inventory .q-pile>span{max-width:32px;width:100%}.q-inventory .q-pile{grid-template-columns:repeat(4,minmax(0,1fr))}}
.q-hour{width:44px;height:44px}
@media(max-width:760px){.q-mosaics{flex-direction:column}.q-copy-arrow{transform:rotate(90deg)}.q-stitch{width:54px;height:54px;min-width:54px;min-height:54px}.q-field{grid-template-columns:repeat(5,minmax(0,1fr))}.q-chart-column .q-adjust{flex-direction:column}.q-chart-column .q-adjust .q-button{width:44px;height:44px;min-width:44px;min-height:44px}}
.q-groups>.q-dish{min-width:194px}.q-groups .q-pile{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:50px}.q-groups .q-pile>span{width:44px;height:48px;max-width:44px}
@media(max-width:760px){.q-groups>.q-dish{min-width:140px}.q-groups .q-pile{grid-auto-rows:40px}.q-groups .q-pile>span{width:34px;height:39px;max-width:34px}}
.q-button.q-guided,.q-hour.q-guided{outline:4px solid #caafd8;outline-offset:4px;box-shadow:0 0 22px #fff2ad}

/* One work surface per question. Decorative art yields space to touch targets. */
.game-mode{--stage-bottom:76px}
.game-mode .island-header{height:60px;padding:14px 24px}
.game-mode .speech-bubble{top:64px;width:min(880px,calc(100% - 168px));max-width:none;min-height:60px;padding:7px 14px;gap:10px}
.game-mode .speech-text>p{font-size:15px;line-height:1.45;margin:0}
.game-mode .voice-avatar{width:44px;height:44px;flex-shrink:0}
.game-mode .replay-button{width:44px;height:44px}
.game-mode .game-nav{top:67px;left:18px;right:18px}
.game-mode #mission-trail{width:min(880px,calc(100% - 168px));min-height:50px;padding:3px 12px;gap:12px}
.game-mode #try-again{width:44px;height:44px;min-width:44px;min-height:44px}
.game-mode .bottom-controls{bottom:max(12px,env(safe-area-inset-bottom));left:22px;right:22px}
.game-mode .check-button{width:64px;height:56px;border-radius:21px}
.game-mode .next-round{bottom:16px;right:104px;width:56px;height:52px}
.game-mode #scene-backdrop,.game-mode.dense-task #scene-backdrop{width:calc(100% - 24px);max-width:1440px;background-size:cover}
#quest-board{top:calc(var(--stage-top) + 8px);bottom:calc(var(--stage-bottom) + 8px);width:min(1240px,calc(100% - 56px));padding:8px 12px;overflow:hidden;overscroll-behavior:none;container-type:size}
.q-board-content{height:100%;min-height:0;padding:0;gap:clamp(8px,2cqh,16px);justify-content:center;max-width:1100px;box-sizing:border-box}
.q-board-content>*{flex-shrink:0;min-width:0}
.q-number{height:48px;min-width:28px}.q-number svg{width:33px!important;height:48px!important}
.q-order{height:54px;min-height:54px;padding:3px 18px;gap:10px}.q-order>svg{width:45px!important;height:45px!important}
.q-button{min-height:48px;min-width:48px;padding:5px;border-radius:17px}
.q-choices{gap:12px;flex-wrap:nowrap}.q-choices>.q-button{min-width:72px;min-height:60px}
.q-adjust{gap:10px;flex-wrap:nowrap}.q-adjust>.q-button{width:52px;height:48px;min-height:48px}
.q-route-card{padding:5px 16px;gap:12px;min-height:54px;font-size:25px}
.q-field{width:min(720px,100%);max-width:100%;gap:8px;padding:10px;grid-template-columns:repeat(var(--cols),minmax(0,1fr))}
.q-field>.q-button{height:clamp(48px,13cqh,76px);min-height:48px;aspect-ratio:auto;max-height:none}
.q-play-take .q-field{grid-template-columns:repeat(5,minmax(0,1fr))}
.q-pile{gap:4px;padding:6px;grid-auto-rows:clamp(28px,8cqh,44px)}
.q-pile>span{height:100%;width:100%;max-width:50px}
.q-groups{gap:14px;flex-wrap:nowrap;max-width:1040px;align-items:stretch}
.q-groups>.q-dish{min-width:0;flex:1 1 0;padding:10px;border-radius:26px}
.q-groups .q-pile{grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-auto-rows:clamp(28px,8cqh,44px)}
.q-groups .q-pile>span{height:100%;width:100%;max-width:48px}
.q-groups .q-adjust .q-button{min-width:44px;min-height:44px;width:44px;height:44px}
.q-tenframes{gap:12px;max-width:100%}.q-tenframe{gap:5px;padding:8px;border-radius:20px}
.q-tenframe>.q-button{width:clamp(44px,5.5cqw,60px);height:clamp(44px,11cqh,60px);min-height:44px;min-width:44px;padding:4px}
.q-mail{width:clamp(90px,24cqh,140px);height:clamp(90px,24cqh,140px)}
.q-sequence{gap:10px;flex-wrap:nowrap}.q-cloud{min-width:64px;min-height:64px;padding:6px}
.q-line{gap:8px;padding:10px;grid-template-columns:repeat(var(--cols),1fr);width:min(810px,100%)}
.q-line .q-button{min-height:66px;padding-top:12px}.q-small-status{padding:2px 14px;font-size:20px;min-height:0}.q-small-status:empty{display:none}
.q-mosaics{gap:12px;padding:10px;flex-direction:row}.q-copy-arrow{transform:none}
.q-mosaic{gap:5px;border-width:6px}.q-stitch{width:clamp(44px,7cqw,66px);height:clamp(44px,12cqh,66px);min-height:44px;min-width:44px;padding:4px}
.q-palette{gap:12px}.q-palette>.q-button{height:58px;width:58px;min-width:48px}
.q-pattern{padding:10px;gap:10px;grid-template-columns:repeat(5,1fr)}.q-pattern>.q-button{height:clamp(48px,15cqh,78px)}
.q-route-grid{padding:8px;gap:6px}.q-route-grid>.q-button{height:clamp(44px,11cqh,60px);width:clamp(48px,8cqw,68px);min-height:44px;min-width:44px}
.q-arrows{gap:12px;font-size:28px}
.q-clock{width:230px;height:230px}.q-choices .q-clock{width:76px;height:76px}.q-sequence .q-clock{width:76px;height:76px}
.q-play-clockSet{display:grid;grid-template-columns:auto 230px;grid-template-rows:auto auto;align-content:center;justify-content:center;column-gap:32px}
.q-play-clockSet>.q-clock{grid-column:2;grid-row:1/3}.q-play-clockSet>.q-route-card{grid-column:1;grid-row:1}.q-play-clockSet>.q-choices{grid-column:1;grid-row:2}
.q-rulers{padding:16px;max-width:900px}.q-scarf{height:44px;margin-bottom:10px}.q-units .q-button{height:48px;min-width:44px;min-height:44px}
.q-balance{max-width:800px;gap:12px}.q-scale{min-height:150px;padding:8px}
.q-chart{gap:15px;min-height:150px;padding:8px 12px;max-width:650px}.q-bar{gap:3px}.q-bar i{height:clamp(8px,2.4cqh,16px)}
.q-chart-column>svg{width:42px!important;height:42px!important}.q-chart-column .q-adjust{flex-direction:row;gap:6px}
.q-chart-column .q-adjust .q-button{width:44px;height:44px;min-width:44px;min-height:44px}
.q-inventory{max-height:none;overflow:visible;gap:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.q-inventory .q-pile{grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-auto-rows:32px;padding:6px}
.q-inventory .q-pile>span{width:100%;height:100%;max-width:35px}
.q-play-chartBuild{display:grid;grid-template-columns:minmax(220px,1fr) minmax(330px,1.3fr);grid-template-rows:auto auto;align-content:center;gap:16px}
.q-play-chartBuild>.q-order{grid-column:1/-1;justify-self:center}.q-play-chartBuild>.q-inventory{grid-column:1;align-self:center}.q-play-chartBuild>.q-chart{grid-column:2;align-self:center}
.q-bond{width:min(640px,90%);padding:10px 16px}.q-bond>span{font-size:26px;line-height:1.1;display:block}.q-bond-parts{gap:20px}.q-bond-parts>div{padding:8px;max-width:none}
.q-bond .q-pile{grid-auto-rows:clamp(26px,7cqh,42px)}
.q-play-story,.q-play-storyRepair{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);grid-template-rows:auto 54px;align-content:center;gap:16px;max-width:900px}
.q-play-story>.q-story,.q-play-storyRepair>.q-story{grid-column:1;grid-row:1;justify-content:center;gap:8px;flex-wrap:wrap}
.q-story>div:first-child{flex-basis:100%;max-width:100%}.q-story>span:first-of-type{display:none}
.q-play-story>.q-dish,.q-play-storyRepair>.q-dish{grid-column:2;grid-row:1;min-width:0;width:100%;padding:12px}
.q-play-story>.q-adjust,.q-play-storyRepair>.q-adjust{grid-column:2;grid-row:2}
.q-play-story>.q-small-status,.q-play-storyRepair>.q-small-status{grid-column:1;grid-row:2;align-self:center;justify-self:center}
/* The SVG viewBox always contains the native frame, even in a square button. */
.plush-pet>svg{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
.q-companion{left:0;bottom:10px;width:clamp(52px,7cqw,84px);height:clamp(70px,21cqh,112px);display:flex;align-items:flex-end;opacity:.96}
.q-play-ordinal .q-field{width:100%;max-width:1050px;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:7px}
.q-play-ordinal .q-field>.q-button{height:clamp(82px,24cqh,135px);padding:5px;display:flex;align-items:center;justify-content:center}
.q-play-ordinal .plush-pet{width:100%;height:100%;min-height:0;pointer-events:none}
@container(max-width:900px){.q-companion{display:none}}
@container(max-width:850px){
 .q-play-chartBuild{display:flex}.q-play-chartBuild>.q-inventory{max-width:650px;grid-template-columns:repeat(4,minmax(0,1fr))}.q-play-chartBuild>.q-chart{width:min(650px,100%)}
 .q-play-chartBuild .q-inventory .q-pile{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:30px}
}
@media(max-width:760px){
 .game-mode .island-header{padding:12px 16px;height:57px}.game-mode .speech-bubble{width:calc(100% - 86px);left:auto;right:12px;transform:none;top:63px}.game-mode .speech-text>p{font-size:13px}.game-mode .voice-wave{display:none}
 .game-mode #mission-trail{width:calc(100% - 24px);padding:3px 8px}.game-mode .game-nav{left:12px;top:70px}
 #quest-board{width:calc(100% - 32px);padding:6px}.q-number,.q-number svg{height:43px!important}.q-number svg{width:29px!important}.q-choices{gap:8px}.q-choices>.q-button{min-width:60px;min-height:54px}
 .q-board-content{gap:10px}.q-groups{flex-wrap:wrap;gap:10px}.q-groups>.q-dish{flex-basis:42%;min-width:0}.q-field{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:7px}
 .q-play-ordinal .q-field{grid-template-columns:repeat(5,minmax(0,1fr))}.q-play-ordinal .q-button{height:110px}
 .q-play-chartBuild{display:flex}.q-play-chartBuild>.q-inventory{max-width:620px}.q-inventory{grid-template-columns:repeat(4,minmax(0,1fr))}.q-inventory .q-pile{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:26px}
}
@media(max-width:540px){
 .q-tenframe>.q-button{height:44px;width:44px}.q-tenframes{gap:10px}.q-play-sequence>.q-choices{flex-wrap:wrap}
 .game-mode .speech-bubble{padding:7px 9px;gap:7px}.game-mode .voice-avatar{display:none}.game-mode .island-brand strong{font-size:15px}.game-mode #mission-trail{gap:7px}.mission-story{max-width:43%}.mission-path{gap:9px}
 .q-cloud{min-width:46px;min-height:58px;padding:3px}.q-sequence{gap:6px}.q-choices>.q-button{min-width:52px}.q-choices{gap:7px}
 .q-mosaics{flex-direction:column;gap:6px;padding:6px}.q-copy-arrow{transform:rotate(90deg);font-size:18px;line-height:18px}.q-mosaic{gap:3px;border-width:4px}.q-stitch{height:44px;width:44px}.q-palette>.q-button{height:48px;width:48px}
 .q-line{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:7px}.q-line .q-button{min-height:54px}.q-line .q-number svg{width:20px!important;height:32px!important}
 .q-route-grid>.q-button{height:44px}.q-play-clockSet{column-gap:8px;grid-template-columns:auto 216px}.q-play-clockSet>.q-clock{width:216px;height:216px}.q-play-clockSet>.q-choices{flex-direction:column}.q-play-clockSet>.q-route-card{padding:4px;gap:2px;font-size:20px}.q-play-clockSet .q-choices .q-clock{width:50px;height:50px}
 .q-play-story,.q-play-storyRepair{grid-template-columns:1fr 1fr;gap:8px}.q-story{gap:4px;padding:6px}.q-story .q-number svg{width:22px!important;height:34px!important}.q-play-story>.q-dish,.q-play-storyRepair>.q-dish{padding:6px}.q-play-story>.q-adjust,.q-play-storyRepair>.q-adjust{gap:4px}.q-adjust>.q-button{width:44px;min-width:44px}
 .q-chart{gap:8px}.q-chart-column .q-adjust{flex-direction:column}.q-inventory .q-pile{grid-template-columns:repeat(3,minmax(0,1fr));padding:4px;gap:2px;grid-auto-rows:23px}
 .q-bond{width:100%;padding:8px}.q-bond-parts{gap:10px}.q-rulers{padding:10px}.q-units{flex-wrap:wrap}.q-units .q-button{flex:0 0 10%;min-width:26px}
}
/* All twelve destinations remain visible on a tablet, including portrait. */
@media(min-width:700px){
 .storybook-mode #home-ui{overflow:hidden;display:flex;flex-direction:column;padding:72px 3% 14px;gap:14px}
 .storybook-mode .storybook-hero{height:clamp(180px,28dvh,285px);flex-shrink:0}
 .storybook-mode .hero-copy{top:20px;left:26px}.storybook-mode .hero-copy h1{font-size:clamp(26px,3vw,42px);margin:8px 0}
 .storybook-mode .hero-actions{margin-top:15px;gap:8px}.storybook-mode .hero-actions button{padding:8px 12px;min-height:48px}
 .storybook-mode .theme-area{flex:1;min-height:0;margin:0}.storybook-mode .theme-grid{flex:1;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr));overflow:hidden;gap:12px}
 .storybook-mode .theme-heading{padding-bottom:8px}.storybook-mode .play-mode-bar{margin:0 4px 8px;gap:12px}.storybook-mode .play-mode-switch button{min-height:44px;padding:7px 14px}
 .storybook-mode .theme-card{padding:6px 8px;min-height:0;border-radius:22px}.storybook-mode .theme-art{width:38%;max-height:100%}.storybook-mode .theme-art svg{max-height:80px}.storybook-mode .theme-copy{gap:5px}.storybook-mode .theme-copy strong{font-size:clamp(11px,1.2vw,17px);letter-spacing:0}.storybook-mode .theme-copy small{font-size:9px}
}
@media(min-width:700px) and (orientation:portrait){
 .storybook-mode .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}
 .storybook-mode .storybook-hero{height:260px}.storybook-mode .hero-copy h1{font-size:30px}.storybook-mode .hero-copy{top:34px;left:22px}.storybook-mode .hero-copy p{max-width:280px}.storybook-mode .hero-picture{width:64%}
}
/* Browser toolbars can leave an iPad landscape viewport shorter than 768px. */
@media(min-width:700px) and (max-height:740px){
 .game-mode{--stage-bottom:66px}.game-mode .island-header{height:52px;padding-top:8px;padding-bottom:8px}.game-mode .header-progress{top:20px}
 .game-mode .speech-bubble{top:53px;min-height:52px;padding:4px 12px}.game-mode .game-nav{top:57px}.game-mode .voice-avatar{height:38px;width:38px}
 .game-mode #mission-trail{min-height:46px;padding:0 10px}.game-mode .bottom-controls{bottom:7px}.game-mode .icon-button{height:48px;width:48px}
 .q-board-content{gap:8px}.q-order{height:48px;min-height:48px}.q-number,.q-number svg{height:43px!important}.q-number svg{width:29px!important}.q-choices>.q-button{min-height:54px}
 .q-bond{padding:6px 12px}.q-bond-parts>div{padding:5px}.q-bond>span{font-size:22px}.q-bond .q-pile{grid-auto-rows:25px}
 .storybook-mode #home-ui{padding-top:70px;gap:10px}.storybook-mode .storybook-hero{height:165px}.storybook-mode .hero-copy{top:12px}.storybook-mode .hero-copy .tiny-label{display:none}.storybook-mode .hero-actions{margin-top:10px}.storybook-mode .hero-copy h1{font-size:28px;margin:4px 0}.storybook-mode .theme-grid{gap:9px}
}

/* Shared digit metrics: nested crop viewports must not inherit UI slot sizes. */
.q-number svg.normalized-digit>svg{width:revert!important;height:revert!important}
.q-sized-food{display:block;flex:0 0 clamp(24px,4cqw,44px);width:clamp(24px,4cqw,44px);height:clamp(32px,9cqh,56px);overflow:hidden}.q-sized-food>svg{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%}
.q-compare-sets{max-height:75%;width:min(800px,100%)}.q-compare-sets>.q-button{min-height:80px;max-height:130px;overflow:hidden}
.q-digit-lamp{position:relative;width:140px;border:4px solid #dac492;border-radius:28px;background:#fffbed;box-shadow:0 0 30px #ffda8b77;padding:8px}
.q-digit-ghost{position:absolute;inset:8px;opacity:.16;pointer-events:none}.q-digit-ghost .q-number,.q-digit-ghost .q-number>svg{height:112px!important;width:80px!important}
.q-lamp-half{height:56px;color:#d9cba9;font-size:25px;text-align:center;border-bottom:1px dashed #d9cba9}.q-digit-slice{height:56px;width:80px;overflow:hidden;margin:auto}.q-digit-slice .q-number,.q-digit-slice .q-number>svg{height:112px!important;width:80px!important}.q-digit-slice.half-1 .q-number{transform:translateY(-56px)}
.q-fireflies{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;background:#fffaf0dd;padding:14px;border-radius:24px}.q-fireflies>span{display:grid;place-items:center;width:clamp(42px,8cqw,65px);height:clamp(40px,10cqh,60px);border:2px dashed #c4b3c6;border-radius:16px;color:#baadc3;font-size:30px}.q-fireflies .lit{background:#fae3a1;border-color:#ebca73;color:#ac853e;box-shadow:0 0 15px #ffe2a3}
.q-big-lantern{max-width:180px;color:#d5ae58;font-size:26px;background:#fcf0c2;border-radius:25px;padding:12px;overflow-wrap:anywhere}.q-small-lantern{font-size:45px;color:#d5ae58}.q-direction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.q-direction-grid>.q-button{position:relative;width:clamp(65px,15cqw,120px);height:clamp(65px,18cqh,110px)}.q-direction-animal{display:block;width:60px;height:60px}.q-direction-animal .plush-pet{width:100%;height:100%}.q-story-slots{display:flex;gap:15px;margin-bottom:18px}.q-story-slots>div{background:#fffaf0;padding:12px;border:2px dashed #cdb6ce;border-radius:20px;min-width:100px}
.q-real-basket{position:relative;width:min(670px,94%);min-height:100px;padding:24px 15px 14px;border:7px solid #bd9464;border-radius:25px 25px 45px 45px;background:repeating-linear-gradient(15deg,#dcc29c 0 5px,#d3b68c 6px 10px);box-shadow:0 8px 0 #ae865e;isolation:isolate}.q-basket-handle{position:absolute;width:60%;height:75px;left:20%;top:-45px;border:9px solid #bd9464;border-bottom:0;border-radius:90px 90px 0 0;z-index:-1}.q-basket-items{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;min-height:55px}.q-basket-items>.q-button{height:clamp(44px,9cqh,58px);min-height:44px;min-width:40px;padding:3px;background:#fff9edc9}.q-basket-items svg{height:100%;width:100%}.q-picking-field{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:min(670px,100%);margin-bottom:34px}.q-picking-field>.q-button{height:clamp(44px,11cqh,68px)}.q-picked-space{min-height:44px}.q-picking-field svg{width:100%;height:100%}.q-step-instruction{font-size:15px;background:#fff9ede8;border-radius:14px;padding:7px 12px;color:#577f6f}
.treasure-art{display:block;position:relative;width:130px;height:130px;margin:auto;border-radius:50%;background:radial-gradient(#fff9dd,#dcebd5);box-shadow:0 5px 0 #d7dac4}.treasure-base{position:absolute;left:15%;top:12%;width:70%;height:75%}.treasure-detail{position:absolute;bottom:5%;right:2%;width:36%;height:42%}.treasure-stars{position:absolute;left:4%;top:4%;font-size:35px;color:#d9a67e}.treasure-art svg{width:100%;height:100%}.treasure-style-1{background:radial-gradient(#fff8ee,#e9cfd9)}.treasure-style-2{background:radial-gradient(#fff8ee,#cbddec)}.treasure-style-3{background:radial-gradient(#fff8ee,#e0d1ed)}.treasure-style-4{background:radial-gradient(#fff8ee,#f1dc9f)}.treasure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:15px}.treasure-grid button{border:2px solid white;border-radius:22px;background:#f7f4e9;padding:12px;color:#617e6d;display:grid;gap:8px}.treasure-grid button:disabled{opacity:.35}.treasure-garden{min-height:180px;background:linear-gradient(#edf3e2,#c8ddbd);border:6px solid #fffaf0;border-radius:30px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0;padding:12px}.treasure-garden button{background:none;border:0}.lesson-treasure{position:absolute;left:50%;top:45%;transform:translate(-50%,-40%);text-align:center}.lesson-treasure>.treasure-art{width:190px;height:190px}.gift-mode .gift-actions{z-index:30;flex-wrap:wrap}.gift-mode .gift-heading{z-index:30;pointer-events:none}
@media(max-width:600px){.q-play-order .q-choices,.q-play-order .q-sequence,.q-play-sequence .q-choices,.q-play-sequence .q-sequence{gap:5px;flex-wrap:wrap}.q-play-sequence .q-cloud,.q-play-order .q-cloud{min-width:43px;padding:3px}.q-play-sequence .q-number svg,.q-play-order .q-number svg{width:22px!important;height:34px!important}.q-play-sequence .q-choices>.q-button,.q-play-order .q-choices>.q-button{min-width:48px}.q-basket-items{grid-template-columns:repeat(5,minmax(0,1fr))}.q-picking-field{gap:4px}.q-digit-slice{width:60px}.q-digit-slice .q-number,.q-digit-slice .q-number>svg{width:60px!important}.lesson-treasure>.treasure-art{width:140px;height:140px}.gift-mode .gift-actions{bottom:15px}.gift-mode .gift-heading h2{font-size:23px}}
.q-units{flex-wrap:wrap;align-content:flex-start}.q-units .q-button{flex:0 0 7.5%}.q-units .q-extra-unit{background:#fae9da;box-shadow:inset 0 0 0 2px #dca67d}
/* Number discovery: large touch targets, quieter backgrounds, no scroll surfaces. */
.q-learning-cards,.q-link-baskets{display:flex;gap:18px;width:min(850px,100%);align-items:stretch;justify-content:center}
.q-learning-cards>.q-button,.q-link-baskets>.q-button{flex:1;min-width:0;padding:20px 12px;border:3px solid #fffaf1;background:#fff9eeeb;box-shadow:0 7px 0 #ddd1c19c;border-radius:32px}
.q-learning-cards>.q-button.selected,.q-link-baskets>.q-button.selected{border-color:#95baa6;background:#edf5e9}
.q-learning-cards .q-number{height:80px}.q-learning-cards .q-number svg{height:80px!important;width:52px!important}
.q-star-count{color:#d3ae5e;font-size:26px;max-width:170px;line-height:1.65;margin:16px auto;overflow-wrap:anywhere}
.q-card-status{display:block;color:#739888;font-size:24px}.q-model-number{font:700 clamp(80px,23cqh,130px)/1.2 system-ui;color:#678f80;background:#fffaf0;border:3px solid white;padding:0 36px;border-radius:30px;box-shadow:0 6px 0 #ddd6c8}
.q-flower-field{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;width:min(620px,100%)}
.q-flower-field>.q-button{height:clamp(48px,16cqh,85px);padding:4px}.q-flower-field svg{height:100%;width:100%}
.q-tiny-note{color:#637f72;background:#fffaf0e8;border-radius:20px;padding:6px 20px;font-size:18px}
.q-link-baskets .q-pile{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:clamp(24px,8cqh,42px)}.q-mail-tag{background:#f5e6da;border-radius:15px;min-height:48px;font-size:30px;color:#9b8570;margin-top:8px}
.q-moving-snacks{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;width:min(450px,90%);padding:14px;background:#fffaf0de;border-radius:30px;transition:width .5s,gap .5s}.q-moving-snacks.spread{width:min(850px,100%);gap:18px;grid-template-columns:repeat(5,1fr)}.q-moving-snacks>.q-button{height:clamp(48px,15cqh,78px)}.q-moving-snacks svg{width:100%;height:100%}
.q-compare-sets{display:grid;gap:24px;width:min(850px,100%)}.q-compare-sets>.q-button{padding:14px;background:#fffaf0ed}.q-compare-row{display:flex;gap:4px;justify-content:center;align-items:center}.q-compare-row svg{width:clamp(24px,5cqw,48px);height:clamp(30px,9cqh,60px)}.q-compare-row.widely-spaced{justify-content:space-between}
.q-neighbor-sign,.q-bundle-pair{display:flex;gap:24px;align-items:center;justify-content:center;background:#fffaf0eb;padding:20px;border-radius:30px;font-size:40px;color:#96ac93}.q-bundle-pair>div{text-align:center}.q-gap-road{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:15px;background:#fffaf0eb;border-radius:25px}.q-gap-road>span{display:grid;place-items:center;width:clamp(35px,7cqw,70px);height:clamp(40px,12cqh,65px);border:2px dashed #c6b5c5;border-radius:14px;font-size:24px;color:#b5a2b5}.q-gap-road .paved{background:#bed4b1;border:2px solid #94b68d;color:white}
.q-mixed-inventory{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;max-width:650px;background:#fffaf0d9;padding:8px;border-radius:22px}.q-mixed-inventory>.q-button{height:44px;min-height:44px;min-width:44px;padding:1px}.q-mixed-inventory svg{width:100%;height:100%}
@media(max-width:600px){.q-learning-cards,.q-link-baskets{gap:8px}.q-learning-cards>.q-button,.q-link-baskets>.q-button{padding:12px 5px;border-radius:22px}.q-learning-cards .q-number svg{height:62px!important;width:40px!important}.q-star-count{font-size:22px;max-width:75px}.q-flower-field{gap:5px}.q-flower-field>.q-button{min-width:40px}.q-compare-sets{gap:14px}.q-mixed-inventory{grid-template-columns:repeat(6,minmax(0,1fr))}.q-bundle-pair{gap:8px;padding:10px}.q-mail-tag .q-number svg{height:36px!important;width:25px!important}}

/* Separate workshop surfaces remain inside one tablet viewport. */
.q-repair-stops{display:flex;gap:18px;width:min(850px,100%)}.q-repair-stops>div{flex:1;min-width:0;background:#fffaf0ee;border:3px solid white;border-radius:25px;padding:12px}.q-repair-stops strong{display:block;text-align:center;margin-bottom:8px}.q-play-storyRepair{display:flex!important;flex-direction:column}.q-repair-stops .q-pile{grid-template-columns:repeat(5,1fr);grid-auto-rows:clamp(22px,6cqh,36px)}
@media(min-width:700px){.q-play-sort{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:center;gap:25px}.q-play-sort>.q-order{grid-column:1/-1;justify-self:center}.q-play-sort>.q-picking-field{grid-column:1;grid-template-columns:repeat(4,1fr);margin:0}.q-play-sort>.q-real-basket{grid-column:2;width:100%;box-sizing:border-box}.q-play-sort .q-basket-items{grid-template-columns:repeat(4,1fr)}}
@media(max-width:600px){.q-repair-stops{gap:8px}.q-repair-stops>div{padding:7px}.q-repair-stops .q-adjust{gap:4px}.q-repair-stops .q-number svg{width:23px!important;height:36px!important}.q-play-storyRepair>.q-route-card{font-size:16px;gap:4px}.q-play-storyRepair>.q-route-card .q-number svg{width:23px!important;height:36px!important}}

/* Bus passengers use fixed silhouettes. */
.q-passengers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;max-width:360px;margin:8px auto}
.q-passengers>span{display:block;height:clamp(26px,6cqh,44px);min-width:0}.q-passengers .plush-pet{width:100%!important;height:100%!important}
.q-bus{border-bottom:9px solid #a9bbac!important;border-radius:25px!important}.q-bus small{display:block;text-align:center}
.q-delivery{display:flex;gap:12px;align-items:center;width:min(760px,100%)}.q-delivery>div{flex:1;min-width:0;background:#fffaf2ef;border:3px solid white;border-radius:25px;padding:12px;text-align:center}.q-delivery strong{display:block;font-size:clamp(14px,2.4cqh,18px);margin-bottom:8px}.q-delivery .q-pile{grid-template-columns:repeat(5,1fr);grid-auto-rows:clamp(22px,5.5cqh,38px)}.q-delivery .q-number{justify-content:center}.q-delivery-away{border-style:dashed!important}.q-delivery-arrow{font-size:30px}.q-parcel-question{display:block;font-size:46px;padding:20px 0}.q-order small{font-size:16px}.treasure-base .plush-pet{width:100%;height:100%}
@media(max-width:600px){.q-passengers{gap:2px}.q-delivery{gap:5px}.q-delivery>div{padding:7px}.q-delivery .q-number svg{width:24px!important;height:36px!important}.q-delivery-arrow{font-size:20px}}

.q-start-clue{display:flex;align-items:center;gap:20px;padding:20px;background:#fffaf0ee;border:3px solid white;border-radius:28px;text-align:center}.q-start-clue>div{display:grid;gap:10px;justify-items:center}.q-start-clue strong{font-size:50px;color:#b69abd}.q-start-clue>span{line-height:2}.q-unit-train{display:flex;align-items:center;gap:10px;max-width:100%}.q-unit-train>div,.q-unit-options>button{display:flex;justify-content:center;gap:4px;padding:10px;background:#fffaf1;border:3px solid white;border-radius:20px}.q-unit-train>div>span,.q-unit-options>button>span{width:clamp(24px,5.5cqw,60px);height:clamp(24px,7cqh,60px);display:block}.q-unit-unknown{min-width:60px;font-size:36px}.q-unit-options{display:flex;gap:12px;margin-top:20px;max-width:100%}.q-unit-options>button{min-height:60px}.q-play-patternUnit{max-width:1100px!important}
@media(max-width:700px){.q-start-clue{gap:10px;padding:12px;font-size:14px}.q-unit-train{gap:4px}.q-unit-train>div{padding:5px;gap:1px}.q-unit-options{flex-direction:column;gap:8px;margin-top:12px}.q-unit-options>button{padding:8px}.q-unit-options>button>span{width:38px;height:38px}.q-unit-unknown{min-width:35px}}

/* v25: basket boundaries, visible route endpoints and pictograph records */
.q-basket-handle{display:none}.q-real-basket{border-top:10px solid #c7a577}.q-play-pack>.q-order,.q-play-repair>.q-order{position:relative;z-index:2;margin-bottom:12px}.q-route-grid .q-button{position:relative;padding:5px 5px 21px}.q-route-symbol{display:block;width:36px;height:36px;margin:auto}.q-route-label{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:11px;line-height:14px;color:#486657}
.q-picture-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(760px,100%)}.q-picture-record{background:#fffaf1ee;border:3px solid white;border-radius:22px;padding:8px}.q-record-heading{display:flex;justify-content:center;align-items:center;gap:10px;min-height:42px}.q-record-heading>svg{width:34px!important;height:34px!important}.q-record-heading .q-button{width:48px;height:48px;padding:4px;min-width:44px}.q-record-heading .q-number svg{width:23px!important;height:34px!important}.q-record-items{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;min-height:22px}.q-record-items>span{height:clamp(20px,5cqh,34px);min-width:0}.q-picture-record .q-covered{height:65px}.q-play-chartBuild{display:flex!important;max-width:1000px!important}.q-play-chartBuild>.q-inventory,.q-play-chartBuild>.q-mixed-inventory{max-height:130px;width:min(650px,100%)}.q-picture-record .q-adjust{margin-top:5px}.q-picture-record .q-adjust button{width:44px;height:44px}.q-play-chartBuild .q-record-items>span{height:23px}
.q-bake-pans{display:flex;align-items:center;justify-content:center;gap:18px}.q-bake-pans>div{display:grid;place-items:center;gap:8px;min-width:100px;background:#fffaf1;border:4px solid white;border-radius:25px;padding:18px;font-size:38px;color:#a683ae}.q-bake-pans small{font-size:16px;color:#607e70}.q-bake-question{background:#fffaf1ee;padding:12px 20px;border-radius:20px;text-align:center;font-size:18px}.q-recipe-options{display:flex;gap:12px}.q-recipe-options>button{display:flex;align-items:center;gap:8px;padding:15px}.q-box-order{display:flex;gap:12px}.q-box-order>div{display:grid;justify-items:center;background:#fffaf0;border:3px solid white;border-radius:20px;padding:12px}.q-box-order>div>span{font-size:34px}
@media(max-width:700px){.q-picture-records{gap:6px}.q-picture-record{padding:4px;border-width:2px}.q-record-items{gap:1px;grid-template-columns:repeat(4,minmax(0,1fr))}.q-record-items>span{height:23px}.q-record-heading{gap:3px}.q-play-chartBuild>.q-inventory,.q-play-chartBuild>.q-mixed-inventory{max-height:95px}.q-play-chartBuild .q-record-items>span{height:19px}.q-bake-pans{gap:7px}.q-bake-pans>div{min-width:65px;padding:10px}.q-bake-question{font-size:15px;padding:10px}.q-recipe-options{flex-direction:column;gap:8px}.q-recipe-options>button{padding:8px;justify-content:center}.q-box-order{gap:4px}.q-box-order>div{padding:7px}.q-box-order .q-number svg{width:22px!important;height:33px!important}}

/* The painted garden replaces the flat island and circular reward badges. */
.gift-mode #world,.gift-mode #scene-backdrop{visibility:hidden!important}.gift-garden-scene{position:absolute;left:3%;right:3%;top:170px;bottom:100px;border:5px solid #fffdf5;border-radius:36px;background-size:cover;background-position:center;box-shadow:0 8px 0 #dad6c9}.gift-mode .gift-heading{top:73px!important}.gift-heading p{margin:6px 0;color:#657d67}.gift-mode .lesson-treasure{top:56%;transform:translate(-50%,-50%);z-index:4}.lesson-treasure h2{display:inline-block;margin:8px 0 0;background:#fffaf0ed;border:2px solid white;border-radius:18px;padding:8px 22px;color:#5b7764;font-size:22px}.treasure-art{background:none!important;border-radius:0;box-shadow:none;filter:drop-shadow(0 7px 4px #58442a20)}.treasure-stars{display:none}.treasure-base{left:8%;top:4%;width:84%;height:88%}.treasure-detail{right:8%;bottom:10%;width:30%;height:35%;transform:rotate(-8deg)}.treasure-painted img{display:block;width:100%;height:100%;object-fit:contain}.lesson-treasure>.treasure-art{width:clamp(155px,23vw,280px);height:clamp(150px,24vh,240px)}.gift-mode .gift-actions{bottom:24px;gap:12px}.treasure-garden{background-size:cover;background-position:center 60%;height:300px;align-items:flex-end;padding:50px 18px 28px;flex-wrap:nowrap;gap:8px}.treasure-garden .treasure-art{width:100%;height:100%}.treasure-garden button{width:15%;height:110px;padding:0;filter:drop-shadow(0 6px 2px #6b604838)}.treasure-garden>span{background:#fffaf0df;padding:12px;border-radius:18px}.treasure-grid .treasure-art{width:110px;height:110px}
@media(max-width:700px){.gift-garden-scene{top:155px;bottom:145px;left:3%;right:3%;border-radius:25px}.gift-mode .gift-heading{top:83px!important}.gift-heading h2{font-size:23px!important}.gift-mode .lesson-treasure{top:52%}.gift-mode .gift-actions{bottom:20px;gap:8px;padding:0 14px}.gift-mode .gift-actions button{min-height:45px}.lesson-treasure h2{font-size:18px;padding:7px 15px}.treasure-garden{height:220px;padding:35px 8px 22px;gap:2px}.treasure-garden button{height:70px}}

@media(min-width:900px){.q-play-chartBuild>.q-picture-records{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}}

.q-route-grid>.q-button{height:64px;min-height:64px}.q-route-symbol{width:32px;height:32px;font-size:28px;line-height:32px}.q-route-label{bottom:4px}
/* v26: pictorial data reasoning, with no stacked source/answer panels. */
.survey-ledger{display:grid;gap:8px;width:min(780px,100%)}.survey-row{display:grid;grid-template-columns:52px minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr);align-items:center;gap:8px;min-height:clamp(54px,14cqh,70px);padding:4px 12px;background:#fffaf0ed;border:3px solid #fff;border-radius:20px;box-sizing:border-box}.survey-row.active{border-color:#86b19c;background:#f0f7e9;box-shadow:0 0 0 3px #b6d4ba44}.survey-food{display:block;width:44px;height:44px;flex:none}.survey-food svg{width:100%;height:100%}.survey-row>.q-button{width:48px;height:48px;padding:2px}.survey-ticket{display:flex;justify-content:center;align-items:center;gap:7px;min-width:0}.survey-ticket>span:first-child{font-size:25px}.survey-total{font-size:30px;text-align:center;color:#ab8eab}.survey-row .q-number,.survey-row .q-number>svg{height:36px!important}.survey-row .q-number>svg{width:24px!important}.survey-stock{background:#f2e2c8;border-radius:14px;padding:4px}.survey-shortage{display:flex;align-items:center;gap:12px;padding:4px 18px;background:#fffaf0;border-radius:20px;font-size:24px}.survey-transfer{display:flex;align-items:center;justify-content:center;gap:12px;background:#fffaf0ee;border-radius:24px;padding:10px 18px;font-size:24px}.survey-cart{animation:survey-cart-bob 1.5s ease-in-out infinite}.survey-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;width:min(800px,100%)}.survey-cards:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:550px}.survey-cards:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}.survey-choice{display:grid;justify-items:center;gap:12px;padding:15px!important;background:#fffaf0ee!important}.survey-change{padding:5px 18px;border-radius:15px;font-size:24px;background:#e2efda;color:#587961}.survey-change.take{background:#f3dfdf;color:#a0717e}.survey-result{font-size:32px;color:#a98eb2}.survey-food svg{pointer-events:none}@keyframes survey-cart-bob{50%{transform:translateX(8px)}}
/* Each hop is visible. The unknown starting number stays hidden. */
.frog-demo-tools{display:flex;align-items:center;gap:20px}.frog-demo-tools>span{display:flex;align-items:center;gap:10px;font-size:28px}.frog-demo-tools button{font-size:25px}.frog-pond{position:relative;width:min(800px,100%);background:linear-gradient(155deg,#d9eee6e8,#b8dce5ed);border:5px solid #fffaf0;border-radius:50px;padding:60px 5px 25px;box-sizing:border-box}.frog-stones{display:grid;grid-template-columns:repeat(var(--stones),minmax(0,1fr));align-items:center}.frog-stone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin:0 3px;min-height:70px;border-radius:48% 42% 45% 35%;background:#c7d9aa;border-bottom:6px solid #9eb88c;color:#a184a8;font-size:34px}.frog-stone small{font-size:18px;height:20px}.frog-stone .q-number,.frog-stone .q-number>svg{height:36px!important}.frog-stone .q-number>svg{width:23px!important}.frog-stone.mystery{background:#fff3c9;border-color:#d9c382}.frog-hop-arrow{position:absolute;right:-12px;top:-25px;font-size:25px;color:#4f826f;z-index:1}.frog-hopper{position:absolute;top:32px;font-size:36px;z-index:2;line-height:38px}.frog-dot{font-size:22px;opacity:.45}
@media(max-width:700px){.survey-row{grid-template-columns:44px minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr);gap:2px;padding:3px;border-width:2px;min-height:65px}.survey-ledger{gap:6px}.survey-ticket{flex-direction:column;gap:0}.survey-ticket>span:first-child{font-size:17px;line-height:19px}.survey-row .q-number,.survey-row .q-number>svg{height:29px!important}.survey-row .q-number>svg{width:19px!important}.survey-food{width:38px;height:38px}.survey-row>.q-button{width:44px;height:48px;min-width:44px}.survey-stock{padding:3px}.survey-transfer{gap:5px;font-size:19px;padding:8px}.survey-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.survey-choice{gap:6px;padding:10px!important}.survey-cards:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}.survey-change{font-size:20px;padding:4px 8px}.survey-result{font-size:25px}.frog-stone{margin:0 1px;min-height:62px;border-bottom-width:4px}.frog-stone .q-number,.frog-stone .q-number>svg{height:27px!important}.frog-stone .q-number>svg{width:17px!important}.frog-pond{padding-left:1px;padding-right:1px}.frog-hop-arrow{right:-8px;font-size:20px}.frog-hopper{font-size:30px}.frog-stone small{font-size:15px}}
@media(prefers-reduced-motion:reduce){.survey-cart{animation:none}.frog-hopper{animation-duration:12s!important}}

.survey-food .plush-pet{display:block;width:100%;height:100%}.split-friend{display:block;font-size:30px;text-align:center}.q-split-mystery .q-dish>.q-number{justify-content:center}

.pet-activities{position:absolute;left:14px;top:20%;z-index:5;display:grid;gap:9px}.pet-activities button{width:60px;height:62px;border:2px solid white;border-radius:20px;background:#fff8e9ed;box-shadow:0 4px 0 #dbcab861;font-size:25px}.pet-activities small{display:block;font-size:10px;color:#708776}.pet-wardrobe{gap:6px}.outfit-button{width:67px!important}.outfit-button>.plush-pet{height:100%!important;width:100%!important;display:block;animation:none!important}.outfit-button .plush-pet svg{width:100%;height:100%}
#pet-play-sheet{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:20px;background:#d8e6df8f;backdrop-filter:blur(9px);font-family:inherit}.pet-play-card{position:relative;width:min(980px,96vw);height:min(680px,91dvh);padding:24px;border:4px solid #fff;border-radius:40px;background:radial-gradient(ellipse at 80% 10%,#fff0d8,transparent 60%),linear-gradient(140deg,#fffbf1,#f6edf8);box-shadow:0 10px 0 #c4d2c278,0 28px 90px #526d4c25;display:flex;flex-direction:column;gap:10px;overflow:hidden}.pet-play-card header{text-align:center;flex:none}.pet-play-card header small{font-size:9px;letter-spacing:2px;color:#a6af97}.pet-play-card h2{font-size:24px;color:#688779;margin:5px}.pet-play-close{position:absolute;right:16px;top:13px;width:48px;height:48px;border-radius:50%;background:#ede3ef;color:#927fa0;font-size:30px;z-index:2}.pet-play-dots{height:24px;display:flex;justify-content:center;gap:8px;color:#ddd9d0}.pet-play-dots i{font-style:normal}.pet-play-dots .done{color:#d89fab}.pet-play-stage{display:grid;grid-template-columns:32% 1fr;gap:18px;flex:1;min-height:0;align-items:center}.pet-play-friend{text-align:center;align-self:center;min-height:0}.pet-play-friend>.plush-pet{display:block;width:100%;height:310px;max-height:47dvh;animation:none!important}.pet-play-friend .plush-pet svg{width:100%;height:100%}.pet-play-friend>span:last-child{color:#97a98e;display:block;font-size:14px;margin-top:8px}.pet-play-space{position:relative;height:100%;min-height:0;background:#fffdf788;border:2px dashed #e0d4c3;border-radius:35px;overflow:hidden}.pet-play-caption{text-align:center;font-size:14px;color:#8b9d82;margin:4px;flex:none}.pet-play-joy{animation:pet-play-bounce .6s ease}.pet-catch-ball{position:absolute;width:86px;height:86px;transform:translate(-50%,-50%);border:4px solid #fff8ec;border-radius:50%;background:conic-gradient(#edbdcd 0 90deg,#bfaddd 90deg 180deg,#aad4c7 180deg 270deg,#f1d391 270deg);box-shadow:inset -7px -7px 0 #a3909829,0 7px 0 #d9c9b164;color:#fff9e8;font-size:36px;z-index:2}.pet-ball-trail{position:absolute;bottom:8%;left:15%;color:#e4c185;font-size:32px;pointer-events:none}.pet-flowerpots,.pet-hide-blankets{display:flex;gap:12px;align-items:center;justify-content:center;height:100%;padding:16px}.pet-flowerpots button{width:30%;border:0;background:transparent;height:240px;position:relative}.pet-flower{font-size:58px;height:105px;display:grid;place-items:end center;transition:font-size .4s}.pet-flower.stage-0{color:#bba078}.pet-pot{display:grid;place-items:center;margin:0 auto;background:linear-gradient(#edb7a8,#d99487);border-top:10px solid #f5d1ba;border-radius:7px 7px 26px 26px;width:90%;height:72px;font-size:30px;color:#fff4dc;box-shadow:0 5px 0 #b97d6c22}.pet-water{font-size:16px;display:block;margin-top:14px}.pet-hide-blankets>button{width:31%;height:210px;position:relative;border:0;background:#fffaed;border-radius:24px;overflow:hidden;padding:5px}.pet-hide-inside{position:absolute;inset:8px;display:grid;place-items:center;font-size:40px}.pet-hide-inside>.plush-pet{height:100%;width:100%;display:block;animation:none!important}.pet-hide-inside svg{width:100%;height:100%}.pet-blanket-cover{position:absolute;inset:0;border:5px solid #f3dce8;background:repeating-linear-gradient(45deg,#d9bdd2 0 6px,#e4cddd 6px 12px);border-radius:22px;display:grid;place-items:center;color:#fffbed;font-size:50px;transition:transform .4s}.pet-hide-blankets>button:nth-child(2) .pet-blanket-cover{background:#bed2c5;border-color:#d6e6d9}.pet-hide-blankets>button:nth-child(3) .pet-blanket-cover{background:#b9c9de;border-color:#d4dfef}.pet-hide-blankets .peek .pet-blanket-cover{transform:translateY(95%)}.pet-brush-cloud{height:100%;display:flex;align-items:center;justify-content:center;gap:15px;position:relative}.pet-brush-soft{position:absolute;font-size:240px;color:#fffdf2;text-shadow:0 8px 20px #d7bedc70;pointer-events:none}.pet-brush-cloud button{position:relative;z-index:1;border:3px solid white;border-radius:24px;background:#f3e5cb;width:80px;height:100px;font-size:36px;box-shadow:0 5px 0 #d6c8ba}.pet-brush-cloud button small{display:block;font-size:15px;color:#c290a1}.pet-brush-cloud button:disabled{background:#dfeddc}.pet-memory-earned{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.pet-memory-earned>.plush-pet{height:52%;max-height:210px;display:block;animation:none!important}.pet-memory-earned svg{width:100%;height:100%}.pet-memory-earned h3{font-size:18px;color:#76937e;margin:0}.memory-sparkles{font-size:28px;color:#d8b777}.pet-memory-earned button{min-width:64px;height:52px;border:3px solid white;background:#b3d1ba;color:#536f60;border-radius:20px;margin:0 7px;font-size:25px}.pet-album{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px}.pet-memory{min-height:0;background:#fbf4e7;border:2px dashed #deccb8;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:9px}.pet-memory.collected{background:#fff7f0;border:2px solid #e2c7ce}.pet-memory>.plush-pet{height:65%;width:100%;min-height:0;display:block;animation:none!important}.pet-memory svg{height:100%;width:100%}.pet-memory b{font-size:13px;color:#849581}.pet-memory small{font-size:10px;color:#a49584}.memory-empty{font-size:38px;opacity:.55}
@keyframes pet-play-bounce{40%{transform:translateY(-14px) rotate(-3deg)}70%{transform:rotate(3deg)}}
@media(max-width:760px){.pet-activities{left:7px;gap:7px}.pet-activities button{width:48px;height:52px;font-size:21px}.pet-activities small{font-size:9px}.pet-wardrobe{gap:2px;padding:4px}.outfit-button{width:43px!important}.pet-play-card{padding:18px 10px;border-radius:28px;height:90dvh}.pet-play-card h2{font-size:21px}.pet-play-stage{grid-template-columns:1fr;grid-template-rows:25% 1fr;gap:7px}.pet-play-friend{height:100%;display:flex;align-items:center;justify-content:center}.pet-play-friend>.plush-pet{height:100%;width:130px}.pet-play-friend>span:last-child{display:none}.pet-play-space{min-height:0}.pet-play-close{width:44px;height:44px;right:8px;top:8px}.pet-play-caption{font-size:12px}.pet-hide-blankets{gap:8px;padding:10px}.pet-hide-blankets>button{height:70%}.pet-flowerpots{gap:6px;padding:8px}.pet-flowerpots button{height:220px}.pet-catch-ball{width:76px;height:76px}.pet-album{gap:8px;padding:8px}}
@media(prefers-reduced-motion:reduce){.pet-play-joy{animation:none}.pet-blanket-cover{transition:none}}

.q-button:disabled{opacity:.42;cursor:default;box-shadow:none}.q-play-chartBuild .q-bar{gap:2px}.q-play-chartBuild .q-bar i{height:clamp(4px,1.25cqh,7px);flex-shrink:0}

.pet-brush-cloud>.plush-pet{position:absolute;inset:5%;height:90%;width:90%;display:block;animation:none!important}.pet-brush-cloud .plush-pet svg{width:100%;height:100%}.pet-brush-cloud button{position:absolute;width:60px;height:64px;font-size:26px;left:calc(20% + var(--i)*25%);top:calc(25% + var(--i)*22%);transform:translate(-50%,-50%);background:#fff4dedd}.pet-brush-cloud button small{font-size:12px}

.pet-brush-cloud [data-brush="0"]{left:50%;top:25%}.pet-brush-cloud [data-brush="1"]{left:45%;top:62%}.pet-brush-cloud [data-brush="2"]{left:63%;top:82%}

.header-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
.music-controls{display:flex;align-items:center;background:#fffaf2ee;border:2px solid #fff;border-radius:21px;box-shadow:0 3px 0 #dfd9cd;color:#759487;overflow:hidden}
.music-controls button{display:grid;place-items:center;background:transparent;border:0;color:inherit;width:46px;height:44px;min-width:44px;padding:10px;touch-action:manipulation}
.music-controls button+button{border-left:1px solid #e7e4d8;width:44px}
.music-controls button:hover{background:#e8f0e2}.music-controls button:focus-visible{outline:3px solid #bc91b0;outline-offset:-4px;border-radius:14px}
.music-controls svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.music-controls ellipse{fill:currentColor}.music-controls[data-enabled=false]{color:#ae93a6}.music-slash{stroke:#ae93a6;stroke-width:2.5}
.storybook-mode .header-progress{right:300px}
@media(max-width:900px){.header-tools{gap:5px}.header-tools .parent-entry{min-width:44px;min-height:44px;padding:10px}.header-tools .parent-entry span{display:none}.storybook-mode .header-progress{display:none}.game-mode .header-progress{max-width:30%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:480px){.island-header{gap:4px!important;padding-left:12px!important;padding-right:12px!important}.island-brand{gap:4px!important}.island-brand strong{font-size:14px!important;letter-spacing:0!important}.island-brand small{display:none}.brand-bunny{transform:scale(.7)!important;margin-right:-12px!important}.header-tools{gap:4px}.music-controls{border-radius:17px}.header-progress{display:none!important}}

.math-operator{display:inline-block;vertical-align:middle;flex-shrink:0;width:42px;height:54px}
#quest-board .q-play-story,#quest-board .q-play-storyRepair{display:flex!important;flex-direction:column;gap:8px;justify-content:center;width:min(700px,94%)}
.q-story-stage{display:flex;align-items:center;justify-content:center;gap:18px;background:#fffcf0ee;border-radius:24px;padding:9px 18px;font-size:25px;max-width:100%}.q-story-stage>span{display:flex;align-items:center;gap:5px}.q-story-stage .q-number svg{width:32px!important;height:44px!important}.q-stop-progress{display:flex;gap:20px;font-size:17px}.q-stop-progress>span{padding:4px 10px;border-radius:20px}.q-stop-progress .active{background:#f2dba1}.q-stop-progress .done{background:#dbe8d0}.q-bus{max-width:550px!important;padding:8px!important;min-height:75px}.bus-question{font-size:24px;display:block}.q-bus .q-passengers{max-width:450px;grid-template-columns:repeat(6,minmax(0,1fr));margin:4px auto}.q-bus .q-passengers>span{height:clamp(23px,5cqh,39px)}
.arcade-mode #world,.arcade-mode #scene-backdrop,.arcade-mode>.island-header,.arcade-mode #go-home{visibility:hidden}.arc-entry{border:0;background:#e9efdc;color:#547367;border-radius:16px;padding:8px 16px;font:inherit;font-weight:bold;cursor:pointer}
#arcade{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;gap:10px;padding:max(12px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:radial-gradient(ellipse at 85% 0,#fff0c6,transparent 50%),#f7f6ed;color:#506d63;box-sizing:border-box;overflow:hidden;touch-action:none;user-select:none;font-family:system-ui,sans-serif}
#arcade *{box-sizing:border-box}#arcade button{cursor:pointer;font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent}#arcade button:focus-visible{outline:4px solid #ca9276;outline-offset:2px}.arc-top{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:70px;gap:10px}.arc-top>div:not(.arc-tools){text-align:center}.arc-top h1{font-size:25px;margin:2px 0}.arc-top small{font-size:13px;color:#84957b}.arc-tools{display:flex;gap:9px}.arc-button{border:2px solid #fffef5;background:#e6edda;border-radius:20px;min-width:54px;height:54px;font-size:30px;font-weight:bold;box-shadow:0 4px 0 #cbd3bb;touch-action:none}.arc-button:active{transform:translateY(3px);box-shadow:0 1px 0 #cbd3bb;background:#d4e2c4}.arc-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;width:min(1130px,100%);margin:auto;min-height:0}.arc-game-card{border:3px solid #fff;border-radius:32px;background:#fffaf1;padding:16px;box-shadow:0 7px 0 #dddccc;text-align:center;min-width:0}.arc-game-card h2{font-size:25px;margin:6px 0}.arc-game-card p{font-size:14px;margin:7px 0 17px}.arc-game-card>small{color:#8b987e}.arc-illustration{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(90px,25vh,210px);border:0;border-radius:24px;background:#e4ecd5}.arc-illustration>svg{height:100%;width:100%;max-width:230px}.arc-game-card.box .arc-illustration{background:#d9e9eb}.arc-game-card.pipe .arc-illustration{background:#f0e1e4}.box-scene,.pipe-scene{font-size:48px;display:flex;align-items:center;gap:10px}.box-scene i,.pipe-scene i{font-size:30px;font-style:normal}.arc-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.arc-levels .arc-button{font-size:20px;min-width:44px;height:45px;border-radius:13px}.arc-menu-note{text-align:center;font-size:14px;flex-shrink:0;margin:6px}.arc-stage{min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;position:relative;container-type:size}.arc-stage canvas{display:block;max-width:100%;max-height:calc(100% - 57px);aspect-ratio:960/440;object-fit:contain;border:4px solid #fff;border-radius:25px;box-shadow:0 5px 0 #d5dece;width:auto;height:auto}.arc-equations{display:flex;gap:12px;justify-content:center;flex-shrink:0;height:48px;align-items:center}.arc-equations span{background:#e7e9dc;border-radius:15px;padding:7px 15px;font-size:22px;color:#879584;white-space:nowrap}.arc-equations .current{background:#fff9df;box-shadow:0 0 0 3px #d7bd7e;color:#4a655b}.arc-equations .solved{background:#dbe8cd;color:#6b8d56}.arc-controls{display:flex;align-items:center;justify-content:space-between;width:min(800px,100%);margin:0 auto;flex-shrink:0;gap:16px;height:73px}.arc-controls>div:not(.arc-dpad){display:flex;gap:16px}.arc-controls .arc-hold{width:92px;height:64px;background:#e0e9d1;font-size:40px}.arc-controls>.arc-hold{background:#f0dbaa}.arc-controls>span{font-size:28px}.arc-clue{font-size:29px;height:40px;flex-shrink:0}.arc-board{--cols:4;--rows:4;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);gap:4px;aspect-ratio:var(--cols)/var(--rows);width:min(95cqw,calc((100cqh - 52px)*var(--cols)/var(--rows)),660px);min-height:0;border:8px solid #dfdcc9;border-radius:22px;background:#dfdcc9;overflow:hidden}.arc-cell{border:0;min-width:0;min-height:0;padding:0;border-radius:9px;background:#fff7df;font-size:clamp(20px,5cqh,42px);display:flex;align-items:center;justify-content:center;position:relative}.arc-cell.wall{background:linear-gradient(145deg,#a2b495,#829b77);box-shadow:inset 0 -6px 0 #718b66;cursor:default!important}.arc-cell.water{background:#8dc3ce;color:#ddfaff}.arc-cell.bridge{background:repeating-linear-gradient(0deg,#b58b61 0 10px,#dbc49c 10px 14px)}.arc-cell.player{background:#f7dea1;box-shadow:inset 0 0 0 3px #d4b575}.arc-cell.gem{background:#dcebd5}.arc-dpad{display:grid;grid-template-columns:repeat(4,58px);gap:10px}.arc-pipe-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:calc(100% - 48px);min-height:0;container-type:size}.arc-pipe-wrap .arc-board{width:min(calc(100cqw - 95px),100cqh,530px);aspect-ratio:1;gap:3px}.pipe-cell{border-radius:4px;background:#efeddd;touch-action:manipulation}.pipe-cell svg{width:100%;height:100%}.pipe-cell.wet{background:#dfefec}.arc-source,.arc-flower{font-size:34px;position:absolute;z-index:2;pointer-events:none}.arc-source{left:calc(50% - min((100cqw - 95px)/2,50cqh,265px) - 38px);top:3%}.arc-flower{right:calc(50% - min((100cqw - 95px)/2,50cqh,265px) - 38px);bottom:3%}.arc-flower.bloom{animation:arc-bloom .7s infinite alternate}@keyframes arc-bloom{to{transform:scale(1.3) rotate(8deg)}}.arc-overlay{position:absolute;inset:86px 0 0;background:#d3e1d6ba;display:grid;place-items:center;z-index:5;backdrop-filter:blur(3px)}.arc-overlay[hidden]{display:none}.arc-result{background:#fffaf0;border:4px solid white;border-radius:35px;padding:35px;text-align:center;box-shadow:0 8px 0 #bfcdb7}.arc-result>span{font-size:60px}.arc-result h2{font-size:24px}.arc-result>div{display:flex;gap:24px;justify-content:center}.arc-result .arc-button{min-width:78px;height:64px}.arc-next{background:#efdcae}.arc-status:empty{display:none}
@media(max-width:650px){#arcade{padding:10px;gap:5px}.arc-top{height:58px}.arc-top h1{font-size:20px}.arc-top .arc-button{height:46px;min-width:46px;border-radius:16px}.arc-top small{font-size:11px}.arc-menu{display:flex;flex-direction:column;gap:12px;margin:auto;max-height:100%}.arc-game-card{display:grid;grid-template-columns:95px 1fr;grid-template-rows:20px 26px 20px 48px;column-gap:12px;text-align:left;padding:10px;border-radius:22px}.arc-illustration{grid-column:1;grid-row:1/5;height:100%;border-radius:16px}.box-scene,.pipe-scene{font-size:30px;flex-direction:column;gap:0}.box-scene i,.pipe-scene i{font-size:20px}.arc-game-card h2{font-size:20px;margin:0}.arc-game-card p{margin:0;font-size:11px}.arc-levels{grid-template-columns:repeat(6,1fr);gap:4px}.arc-levels .arc-button{height:40px;min-width:0;font-size:15px;border-radius:10px}.arc-menu-note{font-size:11px;margin:5px 0}.arc-equations{gap:6px;height:auto;flex-wrap:wrap}.arc-equations span{font-size:17px;padding:6px 10px}.arc-controls{height:73px;gap:5px}.arc-controls .arc-hold{width:68px}.arc-dpad{grid-template-columns:repeat(4,48px);gap:6px}.arc-dpad .arc-button{min-width:44px;height:49px}.arc-controls>span{font-size:17px}.arc-board{border-width:5px;gap:3px;border-radius:17px}.arc-clue{font-size:25px}.arc-stage canvas{max-height:calc(100% - 90px)}.arc-result{padding:22px}.arc-result h2{font-size:20px}}
@media(max-height:570px) and (min-width:651px){.arc-top{height:50px}.arc-top h1{font-size:19px}.arc-top .arc-button{height:44px;min-width:44px}.arc-illustration{height:80px}.arc-game-card{padding:8px}.arc-game-card h2{font-size:21px}.arc-game-card p{margin:4px}.arc-levels{grid-template-columns:repeat(6,1fr);gap:5px}.arc-levels .arc-button{height:38px;font-size:16px;min-width:32px}.arc-menu{gap:12px}.arc-controls{height:54px}.arc-controls .arc-hold{height:48px}.arc-equations{height:37px}.arc-equations span{font-size:18px;padding:4px 12px}.arc-menu-note{font-size:12px}.arc-clue{height:30px;font-size:24px}}

.arc-pipe-board{position:relative;width:min(calc(100cqw - 95px),100cqh,530px);aspect-ratio:1}.arc-pipe-wrap .arc-pipe-board .arc-board{width:100%;height:100%}.arc-pipe-board .arc-source{left:-38px;top:calc(50% / var(--cols) - 17px)}.arc-pipe-board .arc-flower{right:-38px;bottom:calc(50% / var(--cols) - 17px)}
.theme-heading{flex-wrap:wrap;gap:8px}.theme-heading .arc-entry{margin-left:auto;font-size:14px}@media(max-width:600px){.theme-heading>small{display:none}.theme-heading .arc-entry{font-size:11px;padding:7px 9px}.q-story-stage{gap:8px;font-size:20px;padding:7px}.q-story-stage .q-number svg{width:25px!important;height:34px!important}}

/* v28: a single bounded play area, with engine-managed scenes inside it. */
#arcade.arc-v28{background:radial-gradient(ellipse at 12% 5%,#f6e9ca99,transparent 40%),radial-gradient(ellipse at 90% 100%,#dce9d5,transparent 55%),#faf8ee;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));gap:8px}
.arc-v28 .arc-top{width:min(1200px,100%);margin:auto;height:66px}.arc-v28 .arc-top h1{font-family:serif;letter-spacing:3px;font-size:26px;color:#486956}.arc-v28 .arc-top small{letter-spacing:1px}.arc-v28 .arc-button{border-color:#fffcf2;background:linear-gradient(#f0f3df,#dce5c9);box-shadow:0 4px 0 #bccaaa,0 8px 14px #81927915}.arc-v28 .arc-button:active{box-shadow:0 1px 0 #bccaaa}.arc-v28 .arc-stage{width:min(1320px,100%);margin:0 auto;gap:6px}.arc-v28 .arc-engine{position:relative;width:100%;height:100%;min-height:0;flex:1;border:4px solid #fffcf1;border-radius:30px;overflow:hidden;box-shadow:0 6px 0 #a0b19733,0 15px 35px #82938212;background:#d7e7d8}.arc-v28 .arc-engine canvas{position:absolute;display:block;border:0;border-radius:0;box-shadow:none;max-width:none;max-height:none;object-fit:fill;aspect-ratio:auto}.arc-v28 .box-engine{background:radial-gradient(ellipse at 50% 35%,#d6e8d5,#a6cecb 85%)}.arc-v28 .box-engine canvas{inset:0;width:100%;height:100%}.arc-v28 .duck-engine{background:#cadfd3}.arc-v28 .pipe-engine{background:#e3e9d6}.arc-v28 .arc-clue{display:flex;align-items:center;gap:22px;height:38px;font-size:28px}.arc-v28 .arc-clue>span:not(:nth-child(even)){display:inline-flex;align-items:center;justify-content:center;min-width:39px;height:34px;border-radius:10px;background:#fffaf1;box-shadow:0 3px 0 #d9d7bf;font-weight:bold}.arc-pictogram{color:#b78f5e}.arc-water-icon{color:#6bafb9}.arc-bridge-icon{color:#b78f5e}.arc-jewel-icon{color:#76b4b0;text-shadow:1px 2px #458987}.arc-blossom-icon{color:#d19baf}.arc-pipe-icon{color:#94aa84}.arc-v28 .arc-controls{width:min(870px,100%);height:72px;padding-top:5px}.arc-v28 .arc-controls .arc-hold{width:110px;border-radius:23px}.arc-v28 .arc-controls>.arc-hold{background:linear-gradient(#f6e6b7,#e9cc8a);box-shadow:0 4px #c9ad72}.arc-v28 .arc-equations{height:45px}.arc-v28 .arc-equations span{font-size:23px;min-width:120px;text-align:center;background:#e4e8d8}.arc-v28 .arc-equations .current{background:#fffae8;box-shadow:0 0 0 2px #dcc68d,0 3px 0 #dcc68d}.arc-v28 .arc-dpad{grid-template-columns:repeat(4,65px)}.arc-v28 .arc-dpad .arc-button{height:58px;font-size:36px}
.arc-pipe-hits{position:absolute;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--cols),1fr);z-index:3}.arc-pipe-hits button{border:0;background:transparent;border-radius:12px;min-height:0;min-width:0;touch-action:manipulation}.arc-pipe-hits button:active{background:#ffffff33}.arc-pipe-hits button:focus-visible{outline:4px solid #d1b56f;outline-offset:-6px}
.arc-v28 .arc-menu{gap:26px;width:min(1140px,100%)}.arc-v28 .arc-game-card{padding:16px 16px 20px;background:#fffdf4;border-color:#fffef8;box-shadow:0 6px 0 #dedcc9,0 20px 35px #7e977215}.arc-v28 .arc-illustration{height:clamp(130px,28vh,245px);background-size:cover;background-position:center;border:2px solid #fffcf2;box-shadow:inset 0 -12px 25px #91ae8b18}.arc-v28 .arc-illustration svg{max-width:100%;height:100%;filter:drop-shadow(0 8px 3px #74987a15)}.arc-duck-portrait{display:inline-block;width:175px;height:218px;max-height:100%;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 8px 5px #839d6725)}.arc-v28 .arc-game-card h2{font-family:serif;color:#54735e;letter-spacing:2px}.arc-v28 .arc-game-card p{color:#84917b}.arc-v28 .arc-levels .arc-button{background:linear-gradient(#f5f2df,#e8e4cc);box-shadow:0 3px 0 #d6d0b4}.arc-v28 .arc-overlay{inset:0;background:#d4e1cf99;z-index:8}.arc-v28 .arc-result{box-shadow:0 9px 0 #aabc9b,0 30px 80px #506b4c22}.arc-v28 .arc-result>span{display:block;height:160px;margin:auto}.arc-v28 .arc-result>span>svg{width:225px;height:160px}.arc-v28 .arc-result .arc-duck-portrait{height:160px;width:120px}.arc-load-error{margin:auto;padding:30px}.arc-rotate-icon{font-size:40px;color:#b79a6d}.bump{animation:arc-bump .18s}@keyframes arc-bump{50%{transform:translateX(3px)}}
@media(max-width:650px){#arcade.arc-v28{padding:10px;gap:6px}.arc-v28 .arc-top{height:56px}.arc-v28 .arc-top h1{font-size:20px;letter-spacing:1px}.arc-v28 .arc-top small{font-size:10px;letter-spacing:0}.arc-v28 .arc-engine{border-radius:23px;border-width:3px}.arc-v28 .arc-game-card{padding:10px;border-radius:24px;grid-template-columns:110px 1fr;grid-template-rows:19px 25px 25px 42px}.arc-v28 .arc-menu{gap:14px}.arc-v28 .arc-illustration{height:100%;border-radius:17px}.arc-v28 .arc-duck-portrait{width:95px;height:122px}.arc-v28 .arc-game-card h2{font-size:19px;letter-spacing:1px}.arc-v28 .arc-game-card p{font-size:11px}.arc-v28 .arc-controls{height:69px}.arc-v28 .arc-controls .arc-hold{width:72px;height:58px}.arc-v28 .arc-dpad{grid-template-columns:repeat(4,47px);gap:6px}.arc-v28 .arc-dpad .arc-button{height:51px;font-size:29px}.arc-v28 .arc-controls>span{font-size:23px}.arc-v28 .arc-equations span{font-size:18px;min-width:80px;padding:5px 8px}.arc-v28 .arc-equations{height:auto;min-height:40px;gap:6px}.arc-v28 .arc-clue{gap:14px;height:37px}.arc-v28 .arc-menu-note{font-size:10px}.arc-v28 .arc-levels .arc-button{height:36px;font-size:14px}.arc-v28 .arc-result>span{height:135px}}
@media(max-height:560px) and (min-width:651px){#arcade.arc-v28{padding:7px 16px;gap:4px}.arc-v28 .arc-top{height:42px}.arc-v28 .arc-top h1{font-size:19px;letter-spacing:1px}.arc-v28 .arc-controls{height:51px}.arc-v28 .arc-controls .arc-hold{height:44px;width:85px}.arc-v28 .arc-controls .arc-button{height:42px}.arc-v28 .arc-dpad .arc-button{font-size:29px}.arc-v28 .arc-clue{height:28px;font-size:22px}.arc-v28 .arc-clue>span:not(:nth-child(even)){height:25px}.arc-v28 .arc-equations{height:32px}.arc-v28 .arc-equations span{font-size:17px;padding:3px 12px}.arc-v28 .arc-game-card{padding:8px}.arc-v28 .arc-illustration{height:110px}.arc-v28 .arc-menu{gap:15px}.arc-v28 .arc-duck-portrait{height:110px;width:83px}.arc-v28 .arc-game-card h2{font-size:20px}.arc-v28 .arc-result{padding:16px 30px}.arc-v28 .arc-result>span{height:100px}.arc-v28 .arc-result>span>svg{height:100px}.arc-v28 .arc-result h2{margin:8px}}

#arcade.arc-v29 .arc-top small{font-size:12px}.arc-v29 .menu-pages{display:flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0}.menu-pages span{font-size:14px}.menu-pages .chosen{background:#ecd8a3}.arc-v29 .select-adventure{width:100%;font-size:23px;height:47px}.menu-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-position:center;background-size:cover}.menu-art svg{width:100%}.map-select{display:grid;grid-template-columns:repeat(6,1fr);gap:15px;width:min(1040px,100%);margin:auto;min-height:0}.map-tile{border:3px solid #fffaf1;border-radius:24px;background:linear-gradient(145deg,#e4ecda,#d1dfc3);box-shadow:0 5px #b8c9a6;padding:15px 8px;display:grid;gap:5px;text-align:center;min-height:90px}.map-tile:nth-child(n+7){background:linear-gradient(145deg,#f8e5ce,#e8cbaa)}.map-tile:nth-child(n+13){background:linear-gradient(145deg,#e6e2f1,#cfc6e4)}.map-tile b{font-size:32px}.map-tile span{font-size:12px}.map-tile i{font-style:normal;color:#ba9f60}.map-tile.done{outline:2px solid #94b294}.arc-v29[data-game=box] .arc-dpad{grid-template-columns:repeat(3,57px);grid-template-rows:repeat(2,40px);gap:5px}.arc-v29[data-game=box] .arc-dpad .arc-button{height:40px;min-width:40px;font-size:27px;border-radius:13px}.arc-v29 .dir-0{grid-column:2;grid-row:1}.arc-v29 .dir-3{grid-column:1;grid-row:2}.arc-v29 .dir-2{grid-column:2;grid-row:2}.arc-v29 .dir-1{grid-column:3;grid-row:2}.arc-v29[data-game=box] .arc-controls{height:90px}.extra-stage{position:relative;flex:1;min-height:0;border:4px solid #fffcf0;border-radius:28px;overflow:hidden;background:#d7e5d5;box-shadow:0 5px #becbb4}.extra-stage canvas{position:absolute;touch-action:none}.extra-hits{position:absolute;pointer-events:none}.extra-hits button{position:absolute;background:transparent;border:0;border-radius:50%;pointer-events:auto}.extra-hits button:focus-visible{outline:4px solid #b18e68}.extra-controls{display:flex;justify-content:center;align-items:center;gap:28px;flex-shrink:0;height:64px}.extra-controls .arc-button{height:52px;min-width:55px}.normal-dpad,.defense-panel{display:flex;gap:10px;align-items:center}.defense-panel>span{font-size:24px;margin-right:12px}.defense-panel button[aria-pressed=true]{background:#f2d89a;outline:2px solid #c4a463}.extra-controls button:disabled{opacity:.35}.arc-v29 .arc-result>span svg{width:230px}.arc-v29 .arc-engine.box-engine canvas{touch-action:manipulation}
@media(max-width:650px){.map-select{grid-template-columns:repeat(3,1fr);gap:9px}.map-tile{padding:7px 5px;min-height:60px;gap:0;border-radius:17px}.map-tile b{font-size:23px}.map-tile i{font-size:11px}.map-tile span{font-size:10px}.menu-pages span{display:none}.arc-v29 .arc-game-card{grid-template-rows:18px 25px 22px 40px}.arc-v29 .select-adventure{height:35px;font-size:18px}.extra-controls{gap:10px;flex-wrap:wrap;height:auto;min-height:65px}.extra-controls .arc-button{min-width:44px;height:44px;font-size:25px}.defense-panel{gap:5px}.defense-panel>span{font-size:18px;margin:0}.extra-controls .normal-dpad{gap:6px}.arc-v29[data-game=box] .arc-controls{height:87px}.arc-v29 .arc-top h1{font-size:20px}}
@media(max-height:550px) and (min-width:651px){.map-tile{padding:4px;min-height:62px}.map-tile b{font-size:23px}.map-select{gap:10px}.arc-v29[data-game=box] .arc-controls{height:73px}.arc-v29[data-game=box] .arc-dpad{grid-template-rows:repeat(2,31px)}.arc-v29[data-game=box] .arc-dpad .arc-button{height:31px;font-size:23px}.extra-controls{height:45px}.extra-controls .arc-button{height:39px}.arc-v29 .menu-pages .arc-button{height:35px;font-size:20px}.arc-v29 .select-adventure{height:32px}}
/* Home exposes every adventure directly; game screens remain within one viewport. */
.storybook-mode #home-ui{overflow-y:auto;scrollbar-width:thin}
.home-adventures{flex-shrink:0;margin-top:16px;padding:0 3px 10px}
.adventure-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:0 5px;color:#577c68}.adventure-heading h2{font-size:20px;margin:0;letter-spacing:2px}.adventure-heading>span{font-size:11px;color:#91a188}
.home-adventure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-adventure-card{display:flex;align-items:center;gap:8px;position:relative;text-align:left;padding:10px 14px 10px 8px;min-height:100px;border:3px solid #fffdf5;border-radius:24px;background:linear-gradient(125deg,#e7eddd,#fff9ea);box-shadow:0 5px #cbd5bf;color:#597363;overflow:hidden}
.home-adventure-card:nth-child(2n){background:linear-gradient(125deg,#f2e1cc,#fff9ea)}.home-adventure-card:nth-child(3n){background:linear-gradient(125deg,#e7dfee,#fff9ea)}
.home-adventure-art{display:flex;align-items:center;justify-content:center;width:32%;height:80px;flex-shrink:0}.home-adventure-art svg{width:100%;height:100%}.home-adventure-art img{height:75px;width:60px;object-fit:cover;object-position:left;clip-path:inset(0)}
.home-adventure-card>span:nth-child(2){display:flex;flex-direction:column;gap:6px}.home-adventure-card small{font-size:10px;color:#94a187}.home-adventure-card strong{font-size:16px;white-space:nowrap}.home-adventure-card em{font-style:normal;font-size:10px;color:#8e9981}.home-adventure-card>b{margin-left:auto;font-size:17px;color:#b8b88d}.home-adventure-card:hover{transform:translateY(-2px);filter:brightness(1.02)}
.car-hint{position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:#53695550;backdrop-filter:blur(5px)}.car-hint>div{position:relative;width:min(440px,85%);padding:28px 24px;background:#fff8e9;border:5px solid #fffdf6;border-radius:30px;box-shadow:0 12px 40px #66755235;text-align:center}.car-hint h2{font-size:22px;color:#637d69}.car-hint p{color:#95a28a;font-size:15px}.car-hint svg{width:100%;max-height:200px}.car-hint button{position:absolute;right:10px;top:8px;min-width:44px;min-height:44px;background:#eedce4;border:3px solid white;border-radius:50%;font-size:26px;color:#9c8393}
@media(min-width:700px){.storybook-mode #home-ui{gap:12px}.storybook-mode .storybook-hero{height:clamp(140px,20dvh,200px)}.storybook-mode .hero-copy{top:14px}.storybook-mode .hero-copy .tiny-label,.storybook-mode .hero-copy>p{display:none}.storybook-mode .hero-copy h1{font-size:30px}.storybook-mode .hero-actions{margin-top:12px}.storybook-mode .theme-area{flex:1;min-height:255px}.storybook-mode .theme-grid{min-height:225px}.home-adventures{margin-top:2px}.home-adventure-card{min-height:76px;padding:4px 12px 4px 6px;border-radius:20px}.home-adventure-art{height:60px}.home-adventure-card strong{font-size:14px}.adventure-heading{margin-bottom:9px}.adventure-heading h2{font-size:18px}.home-adventure-grid{gap:10px}}
@media(min-width:700px) and (orientation:portrait){.storybook-mode .theme-area{min-height:340px}.storybook-mode .theme-grid{min-height:305px}.storybook-mode .storybook-hero{height:170px}}
@media(max-width:699px){.home-adventure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-adventure-card{padding:8px 6px;flex-direction:column;text-align:center;gap:3px}.home-adventure-art{width:70%;height:78px}.home-adventure-card strong{font-size:14px}.home-adventure-card em{font-size:9px}.home-adventure-card>b{position:absolute;right:10px;top:10px;font-size:12px}.home-adventure-card small{font-size:9px}.adventure-heading{align-items:flex-start}.adventure-heading>span{max-width:110px;text-align:right;line-height:1.6}.home-adventures{margin-top:25px}}
.home-duck-sprite{display:block;width:48px;height:60px;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 4px 2px #8b9d7d33)}
@media(min-width:700px){.storybook-mode #home-ui{gap:8px}.storybook-mode .storybook-hero{height:clamp(110px,16dvh,165px)}.storybook-mode .hero-copy{top:9px}.storybook-mode .hero-copy h1{margin:4px 0}.storybook-mode .hero-actions{margin-top:9px}.storybook-mode .theme-area{min-height:240px}.storybook-mode .theme-grid{min-height:210px}.storybook-mode .theme-art{height:52px;display:flex;align-items:center;justify-content:center}.storybook-mode .theme-art svg{width:100%!important;height:50px!important;max-height:50px!important}.home-adventure-card{min-height:68px}.home-adventure-art{height:52px}.home-adventure-card>span:nth-child(2){gap:4px}}
@media(min-width:700px) and (orientation:portrait){.storybook-mode .theme-area{min-height:330px}.storybook-mode .theme-grid{min-height:300px}.storybook-mode .storybook-hero{height:160px}}
@media(min-width:700px){.storybook-mode .hero-copy h1{font-size:28px;line-height:1.2}.storybook-mode .hero-actions button{height:44px!important;min-height:44px!important;padding:4px 10px!important;box-sizing:border-box}.storybook-mode .hero-actions button svg,.storybook-mode .hero-actions button img{height:30px!important;max-height:30px!important;object-fit:contain}}

/* Illustrated chapter maps, with all six destinations visible together. */
.arc-v29[data-game=choose]{overflow-y:auto;justify-content:flex-start}
.adventure-map{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;flex:1;min-height:min-content;border-radius:32px;border:4px solid #fffdf2;padding:20px 24px 12px;background:#e7eddb;box-shadow:0 6px #c8d1b7;overflow:hidden}
.adventure-map:before{content:'';position:absolute;inset:0;z-index:-2;background-image:linear-gradient(#fff9e8aa,#eef0ded9),var(--map-scene);background-size:cover;background-position:center}
.map-story{display:flex;justify-content:center;align-items:center;gap:35px;min-height:160px;max-height:35dvh;margin:0 auto 22px;width:100%;position:relative}
.map-mascot{width:240px;max-height:210px;display:grid;place-items:center;filter:drop-shadow(0 12px 12px #7b896f22)}.map-mascot svg{width:100%;max-height:190px}.map-duck{display:block;width:120px;height:145px;background-size:400% 200%;background-position:0 0}
.map-invitation small{color:#9b957e;font-size:12px;letter-spacing:4px}.map-invitation h2{font-size:26px;margin:12px 0;color:#5e7862}.map-invitation p{font-size:14px;color:#869678;margin:0}.map-stamps{display:flex;gap:10px;margin-top:16px}.map-stamps i{width:26px;height:26px;display:grid;place-items:center;border:1px dashed #b5bda4;border-radius:50%;font-style:normal;color:#c2c6b1}.map-stamps .earned{color:#c89870;background:#fff3cb;border:1px solid #ddc38d}.map-kite{position:absolute;right:8%;top:15px;font-size:70px;color:#dcbb84;transform:rotate(12deg)}
.adventure-map .map-select{position:relative;margin:0 auto;gap:16px;align-items:stretch}.adventure-map .map-select:before{content:'';position:absolute;top:55%;left:3%;right:3%;border-top:7px dotted #c1b89a;z-index:-1}
.adventure-map .map-tile{position:relative;background:#fffaf0ef;padding:9px 9px 12px;gap:7px;box-shadow:0 6px #bfb79a;border-color:#fffdf6;transition:transform .15s}.adventure-map .map-tile:hover{transform:translateY(-4px)}.adventure-map .map-tile:nth-child(2n){transform:translateY(13px)}.adventure-map .map-tile:nth-child(2n):hover{transform:translateY(9px)}.map-mini svg{display:block;width:100%;height:auto}.adventure-map .map-tile b{position:absolute;left:2px;top:0;width:31px;height:31px;border-radius:50%;font-size:17px;display:grid;place-items:center;color:#fff9e9;background:#8fac91;border:3px solid #fffaf0}.adventure-map .map-tile span{font-size:12px;color:#647c66;white-space:nowrap}.adventure-map .map-tile i{position:absolute;right:9px;bottom:36px;background:#fffbed;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:12px}.adventure-map .map-tile.done i{background:#d7e8cb;color:#719277}.map-footnote{display:flex;gap:22px;align-items:center;justify-content:center;margin-top:32px;color:#c8b788;font-size:14px}.map-footnote span{color:#8c9b80;font-size:12px}
.adventure-map.duck .map-story{min-height:85px;height:110px;margin-bottom:12px}.adventure-map.duck .map-mascot{width:110px;height:90px}.adventure-map.duck .map-duck{width:70px;height:90px}.adventure-map.duck .map-mini{display:none}.adventure-map.duck .map-tile{min-height:64px;padding:12px 30px 9px}.adventure-map.duck .map-tile b{position:static;margin:auto;width:26px;height:26px}.adventure-map.duck .map-tile i{bottom:8px;right:5px;width:18px;height:18px}.adventure-map.duck .map-tile:nth-child(2n){transform:none}
.defense-panel>span{display:flex;flex-direction:column;line-height:1.1;gap:3px}.defense-panel>span small{font-size:12px;color:#8e9e79}.defense-panel .arc-button[data-extra^="upgrade"]{font-size:24px}
@media(max-width:700px){.adventure-map{padding:12px 10px}.map-story{gap:12px;min-height:130px;margin-bottom:14px}.map-mascot{width:130px}.map-invitation h2{font-size:18px;margin:8px 0}.map-invitation small{font-size:10px;letter-spacing:1px}.map-invitation p{font-size:11px}.map-stamps{gap:5px;margin-top:10px}.map-stamps i{width:20px;height:20px;font-size:13px}.map-kite{display:none}.adventure-map .map-select{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.adventure-map .map-tile:nth-child(2n){transform:none}.adventure-map .map-tile span{font-size:10px}.adventure-map .map-tile{padding:6px 6px 10px;gap:5px}.map-footnote{margin-top:18px;font-size:11px;gap:10px}.adventure-map.duck .map-story{min-height:78px}.adventure-map.duck .map-invitation p,.adventure-map.duck .map-stamps{display:none}.adventure-map.duck .map-select{gap:8px}.adventure-map.duck .map-tile{min-height:46px;padding:4px 18px}.adventure-map.duck .map-tile span{font-size:9px}.adventure-map.duck .map-footnote{display:none}}
@media(max-height:600px) and (min-width:701px){.map-story{min-height:85px;height:100px;margin-bottom:8px}.map-mascot{width:140px;height:100px}.map-mascot svg{max-height:110px}.map-invitation h2{font-size:21px;margin:5px 0}.map-stamps{margin-top:7px}.map-footnote{margin-top:24px}.adventure-map{padding:10px 20px}.adventure-map .map-mini svg{max-height:75px}.adventure-map.duck .map-story{height:70px;min-height:70px}.adventure-map.duck .map-tile{min-height:35px;padding:4px 23px}.adventure-map.duck .map-tile b{font-size:15px;width:21px;height:21px}.adventure-map.duck .map-footnote{display:none}}

.adventure-map .map-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.3;pointer-events:none}.adventure-map:before{background:linear-gradient(#fff9e860,#eef0deaa);z-index:0;pointer-events:none}.map-story,.adventure-map .map-select,.map-footnote{z-index:1}.adventure-map.duck .map-story{min-height:132px;height:132px}.adventure-map.duck .map-stamps{margin-top:8px}
@media(max-height:600px){.adventure-map.duck .map-story{min-height:78px;height:78px}.adventure-map.duck .map-stamps{display:none}}
@media(max-width:700px){.adventure-map.duck .map-story{min-height:80px;height:80px}}
.hero-picture{background-image:url('art/cover.png')}#scene-backdrop[data-env=garden]{background-image:url('art/garden.png')}#scene-backdrop[data-env=workshop]{background-image:url('art/workshop.png')}#scene-backdrop[data-env=bakery]{background-image:url('art/bakery.png')}#scene-backdrop[data-env=moon]{background-image:url('art/moon.png')}.pet-room-scene{background-image:url('art/pet-room.png')}