:root{color-scheme:dark;--gold:#f5cf78;--ink:#153b40;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#16363e;color:#fff5d8;font-family:Trebuchet MS,system-ui,sans-serif}#app-root{position:relative;width:100%;height:100%;overflow:hidden}#scene{width:100%;height:100%;display:block;touch-action:none;outline:none}button,a,select{font:inherit}button,.back{border:1px solid #fff1c54d;background:#183b40d9;color:#fff1c7;border-radius:13px;padding:12px 16px;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 12px #18313722}button:hover,.back:hover{background:#325851}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ffe49a;outline-offset:3px}button:disabled{opacity:.42;cursor:default}.gold{background:linear-gradient(#ffe7a5,#e9b65d);color:#4a3522;border-color:#fff2bd;font-weight:800}.gold:hover{background:#ffe2a0}header{position:absolute;left:calc(18px + var(--safe-left));right:calc(18px + var(--safe-right));top:calc(16px + var(--safe-top));display:flex;align-items:center;gap:14px;pointer-events:none}header>*{pointer-events:auto}.back{text-decoration:none;font-weight:bold}.brand{font-family:Georgia,serif;font-weight:900;font-size:20px;letter-spacing:1px;text-shadow:0 2px 3px #163b40}.brand small{display:block;font:700 9px Trebuchet MS;letter-spacing:3px;margin-top:3px}.top-actions{display:flex;gap:8px;margin-left:auto}#camera{min-width:140px}#camera[aria-pressed=true]{border-color:#ffe2a0;background:#e9b65d;color:#3f3522}.round-hud{position:absolute;top:calc(82px + var(--safe-top));left:calc(20px + var(--safe-left));background:#193b40d9;padding:14px 18px;border:1px solid #f9de9b33;border-radius:16px;pointer-events:none;max-width:300px;backdrop-filter:blur(6px)}.round-hud>span{font-size:9px;letter-spacing:2px;color:#f4d48c}.round-hud h1{font:700 20px Georgia;margin:6px 0 10px}.round-hud>div{display:flex;gap:30px;font-size:12px}.round-hud b{font-weight:500}#score{color:#ffdc88}footer{position:absolute;bottom:calc(16px + var(--safe-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:10px;background:#16383ee8;border:1px solid #e6cb8744;border-radius:22px;box-shadow:0 5px 30px #17343b33;max-width:calc(100% - 28px - var(--safe-left) - var(--safe-right));backdrop-filter:blur(8px)}.cheeses{display:flex;gap:6px}.cheeses button{display:flex;flex-direction:column;align-items:center;min-width:87px;padding:5px 10px;font-size:11px;border:1px solid transparent;background:transparent}.cheeses button>span{font-size:25px;line-height:28px;color:#ffdb86}.cheeses button small{font-size:8px;opacity:.7;margin-top:3px}.cheeses button.selected{border-color:#f9d98e;background:#efd18b25}.supply{text-align:center;min-width:36px}.supply strong{display:block;font-size:25px;line-height:25px}.supply small{font-size:8px;letter-spacing:1px}#fling small{display:block;font-size:8px;opacity:.65;margin-top:3px}#power{min-height:51px;font-size:25px;min-width:58px;padding:9px}#power span{display:block;font-size:8px;max-width:70px}.shade{position:absolute;inset:0;z-index:50;background:#102d36a8;backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px}.panel-card{width:min(580px,100%);max-height:100%;overflow:auto;background:linear-gradient(145deg,#224950,#17383f);border:1px solid #d8bb78;border-radius:26px;padding:36px;text-align:center;box-shadow:0 20px 80px #0a242d77}.panel-card.wide{width:min(840px,100%)}.eyebrow{font-size:10px;letter-spacing:3px;color:#f2d18b;font-weight:700}.panel-card h2{font:700 clamp(28px,4vw,42px) Georgia;margin:12px 0}.panel-card p{line-height:1.55;font-size:15px;color:#e1e5d7}.panel-card .small{font-size:12px;color:#abc5bf;margin-bottom:0}.panel-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}.panel-card label{display:flex;align-items:center;justify-content:space-between;margin:12px 0;background:#ffffff08;padding:10px 15px;border-radius:10px}select{padding:8px;border-radius:6px;background:#203f45;color:#ffe8b7;border:1px solid #cfb67166}input[type=checkbox]{accent-color:#e8c779;width:20px;height:20px}#howto{display:flex;gap:10px;margin-top:22px;font-size:12px}#howto span{flex:1;background:#ffffff0a;padding:12px;border-radius:14px;line-height:1.4}#howto b{display:block;color:#f6d387;font:700 23px Georgia;margin-bottom:6px}#panel-stats{color:#f4d485;font-size:20px;line-height:1.8}#level-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}#level-list button{text-align:left;padding:17px;background:#ffffff09}#level-list strong{display:block;font-family:Georgia;font-size:17px;margin:10px 0}#level-list small{font-size:10px;color:#bed0c6}#level-list .stars{color:#f2ce76;font-size:20px;display:block}#message{position:absolute;left:50%;bottom:calc(116px + var(--safe-bottom));transform:translateX(-50%);background:#1a3b40d9;max-width:min(620px,85%);padding:9px 16px;border-radius:30px;text-align:center;font-size:12px;pointer-events:none;text-shadow:0 1px #14333d}#reticle{position:absolute;width:24px;height:24px;border:2px solid #ffe4a1;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #163e4980;pointer-events:none}#reticle i{position:absolute;width:4px;height:4px;left:8px;top:8px;background:#fff5d3;border-radius:50%}#charge{position:absolute;left:50%;bottom:calc(165px + var(--safe-bottom));transform:translateX(-50%);width:180px;text-align:center;font-size:12px;pointer-events:none}#charge>div{background:#173940;border:1px solid #f1d494;padding:3px;border-radius:6px;margin-top:5px}#charge i{display:block;background:#f5d580;width:25%;height:6px;border-radius:4px}#camera-note{position:absolute;right:calc(20px + var(--safe-right));top:calc(78px + var(--safe-top));font-size:10px;letter-spacing:1px;padding:8px;background:#15353bc9;border-radius:20px}#boss{position:absolute;top:calc(80px + var(--safe-top));left:50%;transform:translateX(-50%);background:#193b40e6;border-radius:14px;padding:10px 15px;text-align:center;font-size:12px;min-width:210px}#boss meter{display:block;width:100%;height:15px;margin-top:5px;accent-color:#ffd480}#loading{position:absolute;inset:0;z-index:100;background:#173940;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.spinner{font-size:60px;animation:bob 1s ease-in-out infinite alternate;margin-bottom:20px}#loading p{max-width:540px;line-height:1.5}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.pop{position:absolute;color:#ffedb2;font-weight:bold;font-size:19px;text-shadow:0 2px 3px #17353d;transform:translate(-50%,-50%);white-space:nowrap}[hidden]{display:none!important}@keyframes bob{to{transform:translateY(-12px) rotate(8deg)}}
.landscape-app #app-root{position:fixed;left:0;top:0;width:var(--app-width);height:var(--app-height)}.landscape-rotated #app-root{transform-origin:0 0;transform:translateX(100vw) rotate(90deg)}.landscape-rotated{--safe-left:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-left,0px)}
@media(max-height:600px){header{top:calc(8px + var(--safe-top));left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right));gap:8px}header button,.back{padding:10px}.brand{font-size:14px}.brand small{font-size:7px;letter-spacing:2px}.round-hud{top:calc(62px + var(--safe-top));left:calc(12px + var(--safe-left));padding:8px 12px;max-width:230px}.round-hud h1{font-size:16px;margin:4px 0 6px}.round-hud>span{font-size:8px}.round-hud>div{font-size:10px}footer{bottom:calc(8px + var(--safe-bottom));padding:6px;border-radius:17px;gap:6px}.cheeses button{min-width:64px;padding:3px 7px;font-size:10px}.cheeses button small{display:none}.cheeses button>span{font-size:23px;line-height:25px}#message{bottom:calc(80px + var(--safe-bottom));font-size:10px;padding:6px 12px}#charge{bottom:calc(115px + var(--safe-bottom))}#power{min-height:45px}#power span{display:none}#boss{top:calc(62px + var(--safe-top));min-width:190px;padding:6px 12px;font-size:11px}#camera-note{top:calc(62px + var(--safe-top));font-size:9px}.panel-card{padding:20px 26px}.panel-card h2{font-size:29px;margin:8px 0}.panel-card p{font-size:12px;margin:8px 0}#howto{margin-top:10px}#howto span{padding:8px}#howto b{display:inline;font-size:16px;margin-right:6px}.panel-actions{margin-top:14px}.panel-card .small{font-size:10px}#level-list{margin:12px 0;gap:8px}#level-list button{padding:10px}#level-list strong{font-size:14px;margin:5px 0}}
@media(max-width:650px){.brand{display:none}.back span{display:none}#camera{min-width:125px}.round-hud{max-width:185px}.round-hud h1{font-size:15px}#level-list{grid-template-columns:repeat(2,1fr)}footer{gap:4px}.cheeses button{min-width:52px}.supply{min-width:26px}#fling{padding:9px}#levels-button{padding:10px}#power{min-width:40px}.panel-card{padding:22px}#howto{flex-direction:column}#howto b{display:inline;margin-right:8px}#message{width:90%}}
.landscape-rotated header{top:calc(8px + var(--safe-top));left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right))}.landscape-rotated .round-hud{top:62px;padding:8px 12px}.landscape-rotated .round-hud h1{font-size:15px}.landscape-rotated footer{bottom:calc(8px + var(--safe-bottom));padding:6px}.landscape-rotated .cheeses button{min-width:64px;padding:3px 7px}.landscape-rotated .cheeses button small,.landscape-rotated #power span{display:none}.landscape-rotated #message{bottom:86px;font-size:10px;padding:6px 12px}.landscape-rotated #charge{bottom:116px}.landscape-rotated .panel-card{padding:18px 24px}.landscape-rotated .panel-card h2{font-size:27px;margin:8px 0}.landscape-rotated .panel-card p{font-size:12px}.landscape-rotated #howto{flex-direction:row;margin-top:10px}.landscape-rotated #level-list{grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.landscape-rotated #level-list button{padding:10px}.landscape-rotated #level-list strong{font-size:14px;margin:5px 0}.landscape-rotated .panel-actions{margin-top:12px}.landscape-rotated .small{font-size:10px}.landscape-rotated #camera-note,.landscape-rotated #boss{top:62px}

/* Keep the boss window clear while aiming. */
#boss{left:auto;right:calc(20px + var(--safe-right));transform:none}#boss:not([hidden])~#camera-note{top:calc(133px + var(--safe-top))}@media(max-height:600px){#boss{min-width:170px;max-width:190px}#boss:not([hidden])~#camera-note{top:calc(113px + var(--safe-top))}}

/* Leave the cheese face readable above the sling on narrow landscape screens. */
#message{left:64%;max-width:min(510px,60%);width:auto}

#aim-readout{position:absolute;left:64%;bottom:calc(151px + var(--safe-bottom));transform:translateX(-50%);font-size:10px;letter-spacing:.5px;color:#fff0bd;text-shadow:0 2px 3px #16383e;padding:4px 10px;border-radius:10px;background:#173b4088;pointer-events:none}#reticle.blocked{border-color:#ffc978}#reticle{width:20px;height:20px}#reticle i{left:6px;top:6px}@media(max-height:600px){#aim-readout{bottom:calc(108px + var(--safe-bottom));font-size:9px}}.landscape-rotated #aim-readout{bottom:112px;font-size:9px}

/* Let the player enjoy the collapse and rubble during the result. */
.shade.result{background:linear-gradient(0deg,#102d3644,transparent 55%);backdrop-filter:none;place-items:end;padding:22px;pointer-events:none}.result .panel-card{width:min(380px,92%);padding:22px;pointer-events:auto;background:linear-gradient(145deg,#224950f2,#17383ff5)}.result .panel-card h2{font-size:30px}.result .panel-card p{font-size:12px}.result #panel-stats{font-size:17px}.result .panel-actions{margin-top:12px}.result .panel-card .small{display:none}.celebrating footer,.celebrating #message{display:none}@media(max-height:600px){.shade.result{padding:12px}.result .panel-card{width:310px;padding:14px}.result .panel-card h2{font-size:24px;margin:5px}.result .panel-card p{font-size:10px;margin:6px}.result .panel-actions button{padding:9px}.result #panel-stats{font-size:14px}}

#power.in-range{outline:2px solid #fff5bf;box-shadow:0 0 24px #ffc65b99}#power.pulse{animation:power-ready .7s ease-in-out infinite alternate}@keyframes power-ready{to{box-shadow:0 0 35px #ffd577dd;transform:scale(1.04)}}

.hidden-pest{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);padding:4px 7px;border:1px solid #f1ce7b;background:#244c45ed;color:#ffebb2;font-size:9px;border-radius:10px;box-shadow:0 2px 8px #173b4077;white-space:nowrap}.hidden-pest::after{content:'';position:absolute;left:50%;bottom:-5px;width:1px;height:5px;background:#f1ce7b}

#pest-cues{z-index:1;position:absolute;inset:0;pointer-events:none;overflow:hidden}

header,footer{z-index:2}

#strength-note{font-size:11px;line-height:1.4;color:#eedcaf;margin:4px 0 12px;text-align:left}#strength-badge{font-size:10px;color:#f5cf78;border:1px solid #efdca844;border-radius:7px;padding:1px 5px}.round-hud>div{align-items:center;gap:18px}#pause-panel .panel-card{max-height:calc(100% - 24px);overflow-y:auto}#pause-panel label{gap:12px}#pause-panel select{max-width:64%;font-size:12px}@media(max-height:600px){#pause-panel .panel-card{padding:14px 22px}#pause-panel h2{font-size:25px;margin:4px 0}#pause-panel p{margin:6px 0}#pause-panel label{margin:7px 0}#pause-panel .panel-actions{margin-top:8px}#pause-panel .small{display:none}}.landscape-rotated #pause-panel .panel-card{padding:14px 22px}.landscape-rotated #pause-panel h2{font-size:25px;margin:4px}.landscape-rotated #pause-panel label{margin:7px 0}.landscape-rotated #pause-panel .small{display:none}

/* Stack contextual text by its actual height so wrapped hints never overlap. */
#guidance{position:absolute;left:64%;bottom:calc(116px + var(--safe-bottom));transform:translateX(-50%);width:min(510px,60%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}#guidance #message,#guidance #aim-readout,#guidance #charge{position:static;transform:none;left:auto;bottom:auto;max-width:100%;margin:0}#guidance #message{width:auto}#guidance #charge{order:-1;width:180px}.celebrating #guidance{display:none}@media(max-height:600px){#guidance{bottom:calc(80px + var(--safe-bottom));gap:4px}}.landscape-rotated #guidance{bottom:86px;gap:4px}

.settings-toggles{display:grid;grid-template-columns:1fr 1fr;gap:8px}#pause-panel .settings-toggles label{font-size:12px;justify-content:flex-start;padding:8px;gap:6px}@media(max-height:600px){#pause-panel label{padding:7px 12px}#pause-panel{padding:12px}#pause-panel .panel-card{max-height:100%}}.landscape-rotated #pause-panel{padding:12px}.landscape-rotated #pause-panel label{padding:7px 12px}.landscape-rotated #pause-panel .panel-card{max-height:100%}
/* Give the foreground character room beside the phone controls. */
@media(max-height:600px){footer{left:auto;right:calc(12px + var(--safe-right));transform:none}}.landscape-rotated footer{left:auto;right:calc(12px + var(--safe-right));transform:none}

/* Concept-board pass: slim score pill, round power button, controls tucked right, Curd Cam speed streaks. */
.round-hud{top:calc(72px + var(--safe-top));padding:7px 16px;border-radius:999px;display:flex;align-items:center;gap:12px;max-width:none;background:#12373dcc;border-color:#f9de9b55}
.round-hud>span{display:none}.round-hud h1{font:700 12px Trebuchet MS,system-ui,sans-serif;margin:0;opacity:.85;order:2}.round-hud>div{gap:10px;font-size:12px}
#score{font:800 17px Georgia,serif;order:-1}#score::before{content:'🧀 '}
footer{left:auto;right:calc(16px + var(--safe-right));transform:none;background:#12353bb3;padding:7px 9px;border-radius:999px;gap:6px}
.cheeses button{min-width:58px;padding:4px 9px;border-radius:999px}.cheeses button small{display:none}
#fling,#levels-button{border-radius:999px}
#power{width:62px;height:62px;min-width:62px;min-height:62px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#ffbd52,#d65f1b);border:3px solid #ffdd94;color:#fff4c9;font-size:29px;line-height:1;padding:0;box-shadow:0 4px 14px #0006}
#power:disabled{opacity:.55;filter:saturate(.6)}#power span{display:none}
#guidance{left:50%;bottom:calc(96px + var(--safe-bottom))}
#speed{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;background:repeating-conic-gradient(from 0deg at 50% 46%,#fff0 0deg 2.1deg,#fffbe055 2.5deg 2.8deg,#fff0 3.3deg 6deg);-webkit-mask-image:radial-gradient(ellipse at 50% 46%,#0000 40%,#000 88%);mask-image:radial-gradient(ellipse at 50% 46%,#0000 40%,#000 88%)}
#speed.on{opacity:1}
#reticle.pip{width:16px;height:16px;border-color:#ffd66e;box-shadow:0 0 10px #ffd66ecc}#reticle.pip i{left:4px;top:4px}
@media(max-height:600px){.round-hud{top:calc(58px + var(--safe-top));padding:5px 12px}#power{width:50px;height:50px;min-width:50px;min-height:50px;font-size:23px}#guidance{bottom:calc(72px + var(--safe-bottom))}}
.landscape-rotated .round-hud{top:58px;padding:5px 12px}.landscape-rotated #power{width:50px;height:50px;min-width:50px;min-height:50px;font-size:23px}.landscape-rotated #guidance{bottom:72px}
/* Soft lens vignette over the scene, under the controls. */
#app-root::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 50% 45%,#0000 58%,#0b232a55 100%)}

#pantry-button{display:grid;gap:1px;place-items:center;padding:5px 9px;border-radius:14px;font-size:11px}
#pantry-button b{font:700 13px Georgia;color:#ffdd8e}
#pantry-button.stocked{border-color:#efc878;background:#4e5942}
.pantry-card{width:min(620px,100%);padding:clamp(14px,3vh,30px)}
.pantry-card h2{margin:0}.pantry-card p{margin:6px 0;font-size:13px}
#pantry-balance{color:#ffda80;font-weight:bold}
.pantry-items{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}
.pantry-items button{padding:10px 7px;text-align:left}
.pantry-items strong,.pantry-items small{display:block}
.pantry-items small{margin-top:6px;font-size:12px;line-height:1.35}

#pantry-button.just-earned{box-shadow:0 0 0 2px #ffd485,0 0 12px #e6a54688}
