/* Live scoring: the public board (hero, slider, team page) and the
   scorekeeper panel. Broadcast-dark like the hero, big enough for a thumb. */

/* ---- Public board ---- */
.rt-lb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px 12px;
  border-radius: 16px;
  color: #fff;
  background: radial-gradient(closest-side, rgba(8, 8, 10, 0.78), rgba(8, 8, 10, 0.5) 70%, transparent 100%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.rt-lb-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-on-primary, #fff);
  background: var(--rt-primary, #ed1c24);
  transform: skewX(-10deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.rt-lb.is-final .rt-lb-tag { background: #2a2a2e; color: #fff; }
.rt-lb-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: rt-lb-pulse 1.4s ease-out infinite;
}
@keyframes rt-lb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
.rt-lb-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  width: 100%;
}
.rt-lb-team { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.rt-lb-logo { height: clamp(56px, 9vw, 96px); display: flex; align-items: center; }
.rt-lb-helmet { height: 100%; width: auto; max-width: 140px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)); }
.rt-lb-team--right .rt-lb-helmet { transform: scaleX(-1); }
.rt-lb-team--right .rt-lb-helmet--flip { transform: none; }
.rt-lb-team--left .rt-lb-helmet--flip { transform: scaleX(-1); }
.rt-lb-name {
  font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif);
  font-weight: var(--rt-font-display-weight, 400);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.rt-lb-side { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rt-lb-mid { display: flex; align-items: center; gap: clamp(8px, 1.8vw, 20px); }
.rt-lb-score {
  font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif);
  font-weight: var(--rt-font-display-weight, 400);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1;
  min-width: 1.2em;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 42%, #e3e6ea 78%, #c3c7cd);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.9));
  font-variant-numeric: tabular-nums;
}
.rt-lb-dash { width: 14px; height: 4px; background: var(--rt-primary-bright, #ff5157); border-radius: 2px; }
.rt-lb-period {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rt-primary-bright, #ff5157);
}
.rt-lb-note { color: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; text-transform: none; font-weight: 600; }
.rt-lb--compact { padding: 8px 10px; gap: 2px; background: none; text-shadow: none; }
.rt-lb--compact .rt-lb-logo { height: 40px; }
.rt-lb--compact .rt-lb-score { font-size: 2.2rem; }
.rt-lb--compact .rt-lb-name { font-size: 0.9rem; }

/* ---- Scorekeeper panel page ---- */
.rt-live-panel-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #131316, #1d1a1b 70%, #17151a);
  color: #fff;
  font-family: var(--rt-font, "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif);
  -webkit-tap-highlight-color: transparent;
  /* Scoring is fast repeated tapping. Without this the browser reads two quick
     taps as double-tap-to-zoom and the keeper loses the board mid-drive. */
  touch-action: manipulation;
}
.rt-live-panel { max-width: 560px; margin: 0 auto; padding: 18px 14px 40px; }
.rt-live-panel--denied { text-align: center; padding-top: 80px; }
.rt-live-panel-head { text-align: center; margin-bottom: 14px; }
.rt-live-panel-kicker, .rt-live-panel-date { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rt-live-panel-head h1 {
  margin: 4px 0;
  font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif);
  font-weight: var(--rt-font-display-weight, 400);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.rt-live-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rt-live-team {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rt-live-team--us { border-color: var(--rt-primary, #ed1c24); box-shadow: 0 0 0 1px var(--rt-primary, #ed1c24) inset; }
.rt-live-team-side { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.rt-live-team-logo { height: 64px; display: flex; align-items: center; }
.rt-live-helmet { height: 100%; width: auto; max-width: 120px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }
.rt-live-team--right .rt-live-helmet { transform: scaleX(-1); }
.rt-live-team-name {
  font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif);
  font-weight: var(--rt-font-display-weight, 400);
  font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; line-height: 1.05;
}
.rt-live-score {
  font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif);
  font-weight: var(--rt-font-display-weight, 400);
  font-size: 4.4rem; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 42%, #e3e6ea 78%, #c3c7cd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rt-live-add { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.rt-live-btn {
  appearance: none; border: 0; border-radius: 12px;
  padding: 16px 0; font-size: 1.35rem; font-weight: 800;
  color: var(--rt-on-primary, #fff); background: var(--rt-primary, #ed1c24);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.rt-live-btn:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.rt-live-btn--minus { grid-column: 1 / -1; background: #2a2a2e; color: #fff; padding: 10px 0; font-size: 1rem; }
.rt-live-period { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
.rt-live-chip {
  appearance: none; cursor: pointer;
  padding: 12px 4px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.rt-live-chip.is-active { background: var(--rt-primary, #ed1c24); border-color: var(--rt-primary, #ed1c24); color: var(--rt-on-primary, #fff); }
.rt-live-chip--final { grid-column: 1 / -1; border-color: #fff; padding: 14px; font-size: 0.95rem; }
.rt-live-chip--final.is-active { background: #fff; color: #141414; }
.rt-live-noterow { display: flex; align-items: stretch; gap: 8px; }
.rt-live-note input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box;
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1rem;
}
/* One tap to take a note back, and a line that says whether what was typed
   is on the website yet (scorekeeper feedback, 9-9). */
.rt-live-noteclear {
  appearance: none; cursor: pointer; flex: 0 0 auto;
  padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff;
  font-weight: 700; font-size: 0.9rem;
}
.rt-live-noteclear:active { background: rgba(255, 255, 255, 0.14); }
.rt-live-notestate {
  min-height: 1.1em; margin: 6px 2px 0; font-size: 0.85rem; line-height: 1.1;
  color: rgba(255, 255, 255, 0.7);
	text-align: center;
}
.rt-live-notestate.is-ok { color: #7fe0a4; }
.rt-live-notestate.is-error { color: #ff7a7a; }
.rt-live-notestate.is-pending { color: rgba(255, 255, 255, 0.7); }
.rt-live-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.rt-live-status [data-saved] { flex: 1 1 100%; }
.rt-live-status .is-error { color: #ff7a7a; }
.rt-live-undo { appearance: none; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.rt-live-panel.is-final .rt-live-btn { opacity: 0.35; }

/* The board inside the hero slate: no extra plate, the slate is the plate.
   Room below it so the other levels' lines do not crowd the score. */
.rt-matchup-slate-group--live { padding-bottom: 26px; }
/* A themed, semi-opaque plate behind the live score so it stands apart from
   the rest of the slate: dark glass with faint diagonal stripes in the
   site's primary and a thin primary rule. */
.rt-matchup-slate-group--live .rt-lb {
  margin-top: 6px;
  padding: 14px clamp(32px, 6vw, 84px) 14px;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--rt-primary, #ed1c24) 55%, transparent);
  background:
    repeating-linear-gradient(-60deg, color-mix(in srgb, var(--rt-primary, #ed1c24) 14%, transparent) 0 6px, transparent 6px 22px),
    linear-gradient(180deg, rgba(10, 10, 12, 0.78), rgba(10, 10, 12, 0.62));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}
.rt-matchup-slate-group--live .rt-lb-period { margin-top: 2px; }
.rt-matchup-slate-group--live + .rt-matchup-slate-group { padding-top: 18px; }
.rt-matchup-slate-group--live .rt-lb-score { font-size: clamp(2.6rem, 6vw, 4rem); }
/* Season card live tile. */
.rt-season-stat-n--live { color: #fff; }
.rt-season-live .rt-lb-dot { display: inline-block; width: 8px; height: 8px; vertical-align: middle; margin-right: 4px; background: var(--rt-primary-bright, #ff5157); }
.rt-season-live { border-color: var(--rt-primary, #ed1c24) !important; }

/* Banner board without art: names sit level with the scores. */
.rt-lb--no-art .rt-lb-row { align-items: center; }
.rt-lb--no-art .rt-lb-team { justify-content: center; }
.rt-lb--no-art .rt-lb-name { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }

/* Played levels: one line per squad, final and record. */
.rt-matchup-slate-row--done { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.6em; }
.rt-matchup-slate-record { font-weight: 800; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); }
.rt-matchup-slate-record::before { content: "·"; margin-right: 0.6em; color: rgba(255, 255, 255, 0.45); }

/* The banner plate sizes to its content plus real side room, and the names
   sit a clear step away from the numbers. */
.rt-matchup-slate-group--live .rt-lb--no-art { width: max-content; max-width: 100%; margin-inline: auto; }
.rt-matchup-slate-group--live .rt-lb--no-art .rt-lb-row { gap: clamp(18px, 3vw, 40px); }
@media (max-width: 700px) {
  .rt-matchup-slate-group--live .rt-lb--no-art { padding: 12px 18px; width: 100%; }
  .rt-matchup-slate-group--live .rt-lb--no-art .rt-lb-row { gap: 12px; }
}

/* Team page: the full board (helmets, Home / Visitor) above the season card. */
.rt-season-board { margin: 0 0 16px; }
.rt-season-board .rt-lb {
  padding: 18px clamp(18px, 4vw, 48px) 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--rt-primary, #ed1c24) 55%, transparent);
  background:
    repeating-linear-gradient(-60deg, color-mix(in srgb, var(--rt-primary, #ed1c24) 14%, transparent) 0 6px, transparent 6px 22px),
    linear-gradient(160deg, #131316, #1d1a1b 70%, #17151a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---- Sets (volleyball): sets won big, the current set's points beneath ---- */
.rt-live-score-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-top: -4px; }
.rt-live-setpts { display: block; font-size: 1.6rem; font-weight: 800; margin: 4px 0 6px; }
.rt-live-setpts::before { content: "Set pts "; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.rt-live-add--one { grid-template-columns: repeat(2, 1fr); }
.rt-live-sets { text-align: center; margin: 6px 0 2px; }
.rt-live-btn--endset { min-width: 180px; }
.rt-live-sets-log { margin: 8px 0 0; font-size: 0.9rem; opacity: 0.85; }
.rt-live-period--3 { grid-template-columns: repeat(3, 1fr); }
.rt-live-period--6 { grid-template-columns: repeat(3, 1fr); }
.rt-live-period--7 { grid-template-columns: repeat(4, 1fr); }
.rt-lb-setline { font-weight: 800; }

/* ---- Meet placements: the keeper's list and the public list ---- */
.rt-live-results h2 { margin: 6px 0 4px; font-size: 1.1rem; }
.rt-live-results-help { margin: 0 0 10px; font-size: 0.85rem; opacity: 0.8; text-align: center; }
.rt-live-results-list, .rt-results-list { list-style: none; margin: 0; padding: 0; }
.rt-live-results-row, .rt-results-row { display: grid; grid-template-columns: 3.2em 1fr 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.95rem; }
.rt-live-results-row { grid-template-columns: 3.2em 1fr 1fr auto auto; }
.rt-results-place { font-weight: 900; letter-spacing: 0.04em; }
.rt-results-row--p1 .rt-results-place { color: #f4c542; }
.rt-results-row--p2 .rt-results-place { color: #d7d7d7; }
.rt-results-row--p3 .rt-results-place { color: #d3925a; }
.rt-results-who small { opacity: 0.6; font-weight: 400; }
.rt-results-stat { font-variant-numeric: tabular-nums; opacity: 0.9; }
.rt-live-results-del { background: none; border: 0; color: #ff7a7a; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.rt-live-results-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 12px; }
.rt-live-results-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.rt-live-results-form input[type="text"], .rt-live-results-form input[type="number"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 1rem; }
.rt-live-results-check { grid-column: 1 / -1; flex-direction: row !important; align-items: center; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.95rem !important; gap: 8px !important; }
.rt-live-btn--add { grid-column: 1 / -1; }
.rt-lb--meet .rt-lb-meet-name { margin: 6px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rt-lb-results { margin-top: 8px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.rt-lb-results:empty { display: none; }
.rt-season-results { margin: 10px 0 16px; }
.rt-results-head { margin: 8px 0 2px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; opacity: 0.85; }

/* Possession and clock (score kind): two chip rows under the periods. */
.rt-live-extras { margin: 4px 0 10px; }
.rt-live-extras-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.rt-live-extras-row--clock { grid-template-columns: repeat(4, 1fr); }
.rt-live-chip--ball i { margin-right: 6px; }
.rt-live-extras-hint { margin: 8px 2px 0; font-size: 0.8rem; opacity: 0.75; text-align: center; }
/* The public board: a ball beside the team that has it, clock and possession in the period line. */
.rt-lb-ballmark { display: none; margin-left: 0.35em; font-size: 0.8em; vertical-align: middle; }
.rt-lb-team--ball .rt-lb-ballmark { display: inline-block; animation: rt-lb-ball-pop 0.5s ease-out; }
@keyframes rt-lb-ball-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rt-lb-clock, .rt-lb-ball { color: rgba(255, 255, 255, 0.9); letter-spacing: 0.02em; text-transform: none; font-weight: 700; }
@media (max-width: 480px) { .rt-live-extras-row--clock { grid-template-columns: repeat(2, 1fr); } }
