:root{color-scheme:dark;--ink:#f9f3de;--muted:#a6c2b8;--yellow:#f8ce68;--green:#163c3c;--line:#52746b;--body:ui-rounded,'Trebuchet MS',system-ui,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:#123334}body{font-family:var(--body);color:var(--ink);display:grid;place-items:center;min-height:100svh;padding:20px 30px;background:radial-gradient(ellipse at 45% 0,#385d48,transparent 80%),#123334}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;touch-action:manipulation;user-select:none}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}.app{width:min(1220px,100%)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:17px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:15px;font-weight:800;letter-spacing:1.5px}.brand b{color:var(--yellow)}.brand small{font-size:9px;letter-spacing:2.2px;display:block;margin-top:5px;color:var(--muted)}.brand-mark{display:grid;place-items:center;background:#edc66f;border-radius:12px;width:43px;height:43px;font-size:28px}.top-actions{display:flex;align-items:center;gap:9px}.local-tag{font-size:11px;color:var(--muted);margin-right:12px}.icon-button{width:35px;height:35px;background:#32564b;border:1px solid #557166;border-radius:8px;font-size:22px}.icon-button[aria-pressed=false]#soundBtn{opacity:.5}.game-frame{border:1px solid #70816a;border-radius:14px;box-shadow:0 20px 55px #031d2480;overflow:hidden;background:#173a37}.hud{height:58px;padding:0 19px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;background:#173a37;border-bottom:1px solid #66816b44}.hud-group{display:flex;align-items:center;gap:17px}.hud-group.right{justify-content:flex-end;gap:14px}.hud-item{display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums;white-space:nowrap}.hud-item strong{font-size:17px}.heart{font-size:25px;color:#fb9a82}.money>span{color:#c7e6a0;font-size:28px}.money small{color:#aed28a}.form-status{font-size:9px;color:#c3dbab;border:1px solid #648266;border-radius:8px;padding:5px 7px;white-space:nowrap}.form-status.fire-form{border-color:#f5a96a;color:#ffc679}.location{text-align:center;max-width:230px}.location>span,.score>span{display:block;font-size:8px;letter-spacing:1.3px;color:var(--muted);margin-bottom:4px}.location strong{font-size:12px;letter-spacing:.6px}.score{text-align:right}.score strong{font-size:15px;color:var(--yellow);font-variant-numeric:tabular-nums}.hud-button{border:1px solid #557365;background:#355b4c;border-radius:7px;font-size:19px;width:32px;height:32px}.stage{position:relative;aspect-ratio:16/9;isolation:isolate;background:#9ecbc7;overflow:hidden}.stage>canvas{width:100%;height:100%;display:block;touch-action:none}.screen{position:absolute;inset:0;z-index:4}.hidden{display:none!important}.start-screen{display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(90deg,#163c3933,transparent 70%)}.title-content{width:78%;padding-bottom:2%}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;margin:0 0 11px;color:var(--yellow)}.start-screen .eyebrow{display:inline-block;background:#eef5d6dc;color:#376356;padding:6px 12px;border-radius:20px;font-size:9px;letter-spacing:2px}.start-screen h1{font-size:clamp(28px,4.5vw,56px);line-height:.97;letter-spacing:3px;margin:4px 0 0;font-weight:950;color:#fffbe5;text-shadow:0 3px #225347,0 5px 18px #0e44398c}.start-screen h1 span{display:block;font-size:1.2em;color:#ffd775;letter-spacing:4px;margin-top:7px}.intro{font-size:clamp(14px,1.5vw,19px);color:#f9ffe8;text-shadow:0 2px 6px #143e37;font-weight:600;margin:16px 0 19px}.primary{display:flex;align-items:center;justify-content:center;gap:32px;background:var(--yellow);color:#26473a;font-weight:900;letter-spacing:1px;padding:14px 25px;border-radius:10px;min-width:200px;box-shadow:0 4px 0 #b18547,0 8px 18px #173c3929;margin:auto;font-size:16px}.primary:hover{background:#ffdd8c}.main-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:20px auto 0;max-width:680px}.main-links button{padding:9px 12px;border-radius:8px;background:#194a41e8;border:1px solid #a9cfa17a;font-size:10px;letter-spacing:.5px;font-weight:800}.main-links button:hover{background:#426c50}.start-hint{font-size:11px;color:#f5f7d7;text-shadow:0 1px 5px #1b4e3d;margin:14px 0 0}.edition{position:absolute;right:16px;bottom:15px;font-size:8px;letter-spacing:1.8px;color:#eef1c6;text-shadow:0 1px 4px #27493d}.stage-bottom{position:absolute;bottom:9px;left:17px;right:17px;display:flex;justify-content:space-between;pointer-events:none;color:#fffbe0;font-size:9px;font-weight:bold;text-shadow:0 1px 4px #19352e;z-index:2}.progress-track{height:4px;background:#204940}.progress-track>div{height:100%;background:var(--yellow);width:0}.footer{display:flex;justify-content:space-between;gap:15px;margin-top:17px;color:#a6bfb1;font-size:10px;letter-spacing:.5px}.keyboard-help{display:flex;gap:18px;align-items:center}.keyboard-help>span{display:flex;align-items:center;gap:5px}kbd{font:10px var(--body);border:1px solid #597565;background:#294c40;border-radius:4px;padding:3px 6px;color:#e5ead1;box-shadow:0 2px #0c2929}.panel-screen{background:#153b39f5;padding:25px 28px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.screen-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:19px}.screen h2{font-size:26px;line-height:1.15;margin:0 0 14px;letter-spacing:-.5px}.screen-heading h2{margin:0}.screen-heading .eyebrow{font-size:8px;margin-bottom:8px}.close{flex-shrink:0;width:32px;height:32px;border:1px solid #6a8471;background:#345b49;font-size:25px;border-radius:8px}.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.world-card{padding:0;overflow:hidden;text-align:left;border-radius:10px;background:#274e42;border:1px solid #527563;position:relative;transition:border-color .15s}.world-card:hover:not(:disabled){border-color:var(--yellow)}.world-card:disabled{opacity:.57}.world-card canvas{display:block;width:100%;aspect-ratio:2.45;object-fit:cover}.world-card:disabled canvas{filter:saturate(.2)}.card-text{display:flex;justify-content:space-between;padding:11px 12px;gap:8px;align-items:center}.card-text strong{font-size:11px;display:block}.card-text small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.card-state{color:var(--yellow);font-size:20px}.card-index{position:absolute;top:8px;left:8px;background:#194336dd;border-radius:5px;padding:4px 6px;font-size:9px;color:var(--yellow)}.menu-note{font-size:12px;text-align:center;line-height:1.6;color:#b9ceb5;margin:14px 0 0}.menu-note.left{text-align:left;margin:0 0 15px}.modal-screen{display:grid;place-items:center;background:#082b32a6;backdrop-filter:blur(5px);padding:18px;overflow:auto;touch-action:pan-y}.dialog{width:min(435px,100%);padding:25px 31px;text-align:center;background:#1e4842;border:1px solid #718b6c;border-radius:17px;box-shadow:0 16px 40px #062d37aa;max-height:100%;overflow:auto}.dialog h2{font-size:26px;line-height:1.2}.dialog .primary{width:100%;margin:20px 0 13px;font-size:13px;padding:13px}.secondary{width:100%;margin:5px 0;padding:12px 15px;background:#395f4d;border:1px solid #718568;border-radius:8px;font-size:11px;font-weight:750}.plain{background:none;font-size:10px;color:#d6e2be;padding:10px;margin-top:7px;font-weight:700}.dialog-note{font-size:12px;line-height:1.6;color:#bfd0b5;margin:13px 0 0}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin:18px 0;text-align:left}.result-stats>div{border-bottom:1px solid #5b7964;padding-bottom:9px}.result-stats span{display:block;font-size:11px;color:#bdd1bb}.result-stats strong{display:block;font-size:20px;color:var(--yellow);margin-top:5px}.bear-name{font-size:13px;letter-spacing:2px;text-transform:uppercase;color:#d9e5c1;margin:10px 0}.toast{position:absolute;z-index:10;top:16px;left:50%;transform:translateX(-50%);background:#163e38ee;border:1px solid #abc7958c;border-radius:10px;box-shadow:0 5px 20px #173a3255;color:#fff3cd;padding:10px 17px;font-size:12px;font-weight:700;max-width:85%;text-align:center;pointer-events:none}.exit-fullscreen{position:absolute;right:9px;top:9px;z-index:3;border:1px solid #b5c6a1;background:#264d40ad;border-radius:6px;color:#fff6d5;width:31px;height:31px;font-size:21px}.field{display:flex;flex-direction:column;gap:7px;text-align:left;font-size:12px;color:#c7dbbe;margin:15px 0}.field input{width:100%;background:#173b37;border:1px solid #86a47b;color:#fff4d9;border-radius:8px;padding:12px;font-size:17px;min-width:0}.check{display:flex;align-items:center;gap:9px;font-size:13px;margin:15px 0;text-align:left}.check input{accent-color:var(--yellow);width:18px;height:18px}.danger{color:#ffb5a0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.tabs{display:flex;gap:7px;margin:4px 0 13px}.tabs button{font-size:10px;font-weight:800;background:#284d42;border:1px solid #597363;border-radius:7px;padding:9px 14px}.tabs button.active{background:var(--yellow);border-color:var(--yellow);color:#264334}.shop-tools{display:flex;align-items:center;gap:16px}.shop-tools strong{font-size:15px;color:var(--yellow);white-space:nowrap}.shop-layout{display:grid;grid-template-columns:180px 1fr;gap:20px}.bear-preview{text-align:center;position:sticky;top:0;align-self:start}.bear-preview canvas{width:100%;height:auto;border-radius:14px;background:radial-gradient(ellipse at bottom,#688d69,#284e49);border:1px solid #537866}.bear-preview p{font-size:13px;line-height:1.4;color:#fff0b7;min-height:20px}.bear-preview small{font-size:10px;line-height:1.5;display:block;color:#acc5b0}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.product{border:1px solid #557463;background:#284e42;border-radius:10px;padding:15px;display:flex;flex-direction:column;gap:7px;min-width:0}.product .product-icon{font-size:28px}.product h3{font-size:13px;margin:0;line-height:1.4}.product p{font-size:10px;line-height:1.4;color:#b4cbb4;margin:0}.product strong{font-size:15px;color:var(--yellow);margin-top:auto}.buy{padding:9px 11px;background:#cddaa0;color:#2d4c3e;font-size:10px;font-weight:850;border-radius:6px;margin-top:3px}.buy:disabled{background:#4a6c51;color:#c2d2aa}.collection-strip{display:flex;gap:10px;margin-bottom:12px;color:#e0d99c;font-size:12px}.collection-strip:empty{display:none}.home-scene{grid-column:1/-1}.home-scene canvas{width:100%;border-radius:12px}.records-list{display:grid;gap:8px}.record-row{display:grid;grid-template-columns:1fr auto auto;gap:24px;align-items:center;border-bottom:1px solid #527162;padding:12px;font-size:12px}.record-row strong{color:var(--yellow)}.record-row small{display:block;color:#a6c0a9;margin-top:4px}.empty-state{grid-column:1/-1;border:1px dashed #6e8e6b;padding:25px;border-radius:12px;color:#c2d1b7;font-size:14px;line-height:1.7}.timer{font-size:20px;color:#ffe18c;font-variant-numeric:tabular-nums}.timer.urgent{color:#ff9b87}.touch-controls{position:absolute;inset:auto 17px 23px;display:none;align-items:flex-end;justify-content:space-between;z-index:3;pointer-events:none;touch-action:none}.directions,.action-controls{display:flex;gap:12px;align-items:flex-end}.touch-controls button{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #eff6d495;background:#315b4ccc;color:#fffbe5;border-radius:18px;height:66px;width:66px;font-size:25px;box-shadow:0 3px 0 #113e38a1;opacity:.85}.touch-controls button.pressed{background:#a8c886dc;color:#214b37;transform:translateY(2px)}.touch-controls .jump{height:76px;width:83px;background:#f8cf70e8;color:#264435;border-color:#ffebaf}.touch-controls .fire{height:60px;width:62px;background:#b77655dd}.touch-controls small{display:block;font-size:9px;font-weight:850;margin-top:2px;letter-spacing:1px}.touch-controls .fart{width:33px;height:33px;position:absolute;left:50%;font-size:17px;border-radius:50%;opacity:.55}.rotate-hint{display:none;text-align:center;color:#f2dc98;font-size:12px;line-height:1.6;margin:14px 0}.playing{overflow:hidden;overscroll-behavior:none;-webkit-user-select:none;user-select:none;touch-action:none}.playing .stage{touch-action:none}.playing .screen:not(.hidden){touch-action:pan-y}.playing .stage-bottom{bottom:9px}body.expanded{padding:0}.expanded .app,.app:fullscreen{width:100%;max-width:none;background:#133334}.expanded .topbar,.expanded .footer,.app:fullscreen .topbar,.app:fullscreen .footer{display:none}.expanded .game-frame,.app:fullscreen .game-frame{border:0;border-radius:0;box-shadow:none}.expanded .stage,.app:fullscreen .stage{width:min(100%,calc((100dvh - 62px)*16/9));margin:auto}.app:fullscreen{display:flex;flex-direction:column;justify-content:center}.app:fullscreen .rotate-hint{display:none}
@media(pointer:coarse){.touch-controls{display:flex}.keyboard-help{display:none}.footer{justify-content:center}.local-tag{display:none}.playing .stage-bottom #stageTip{display:none}.playing .stage-bottom{justify-content:center}}
@media(max-width:760px){body{padding:14px 11px}.topbar{margin-bottom:13px}.brand{font-size:11px;letter-spacing:1px}.brand small{font-size:7px;letter-spacing:1.3px}.brand-mark{width:35px;height:35px;font-size:24px}.local-tag{display:none}.top-actions{gap:6px}.icon-button{width:30px;height:30px;font-size:19px}.hud{padding:0 10px;height:49px;gap:8px}.hud-group,.hud-group.right{gap:8px}.hud-item strong{font-size:13px}.heart{font-size:21px}.money>span{font-size:21px}.form-status{font-size:7px;padding:4px 5px}.location{max-width:170px}.location strong{font-size:9px}.location>span,.score>span{font-size:6px;letter-spacing:.7px;margin-bottom:4px}.score strong{font-size:11px}.hud-button{width:27px;height:27px;font-size:16px}.start-screen .eyebrow{font-size:7px;padding:4px 8px;letter-spacing:1.4px;margin-bottom:7px}.start-screen h1{font-size:5vw}.intro{font-size:12px;margin:10px 0 13px}.primary{font-size:12px;padding:10px 17px;min-width:160px}.main-links{gap:5px;margin-top:14px}.main-links button{padding:7px 9px;font-size:8px}.start-hint{font-size:9px;margin-top:10px}.edition{font-size:6px;bottom:10px;right:10px}.panel-screen{padding:16px 18px}.screen-heading{margin-bottom:13px}.screen h2{font-size:21px}.screen-heading .eyebrow{font-size:6px;letter-spacing:1.2px}.world-grid{gap:9px}.card-text{padding:8px}.card-text strong{font-size:9px}.card-text small{font-size:8px}.dialog{padding:19px 23px;width:min(375px,100%)}.dialog h2{font-size:23px}.dialog .primary{font-size:11px;padding:11px;margin:15px 0 10px}.secondary{font-size:9px;padding:10px}.dialog-note{font-size:11px}.result-stats{margin:13px 0;gap:10px 15px}.result-stats strong{font-size:17px}.shop-layout{grid-template-columns:135px 1fr;gap:13px}.shop-tools strong{font-size:12px}.product{padding:10px}.product h3{font-size:11px}.product .product-icon{font-size:23px}.product strong{font-size:13px}.tabs button{padding:8px 11px;font-size:9px}.menu-note{font-size:10px}.toast{font-size:10px;padding:8px 12px;top:10px}.footer{font-size:8px}.keyboard-help{gap:9px}.keyboard-help span{gap:3px}.keyboard-help kbd{font-size:8px;padding:3px 4px}}
@media(max-width:600px) and (orientation:portrait){.rotate-hint{display:block}.stage{aspect-ratio:16/12}.stage>canvas{object-fit:contain;background:#1a433e}.title-content{width:92%;padding:0 0 5%}.start-screen h1{font-size:7vw}.start-screen .eyebrow{font-size:6px}.intro{font-size:12px;margin:10px 0 16px}.main-links{max-width:270px;margin-top:16px}.main-links button{font-size:7px;padding:7px 9px}.start-hint{font-size:8px}.hud{grid-template-columns:1fr 1fr;height:68px;position:relative;padding-top:23px}.location{position:absolute;top:7px;left:0;right:0;max-width:none;display:flex;justify-content:center;align-items:center;gap:8px}.location>span{margin:0}.hud-group{gap:7px}.hud-group.right{gap:6px}.form-status{font-size:6px}.world-grid{grid-template-columns:repeat(2,1fr)}.card-text small{display:none}.card-text strong{font-size:8px}.screen h2{font-size:18px}.screen-heading .eyebrow{font-size:5px}.shop-layout{grid-template-columns:1fr}.bear-preview{position:static;display:flex;align-items:center;gap:10px}.bear-preview canvas{width:90px}.bear-preview p{font-size:11px}.bear-preview small{display:none}.product-grid{gap:8px}.product{padding:10px}.product h3{font-size:10px}.product p{font-size:9px}.shop-tools{gap:9px}.tabs{gap:5px}.tabs button{font-size:8px;padding:7px 10px}.dialog{padding:18px}.dialog h2{font-size:19px}.dialog .eyebrow{font-size:8px}.dialog-note{font-size:10px}.result-stats strong{font-size:15px}.result-stats span{font-size:9px}.secondary{font-size:8px}.plain{font-size:8px}.touch-controls{inset:auto 9px 17px}.directions,.action-controls{gap:8px}.touch-controls button{width:48px;height:48px;border-radius:13px;font-size:21px}.touch-controls .jump{width:62px;height:61px}.touch-controls .fire{width:49px;height:49px}.touch-controls small{font-size:7px}.stage-bottom{font-size:7px;bottom:5px}.record-row{font-size:10px;gap:10px;padding:9px 3px}.timer{font-size:15px}.check{font-size:11px;margin:10px 0}.field{margin:11px 0}.field input{padding:9px;font-size:16px}}
@media(max-height:650px) and (orientation:landscape){body{padding:0 max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left));min-height:100dvh}.app{width:100%;max-width:none}.topbar,.footer,.rotate-hint{display:none}.game-frame{border:0;border-radius:0;box-shadow:none}.hud{height:41px;padding:0 15px}.stage,.expanded .stage,.app:fullscreen .stage{width:min(100%,calc((100dvh - 45px)*16/9));margin:auto}.hud-group{gap:12px}.hud-item strong{font-size:13px}.location strong{font-size:10px}.score strong{font-size:12px}.heart{font-size:20px}.location>span,.score>span{font-size:6px;margin-bottom:3px}.form-status{font-size:7px}.hud-button{width:26px;height:26px}.start-screen h1{font-size:9vh}.start-screen .eyebrow{font-size:6px;padding:4px 8px;margin-bottom:6px}.intro{font-size:11px;margin:10px 0 11px}.primary{min-width:150px;padding:9px 17px;font-size:11px}.main-links{margin-top:13px;gap:5px}.main-links button{font-size:7px;padding:6px 9px}.start-hint{font-size:8px;margin-top:9px}.edition{font-size:5px}.touch-controls{bottom:max(16px,env(safe-area-inset-bottom));left:15px;right:15px}.touch-controls button{height:54px;width:55px;border-radius:14px;font-size:22px}.touch-controls .jump{height:67px;width:72px}.touch-controls .fire{height:53px;width:56px}.touch-controls small{font-size:8px}.panel-screen{padding:14px 23px}.screen-heading{margin-bottom:12px}.screen-heading .eyebrow{font-size:6px;margin-bottom:5px}.screen h2{font-size:20px}.card-text{padding:7px 9px}.card-text strong{font-size:9px}.card-text small{font-size:8px}.dialog{padding:16px 23px;max-width:375px}.dialog h2{font-size:21px}.dialog .eyebrow{font-size:7px;margin-bottom:7px}.dialog .primary{padding:10px;font-size:10px;margin:13px 0 9px}.secondary{padding:9px;font-size:9px;margin:3px 0}.plain{font-size:8px;padding:6px;margin-top:5px}.dialog-note{font-size:10px;margin-top:9px}.result-stats{gap:7px 18px;margin:11px 0}.result-stats strong{font-size:16px}.result-stats span{font-size:10px}.bear-name{font-size:11px;margin:7px 0}.shop-layout{grid-template-columns:130px 1fr}.product{padding:10px}.product h3{font-size:11px}.product-grid{gap:8px}.field{margin:11px 0}.field input{padding:9px;font-size:16px}.check{font-size:12px;margin:10px 0}.stage-bottom{font-size:7px;bottom:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Touch controls occupy dedicated space, never the Canvas. */
.play-area{position:relative}
@media(pointer:coarse){.touch-controls{position:relative;inset:auto;min-height:94px;padding:10px 18px max(12px,env(safe-area-inset-bottom));align-items:center}.touch-controls .fart{position:static}.stage{aspect-ratio:16/9}}
@media(pointer:coarse) and (orientation:landscape){
 .play-area{--rail:112px;display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - 45px - env(safe-area-inset-bottom));padding:0 var(--rail)}
 .play-area .stage,.expanded .play-area .stage,.app:fullscreen .play-area .stage{width:min(100%,calc((100dvh - 45px - env(safe-area-inset-bottom))*16/9));flex-shrink:0;margin:auto}
 .touch-controls{position:absolute;inset:0;min-height:0;padding:0;display:block}
 .directions{position:absolute;left:8px;top:50%;transform:translateY(-50%);gap:6px}
 .touch-controls button{width:45px;height:62px;border-radius:15px;opacity:.95}
 .action-controls{position:absolute;right:22px;top:50%;transform:translateY(-58%);flex-direction:column-reverse;align-items:center;gap:12px}
 .touch-controls .jump{width:72px;height:72px}.touch-controls .fire{width:60px;height:55px}
 .touch-controls .fart{position:absolute;left:auto;right:36px;bottom:12px;width:38px;height:34px}
 .stage-bottom{bottom:6px}
}

.mobile-fullscreen{display:none}@media(pointer:coarse){.mobile-fullscreen{display:block}}

.shop-categories{display:flex;gap:7px;overflow-x:auto;padding:6px 0 12px;touch-action:pan-x}.shop-categories button{flex-shrink:0;min-height:42px;padding:8px 14px;border:1px solid #76977b;border-radius:9px;background:#2b5349;font-size:12px;font-weight:bold}.shop-categories button.active{background:#f8ce68;color:#23473e}.shop-layout:has(.bear-preview.hidden){grid-template-columns:1fr}.product .buy{min-height:42px;font-size:12px}.product h3{font-size:14px}.product p{font-size:12px}.product-icon{min-height:38px}.stars-hud{white-space:nowrap;font-size:12px;color:#ffe294}.home-object{border:1px solid #66846d;padding:10px;border-radius:12px;background:#284e42}.home-object .secondary{font-size:14px;min-height:52px}.home-object small{display:block;font-size:11px;margin-top:7px;color:#eed99b}.home-object label{font-size:11px;display:flex;gap:8px;align-items:center}.home-object select{min-width:0;width:100%;font:inherit;min-height:36px;background:#21473f;color:#fff2d6;border:1px solid #79987a;border-radius:6px}.home-object p{font-size:12px}.home-scene canvas{max-height:360px;object-fit:contain;background:#253e3d}.photo-card{padding:9px;background:#345b4b;border:2px solid #72947c;border-radius:12px}.photo-card.golden{border:4px solid #f6ce70}.photo-card canvas{width:100%;height:auto;border-radius:8px}.photo-card strong{display:block;font-size:13px;margin-top:8px}.photo-card p{font-size:12px}.selfie-dialog{max-width:650px;width:90%;text-align:center}.selfie-dialog canvas{display:block;width:100%;max-height:calc(100dvh - 140px);object-fit:contain;border:5px solid #f2dcaa;border-radius:15px}.selfie-dialog p{margin:9px;font-size:15px}.selfie-dialog button{width:auto;padding:9px 22px}.author-credit{text-align:center;font-size:13px;color:#d2dfb5;margin:10px}.result-stats{gap:6px 18px}.result-stats strong{font-size:16px}.result-stats span{font-size:11px}
@media(max-width:600px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-layout{grid-template-columns:1fr}.bear-preview{position:static;display:flex;justify-content:center;gap:12px}.bear-preview canvas{width:100px}.bear-preview small{display:none}.stars-hud{font-size:10px}.hud-group.right{gap:4px}.score{display:none}.shop-categories button{font-size:11px;padding:8px 10px}.product{padding:9px}.product h3{font-size:12px}}
@media(orientation:landscape) and (max-height:650px){.author-credit{display:none}.selfie-dialog{max-width:400px}.selfie-dialog canvas{max-height:calc(100dvh - 125px)}.selfie-dialog p{font-size:12px}.result-stats strong{font-size:13px}.result-stats>div{padding-bottom:4px}}

.outfit-thumb{order:-1;width:100%;height:85px;object-fit:contain;border-radius:8px;background:#416a55}.home-scene .menu-note{min-height:22px}
.mini-choice{display:block;width:100%;margin:12px 0;white-space:normal;line-height:1.5;padding:16px;font-size:16px}.mini-actions{display:flex;justify-content:center;gap:12px}.mini-status{text-align:center;font-weight:800;color:#ffe397;font-size:18px}.mini-board{display:grid;width:100%;margin:16px auto;border:6px solid #b5a17a;border-radius:9px;overflow:hidden;touch-action:manipulation}.mini-cell{padding:0;min-width:0;min-height:0;aspect-ratio:1;border:0;border-radius:0;font-size:clamp(20px,4vw,40px);text-shadow:0 1px 2px #4b5b59;line-height:1}.mini-cell.light{background:#decfa5}.mini-cell.dark{background:#71928a}.mini-cell.selected{background:#f3c963}.mini-cell.possible{box-shadow:inset 0 0 0 4px #fbd675}.mini-cell:focus-visible{outline:3px solid #fff;outline-offset:-4px}#gamesScreen{overflow:auto}.main-links{flex-wrap:wrap}

/* Two-second cast credit: no controls or gameplay underneath can receive focus. */
.intro-splash{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#123737;padding:max(12px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));touch-action:none}
.intro-card{width:min(920px,100%);text-align:center}.intro-brand{color:#f6d782;font-size:clamp(12px,2.3vw,23px);letter-spacing:3px;font-weight:900;margin:0 0 5px}.intro-card canvas{display:block;width:100%;max-height:65dvh;object-fit:contain;border-radius:24px}.intro-card h1{font-size:clamp(16px,2.5vw,27px);font-weight:500;color:#e1edcd;line-height:1.35;margin:12px 0 0}.intro-card strong{display:block;color:#ffe18d;font-weight:900;font-size:clamp(29px,4.7vw,48px)}
.game-frame,.intro-splash{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.game-frame img,.game-frame canvas{-webkit-user-drag:none}.playing{overscroll-behavior:none;overflow:hidden}.playing .play-area{touch-action:none}.orientation-button{font-size:22px}
@media(pointer:coarse) and (orientation:portrait){body{padding:10px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-content:start}.playing .topbar,.playing .footer,.playing .author-credit,.playing .rotate-hint{display:none}.playing .app{width:100%;margin-top:5px}.touch-controls{min-height:154px;padding:20px 12px max(22px,env(safe-area-inset-bottom));gap:8px}.touch-controls button{width:58px;height:72px}.touch-controls .jump{width:80px;height:86px}.touch-controls .fire{width:58px;height:66px}.touch-controls .fart{width:32px;height:34px}.directions,.action-controls{gap:7px}.stage{aspect-ratio:16/9}.panel-screen{position:fixed;inset:10px 8px max(10px,env(safe-area-inset-bottom));z-index:20;border:1px solid #70816a;border-radius:14px}.start-screen .main-links button{font-size:9px;min-height:33px}.start-screen .main-links{max-width:100%;margin-top:8px;gap:4px}.title-content{width:98%}.start-screen .intro{margin:7px}.start-hint,.start-screen .eyebrow,.edition{display:none}.start-screen h1{font-size:22px}.start-screen .primary{font-size:13px;min-width:150px;padding:9px 20px}.start-screen h1 span{font-size:1.2em}.rotate-hint{font-size:11px}}
@media(pointer:coarse){.portrait-layout .play-area{display:block;padding:0;min-height:0}.portrait-layout .play-area .stage{width:min(100%,calc((100dvh - 175px)*16/9));margin:auto}.portrait-layout .touch-controls{position:relative;inset:auto;display:flex;min-height:110px;padding:10px 20px}.portrait-layout .directions,.portrait-layout .action-controls{position:static;transform:none;flex-direction:row}.portrait-layout .touch-controls .fart{position:static}.portrait-layout .touch-controls .jump{width:74px;height:74px}}
