 :root {
  --bg: #f4f6f9; --bg2: #f8fafc; --surface: #fff; --surface2: #edf2f7;
  --line: #e2e8f0; --text: #182539; --muted: #64748b;
  --gold: #a97717; --gold-dim: #a97717; --pink: #0f766e; --cyan: #0f766e;
  --purple: #6756b3; --red: #c2414b; --blue: #2866bf; --yellow: #d6a630; --green: #13856d; --danger: #b83b49;
  --shadow: 0 4px 20px rgba(24,37,57,.035); --radius: 16px;
  --font: 'Segoe UI', system-ui, sans-serif; --display: var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
h2 { font-size: 24px; } h3 { font-size: 17px; }
a { color: var(--cyan); text-underline-offset: 3px; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #329b95; outline-offset: 3px; }
.hidden { display:none !important; }
.brand { display:flex; gap:10px; align-items:center; font-size:17px; font-weight:700; letter-spacing:-.035em; }
.brand svg { width:28px; height:28px; }
.topbar { min-height:76px; padding:16px max(24px, calc((100vw - 1180px) / 2)); display:flex; justify-content:space-between; align-items:center; gap:16px; background:#fff; border-bottom:1px solid var(--line); }
.brand-context { font-size:12px; font-weight:500; color:var(--muted); margin-left:16px; padding-left:20px; border-left:1px solid var(--line); letter-spacing:0; }
.icon-btn { border:1px solid var(--line); border-radius:10px; min-width:42px; height:42px; background:#fff; color:var(--muted); display:grid; place-items:center; }
.icon-btn.active { background:#e5f3ef; color:var(--cyan); border-color:#acd5ce; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:46px; padding:11px 20px; border:1px solid transparent; border-radius:9px; font-size:14px; font-weight:600; text-decoration:none; background:var(--cyan); color:white; transition:background .15s, border-color .15s, transform .15s; line-height:1.35; }
.btn:hover { background:#115e59; }
.btn:active { transform:translateY(1px); }
.btn.gold { background:#0f766e; color:#fff; }
.btn.gold:hover { background:#115e59; }
.btn.cyan,.btn.ghost { background:#fff; color:var(--text); border-color:#d6dee8; }
.btn.cyan:hover,.btn.ghost:hover { background:#f1f5f9; border-color:#9baabd; }
.btn.danger { background:#fff; color:#b83b49; border-color:#efcdd2; }
.btn.danger:hover { background:#fff1f2; }
.btn:disabled { background:#e6eaf0; color:#8994a5; border-color:#e0e5ec; transform:none; }
.btn.wide { width:100%; }
.small { min-height:36px; padding:8px 12px; font-size:13px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); min-width:0; }
.field { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; min-width:0; }
.field label { font-size:13px; font-weight:600; color:#475569; }
.field input,.field select,.field textarea,.opt-in { width:100%; min-width:0; max-width:100%; border:1px solid #cfd8e3; border-radius:8px; background:#fff; color:var(--text); font-size:16px; padding:11px 13px; line-height:1.5; }
.field input:focus,.field select:focus,.field textarea:focus,.opt-in:focus { border-color:var(--cyan); outline:2px solid #d0eae5; outline-offset:1px; }
textarea { resize:vertical; }
.muted { color:var(--muted); font-weight:400; }
.stars { color:var(--gold); }
.badge { display:inline-flex; align-items:center; padding:4px 10px; border-radius:6px; background:var(--surface2); color:#475569; font-size:12px; font-weight:600; vertical-align:middle; }
.eyebrow { color:var(--cyan); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:10px; }
.pin { font-size:clamp(32px, 5vw, 54px); font-weight:700; letter-spacing:.1em; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap; overflow-wrap:normal; }
.timer-bar { height:6px; border-radius:6px; overflow:hidden; background:#e2e8f0; }
.timer-bar > span { display:block; width:100%; height:100%; background:var(--cyan); transform-origin:left; transition:transform .2s linear; }
.screen { display:none; }
.screen.active { display:block; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:50; padding:12px 20px; border-radius:10px; background:#182539; color:white; box-shadow:0 8px 30px #18253926; max-width:calc(100vw - 32px); }
.connection-status { position:sticky; top:0; z-index:20; padding:10px 20px; background:#fff3d5; color:#795315; text-align:center; font-size:13px; }
.connection-status[hidden] { display:none; }
.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.vs { color:var(--muted); font-size:12px; font-weight:650; letter-spacing:.08em; }
table.standings { border-collapse:collapse; width:100%; font-size:14px; }
table.standings th { color:var(--muted); text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.06em; padding:14px 12px; font-weight:600; white-space:nowrap; }
table.standings td { border-top:1px solid var(--line); padding:14px 12px; }
table.standings tr.me { background:#eaf5f1; }
table.standings tr.top td:first-child { color:var(--cyan); font-weight:700; }
.footer-note { padding:24px; text-align:center; color:var(--muted); font-size:12px; }
@media(max-width:600px) { .topbar { min-height:64px; padding:12px 18px; } .brand-context { display:none; } .card { padding:20px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
