*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:#0b1530;font-family:"Trebuchet MS","Segoe UI",system-ui,sans-serif;color:#fff;user-select:none;-webkit-user-select:none;touch-action:none;overscroll-behavior:none}
body{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 30%,#24427f,#0b1530 70%)}
#frame{position:relative;height:100vh;height:100dvh;width:min(100vw,calc(100dvh * 9 / 16));overflow:hidden;background:#3f6fc0;box-shadow:0 0 40px rgba(255,138,31,.45)}
@media (min-width:700px){#frame{height:96dvh;width:calc(96dvh * 9 / 16);border-radius:18px}}
canvas{display:block;width:100%;height:100%}
.hidden{display:none!important}
#hud{position:absolute;inset:0;pointer-events:none;padding:calc(10px + env(safe-area-inset-top)) 12px 0;display:flex;justify-content:space-between;align-items:flex-start;z-index:3}
.hud-left{display:flex;gap:10px;align-items:flex-start}
.icon-btn{pointer-events:auto;width:46px;height:46px;border-radius:12px;border:2px solid rgba(255,255,255,.85);background:rgba(14,26,58,.62);color:#fff;font-size:18px;font-weight:900;cursor:pointer}
.mute{position:absolute;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:5}
.chip{background:rgba(12,22,52,.8);border:2px solid rgba(125,211,252,.75);border-radius:12px;padding:4px 10px;font-weight:900;line-height:1.15;box-shadow:0 0 12px rgba(56,189,248,.35)}
.chip .lbl{display:block;font-size:11px;letter-spacing:1px;color:#e0f2fe}
.chip b{font-size:20px;color:#fff}
.chip .sub{display:block;font-size:11px;color:#ffd29a}
.mult-chip{text-align:right;border-color:rgba(255,207,51,.8);box-shadow:0 0 12px rgba(255,207,51,.35)}
.mult-chip b{color:#ffcf33}
#banner{position:absolute;left:0;right:0;top:30%;text-align:center;font-size:34px;font-weight:900;letter-spacing:2px;color:#fff;text-shadow:0 0 14px #ff6a2b,0 3px 0 #7a2a0a;pointer-events:none;z-index:3}
.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:linear-gradient(180deg,rgba(18,36,80,.3),rgba(10,18,44,.82));text-align:center;padding:24px;cursor:pointer;z-index:4}
.logo{font-size:46px;font-weight:900;line-height:.95;color:#fff;text-shadow:0 0 16px #ff6a2b,0 4px 0 #8a2e0b;letter-spacing:2px}
.logo span{display:block;color:#ffcf33;font-size:58px;text-shadow:0 0 18px #ffcf33,0 4px 0 #8a5a00}
.logo.small{font-size:46px;color:#ff8a5b}
.tag{font-size:16px;font-weight:700;line-height:1.4;text-shadow:0 2px 4px rgba(0,0,0,.6)}
.big-btn{font-weight:900;font-size:22px;font-family:inherit;padding:14px 34px;border-radius:16px;border:3px solid #fff;background:linear-gradient(#ff8a3d,#e0481a);color:#fff;box-shadow:0 0 18px rgba(255,106,43,.6),0 5px 0 #8a2e0b;cursor:pointer;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.pulse{animation:pulse 1s infinite}
@keyframes pulse{50%{transform:scale(1.06)}}
.hint{font-size:12px;opacity:.85}
.best-line,.final{font-size:20px;font-weight:900}
.final b{color:#ffcf33;font-size:34px}
.final.small{font-size:17px}
.new-best{color:#ffcf33;font-weight:900;font-size:22px;animation:pulse .6s infinite}
#floaters{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}
.floater{position:absolute;font-weight:900;font-size:20px;color:#ffd23f;text-shadow:0 2px 0 #5a2a00;animation:floatUp .8s ease-out forwards;transform:translate(-50%,-50%);white-space:nowrap}
@keyframes floatUp{to{opacity:0;margin-top:-70px}}

/* Approved portrait standard UI: help overlay + pause menu + hide status chip (sunset sky orange/gold/sky-blue theme) */
.htp-panel{position:absolute;inset:0;z-index:2147483000;width:auto;height:auto;border-radius:0;background:linear-gradient(160deg,#1d3a72,#0b1530 62%);color:#eef6ff;font-size:16px;font-weight:400;cursor:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;user-select:text;-webkit-user-select:text;padding:calc(16px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));text-align:left;border:2px solid #ff6a2b;scrollbar-width:thin;scrollbar-color:#ff6a2b #0e1d40;scrollbar-gutter:stable}
.htp-panel::-webkit-scrollbar{width:10px}
.htp-panel::-webkit-scrollbar-track{background:#0e1d40;border-radius:10px}
.htp-panel::-webkit-scrollbar-thumb{background:linear-gradient(#ff6a2b,#ffb020);border:2px solid #0e1d40;border-radius:10px}
.htp-panel::-webkit-scrollbar-thumb:hover{background:#ffcf33}
.htp-panel[hidden]{display:none}
.htp-inner{max-width:640px;margin:0 auto;line-height:1.5}
.htp-panel h1,.htp-panel #htpTitle{font-size:24px;line-height:1.2;margin:8px 0 12px;color:#ffcf33;text-shadow:0 0 10px rgba(255,207,51,.35)}
.htp-panel h2{font-size:19px;margin:20px 0 6px;color:#ff8a5b;border-bottom:1px solid rgba(255,138,31,0.45);padding-bottom:6px}
.htp-panel h3,.htp-panel b{color:#e0f2fe}
.htp-panel p,.htp-panel li{margin:0 0 8px;line-height:1.6}
.htp-panel ul{padding-left:20px}
.htp-panel a{color:#7dd3fc}
.htp-close{position:sticky;top:0;float:right;font-family:inherit;font-weight:900;font-size:15px;padding:10px 14px;border-radius:12px;border:2px solid #fff;background:linear-gradient(#ff6a2b,#c2410c);color:#fff;cursor:pointer;box-shadow:0 0 10px rgba(255,106,43,.45)}
.htp-done{display:block;margin:24px auto 8px}
body.htp-lock{overflow:hidden}
#htpBtn{width:auto;height:auto;background:linear-gradient(#38bdf8,#1d4ed8);box-shadow:0 0 16px rgba(56,189,248,.5),0 5px 0 #0c4a6e}
#resumeBtn,#mainMenuBtn{width:auto;height:auto;min-width:220px;font-size:20px}
#resumeBtn{background:linear-gradient(#38bdf8,#0369a1);box-shadow:0 0 16px rgba(56,189,248,.5),0 5px 0 #0c3a5a}
#mainMenuBtn{background:linear-gradient(#ff6a2b,#c2410c);color:#fff;box-shadow:0 0 14px rgba(255,106,43,.45)}
#pauseScreen button:focus-visible,.htp-panel button:focus-visible,.htp-panel a:focus-visible,#startScreen button:focus-visible{outline:3px solid #ffcf33;outline-offset:3px}
/* Clear bottom space for future ads: hide shared gate chip without editing shared gate scripts. */
#ifs-gate-chip,.player-tag{display:none!important}

#banner{top:26%}
.mult-chip b{font-size:22px}
.final.small{font-size:15px}
