/* ==========================================================================
   OLISPEED TV — site styles
   The look of Olispeed's stream design: a rainy purple street at night, his
   neon bar frame (assets/img/rail.webp, cut from his overlay), heavy italic
   chrome titles like the "OLISPEED TV" lettering, and the Hype.bet purple.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --bg: #0a0414;
    --bg-2: #120823;
    --panel: rgba(18, 8, 36, 0.78);
    --panel-solid: #150a29;
    --line: rgba(207, 175, 255, 0.13);
    --line-strong: rgba(207, 175, 255, 0.34);

    /* Measured on his artwork: the frame's glow and edge, the Hype.bet purple,
       and the street lights. */
    --neon: #9c75ff;
    --lavender: #cfafff;
    --hype: #7647f5;
    --electric: #b84dff;

    --gold: #ffd36b;
    --silver: #e6e8f4;
    --bronze: #eda56a;

    --text: #ffffff;
    --text-soft: #ddd4f4;
    --text-muted: #a99cca;

    --grad: linear-gradient(115deg, var(--hype) 0%, #9a4cf8 55%, var(--electric) 100%);
    --grad-gold: linear-gradient(180deg, #fff6d6 0%, #ffd36b 45%, #e8a93a 55%, #ffe7a3 100%);
    --glow: 0 0 22px rgba(156, 117, 255, 0.55);

    --font-display: 'Kanit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

    --header-h: 76px;
    --radius: 10px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The blurred street from his "starting soon" screen, very dark, behind the
   whole page. A fixed layer rather than background-attachment: fixed, which
   phones handle badly. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 4, 20, 0.86), rgba(10, 4, 20, 0.93)),
        url('/assets/img/page-bg.webp') center / cover no-repeat;
    pointer-events: none;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
    color: #fff;
}

::selection {
    background: var(--hype);
    color: #fff;
}

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #07030e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--hype), var(--electric));
    border-radius: 10px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 3000;
    padding: 10px 18px;
    background: var(--hype);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
}

.section {
    position: relative;
    padding: 110px 0;
}

.icon {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

/* Line icons say fill="none" in their markup; CSS would otherwise win. */
.icon[fill="none"] {
    fill: none;
}

/* --------------------------------------------------------------------------
   2. Type: kicker, section titles, chrome lettering, money
   -------------------------------------------------------------------------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lavender);
}

.section-head {
    margin-bottom: 56px;
    text-align: center;
}

.section-title {
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.section-sub {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--text-soft);
}

/* Chrome lettering, after the "OLISPEED" of his banner: white metal with a
   dark band across the middle and a purple glow. The padding keeps the
   italic's overhang inside the painted box. */
.chrome {
    display: inline-block;
    padding: 0 0.12em;
    margin: 0 -0.12em;
    background: linear-gradient(180deg, #ffffff 0%, #f3edff 40%, #9e88d8 50%, #ffffff 57%, #e4d6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(156, 117, 255, 0.45)) drop-shadow(0 3px 0 rgba(42, 12, 88, 0.9));
}

.money {
    display: inline-block;
    padding: 0 0.1em;
    margin: 0 -0.1em;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 16px rgba(255, 200, 90, 0.35)) drop-shadow(0 3px 0 rgba(70, 30, 0, 0.75));
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   3. Buttons: slanted like the ends of his neon bars
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--grad);
    border: 0;
    border-radius: 5px;
    transform: skewX(-12deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 26px -10px rgba(118, 71, 245, 0.9);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* The label is straightened back up inside the slanted button. */
.btn > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: skewX(12deg);
}

/* A light streak crosses the button on hover. */
.btn::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(0);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
    transform: skewX(-12deg) translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 26px rgba(184, 77, 255, 0.75), 0 12px 30px -10px rgba(118, 71, 245, 0.9);
}

.btn:hover::after,
.btn:focus-visible::after {
    transform: translateX(420%);
}

.btn-ghost {
    background: rgba(10, 4, 20, 0.5);
    box-shadow: inset 0 0 0 1.5px var(--lavender), 0 0 18px -6px rgba(156, 117, 255, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background-color: rgba(118, 71, 245, 0.28);
    box-shadow: inset 0 0 0 1.5px #fff, 0 0 26px rgba(156, 117, 255, 0.7);
}

.btn-lg {
    min-height: 58px;
    padding: 0 38px;
    font-size: 1.05rem;
}

.btn-sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 0.82rem;
}

.btn .icon {
    width: 1em;
    height: 1em;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.btn-row.center {
    justify-content: center;
}

/* --------------------------------------------------------------------------
   4. His neon bar ("rail"), cut from his overlay frame. In a .frame it sits
   on the top edge, and flipped on the bottom edge, like on his stream.
   -------------------------------------------------------------------------- */
.rail {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.frame {
    position: relative;
}

.frame > .rail {
    position: absolute;
    left: 50%;
    z-index: 2;
    width: calc(100% + 7%);
    max-width: none;
}

/* The bars' lower edge is 63 % down the image: that edge sits on the box's. */
.frame > .rail-top {
    top: 0;
    transform: translate(-50%, -63%);
}

.frame > .rail-bottom {
    bottom: 0;
    transform: translate(-50%, 63%) scaleY(-1);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(10, 4, 20, 0.82), rgba(10, 4, 20, 0.5));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(207, 175, 255, 0.08);
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(10, 4, 20, 0.94);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(156, 117, 255, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: 1320px;
}

.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 10px rgba(156, 117, 255, 0.55));
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.brand:hover img {
    transform: rotate(-6deg) scale(1.04);
    filter: drop-shadow(0 0 16px rgba(184, 77, 255, 0.85));
}

/* "OLISPEED" in chrome white, "TV" in his purple, as on the banner. */
.wordmark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 14px rgba(156, 117, 255, 0.6);
}

.wordmark span {
    margin-left: 0.18em;
    color: var(--electric);
    text-shadow: 0 0 14px rgba(184, 77, 255, 0.8);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--text-soft);
    transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}

/* A slanted neon underline, like a piece of his bar. */
.site-nav ul a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 3px;
    background: var(--lavender);
    box-shadow: 0 0 10px var(--neon);
    transform: skewX(-30deg) scaleX(0);
    transition: transform 0.25s var(--ease);
}

.site-nav ul a:hover,
.site-nav ul a[aria-current] {
    color: #fff;
    text-shadow: 0 0 12px rgba(156, 117, 255, 0.8);
}

.site-nav ul a:hover::after,
.site-nav ul a[aria-current]::after {
    transform: skewX(-30deg) scaleX(1);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    padding: 11px 9px;
    background: transparent;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    margin: 4px 0;
    background: var(--lavender);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* The neon bars are a little wider than the boxes they frame. Between about
   1000 and 1100 px wide their glow passes the screen's edge, which iPads let
   you scroll to: clip it (clip, unlike hidden, doesn't make a scroll box). */
main {
    display: block;
    overflow-x: clip;
}

/* --------------------------------------------------------------------------
   6. Hero: his rainy street, the race clock and the way in
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: max(100svh, 760px);
    padding: calc(var(--header-h) + 36px) 0 96px;
    overflow: hidden;
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* Darker in the middle, where the text sits over the brightest part of the
   street, and fading into the page at the bottom. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 52% 48% at 50% 50%, rgba(10, 4, 20, 0.62), rgba(10, 4, 20, 0.2) 100%),
        linear-gradient(180deg, rgba(10, 4, 20, 0.7) 0%, rgba(10, 4, 20, 0.1) 22%, rgba(10, 4, 20, 0.25) 62%, var(--bg) 100%);
}

/* Rain: a tile of streaks, moved one tile down per loop so the loop never
   shows. Moving a layer (transform) costs the browser almost nothing. */
.rain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat;
    will-change: transform;
    animation: rain-fall var(--speed) linear infinite;
}

.rain-far {
    --tile: 180px;
    --speed: 0.55s;
    top: calc(var(--tile) * -1);
    opacity: 0.45;
    background-size: var(--tile) var(--tile);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg stroke='%23e6d9ff' stroke-width='1' stroke-linecap='round' opacity='.7'%3E%3Cpath d='M12 8l-2 16M48 70l-2 14M83 24l-2 18M120 96l-2 15M152 40l-2 16M30 128l-2 17M66 150l-2 13M101 120l-2 18M140 160l-2 14M170 104l-2 12M20 66l-2 12M132 6l-2 14'/%3E%3C/g%3E%3C/svg%3E");
}

.rain-near {
    --tile: 300px;
    --speed: 0.42s;
    top: calc(var(--tile) * -1);
    opacity: 0.35;
    background-size: var(--tile) var(--tile);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg stroke='%23f2eaff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M40 20l-3 34M190 60l-3 30M110 150l-3 36M260 180l-3 32M70 230l-3 30M230 270l-3 26'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes rain-fall {
    to { transform: translateY(var(--tile)); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-emblem {
    width: clamp(108px, 13vw, 156px);
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 30px rgba(184, 77, 255, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    font-size: clamp(3.3rem, 11.5vw, 8.6rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.005em;
}

.hero-prize {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 16px;
    margin: 14px 0 12px;
}

.hero-prize .money {
    font-size: clamp(2.6rem, 6.6vw, 4.6rem);
    line-height: 1;
}

.hero-prize-label {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: 1.1rem;
}

/* The race clock: four slanted cells, like a timing board. */
.race-clock {
    margin-bottom: 34px;
}

.race-clock-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--lavender);
}

.race-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.race-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
    padding: 12px 12px 9px;
    background: linear-gradient(180deg, rgba(118, 71, 245, 0.22), rgba(10, 4, 20, 0.65));
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transform: skewX(-10deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 22px rgba(156, 117, 255, 0.16), 0 0 24px -8px rgba(156, 117, 255, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.race-countdown-unit > * {
    transform: skewX(10deg);
}

.race-countdown-unit b {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 16px rgba(156, 117, 255, 0.8);
}

.race-countdown-unit span {
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.race-clock-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Leaderboard: podium, table, refresh bar
   -------------------------------------------------------------------------- */
.race {
    padding-top: 40px;
}

.live-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d8d;
    box-shadow: 0 0 10px #ff4d8d;
    animation: pulse 1.2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

/* The podium, one column per paid place (Olispeed: top 3, so 2 1 3 from left
   to right), as light columns of decreasing height, like the street lights
   on the wet road. Each column carries its prize, so it doubles as the prize
   breakdown. wager-race.js sets --places on the podium and each spot's
   --column. --place is the place's colour: gold, silver, bronze (then
   lavender and violet, should the race ever pay a top 5 again). */
.race-podium {
    display: grid;
    grid-template-columns: repeat(var(--places, 3), minmax(0, 1fr));
    align-items: end;
    gap: 16px;
    max-width: calc(var(--places, 3) * 230px);
    /* Close enough to the table that the columns stand on its neon bar. */
    margin: 0 auto 12px;
    padding: 0 16px;
}

.podium-spot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    order: var(--column, 0);
}

.race-podium.is-entering .podium-spot {
    animation: podium-rise 0.7s var(--ease) backwards;
}

.place-1 { --place: var(--gold); --step: 210px; animation-delay: 0.3s; }
.place-2 { --place: var(--silver); --step: 166px; animation-delay: 0.15s; }
.place-3 { --place: var(--bronze); --step: 142px; }
.place-4 { --place: var(--lavender); --step: 120px; }
.place-5 { --place: var(--neon); --step: 104px; }

@keyframes podium-rise {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

.podium-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0 4px 16px;
    text-align: center;
}

.podium-crown {
    width: 34px;
    height: 34px;
    margin-bottom: -2px;
    fill: var(--gold);
    filter: drop-shadow(0 0 10px rgba(255, 211, 107, 0.7));
}

.podium-player .race-avatar {
    width: 66px;
    height: 66px;
    font-size: 1.15rem;
    border: 3px solid var(--place);
    box-shadow: 0 0 22px -4px var(--place);
}

.place-1 .podium-player .race-avatar {
    width: 92px;
    height: 92px;
    font-size: 1.6rem;
}

.place-4 .podium-player .race-avatar,
.place-5 .podium-player .race-avatar {
    width: 56px;
    height: 56px;
}

.podium-name {
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.02rem;
}

.place-1 .podium-name {
    font-size: 1.2rem;
}

.podium-wager {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--place);
    font-variant-numeric: tabular-nums;
}

.podium-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: var(--step);
    padding-top: 16px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--place) 34%, transparent) 0%, color-mix(in srgb, var(--place) 9%, transparent) 60%, transparent 100%),
        rgba(18, 8, 36, 0.7);
    border: 1px solid color-mix(in srgb, var(--place) 28%, transparent);
    border-bottom: 0;
    border-top: 3px solid var(--place);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -10px 30px -14px var(--place), inset 0 10px 22px -12px var(--place);
}

.podium-rank {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    color: var(--place);
    text-shadow: 0 0 18px color-mix(in srgb, var(--place) 60%, transparent);
}

.place-1 .podium-rank {
    font-size: 3.6rem;
}

.podium-prize {
    padding: 4px 12px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: rgba(10, 4, 20, 0.6);
    border: 1px solid color-mix(in srgb, var(--place) 55%, transparent);
    border-radius: 999px;
}

.place-1 .podium-prize {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2a1600;
    background: var(--grad-gold);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(255, 211, 107, 0.55);
}

.podium-spot.is-empty .podium-name {
    font-weight: 500;
    color: var(--text-muted);
}

.podium-spot.is-empty .race-avatar {
    opacity: 0.55;
}

/* The mobile podium shows each prize at the end of its row instead. */
.podium-mobile-prize {
    display: none;
}

/* Player picture, or initials when Hype.bet has none (or only a private one). */
.race-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--avatar-bg, #2b1a4a);
}

.race-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-avatar svg {
    width: 50%;
    height: 50%;
    fill: currentColor;
    opacity: 0.8;
}

.race-table {
    max-width: 1020px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(156, 117, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.race-table-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 30px 26px 16px;
}

.race-table-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.race-refresh {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.race-refresh-track {
    width: 110px;
    height: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.race-refresh-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hype), var(--lavender));
    box-shadow: 0 0 10px var(--neon);
    transition: width 1s linear;
}

.race-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 26px;
    border-top: 1px solid var(--line);
}

.race-rows .race-row {
    transition: background-color 0.2s var(--ease);
}

.race-rows .race-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.race-rows .race-row:hover {
    background: rgba(118, 71, 245, 0.14);
}

.race-row-head {
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
}

.race-row-head span:last-child {
    text-align: right;
}

.race-rank {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 800;
    color: var(--lavender);
    font-variant-numeric: tabular-nums;
}

.race-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.race-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.race-wager {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.race-state {
    padding: 44px 24px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.race-state.is-error {
    color: #ff7aa8;
}

.race-table-footer {
    padding: 14px 26px 30px;
    font-size: 0.82rem;
    text-align: right;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.race-fineprint {
    max-width: 760px;
    margin: 64px auto 0;
    font-size: 0.88rem;
    text-align: center;
    color: var(--text-muted);
}

.race-fineprint .icon {
    display: inline-block;
    margin-right: 4px;
    vertical-align: -0.2em;
}

/* --------------------------------------------------------------------------
   8. How it works: the Hype.bet purple, with its own pattern
   -------------------------------------------------------------------------- */
.how {
    isolation: isolate;
    padding: 130px 0;
}

.how::before,
.how::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* The purple fades out at both ends, so the page shows through instead of
   meeting it on a straight line. */
.how::before {
    background: url('/assets/img/hype-pattern.webp') center / cover no-repeat var(--hype);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}

.how::after {
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 4, 20, 0), rgba(10, 4, 20, 0.35));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}

.how .kicker {
    color: #fff;
}

.how .section-title {
    color: #fff;
    text-shadow: 0 3px 0 rgba(42, 12, 88, 0.9), 0 0 30px rgba(42, 12, 88, 0.6);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0 0 54px;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    padding: 34px 30px 32px;
    background: rgba(12, 5, 28, 0.8);
    border: 1px solid rgba(207, 175, 255, 0.28);
    border-radius: 6px;
    box-shadow: 0 24px 50px -24px rgba(20, 5, 50, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* A short neon bar on top of each card. */
.step::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30px;
    width: 72px;
    height: 4px;
    background: var(--lavender);
    box-shadow: 0 0 14px var(--neon);
    transform: skewX(-30deg);
}

.step-num {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--lavender);
    text-shadow: 0 0 22px rgba(156, 117, 255, 0.5);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   8b. Discord bonus: a framed card, the steps drawn as a route of
   checkpoints that ends on the finish flag
   -------------------------------------------------------------------------- */
.bonus-card {
    position: relative;
    isolation: isolate;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px clamp(24px, 5vw, 64px) 40px;
    background:
        radial-gradient(ellipse 60% 70% at 0% 0%, rgba(88, 101, 242, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(184, 77, 255, 0.16), transparent 70%),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(88, 101, 242, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* A big faint Discord logo behind the steps. */
.bonus-watermark {
    position: absolute;
    top: 56px;
    right: 48px;
    z-index: -1;
    width: min(34%, 320px);
    height: auto;
    fill: #5865f2;
    opacity: 0.08;
    transform: rotate(-12deg);
    pointer-events: none;
}

.bonus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro route" "cta route";
    column-gap: clamp(32px, 5vw, 72px);
    row-gap: 30px;
}

.bonus-intro {
    grid-area: intro;
}

.bonus .kicker {
    color: #b3bbff;
}

.bonus-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    font-weight: 900;
}

.bonus-title .money {
    align-self: flex-start;
    font-size: clamp(3.4rem, 8vw, 5.6rem);
    line-height: 0.95;
}

.bonus-title .chrome {
    align-self: flex-start;
    font-size: clamp(1.6rem, 3.3vw, 2.45rem);
    line-height: 1.05;
}

.bonus-lead {
    max-width: 470px;
    font-size: 1.08rem;
    color: var(--text-soft);
}

/* Stacked, same width: the column is too narrow for two big buttons side by side. */
.bonus-cta {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.bonus-cta .btn {
    width: min(100%, 370px);
}

.btn-discord {
    background: linear-gradient(115deg, #5865f2 0%, #7a55f6 55%, var(--electric) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 26px -10px rgba(88, 101, 242, 0.95);
}

.btn-discord:hover,
.btn-discord:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 28px rgba(88, 101, 242, 0.85), 0 12px 30px -10px rgba(118, 71, 245, 0.9);
}

/* The route: checkpoints on a neon line, from lavender to the gold finish. */
.bonus-route {
    grid-area: route;
    position: relative;
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bonus-route::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 27px;
    width: 3px;
    background: linear-gradient(180deg, var(--lavender), var(--neon) 62%, var(--gold));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--neon);
}

.route-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.route-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 48px;
    color: #fff;
    background: linear-gradient(180deg, rgba(118, 71, 245, 0.6), #120823 85%);
    border: 1.5px solid var(--lavender);
    border-radius: 6px;
    transform: skewX(-10deg);
    box-shadow: 0 0 18px -4px var(--neon);
}

.route-node > * {
    transform: skewX(10deg);
}

.route-node b {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 900;
}

.route-step h3 {
    margin: 4px 0 6px;
    font-size: 1.12rem;
}

.route-step p {
    font-size: 0.98rem;
    color: var(--text-soft);
}

.route-finish .route-node {
    color: var(--gold);
    background: linear-gradient(180deg, rgba(255, 211, 107, 0.32), #120823 85%);
    border-color: var(--gold);
    box-shadow: 0 0 22px -2px rgba(255, 211, 107, 0.7);
}

.route-finish .route-node .icon {
    width: 24px;
    height: 24px;
}

.route-finish h3 {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(255, 211, 107, 0.35);
}

.bonus-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 44px 0 0;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.28);
    border-left: 3px solid #5865f2;
    border-radius: 3px;
}

.bonus-note .icon {
    margin-top: 2px;
    color: #b3bbff;
}

/* --------------------------------------------------------------------------
   9. Live: Twitch behind a click, in his frame
   -------------------------------------------------------------------------- */
.live-frame {
    max-width: 1100px;
    margin: 0 auto;
}

.live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #07030e;
    border: 1px solid var(--line);
}

.live-grid.is-live {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.live-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.live-player:focus {
    outline: none;
}

.live-player iframe,
.live-chat iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.live-chat {
    min-height: 0;
    border-left: 1px solid var(--line);
}

/* The cover: his "starting soon" street, his banner, a play button. */
.live-facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #0a0414;
    border: 0;
    cursor: pointer;
}

.live-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.live-banner {
    position: relative;
    width: 82%;
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    transition: transform 0.8s var(--ease);
}

.live-play {
    position: absolute;
    left: 50%;
    bottom: 9%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--grad);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(184, 77, 255, 0.6);
    transform: translateX(-50%) skewX(-12deg);
    transition: box-shadow 0.25s var(--ease);
}

.live-play .icon {
    width: 1.3em;
    height: 1.3em;
}

.live-facade:hover .live-cover,
.live-facade:focus-visible .live-cover {
    transform: scale(1.05);
}

.live-facade:hover .live-banner,
.live-facade:focus-visible .live-banner {
    transform: scale(1.03);
}

.live-facade:hover .live-play,
.live-facade:focus-visible .live-play {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 44px rgba(184, 77, 255, 0.95);
}

.live-facade:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: -3px;
}

.live-note {
    margin: 52px 0 26px;
    font-size: 0.88rem;
    text-align: center;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Rules (FAQ) and the closing call
   -------------------------------------------------------------------------- */
.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item[open] {
    border-color: var(--line-strong);
    box-shadow: inset 3px 0 0 var(--lavender), 0 0 30px -18px var(--neon);
}

.faq-item summary {
    position: relative;
    display: block;
    padding: 20px 58px 20px 24px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* A chevron drawn with two borders. */
.faq-item summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 26px;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--lavender);
    border-bottom: 2.5px solid var(--lavender);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
    color: var(--lavender);
}

.faq-body {
    padding: 0 24px 22px;
    color: var(--text-soft);
}

.prize-list {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.prize-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--neon);
    border-radius: 3px;
}

.prize-list li:first-child {
    border-left-color: var(--gold);
}

.prize-list b {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.closing-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 80px;
    text-align: center;
}

.closing-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    display: flow-root; /* the bar's negative margin must not collapse into the footer's */
    padding: 0 0 34px;
    background: linear-gradient(180deg, rgba(7, 3, 14, 0.6), #07030e 40%);
}

/* Centred on the footer's top edge: half the bar's height (168/1980 of its
   width) above it. Margin percentages count from the footer's width, like
   the bar's own width. */
.site-footer > .rail {
    width: min(1400px, 100%);
    margin: calc(min(1400px, 100%) * -0.0424) auto 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    margin-bottom: 34px;
}

.footer-brand img {
    width: 64px;
    height: 64px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-soft);
}

.footer-nav a:hover {
    color: #fff;
    text-shadow: 0 0 12px var(--neon);
}

.socials {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(118, 71, 245, 0.18);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.social svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.social:hover,
.social:focus-visible {
    background: var(--hype);
    box-shadow: 0 0 20px rgba(156, 117, 255, 0.8);
    transform: translateY(-2px);
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto 26px;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 30px;
    padding-top: 22px;
    font-size: 0.84rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.footer-18 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom a {
    color: var(--text-soft);
}

.badge-18 {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--lavender);
    border-radius: 50%;
    box-shadow: 0 0 10px -2px var(--neon);
}

/* --------------------------------------------------------------------------
   12. 18+ gate
   -------------------------------------------------------------------------- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 70px 20px;
    overflow-y: auto;
    background: rgba(6, 2, 12, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html.js:not(.age-ok) .age-gate {
    display: grid;
}

html.js:not(.age-ok) body {
    overflow: hidden;
}

.age-box {
    width: min(100%, 560px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(118, 71, 245, 0.35), transparent 70%),
        var(--panel-solid);
    border: 1px solid var(--line);
}

.age-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 34px 46px;
    text-align: center;
}

.age-emblem {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 24px rgba(184, 77, 255, 0.7));
}

.age-box h2 {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    font-weight: 900;
}

.age-box p {
    margin-bottom: 28px;
    color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   13. 404
   -------------------------------------------------------------------------- */
.notfound {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: calc(var(--header-h) + 60px) 0 100px;
    text-align: center;
}

.notfound-code {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(6rem, 22vw, 12rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

.notfound h1 {
    margin-bottom: 14px;
}

.notfound p {
    margin-bottom: 32px;
    color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        max-height: calc(100vh - var(--header-h));
        padding: 18px 24px 28px;
        overflow-y: auto;
        background: #0c0518;
        border-bottom: 2px solid var(--neon);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 2px 18px rgba(156, 117, 255, 0.5);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav ul a {
        padding: 14px 2px;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav ul a::after {
        display: none;
    }

    .site-nav .btn {
        align-self: center;
        margin-top: 6px;
    }
}

@media (max-width: 860px) {
    .section {
        padding: 90px 0;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .live-grid.is-live {
        grid-template-columns: 1fr;
    }

    .bonus-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "intro" "route" "cta";
        row-gap: 36px;
    }

    .bonus-card {
        padding: 56px 22px 30px;
    }

    .bonus-watermark {
        top: 36px;
        right: 18px;
        width: 42%;
    }

    .bonus-cta {
        align-items: center;
    }

    .live-chat {
        height: 460px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 26px;
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    /* The podium becomes a list: 1st on top, then the others in order. */
    .race-podium {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 560px;
        margin-bottom: 70px;
        padding: 0;
    }

    .podium-spot {
        order: 0;
        flex-direction: row;
        align-items: stretch;
        overflow: hidden;
        background:
            linear-gradient(90deg, color-mix(in srgb, var(--place) 20%, transparent), transparent 65%),
            var(--panel);
        border: 1px solid var(--line);
        border-left: 4px solid var(--place);
        border-radius: 6px;
    }

    /* avatar | name over wager | prize */
    .podium-player {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "avatar name prize" "avatar wager prize";
        align-items: center;
        column-gap: 14px;
        row-gap: 2px;
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 12px 14px;
        text-align: left;
        order: 2;
    }

    .podium-player .race-avatar,
    .place-1 .podium-player .race-avatar,
    .place-4 .podium-player .race-avatar,
    .place-5 .podium-player .race-avatar {
        grid-area: avatar;
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }

    .podium-player .podium-name {
        grid-area: name;
        margin: 0;
        font-size: 1.02rem;
    }

    .podium-player .podium-wager {
        grid-area: wager;
    }

    .podium-crown {
        display: none;
    }

    .podium-mobile-prize {
        display: block;
        grid-area: prize;
        align-self: center;
    }

    .place-1 .podium-mobile-prize {
        color: #2a1600;
    }

    .podium-step {
        order: 1;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 62px;
        height: auto;
        padding: 0;
        background: rgba(0, 0, 0, 0.3);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .podium-rank,
    .place-1 .podium-rank {
        font-size: 1.9rem;
    }

    .podium-step .podium-prize {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .container {
        padding: 0 18px;
    }

    .section {
        padding: 76px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .wordmark {
        font-size: 1.2rem;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: 0;
        padding-bottom: 72px;
    }

    .race-countdown {
        gap: 8px;
    }

    .race-countdown-unit {
        min-width: 0;
        flex: 1;
        max-width: 78px;
        padding: 10px 6px 8px;
    }

    .race-countdown-unit b {
        font-size: 1.9rem;
    }

    .race-countdown-unit span {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .btn-lg {
        width: 100%;
        max-width: 340px;
        padding: 0 24px;
    }

    .race-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 14px;
    }

    .race-table-header {
        flex-wrap: wrap;
        padding: 24px 14px 14px;
    }

    .race-refresh {
        width: 100%;
        margin-left: 0;
    }

    .race-refresh-track {
        flex: 1;
    }

    .race-table-footer {
        padding: 12px 14px 22px;
    }

    .step {
        padding: 30px 24px 28px;
    }

    .live-banner {
        width: 92%;
    }

    .live-play {
        bottom: 6%;
        gap: 8px;
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .faq-item summary {
        padding: 18px 50px 18px 18px;
        font-size: 1rem;
    }

    .faq-item summary::after {
        right: 20px;
    }

    .faq-body {
        padding: 0 18px 20px;
    }

    .age-box-inner {
        padding: 40px 22px 38px;
    }
}

/* --------------------------------------------------------------------------
   15. Reduced motion: no rain, no floating, no sweeping
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .rain {
        display: none;
    }
}
