:root { --sky1: #FBE3D6; --sky2: #F2B8A2; --ink: #2E2433; --font: "Syne", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: linear-gradient(180deg, var(--sky1), var(--sky2)); color: var(--ink); font-family: var(--font); font-weight: 600; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; cursor: pointer; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; }
.scorewrap { position: fixed; z-index: 5; top: calc(max(20px, env(safe-area-inset-top)) + 20px); left: 0; right: 0; text-align: center; pointer-events: none; }
.scorewrap b { font-size: 84px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.95); text-shadow: 0 4px 24px rgba(46,36,51,.18); }
.pop { position: fixed; z-index: 5; left: 0; right: 0; top: calc(max(20px, env(safe-area-inset-top)) + 118px); margin: 0; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; pointer-events: none; }
.pop.go { animation: pop .9s ease-out forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.8); } 20% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
.ib { position: fixed; z-index: 6; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); color: var(--ink); }
.ib svg { width: 20px; height: 20px; }
.mute .offi { display: none; } .mute.off .on { display: none; } .mute.off .offi { display: block; }
.ready, .over { position: fixed; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; padding: max(70px, calc(env(safe-area-inset-top) + 50px)) 20px max(26px, env(safe-area-inset-bottom)); text-align: center; pointer-events: none; }
.ready > *, .over > * { pointer-events: auto; }
.logo { margin: 0; font-size: clamp(88px, 24vw, 150px); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: #fff; text-shadow: 0 6px 30px rgba(46,36,51,.15); }
.best { margin: 12px 0 0; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.best.new { opacity: 1; color: #fff; }
.cta { margin: auto 0 18px; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.pals { display: flex; gap: 10px; margin-bottom: 16px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.2); font-size: 12px; }
.pal i { display: block; width: 30px; height: 7px; border-radius: 2px; }
.pal.sel { border-color: var(--ink); background: rgba(255,255,255,.5); }
.pal:disabled { opacity: .45; cursor: default; }
.home { color: var(--ink); font-size: 15px; opacity: .7; }
.over .big { font-size: clamp(110px, 30vw, 180px); font-weight: 800; line-height: .9; color: #fff; text-shadow: 0 6px 30px rgba(46,36,51,.15); }
.unlock { margin: 12px 0 0; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.55); }
.pal:focus-visible, .ib:focus-visible, .home:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ogmark { display: none; }
body.og .ogmark { display: block; position: fixed; z-index: 8; left: 8%; top: 50%; transform: translateY(-50%); }
body.og .ogmark .logo { font-size: 190px; }
body.og .ogmark p { margin: 10px 0 0 6px; font-size: 32px; font-weight: 800; color: #fff; }
body.demo .ready, body.demo .over, body.demo .scorewrap, body.demo .pop, body.demo .ib { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cta, .pop.go { animation: none; } }
