/* ═══════════════════════════════════════════════════
   Tricolor XI — Cricket România
   Navy · gold · tricolor accents · joy + clarity
═══════════════════════════════════════════════════ */
:root {
  --ink: #0a1628;
  --ink-soft: #132337;
  --navy: #0f2744;
  --gold: #d4a017;
  --gold-bright: #f0c14b;
  --gold-dim: rgba(212, 160, 23, 0.35);
  --cream: #faf6ee;
  --cream-soft: #ebe4d4;
  --muted: #8a93a3;
  --ro-blue: #002b7f;
  --ro-yellow: #fcd116;
  --ro-red: #ce1126;
  --grass: #1a5c3a;
  --grass-light: #2d8a55;
  --line: rgba(240, 193, 75, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(212, 160, 23, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(0, 43, 127, 0.35), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(206, 17, 38, 0.08), transparent 50%),
    var(--ink);
}
a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-desk {
  display: none;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-desk a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: 0.2s;
}
.nav-desk a:hover { color: var(--cream); background: rgba(240, 193, 75, 0.1); }
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}
.nav-mob {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: rgba(10, 22, 40, 0.97);
  z-index: 90;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}
.nav-mob.open { display: flex; }
.nav-mob a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav-mob a:hover { background: rgba(240, 193, 75, 0.08); border-color: var(--line); }

@media (min-width: 900px) {
  .nav-desk { display: flex; }
  .menu-btn { display: none; }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.25rem 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.tricolor-line {
  display: flex;
  height: 4px;
  width: 72px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.tricolor-line i { flex: 1; }
.tricolor-line i:nth-child(1) { background: var(--ro-blue); }
.tricolor-line i:nth-child(2) { background: var(--ro-yellow); }
.tricolor-line i:nth-child(3) { background: var(--ro-red); }
.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.3);
}
.btn-gold:hover { color: var(--ink); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { color: var(--cream); border-color: var(--gold-dim); }

.hero-card {
  background: linear-gradient(160deg, rgba(19, 35, 55, 0.95), rgba(10, 22, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow), var(--ro-red));
}
.win-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-bright);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.hero-card .score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 0.75rem 0;
}
.hero-card p { color: var(--muted); font-size: 0.92rem; }
.hero-card .meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--cream-soft);
}
.score-decode {
  background: rgba(240, 193, 75, 0.1);
  border-left: 3px solid var(--gold);
  padding: 0.65rem 0.85rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem !important;
  color: var(--cream-soft) !important;
  margin: 0.65rem 0 0.85rem !important;
  line-height: 1.5;
}
.score-decode strong { color: var(--gold-bright); }
.score-decode em { color: var(--cream); font-style: normal; font-weight: 600; }
.hero-player .hero-score {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 0.35rem 0 0.5rem;
}
.hero-player {
  border-top: 3px solid var(--gold);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(15, 39, 68, 0.45) 15%, rgba(15, 39, 68, 0.45) 85%, transparent);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 550;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}

/* Cards */
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 193, 75, 0.35);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card p, .card li { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.card .role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat .l {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* Timeline match */
.match-strip {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .match-strip { grid-template-columns: 1fr 1fr; }
}
.match-box {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.35rem;
  background: var(--ink-soft);
}
.match-box.win {
  border-color: rgba(45, 138, 85, 0.4);
  background: linear-gradient(160deg, rgba(26, 92, 58, 0.25), var(--ink-soft));
}
.match-box.next {
  border-color: rgba(240, 193, 75, 0.4);
  background: linear-gradient(160deg, rgba(212, 160, 23, 0.12), var(--ink-soft));
}
.match-box .tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.match-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.match-box p { color: var(--muted); font-size: 0.92rem; }

/* Honest world chances */
.honest {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .honest { grid-template-columns: 1.2fr 0.8fr; }
}
.meter {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.meter-bar {
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}
.meter-fill {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grass-light), var(--gold-bright));
  box-shadow: 0 0 16px rgba(240, 193, 75, 0.4);
}
.ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ladder li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.ladder strong { color: var(--cream); display: block; font-size: 0.95rem; }
.ladder .step-n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 193, 75, 0.15);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}

/* Interactive playground */
.play-zone {
  background: linear-gradient(165deg, #0d1f18, #0a1628 60%);
  border: 1px solid rgba(45, 138, 85, 0.35);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.play-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(240, 193, 75, 0.08), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(45, 138, 85, 0.06) 28px, rgba(45, 138, 85, 0.06) 29px);
  pointer-events: none;
}
.play-zone > * { position: relative; z-index: 1; }
.play-zone h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.play-zone .hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

/* Game: pitch */
.pitch-game {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .pitch-game { grid-template-columns: 1fr 1fr; }
}
.pitch-visual {
  aspect-ratio: 3/4;
  max-height: 340px;
  margin: 0 auto;
  width: min(100%, 220px);
  background: linear-gradient(180deg, #2d8a55, #1a5c3a);
  border-radius: 12px;
  border: 3px solid rgba(240, 193, 75, 0.3);
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
}
.pitch-strip {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 28%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #c4a574, #a8895a);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.wicket-viz {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 8%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.wicket-viz.top { top: 10%; }
.wicket-viz.bot { bottom: 10%; }
.wicket-viz span {
  width: 18%;
  height: 100%;
  background: #f5f0e6;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: rgba(240, 193, 75, 0.35);
  cursor: pointer;
  animation: pulse 2s infinite;
  transform: translate(-50%, -50%);
}
.hotspot:hover, .hotspot.active {
  background: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(240, 193, 75, 0.25);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 193, 75, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(240, 193, 75, 0); }
}
.hotspot[data-spot="bowler"] { left: 50%; top: 22%; }
.hotspot[data-spot="batsman"] { left: 50%; top: 78%; }
.hotspot[data-spot="keeper"] { left: 50%; top: 88%; }
.hotspot[data-spot="field"] { left: 22%; top: 45%; }
.explain-box {
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  min-height: 160px;
}
.explain-box h4 { color: var(--gold-bright); margin-bottom: 0.4rem; font-size: 1.05rem; }
.explain-box p { color: var(--cream-soft); font-size: 0.92rem; }

/* Scoring game */
.score-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.score-btns button {
  padding: 1rem 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.6);
  font-weight: 800;
  font-size: 1.15rem;
  transition: 0.2s;
}
.score-btns button:hover { border-color: var(--gold); color: var(--gold-bright); }
.score-btns button.correct {
  background: rgba(45, 138, 85, 0.35);
  border-color: var(--grass-light);
  color: #8dffb8;
}
.score-btns button.wrong {
  background: rgba(206, 17, 38, 0.25);
  border-color: var(--ro-red);
}
.scene-card {
  background: rgba(10, 22, 40, 0.55);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.feedback {
  min-height: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-top: 0.5rem;
}
.progress-dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.progress-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.progress-dots i.on { background: var(--gold-bright); }
.progress-dots i.done { background: var(--grass-light); }

/* Over builder */
.over-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin: 1rem 0;
}
.ball-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px dashed rgba(240, 193, 75, 0.3);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.2);
  color: var(--cream);
}
.ball-slot.filled {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(240, 193, 75, 0.12);
}
.ball-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ball-opts button {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  font-size: 0.85rem;
}
.ball-opts button:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.over-total {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-bright);
}

/* Quiz terms */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-options button {
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.5);
  font-size: 0.92rem;
  transition: 0.2s;
}
.quiz-options button:hover { border-color: var(--gold-dim); }
.quiz-options button.correct {
  border-color: var(--grass-light);
  background: rgba(45, 138, 85, 0.25);
}
.quiz-options button.wrong {
  border-color: var(--ro-red);
  background: rgba(206, 17, 38, 0.2);
}

/* Match results list */
.subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  margin: 0 0 0.85rem;
  color: var(--gold-bright);
}
.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}
.result-row.ro-win {
  border-color: rgba(45, 138, 85, 0.45);
  background: linear-gradient(90deg, rgba(26, 92, 58, 0.22), var(--ink-soft) 40%);
}
.result-row.upcoming {
  border-color: rgba(240, 193, 75, 0.35);
  border-style: dashed;
}
.result-row .when {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 4.5rem;
}
.result-row .body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--cream);
}
.result-row .body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.result-row .badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.result-row .badge.w {
  background: rgba(45, 138, 85, 0.25);
  color: #8dffb8;
}
.result-row .badge.l {
  background: rgba(206, 17, 38, 0.2);
  color: #ff9aa5;
}
.result-row .badge.u {
  background: rgba(240, 193, 75, 0.15);
  color: var(--gold-bright);
}
.result-row .badge.o {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* Standings table */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}
.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
.standings th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.standings td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--cream-soft);
}
.standings tr:last-child td { border-bottom: none; }
.standings tr.highlight {
  background: linear-gradient(90deg, rgba(240, 193, 75, 0.12), transparent);
}
.standings tr.highlight td {
  color: var(--cream);
  font-weight: 600;
}
.standings td:first-child {
  font-weight: 800;
  color: var(--gold-bright);
  width: 2.5rem;
}
.standings .num { text-align: center; font-variant-numeric: tabular-nums; }
.table-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Sources */
.sources a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: 0.2s;
}
.sources a:hover {
  border-color: var(--gold-dim);
  background: rgba(240, 193, 75, 0.06);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

/* Tooltips */
.term-tip {
  position: relative;
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: help;
  border-bottom: 1.5px dashed rgba(240, 193, 75, 0.65);
  border-radius: 0;
  line-height: inherit;
  vertical-align: baseline;
}
.term-tip:hover,
.term-tip:focus-visible,
.term-tip.is-open {
  color: var(--gold-bright);
  background: rgba(240, 193, 75, 0.12);
  outline: none;
}
/* Fixed so tooltips aren't clipped by overflow:hidden on cards / play-zones */
.term-tip-bubble {
  position: fixed;
  left: 0;
  top: 0;
  width: min(300px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fffef9;
  color: #1a1a1a;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  border: 1px solid rgba(212, 160, 23, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s var(--ease), visibility 0.15s;
  z-index: 400;
  white-space: normal;
  box-sizing: border-box;
}
.term-tip-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7010;
  margin-bottom: 0.3rem;
}
.term-tip-def { display: block; color: #2a2a2a; }
/* Visibility is controlled in JS (bubbles live on document.body) */

.disclaimer {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── TV scoreboard explainer ─────────────────────────────── */
.tv-board-wrap {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 860px) {
  .tv-board-wrap {
    grid-template-columns: minmax(280px, 380px) 1fr;
  }
}
.tv-board {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(165deg, #0c1220 0%, #151c2e 50%, #0a101c 100%);
  border: 2px solid rgba(240, 193, 75, 0.35);
  border-radius: 16px;
  padding: 1rem 1.1rem 0.9rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  user-select: none;
}
.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tv-team {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9aa3b5;
}
.tv-main-score {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 0.2rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.tv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.tv-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8d0e0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s;
}
.tv-trail {
  color: #f0c14b;
  background: rgba(240, 193, 75, 0.12);
}
.tv-batters {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tv-batter {
  font-size: 0.9rem;
  color: #e8ecf4;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.15s;
}
.tv-batter strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tv-batter em {
  font-style: normal;
  color: #8a93a3;
  font-size: 0.85rem;
}
.tv-star {
  color: #f0c14b;
  margin-right: 0.25rem;
}
.tv-bowl {
  font-size: 0.88rem;
  color: #d0d6e4;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(45, 138, 85, 0.12);
  border: 1px solid rgba(45, 138, 85, 0.25);
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: 0.15s;
}
.tv-bowl strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tv-bowl em {
  font-style: normal;
  color: #8dffb8;
}
.tv-bowl-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #2d8a55;
  margin-bottom: 0.2rem;
}
.tv-footer {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9aa3b5;
}
.tv-footer span {
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: 0.15s;
}
.tv-board [data-tip-id]:hover,
.tv-board [data-tip-id].active,
.tv-label.active {
  background: rgba(240, 193, 75, 0.18) !important;
  border-color: rgba(240, 193, 75, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.25);
}
.tv-legend-prompt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.tv-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.tv-label {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  color: var(--cream-soft);
  transition: 0.15s;
}
.tv-label:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.tv-explain {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.2rem;
  min-height: 7.5rem;
}
.tv-explain h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}
.tv-explain p {
  color: var(--cream-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tv-explain .tv-arrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-right: 0.25rem;
}

/* ── Glossary section ────────────────────────────────────── */
.glossary-search-wrap {
  margin-bottom: 1.25rem;
}
.glossary-search-wrap input {
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.glossary-search-wrap input::placeholder {
  color: var(--muted);
}
.glossary-search-wrap input:focus {
  border-color: rgba(240, 193, 75, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.12);
}
.glossary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.glossary-card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: border-color 0.15s;
}
.glossary-card:hover {
  border-color: rgba(240, 193, 75, 0.3);
}
.glossary-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.glossary-card .g-terms {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.glossary-card p {
  font-size: 0.88rem;
  color: var(--cream-soft);
  line-height: 1.55;
  margin: 0;
}
.glossary-card.hidden {
  display: none;
}
.glossary-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hotspot { animation: none; }
}
::selection { background: rgba(240, 193, 75, 0.35); }
