/* ── Hackathon design system — mirrors introduction.html / hands-on.html ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: #1a1a2e;
  min-height: 100vh;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
nav.app-nav {
  position: sticky;
  top: 0; z-index: 50;
  background: #ffffff;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 40px;
  margin: 0 24px;
  border-bottom: 1px solid rgba(26,26,46,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-wordmark { font-size: 17px; font-weight: 700; letter-spacing: -0.5px; color: #1a1a2e; }
.nav-spacer { flex: 1; }
.nav-pill {
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: rgba(26,26,46,0.55);
  background: #f0f0f5; border-radius: 999px; border: none; transition: all 0.18s ease;
  letter-spacing: -0.1px;
}
.nav-pill.active { background: #1a1a2e; color: #ffffff; }
.nav-pill:hover { color: #1a1a2e; }
.nav-pill.active:hover { color: #ffffff; }
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: rgba(26,26,46,0.5);
  padding: 6px 12px; border-radius: 8px; border: none; background: none;
  transition: background 0.12s, color 0.12s;
}
.nav-back:hover { background: rgba(26,26,46,0.05); color: #1a1a2e; }

@media (max-width: 720px) {
  nav.app-nav { padding: 12px 16px; margin: 0 8px; gap: 14px; }
}

/* ── LIVE NAV BADGE ──────────────────────────────────────────────────── */
.nav-live-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.nav-live-badge.visible { display: inline-flex; }
.nav-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
.nav-live-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
}

/* ── NAV USER (avatar + name) ────────────────────────────────────────── */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: #f4f5f7;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 56px 40px 36px; }
.hero-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(26,26,46,0.38); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.0rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -2px; line-height: 1.05; color: #1a1a2e; margin-bottom: 16px;
}
.hero-sub {
  font-size: 16px; font-weight: 400; line-height: 1.6;
  color: rgba(26,26,46,0.55); max-width: 600px; margin: 0 auto;
}
.content { max-width: 920px; margin: 0 auto; padding: 0 40px 80px; }
.content-narrow { max-width: 560px; margin: 0 auto; padding: 0 28px 80px; }
.section { margin-bottom: 48px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: rgba(26,26,46,0.4);
  padding: 5px 12px; background: rgba(26,26,46,0.05); border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.7px; color: #1a1a2e; margin-bottom: 12px; line-height: 1.15; }
h3.subhead { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: #1a1a2e; margin: 28px 0 12px; }
h4.minihead { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 18px 0 8px; }
p { color: rgba(26,26,46,0.72); margin-bottom: 12px; font-size: 15px; }
p.muted { color: rgba(26,26,46,0.5); }

/* ── PASTEL CARDS ────────────────────────────────────────────────────── */
.cb-blue   { background: #ddeeff; }
.cb-teal   { background: #d4f0ee; }
.cb-green  { background: #d4f5dc; }
.cb-purple { background: #e8dff5; }
.cb-yellow { background: #fef3cc; }
.cb-orange { background: #fde4d0; }
.cb-pink   { background: #fcddf0; }
.cb-slate  { background: #e0e4f4; }

.card {
  background: #fff;
  border: 1.5px solid rgba(26,26,46,0.08);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 14px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.card-tinted { border-radius: 18px; padding: 20px 22px; margin: 14px 0; }

/* ── INPUTS ──────────────────────────────────────────────────────────── */
label.field-label {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: rgba(26,26,46,0.55);
  margin-bottom: 8px;
}
input.field, select.field {
  width: 100%;
  font-family: inherit; font-size: 15px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid rgba(26,26,46,0.12);
  border-radius: 12px;
  color: #1a1a2e;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input.field:focus, select.field:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
textarea.field {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.55;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid rgba(26,26,46,0.12);
  border-radius: 12px;
  color: #1a1a2e;
  min-height: 200px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.field:focus { outline: none; border-color: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,26,46,0.08); }
textarea.field[readonly] { background: #f6f7fb; color: rgba(26,26,46,0.78); }

.field-row { margin-bottom: 16px; }
.field-help { font-size: 12.5px; color: rgba(26,26,46,0.5); margin-top: 6px; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  background: #1a1a2e;
  color: #fff;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.btn-secondary {
  background: rgba(26,26,46,0.06);
  color: #1a1a2e;
}
.btn.btn-secondary:hover:not(:disabled) { background: rgba(26,26,46,0.1); }
.btn.btn-success { background: #176b2c; color: #fff; }
.btn.btn-danger  { background: #b8410d; color: #fff; }
.btn.btn-ghost   { background: transparent; color: #1a1a2e; box-shadow: inset 0 0 0 1.5px rgba(26,26,46,0.18); }
.btn.btn-ghost:hover:not(:disabled) { background: rgba(26,26,46,0.04); }
.btn.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── ALERTS / BANNERS ────────────────────────────────────────────────── */
.alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 12px 0;
  border-left: 4px solid;
  background: #f6f7fb;
}
.alert.error   { background: #fde4d0; border-color: #b8410d; color: #74320a; }
.alert.success { background: #d4f5dc; border-color: #176b2c; color: #0e4519; }
.alert.warn    { background: #fef3cc; border-color: #b78c0a; color: #6b5005; }
.alert.info    { background: #ddeeff; border-color: #1f57a8; color: #163e75; }

/* ── PILLS / TAGS ────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(26,26,46,0.06);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(26,26,46,0.7);
}
.pill.dark { background: #1a1a2e; color: #fff; }
.pill.success { background: #d4f5dc; color: #0e4519; }
.pill.warn    { background: #fef3cc; color: #6b5005; }
.pill.danger  { background: #fde4d0; color: #74320a; }

.callout {
  background: #f6f7fb;
  border-left: 3px solid #1a1a2e;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 15px;
  color: rgba(26,26,46,0.78);
  line-height: 1.6;
}
.callout strong { color: #1a1a2e; }

/* ── CODE BLOCKS ─────────────────────────────────────────────────────── */
pre.code {
  background: #1a1a2e; color: #e8e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12.5px; line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.read-block {
  background: #f6f7fb;
  border: 1.5px solid rgba(26,26,46,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.5;
  color: rgba(26,26,46,0.85);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── WAITING ROOM TEAM GRID ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  border-radius: 16px;
  padding: 16px 18px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.team-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.team-card.is-mine { box-shadow: 0 0 0 2.5px #1a1a2e; }
.team-card .tc-num {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(26,26,46,0.5); margin-bottom: 6px;
}
.team-card .tc-title {
  font-size: 16px; font-weight: 800; color: #1a1a2e; letter-spacing: -0.2px; margin-bottom: 8px;
}
.team-card .tc-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(26,26,46,0.7);
}
.team-card .tc-count .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #176b2c;
  display: inline-block;
}

/* ── GAME PAGE ───────────────────────────────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) { .game-grid { grid-template-columns: 1fr; } }

.scenario-block {
  border: 1.5px solid rgba(26,26,46,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
  margin-bottom: 14px;
}
.scenario-block.locked { opacity: 0.55; pointer-events: none; }
.scenario-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.scenario-head .s-title { font-size: 15px; font-weight: 800; color: #1a1a2e; }

/* ── ATTEMPTS DOTS ───────────────────────────────────────────────────── */
.attempt-dots { display: inline-flex; gap: 6px; margin-left: 4px; }
.attempt-dots .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(26,26,46,0.15);
  border: 1.5px solid rgba(26,26,46,0.2);
}
.attempt-dots .dot.used { background: #1a1a2e; border-color: #1a1a2e; }
.attempt-dots .dot.last { background: #b8410d; border-color: #b8410d; }

/* ── SCORE PANEL ─────────────────────────────────────────────────────── */
.score-card {
  border-radius: 18px;
  padding: 20px 22px;
  background: #f6f7fb;
  border: 1.5px solid rgba(26,26,46,0.08);
}
.score-total {
  font-size: 44px; font-weight: 800; letter-spacing: -1.5px; color: #1a1a2e;
  line-height: 1; margin: 4px 0;
}
.score-label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(26,26,46,0.55); }
.score-band { display: inline-block; margin-top: 6px; }
.score-breakdown {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed rgba(26,26,46,0.15);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  font-size: 13px;
}
.score-breakdown .row-label { color: rgba(26,26,46,0.7); }
.score-breakdown .row-val { font-weight: 700; color: #1a1a2e; font-variant-numeric: tabular-nums; }

.score-list-h { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(26,26,46,0.5); margin: 14px 0 6px; }
.score-list { font-size: 13.5px; padding-left: 18px; }
.score-list li { margin-bottom: 4px; color: rgba(26,26,46,0.78); }

/* ── ADMIN TABS ──────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: #f0f0f5; border-radius: 999px;
  width: fit-content; margin-bottom: 24px;
}
.tab {
  padding: 8px 18px; font-size: 13px; font-weight: 600; letter-spacing: -0.1px;
  color: rgba(26,26,46,0.55); background: none; border: none; border-radius: 999px;
  transition: all 0.18s ease;
}
.tab:hover { color: #1a1a2e; }
.tab.active { background: #1a1a2e; color: #fff; }
.tab.active:hover { color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── BAR CHART ───────────────────────────────────────────────────────── */
.bar-chart { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .bar-name { font-weight: 600; color: #1a1a2e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { height: 18px; background: rgba(26,26,46,0.05); border-radius: 9px; overflow: hidden; }
.bar-row .bar-fill {
  height: 100%; background: #1a1a2e;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; color: #fff; font-size: 11px; font-weight: 700;
  transition: width 0.4s ease;
}
.bar-row .bar-num { font-variant-numeric: tabular-nums; font-weight: 700; color: rgba(26,26,46,0.7); text-align: right; }
.bar-row.maxed .bar-fill { background: #b8410d; }

/* ── LEADERBOARD BARS ────────────────────────────────────────────────── */
.lb-bars { display: flex; flex-direction: column; gap: 6px; }
.lb-row {
  display: grid;
  grid-template-columns: 36px 140px 1fr 60px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  transition: transform 0.3s ease;
}
.lb-rank {
  font-weight: 800;
  font-size: 15px;
  color: #1a1a2e;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lb-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.lb-bar-name {
  color: #1a1a2e;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-bar-team {
  color: rgba(26,26,46,0.55);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-bar-wrap { position: relative; }
.lb-bar-track {
  height: 32px;
  background: rgba(26,26,46,0.04);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.lb-bar-fill {
  height: 100%;
  background: #1a1a2e;
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.lb-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1a1a2e;
  text-align: right;
  font-size: 14px;
}

/* Top 3 Premium Shimmer */
.lb-row.rank-1 .lb-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #d97706, #fcd34d, #d97706, #f59e0b);
  background-size: 200% 100%;
  animation: barShimmer 4s linear infinite;
}
.lb-row.rank-2 .lb-bar-fill {
  background: linear-gradient(90deg, #94a3b8, #64748b, #e2e8f0, #64748b, #94a3b8);
  background-size: 200% 100%;
  animation: barShimmer 5s linear infinite reverse;
}
.lb-row.rank-3 .lb-bar-fill {
  background: linear-gradient(90deg, #cd7f32, #a0522d, #f4a460, #a0522d, #cd7f32);
  background-size: 200% 100%;
  animation: barShimmer 6s linear infinite;
}
.lb-row.rank-1 .lb-rank { color: #d97706; }
.lb-row.rank-2 .lb-rank { color: #64748b; }
.lb-row.rank-3 .lb-rank { color: #a0522d; }

@keyframes barShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── FULLSCREEN MODE ──────────────────────────────────────────────────── */
#lb-card.lb-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9990;
  border-radius: 0;
  margin: 0;
  background: #f8fafc;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 40px 60px;
}
#lb-card.lb-fullscreen .subhead { color: #1a1a2e; }
#lb-card.lb-fullscreen .muted { color: rgba(26,26,46,0.55); }
#lb-card.lb-fullscreen .btn-secondary { color: #1a1a2e; border-color: rgba(26,26,46,0.2); background: #fff; }
#lb-card.lb-fullscreen .lb-row { gap: 16px; padding: 6px 0; grid-template-columns: 48px 240px 1fr 80px; }
#lb-card.lb-fullscreen .lb-rank { font-size: 22px; color: rgba(26,26,46,0.5); }
#lb-card.lb-fullscreen .lb-bar-track { height: 48px; background: rgba(26,26,46,0.05); border-radius: 14px; }
#lb-card.lb-fullscreen .lb-bar-fill { border-radius: 14px; }
#lb-card.lb-fullscreen .lb-bar-name { font-size: 16px; color: #1a1a2e; }
#lb-card.lb-fullscreen .lb-bar-team { font-size: 13px; color: rgba(26,26,46,0.6); }
#lb-card.lb-fullscreen .lb-score { font-size: 20px; color: #1a1a2e; }
#lb-card.lb-fullscreen .lb-row.rank-1 .lb-rank { color: #d97706; }
#lb-card.lb-fullscreen .lb-row.rank-2 .lb-rank { color: #64748b; }
#lb-card.lb-fullscreen .lb-row.rank-3 .lb-rank { color: #a0522d; }



/* ── TABLE ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(26,26,46,0.06); }
.tbl th { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(26,26,46,0.55); }
.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.tbl tr:hover { background: #f6f7fb; }

/* ── STATS GRID ──────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff;
  border: 1.5px solid rgba(26,26,46,0.08);
  border-radius: 14px;
  padding: 14px 16px;
}
.stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: rgba(26,26,46,0.55); margin-bottom: 6px;
}
.stat-value { font-size: 28px; font-weight: 800; color: #1a1a2e; letter-spacing: -1px; line-height: 1.1; }

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  height: 400px;
  margin: 40px 0;
}
.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 180px;
  text-align: center;
}
.podium-info {
  margin-bottom: 16px;
  width: 100%;
}
.podium-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.podium-team {
  font-size: 12px;
  color: rgba(26,26,46,0.55);
}
.podium-step {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  color: white;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.podium-rank { font-size: 42px; font-weight: 900; line-height: 1; margin-bottom: 8px; opacity: 0.9; }
.podium-score { font-size: 20px; font-weight: 700; opacity: 0.8; }

.podium-col.rank-1 .podium-step { height: 300px; background: linear-gradient(180deg, #f59e0b, #d97706); }
.podium-col.rank-2 .podium-step { height: 230px; background: linear-gradient(180deg, #94a3b8, #64748b); }
.podium-col.rank-3 .podium-step { height: 180px; background: linear-gradient(180deg, #cd7f32, #a0522d); }
.podium-col.rank-4 .podium-step { height: 120px; background: linear-gradient(180deg, #475569, #334155); }
.podium-col.rank-5 .podium-step { height: 90px; background: linear-gradient(180deg, #1e293b, #0f172a); }

/* Animation when podium loads */
@keyframes riseUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.podium-col.rank-1 .podium-step { animation: riseUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.2s; opacity: 0; }
.podium-col.rank-2 .podium-step { animation: riseUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.8s; opacity: 0; }
.podium-col.rank-3 .podium-step { animation: riseUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.4s; opacity: 0; }
.podium-col.rank-4 .podium-step { animation: riseUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0s; opacity: 0; }
.podium-col.rank-5 .podium-step { animation: riseUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0s; opacity: 0; }
.podium-col.rank-1 .podium-info { animation: riseUp 0.6s ease-out forwards; animation-delay: 1.8s; opacity: 0; }
.podium-col.rank-2 .podium-info { animation: riseUp 0.6s ease-out forwards; animation-delay: 1.4s; opacity: 0; }
.podium-col.rank-3 .podium-info { animation: riseUp 0.6s ease-out forwards; animation-delay: 1.0s; opacity: 0; }
.podium-col.rank-4 .podium-info { animation: riseUp 0.6s ease-out forwards; animation-delay: 0.6s; opacity: 0; }
.podium-col.rank-5 .podium-info { animation: riseUp 0.6s ease-out forwards; animation-delay: 0.6s; opacity: 0; }

#top5-card.lb-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9990;
  border-radius: 0;
  margin: 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px;
}
#top5-card.lb-fullscreen .flex-between {
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  width: auto;
  align-items: center;
}
#top5-card.lb-fullscreen .flex-between h3 {
  font-size: 36px;
}
#top5-card.lb-fullscreen .flex-between p {
  display: none;
}
#top5-card.lb-fullscreen .podium-container {
  transform: scale(1.4);
  transform-origin: bottom center;
  margin-bottom: 60px;
}

/* ── LEADERBOARD PUBLIC ──────────────────────────────────────────────── */
.lb-rank-cell {
  font-weight: 800; font-size: 16px; color: #1a1a2e;
  font-variant-numeric: tabular-nums; width: 50px;
}

/* ── ACCORDION ───────────────────────────────────────────────────────── */
.accordion { border-radius: 12px; border: 1.5px solid rgba(26,26,46,0.08); margin-bottom: 10px; background: #fff; overflow: hidden; }
.accordion-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; cursor: pointer; user-select: none;
}
.accordion-head .ah-title { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.accordion-head .ah-meta { font-size: 12px; color: rgba(26,26,46,0.5); }
.accordion-body { padding: 0 18px 18px; display: none; }
.accordion.open .accordion-body { display: block; }

/* ── UTILITY ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: rgba(26,26,46,0.5); }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

@media (max-width: 640px) {
  .hero { padding: 40px 20px 28px; }
  .content, .content-narrow { padding: 0 20px 60px; }
}
