:root{--ink:#fffaf0;--muted:#c7dbd3;--orange:#ff7a1a;--yellow:#ffd166;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;position:fixed;background:#102b2d;color:var(--ink);font-family:Inter,ui-rounded,"SF Pro Rounded",system-ui,sans-serif;touch-action:none;user-select:none}button{font:inherit}#shell{position:absolute;inset:0;width:100%;height:100%}#shell canvas{position:absolute;inset:0;display:block}.hidden{display:none!important}
#hud{padding-left:0}
#hud{position:absolute;z-index:4;left:12px;right:12px;top:calc(10px + var(--safe-top));display:grid;grid-template-columns:repeat(3,1fr);gap:7px;pointer-events:none}#hud div{padding:8px 10px;border:1px solid rgba(255,255,255,.17);border-radius:13px;background:rgba(7,35,39,.68);box-shadow:0 8px 20px rgba(0,0,0,.18);backdrop-filter:blur(8px)}#hud div:nth-child(2){text-align:center}#hud div:last-child{text-align:right}small,#hud small{display:block;color:#b9d1ca;font-size:8px;font-weight:900;letter-spacing:.12em}#hud strong{font-size:16px;font-variant-numeric:tabular-nums}#hud div:nth-child(2) strong{color:var(--yellow)}
#boostWrap{position:absolute;z-index:4;left:14px;bottom:calc(18px + var(--safe-bottom));width:168px;color:#fff;font-size:8px;font-weight:950;letter-spacing:.1em}#boostWrap i{display:block;height:11px;margin-top:5px;overflow:hidden;border:1px solid rgba(255,255,255,.3);border-radius:9px;background:rgba(4,30,35,.78)}#boostFill{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff72bc,#ffd166,#ff7a1a);transition:width .12s}#boostBtn{position:absolute;z-index:5;right:16px;bottom:calc(16px + var(--safe-bottom));width:68px;height:68px;border:3px solid rgba(255,255,255,.72);border-radius:50%;background:linear-gradient(145deg,#ff9b32,#ff6810);color:#fff;font-size:25px;font-weight:950;box-shadow:0 10px 30px rgba(127,46,0,.35)}#boostBtn span{display:block;font-size:7px;letter-spacing:.08em}#boostBtn.ready{animation:glow 1s infinite alternate}#pauseBtn{position:absolute;z-index:5;right:14px;top:calc(72px + var(--safe-top));width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(7,35,39,.68);color:#fff;font-weight:900}
.overlay{position:absolute;z-index:10;inset:0;display:grid;place-items:center;padding:calc(18px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));background:linear-gradient(rgba(4,28,29,.18),rgba(4,28,29,.74));backdrop-filter:blur(3px)}.panel{width:min(390px,100%);padding:28px 22px 22px;border:1px solid rgba(255,255,255,.2);border-radius:28px;background:linear-gradient(155deg,rgba(15,67,55,.93),rgba(6,41,45,.96));box-shadow:0 28px 70px rgba(0,0,0,.42);text-align:center}.panel.compact{max-width:350px}.kicker{color:#81efe7;font-size:9px;font-weight:1000;letter-spacing:.2em}.panel h1{margin:8px 0 5px;font-size:54px;line-height:.8;letter-spacing:-.06em;text-shadow:0 5px 0 rgba(0,0,0,.18)}.panel h1 em{color:#ffb43d;font-style:normal}.panel h2{margin:9px 0 8px;font-size:29px}.panel p{margin:13px auto 20px;max-width:290px;color:var(--muted);font-size:13px;line-height:1.5}.best,.final{margin:18px 0;padding:13px;border:1px solid rgba(255,209,102,.28);border-radius:17px;background:rgba(255,209,102,.09)}.best>span,.final small{display:block;color:#f8d787;font-size:9px;font-weight:950;letter-spacing:.13em}.best> b{display:block;margin-top:5px;color:#fff;font-size:13px;letter-spacing:.04em}.best strong,.final strong{display:block;margin-top:3px;font-size:28px}
.primary,.secondary{width:100%;min-height:54px;border:0;border-radius:16px;font-weight:1000;letter-spacing:.08em}.primary{background:linear-gradient(180deg,#ff9a35,#ff7215);color:#fff;box-shadow:0 9px 0 #b64309,0 14px 24px rgba(0,0,0,.24)}.primary:active{transform:translateY(5px);box-shadow:0 4px 0 #b64309}.secondary{margin-top:13px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#cce0d9}.textButton{min-height:38px;margin-top:13px;padding:0 14px;border:0;background:transparent;color:#a7cbc2;font-size:9px;font-weight:1000;letter-spacing:.14em}.controls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.controls span{padding:9px 4px;border-radius:12px;background:rgba(255,255,255,.06);font-weight:950}.controls b{display:block;margin-top:3px;color:#8eb6ad;font-size:6px;letter-spacing:.06em}
.tutorial p{margin-bottom:14px}.hazardList{display:grid;gap:6px;margin:0 0 12px;text-align:left}.hazardList>div,.boostTip{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.055)}.hazardList span,.boostTip span{color:#b9d1ca;font-size:10px;line-height:1.35}.hazardList b,.boostTip b{display:block;margin-bottom:2px;color:#fff;font-size:9px;letter-spacing:.1em}.hazard{flex:none;width:40px;height:34px;display:grid;place-items:center;border-radius:10px;font-style:normal;font-size:20px;font-weight:1000}.hazard.rock{background:#66727c;color:#c8d0d5}.hazard.log{background:#78411f;color:#efad69}.hazard.branch{background:#326c43;color:#91d08b}.hazard.lily{background:#34784b;color:#8bd36f}.hazard.rope{background:#79502d;color:#e6b96d}.hazard.bridge{background:#46575a;color:#c8d0c8}.hazard.coin{background:#286c89;color:#ffd166}.boostTip{margin:0 0 14px;border-color:rgba(255,190,74,.24);background:rgba(255,173,53,.08);text-align:left}.boostTip>i{flex:none;width:40px;text-align:center;color:#ffd166;font-size:24px;font-style:normal}
.resultGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.resultGrid div{padding:11px 4px;border-radius:13px;background:rgba(255,255,255,.06)}.resultGrid b{font-size:17px}.newBest{color:#ffd166!important;font-weight:1000;letter-spacing:.08em}@keyframes glow{to{filter:brightness(1.25);box-shadow:0 0 28px rgba(255,190,70,.75)}}
@media(max-height:650px){.panel{padding:20px}.panel h1{font-size:44px}.panel p{margin:8px auto 11px}.best{margin:11px 0}.controls{margin-top:8px}.primary{min-height:48px}.tutorial{padding-top:16px}.hazardList{gap:5px}.hazardList>div,.boostTip{padding:7px}.boostTip{margin-bottom:12px}}
