/* Four in a Row identity: "arcade lacquer". Deep navy, glossy royal-blue frame, red and gold discs, Fredoka + Nunito Sans. */
:root {
  --bg: #0b1a3a; --surface: #14275a; --surface-2: #1c3470; --ink: #f4f6fb; --ink-2: #9fb0d6; --line: #27407f;
  --accent: #ffd23f; --accent-ink: #2a1d00; --ok: #86efac; --warn: #ffd23f; --bad: #fda4af; --info: #7db4ff;
  --frame: #1d4ed8; --frame-2: #1e40af; --frame-3: #172f8f; --hole: #08132b; --lane: #0d2050;
  --p0: #ef4444; --p0-2: #991b1b; --p1: #ffd23f; --p1-2: #b45309;
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif; --font-ui: "Nunito Sans", system-ui, sans-serif;
}
:root[data-theme="light"] { --bg: #dbe7fb; --surface: #ffffff; --surface-2: #e4ecfb; --ink: #0b1a3a; --ink-2: #4a5d88; --line: #b9c9ea; --accent: #d97706; --accent-ink: #fff; --hole: #0f2454; --lane: #c7d8f6; --warn: #d97706; }
:root[data-colorblind="1"] { --p1: #56b4e9; --p1-2: #0e5f8a; }
:root[data-contrast="1"] { --hole: #000; --ink-2: #c7d3ee; }
body { background: radial-gradient(ellipse at 50% -10%, #17337a 0%, var(--bg) 55%), var(--bg); }
:root[data-theme="light"] body { background: radial-gradient(ellipse at 50% -10%, #ffffff 0%, var(--bg) 60%), var(--bg); }
.logo { display: flex; justify-content: center; margin-bottom: -4px; } .logo canvas { width: 240px; height: 96px; }
.title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 12.5vw, 4.6rem); letter-spacing: .01em; color: var(--accent); text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 26px color-mix(in oklab, var(--accent) 45%, transparent); }
.tagline { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .02em; }
.modes { grid-template-columns: 1fr 1fr; }
.mode b { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; }
.play .stage-canvas { border-radius: 14px; }
.play .stage { padding: 4px 6px; }
/* series pill: two disc dots */
.hud-pill .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0, transparent 45%), var(--pc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.hud-pill .dot-0 { --pc: var(--p0); } .hud-pill .dot-1 { --pc: var(--p1); } .hud-pill .sep { color: var(--ink-2); padding: 0 2px; }
/* seats: the avatar is a glossy disc */
.seat[data-mark="Red"], .seat-row[data-seat="0"] { --pc: var(--p0); } .seat[data-mark="Gold"], .seat-row[data-seat="1"] { --pc: var(--p1); }
.seat .avatar { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75) 0, rgba(255,255,255,.15) 30%, transparent 48%), var(--pc); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28), inset 0 0 0 2px rgba(0,0,0,.12); color: transparent; }
.seat .avatar::after { content: ""; width: 55%; height: 55%; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.25); }
.seat .who b { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; font-size: .95rem; }
.seat-row .swatch { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7) 0, transparent 45%), var(--pc); }
.seat-row .seat-name { font-family: var(--font-display); font-weight: 600; }
/* handover */
.overlay h2 { font-family: var(--font-display); text-transform: none; font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.4rem); color: var(--pc, var(--ink)); }
.overlay p { color: var(--ink-2); }
.handover-disc { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8) 0, rgba(255,255,255,.15) 32%, transparent 50%), var(--pc, var(--accent)); box-shadow: inset 0 -6px 0 rgba(0,0,0,.28), inset 0 0 0 4px rgba(0,0,0,.12), 0 10px 30px rgba(0,0,0,.45); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
:root[data-motion="reduced"] .handover-disc { animation: none; }
.result-verdict { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); }
.best-line { gap: 14px; }
.cta { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; }
@container screen (min-width: 640px) { .board-home .modes { grid-template-columns: 1fr 1fr; } }
