/* ════════════════════════════════════════════════════════════
   MONGO LEADERBOARD — roulobets.com
   Design: Dark Terminal × Casino Royale
   ════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:         #0d0c13;
  --bg-card:    #0f0e1b;
  --bg-deep:    #080710;

  --teal:       #2AEBD0;
  --teal-10:    rgba(42, 235, 208, 0.10);
  --teal-20:    rgba(42, 235, 208, 0.20);
  --teal-35:    rgba(42, 235, 208, 0.35);
  --teal-dk:    #0E2222;

  --gold:       #C4952A;
  --gold-lt:    #DEB85A;
  --gold-10:    rgba(196, 149, 42, 0.12);
  --gold-30:    rgba(196, 149, 42, 0.30);

  --silver:     #8C99A8;
  --silver-10:  rgba(140, 153, 168, 0.12);
  --silver-25:  rgba(140, 153, 168, 0.25);

  --bronze:     #9D6035;
  --bronze-10:  rgba(157, 96, 53, 0.12);
  --bronze-25:  rgba(157, 96, 53, 0.25);

  --text:       #E8E2D9;
  --text-2:     rgba(232, 226, 217, 0.45);
  --text-3:     rgba(232, 226, 217, 0.15);

  --line:       rgba(255, 255, 255, 0.06);
  --line-2:     rgba(255, 255, 255, 0.10);

  --font:   'Josefin Sans', sans-serif;
  --mono:   'Space Mono', monospace;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─── PAGE ENTRANCE ──────────────────────────────────────── */
.header,
.header-rule,
.timer-bar,
.main,
.ticker-wrap,
.footer {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.header-rule {
  transform: scaleX(0.3);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded .header        { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
body.loaded .header-rule   { opacity: 1; transform: scaleX(1);     transition-delay: 0.2s; }
body.loaded .timer-bar     { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
body.loaded .main          { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
body.loaded .ticker-wrap   { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
body.loaded .footer        { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

/* ─── PARTICLE CANVAS ────────────────────────────────────── */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── BACKGROUND BLOBS ───────────────────────────────────── */

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Top-left — teal */
.bg-blob-1 {
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(42,235,208,0.07) 0%, transparent 70%);
  top: -180px;
  left: -150px;
  animation: blob1 16s ease-in-out infinite;
}

/* Bottom-right — gold */
.bg-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(196,149,42,0.055) 0%, transparent 70%);
  bottom: -160px;
  right: -120px;
  animation: blob2 20s ease-in-out infinite;
}

/* Center-right — teal subtle */
.bg-blob-3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(42,235,208,0.04) 0%, transparent 70%);
  top: 40%;
  right: 5%;
  animation: blob3 24s ease-in-out infinite;
}

@keyframes blob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, 40px) scale(1.08); }
  66%       { transform: translate(-25px, 70px) scale(0.94); }
}

@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-60px, -40px) scale(1.1); }
  75%       { transform: translate(30px, -60px) scale(0.92); }
}

@keyframes blob3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%       { transform: translate(-40px, 50px) scale(1.12) rotate(15deg); }
}

/* Subtle grid pattern — like a HUD/terminal */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 80%);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 48px 24px;
}

/* BRAND */
.header-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--teal-35);
  box-shadow: 0 0 16px rgba(42,235,208,0.25);
  flex-shrink: 0;
  background: var(--bg-card);
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-avatar.no-img { display: none; }

.brand-name {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--teal);
  text-shadow:
    0 0 30px rgba(42,235,208,0.5),
    0 0 80px rgba(42,235,208,0.2);
  font-family: var(--font);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* CENTER — LIVE */
.header-center {
  display: flex;
  justify-content: center;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--teal-20);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--teal);
  background: var(--teal-10);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.live-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(42,235,208,0.06), transparent);
  animation: badgeSweep 3s linear infinite;
}

@keyframes badgeSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: dotPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* SITE LINK */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  padding: 8px 20px;
  border: 1px solid var(--teal-20);
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-link:hover {
  background: var(--teal-10);
  border-color: var(--teal-35);
  box-shadow: 0 0 20px rgba(42,235,208,0.12);
}

.site-link i { font-size: 10px; opacity: 0.7; }

/* SOCIALS */
.header-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  font-size: 16px;
  color: var(--text-2);
  transition: all 0.2s ease;
}

.social-link:hover { border-color: var(--teal-35); color: var(--teal); background: var(--teal-10); }

.social-link.kick:hover { color: #53fc18; border-color: rgba(83,252,24,0.3); background: rgba(83,252,24,0.07); }
.social-link.discord:hover { color: #5865F2; border-color: rgba(88,101,242,0.3); background: rgba(88,101,242,0.07); }

.kick-icon { width: 17px; height: 17px; display: block; }

.roulo-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* ─── HEADER RULE ────────────────────────────────────────── */
.header-rule {
  position: relative;
  z-index: 10;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--teal-35) 20%,
    var(--teal) 50%,
    var(--teal-35) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(42,235,208,0.4);
}

/* ─── TIMER BAR ──────────────────────────────────────────── */
.timer-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(180deg, rgba(14,34,34,0.5) 0%, rgba(14,34,34,0.2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 14px 48px;
}

.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
}

.timer-divider {
  width: 1px;
  height: 36px;
  background: var(--line-2);
  flex-shrink: 0;
}

.timer-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
}

.timer-countdown {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-shadow: 0 0 18px rgba(42,235,208,0.5);
  font-variant-numeric: tabular-nums;
}

.timer-value {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

/* ─── MAIN ───────────────────────────────────────────────── */
.main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
}

.section-label-line {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

/* ─── PODIUM ─────────────────────────────────────────────── */
.podium-section {}

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

.podium-loading {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 80px 0;
  font-size: 24px;
  color: var(--text-3);
}

/* Cards */
.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px 24px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  width: 230px;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  backdrop-filter: blur(6px);
}

.podium-card:hover { transform: translateY(-6px); }
.podium-card.rank-2:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(140,153,168,0.1); }
.podium-card.rank-3:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(157,96,53,0.1); }

/* Ghost rank number */
.podium-card::before {
  content: attr(data-rank);
  position: absolute;
  bottom: -8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.04;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

/* RANK 1 */
.podium-card.rank-1 {
  width: 260px;
  padding: 40px 28px 28px;
  background: linear-gradient(160deg, rgba(196,149,42,0.10) 0%, rgba(196,149,42,0.03) 60%, transparent 100%);
  border: 1px solid var(--gold-30);
  box-shadow:
    0 0 0 1px rgba(196,149,42,0.08) inset,
    0 8px 48px rgba(0,0,0,0.6),
    0 0 60px rgba(196,149,42,0.08);
  animation: cardRise 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s both, goldPulse 4s ease-in-out 1s infinite;
  order: 2;
}

/* Shimmer sweep on rank-1 */
.podium-card.rank-1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(196,149,42,0.08) 45%, rgba(196,149,42,0.14) 50%, rgba(196,149,42,0.08) 55%, transparent 60%);
  animation: shimmerSweep 5s ease-in-out 2s infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes shimmerSweep {
  0%, 100% { transform: translateX(-120%); }
  40%, 60% { transform: translateX(120%); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(196,149,42,0.08) inset, 0 8px 48px rgba(0,0,0,0.6), 0 0 60px rgba(196,149,42,0.08); }
  50%       { box-shadow: 0 0 0 1px rgba(196,149,42,0.18) inset, 0 8px 48px rgba(0,0,0,0.6), 0 0 80px rgba(196,149,42,0.18); }
}

/* RANK 2 */
.podium-card.rank-2 {
  background: linear-gradient(160deg, rgba(140,153,168,0.07) 0%, transparent 100%);
  border: 1px solid var(--silver-25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: cardRise 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
  order: 1;
}

/* RANK 3 */
.podium-card.rank-3 {
  background: linear-gradient(160deg, rgba(157,96,53,0.07) 0%, transparent 100%);
  border: 1px solid var(--bronze-25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: cardRise 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both;
  order: 3;
}

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

/* Crown */
.crown {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(196,149,42,0.8));
  animation: crownBob 2.8s ease-in-out infinite;
}
@keyframes crownBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-4px); }
}

/* Rank pill */
.podium-rank {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}
.rank-1 .podium-rank { background: var(--gold-10); color: var(--gold-lt); border: 1px solid var(--gold-30); }
.rank-2 .podium-rank { background: var(--silver-10); color: var(--silver); border: 1px solid var(--silver-25); }
.rank-3 .podium-rank { background: var(--bronze-10); color: var(--bronze); border: 1px solid var(--bronze-25); }

/* Avatar */
.podium-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.podium-card.rank-1 .podium-avatar { width: 88px; height: 88px; box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(196,149,42,0.4); }
.podium-card.rank-2 .podium-avatar { width: 72px; height: 72px; box-shadow: 0 0 0 1.5px var(--silver); }
.podium-card.rank-3 .podium-avatar { width: 72px; height: 72px; box-shadow: 0 0 0 1.5px var(--bronze); }

.podium-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-card); }

/* Name */
.podium-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--text);
}
.rank-1 .podium-name { font-size: 16px; color: var(--gold-lt); }

/* Wagered */
.podium-wagered { text-align: center; line-height: 1; }
.podium-wagered .p-currency { font-family: var(--mono); font-size: 11px; color: var(--text-2); vertical-align: super; margin-right: 1px; }
.podium-wagered .amount {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.rank-1 .podium-wagered .amount { font-size: 28px; color: var(--gold-lt); text-shadow: 0 0 20px rgba(196,149,42,0.4); }

/* Prize */
.podium-prize {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
}
.rank-1 .podium-prize { background: var(--gold-10); color: var(--gold-lt); border: 1px solid rgba(196,149,42,0.25); }
.rank-2 .podium-prize { background: var(--silver-10); color: var(--silver); border: 1px solid rgba(140,153,168,0.2); }
.rank-3 .podium-prize { background: var(--bronze-10); color: var(--bronze); border: 1px solid rgba(157,96,53,0.2); }

/* Platform line under podium */
.podium-section::after {
  content: '';
  display: block;
  margin-top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-2) 20%, var(--line-2) 80%, transparent 100%);
}

/* ─── TABLE SECTION ──────────────────────────────────────── */
.table-section {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(15,14,27,0.6);
  backdrop-filter: blur(8px);
}

.table-header {
  display: grid;
  grid-template-columns: 64px 1fr 160px 140px;
  padding: 12px 28px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Rows */
.lb-row {
  display: grid;
  grid-template-columns: 64px 1fr 160px 140px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  animation: rowIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.lb-row:last-child { border-bottom: none; }
.lb-row:nth-child(even) { background: rgba(255,255,255,0.012); }

.lb-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
  transform-origin: bottom;
}

.lb-row:hover { background: rgba(42,235,208,0.04); }
.lb-row:hover::before { transform: scaleY(1); }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Ghost rank in row background */
.row-ghost {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.row-rank {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.row-player {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  background: var(--bg-card);
}
.row-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.row-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.row-wagered {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.row-wagered .cur {
  font-size: 11px;
  color: var(--text-2);
  margin-right: 2px;
  font-weight: 400;
}

.row-prize {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

@keyframes flashRow {
  0%   { background: rgba(42,235,208,0.10); }
  100% { background: transparent; }
}
.lb-row.updated { animation: flashRow 1.8s ease forwards; }

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--teal-20);
  border-bottom: 1px solid var(--teal-20);
  background: rgba(14,34,34,0.35);
  overflow: hidden;
  padding: 11px 0;
}

.ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 50s linear infinite;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
}

.ticker-inner strong { color: var(--teal); font-weight: 700; }

.tick-sep {
  font-size: 7px;
  color: var(--teal);
  opacity: 0.5;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.responsible {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.9;
  max-width: 600px;
}
.responsible i { margin-right: 6px; color: var(--teal); opacity: 0.6; }
.responsible a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.responsible a:hover { color: var(--text); }

.footer-copy {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-inner { animation: none; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 780px) {
  .header { grid-template-columns: 1fr auto; padding: 20px 24px 18px; }
  .header-center { display: none; }
  .header-right { grid-column: 2; flex-direction: column; gap: 8px; align-items: flex-end; }
  .brand-name { font-size: 32px; }
  .site-link { font-size: 11px; padding: 6px 14px; }

  .timer-bar { padding: 12px 24px; gap: 0; }
  .timer-block { padding: 0 20px; }
  .timer-countdown { font-size: 17px; }

  .main { padding: 36px 16px 32px; gap: 36px; }

  .podium { flex-direction: column; align-items: center; gap: 10px; }
  .podium-card, .podium-card.rank-1, .podium-card.rank-2, .podium-card.rank-3 {
    width: 100%;
    max-width: 360px;
    order: unset !important;
    flex-direction: row;
    padding: 16px 20px;
    gap: 16px;
    align-items: center;
  }
  .podium-card.rank-1 { order: 0 !important; }
  .podium-card.rank-2 { order: 1 !important; }
  .podium-card.rank-3 { order: 2 !important; }
  .crown { display: none; }
  .podium-card::before { display: none; } /* hide ghost rank on mobile */
  .podium-card.rank-1 .podium-avatar,
  .podium-card.rank-2 .podium-avatar,
  .podium-card.rank-3 .podium-avatar { width: 52px; height: 52px; }
  .podium-card .podium-rank { align-self: center; }
  .podium-card .podium-wagered .amount { font-size: 20px; }
  .podium-card.rank-1 .podium-wagered .amount { font-size: 22px; }
  .podium-card .podium-prize { font-size: 10px; padding: 4px 10px; }

  .table-header,
  .lb-row { grid-template-columns: 44px 1fr 120px; }
  .th-prize, .row-prize { display: none; }
  .row-ghost { display: none; }

  .footer { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .header { padding: 16px 16px 14px; }
  .brand-name { font-size: 26px; }
  .brand-avatar { width: 42px; height: 42px; }
  .header-socials { gap: 6px; }
  .social-link { width: 32px; height: 32px; font-size: 14px; }
  .site-link { font-size: 10px; padding: 5px 10px; gap: 5px; }

  .table-header,
  .lb-row { grid-template-columns: 40px 1fr 100px; padding: 14px 16px; }
  .timer-block { padding: 0 14px; }
  .timer-divider { display: none; }
  .timer-countdown { font-size: 15px; }

  .row-avatar { width: 32px; height: 32px; }
  .row-name { font-size: 13px; }
  .row-wagered { font-size: 12px; }
}
