/* === WHG platform === */

:root {
  --bg: #f4f3ee;
  --paper: #ffffff;
  --ink: #0d0d10;
  --ink-2: #45464b;
  --ink-3: #8a8b91;
  --line: #e6e4dd;
  --line-2: #ecebe5;

  --red:    oklch(0.62 0.22 25);
  --red-2:  oklch(0.94 0.04 25);
  --blue:   oklch(0.55 0.20 250);
  --blue-2: oklch(0.94 0.04 250);
  --yellow: oklch(0.85 0.18 95);
  --yellow-2: oklch(0.96 0.08 95);
  --green:  oklch(0.66 0.18 145);
  --green-2: oklch(0.94 0.05 145);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 0 rgba(13,13,16,.04), 0 1px 2px rgba(13,13,16,.04);
  --shadow-md: 0 2px 0 rgba(13,13,16,.04), 0 8px 24px -8px rgba(13,13,16,.10);

  --motion: 1; /* 0..1 multiplier */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-feature-settings: "ss01", "ss02";
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  position: relative;
}

.mono { font-family: 'Space Mono', ui-monospace, monospace; font-feature-settings: normal; letter-spacing: 0; }

/* dot-grid background */
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(13,13,16,0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.55));
}

.bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-shape {
  position: absolute; border-radius: 999px; opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-shape.sq { border-radius: 4px; }
@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(calc(20px * var(--motion)), calc(-14px * var(--motion))) rotate(calc(8deg * var(--motion))); }
}

/* layout shell */
.shell { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 160px; }
@media (max-width: 1100px) { .shell { padding: 0 48px; } }
@media (max-width: 700px) { .shell { padding: 0 24px; } }

/* ===== Header ===== */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 30px; height: 30px;
  background:
    radial-gradient(ellipse 60% 40% at 35% 25%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    linear-gradient(155deg, oklch(0.72 0.22 25) 0%, var(--red) 45%, oklch(0.50 0.20 25) 100%);
  border: 4px solid var(--ink);
  border-radius: 3px;
  transform: rotate(8deg);
  flex: none;
  position: relative;
  box-shadow:
    inset 0 -3px 0 rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.25),
    2px 3px 0 rgba(13,13,16,0.9),
    4px 5px 12px -2px rgba(229,40,58,0.35);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text .t1 { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.logo-text .t2 { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

.tabs {
  position: relative;
  display: inline-flex; padding: 4px; gap: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 0 rgba(13,13,16,0.04);
}
.tab-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f3 100%);
  border: 1.5px solid var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 0 color-mix(in oklch, var(--green) 18%, transparent),
    0 2px 0 var(--ink),
    0 4px 10px -2px color-mix(in oklch, var(--green) 30%, transparent);
  transition: transform 320ms cubic-bezier(0.5, 1.6, 0.5, 1), width 320ms cubic-bezier(0.5, 1.6, 0.5, 1), box-shadow 250ms ease, background 250ms ease;
  pointer-events: none;
  z-index: 0;
}
.tabs[data-active="leaderboard"] .tab-indicator {
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ec 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 0 color-mix(in oklch, var(--yellow) 30%, transparent),
    0 2px 0 var(--ink),
    0 4px 10px -2px color-mix(in oklch, var(--yellow) 35%, transparent);
}
.tab {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: transparent;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink-3);
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: color 200ms ease;
  white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--ink); }

.tab .t-glyph { width: 8px; height: 8px; transition: transform 250ms ease, box-shadow 250ms ease; }
.tab .t-glyph.dot { border-radius: 2px; background: var(--green); }
.tab .t-glyph.circle { border-radius: 999px; background: var(--yellow); }
.tab.active .t-glyph { box-shadow: 0 1px 2px rgba(13,13,16,0.25); transform: scale(1.1); }
  color: var(--ink-3);
  padding: 8px 18px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: color .18s ease, transform .08s ease;
  letter-spacing: -0.005em;
}
.tab:hover { color: var(--ink-2); }

.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--ink-2);
}
.live .pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklch, var(--green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 0%, transparent); }
}
.live b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===== Section heading ===== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 36px 0 18px; gap: 24px; }
.section-head h1 {
  font-size: 44px; font-weight: 600; letter-spacing: -0.025em;
  margin: 0; line-height: 1.02; text-wrap: balance;
}
.section-head h1 .accent { color: var(--red); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 380px; font-size: 14.5px; line-height: 1.5; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 48px 0 28px; }
.section-head.centered h1 { font-size: 56px; }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; margin: 24px 0 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.stat-strip .stat { padding: 14px 18px; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat.accent { background: color-mix(in oklch, var(--yellow) 14%, var(--paper)); }
.stat-strip .stat-k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 5px; }
.stat-strip .stat-v { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.stat-strip .stat-v.mono { font-family: 'Space Mono', monospace; }
.stat-strip .stat.accent .stat-v { color: var(--red); font-size: 20px; }
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-strip .stat:nth-child(3n) { border-right: 0; }
  .stat-strip .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .stat-strip .stat:nth-child(2n) { border-right: 0 !important; }
}

/* WR tag + shine for #1 podium */
.pod .wr-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--ink); color: var(--yellow);
  z-index: 2;
}
.pod .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: shineMove 4.5s ease-in-out infinite;
  border-radius: inherit;
  mix-blend-mode: overlay;
}
@keyframes shineMove {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
.pod .rank-badge .laurel { opacity: 0.85; }
.pod .rank-badge .l-left { margin-right: 2px; }
.pod .rank-badge .l-right { margin-left: 2px; }
.pod.p1 .trophy-icon {
  width: 22px !important; height: 22px !important;
  color: #6b4e00; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.35));
}
.pod.p2 .rank-badge span,
.pod.p3 .rank-badge span {
  text-shadow: 0 1px 1.5px rgba(0,0,0,0.35);
}
.pod .country .dot-sep { color: var(--ink-3); opacity: 0.5; }

/* Section divider between podium and table */
.table-head-row {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.table-head-row .th-num { font-weight: 700; color: var(--ink); font-size: 13px; }
.table-head-row .th-line { flex: 1; height: 1px; background: var(--line); }

/* Updated row layout with delta col, no platform */
.lb-row { grid-template-columns: 60px 1fr 100px 90px 110px 36px !important; }
.lb-row.head > div:nth-child(4) { text-align: left; }
.lb-row .delta-cell { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--ink-3); }
.lb-row.top-ten .rk-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: color-mix(in oklch, var(--yellow) 22%, var(--paper));
  border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); font-size: 11.5px;
}
.lb-row .rk-num { font-family: 'Space Mono', monospace; }
@media (max-width: 760px) {
  .lb-row { grid-template-columns: 44px 1fr 80px 32px !important; }
  .lb-row .delta-cell, .lb-row .dt { display: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.eyebrow .sq { width: 10px; height: 10px; background: var(--red); border-radius: 2px; }

/* ===== Play view ===== */
.play-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin: 18px 0 32px;
}

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.flush { padding: 0; overflow: hidden; }

.game-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111; /* will hold ruffle */
  display: grid; place-items: center;
  color: rgba(255,255,255,0.6);
  min-height: 560px;
}
.game-frame .ruffle-target { position: absolute; inset: 0; }
.game-frame .placeholder { text-align: center; padding: 32px; }
.game-frame .placeholder .tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  padding: 6px 10px; border-radius: 999px; margin-bottom: 16px;
}
.game-frame .placeholder h3 { color: #fff; font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.game-frame .placeholder p { color: rgba(255,255,255,0.55); font-size: 13px; margin: 0; max-width: 320px; }

/* game toolbar under canvas */
.game-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: #fafaf6;
}
.gt-left, .gt-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--paper);
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gt-status { font-size: 12.5px; color: var(--ink-3); }
.gt-status b { color: var(--ink); font-weight: 600; }

/* volume control */
.volume-ctl { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; height: 32px; }
.volume-ctl .vol-icon { width: 28px; height: 30px; border: 0; background: transparent; border-radius: 7px 0 0 7px; }
.volume-ctl .vol-icon:hover { background: var(--ink); color: #fff; }
.vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 84px; height: 4px; background: transparent; cursor: pointer;
  margin: 0 6px 0 0;
}
.vol-slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--vol, 80%), color-mix(in oklch, var(--ink) 14%, transparent) var(--vol, 80%), color-mix(in oklch, var(--ink) 14%, transparent) 100%);
}
.vol-slider::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in oklch, var(--ink) 14%, transparent); }
.vol-slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper);
  margin-top: -4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.vol-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* side panel */
.side { display: flex; flex-direction: column; gap: 16px; }
.stat {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.stat .glyph {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.stat .glyph.red    { background: var(--red-2); }
.stat .glyph.blue   { background: var(--blue-2); }
.stat .glyph.yellow { background: var(--yellow-2); }
.stat .glyph.green  { background: var(--green-2); }
.stat .g-shape { display: block; }
.stat .label { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.stat .value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat .value.mono { font-size: 20px; }

.howto h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.howto ol { margin: 0; padding-left: 0; list-style: none; counter-reset: hk; }
.howto li {
  position: relative; padding: 8px 0 8px 32px;
  font-size: 13px; color: var(--ink-2);
  counter-increment: hk;
  border-top: 1px solid var(--line-2);
}
.howto li:first-child { border-top: 0; }
.howto li::before {
  content: counter(hk); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line);
  font-family: 'Space Mono', monospace; font-size: 11px;
  display: grid; place-items: center; color: var(--ink);
}

.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.key {
  font-family: 'Space Mono', monospace; font-size: 11px;
  padding: 3px 8px; border: 1px solid var(--line);
  background: var(--bg); border-radius: 6px; color: var(--ink-2);
  box-shadow: 0 1px 0 var(--line);
}

/* ===== Leaderboard ===== */
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cat-tabs {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px;
}
.cat-tab {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-2);
  padding: 7px 14px; border-radius: 7px; cursor: pointer; font-weight: 500;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { background: var(--ink); color: #fff; }

.lb-meta { color: var(--ink-3); font-size: 13px; }

/* Podium */
.podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px;
  margin: 22px 0 28px;
  align-items: end;
}
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } }

.pod {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 20px 22px;
  box-shadow: 0 6px 14px -4px rgba(13,13,16,0.18), 0 2px 4px -1px rgba(13,13,16,0.12);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pod.p1 { box-shadow: 0 10px 20px -6px rgba(13,13,16,0.25), 0 3px 6px -1px rgba(13,13,16,0.15); }
.pod .rank-badge {
  position: absolute; top: 12px; left: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700;
  font-family: 'Space Mono', monospace; font-size: 13px;
  border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
}
.pod .crown {
  position: absolute; top: -1px; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(180deg, var(--yellow), oklch(0.72 0.18 80));
  border-bottom: 1.5px solid var(--ink);
}
.pod.p1 {
  padding-top: 38px; padding-bottom: 28px;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink), 0 8px 24px -8px rgba(229,40,58,0.25);
  transform: translateY(-12px);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, color-mix(in oklch, var(--yellow) 18%, #ffffff) 0%, var(--paper) 70%);
}
.pod.p1 .rank-badge {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, oklch(0.92 0.16 95), var(--yellow));
  color: var(--ink);
  width: 36px; height: 36px;
  box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.5);
}
.pod.p2 .rank-badge { background: linear-gradient(180deg, #ffffff, #ececea); }
.pod.p3 .rank-badge { background: linear-gradient(180deg, #ffffff, color-mix(in oklch, var(--red) 8%, #ececea)); }

.pod .avatar {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px; font-family: 'Space Mono', monospace;
  margin-bottom: 14px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.pod.p1 .avatar { width: 68px; height: 68px; font-size: 26px; margin-bottom: 16px; }

.pod .name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.pod.p1 .name { font-size: 19px; }
.pod .time {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pod.p1 .time { font-size: 28px; color: var(--red); }
.pod .delta { font-size: 11px; color: var(--ink-3); font-family: 'Space Mono', monospace; margin-top: 2px; }

.watch-btn {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); text-decoration: none;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  cursor: pointer;
}
.watch-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.watch-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.watch-btn.no-vid {
  color: var(--ink-3); border-color: var(--line); box-shadow: none;
  background: transparent; cursor: default;
}
.watch-btn.no-vid:hover { transform: none; box-shadow: none; }
.pod.p1 .watch-btn {
  background: linear-gradient(180deg, oklch(0.92 0.16 95), var(--yellow));
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.5);
}
.pod.p1 .watch-btn:hover { box-shadow: 0 3px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.5); }
.pod.p2 .watch-btn {
  background: linear-gradient(180deg, #f3f3f1, #c9c9c4);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.7);
}
.pod.p2 .watch-btn:hover { box-shadow: 0 3px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.7); }
.pod.p3 .watch-btn {
  background: linear-gradient(180deg, #ecd4be, #b89072);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.55);
}
.pod.p3 .watch-btn:hover { box-shadow: 0 3px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,0.4); }

/* podium rank ribbons */
.pod.p1 .rank-badge { font-size: 14px; }
.pod.p2 .rank-badge,
.pod.p3 .rank-badge { box-shadow: 0 2px 0 var(--ink); }

/* leaderboard head + table polish */
.lb-head { padding: 4px 2px; }
.lb-table { box-shadow: 0 2px 0 var(--line); }
.lb-row .rk { font-weight: 700; font-size: 13px; color: var(--ink); }
.lb-row:not(.head):nth-child(even) { background: rgba(13,13,16,0.015); }
.lb-row:not(.head):hover { background: color-mix(in oklch, var(--red) 4%, var(--paper)); }

/* compact table */
.lb-table {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr 100px 110px 80px 32px;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
  transition: background .12s ease;
}
.lb-row:first-child { border-top: 0; }
.lb-row.head {
  border-top: 0; background: #fafaf6;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; padding: 9px 18px;
}
.lb-row:not(.head):hover { background: #fafaf6; }
.lb-row .rk { font-family: 'Space Mono', monospace; color: var(--ink-3); font-size: 12px; }
.lb-row .runner { display: flex; align-items: center; gap: 10px; }
.lb-row .runner .av {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-weight: 700; font-size: 10px;
  font-family: 'Space Mono', monospace; color: var(--ink); flex: none;
  border: 1px solid var(--ink);
}
.lb-row .runner .nm { font-weight: 500; font-size: 13.5px; }
.lb-row .runner .ct { font-size: 16px; margin-left: 6px; line-height: 1; }
.pod .country { font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.flag {
  display: inline-block; vertical-align: middle;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(13,13,16,0.18), 0 2px 6px -2px rgba(13,13,16,0.25);
}
.lb-row .runner .flag { margin-left: 6px; }
.lb-row .tt { font-family: 'Space Mono', monospace; font-weight: 600; font-size: 13.5px; }
.lb-row .dt { color: var(--ink-3); font-size: 12px; }
.lb-row .pf {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line);
  display: inline-block; font-weight: 500;
}
.lb-row .vid {
  width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.lb-row .vid:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 760px) {
  .lb-row { grid-template-columns: 36px 1fr 80px 28px; padding: 10px 14px; }
  .lb-row .dt, .lb-row .pf { display: none; }
}

/* about strip */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 32px 0 40px;
}
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }
.cell {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px;
}
.cell h5 { margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
.cell p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 24px; padding: 26px 0 36px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-3); font-size: 13px; flex-wrap: wrap; gap: 12px;
}
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 18px; }

/* category icon dots */
.cat-tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }

/* level select */
.level-select-wrap { display: inline-flex; align-items: center; gap: 6px; }
.level-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 13px; font-weight: 500;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%230d0d10' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 32px 8px 12px;
  color: var(--ink); cursor: pointer;
  transition: border-color .15s;
}
.level-select:hover { border-color: var(--ink); }
.level-select:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }

/* empty state */
.empty {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 48px 24px; text-align: center; color: var(--ink-2); font-size: 14px;
  margin-top: 8px;
}

/* skeleton */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton-block, .skeleton-line {
  background: linear-gradient(90deg, #ececea 0%, #f6f5f0 50%, #ececea 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
}
.skeleton-block { width: 100%; height: 100%; min-height: 140px; }
.skeleton-line { height: 12px; }

/* tiny press effect */
button { transition: transform .08s ease; }
button:active { transform: translateY(1px); }

/* layout variant: stacked */
.layout-stacked .play-grid { grid-template-columns: 1fr; }
.layout-stacked .side { flex-direction: row; flex-wrap: wrap; }
.layout-stacked .side > * { flex: 1 1 220px; }

/* layout variant: wide */
.layout-wide .shell { max-width: 1400px; }

/* motion off */
.motion-0 .bg-shape { animation: none; }
.motion-0 .live .pulse { animation: none; }














/* Intro removed. */
