html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d12; color: #e8ecf1; font-family: system-ui, sans-serif; }
canvas { display: block; width: 100vw; height: 100vh; }

.hud-root { position: fixed; inset: 0; pointer-events: none; display: none; text-shadow: 0 1px 4px #000a; }
.panel { position: fixed; }
.lbl { font-size: 11px; letter-spacing: 3px; opacity: 0.75; }
.spd { left: 24px; bottom: 56px; width: 220px; }
.spd .num b { font-size: 54px; font-weight: 800; color: #7df9ff; }
.spd .num i { font-style: normal; opacity: 0.7; }
.meter { height: 8px; background: #ffffff22; border-radius: 4px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #33ddff, #ff44cc, #ffd24a); }
.timer { top: 16px; left: 50%; transform: translateX(-50%); text-align: center; }
.timer .t { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer .tgt { font-size: 13px; opacity: 0.8; }
.score { top: 16px; right: 24px; text-align: right; }
.score .sc { font-size: 34px; font-weight: 800; color: #ffd24a; font-variant-numeric: tabular-nums; }
.combo { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.mult { font-size: 22px; font-weight: 800; color: #ff44cc; }
.cbar { width: 110px; height: 6px; background: #ffffff22; border-radius: 3px; overflow: hidden; }
.cfill { height: 100%; width: 0; background: #ff44cc; }
.splits { top: 16px; left: 24px; font-size: 14px; font-variant-numeric: tabular-nums; }
.splits .row { display: flex; gap: 12px; }
.good { color: #5f5; } .bad { color: #f66; }
.trick { position: fixed; right: 8%; top: 38%; font-size: 26px; font-weight: 800; color: #ff9bf0; opacity: 0; transition: opacity 0.3s; }
.toast { position: fixed; top: 22%; width: 100%; text-align: center; font-size: 30px; font-weight: 800; opacity: 0; transition: opacity 0.3s; }
.hint { position: fixed; bottom: 14px; width: 100%; text-align: center; font-size: 13px; opacity: 0.8; }
.flash { position: fixed; inset: 0; opacity: 0; }

.overlay { position: fixed; inset: 0; align-items: center; justify-content: center; background: #05081099; z-index: 5; }
.box { max-width: 880px; padding: 28px 34px; background: #0d1422ee; border: 1px solid #33ddff55; border-radius: 14px; text-align: center; box-shadow: 0 0 40px #33ddff33; }
.box h1 { margin: 0; letter-spacing: 4px; font-size: 32px; }
.box h1 span { color: #33ddff; }
.sub { opacity: 0.8; margin: 6px 0 14px; }
.cards { display: flex; gap: 12px; margin-bottom: 14px; }
.card { flex: 1; text-align: left; padding: 12px; background: #16203a; color: inherit; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; }
.card.sel { border-color: #33ddff; background: #1b2a4d; }
.card .cn { font-weight: 800; font-size: 17px; }
.card .cd { font-size: 12px; opacity: 0.8; margin: 4px 0 8px; min-height: 48px; }
.card .cb { font-size: 13px; } .card .cm { font-size: 10px; opacity: 0.6; margin-top: 4px; }
.trail { margin: 8px 0 14px; font-size: 14px; }
.unl { opacity: 0.6; margin-left: 8px; font-size: 12px; }
.mini { background: #22304f; color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.go { background: linear-gradient(90deg, #1fb7e0, #b43cff); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 800; font-size: 15px; cursor: pointer; margin: 4px; }
.keys { margin-top: 14px; font-size: 12px; opacity: 0.65; line-height: 1.5; }
.medal { font-size: 28px; font-weight: 800; margin-top: 10px; letter-spacing: 3px; }
.big { font-size: 60px; font-weight: 800; font-variant-numeric: tabular-nums; }
.unlock { color: #ff9bf0; font-weight: 700; margin: 6px 0; }
