/* ============================================================
   KOTH — throne.css   ·   the live board (Console)
   Two matching panels (king + machine), a large calm timer,
   a bordered stat group. Flat, rounded, all-sans.
   ============================================================ */

/* ── Prominent game timer ── */
.throne-timer { text-align: center; padding: 18px 16px 8px; }
.throne-timer-lbl {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.throne-timer-val {
  font-family: var(--display); font-weight: 750; letter-spacing: -0.03em;
  font-size: clamp(48px, 10vw, 104px); line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.throne-timer-val.urgent { color: var(--accent); animation: timer-pulse 1s ease-in-out infinite; }
.throne-timer.paused .throne-timer-val { color: var(--amber-bright); }
@keyframes timer-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Machine + king as two equal, matching panels; collapse to king-only via .solo */
.throne-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch;
  margin-bottom: var(--gap-lg);
}
.throne-top.solo { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 820px) { .throne-top { grid-template-columns: 1fr; gap: 16px; } }

/* Machine column: the card fills the column and matches the king panel. */
.throne-machine { display: block; }
.throne-machine .mgc-wrap {
  margin: 0; width: 100%; max-width: none; height: 100%;
  display: flex; flex-direction: column;
}
.throne-machine .mgc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* King column: a matching bordered panel. */
.throne-wrap {
  padding: 32px 26px; text-align: center; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.throne-top .throne-wrap { margin-bottom: 0; }
.throne-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sub); margin-bottom: 24px;
}
.king-avatar-ring {
  width: 96px; height: 96px; margin: 0 auto 20px;
  border-radius: 50%; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); position: relative;
}
.king-avatar-ring.crowned { border-color: var(--accent); box-shadow: 0 0 0 4px var(--red-dim); }
.king-avatar-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.king-svg { color: var(--muted); }
.crowned .king-svg { color: var(--accent); }
.king-name { font-family: var(--display); font-size: clamp(28px,4.5vw,44px); font-weight: 750; color: var(--text); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 6px; text-transform: none; }
.king-name.empty { color: var(--muted); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.king-team-tag { font-family: var(--sans); font-size: 13px; color: var(--sub); margin-bottom: 20px; text-transform: none; letter-spacing: 0; }
.king-stats {
  display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 10px; background: var(--surface);
}
.king-stat { padding: 12px 24px; border-right: 1px solid var(--border); text-align: center; }
.king-stat:last-child { border-right: none; }
.king-stat-val { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.king-stat:first-child .king-stat-val { color: var(--accent); }
.king-stat-lbl { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: 0.03em; text-transform: uppercase; }

/* ── Flag submission ── */
.flag-submit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.flag-submit-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 520px) { .flag-submit-row { grid-template-columns: 1fr; } }
.flag-submit-hint { font-family: var(--sans); font-size: 12.5px; color: var(--sub); margin-top: 12px; text-transform: none; letter-spacing: 0; }
.flag-submit-locked {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 20px; color: var(--sub); font-family: var(--sans); font-size: 13.5px;
}
.flag-submit-locked a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Machine reset loading state (spinner while a new box deploys) ── */
.mgc-loading { padding: 40px 24px 46px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mgc-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--border2); border-top-color: var(--accent);
  animation: mgc-spin 0.9s linear infinite;
}
@keyframes mgc-spin { to { transform: rotate(360deg); } }
.mgc-loading-title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.mgc-loading-sub { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ── Machine actions bar (vote-to-reset + feedback) ── */
.throne-actions { max-width: 480px; margin: 0 auto var(--gap-lg); text-align: center; }
.throne-actions .vote-wrap { margin-top: 0; }

/* ── Flags + history split ── */
.throne-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: var(--gap-lg); }
@media (max-width: 760px) { .throne-split { grid-template-columns: 1fr; } }
