﻿@font-face { font-family: Inter; src: url(assets/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(assets/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
* { box-sizing: border-box; }
:root { color-scheme: light; --cream: #fff8ed; --ink: #173b31; --muted: #52685d; --coral: #ff6b35; --cobalt: #2455d6; --line: #dcd6c6; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f4ebdb; color: var(--ink); font-family: Inter, system-ui, sans-serif; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: fixed; inset: 12px 70px auto 20px; max-width: 760px; margin: auto; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.score-chip { display: flex; align-items: center; gap: 12px; min-width: 90px; border-radius: 16px; padding: 5px 12px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.score-chip strong { font: 700 32px/1.15 "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.player-one { background: #ffe2cd; color: #7d2b11; }.player-two { background: #e2e9ff; color: #183e9d; }
.match-heading { display: grid; gap: 3px; text-align: center; }.wordmark { font: 700 20px/1.1 "Space Grotesk", Inter, sans-serif; letter-spacing: -.05em; }
#match-status { font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.icon-btn { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 42px; height: 42px; border: 1px solid #c8c1ae; border-radius: 14px; background: var(--cream); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 0 #d5cbb7; }
.pause-glyph { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.coach { position: fixed; bottom: max(7px, env(safe-area-inset-bottom)); inset-inline: 10px; margin: 0; text-align: center; color: var(--ink); font-size: clamp(11px, 2.6vmin, 14px); font-weight: 600; line-height: 1.4; pointer-events: none; }
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #102e27b8; overflow-y: auto; text-align: center; }
#start-screen { background: linear-gradient(135deg, #f9f1e6ed, #f0e6d1f2); }
.card { width: min(490px, 100%); border: 1px solid #fffdf7; border-radius: 28px; background: var(--cream); box-shadow: 0 24px 70px #233c2b26, 0 5px 0 #d6cbb6; overflow: hidden; flex-shrink: 0; }
.cover-art { height: clamp(90px, 25vh, 190px); background: #e1d0a9 url(assets/club-cover.webp) center 30%/cover; border-bottom: 1px solid var(--line); }
.card-content { display: grid; justify-items: center; gap: 13px; padding: 22px 28px 24px; }
.overlay h1, .overlay h2 { margin: 0; font: 700 clamp(30px, 7.4vmin, 48px)/1 "Space Grotesk", Inter, sans-serif; letter-spacing: -.06em; }.title-dot { color: #d84b18; }
.overlay p { margin: 0; font-size: 14px; line-height: 1.45; }.overlay .eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }.goal { color: var(--muted); }.goal strong { color: var(--ink); }
.difficulty { border: 0; padding: 0; margin: 0; width: 100%; }.difficulty legend { margin: 0 auto 7px; font-size: 11px; font-weight: 600; color: var(--muted); }
.difficulty-options { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #eae8db; }.difficulty label { position: relative; flex: 1; cursor: pointer; }
.difficulty input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }.difficulty span { display: block; padding: 9px 4px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.difficulty input:checked + span { background: var(--ink); color: var(--cream); box-shadow: 0 2px 4px #173b3126; }.difficulty input:focus-visible + span, button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.mode-buttons { width: 100%; display: grid; gap: 9px; }.btn { min-height: 46px; padding: 11px 18px; border: 1px solid #d54b16; border-radius: 14px; color: #172f25; background: var(--coral); cursor: pointer; font-size: 15px; font-weight: 800; box-shadow: 0 4px 0 #cb4819; transition: transform .12s ease, box-shadow .12s ease; }.btn span { margin-left: 10px; }.btn:hover { filter: brightness(1.03); }.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #cb4819; }
.btn-alt { color: var(--ink); background: #f5f1e5; border-color: var(--line); box-shadow: 0 3px 0 #ded6c4; }.overlay .hint { font-size: 11px; color: var(--muted); max-width: 38ch; }.overlay .best-line, .overlay .best { color: var(--muted); font-size: 11px; }.overlay .best-line strong { color: var(--ink); }
.result-card { padding: 32px 24px; display: grid; justify-items: center; gap: 18px; }.overlay .result { font: 700 28px/1.15 "Space Grotesk", Inter, sans-serif; }.overlay .rally-stat { font-size: 13px; color: var(--muted); }
.score-pop { animation: score-pop .25s ease-out; }@keyframes score-pop { 50% { transform: scale(1.12); } }
.hidden { display: none !important; }.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 450px) { .hud { left: 12px; right: 61px; gap: 6px; }.score-chip { min-width: 65px; gap: 7px; padding: 6px 8px; }.score-chip strong { font-size: 28px; }.score-chip span { font-size: 8px; }.wordmark { font-size: 17px; }#match-status { font-size: 8px; }.icon-btn { right: 12px; }.card-content { padding: 17px 20px 19px; gap: 11px; } }
@media (max-height: 620px) { .cover-art { height: 90px; }.card-content { padding-block: 16px; gap: 10px; }.overlay h1 { font-size: 34px; }.overlay .goal { font-size: 12px; }.difficulty span { padding-block: 7px; }.btn { min-height: 42px; padding-block: 9px; font-size: 13px; } }
@media (max-height: 460px) and (min-width: 560px) { .start-card { display: grid; grid-template-columns: .8fr 1.2fr; width: min(700px, 100%); }.cover-art { height: 100%; border: 0; }.card-content { padding: 16px; gap: 9px; }.overlay { padding: 10px; }.result-card { padding: 20px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.mode-buttons { grid-template-columns: 1fr 1fr; }
.overlay { justify-content: safe center; }
@media (max-height: 520px) { .cover-art { height: 56px; }.card-content { padding: 12px 16px; gap: 8px; }.overlay h1 { font-size: 28px; }.overlay .best-line { display: none; }.overlay { padding: 8px; }.start-card .btn { padding-inline: 8px; }.difficulty span { padding-block: 7px; } }
