/* ===== HoopStats v2.0 - Design System ===== */
/* 球场黑金设计系统 v2.0 */

:root {
  /* === 主色系 — 球场灯光感 === */
  --primary: #ff6b00;
  --primary-hover: #ff8533;
  --primary-glow: rgba(255, 107, 0, 0.4);
  --primary-dim: rgba(255, 107, 0, 0.15);

  /* === 球队配色 === */
  --team-home: #e63946;
  --team-home-dim: rgba(230, 57, 70, 0.15);
  --team-away: #457b9d;
  --team-away-dim: rgba(69, 123, 157, 0.15);

  /* === 语义色 === */
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --warning: #facc15;
  --warning-dim: rgba(250, 204, 21, 0.15);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --purple: #a855f7;

  /* === 中性色 === */
  --bg: #0f0f11;
  --bg-2: #1a1a1e;
  --bg-3: #25252b;
  --bg-4: #2f2f38;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f0f0;
  --text-2: #9090a0;
  --text-3: #52525b;

  /* === 圆角 === */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* === 阴影 === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);

  /* === 过渡 === */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== LIGHT THEME (prefers-color-scheme: light) ===== */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9fafb;
    --bg-2: #ffffff;
    --bg-3: #f3f4f6;
    --bg-4: #e5e7eb;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #111827;
    --text-2: #6b7280;
    --text-3: #9ca3af;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  body {
    background: var(--bg);
    color: var(--text);
  }

  .app-header {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
  }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ACCESSIBILITY ===== */
/* Focus Visible - 键盘导航时显示焦点 */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== LAYOUT ===== */
.app-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-logo span {
  color: var(--primary);
}

.page {
  display: none;
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.page.active {
  display: block;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 底部 nav 留白 */
.page-wrap {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-height: 44px; /* 触屏友好 */
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-4);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 36px;
}

/* 按钮禁用态 */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

/* ===== SCOREBOARD ===== */
.scoreboard {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 顶部渐变条 */
.scoreboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--team-home), var(--primary), var(--team-away));
}

.score-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.score-team-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.score-num {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: all 150ms ease;
}

.score-num.home { color: var(--team-home); }
.score-num.away { color: var(--team-away); }

/* 得分时的脉冲动画 */
@keyframes score-glow {
  0%, 100% {
    text-shadow: none;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 40px currentColor;
    transform: scale(1.08);
  }
}

.score-num.glow {
  animation: score-glow 400ms ease-out;
}

.score-sep {
  font-size: 28px;
  color: var(--text-3);
  font-weight: 300;
}

.score-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 12px;
}

.score-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== TIMER ===== */
.timer-section {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.game-clock {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

/* 计时器运行中 */
.game-clock.running {
  color: var(--text);
}

/* 计时器空闲脉冲（柔和） */
@keyframes clock-idle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.game-clock.idle {
  animation: clock-idle 2s ease-in-out infinite;
}

.timer-label {
  font-size: 12px;
  color: var(--text-2);
  margin: 6px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.shot-clock-section {
  margin: 16px 0;
  text-align: center;
}

.shot-clock {
  font-size: 44px;
  font-weight: 800;
  color: var(--warning);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* 进攻计时危险状态 */
@keyframes shot-danger {
  0%, 100% {
    color: var(--danger);
    text-shadow: none;
  }
  50% {
    color: var(--danger);
    text-shadow: 0 0 20px var(--danger);
  }
}

.shot-clock.danger {
  animation: shot-danger 0.5s ease-in-out infinite;
}

.timer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.timer-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.timer-btn:active {
  transform: scale(0.97);
}

/* 计时器按钮空闲脉冲 */
@keyframes timer-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.timer-btn.idle-pulse {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
  animation: timer-pulse 2s ease-in-out infinite;
}

.timer-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}

/* 撤销按钮禁用 */
#btn-undo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== STAT PANEL ===== */
.stat-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.side-panel {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.side-panel-title {
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.side-panel-title.home {
  color: var(--team-home);
}

.side-panel-title.away {
  color: var(--team-away);
}

/* ===== STAT BUTTONS (Enhanced) ===== */
.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.stat-label {
  font-size: 11px;
  color: var(--text-2);
  width: 56px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.stat-btn {
  /* 触屏友好尺寸 */
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;

  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition-fast);

  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  position: relative;
  overflow: hidden;
}

.stat-btn:active {
  transform: scale(0.93);
}

/* 得分类 */
.stat-btn.made {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-btn.made:active {
  box-shadow: 0 0 0 3px var(--success);
}

/* 失分类 */
.stat-btn.miss {
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* 中性类 */
.stat-btn.neutral {
  background: var(--bg-4);
  color: var(--text);
  border: 1px solid var(--border);
}

/* 负面类 */
.stat-btn.neg {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 得分时的 pop 动画 */
@keyframes score-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.stat-btn.pop {
  animation: score-pop 300ms var(--spring);
}

/* 三分球特殊样式 */
.stat-btn.three-pt {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* 禁用态 */
.stat-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.5);
}

/* ===== PLAYER SELECT ===== */
.player-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.player-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.player-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.player-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.player-chip.none {
  border-style: dashed;
}

/* ===== BOX SCORE ===== */
.box-score table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.box-score th {
  text-align: center;
  padding: 10px 8px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.box-score th:first-child {
  text-align: left;
}

.box-score td {
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.box-score td:first-child {
  text-align: left;
  font-weight: 600;
}

.box-score tr.totals td {
  color: var(--warning);
  font-weight: 700;
  border-top: 1px solid var(--border);
  background: rgba(250, 204, 21, 0.05);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-group input::placeholder {
  color: var(--text-3);
}

.form-group input[type="color"] {
  padding: 6px;
  height: 44px;
  cursor: pointer;
}

.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

/* ===== OVERTIME DISPLAY ===== */
.scoreboard.overtime {
  border-color: var(--warning);
  box-shadow: 0 0 20px var(--warning-dim);
}

.scoreboard.overtime .game-clock {
  color: var(--warning);
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.overtime-badge {
  display: inline-block;
  background: var(--warning);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  animation: pulse-warning 1.5s ease-in-out infinite;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== TEAM LIST ===== */
.team-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.team-item:hover {
  background: var(--bg-4);
}

.team-color {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.team-info {
  flex: 1;
}

.team-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.team-sub {
  font-size: 12px;
  color: var(--text-2);
}

.team-actions {
  display: flex;
  gap: 8px;
}

/* ===== PLAYER LIST ===== */
.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.player-num {
  width: 36px;
  height: 36px;
  background: var(--bg-4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.player-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.player-actions {
  display: flex;
  gap: 8px;
}

/* ===== GAME HISTORY ===== */
.game-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-item:hover {
  background: var(--bg-4);
  transform: translateX(4px);
}

.game-teams {
  flex: 1;
}

.game-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.game-score .win {
  color: var(--success);
}

.game-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.badge-live {
  background: var(--danger-dim);
  color: var(--danger);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-done {
  background: var(--success-dim);
  color: var(--success);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.nav-icon {
  font-size: 24px;
  transition: transform var(--transition-fast);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-item:active {
  transform: scale(0.95);
}

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  border: 1px solid var(--border);
  opacity: 0;
  transition: all var(--transition);
  z-index: 9998;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SKIP NAV (Accessibility) ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 10001;
  transition: top 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.skip-nav:focus {
  top: 10px;
}

/* ===== RESPONSIVE ===== */

/* 小屏手机 < 480px */
@media (max-width: 480px) {
  .score-num {
    font-size: 52px;
  }

  .score-teams {
    gap: 16px;
  }

  .game-clock {
    font-size: 52px;
  }

  .stat-panel {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 16px;
  }

  .score-actions {
    gap: 8px;
  }

  .score-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* 平板竖屏 481-640px */
@media (min-width: 481px) and (max-width: 640px) {
  .score-num {
    font-size: 64px;
  }

  .game-clock {
    font-size: 56px;
  }
}

/* 平板横屏 641-1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .scoreboard {
    max-width: 600px;
    margin: 0 auto 20px;
  }

  .stat-panel {
    max-width: 800px;
    margin: 0 auto 16px;
  }

  .stat-btn {
    min-width: 52px;
    min-height: 52px;
  }
}

/* 桌面端 > 1024px */
@media (min-width: 1025px) {
  .page-wrap {
    max-width: 1200px;
    margin: 0 auto;
  }

  .scoreboard {
    max-width: 700px;
  }

  /* 键盘快捷键提示（桌面端） */
  .stat-btn::after {
    content: attr(data-key);
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 9px;
    opacity: 0.3;
    font-weight: 400;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    padding: 16px 24px;
    align-items: center;
  }

  .timer-section {
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding-right: 24px;
    margin-bottom: 0;
    margin-right: 24px;
  }

  .game-clock {
    font-size: 40px;
  }

  .score-num {
    font-size: 48px;
  }

  .shot-clock-section {
    border-left: 1px solid var(--border);
    padding-left: 24px;
    margin-left: 24px;
    margin-bottom: 0;
  }

  .score-meta {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
