/* Page styles: live area. Owned by its views; tokens and shared components live in ../app.css. */
/* Season (/seasons, /seasons/:id), live scorer (/live/:id/score), spectator (/live/:id) and the
   start form (/live/new). Values from Season, LiveScorer and LiveSpectator artboards.
   Prefixes: .sn- (season), .lv- (live). */

/* ================= Season ================= */
.sn-head { padding: 10px var(--gutter) 24px; display: flex; flex-direction: column; gap: 16px; }
.sn-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sn-title-row .page-title { min-width: 0; overflow-wrap: anywhere; }
.sn-pick { display: flex; align-items: center; gap: 6px; flex: none; font-size: 13px; color: var(--muted); }
.sn-select { height: 44px; max-width: 150px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); padding: 0 10px; font: 600 14px var(--font-body); }
.sn-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sn-count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: rgba(12, 2, 3, 0.45); border: 1px solid var(--border-strong); }
.sn-cell { padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sn-cell + .sn-cell { border-left: 1px solid var(--border-strong); }
.sn-cell-v { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.sn-cell-l { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }

.sn-body { padding: 4px var(--gutter) 40px; display: flex; flex-direction: column; gap: 26px; }
.sn-section { display: flex; flex-direction: column; gap: 10px; }
.sn-section.tight { gap: 8px; }
.sn-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sn-note { font-size: 12px; color: var(--subtle); }
.sn-sub-h { margin: 6px 0 2px; }

.sn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sn-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); text-decoration: none; color: var(--ink); min-width: 0; }
a.sn-card:hover { color: var(--ink); border-color: var(--muted); }
.sn-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.sn-card-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.sn-card-name.dim { color: var(--muted); }
.sn-card-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sn-card-prize { font-size: 12px; font-weight: 600; color: var(--gold); }

.sn-rules { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--soft-ink); }
.sn-rules strong { color: var(--ink); }

.sn-hof-link { display: block; text-decoration: none; color: var(--ink); border-radius: 16px; }
.sn-hof-link:hover { color: var(--ink); }
.sn-hof-link:hover .sn-hof-card { border-color: var(--gold); }
.sn-hof-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(210, 168, 111, 0.16), rgba(210, 168, 111, 0.04)); border: 1px solid rgba(210, 168, 111, 0.45); color: var(--ink); }
.sn-hof-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.sn-hof-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.sn-hof-line { font-size: 14px; color: var(--soft-ink); }
.sn-ink { color: var(--ink); font-weight: 600; }
.sn-pending { color: var(--subtle); }
.sn-hof-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.sn-hof-row:hover { color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.sn-hof-row-main { min-width: 0; }
.sn-hof-row-meta { flex: none; color: var(--subtle); }
.sn-empty { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.sn-standings { list-style: none; margin: 0; padding: 0; }
.sn-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
.sn-namecol { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sn-crown { font-size: 12px; font-weight: 700; color: var(--gold); }

.sn-admin { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border-strong); }
.sn-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sn-admin-btn { min-height: 46px; padding: 6px 10px; border-radius: 10px; background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); font: 600 14px var(--font-body); }
.sn-admin-btn:hover { border-color: var(--muted); }
.sn-admin-btn.solid { border: 0; background: var(--ink); color: var(--bg); font-weight: 700; }
.sn-admin-btn.solid:hover { filter: brightness(0.94); }

/* ================= Live: shared ================= */
.lv-scorer [hidden], .lv-watch [hidden], .lv-new [hidden] { display: none !important; }
.lv-dash { color: var(--faint); }
.lv-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-side.right { align-items: flex-end; text-align: right; }
.lv-side-sub { font-size: 12px; color: var(--subtle); min-height: 16px; }
.lv-side-sub.on { color: var(--gold); font-weight: 600; }
.lv-self-start { align-self: flex-start; }
.lv-dot { width: 20px; height: 20px; border-radius: 10px; border: 1px solid #6E5753; box-sizing: border-box; flex: none; }

/* ================= Live scorer ================= */
.screen.lv-scorer { background: #140304; display: flex; flex-direction: column; }
.lv-offline { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 12px; background: var(--gold); color: var(--bg); font-size: 13px; font-weight: 700; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 0; }
.lv-top-spacer { width: 44px; flex: none; }
.lv-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lv-score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px var(--gutter) 14px; }
.lv-side-name { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lv-side-name.dim { color: var(--muted); }
.lv-score { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 0.85; font-variant-numeric: tabular-nums; }
.lv-score .lv-dash { font-size: 36px; }
.lv-score .dim, .lv-big-score .dim { color: var(--subtle); }

.lv-table { margin: 0 var(--gutter); padding: 14px 16px; border-radius: 18px; background: radial-gradient(120% 120% at 0% 0%, #4A1117 0%, #2A0D10 70%); border: 1px solid var(--border-alert); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lv-minw { min-width: 0; }
.lv-gap2 { gap: 2px; }
.lv-table-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lv-shooter { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.lv-next { font-size: 12px; color: var(--muted); }
.lv-table-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.lv-balls-label { font-size: 12px; color: var(--muted); }
.lv-balls { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 136px; }
.lv-balls:empty { display: none; }
.lv-ball { width: 24px; height: 24px; border-radius: 12px; background: var(--ball); display: flex; align-items: center; justify-content: center; box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.35); }
.lv-ball.stripe { background: linear-gradient(#FFFFFF 0 22%, var(--ball) 22% 78%, #FFFFFF 78%); }
.lv-ball-n { width: 12px; height: 12px; border-radius: 6px; background: #FFFFFF; color: #111111; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.lv-alert { padding: 14px var(--gutter) 0; }
.lv-pad { flex: 1; padding: 14px var(--gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 10px; }
.lv-shot { min-width: 0; height: 72px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--ink); font: 700 22px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.lv-shot:active:not(:disabled) { transform: scale(0.98); }
.lv-shot:disabled { opacity: 0.45; }
.lv-shot.made { grid-column: span 2; height: 96px; border: 0; border-radius: 20px; background: var(--ink); color: var(--bg); flex-direction: row; gap: 12px; font-size: 28px; }
.lv-shot.foul { grid-column: span 2; height: 64px; background: transparent; border-color: var(--gold); flex-direction: row; gap: 10px; font-size: 20px; }
.lv-shot.win8 { border: 0; background: var(--red); color: #FFFFFF; }
.lv-shot.lose8 { background: transparent; border: 1.5px dashed #7A4A4E; font-size: 18px; letter-spacing: 0.04em; }
.lv-shot-sub { font: 500 12px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.lv-shot.foul .lv-shot-sub { font-size: 13px; }
.lv-shot.win8 .lv-shot-sub { color: #FFFFFF; opacity: 0.85; }

.lv-finish { flex: 1; padding: 14px var(--gutter) 16px; display: flex; flex-direction: column; gap: 12px; }
.lv-summary { padding: 16px; border-radius: 18px; background: radial-gradient(120% 120% at 0% 0%, #4A1117 0%, #2A0D10 70%); border: 1px solid var(--border-alert); display: flex; flex-direction: column; gap: 8px; }
.lv-summary-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; }
.lv-stats { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lv-stats th, .lv-stats td { padding: 8px 0; border-top: 1px solid var(--line); text-align: right; }
.lv-stats thead th { border-top: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.lv-stats th:first-child { text-align: left; }
.lv-stats tbody th { font-weight: 600; }
.lv-sync-note { margin: 0; }

.lv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) 26px; border-top: 1px solid var(--line); }
.lv-last { font-size: 13px; color: var(--muted); min-width: 0; }
.lv-last strong { color: var(--ink); }
.lv-unsent { color: var(--gold); }
.lv-undo { flex: none; height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 8px; border-radius: 14px; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); font: 700 15px var(--font-body); }
.lv-undo:disabled { border-color: var(--border-strong); color: var(--disabled-ink); }
.lv-closed { padding-top: 4px; }
.lv-closed .lv-top { padding: 0; margin: 0 -10px; }

/* ================= Live spectator ================= */
.lv-head { padding: 10px var(--gutter) 22px; display: flex; flex-direction: column; gap: 18px; }
.lv-title { display: flex; align-items: center; gap: 12px; }
.lv-live-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--live-dot); box-shadow: 0 0 0 5px rgba(255, 90, 78, 0.22); flex: none; }
.lv-subline { font-size: 13px; color: var(--muted); }
.lv-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.lv-big-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.lv-big-name.dim { color: var(--muted); }
.lv-big-score { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 0.82; font-variant-numeric: tabular-nums; }
.lv-big-score .lv-dash { font-size: 40px; }
.lv-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; padding: 6px 16px; border-radius: 14px; background: rgba(12, 2, 3, 0.45); border: 1px solid var(--border-strong); font-size: 15px; text-align: center; }
.lv-strip-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lv-latest { padding: 4px var(--gutter) 0; }
.lv-latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lv-updated { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.lv-shots { list-style: none; margin: 10px 0 0; padding: 0; }
.lv-shot-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); }
.lv-shot-text { font-size: 15px; min-width: 0; }
.lv-shot-meta { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.lv-empty { margin: 10px 0 0; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lv-watch-foot { padding: 28px var(--gutter) 28px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.lv-foot-text { font-size: 12px; color: var(--subtle); }
.lv-foot-action:empty { display: none; }

/* ================= Live start form ================= */
.lv-select { font-size: 17px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.lv-select:disabled { opacity: 0.6; }
.lv-race { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-step { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--ink); font: 700 26px var(--font-display); display: flex; align-items: center; justify-content: center; }
.lv-step:disabled { color: var(--disabled-ink-2); border-color: var(--line); }
.lv-race-val { min-width: 44px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-origin { min-height: 48px; }
