@charset "UTF-8";
:root{color-scheme:dark;--gold:#f1c66e;--cream:#fff0cf;--muted:#dbc8a8;--ink:#2e1b0d;--green:#1f554b;--line:#c399554d;font-family:Arial,Helvetica,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:#191b14;color:var(--cream);overflow:clip}button{font:inherit;cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}button:focus-visible,canvas:focus-visible{outline:3px solid #a0ead7;outline-offset:4px}button:hover{filter:brightness(1.12)}button:active{transform:translateY(1px)}svg{width:24px;height:24px;fill:currentColor;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
#app{position:relative;width:100%;height:100dvh;min-height:300px;isolation:isolate;overflow:clip}#backdrop{position:absolute;inset:-30px;background:#181e15 center/cover;filter:blur(24px) brightness(.5);z-index:-2}#scene{display:block;width:100%;height:100%;touch-action:none;outline:none} .vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0b140d33,transparent 22%,transparent 70%,#12160e91)}
.round{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:linear-gradient(150deg,#725331,#372818);box-shadow:inset 0 0 0 1px #f3ca6b79,inset 0 0 0 4px #32261599,0 3px 8px #0006;color:#ffe4a6;flex-shrink:0}.subtle{background:#171d16b8;backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px #e4d4a744}.top-tools{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));display:flex;gap:10px;z-index:5}.is-playing .top-tools{right:auto;left:24px;bottom:24px}.is-playing .top-tools .round{width:43px;height:43px}.is-playing .top-tools svg{width:21px}
#home{position:absolute;inset:0;pointer-events:none}.home-card{pointer-events:auto;position:absolute;width:420px;right:8%;bottom:9%;padding:28px 30px 22px;background:linear-gradient(130deg,#1c2f27f5,#192019f2);border:1px solid #c7a96e66;border-radius:22px;box-shadow:0 16px 50px #0005,inset 0 0 0 5px #070d0740;backdrop-filter:blur(12px);text-align:center}.eyebrow{font-size:.69rem;letter-spacing:.16em;color:#e0bd7f;line-height:1.7}.home-card h2{font-family:Georgia,'Times New Roman',serif;font-size:2.3rem;line-height:1.13;letter-spacing:-.025em;margin:14px 0}.home-card p{font-size:1rem;line-height:1.55;color:var(--muted);margin:0 0 20px}.gold{background:linear-gradient(175deg,#ffe8a9,#e7b75b 65%,#bc8430);color:#422609;box-shadow:inset 0 1px 0 #fff6d9,inset 0 0 0 1px #d7a75a,0 4px 0 #805925,0 6px 14px #0004;border-radius:12px;font-weight:700}.primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:57px;padding:14px 22px;font-size:1.08rem}.home-links{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0}.home-links button,.home-footer button{padding:4px;background:none;color:#e9d6b2;font-size:.92rem}.home-links button:hover{text-decoration:underline}.home-meta{border-top:1px solid #e7c67a2a;padding-top:15px;display:flex;justify-content:center;align-items:center;gap:12px;color:#d9c49b;font-size:.8rem}.home-meta i{height:3px;width:3px;background:#bd9c63;border-radius:50%}.home-footer{position:absolute;bottom:24px;left:28px;display:flex;gap:18px;align-items:center;color:#eee2bf;font-size:.78rem;text-shadow:0 1px 5px #000;pointer-events:auto}.mobile-title{display:none}
#hud{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}#hud>*{pointer-events:auto}.wood{background:linear-gradient(120deg,#49301eea,#261d16ed);border:1px solid #d7ae6480;box-shadow:0 4px 14px #0004,inset 0 0 0 4px #ce97520a;border-radius:13px;backdrop-filter:blur(8px)}.chapter-button{display:flex;align-items:center;gap:12px;padding:12px 18px;text-align:left}.chapter-button>svg{color:var(--gold)}.chapter-button small{display:block;color:#dcc6a0;font-size:.8rem;margin-bottom:5px}.chapter-button strong{font-family:Georgia,serif;font-size:1.22rem;font-weight:400}.hud-right{display:flex;align-items:center;gap:12px}.inventory{display:flex;align-items:center;gap:14px;min-height:56px;padding:10px 18px}#hearts{display:flex;gap:5px;color:#ffc684}#hearts svg{width:23px;height:25px;filter:drop-shadow(0 1px 2px #0009)}#hearts .empty{fill:#785d4a;color:#785d4a;opacity:.65}.divider{height:24px;width:1px;background:#c6a26450}.cheese-counter{display:flex;align-items:center;gap:10px;font-size:1.18rem;color:var(--gold);font-variant-numeric:tabular-nums}.cheese-counter svg{width:30px;height:28px}#key-badge{color:#ffe291;display:flex}
#play-controls{position:absolute;inset:0;pointer-events:none}#play-controls button{pointer-events:auto}.objective{position:absolute;left:24px;bottom:90px;padding:15px 18px;width:300px}.objective>span:first-child{font-size:.68rem;letter-spacing:.15em;color:#dcb66e;display:block;margin-bottom:7px}.objective strong{display:block;font:1.13rem/1.3 Georgia,serif;color:#fff0cf}.objective #cat-status{display:block;margin-top:9px;font-size:.8rem;color:#d4c3a7}.action-wrap{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));right:max(30px,env(safe-area-inset-right));text-align:center}.paw-action{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;color:#613a15;background:radial-gradient(circle at 35% 22%,#ffe9b2,#e9bd67 55%,#b8792d);border:2px solid #ffe9a9;box-shadow:0 5px 0 #795122,0 8px 24px #0005,inset 0 0 0 7px #f4cf83,inset 0 0 0 9px #ad762d}.paw-action svg{width:43px;height:43px;filter:drop-shadow(0 1px 0 #ffe3a5)}.action-wrap>span{display:block;margin-top:12px;color:#ffeac1;font-size:.8rem;text-shadow:0 1px 4px #000}.paw-action.ready{box-shadow:0 5px 0 #795122,0 0 25px #ffe09c80,inset 0 0 0 7px #f4cf83,inset 0 0 0 9px #ad762d}#overview{position:absolute;bottom:160px;right:47px;width:46px;height:46px}#timer{position:absolute;top:92px;right:24px;color:#fff0cc;background:#58371ef0;border:1px solid #d3a45e;padding:8px 14px;border-radius:10px;font-variant-numeric:tabular-nums}#toast{position:absolute;bottom:30px;left:50%;transform:translateX(-50%) translateY(10px);max-width:min(540px,65%);border-radius:14px;padding:13px 22px;background:#1e332bf2;border:1px solid #d8c49070;box-shadow:0 5px 24px #0004;color:#fff3d7;text-align:center;line-height:1.4;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:20;font-size:.95rem}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#dpad{--dpad-key:clamp(44px,12dvh,52px);--dpad-gap:6px;display:none;pointer-events:auto;width:calc(3 * var(--dpad-key) + 2 * var(--dpad-gap));height:calc(3 * var(--dpad-key) + 2 * var(--dpad-gap));grid-template:repeat(3,var(--dpad-key))/repeat(3,var(--dpad-key));gap:var(--dpad-gap)}#dpad button{background:#3e2c1cda;border:1px solid #ddb77866;border-radius:12px;color:#ffe6b3;display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;padding:0;line-height:0;overflow:hidden;touch-action:none}#dpad button:nth-child(1){grid-area:1/2}#dpad button:nth-child(2){grid-area:2/1}#dpad>span{grid-area:2/2;display:grid;place-items:center;color:#d7b879}#dpad>span svg{width:22px;height:22px}#dpad button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}#dpad button:nth-child(4){grid-area:2/3}#dpad button:nth-child(5){grid-area:3/2}
dialog{border:1px solid #ba975e;border-radius:24px;padding:0;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);color:var(--cream);background:linear-gradient(145deg,#26382e,#19231c 55%,#25271c);box-shadow:0 30px 100px #0009;overflow:auto}dialog::backdrop{background:#08120fc4;backdrop-filter:blur(8px)}.dialog-inner{position:relative;padding:32px}.dialog-close{position:absolute;right:16px;top:16px;width:38px;height:38px;background:#101b14aa;box-shadow:inset 0 0 0 1px #ae986944;z-index:1}.dialog-close svg{width:18px}dialog h2{font:2.1rem/1.15 Georgia,serif;font-weight:400;margin:6px 40px 14px 0}dialog h3{font:1.25rem Georgia,serif;margin:22px 0 12px}dialog p{color:#deceb1;line-height:1.6;font-size:1rem;margin:10px 0}dialog .eyebrow{color:#dfbb77}.dialog-actions{display:flex;gap:12px;margin-top:24px}.dialog-actions>button{flex:1;min-height:50px;border-radius:10px;padding:12px 18px}.secondary{background:#f3d6990c;border:1px solid #bca57566;color:#f5e5c7}.chapter-tabs{display:flex;gap:6px;overflow-x:auto;padding:10px 0 14px}.chapter-tabs button{white-space:nowrap;border-radius:9px;padding:12px 15px;font-size:.88rem;background:#0d181155;color:#ccbfa3;border:1px solid #a68e5c33}.chapter-tabs button.active{background:#e6c378;color:#3d2b10;border-color:#eac785}.chapter-progress{display:flex;justify-content:space-between;font-size:.85rem;color:#d8c496;margin:5px 0 14px}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.level-tile{background:linear-gradient(135deg,#59644833,#0e1f1577);border:1px solid #b7a46a44;min-height:86px;border-radius:12px;padding:10px 3px}.level-tile strong{font:1.6rem Georgia,serif;display:block}.level-tile small{font-size:.7rem;letter-spacing:2px;color:#e3bb66;display:block;margin-top:7px}.level-tile:disabled{cursor:not-allowed;opacity:.38}.level-tile.current{border:2px solid #f0ca7c;background:#dbc37a17}.rules{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rule{padding:16px;background:#d0b97a08;border:1px solid #c8b37825;border-radius:12px}.rule b{display:block;color:#f3d7a0;font-size:1rem;margin-bottom:6px}.rule p{font-size:.9rem;margin:0;line-height:1.5}.keycap{display:inline-block;border:1px solid #ad966250;border-bottom-width:3px;border-radius:5px;padding:1px 6px;font-size:.85rem;color:#f2d596}.setting{display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid #a58d5e2d;padding:17px 0;cursor:pointer}.setting strong{display:block;font-size:1rem;margin-bottom:5px}.setting small{display:block;font-size:.85rem;line-height:1.4;color:#cfbea0}.setting input{accent-color:#d9b464;width:23px;height:23px;flex-shrink:0}.victory{max-width:470px;margin:auto;text-align:center}.victory h2{margin-right:0}.stars{color:#f8d277;font-size:3rem;letter-spacing:12px;margin:12px 0;text-shadow:0 3px 10px #0005}.stars .dim{color:#66715a}.results{display:flex;justify-content:center;gap:30px;margin:20px 0}.results strong{display:block;font:1.6rem Georgia,serif;color:#ffe6a9}.results span{display:block;font-size:.8rem;color:#cbbb9e;margin-top:6px}.footnote{font-size:.8rem!important;color:#b7aa8c!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}.fatal{position:absolute;inset:25%;background:#192b22;padding:24px;border:1px solid #d9b474;border-radius:18px;text-align:center}.loading-chapter{filter:brightness(.65)}
@media(min-aspect-ratio:19/9){.home-card{right:13%;bottom:13%}}
@media(max-width:1100px) and (orientation:landscape){.home-card{width:330px;padding:18px 22px;right:6%;bottom:8%}.home-card h2{font-size:1.8rem;margin:8px 0}.home-card p{font-size:.9rem;margin-bottom:12px}.eyebrow{font-size:.59rem}.primary{min-height:48px;padding:10px}.home-links{margin:12px 0}.home-meta{padding-top:10px}.home-footer{bottom:14px;font-size:.68rem}.objective{width:240px;bottom:76px;padding:10px 14px}.objective strong{font-size:1rem}.chapter-button{padding:8px 12px}.inventory{min-height:47px;padding:8px 12px}.round{width:44px;height:44px}.paw-action{width:70px;height:70px}.paw-action svg{width:33px}.action-wrap{bottom:20px;right:24px}#overview{bottom:130px;right:36px}#hud{top:14px;left:18px;right:18px}.top-tools{right:18px;bottom:18px}}
@media(orientation:portrait){.mobile-title{display:block;position:absolute;top:max(28px,env(safe-area-inset-top));left:20px;right:20px;text-align:center;text-shadow:0 3px 12px #000}.mobile-title>span{color:#e6c17a;letter-spacing:.09em;font:1rem Georgia,serif}.mobile-title h1{font:2.6rem Georgia,serif;margin:10px 0 0;color:#ffe6a3}.mobile-title p{font:1.1rem Georgia,serif;margin:7px 0;color:#f8d285}.home-card{width:calc(100% - 36px);max-width:440px;right:50%;transform:translateX(50%);bottom:85px;padding:24px}.home-card h2{font-size:2rem}.home-card h2 br{display:none}.home-card p{font-size:.95rem}.home-footer{bottom:22px;left:20px;right:20px;justify-content:center;font-size:.68rem}.home-footer button{font-size:.8rem}.top-tools{right:18px;bottom:55px;gap:8px}.is-menu .top-tools{bottom:auto;top:160px;right:18px}.top-tools .round{width:40px;height:40px}.is-playing .top-tools{left:auto;right:18px;bottom:200px;flex-direction:column}.is-playing .top-tools .round{width:42px;height:42px}#hud{top:max(14px,env(safe-area-inset-top));left:12px;right:12px;flex-wrap:wrap;gap:10px}.chapter-button{padding:8px 12px;min-height:50px}.chapter-button small{font-size:.72rem}.chapter-button strong{font-size:1rem}.chapter-button>svg{width:20px}.hud-right{gap:8px;margin-left:auto}.inventory{min-height:48px;padding:8px 10px;gap:8px}#hearts{gap:2px}#hearts svg{width:17px;height:21px}.cheese-counter{font-size:.95rem;gap:5px}.cheese-counter svg{width:23px}.hud-right .round{width:42px;height:42px}#key-badge svg{width:19px}.divider{height:19px}#play-controls .objective{left:12px;right:12px;top:85px;bottom:auto;width:auto;min-height:68px;padding:10px 14px;max-width:calc(100% - 24px)}.objective>span:first-child{font-size:.63rem;margin-bottom:4px}.objective strong{font-size:1rem;max-width:80%}.objective #cat-status{font-size:.7rem;margin-top:5px}.action-wrap{right:24px;bottom:max(37px,env(safe-area-inset-bottom));}.action-wrap>span{font-size:.75rem}.paw-action{width:78px;height:78px}#dpad{display:grid;position:absolute;left:calc(20px + env(safe-area-inset-left));bottom:calc(22px + env(safe-area-inset-bottom))}#overview{bottom:145px;right:41px;width:44px;height:44px}#timer{top:160px;right:12px;font-size:.85rem}#toast{bottom:185px;width:calc(100% - 40px);max-width:440px;font-size:.87rem;padding:12px 15px}dialog{border-radius:18px}.dialog-inner{padding:26px 20px}dialog h2{font-size:1.8rem}.level-grid{grid-template-columns:repeat(4,1fr);gap:8px}.level-tile{min-height:75px}.rules{grid-template-columns:1fr}.chapter-tabs button{padding:11px}.dialog-actions{flex-wrap:wrap}.dialog-actions>button{flex:1 1 40%}.setting{gap:14px}}
@media(max-height:520px) and (orientation:landscape){.home-card{width:300px;bottom:35px;padding:16px 20px}.home-card h2{font-size:1.5rem}.home-card p{font-size:.82rem;margin-bottom:12px}.home-meta{display:none}.home-links{margin:12px 0 0}.home-footer{left:18px;bottom:10px}.top-tools{bottom:10px}.objective{bottom:65px;width:220px;padding:10px 12px}.objective #cat-status{display:none}.chapter-button strong{font-size:1rem}.chapter-button small{font-size:.68rem}.action-wrap>span{display:none}#toast{bottom:14px;font-size:.8rem;max-width:45%;padding:9px 13px}.is-playing .top-tools{bottom:12px}.paw-action{width:62px;height:62px}#overview{bottom:104px;right:32px}dialog h2{font-size:1.6rem}.dialog-inner{padding:24px}.dialog-actions{margin-top:16px}}
/* Clipping prevents focus from scrolling this full-screen game container. */
body,#app{overflow:clip}
#backdrop{background-image:none}
.home-footer{flex-wrap:wrap;gap:6px 18px}
.home-footer a{color:#f6d293;font-size:.86rem;text-underline-offset:4px;padding:5px 0;pointer-events:auto}
.android #apk-download{display:none}
@media(orientation:portrait){
 .home-footer>span{width:100%;text-align:center}
 #hud{display:grid;grid-template-columns:minmax(115px,1fr) auto;gap:8px}
 .chapter-button{width:100%;padding:8px 10px}.chapter-button>svg{display:none}
 .chapter-button strong{font-size:.875rem;white-space:nowrap}.chapter-button small{font-size:.7rem;white-space:nowrap}
 .hud-right{gap:6px}.inventory{padding:8px;gap:7px}#hearts svg{width:15px}.cheese-counter{font-size:.9rem;gap:4px}
}
@media(orientation:landscape) and (pointer:coarse){
 #dpad{display:grid;position:absolute;left:calc(24px + env(safe-area-inset-left));bottom:calc(22px + env(safe-area-inset-bottom))}
 #play-controls .objective{top:85px;bottom:auto;left:18px;width:190px;padding:10px 12px}
 .objective #cat-status{display:none}.objective strong{font-size:.93rem}.objective>span:first-child{font-size:.62rem}
 .is-playing .top-tools{left:220px;top:18px;bottom:auto}.is-playing .top-tools .round{width:38px;height:38px}
}
@media(orientation:landscape){
 .android #dpad{display:grid;position:absolute;left:calc(24px + env(safe-area-inset-left));bottom:calc(22px + env(safe-area-inset-bottom))}
 .android #play-controls .objective{top:85px;bottom:auto;left:18px;width:190px;padding:10px 12px}
 .android .objective #cat-status{display:none}.android .objective strong{font-size:.93rem}
 .android .is-playing .top-tools{left:220px;top:18px;bottom:auto}.android #fullscreen{display:none}
 .android .action-wrap>span{display:none}
}
/* Menus keep real document flow on narrow screens. Toolbar space is reserved,
   so browser chrome, enlarged text and short windows cannot cover the actions. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.home-card h2{overflow-wrap:break-word;text-wrap:balance}.title-line{display:block}
.primary>span{min-width:0;white-space:normal;line-height:1.3}
.home-links{flex-wrap:wrap;gap:6px 14px}.home-links button,.home-footer button,.home-footer a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.home-meta{flex-wrap:wrap}.home-meta>span{white-space:nowrap}
.dialog-close{width:44px;height:44px}.dialog-inner>.eyebrow{display:block;padding-right:42px}
.dialog-inner h2{overflow-wrap:break-word;text-wrap:balance}.setting>span{min-width:0}.setting small{overflow-wrap:break-word}
.dialog-actions>button{min-width:0;overflow-wrap:break-word}.results{flex-wrap:wrap;gap:16px 25px}
@media(orientation:portrait){
 .is-menu .top-tools{top:max(12px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));bottom:auto;left:auto;transform:none}
 .is-menu .top-tools .round{width:44px;height:44px}
 .is-menu #home{top:calc(68px + env(safe-area-inset-top));display:flex;flex-direction:column;align-items:center;gap:18px;overflow:auto;overscroll-behavior:contain;pointer-events:auto;padding:8px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));scrollbar-width:thin}
 .mobile-title{position:static;inset:auto;flex:none;width:100%;text-align:center}
 .mobile-title>span{font-size:.875rem;letter-spacing:.05em}.mobile-title h1{font-size:clamp(1.8rem,7.8vw,2.4rem);margin:7px 0 0;line-height:1.15}.mobile-title p{font-size:1.05rem;margin:5px 0 0}
 .home-card{position:relative;inset:auto;transform:none;flex:none;width:100%;max-width:440px;padding:22px 20px;border-radius:18px}
 .home-card>.eyebrow{display:block;font-size:.75rem;letter-spacing:.07em;line-height:1.5}
 .home-card h2{font-size:clamp(1.65rem,6.6vw,2.1rem);line-height:1.2;margin:14px 0;word-break:normal}
 .home-card .title-line{display:inline}.home-card p{font-size:1rem;margin-bottom:18px}
 .primary{padding:12px 14px;min-height:54px;font-size:1rem;gap:10px}
 .home-links{margin:12px 0}.home-links button{font-size:.95rem}.home-meta{font-size:.875rem;gap:8px;padding-top:14px}
 .home-footer{position:static;inset:auto;flex:none;width:100%;max-width:440px;margin-top:auto;justify-content:center;gap:4px 16px;font-size:.75rem;text-align:center}
 .home-footer>:first-child{flex-basis:100%;justify-content:center}.home-footer button,.home-footer a{font-size:.875rem}
 #hud{grid-template-columns:minmax(0,1fr);gap:6px}
 .chapter-button{width:calc(100% - 54px);height:44px;min-height:44px;padding:6px 10px;gap:8px}
 .chapter-button>span{min-width:0}.chapter-button small{font-size:.75rem;white-space:normal;margin-bottom:2px}.chapter-button strong{font-size:.9rem;white-space:normal}
 .hud-right{display:contents}.inventory{grid-row:2;width:100%;justify-content:center;min-height:44px;padding:7px 12px;gap:12px}
 #hearts svg{width:18px}.cheese-counter{font-size:1rem;gap:6px}
 .hud-right #pause{position:absolute;top:0;right:0;width:44px;height:44px}
 #play-controls .objective{top:116px;min-height:72px}.objective strong{max-width:100%}#timer{top:200px}
 .dialog-inner{padding:24px 18px}.dialog-inner h2{font-size:1.65rem;margin-right:40px}.rules p{font-size:1rem}
 .chapter-progress{gap:12px;flex-wrap:wrap}.level-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(orientation:landscape) and (max-height:600px){
 .is-menu .top-tools{left:max(16px,env(safe-area-inset-left));right:auto;top:max(14px,env(safe-area-inset-top));bottom:auto}
 .home-card{max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain;bottom:66px;width:min(370px,53vw);right:max(20px,env(safe-area-inset-right));padding:16px 20px}
 .home-card>.eyebrow{display:none}.home-card h2{font-size:1.5rem;line-height:1.15;margin:0 0 10px}.home-card p{font-size:.875rem;line-height:1.4;margin-bottom:12px}
 .home-card .primary{min-height:44px;font-size:1rem}.home-links{margin:8px 0 0;gap:6px 12px}.home-links button{font-size:.875rem}.home-meta{display:none}
 .home-footer{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));justify-content:center;gap:4px 14px;font-size:.75rem}
 .home-footer button,.home-footer a{font-size:.8rem;min-height:40px}
 .dialog-inner{padding:20px}.dialog-inner h2{margin-right:44px}.dialog-actions{flex-wrap:wrap}
}
@media(orientation:landscape) and (pointer:coarse){.is-playing .top-tools{top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%)}.is-playing .top-tools .round{width:44px;height:44px}}
@media(orientation:landscape){.android .is-playing .top-tools{top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%)}.android .is-playing .top-tools .round{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* The whole surface is a game: long presses must not select text or flash blue. */
html,body,#app,#app *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text}
button,a{outline:none}button:focus-visible,a:focus-visible{outline:2px solid #ffe3a2;outline-offset:3px}
button:active{filter:brightness(1.12)}#dpad button:active{background:#eacb853d;border-color:#efd5a781}
#backdrop{background-image:none!important;background:radial-gradient(ellipse at 60% 30%,#493521,#151c17 80%);filter:none;inset:0}
.mobile-title{display:block;position:absolute;top:10%;left:6%;text-shadow:0 3px 18px #0009}
.mobile-title>span{font-size:.875rem;letter-spacing:.12em;color:#e5c992}.mobile-title h1{font:clamp(2rem,4vw,3.6rem)/1.1 Georgia,serif;margin:10px 0;color:#ffe5b3}.mobile-title p{font:1.25rem Georgia,serif;margin:0;color:#efcc92}

/* A single quiet HUD replaces the large stacked panels over the maze. */
#hud{top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}
#hud .wood{background:linear-gradient(140deg,#202d25d9,#1c211bd1);border:1px solid #f5d89c30;box-shadow:0 3px 12px #0002;backdrop-filter:blur(12px);border-radius:14px}
#hud .chapter-button{width:auto;height:48px;min-height:48px;padding:7px 12px;gap:9px}
#hud .chapter-button>svg{display:block;width:20px;height:20px}#hud .chapter-button small{font-size:.75rem;margin-bottom:3px;white-space:nowrap;color:#e2d2b4}
#hud .chapter-button strong{font:600 .9375rem/1.2 Arial,Helvetica,sans-serif;white-space:nowrap}
#hud .objective{position:static;inset:auto;width:auto;max-width:100%;min-height:0;padding:6px 0;text-align:center;pointer-events:none}
#hud .objective strong{max-width:100%;font:500 .9375rem/1.3 Arial,Helvetica,sans-serif;text-wrap:balance;text-shadow:0 2px 6px #000,0 0 14px #000;color:#fff3da}
#hud #objective-kicker,#hud #cat-status{display:none}
#hud .hud-right{display:flex;gap:8px;align-items:center;margin:0}
#hud .inventory{width:auto;min-height:48px;padding:8px 12px;gap:10px}
#hud #hearts{gap:3px}#hud #hearts svg{width:18px;height:22px}#hud .divider{height:20px}
#hud .cheese-counter{font-size:1rem;gap:7px;white-space:nowrap}#hud .cheese-counter svg{width:24px;height:24px}
#hud #pause{position:static;width:44px;height:44px;background:#1d2a24c9;box-shadow:inset 0 0 0 1px #f4dcb74d;backdrop-filter:blur(10px)}
#hud #key-badge svg{width:20px}
.is-playing .round{box-shadow:inset 0 0 0 1px #f4dcb747,0 2px 10px #0002;background:#1d2a24b8;backdrop-filter:blur(10px)}
#dpad button{background:#1c2a23a3;border:1px solid #f1d9a83d;border-radius:16px;backdrop-filter:blur(8px);box-shadow:0 2px 8px #0002}
#dpad>span{opacity:.55}#dpad button:active{transform:scale(.95)}
.paw-action{box-shadow:0 3px 12px #0004,inset 0 0 0 4px #ffe6b26b;border:1px solid #fff0c5d9}
.paw-action.ready{box-shadow:0 0 18px #ffe09c70,inset 0 0 0 4px #ffe6b26b}
#toast{pointer-events:none;backdrop-filter:blur(8px)}
#timer{top:68px}
@media(max-width:739px){
 #hud{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
 #hud .chapter-button{justify-self:start;max-width:100%;padding:7px 10px}
 #hud .chapter-button>svg{display:none}#hud .chapter-button small{font-size:.75rem}
 #hud .hud-right{grid-column:2;grid-row:1}#hud .inventory{padding:8px;gap:7px}#hud #hearts svg{width:15px}
 #hud .cheese-counter{font-size:.9375rem;gap:4px}#hud .cheese-counter svg{width:21px}
 #hud .objective{grid-column:1/-1;grid-row:2;padding:3px 10px;justify-self:center;max-width:100%;border-radius:12px;background:#1b2923a6}
 #hud .objective strong{font-size:.875rem}#timer{top:108px}
}
@media(orientation:portrait){
 .mobile-title{position:static;text-align:center}.mobile-title h1{font-size:clamp(1.8rem,7.8vw,2.4rem)}
}
@media(orientation:landscape){
 .is-playing .top-tools,.android .is-playing .top-tools{top:auto;bottom:max(12px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);flex-direction:row}
 .is-playing .top-tools .round{width:44px;height:44px}
 #toast{bottom:64px;max-width:min(540px,calc(100% - 340px));padding:9px 14px;font-size:.875rem}
}
@media(orientation:landscape) and (max-height:450px){
 .is-menu .mobile-title{top:72px;left:4%;max-width:36%;text-align:left}.is-menu .mobile-title h1{font-size:1.9rem}.is-menu .mobile-title p{font-size:1rem}
}

/* Warm storybook menus. Gameplay geometry and controls keep their established layout. */
.is-menu .vignette{background:linear-gradient(180deg,#5d34151c,transparent 35%,#4a251d44)}
.home-card{color:#533423;background:linear-gradient(145deg,#fff9ecef,#fff0d9f5);border:1px solid #fffdf7;border-radius:26px;box-shadow:0 14px 44px #56301d30,inset 0 0 0 5px #ffffff55}
.home-card h2{color:#684329;text-shadow:0 1px 0 #fff}
.home-card .eyebrow{color:#86633c;font-weight:700}
.home-card p{color:#705541}.home-links{color:#ac8c60}
.home-links button{color:#256762;font-weight:600}.home-meta{color:#735b42;border-color:#dabb9255}.home-meta i{background:#b3874f}
.home-card .gold,dialog .gold{background:linear-gradient(175deg,#ffe9ac,#efbc65);color:#56350f;box-shadow:inset 0 1px 0 #fff9dd,inset 0 0 0 1px #dfad5a,0 3px 0 #be8a42,0 5px 12px #9c653b22;border-radius:16px}
.is-menu .top-tools .round{color:#286c69;background:linear-gradient(145deg,#fffaf0f0,#f8e9cfe8);box-shadow:inset 0 0 0 1px #fff6de,0 3px 12px #56301d30}
.is-menu .mobile-title{padding:17px 23px;border-radius:24px;background:#fff5dfdc;border:1px solid #fff9ed99;box-shadow:0 6px 22px #6b401323;text-shadow:none;backdrop-filter:blur(8px)}
.is-menu .mobile-title>span{color:#387871}.is-menu .mobile-title h1{color:#714327;text-shadow:0 2px 0 #fff7e8}.is-menu .mobile-title p{color:#95662c}
.home-footer{width:max-content;max-width:calc(100% - 32px);padding:3px 16px;background:#fff4dfed;border:1px solid #fffaf0aa;border-radius:18px;color:#70543c;text-shadow:none;box-shadow:0 3px 16px #42200d24}
.home-footer button,.home-footer a{color:#286f69}.home-footer a{text-decoration-thickness:1px}
dialog{color-scheme:light;color:#563b2b;background:linear-gradient(145deg,#fffaf0,#fff0dc 70%,#fbe7cc);border:1px solid #fff9eb;box-shadow:0 18px 65px #40251d55}
dialog::backdrop{background:#4933266b;backdrop-filter:blur(7px)}
dialog h2,dialog h3{color:#654129}dialog p{color:#705641}dialog .eyebrow{color:#8a642f;font-weight:700}
.dialog-close{background:#e2f0e9;color:#286c63;box-shadow:inset 0 0 0 1px #aacfc2}
dialog .secondary{background:#f9f8ed;border:1px solid #c5d7c7;color:#2e6b62;border-radius:14px}
.chapter-tabs button{color:#5c6c58;background:#f4f4e8;border:1px solid #d6ddc4}
.chapter-tabs button.active{color:#185e56;background:#d7eee4;border-color:#8abfaf}
.chapter-progress{color:#75603f}.level-tile{color:#684629;background:linear-gradient(145deg,#fffdf6,#fbe7c4);border:1px solid #e0bc7e;box-shadow:0 2px 5px #b4772120}
.level-tile small{color:#9e641b}.level-tile:disabled{opacity:1;background:#f0ede3;color:#968675;border-color:#ded7c9;box-shadow:none}.level-tile:disabled small{color:#877967;letter-spacing:1px}
.level-tile.current{border:2px solid #75b29e;background:#e0f1e5}
.rule{background:#fffbf1;border-color:#e4cda4}.rule b{color:#326f64}.keycap{color:#6d4d24;background:#fff4d4;border-color:#d9bc85}
.setting{border-color:#dfcdb4}.setting small{color:#79644e}.setting input{accent-color:#438b7b}
dialog .footnote{color:#816d57!important}.results strong{color:#805320}.results span{color:#79624a}.stars{color:#d49a25;text-shadow:0 2px 0 #fff5ce}.stars .dim{color:#c9c0ad}
.credit-button{display:inline;background:transparent;color:#286f69;padding:8px 0;text-decoration:underline;text-underline-offset:3px;min-height:44px}
.home-card button:focus-visible,dialog button:focus-visible,.home-footer a:focus-visible{outline-color:#387f71}
@media(orientation:portrait){.home-footer{width:100%;max-width:440px}.is-menu .mobile-title{max-width:440px;width:100%;padding:12px 18px}}
@media(orientation:landscape) and (max-height:450px){.is-menu .mobile-title{padding:14px 16px}.home-footer{width:calc(100% - 32px);padding:0 12px}}

#hud .chapter-button>span{min-width:0}#hud .chapter-button small{overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media(max-width:440px) and (orientation:portrait){#level-label .level-word{display:none}}
