/* Crimson — Club 21 homepage concept
   Charcoal with red. Sharp geometry, esports edge, races. */

:root {
  --page: #111318;
  --sidebar: #14171E;
  --surface: #181B22;
  --surface-2: #1F232C;
  --border: #2A2F3A;
  --text: #FFFFFF;
  --muted: #9AA3B5;
  --red: #FF3B3B;          /* accent: badges, highlights, active states, glow */
  --red-hover: #FF5C5C;    /* hover for red text and links */
  --red-fill: #D92626;     /* button fill: white on #FF3B3B is 3.5:1, #E62E2E is 4.4:1;
                              #D92626 gives 4.9:1 with white text and passes AA */
  --red-fill-hover: #E62E2E;
  --win: #3DDC84;          /* bets table only */
  --focus: #FF5C5C;

  --r-card: 6px;
  --r-btn: 4px;

  --font-head: "Chakra Petch", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --sidebar-w: 208px;
  --topbar-h: 60px;
  --content-max: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 14px/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 600 13px/1 var(--font-head);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #262B36; border-color: #353B48; }
.btn-primary { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.btn-primary:hover { background: var(--red-fill-hover); border-color: var(--red-fill-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }

.link { color: var(--muted); font-weight: 500; transition: color .15s ease; }
.link:hover { color: var(--text); }
.link-red { color: var(--red); }
.link-red:hover { color: var(--red-hover); }

/* ---------- App shell ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 12px 10px;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex; align-items: center;
  height: 36px; padding: 0 8px; margin-bottom: 14px;
}

.sidebar-group { margin-bottom: 10px; }
.sidebar-label {
  padding: 8px 10px 6px;
  font: 700 10px/1 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 10px;
  border-radius: var(--r-btn);
  color: var(--muted);
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link[aria-current="page"] { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.sidebar-link[aria-current="page"] .icon { color: var(--red); }
.sidebar-link .pill {
  margin-left: auto;
  font: 700 10px/1 var(--font-head);
  padding: 4px 6px; border-radius: 3px;
  background: var(--red-fill); color: #fff;
  letter-spacing: .04em;
}
.sidebar-foot { margin-top: auto; padding: 10px; color: var(--muted); font-size: 12px; }
.sidebar-foot .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--win); margin-right: 6px; vertical-align: middle; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-word { font: 700 18px/1 var(--font-head); letter-spacing: .06em; color: var(--text); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-btn);
  background: var(--red-fill); color: #fff;
  font: 700 13px/1 var(--font-head); letter-spacing: -.02em;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  background: var(--page);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto; height: 100%;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.topbar .logo { display: none; }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: var(--r-btn); border: 1px solid var(--border); color: var(--muted); align-items: center; justify-content: center; }

.search {
  flex: 1 1 auto; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--muted);
  transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--red); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--text); font: inherit;
}
.search input::placeholder { color: var(--muted); }
.search kbd {
  font: 600 10px/1 var(--font-head);
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 3px 5px;
}

.search-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--surface-2); color: var(--muted); align-items: center; justify-content: center; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Language menu */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border-radius: var(--r-btn); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  font: 600 12px/1 var(--font-head); letter-spacing: .04em;
}
.lang-btn:hover { background: #262B36; }
.lang-btn .chev { transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 180px; padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.lang-menu.up { top: auto; bottom: calc(100% + 6px); }
.lang-menu li button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 34px; padding: 0 10px;
  border-radius: var(--r-btn); text-align: left;
  color: var(--text);
}
.lang-menu li button:hover { background: var(--surface); }
.lang-menu li button span { color: var(--muted); font: 600 11px/1 var(--font-head); letter-spacing: .06em; }
.lang-menu li button[aria-checked="true"] { color: var(--red); }
.lang-menu li button[aria-checked="true"] span { color: var(--red); }

/* ---------- Content ---------- */

.content {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px;
}

.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
}
.section-title .icon { color: var(--red); width: 18px; height: 18px; }
.section-head .link { margin-left: auto; font-size: 13px; }
.section-head .link + .row-nav { margin-left: 0; }

.row-nav { display: flex; gap: 6px; }
.row-nav button {
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.row-nav button:hover { color: var(--text); background: #262B36; border-color: #353B48; }
.row-nav button:disabled { opacity: .4; cursor: default; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.hero-welcome {
  position: relative; overflow: hidden;
  padding: 28px 28px 28px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-welcome .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.hero-welcome .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.hero-welcome h1 { font-size: 30px; max-width: 16ch; }
.hero-welcome h1 strong { color: var(--red); font-weight: 700; }
.hero-welcome p { color: var(--muted); margin: 12px 0 20px; max-width: 34ch; }
.hero-welcome .cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-welcome .cta .fine { color: var(--muted); font-size: 12px; }
.hero-copy { position: relative; z-index: 2; max-width: 55%; }

.hero-fan {
  position: absolute; right: -10px; bottom: -40px;
  width: 46%; height: 120%;
  pointer-events: none;
}
.hero-fan img {
  position: absolute; bottom: 0;
  width: 46%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  transform-origin: bottom center;
}
.hero-fan img:nth-child(1) { left: 0;   bottom: 22%; transform: rotate(-14deg); z-index: 1; }
.hero-fan img:nth-child(2) { left: 24%; bottom: 26%; transform: rotate(-5deg);  z-index: 2; }
.hero-fan img:nth-child(3) { left: 48%; bottom: 26%; transform: rotate(5deg);   z-index: 3; }
.hero-fan img:nth-child(4) { left: 70%; bottom: 22%; transform: rotate(14deg);  z-index: 2; }

/* Race card — the one place with a glow */
.hero-race {
  position: relative;
  padding: 20px 20px 16px;
  display: flex; flex-direction: column;
  border-top: 2px solid var(--red);
  box-shadow: 0 28px 60px -24px rgba(255, 59, 59, .55);
}
.race-head { display: flex; align-items: flex-start; gap: 12px; }
.race-head .label {
  font: 700 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.race-head .label .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(255,59,59,.2);
}
.race-head .prize { font-size: 32px; margin-top: 6px; letter-spacing: -.01em; }
.race-head .prize small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin-left: 6px; text-transform: uppercase; }

.countdown { margin-left: auto; text-align: right; }
.countdown .label { justify-content: flex-end; }
.countdown-time {
  display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end;
}
.countdown-time span {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 40px; padding: 5px 4px 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-btn);
  font: 700 16px/1 var(--font-head);
}
.countdown-time span i { font: 600 9px/1 var(--font-head); font-style: normal; color: var(--muted); letter-spacing: .08em; margin-top: 4px; }

.race-table { margin-top: 16px; font-size: 13px; }
.race-table th {
  text-align: left; padding: 0 0 8px;
  font: 700 10px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.race-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.race-table tr:last-child td { border-bottom: 0; }
.race-table .num { text-align: right; }
.race-table th.num { text-align: right; }
.race-table .rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
  font: 700 11px/1 var(--font-head);
}
.race-table tr:first-child .rank { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.race-table .player { font-weight: 500; }
.race-table .prize-cell { color: var(--red); font-family: var(--font-head); font-weight: 700; }
.race-table .wager-cell { font-family: var(--font-head); font-weight: 600; }
.race-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 12px; }
.race-foot .fine { color: var(--muted); font-size: 12px; }
.race-foot .btn { margin-left: auto; }

/* ---------- Ticker ---------- */

.ticker {
  display: flex; align-items: center;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: -16px;
}
.ticker-label {
  flex: none; height: 100%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  font: 700 11px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
}
.ticker-label .icon { width: 14px; height: 14px; color: var(--red); }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px;
  font-size: 13px; color: var(--muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-item b { color: var(--text); font-weight: 500; }
.ticker-item .amt { color: var(--text); font: 700 13px/1 var(--font-head); }
.ticker-item .x { color: var(--red); font: 700 12px/1 var(--font-head); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Chips ---------- */

.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 3px; margin: -3px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface-2); color: var(--muted);
  font: 600 13px/1 var(--font-head); letter-spacing: .02em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--text); border-color: #353B48; }
.chip[aria-pressed="true"] { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.chip .icon { width: 16px; height: 16px; }

/* ---------- Game rows ---------- */

.row-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 6 * 12px) / 7);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px; margin: -6px;
}
.row-track::-webkit-scrollbar { display: none; }

.tile {
  position: relative;
  display: block;
  scroll-snap-align: start;
  outline-offset: 3px;
}
.tile-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform .18s ease, border-color .18s ease;
}
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tile:hover .tile-art { transform: translateY(-3px); border-color: #3A404D; }
.tile:hover .tile-art img { transform: scale(1.04); }
.tile-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,19,24,.55);
  opacity: 0; transition: opacity .18s ease;
}
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }
.tile-play span {
  width: 44px; height: 44px; border-radius: var(--r-btn);
  background: var(--red-fill); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.tile-play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.tile-name { margin-top: 8px; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-provider { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px;
  border-radius: 3px;
  font: 700 10px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.badge-race { background: var(--red-fill); color: #fff; }
.badge-race .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.badge-new { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.badge-live { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.badge-x { right: 8px; left: auto; background: rgba(17,19,24,.85); color: var(--text); border: 1px solid var(--border); }

.tile-more .tile-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 12px;
  background: var(--surface);
}
.tile-more .tile-art strong { font: 700 22px/1 var(--font-head); color: var(--text); }
.tile-more .tile-art span { font-size: 12px; }
.tile-more .tile-art .icon { color: var(--red); }

/* ---------- Live bets ---------- */

.bets .section-head { flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-btn); margin-left: auto; }
.tab {
  height: 28px; padding: 0 12px;
  border-radius: 3px;
  font: 600 12px/1 var(--font-head); letter-spacing: .02em;
  color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--red-fill); color: #fff; }

.bets-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.bets-table { min-width: 720px; font-size: 13px; }
.bets-table th {
  text-align: left; padding: 12px 14px;
  font: 700 10px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.bets-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bets-table tbody tr:last-child td { border-bottom: 0; }
.bets-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.bets-table .num, .bets-table th.num { text-align: right; }
.bets-table .game { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.bets-table .game img { width: 30px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }
.bets-table .game small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.bets-table .player { color: var(--muted); }
.bets-table .player.hidden { font-style: italic; }
.bets-table .time { color: var(--muted); font-size: 12px; }
.bets-table .mult, .bets-table .wager, .bets-table .payout { font-family: var(--font-head); font-weight: 600; }
.bets-table .mult.hot { color: var(--red); }
.bets-table .payout.win { color: var(--win); }
.bets-table .payout.loss { color: var(--muted); }
.bets-table .coin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; margin-left: 6px; vertical-align: -3px;
  font: 700 7px/1 var(--font-head); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.bets-table tr[hidden] { display: none; }
.bets-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.bets-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--win); }

/* ---------- Promotions ---------- */

.promos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo {
  position: relative; overflow: hidden;
  padding: 20px; min-height: 200px;
  display: flex; flex-direction: column;
}
.promo .kicker { font: 700 10px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.promo h3 { font-size: 20px; max-width: 14ch; }
.promo p { color: var(--muted); margin: 8px 0 16px; max-width: 26ch; }
.promo .btn { margin-top: auto; align-self: flex-start; }
.promo-art {
  position: absolute; right: -20px; top: 10px;
  width: 132px; height: 176px;
  border-radius: var(--r-card); border: 1px solid var(--border);
  object-fit: cover;
  transform: rotate(8deg);
  box-shadow: 0 16px 36px rgba(0,0,0,.5);
  pointer-events: none;
}
.promo-copy { position: relative; z-index: 1; max-width: calc(100% - 100px); display: flex; flex-direction: column; flex: 1; }
.promo-copy .btn { margin-top: auto; align-self: flex-start; }

/* ---------- VIP ---------- */

.vip { padding: 24px; }
.vip-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vip-head h2 { font-size: 22px; }
.vip-head p { color: var(--muted); margin-top: 6px; max-width: 52ch; }
.vip-head .btn { margin-left: auto; }

.vip-progress { margin-top: 22px; }
.vip-progress .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.vip-progress .meta b { color: var(--text); font: 600 12px/1.5 var(--font-head); }
.vip-bar { height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.vip-bar span { display: block; height: 100%; width: 25%; background: var(--red); }

.tiers {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  margin-top: 20px;
}
.tier {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-card);
  position: relative;
}
.tier .tier-mark {
  width: 28px; height: 28px; border-radius: 3px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--font-head);
  color: var(--muted);
  margin-bottom: 10px;
}
.tier h3 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.tier p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.tier.current { border-color: var(--red); }
.tier.current .tier-mark { background: var(--red-fill); color: #fff; border-color: var(--red-fill); }
.tier .you { position: absolute; top: 12px; right: 12px; font: 700 9px/1 var(--font-head); letter-spacing: .1em; color: var(--red); text-transform: uppercase; }

/* ---------- Payments ---------- */

.payments {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
}
.pay-card { padding: 20px; }
.pay-card h2 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pay-card h2 .icon { color: var(--red); width: 18px; height: 18px; }
.coins { display: flex; flex-wrap: wrap; gap: 10px; }
.coin-glyph {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px;
  font: 600 12px/1 var(--font-head); letter-spacing: .04em;
}
.coin-glyph i {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 9px/1 var(--font-head); font-style: normal; color: var(--muted);
}
.coin-glyph.card i { border-radius: 3px; width: 30px; height: 22px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .icon { color: var(--red); margin-top: 1px; }
.fact b { display: block; font: 700 13px/1.3 var(--font-head); }
.fact span { color: var(--muted); font-size: 12px; }

/* ---------- Providers ---------- */

.providers {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding: 18px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.providers .lead { font: 700 10px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wordmark {
  font: 700 14px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); opacity: .85;
  transition: color .15s ease, opacity .15s ease;
}
.wordmark:hover { color: var(--text); opacity: 1; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--sidebar);
}
.footer-inner {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto; padding: 40px var(--gutter) 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
}
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.footer-brand .logo { margin-bottom: 0; }
.footer h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px;
}
.footer-bottom .age {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--font-head);
  color: var(--text);
}
.footer-bottom .age i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red);
  font: 700 10px/1 var(--font-head); font-style: normal;
}
.footer-bottom .lang { margin-left: auto; }
.footer-legal { margin-top: 14px; color: var(--muted); font-size: 12px; }

/* ---------- Bottom nav (mobile) ---------- */

.bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: 60px;
  background: var(--sidebar);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav ul { display: grid; grid-template-columns: repeat(5, 1fr); height: 60px; }
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font: 600 10px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
}
.bottomnav a[aria-current="page"] { color: var(--text); }
.bottomnav a[aria-current="page"] .icon { color: var(--red); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .row-track { grid-auto-columns: calc((100% - 5 * 12px) / 6); }
  .hero-welcome h1 { font-size: 26px; }
}

@media (max-width: 1023px) {
  :root { --sidebar-w: 0px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar .logo { display: inline-flex; }
  .search { max-width: 360px; }
  .row-track { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-welcome { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .bottomnav { display: block; }
  body { padding-bottom: 60px; }
  .content { padding-bottom: 32px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .row-track { grid-auto-columns: calc((100% - 3 * 10px) / 4); gap: 10px; }
  .search { display: none; }
  .search-btn { display: inline-flex; }
  .topbar-inner { gap: 10px; }
  .btn-login { display: none; }
  .promos-grid { grid-template-columns: minmax(0, 1fr); }
  .payments { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier:last-child { grid-column: 1 / -1; }
  .vip-head .btn { margin-left: 0; }
  .bets .tabs { margin-left: 0; width: 100%; }
  .bets .tab { flex: 1; }
  .hero-welcome { padding: 22px 20px; min-height: 0; }
  .hero-copy { max-width: 100%; }
  .hero-welcome p { max-width: 100%; }
  .hero-fan { position: relative; right: auto; bottom: auto; width: 100%; height: 150px; margin-top: 18px; }
  .hero-fan img { width: 22%; bottom: 0 !important; }
  .hero-fan img:nth-child(1) { left: 4%; }
  .hero-fan img:nth-child(2) { left: 27%; }
  .hero-fan img:nth-child(3) { left: 50%; }
  .hero-fan img:nth-child(4) { left: 73%; }
  .race-head { flex-wrap: wrap; }
  .countdown { margin-left: 0; text-align: left; width: 100%; }
  .countdown .label, .countdown-time { justify-content: flex-start; }
  .race-head .prize { font-size: 28px; }
  .ticker-label span { display: none; }
  .footer-grid { gap: 24px; }
  .footer-bottom .lang { margin-left: 0; }
}

@media (max-width: 479px) {
  .row-track { grid-auto-columns: calc((100% - 2 * 10px) / 2.6); }
  .hero-welcome h1 { font-size: 24px; }
  .race-table .hide-xs, .bets-table .hide-xs { display: none; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .row-track { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .tile:hover .tile-art, .tile:hover .tile-art img { transform: none; }
}
