/* =============================================================
   ParlayDesk — a game's details on the public NHL game page
   (2026-11-10, BETA). The markup is /gc-detail.js, the app's own Game
   Center renderer; its styles are the app's /apps/gameCenter.css (loaded
   alongside). This file only gives them the tokens the app sets on
   #gameView, frames them in the game page's card language and handles the
   loading / message states. Signed-in visitors only: the region stays
   hidden otherwise.
   ============================================================= */

.pp-gcd {
  --gc-surface: #0b1221; --gc-surface-2: #0f182b; --gc-row-alt: #0d1525; --gc-row-hover: #111c31;
  --gc-line: rgba(148,163,184,.24); --gc-line-soft: rgba(148,163,184,.12);
  --gc-card: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  --gc-fav: #fbbf24;
  margin-top: 18px; min-width: 0;
  padding: 18px 20px 20px; box-sizing: border-box;
  border: 1px solid var(--border, rgba(148,163,184,.18)); border-radius: 14px;
  background: var(--pp-surface, #0b1221);
}
.pp-gcd[hidden] { display: none; }
.pp-gcd .pd-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pp-gcd-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  margin: 0 0 14px;
}
.pp-gcd-title { margin: 0; font-size: 18px; font-weight: 800; color: #f8fafc; letter-spacing: -.005em; }
.pp-gcd-meta { margin: 0; color: var(--muted, #94a3b8); font-size: 13px; }
.pp-gcd-meta a { color: #93c5fd; font-weight: 700; text-decoration: none; }
/* Hover = colour change only (owner, 2026-11-15); focus keeps a ring. */
.pp-gcd-meta a { transition: color 150ms; border-radius: 3px; }
.pp-gcd-meta a:hover, .pp-gcd-meta a:focus-visible { color: #bfdbfe; }
.pp-gcd-meta a:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.pp-gcd .gc-columns { padding-bottom: 2px; }
@media (min-width: 1000px) {
  .pp-gcd .gc-columns.has-aside { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; gap: 24px; }
}
/* In a game page's main column (2026-11-22, pageKit.gameMain): the column's
   gap spaces it, and scoring + box score stack as they do on phones — the
   main column is too narrow for the side-by-side layout above. */
.pp-col > .pp-gcd { margin-top: 0; }
@media (min-width: 1000px) {
  .pp-col > .pp-gcd .gc-columns.has-aside { display: block; }
}
.pp-gcd-msg { margin: 0; color: var(--muted, #94a3b8); font-size: 14px; }
.pp-gcd-retry {
  margin-left: 8px; padding: 6px 12px; border: 1px solid rgba(96,165,250,.4); border-radius: 9px;
  background: rgba(59,130,246,.1); color: #dbeafe; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.pp-gcd-retry:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.pp-gcd-sk { height: 120px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.06), rgba(255,255,255,.03)); }
@media (max-width: 640px) {
  .pp-gcd { margin-top: 14px; padding: 14px 12px 16px; border-radius: 13px; }
}

/* ── Team Stats (NHL, 2026-11-10) ────────────────────────────────
   Directly under the scoreboard (#ppGcStats), signed-in visitors only,
   filled from the authenticated by-slug response (team_stats). Away on
   the left, home on the right: the two values, the stat's name between
   them and a thin proportional bar in each team's edge colour
   (--ts-away / --ts-home, from team-badges.js tickColor). The leading
   side's value and bar read stronger; level stats read the same. Rows sit
   on a darker inner panel (surface level 3); two columns on wide screens. */
.pp-gcts { margin-top: 16px; padding: 14px 18px 16px; }
.pp-gcts[hidden] { display: none; }
.gc-ts { min-width: 0; }
.gc-ts-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin: 0 0 12px;
}
.gc-ts-badge { --tb-h: 26px; --tb-w: 48px; }
.gc-ts-title-wrap { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 0; text-align: center; }
.gc-ts-title { margin: 0; font-size: 15px; font-weight: 800; color: #f1f5f9; letter-spacing: -.005em; }
.gc-ts-meta { color: var(--muted, #94a3b8); font-size: 12px; font-weight: 600; }
.gc-ts-list {
  list-style: none; margin: 0; padding: 4px 14px;
  border: 1px solid rgba(148,163,184,.14); border-radius: 12px; background: rgba(2,6,23,.42);
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px;
}
.gc-ts-row {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 3.2em; grid-template-areas: 'a label h' 'bar bar bar';
  align-items: center; row-gap: 6px; padding: 10px 0 11px;
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.gc-ts-row:last-child { border-bottom: 0; }
.gc-ts-v { font-size: 17px; font-weight: 700; color: #a7b3c4; font-variant-numeric: tabular-nums; line-height: 1.1; }
.gc-ts-v--away { grid-area: a; text-align: left; }
.gc-ts-v--home { grid-area: h; text-align: right; }
.gc-ts-v.is-lead { color: #f8fafc; font-weight: 800; }
.gc-ts-label { grid-area: label; text-align: center; color: #cbd5e1; font-size: 13px; font-weight: 600; min-width: 0; }
.gc-ts-bar { grid-area: bar; display: flex; gap: 3px; height: 5px; }
.gc-ts-bar i { display: block; height: 100%; min-width: 3px; border-radius: 999px; opacity: .45; }
.gc-ts-bar--away { background: var(--ts-away, #60a5fa); }
.gc-ts-bar--home { background: var(--ts-home, #94a3b8); }
.gc-ts-row:has(.gc-ts-v--away.is-lead) .gc-ts-bar--away,
.gc-ts-row:has(.gc-ts-v--home.is-lead) .gc-ts-bar--home { opacity: 1; }
.gc-ts-row:not(:has(.is-lead)) .gc-ts-bar i { opacity: .75; }
.gc-ts-row.is-empty .gc-ts-bar i { opacity: .2; }
/* A final game's row still awaiting its final figure (2026-11-12). */
.gc-ts-row.is-provisional .gc-ts-v { opacity: .7; }
.gc-ts .gc-box-note { margin: 10px 2px 0; }
@media (min-width: 900px) {
  /* Two stats per line; the dividers run between rows of the grid. */
  .gc-ts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-ts-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .pp-gcts { margin-top: 12px; padding: 12px 12px 14px; }
  .gc-ts-head { gap: 8px; margin-bottom: 10px; }
  .gc-ts-badge { --tb-h: 24px; --tb-w: 44px; }
  .gc-ts-list { padding: 2px 12px; }
  .gc-ts-row { padding: 9px 0 10px; }
  .gc-ts-v { font-size: 16px; }
  .gc-ts-label { font-size: 12.5px; }
}
@media (forced-colors: active) {
  .gc-ts-bar i { forced-color-adjust: none; opacity: 1; }
}

/* NFL, live (unified four-sport pages, 2026-11-11): the ball line under the
   Team Stats heading — the team with the ball, down & distance, the spot. */
.gc-ts-sit { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted, #94a3b8); }
.gc-ts-sit.is-redzone { color: #fca5a5; }
.gc-ts-sit.is-redzone .gc-ball { background: #dc2626; }
/* "Delayed" / "Updating" (2026-11-12): the same quiet meta, one step dimmer. */
.gc-ts-meta.is-muted { color: #fbbf24; opacity: .85; }

/* ── Locked previews (2026-11-16, Public Pages 2.0 acceptance) ──────
   A visitor who isn't signed in keeps Team stats and the box score in
   their own places, at their own size (#ppGcStatsLocked, #ppGcDetailLocked,
   gc-detail.js lockedTeamStatsHtml / lockedBoxHtml). Headings, team tabs,
   stat names and column headers stay readable; only the skeleton values
   are veiled, and a lock card sits centred over them. The skeletons are
   empty spans: there is no value under the veil to reveal. */
.gc-sk {
  display: inline-block; vertical-align: middle;
  width: var(--sk-w, 100%); height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(148,163,184,.22), rgba(148,163,184,.34), rgba(148,163,184,.22));
}
.gc-sk--num { width: 34px; height: 13px; }
.gc-sk--cell { width: 18px; height: 9px; opacity: .8; }
.gc-sk--name { max-width: 150px; height: 10px; }
.gc-sk--sub { display: block; max-width: 110px; height: 8px; margin-top: 7px; opacity: .7; }
.gc-sk--badge { width: 40px; height: 22px; border-radius: 6px; flex: none; }
.gc-lock-body { position: relative; }
.gc-lock-veil { filter: blur(1.6px); opacity: .55; user-select: none; pointer-events: none; }
.gc-lock-over {
  /* Above the box tables' sticky player column (z-index 1–2, gameCenter.css). */
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: radial-gradient(ellipse at center, rgba(11,18,33,.78) 0%, rgba(11,18,33,.5) 55%, rgba(11,18,33,.12) 100%);
}
.gc-lock-card {
  max-width: 380px; padding: 18px 20px; box-sizing: border-box;
  border: 1px solid rgba(96,165,250,.28); border-radius: 14px;
  background: rgba(13,21,37,.94);
  box-shadow: 0 12px 32px rgba(2,6,23,.55);
  text-align: center;
}
.gc-lock-ic {
  /* Its own centred row (2026-11-18): as inline-flex it shared a line with
     the "Free account" badge and touched it. */
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 999px;
  background: rgba(59,130,246,.14); color: #93c5fd;
}
.gc-lock-ic svg { width: 18px; height: 18px; }
.gc-lock-title { margin: 0; color: #f8fafc; font-size: 16px; font-weight: 800; letter-spacing: -.005em; }
.gc-lock-copy { margin: 6px 0 0; color: #cbd5e1; font-size: 13.5px; line-height: 1.45; }
.gc-lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.gc-lock-btn { min-height: 38px; text-decoration: none; }
/* Team stats: a compact card on one line where it fits. */
.gc-lock-over--compact { padding: 6px; }
.gc-lock-over--compact .gc-lock-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: 560px; padding: 12px 16px; }
.gc-lock-over--compact .gc-lock-ic { width: 28px; height: 28px; margin: 0; }
.gc-lock-over--compact .gc-lock-ic svg { width: 15px; height: 15px; }
.gc-lock-over--compact .gc-lock-title { font-size: 14.5px; }
.gc-lock-over--compact .gc-lock-actions { margin: 0; }
.gc-lock-over--compact .gc-lock-btn { min-height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13.5px; }
.gc-ts-meta--lock { color: #93c5fd; }
/* Box: the tabs read as the two teams, not as controls. */
.gc-tabs--locked .gc-tab { cursor: default; }
.gc-tabs--locked .gc-tab:hover { background: none; color: inherit; }
.gc-tabs--locked .gc-tab.active:hover { background: rgba(59,130,246,.16); color: #fff; }
.gc-box--locked .gc-table td { text-align: center; }
.gc-lock-body--box { min-height: 260px; }
.gc-lock-body--box .gc-table-wrap { overflow: hidden; }
.gc-sk-goals { margin: 0; padding: 0; list-style: none; }
.gc-sk-goal { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--gc-line-soft, rgba(148,163,184,.12)); }
.gc-sk-goal:last-child { border-bottom: 0; }
.gc-sk-goal-text { flex: 1 1 auto; min-width: 0; }
/* A game that hasn't been played: the box score's own empty state, then
   one quiet line about accounts. */
.gc-lock-note { margin: 12px 0 0; color: var(--muted, #94a3b8); font-size: 13px; }
/* Box score signup (2026-11-18): one card for every sport and state. */
.gc-lock-badge { display: inline-block; margin: 0 0 8px; padding: 2px 9px; border: 1px solid rgba(34, 197, 94, .45); border-radius: 999px; color: #86efac; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gc-lock-state { margin: 8px 0 0; color: var(--muted, #94a3b8); font-size: 12.5px; }
.gc-lock-over--inline { position: static; inset: auto; display: block; padding: 0; margin: 14px 0 0; background: none; }
.gc-lock-over--inline .gc-lock-card { margin: 0 auto; }
.gc-lock-note a { color: #93c5fd; font-weight: 700; text-decoration: none; border-radius: 3px; transition: color 150ms; }
.gc-lock-note a:hover, .gc-lock-note a:focus-visible { color: #bfdbfe; }
.gc-lock-note a:focus-visible, .gc-lock-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
@media (max-width: 640px) {
  .gc-lock-card { padding: 16px 14px; }
  .gc-lock-body--box { min-height: 300px; }
  .gc-lock-over--compact .gc-lock-card { padding: 10px 12px; }
  .gc-ts--locked .gc-ts-list { min-height: 118px; }
  /* One action on a phone: the card fits over two or three stat rows. */
  .gc-lock-over--compact .gc-lock-btn + .gc-lock-btn { display: none; }
}
@media (forced-colors: active) {
  .gc-lock-veil { filter: none; opacity: .4; }
  .gc-lock-card { border: 1px solid CanvasText; }
}

/* ── Pregame placeholders (2026-11-19) ────────────────────────────────
   Before the game, Team stats and the box score keep their places for
   every visitor (#ppGcStatsPre / #ppGcDetailPre, gc-detail.js
   pendingTeamStatsHtml / pendingBoxHtml): the real stat and column names
   over muted dashes — never a zero, never a skeleton that reads as
   "loading". The real sections replace them when there is data. */
.gc-ts-meta.is-pending { color: var(--muted, #94a3b8); }
.gc-ts--pending .gc-ts-v { color: var(--muted, #94a3b8); opacity: .6; font-weight: 600; }
.gc-ts--pending .gc-ts-row.is-empty .gc-ts-bar i { opacity: .14; }
.gc-pre-note { margin: 10px 0 0; text-align: center; }
.gc-ts--pending .gc-pre-note { margin-top: 8px; }
.gc-box--pending .gc-pre-note { padding: 4px 0 12px; text-align: left; }
.gc-box--pending .gc-table td,
.gc-box--pending .gc-player-name { color: var(--muted, #94a3b8); opacity: .55; }
.gc-box--pending .gc-table td { text-align: center; }
.gc-box--pending .gc-table-wrap { overflow: hidden; }
.gc-scoring--pending .gc-empty { padding-top: 6px; }
