.tap-first [hidden] { display: none !important; }
.tap-first .eyebrow { color: #bdc8ea; font-size: .68rem; font-weight: 750; letter-spacing: .15em; }
.tap-first .intro { gap: .5rem; }
.tap-first .intro h1 { font-size: clamp(2.7rem, 7vw, 4.25rem); }
.tap-first .title-accent { color: var(--accent); }
.tap-first .game-subtitle { font-size: 1.05rem; font-weight: 700; }
.tap-first .game-subtitle span { color: var(--muted); font-size: .84rem; font-weight: 400; margin-left: .6rem; }
.tap-first .game-instruction { font-size: .9rem; max-width: 36rem; }
.tap-first .play-column { min-width: 0; }
.tap-first .arena { height: 450px; min-height: 400px; transition: border-color .15s; }
.tap-first .arena-top { position: absolute; z-index: 2; top: 1rem; left: 1rem; right: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; pointer-events: none; }
.tap-first .mode-pill, .tap-first .round-label { font-size: .72rem; color: #bdc8ea; }
.tap-first .mode-pill { display: inline-flex; align-items: center; gap: .4rem; }
.tap-first .mode-pill i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.tap-first .tap-pad { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; border-radius: inherit; display: flex; flex-direction: column; gap: .7rem; color: #edf5ff; touch-action: manipulation; }
.tap-first .tap-pad:disabled { opacity: 1; cursor: default; }
.tap-first .tap-pad:focus-visible { outline-offset: -6px; }
.tap-first .arena[data-state=ready] .tap-pad, .tap-first .arena[data-state=result] .tap-pad, .tap-first .arena[data-state=interrupted] .tap-pad { visibility: hidden; }
.tap-first .cue-symbol { font-size: 4rem; line-height: 1; }
.tap-first .cue-title { font-size: clamp(2.4rem, 9vw, 4.4rem); font-weight: 850; letter-spacing: -.05em; }
.tap-first .cue-subtitle { color: #d3e1f0; font-size: .9rem; }
.tap-first .arena[data-state=tap] { border-color: #d6f46b; background-color: #193c3c; }
.tap-first .arena[data-state=tap] .cue-symbol, .tap-first .arena[data-state=tap] .cue-title, .tap-first .arena[data-state=good] .cue-title { color: #e2fa71; }
.tap-first .arena[data-state=hold], .tap-first .arena[data-state=bad] { border-color: #ff9b9b; }
.tap-first .arena[data-state=hold] .cue-title, .tap-first .arena[data-state=bad] .cue-title { color: #ffada5; }
.tap-first .arena[data-state=bad] .cue-title { font-size: clamp(1.8rem, 6vw, 3rem); }
.tap-first .center-panel { position: absolute; top: 50%; left: 50%; width: min(82%, 330px); transform: translate(-50%, -49%); text-align: center; display: grid; justify-items: center; gap: .85rem; }
.tap-first .center-panel h2 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.25; letter-spacing: -.045em; }
.tap-first .center-panel p { color: #bdc8ea; font-size: .85rem; }
.tap-first .center-panel > button { min-width: 11rem; }
.tap-first .reaction-mark { display: grid; place-items: center; height: 58px; width: 58px; border-radius: 16px; background: #e2fa71; color: #182843; font-size: 2.7rem; line-height: 1; margin-bottom: .2rem; }
.tap-first .center-panel .panel-footnote { font-size: .72rem; }
.tap-first .arena-bottom { position: absolute; bottom: 1.2rem; width: 100%; display: flex; justify-content: center; pointer-events: none; }
.tap-first .round-trail { display: flex; gap: .5rem; }
.tap-first .round-dot { width: 7px; height: 7px; border: 1px solid #6b81ab; border-radius: 50%; }
.tap-first .round-dot.current { background: #dce5ff; border-color: #dce5ff; }
.tap-first .round-dot.complete { background: #bdc8ea; border-color: #bdc8ea; }
.tap-first .round-dot.hit, .tap-first .round-dot.held { background: #d6f46b; border-color: #d6f46b; }
.tap-first .round-dot.early, .tap-first .round-dot.wrong, .tap-first .round-dot.miss { background: #ffada5; border-color: #ffada5; }
.tap-first .under-arena { display: flex; justify-content: space-between; gap: .75rem; font-size: .72rem; color: #bdc8ea; margin-top: .65rem; }
.tap-first .no1-panel { margin-top: .9rem; font-size: .85rem; }
.tap-first .no1-panel:has(.actions:empty) { padding-bottom: .8rem; }
.tap-first .no1-panel .actions { font-size: .82rem; }
.tap-first .result-panel { gap: .55rem; }
.tap-first .result-badge { color: #e2fa71; font-size: .7rem; font-weight: 750; letter-spacing: .07em; }
.tap-first .result-score { display: flex; align-items: baseline; justify-content: center; gap: .45rem; }
.tap-first .result-score strong { color: #f4f7ff; font-size: 3.9rem; letter-spacing: -.06em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tap-first .result-score span { font-size: .85rem; color: #bdc8ea; }
.tap-first .result-details { display: flex; justify-content: center; gap: 3rem; width: 100%; padding: .7rem 0; border-block: 1px solid #394d82; }
.tap-first .result-details div { display: grid; gap: .25rem; }
.tap-first .result-details span { color: #bdc8ea; font-size: .7rem; }
.tap-first .result-details strong { font-size: .95rem; }
.tap-first .result-description { font-size: .75rem !important; }
.tap-first .competition { gap: .8rem; }
.tap-first .competition h2 { font-size: 1.1rem; }
.tap-first .season-label, .tap-first .ranking-note { font-size: .76rem; }
.tap-first .ranking-links { display: grid; gap: .2rem; }
.tap-first .ranking-links a { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; color: #e8f2ff; border-bottom: 1px solid #394d82; text-decoration: none; font-size: .85rem; }
.tap-first .ranking-links a:hover { color: #e2fa71; }
.tap-first .account-note { display: grid; gap: .55rem; margin: .5rem 0; }
.tap-first .account-note h3 { font-size: .9rem; }
.tap-first .account-note p, .tap-first .account-note a { font-size: .78rem; }
.tap-first .challenge-banner { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid #455f8d; border-radius: .8rem; background: #172c51; padding: .65rem; margin-bottom: .6rem; font-size: .8rem; }
.tap-first .challenge-banner strong { color: #e2fa71; }
.tap-first .sound-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tap-first .tap-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(100% - 2rem, 980px); margin: .5rem auto 0; padding: 1rem 0 max(1.3rem, env(safe-area-inset-bottom)); color: #bdc8ea; font-size: .75rem; border-top: 1px solid #394d82; }
.tap-first .toast { position: fixed; z-index: 10; bottom: 1.5rem; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2rem); width: max-content; padding: .75rem 1rem; border: 1px solid #53669a; border-radius: .8rem; background: #192451; font-size: .85rem; }
.tap-first .tap-dialog { width: min(500px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid #53669a; border-radius: 1rem; padding: 2rem 1.5rem 1.5rem; background: #132548; color: #edf5ff; }
.tap-first .tap-dialog::backdrop { background: #040b20cc; }
.tap-first .tap-dialog h2 { margin: .6rem 2rem 1rem 0; }
.tap-first .tap-dialog ol { padding-left: 1.2rem; display: grid; gap: 1rem; }
.tap-first .tap-dialog p { color: #bdc8ea; font-size: .85rem; }
.tap-first .tap-dialog > button:last-child { margin-top: 1.2rem; width: 100%; }
.tap-first .close-dialog { position: absolute; top: .7rem; right: .7rem; min-width: 44px; padding: .4rem; }
@media (min-width: 780px) { .tap-first .play-column { grid-column: 1; } }
@media (max-width: 779px) { .tap-first .competition { margin-top: .4rem; padding: 1rem; border: 1px solid #394d82; border-radius: .9rem; background: #132548; } }
@media (max-width: 360px) { .tap-first .game-subtitle span { display: block; margin: .25rem 0 0; } .tap-first .arena { height: 430px; } .tap-first .under-arena { font-size: .66rem; } .tap-first .game-settings { gap: .3rem; } }
@media (prefers-reduced-motion: reduce) { .tap-first * { transition: none !important; } }
