/* ===== EXCITE TIKI GAMES — shared theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Inline&family=Rubik:wght@400;500;700&display=swap');

:root {
  --jungle-deep: #061509;
  --jungle-dark: #0d2613;
  --jungle-mid: #1a4020;
  --jungle-light: #2d6b35;
  --jungle-leaf: #3d8a45;
  --fire-glow: #ffb627;
  --fire-orange: #ff8c1a;
  --fire-red: #d83a1a;
  --wood-dark: #3d1f0a;
  --wood-mid: #6b3410;
  --wood-light: #a0632a;
  --wood-light2: #c98c4d;
  --frangipani: #fff4d6;
  --frangipani-pink: #ff7a9c;
  --tribal-red: #c44025;
  --text: #fff8e7;
  --text-muted: #c9b88a;
  --shadow: 0 4px 20px rgba(0,0,0,0.6);
  --glow: 0 0 24px rgba(255,182,39,0.6);
  --glow-strong: 0 0 36px rgba(255,140,26,0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overscroll-behavior: none; }

body {
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,140,26,0.18), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(255,140,26,0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,140,26,0.10), transparent 50%),
    linear-gradient(180deg, #061509 0%, #0d2613 40%, #061509 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Jungle leaf decoration overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 5% 10%, rgba(61,138,69,0.25) 0, transparent 8%),
    radial-gradient(circle at 95% 15%, rgba(61,138,69,0.20) 0, transparent 10%),
    radial-gradient(circle at 8% 90%, rgba(61,138,69,0.20) 0, transparent 12%),
    radial-gradient(circle at 92% 88%, rgba(61,138,69,0.22) 0, transparent 10%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px calc(32px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

/* ===== HEADER ===== */
header.brand {
  text-align: center;
  padding: 24px 16px 12px;
  position: relative;
}

.brand-tag {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--fire-glow);
  text-transform: uppercase;
  background: rgba(13,38,19,0.6);
  border: 1px solid rgba(255,182,39,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.brand-title {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.95;
  background: linear-gradient(180deg, #ffd47a 0%, #ff8c1a 50%, #c44025 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 0 rgba(0,0,0,0.4);
  letter-spacing: 2px;
  filter: drop-shadow(0 0 18px rgba(255,140,26,0.5));
}

.brand-sub {
  font-family: 'Bungee Inline', sans-serif;
  font-size: clamp(20px, 3.5vw, 32px);
  color: var(--frangipani);
  letter-spacing: 4px;
  margin-top: 8px;
  text-shadow: 0 0 12px rgba(255,182,39,0.5);
}

.brand-info {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.brand-info b { color: var(--fire-glow); }

/* ===== GAME GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .game-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; }
}

.game-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(107,52,16,0.85), rgba(61,31,10,0.95)),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,0.15) 6px 7px);
  border: 3px solid var(--wood-light);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
/* Top text block grows to fill available height so the PLAY button + prize
   line align across all 4 cards, regardless of description length. */
.game-card > div:first-child { flex: 1 1 auto; }
.game-card .play-btn { align-self: center; margin-top: auto; }
@media (min-width: 700px) {
  .game-card { padding: 20px; min-height: 220px; }
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,182,39,0.3);
  border-radius: 10px;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,140,26,0.4), 0 0 0 2px var(--fire-glow);
}

.game-card .icon {
  font-size: 42px;
  filter: drop-shadow(0 0 14px rgba(255,140,26,0.7));
  margin-bottom: 6px;
}
@media (min-width: 700px) { .game-card .icon { font-size: 56px; margin-bottom: 8px; } }

.game-card h3 {
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  color: var(--frangipani);
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6);
  line-height: 1.1;
}
@media (min-width: 700px) { .game-card h3 { font-size: 22px; letter-spacing: 1.5px; } }

.game-card p {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}
@media (min-width: 700px) { .game-card p { font-size: 13px; line-height: 1.4; margin-top: 6px; } }

.play-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 12px 18px;
  min-height: 44px;
  background: linear-gradient(180deg, var(--fire-glow), var(--fire-orange));
  border: 2px solid var(--fire-red);
  color: #2a0a00;
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow: 0 3px 0 var(--fire-red), 0 6px 14px rgba(0,0,0,0.4);
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (min-width: 700px) { .play-btn { font-size: 14px; margin-top: 14px; } }
.play-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--fire-red), 0 8px 18px rgba(255,140,26,0.5); }
.play-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--fire-red); }
.play-btn:disabled,
.play-btn[disabled] {
  cursor: wait;
  opacity: 0.85;
  /* Force text + bg colours so disabled state stays readable across browsers */
  background: linear-gradient(180deg, var(--fire-glow), var(--fire-orange));
  color: #2a0a00 !important;
  border-color: var(--fire-red);
  -webkit-text-fill-color: #2a0a00; /* Safari override */
}

.btn-ghost {
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--wood-light);
  color: var(--text-muted);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--frangipani); border-color: var(--fire-glow); }

/* ===== GAME SCREEN ===== */
.game-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}
.game-screen.active { display: flex; }

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin-bottom: 12px;
  padding: 0 8px;
}

.game-title {
  font-family: 'Bungee', sans-serif;
  font-size: 22px;
  color: var(--fire-glow);
  letter-spacing: 1.5px;
}

.score-pill {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--fire-glow);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Bungee', sans-serif;
  color: var(--frangipani);
  font-size: 16px;
  min-width: 80px;
  text-align: center;
}

.canvas-frame {
  position: relative;
  border: 4px solid var(--wood-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--wood-dark), 0 12px 40px rgba(0,0,0,0.7), 0 0 60px rgba(255,140,26,0.15);
  background: #000;
}

.game-canvas {
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  max-width: 100%;
}

/* Prevent page scroll while a game is active, but allow leaderboard to scroll if needed */
body.playing { overflow: hidden; }
body.playing .game-screen { max-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,21,9,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.game-overlay.hidden { display: none; }

.game-overlay h2 {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 32px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255,140,26,0.6);
  margin-bottom: 10px;
}
.game-overlay p { color: var(--text-muted); font-size: 14px; max-width: 320px; line-height: 1.5; margin-bottom: 18px; }
.game-overlay .final-score {
  font-family: 'Bungee', sans-serif;
  font-size: 56px;
  color: var(--frangipani);
  text-shadow: 0 0 30px var(--fire-glow);
  margin: 12px 0;
}
.game-overlay .final-score.countdown-pulse {
  font-size: 96px;
  animation: countdownPop 0.6s ease-out;
}

/* ===== ARTIST SHOUTOUT (game-over) ===== */
.artist-shoutout {
  margin: 16px auto 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,140,26,0.18), rgba(216,58,26,0.12));
  border: 2px solid var(--fire-glow);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255,140,26,0.25);
  animation: shoutoutIn 0.45s ease-out;
}
.artist-shoutout.hidden { display: none; }
.artist-photo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--fire-glow);
  box-shadow: 0 0 14px rgba(255,140,26,0.6);
}
.artist-msg {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  color: var(--frangipani);
  font-weight: 700;
  text-align: left;
}
@keyframes shoutoutIn {
  0%   { opacity: 0; transform: translateY(8px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes countdownPop {
  0%   { transform: scale(0.4); opacity: 0; text-shadow: 0 0 0 var(--fire-glow); }
  40%  { transform: scale(1.15); opacity: 1; text-shadow: 0 0 60px var(--fire-orange); }
  100% { transform: scale(1); opacity: 1; text-shadow: 0 0 30px var(--fire-glow); }
}
.game-overlay .btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.controls-hint {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

/* ===== ULTIMATE PRIZE BANNER ===== */
.prize-banner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255,182,39,0.15), rgba(216,58,26,0.1)),
    linear-gradient(180deg, rgba(107,52,16,0.85), rgba(61,31,10,0.95));
  border: 2px solid var(--fire-glow);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(255,140,26,0.25), inset 0 0 20px rgba(255,182,39,0.08);
}
.prize-crown {
  font-size: 38px;
  filter: drop-shadow(0 0 14px var(--fire-glow));
  animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.prize-text { flex: 1; min-width: 0; }
.prize-title {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.prize-sub { color: var(--text); font-size: 12px; line-height: 1.4; }
.prize-sub b { color: var(--fire-glow); }

/* ===== CARD PRIZE STRIP ===== */
.card-prize {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,182,39,0.25);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.card-prize span { white-space: nowrap; }

/* ===== OVERALL LEADERBOARD ===== */
.overall-leaderboard {
  margin-top: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,182,39,0.15), transparent 70%),
    rgba(13,38,19,0.85);
  border: 3px solid var(--fire-glow);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 0 32px rgba(255,140,26,0.2);
}
.overall-lb-title {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 17px;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 0 14px rgba(255,140,26,0.6);
}
.overall-lb-title .lb-sub {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
  font-weight: 400;
  text-shadow: none;
}
#overall-lb-list { list-style: none; counter-reset: olb; padding: 0; margin: 0; }
#overall-lb-list li {
  counter-increment: olb;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(255,182,39,0.18);
}
#overall-lb-list li:last-child { border-bottom: none; }
#overall-lb-list li::before {
  content: counter(olb);
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  width: 28px;
  font-size: 16px;
  text-align: center;
}
#overall-lb-list li:nth-child(1)::before { content: '👑'; font-size: 22px; }
#overall-lb-list li:nth-child(2)::before { content: '🥈'; font-size: 18px; }
#overall-lb-list li:nth-child(3)::before { content: '🥉'; font-size: 18px; }
#overall-lb-list .name { flex: 1; color: var(--frangipani); font-weight: 700; font-size: 14px; }
#overall-lb-list .pts {
  color: var(--fire-glow);
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255,182,39,0.4);
}
#overall-lb-list .empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 16px 0; }
.overall-lb-prize {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px dashed rgba(255,182,39,0.2);
}
.overall-lb-prize b { color: var(--fire-glow); }

/* ===== DJ CROWN — non-prize artist leaderboard ===== */
/* Reuses the overall leaderboard styles with a darker, slightly more muted
   palette so it's clearly secondary to the prize-eligible board above. */
.dj-leaderboard {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(13,38,19,0.8), rgba(6,21,9,0.9));
  border: 2px solid #6b3410;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.dj-lb-title {
  font-family: 'Bungee', sans-serif;
  text-align: center;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #ff8c1a;
  margin: 0 0 12px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6);
}
.dj-lb-title .lb-sub {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
#dj-lb-list { list-style: none; counter-reset: dlb; padding: 0; margin: 0; }
#dj-lb-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 8px 36px;
  font-size: 14px;
  position: relative;
  border-bottom: 1px solid rgba(255,140,26,0.08);
}
#dj-lb-list li:last-child { border-bottom: none; }
#dj-lb-list li::before {
  counter-increment: dlb;
  content: '🎧 ' counter(dlb);
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8c1a;
  font-size: 11px;
  font-weight: bold;
  width: 28px;
  text-align: left;
}
#dj-lb-list li .name { flex: 1; padding-right: 8px; color: #fff4d6; }
#dj-lb-list li .pts { color: #ffb627; font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; }
.dj-lb-note {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px dashed rgba(107,52,16,0.4);
  font-style: italic;
}
.dj-lb-section-label {
  margin: 14px 0 6px;
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #ffb627;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.dj-lb-section-label:first-of-type { margin-top: 0; }
.dj-per-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dj-per-game-grid .dj-lb-card {
  background: rgba(13,38,19,0.6);
  border-color: rgba(107,52,16,0.6);
}

/* ===== REVEAL COUNTDOWN ===== */
.reveal-countdown {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px;
}
.reveal-countdown b { color: var(--fire-glow); }

/* ===== POST-REVEAL MODE ===== */
body.post-reveal .game-grid,
body.post-reveal .vote-bar,
body.post-reveal .prize-banner,
body.post-reveal .reveal-countdown { display: none; }
body.post-reveal .winners-banner { display: block; }
body.post-reveal .hub-leaderboards { display: block; margin-top: 16px; }
body.post-reveal .overall-leaderboard { margin-top: 0; }

.winners-banner {
  display: none;
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,140,26,0.2), rgba(216,58,26,0.15));
  border: 3px solid var(--fire-glow);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 32px rgba(255,140,26,0.3);
}
.winners-banner h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 28px;
  color: var(--fire-glow);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255,140,26,0.8);
  margin-bottom: 6px;
}
.winners-banner p { font-size: 13px; color: var(--text); }

/* ===== HUB LEADERBOARDS ===== */
.hub-leaderboards {
  margin-top: 24px;
  background: rgba(13,38,19,0.7);
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  padding: 14px;
}
.hub-lb-title {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 12px;
}
.hub-lb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .hub-lb-grid { grid-template-columns: repeat(2, 1fr); } }
.hub-lb-card {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,182,39,0.25);
  border-radius: 8px;
  padding: 10px 12px;
}
.hub-lb-card h6 {
  font-family: 'Bungee', sans-serif;
  color: var(--frangipani);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-lb-card h6 .ico { font-size: 18px; filter: drop-shadow(0 0 4px var(--fire-orange)); }
.hub-lb-card ol { list-style: none; counter-reset: hr; padding: 0; margin: 0; }
.hub-lb-card li {
  counter-increment: hr;
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 3px 0;
  color: var(--text-muted);
}
.hub-lb-card li::before { content: counter(hr); width: 18px; color: var(--fire-glow); font-family: 'Bungee', sans-serif; }
.hub-lb-card li:nth-child(1)::before { color: gold; }
.hub-lb-card li:nth-child(2)::before { color: silver; }
.hub-lb-card li:nth-child(3)::before { color: #cd7f32; }
.hub-lb-card .name { flex: 1; padding-left: 6px; color: var(--frangipani); }
.hub-lb-card .pts { color: var(--fire-glow); font-family: 'Bungee', sans-serif; font-size: 12px; }
.hub-lb-card .empty { font-size: 11px; color: var(--text-muted); text-align: center; padding: 6px 0; }

/* ===== LEADERBOARD (kept for game-over overlay) ===== */
.leaderboard {
  margin-top: 20px;
  width: 100%;
  max-width: 480px;
  background: rgba(13,38,19,0.7);
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  padding: 14px 18px;
}
.leaderboard h4 {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 10px;
}
.leaderboard ol { list-style: none; counter-reset: rank; }
.leaderboard li {
  counter-increment: rank;
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,182,39,0.15);
  font-size: 14px;
}
.leaderboard li::before {
  content: counter(rank);
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  width: 24px;
}
.leaderboard li:nth-child(1)::before { color: gold; }
.leaderboard li:nth-child(2)::before { color: silver; }
.leaderboard li:nth-child(3)::before { color: #cd7f32; }
.leaderboard .name { flex: 1; padding-left: 8px; color: var(--frangipani); }
.leaderboard .pts { color: var(--text-muted); font-family: 'Bungee', sans-serif; }
.leaderboard .empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 12px 0; }

/* ===== AUTH TABS ===== */
.auth-tabs { display: flex; gap: 6px; margin: 10px 0 14px; }
.auth-tab {
  flex: 1;
  padding: 10px 8px;
  background: rgba(0,0,0,0.45);
  border: 2px solid var(--wood-light);
  color: var(--text-muted);
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.auth-tab.active {
  background: linear-gradient(180deg, var(--fire-glow), var(--fire-orange));
  color: #2a0a00;
  border-color: var(--fire-red);
  box-shadow: 0 2px 0 var(--fire-red);
}
.auth-pane.hidden { display: none; }
.auth-fineprint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}
.auth-error {
  background: rgba(216,58,26,0.15);
  border: 1px solid var(--fire-red);
  color: #ffaaaa;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}
.auth-error.hidden { display: none; }

/* ===== PLAYER CHIP (logged-in indicator on hub) ===== */
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 12px;
  background: rgba(13,38,19,0.7);
  border: 1px solid var(--fire-glow);
  border-radius: 20px;
  font-size: 12px;
  color: var(--frangipani);
  letter-spacing: 0.5px;
}
.player-chip.hidden { display: none; }
.player-chip #player-chip-name { font-weight: 700; }
.chip-logout {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--wood-light);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 14px;
  font-family: 'Bungee', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip-logout:hover { color: var(--fire-glow); }

/* ===== EMAIL GATE ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,21,9,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal-backdrop.hidden { display: none; }

.modal {
  background:
    linear-gradient(180deg, rgba(107,52,16,0.95), rgba(61,31,10,0.98));
  border: 3px solid var(--wood-light);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 100px rgba(255,140,26,0.3);
  text-align: center;
  position: relative;
}
.modal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,182,39,0.3);
  border-radius: 12px;
  pointer-events: none;
}
.modal h3 {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 22px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.modal p { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; line-height: 1.5; }
.modal input {
  width: 100%;
  padding: 14px 16px;
  min-height: 48px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--wood-light);
  border-radius: 10px;
  color: var(--frangipani);
  font-family: 'Rubik', sans-serif;
  font-size: 16px; /* prevents iOS zoom on focus */
  margin-bottom: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.modal input:focus { border-color: var(--fire-glow); box-shadow: 0 0 0 3px rgba(255,182,39,0.2); }

/* ===== LINEUP STRIP (artist circles) ===== */
.lineup-strip {
  margin-top: 24px;
  padding: 14px 12px 16px;
  background: rgba(13,38,19,0.8);
  border: 2px dashed rgba(255,182,39,0.4);
  border-radius: 12px;
  text-align: center;
}
.lineup-strip h5 {
  font-family: 'Bungee', sans-serif;
  color: var(--fire-glow);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.lineup-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 8px;
  -webkit-overflow-scrolling: touch;
}
.lineup-row::-webkit-scrollbar { display: none; }
.lineup-row { scrollbar-width: none; -ms-overflow-style: none; }
.lineup-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--fire-glow);
  box-shadow: 0 0 10px rgba(255,140,26,0.5);
  object-fit: cover;
  scroll-snap-align: center;
  transition: transform 0.2s;
}
.lineup-avatar:hover { transform: scale(1.06); }
@media (min-width: 700px) {
  .lineup-avatar { width: 72px; height: 72px; }
  .lineup-row { gap: 14px; justify-content: center; flex-wrap: wrap; overflow-x: visible; }
}
.vote-pill:hover { color: var(--fire-glow); border-color: var(--fire-glow); }
.vote-pill.voted { background: var(--fire-orange); color: #2a0a00; border-color: var(--fire-red); }

/* ===== FOOTER ===== */
footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 16px;
  border-top: 1px solid rgba(255,182,39,0.2);
}
footer b { color: var(--fire-glow); }

.back-btn {
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--wood-light);
  color: var(--text-muted);
  padding: 10px 14px;
  min-height: 44px;
  min-width: 64px;
  border-radius: 8px;
  font-family: 'Bungee', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.back-btn:hover { color: var(--fire-glow); border-color: var(--fire-glow); }
.back-btn:active { transform: scale(0.96); }

/* hide scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--jungle-deep); }
::-webkit-scrollbar-thumb { background: var(--wood-mid); border-radius: 4px; }
