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

:root {
  --bg-deep: #0a0a1a;
  --bg-card: rgba(16, 16, 36, 0.88);
  --bg-card-hover: rgba(24, 24, 50, 0.92);
  --border: rgba(255, 140, 66, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  --accent: #ff8c42;
  --accent-dark: #e8601c;
  --accent-glow: rgba(255, 140, 66, 0.25);
  --green: #44cc88;
  --red: #ff6b6b;
  --gold: #ffd700;
  --text: #e8e6e3;
  --text-dim: #888;
  --text-muted: #555;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

@font-face {
  font-family: 'GameFont';
  src: local('Segoe UI'), local('SF Pro Display'), local('-apple-system'), local('sans-serif');
}

body {
  font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, var(--bg-deep) 0%, #111128 40%, #1a0e2e 100%);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ─── CARD ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 140, 66, 0.04);
  animation: fadeUp 0.4s ease-out;
}

.card.wide { max-width: 580px; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.logo-icon { font-size: 56px; display: block; margin-bottom: 8px; text-align: center; }

.title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.2;
}

.title-lg { font-size: 34px; }

.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

.label {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ─── INPUTS ─────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input:focus {
  border-color: var(--accent);
  background: rgba(255, 140, 66, 0.04);
}

.input::placeholder { color: var(--text-muted); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
  width: 100%;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 32px rgba(255, 140, 66, 0.4); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255, 140, 66, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 10px;
}

.btn-danger {
  background: rgba(255, 107, 107, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active {
  background: rgba(255, 140, 66, 0.18);
  color: var(--accent);
}

/* ─── FORM ───────────────────────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack > .btn { margin-top: 6px; }

.error-text {
  color: var(--red);
  font-size: 13px;
  text-align: center;
}

/* ─── PLAYER CHIPS ───────────────────────────────────────────────────────── */
.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  animation: slideIn 0.3s ease-out;
}

.player-chip .avatar { font-size: 20px; }
.player-chip .name { font-weight: 600; font-size: 14px; }

.player-chip .remove-btn {
  background: rgba(255, 100, 100, 0.15);
  border: none;
  color: var(--red);
  border-radius: var(--radius-xs);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.player-chip .remove-btn:hover { background: rgba(255, 100, 100, 0.3); }

.add-bot-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}

.add-bot-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── ROUND SELECTOR ─────────────────────────────────────────────────────── */
.round-selector { text-align: center; margin: 16px 0; }
.round-btns { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }

.round-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ccc;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.round-btn.active {
  background: rgba(255, 140, 66, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── ROOM CODE ──────────────────────────────────────────────────────────── */
.room-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  margin: 16px 0;
  background: rgba(255, 140, 66, 0.06);
  border: 1px solid rgba(255, 140, 66, 0.2);
  border-radius: 14px;
}

.room-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

.copy-btn {
  background: rgba(255, 140, 66, 0.15);
  border: none;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* ─── ROLE REVEAL ────────────────────────────────────────────────────────── */
.role-card { text-align: center; }

.role-hidden {
  padding: 40px 0;
  font-size: 64px;
}

.role-badge {
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 20px 0 28px;
  text-align: center;
}

.role-badge .icon { font-size: 48px; }
.role-badge .role-title { font-size: 24px; font-weight: 800; letter-spacing: 4px; margin: 12px 0 8px; }
.role-badge .role-desc { font-size: 14px; opacity: 0.9; line-height: 1.6; }

.role-badge.traitor { background: linear-gradient(135deg, #ff4444, #cc0000); }
.role-badge.sailor { background: linear-gradient(135deg, var(--green), #22aa66); }

.waiting-text { color: var(--text-dim); font-size: 14px; text-align: center; margin-top: 16px; }

/* ─── QUESTION PHASE ─────────────────────────────────────────────────────── */
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.q-round {
  background: rgba(255, 140, 66, 0.12);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

.q-category { color: var(--text-dim); }

.q-role { font-weight: 700; }
.q-role.traitor { color: var(--red); }
.q-role.sailor { color: var(--green); }

/* Timer */
.timer-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s linear, background 0.5s;
}

.timer-text {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
}

/* Question box */
.question-box {
  background: rgba(20, 20, 40, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.question-text {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.impostor-hint {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.18);
  font-size: 13px;
  color: var(--red);
}

/* Answers */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .answers-grid { grid-template-columns: 1fr; }
}

.answer-btn {
  padding: 18px 16px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid;
  background: transparent;
}

.answer-btn:disabled { cursor: not-allowed; }
.answer-btn.selected { transform: scale(1.03); }
.answer-btn.eliminated { opacity: 0.25; pointer-events: none; }

.answer-btn .letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.answer-btn .text { flex: 1; text-align: left; }

.answer-btn.color-0 { border-color: #e74c3c; color: #e74c3c; }
.answer-btn.color-0.selected { background: #e74c3c; color: #fff; }
.answer-btn.color-1 { border-color: #3498db; color: #3498db; }
.answer-btn.color-1.selected { background: #3498db; color: #fff; }
.answer-btn.color-2 { border-color: #f39c12; color: #f39c12; }
.answer-btn.color-2.selected { background: #f39c12; color: #fff; }
.answer-btn.color-3 { border-color: #2ecc71; color: #2ecc71; }
.answer-btn.color-3.selected { background: #2ecc71; color: #fff; }

/* Answer count indicator */
.answer-count {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

/* ─── JOKERS ─────────────────────────────────────────────────────────────── */
.jokers-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.joker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 200, 100, 0.2);
  background: rgba(255, 200, 100, 0.06);
  color: #ffc864;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.joker-btn:hover { background: rgba(255, 200, 100, 0.12); border-color: rgba(255, 200, 100, 0.35); }
.joker-btn .count { font-size: 11px; opacity: 0.7; }

/* ─── CHAT ───────────────────────────────────────────────────────────────── */
.chat-toggle {
  display: block;
  margin: 0 auto;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
}

.chat-box {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(16, 16, 36, 0.8);
  overflow: hidden;
  animation: fadeIn 0.2s;
}

.chat-messages {
  max-height: 140px;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 13px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.chat-msg { margin-bottom: 6px; line-height: 1.4; }
.chat-msg .author { color: var(--accent); font-weight: 600; }
.chat-empty { color: var(--text-muted); text-align: center; }

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.chat-send {
  padding: 10px 16px;
  border: none;
  background: rgba(255, 140, 66, 0.15);
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

/* ─── RESULTS ────────────────────────────────────────────────────────────── */
.results-card { text-align: center; }

.results-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.results-title.correct { color: var(--green); }
.results-title.wrong { color: var(--red); }

.correct-answer {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 24px;
}

.correct-answer strong { color: var(--gold); }

.answers-breakdown {
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 20px;
}

.vote-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
}

.vote-row:last-child { border-bottom: none; }
.vote-row .correct { color: var(--green); }
.vote-row .wrong { color: var(--red); }

.score-impact {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius-sm);
}

/* ─── VOTE PHASE ─────────────────────────────────────────────────────────── */
.vote-card { text-align: center; }

.vote-candidates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.vote-player-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  color: var(--text);
  width: 100%;
  text-align: left;
  font-size: 15px;
}

.vote-player-btn:hover:not(:disabled) {
  background: rgba(255, 140, 66, 0.08);
  border-color: rgba(255, 140, 66, 0.25);
}

.vote-player-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.vote-player-btn .avatar { font-size: 26px; }
.vote-player-btn .name { font-weight: 600; flex: 1; }

.shield-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 20px;
}

.hint-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.hint-badge.innocent { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.hint-badge.suspect { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* ─── VOTE RESULTS ───────────────────────────────────────────────────────── */
.vote-bar-chart { margin-bottom: 24px; }

.vote-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.vote-bar-row .player-name { min-width: 100px; }
.vote-bar-row .player-name.impostor { color: var(--red); }
.vote-bar-row .count { min-width: 30px; text-align: right; color: var(--text-dim); }

.vote-bar-track {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease-out;
}

.vote-bar-fill.impostor { background: var(--red); }
.vote-bar-fill.innocent { background: #3498db; }

.vote-verdict {
  margin: 20px 0;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.vote-verdict .icon { font-size: 32px; display: block; margin-bottom: 8px; }

/* ─── GAME OVER ──────────────────────────────────────────────────────────── */
.game-over-card { text-align: center; }

.game-over-title {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 120px;
  border-radius: 16px 16px 4px 4px;
  padding: 20px 10px 16px;
  background: rgba(255, 200, 100, 0.05);
  border: 1px solid rgba(255, 200, 100, 0.12);
}

.podium-spot .icon { font-size: 28px; }
.podium-spot.first .icon { font-size: 40px; }
.podium-spot .username { font-weight: 700; font-size: 14px; }
.podium-spot .username.impostor { color: var(--red); }
.podium-spot .username.sailor { color: var(--green); }
.podium-spot .score { color: var(--gold); font-weight: 800; font-size: 22px; }
.podium-spot .role-tag { font-size: 11px; color: var(--red); }

.full-ranking { margin-bottom: 24px; }

.rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.rank-row .rank { color: var(--text-muted); min-width: 32px; }
.rank-row .name { flex: 1; }
.rank-row .name.impostor { color: var(--red); }
.rank-row .pts { color: var(--gold); font-weight: 700; }

.game-over-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.game-over-btns .btn { width: auto; min-width: 140px; }

/* ─── SCOREBOARD ─────────────────────────────────────────────────────────── */
.scoreboard-card {}

.score-list {}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: slideIn 0.3s ease-out;
}

.score-row .rank { min-width: 32px; font-size: 18px; }
.score-row .name { flex: 1; font-weight: 600; }
.score-row .pts { color: var(--gold); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

/* ─── MENU ───────────────────────────────────────────────────────────────── */
.menu-header { text-align: center; margin-bottom: 36px; }
.menu-welcome { color: var(--text-dim); font-size: 16px; margin-top: 12px; }
.menu-welcome strong { color: var(--accent); }

.menu-buttons { display: flex; flex-direction: column; gap: 14px; }

.menu-play-btn {
  padding: 20px 24px;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 28px var(--accent-glow);
  transition: transform 0.12s, box-shadow 0.2s;
}

.menu-play-btn:hover { box-shadow: 0 6px 36px rgba(255, 140, 66, 0.4); }
.menu-play-btn:active { transform: scale(0.97); }

/* ─── JOIN ROOM ──────────────────────────────────────────────────────────── */
.join-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.join-row {
  display: flex;
  gap: 8px;
}

.join-row .input { flex: 1; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; }

/* ─── NOTIFICATION TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.info { background: rgba(52, 152, 219, 0.9); color: #fff; }
.toast.success { background: rgba(68, 204, 136, 0.9); color: #fff; }
.toast.error { background: rgba(255, 107, 107, 0.9); color: #fff; }
.toast.joker { background: rgba(255, 200, 100, 0.9); color: #1a1a2e; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── LOADING ────────────────────────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── INFO BAR ───────────────────────────────────────────────────────────── */
.info-bar {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ─── UTILITY ────────────────────────────────────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.fw-700 { font-weight: 700; }
.fs-13 { font-size: 13px; }
.fs-16 { font-size: 16px; }
.gap-12 { gap: 12px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  .title { font-size: 24px; }
  .podium-spot { width: 90px; padding: 14px 6px 12px; }
  .podium-spot .score { font-size: 18px; }
  .room-code { font-size: 22px; letter-spacing: 4px; }
}
