/* ── Tournament countdown ── */
.countdown-box {
  text-align: center;
  padding: 14px 20px 12px;
}
.cd-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-accent);
  margin-bottom: 6px;
  transition: color 0.35s;
}
.cd-display {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--theme-text);
  line-height: 1.4;
  transition: color 0.35s;
  white-space: nowrap;
}
.cd-date {
  font-size: 11px;
  color: var(--theme-muted);
  margin-top: 4px;
  transition: color 0.35s;
}

/* ── App header (fixed top) ── */
.app-header {
  position: relative;
  z-index: 10;
  padding: 16px 18px 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  flex-shrink: 0;
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.header-brand { flex: 1; min-width: 0; }

.team-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--theme-accent);
  transition: color 0.35s;
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--theme-text);
  transition: color 0.35s;
}
.subtitle {
  font-size: 12px;
  color: var(--theme-muted);
  font-weight: 400;
  margin-top: 4px;
  transition: color 0.35s;
}

/* ── Theme toggle (top-right) ── */
.theme-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,0.07); }
[data-theme="gold"]  .theme-toggle { background: rgba(212,175,55,0.1); }

.theme-btn {
  width: 28px; height: 28px;
  border-radius: 14px;
  border: none;
  background: none;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn.on { background: rgba(255,255,255,0.12); }
[data-theme="light"] .theme-btn.on { background: rgba(0,0,0,0.1); }
[data-theme="gold"]  .theme-btn.on { background: rgba(212,175,55,0.2); }

/* ── Frosty box ── */
.frosty-box {
  background: var(--theme-frosty-bg);
  border: 1px solid var(--theme-frosty-border);
  border-left: 3px solid var(--theme-accent);
  border-radius: 16px;
  padding: 18px 20px 16px;
  margin-bottom: 10px;
  transition: background 0.35s, border-color 0.35s;
}

/* ── Next game hero ── */
.ng-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ng-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.35s;
}
.ng-hero-label::before {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.ng-hero-timer {
  font-family: "Space Grotesk", monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--theme-accent);
  transition: color 0.35s;
}

.ng-hero-teams {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ng-hero-team {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.1;
  transition: color 0.35s;
}
.ng-hero-team.us {
  color: var(--theme-accent);
  transition: color 0.35s;
}

.ng-hero-vs {
  font-size: 18px;
  color: var(--theme-muted);
  font-weight: 400;
  transition: color 0.35s;
}

.ng-hero-meta {
  font-size: 12px;
  font-family: "Space Grotesk", monospace;
  color: var(--theme-muted);
  transition: color 0.35s;
}

/* Live state */
.ng-live-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(100, 220, 130, 0.12);
  border: 1px solid rgba(100, 220, 130, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Done state */
.ng-done {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ng-done-icon { font-size: 22px; }
.ng-done-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-accent);
  transition: color 0.35s;
}

/* Loading / empty */
.next-game-none {
  color: var(--theme-muted);
  font-size: 13px;
  font-style: italic;
  transition: color 0.35s;
}
