/* NBA Career Simulator - page-specific styles (shared tokens live in first-party-games.css) */

.nba-shell { display: flex; flex-direction: column; gap: 0.6rem; }

.nba-hud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}
.nba-hud div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fp-border);
  border-radius: 10px;
  padding: 0.3rem 0.25rem;
  text-align: center;
  min-width: 0;
}
.nba-hud b { display: block; font-size: 1.02rem; color: var(--fp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nba-hud span { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fp-text-muted); }
.nba-hud .is-gold b { color: var(--fp-gold); }

.nba-panel { min-height: 260px; }
.nba-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fp-text-muted); }
.nba-kicker { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fp-orange); margin-bottom: 0.3rem; }
.nba-muted { color: var(--fp-text-muted); font-size: 0.85rem; }

.nba-build { display: flex; flex-direction: column; gap: 0.55rem; }
.nba-name-row { display: flex; align-items: center; gap: 0.6rem; }
.nba-name-row strong { font-size: 1.15rem; color: var(--fp-text); }
.nba-icon-btn {
  min-width: 44px; min-height: 44px; border-radius: 12px; font-size: 1.15rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--fp-border); color: var(--fp-text);
}
.nba-field { display: flex; flex-direction: column; gap: 0.3rem; }
.nba-chip-row { display: grid; gap: 0.4rem; }
.nba-pos-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nba-arch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nba-chip {
  min-height: 44px; padding: 0.4rem 0.5rem; border-radius: 12px; cursor: pointer;
  font-size: 0.88rem; font-weight: 700; color: var(--fp-text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--fp-border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nba-chip:hover { border-color: rgba(242, 100, 30, 0.5); }
.nba-chip.is-active { background: rgba(242, 100, 30, 0.18); border-color: var(--fp-orange); color: #fff; }
.nba-main-btn { width: 100%; min-height: 50px; font-size: 1.02rem; }
.nba-best { margin: 0; text-align: center; font-size: 0.8rem; color: var(--fp-text-muted); }

.nba-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--fp-border); border-radius: 14px; padding: 0.85rem 0.9rem;
}
.nba-card h3 { margin: 0 0 0.35rem; font-size: 1.12rem; color: var(--fp-text); }
.nba-card p { margin: 0 0 0.6rem; color: var(--fp-text); line-height: 1.45; font-size: 0.92rem; }
.nba-card.is-champ { border-color: var(--fp-gold); box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25) inset; }

.nba-options { display: grid; gap: 0.45rem; }
.nba-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; text-align: left;
  min-height: 52px; padding: 0.55rem 0.8rem; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--fp-border); color: var(--fp-text);
}
.nba-option strong { font-size: 0.95rem; }
.nba-option span { font-size: 0.78rem; color: var(--fp-text-muted); }
.nba-option:hover { border-color: var(--fp-orange); background: rgba(242, 100, 30, 0.1); }

.nba-draft-card { text-align: center; }
.nba-draft-pick { font-size: 3.2rem; font-weight: 900; line-height: 1; color: var(--fp-gold); margin: 0.2rem 0 0.5rem; }

.nba-statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin: 0.2rem 0 0.5rem; }
.nba-statline div, .nba-final-grid div { text-align: center; background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 0.4rem 0.2rem; }
.nba-statline b, .nba-final-grid b { display: block; font-size: 1.25rem; color: var(--fp-text); }
.nba-statline span, .nba-final-grid span { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fp-text-muted); }
.nba-playoff { font-weight: 700; }
.nba-awards { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.nba-awards span { padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; color: var(--fp-gold); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); }
.nba-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.nba-actions .fp-btn { flex: 1 1 140px; white-space: nowrap; }
.nba-shell .fp-game-header { flex-wrap: nowrap; }
.nba-shell .fp-actions-row { display: flex; gap: 0.4rem; flex-shrink: 0; }

.nba-final { text-align: center; }
.nba-verdict { font-size: 1.55rem; font-weight: 900; color: var(--fp-text); margin: 0.2rem 0 0.6rem; }
.nba-final.is-hof .nba-verdict { color: var(--fp-gold); }
.nba-final-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-bottom: 0.6rem; }
.nba-toast { min-height: 1.2em; margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--fp-green); }

.nba-log { max-height: 168px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.25rem; }
.nba-log-empty { margin: 0; font-size: 0.82rem; color: var(--fp-text-muted); }
.nba-log-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: center;
  font-size: 0.8rem; padding: 0.3rem 0.5rem; border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: var(--fp-text);
}
.nba-log-row.is-champ { background: rgba(245, 158, 11, 0.1); }
.nba-log-year { font-weight: 700; }
.nba-log-line { color: var(--fp-text-muted); font-variant-numeric: tabular-nums; }

.nba-disclaimer { margin: 0; font-size: 0.72rem; color: var(--fp-text-muted); text-align: center; }

@media (max-width: 640px) {
  .nba-shell .fp-title-group h2 { font-size: 1.15rem; }
  .nba-shell .fp-title-group .fp-badge { display: none; }
  .nba-shell .fp-game-header { margin-bottom: 0.4rem; }
  .nba-hud { gap: 0.25rem; }
  .nba-hud div { padding: 0.25rem 0.1rem; }
  .nba-hud b { font-size: 0.86rem; }
  .nba-hud span { font-size: 0.56rem; letter-spacing: 0.02em; }
  .nba-actions .fp-btn { flex: 1 1 120px; padding: 0.5rem 0.6rem; font-size: 0.88rem; }
  .nba-panel { min-height: 0; }
  .nba-chip { font-size: 0.8rem; padding: 0.3rem; }
  .nba-card { padding: 0.7rem; }
  .nba-log { max-height: 130px; }
}

/* Daylight theme */
[data-theme="light"] .nba-hud div,
[data-theme="light"] .nba-card,
[data-theme="light"] .nba-chip,
[data-theme="light"] .nba-option,
[data-theme="light"] .nba-icon-btn,
[data-theme="light"] .nba-log-row { background: #ffffff; border-color: #d6dce8; color: #0f172a; }
[data-theme="light"] .nba-hud b,
[data-theme="light"] .nba-card h3,
[data-theme="light"] .nba-card p,
[data-theme="light"] .nba-name-row strong,
[data-theme="light"] .nba-statline b,
[data-theme="light"] .nba-final-grid b,
[data-theme="light"] .nba-verdict { color: #0f172a; }
[data-theme="light"] .nba-chip.is-active { background: #fff1e8; border-color: var(--fp-orange); color: #9a3412; }
[data-theme="light"] .nba-statline div,
[data-theme="light"] .nba-final-grid div { background: #f1f5f9; }
[data-theme="light"] .nba-hud span,
[data-theme="light"] .nba-label,
[data-theme="light"] .nba-muted,
[data-theme="light"] .nba-option span,
[data-theme="light"] .nba-log-line,
[data-theme="light"] .nba-log-empty,
[data-theme="light"] .nba-disclaimer,
[data-theme="light"] .nba-statline span,
[data-theme="light"] .nba-final-grid span { color: #475569; }
[data-theme="light"] .nba-hud .is-gold b,
[data-theme="light"] .nba-final.is-hof .nba-verdict,
[data-theme="light"] .nba-draft-pick,
[data-theme="light"] .nba-awards span { color: #b45309; }
[data-theme="light"] .nba-kicker { color: #c2410c; }
[data-theme="light"] .nba-toast { color: #047857; }
