/* ==========================================================
   NFL GAME SIMULATOR — the field, scoreboard and box scores.
   The page shell (header, matchup card, scoreboard, controls,
   play-by-play, panels, about) is nba-game-simulator.css, loaded
   first, so both simulators look like one product. Team colours
   appear only on the field (end zones, the drive) and as accents.
   ========================================================== */

/* ===== Scoreboard ===== */
.nfl-sim .sim-sb-ball {
  width: 14px;
  height: 9px;
  border-radius: 50%;
  background: #8B4A2B;
  border: 1px solid #3D1F0F;
  box-shadow: none;
}

.nfl-timeouts {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.nfl-timeout {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--sim-strong);
}

.nfl-timeout.is-left { background: var(--sim-text-secondary); }

.nfl-sb-down {
  color: var(--sim-text-secondary);
  white-space: nowrap;
}

/* ===== Field ===== */
.nfl-field-wrap .nfl-field { overflow: hidden; border-radius: 10px; }

.nfl-field .nfl-turf { fill: #0D0D0E; }
.nfl-field .nfl-stripe { fill: #111113; }
.nfl-field .nfl-endzone { opacity: 0.55; }
.nfl-field .nfl-endzone-label {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-anchor: middle;
  dominant-baseline: central;
  fill: rgba(255, 255, 255, 0.85);
}
.nfl-field .nfl-yard-line { stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; }
.nfl-field .nfl-yard-line-ten { stroke: rgba(255, 255, 255, 0.28); }
.nfl-field .nfl-goal-line { stroke: rgba(255, 255, 255, 0.6); stroke-width: 4; }
.nfl-field .nfl-hash { stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; }
.nfl-field .nfl-boundary { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 3; }
.nfl-field .nfl-yard-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  fill: rgba(255, 255, 255, 0.26);
}

/* The line of scrimmage, and the line to gain in the colour of what's in play. */
.nfl-field .nfl-los { stroke: rgba(255, 255, 255, 0.8); stroke-width: 3; }
.nfl-field .nfl-line-to-gain { stroke: var(--color-caution); stroke-width: 4; }
.nfl-field .nfl-drive-band { opacity: 0.09; }
.nfl-field .nfl-play-path { stroke-width: 4; stroke-linecap: round; opacity: 0.55; }

.nfl-field #simBall { fill: none; stroke: none; }
.nfl-field .nfl-ball { fill: #8B4A2B; stroke: #3D1F0F; stroke-width: 2; }
.nfl-field .nfl-ball-laces { stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.4; fill: none; }

/* The drive strip under the field. */
.nfl-field .nfl-strip-track { fill: rgba(255, 255, 255, 0.06); }
.nfl-field .nfl-strip-fill { opacity: 0.85; }
.nfl-field .nfl-strip-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--sim-text-secondary);
}

.nfl-sim .sim-banner {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 8px 18px;
}

/* ===== Play-by-play ===== */
.nfl-feed-sit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--sim-text-tertiary);
  margin-bottom: 2px;
}

.sim-feed-item.nfl-feed-drive {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: var(--sim-text-tertiary);
}

.sim-feed-item.nfl-feed-drive strong { color: var(--sim-text-secondary); font-weight: 600; }

/* ===== Box scores ===== */
.nfl-box { margin-bottom: 18px; }
.nfl-box:last-child { margin-bottom: 0; }

.sim-box.nfl-box caption {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label, 0.14em);
  text-transform: uppercase;
  color: var(--sim-text-tertiary);
}

.nfl-drives td.is-score { color: var(--color-primary); }

.nfl-drive-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.nfl-split {
  font-size: 0.72rem;
  color: var(--sim-text-tertiary);
  margin-left: 4px;
}

/* ===== Seek bar: scores ===== */
.nfl-seek-score {
  position: absolute;
  top: -14px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  transform: translateX(-50%);
}

/* ===== Final card ===== */
.sim-overlay-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 10px 0 4px;
}

.nfl-leaders {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--sim-border);
  display: grid;
  gap: 8px;
  text-align: left;
}

.nfl-leaders li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--sim-text-tertiary);
}

.nfl-leader-name {
  color: var(--sim-text);
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid var(--team-color, var(--sim-strong));
  white-space: nowrap;
}

/* ===== FAQ ===== */
.nfl-faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .nfl-faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nfl-field .nfl-strip-label { font-size: 26px; }
  .sim-overlay-title { font-size: 1.25rem; margin: 6px 0 2px; }
  .nfl-leaders { margin-top: 8px; padding-top: 8px; gap: 4px; }
  .nfl-leaders li { font-size: 0.7rem; }
  .nfl-sb-down { font-size: 0.6rem; }
}
