/* ==========================================================================
   Israel Tiers PvP Tournament

   Taken from the art: a navy night arena, gold for glory, diamond cyan for
   the blue fighter and torch orange for the fire-lit one. Player A is always
   the blue side and Player B the orange side.

   Pixel display type for anything shouted (headings, numbers, buttons), a
   clean face for anything read.
   ========================================================================== */

:root {
    --night-0: #050a18;
    --night-1: #07102a;
    --night-2: #0c1736;
    --night-3: #13224b;
    --line: #22356f;
    --line-soft: rgba(120, 150, 230, 0.16);

    --gold: #f6c544;
    --gold-hi: #ffe48a;
    --gold-lo: #b97a10;
    --gold-edge: #6e4407;
    --gold-base: #3f2604;

    --diamond: #52dcff;
    --diamond-lo: #1a86d1;
    --torch: #ff9a3c;
    --torch-lo: #d9530e;
    --red: #ff4d5e;

    --text: #eef3ff;
    --muted: #a3b2d9;
    --faint: #6d7ca7;

    /* The main site's tier colours, copied so this site never depends on it. */
    --tier-1: #ffd04d;
    --tier-2: #9dc7ff;
    --tier-3: #ff9d60;
    --tier-4: #b698ff;
    --tier-5: #9ea8ba;

    /* Jersey 10 for anything shouted, Silkscreen for tiny spaced-out labels.
       Pixelify was tried first and dropped: at heading weight its C closes
       into an O and 5 reads as 8, which is not survivable on a timer. */
    --font-pixel: "Jersey 10", ui-monospace, monospace;
    /* Silkscreen is drawn on a pixel grid and is only clean at 8, 12 or
       16px. In between, the browser resamples it and a C closes into an O
       ("OHAMPION"), so every label using it is pinned to one of those. */
    --font-label: "Silkscreen", ui-monospace, monospace;
    --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gold-text: linear-gradient(180deg, #fff3b8 0%, #ffd23f 42%, #f2a313 72%, #c27207 100%);
    --stud: linear-gradient(135deg, #fff3b5 0 30%, #f6c544 30% 68%, #9a630b 68%);
    --card: linear-gradient(180deg, rgba(23, 40, 92, 0.72) 0%, rgba(10, 19, 46, 0.9) 100%);
}

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

.registration-closed [data-when="open"],
body:not(.registration-closed) [data-when="closed"] { display: none !important; }

html {
    scroll-behavior: smooth;
    overflow-anchor: none;
    -webkit-text-size-adjust: 100%;
    background: var(--night-0);
}

body {
    margin: 0;
    color: var(--text);
    font: 400 16px/1.6 var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

::selection { background: rgba(246, 197, 68, 0.35); }

code {
    font-family: var(--font-pixel);
    font-size: 1.2em;
    color: var(--gold-hi);
    background: rgba(246, 197, 68, 0.1);
    padding: 0 6px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   The arena behind everything
   -------------------------------------------------------------------------- */

.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--night-0);
}

.sky__image {
    position: absolute;
    inset: -3%;
    background: url("../assets/arena.webp") center 38% / cover no-repeat;
    animation: drift 48s ease-in-out infinite alternate;
    will-change: transform;
}

@media (max-width: 760px) {
    .sky__image { background-image: url("../assets/arena-mobile.webp"); }
}

.sky__embers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sky__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(130% 90% at 50% 40%, rgba(5, 10, 24, 0) 38%, rgba(5, 10, 24, 0.72) 100%),
        linear-gradient(180deg,
            rgba(5, 10, 24, 0.78) 0%,
            rgba(5, 10, 24, 0.16) 22%,
            rgba(5, 10, 24, 0.22) 58%,
            rgba(5, 10, 24, 0.86) 100%);
}

@keyframes drift {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); }
}

/* --------------------------------------------------------------------------
   Buttons: chunky, pressable, a little like an inventory button
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-pixel);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.btn img { width: 1.3em; height: 1.3em; }

.btn--gold {
    color: #2b1a00;
    background: linear-gradient(180deg, #ffe17c 0%, #f6c544 55%, #e2a52a 100%);
    box-shadow:
        0 0 0 3px var(--gold-edge),
        inset 0 3px 0 rgba(255, 255, 255, 0.55),
        inset 0 -5px 0 rgba(120, 70, 0, 0.32),
        0 7px 0 3px var(--gold-base),
        0 18px 40px rgba(246, 197, 68, 0.28);
}

.btn--gold img { filter: brightness(0) opacity(0.78); }
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn--gold:active {
    transform: translateY(5px);
    box-shadow:
        0 0 0 3px var(--gold-edge),
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 0 rgba(120, 70, 0, 0.32),
        0 2px 0 3px var(--gold-base),
        0 8px 20px rgba(246, 197, 68, 0.2);
}

.btn--ghost {
    color: var(--text);
    background: rgba(9, 18, 44, 0.62);
    box-shadow:
        0 0 0 2px rgba(163, 178, 217, 0.34),
        inset 0 2px 0 rgba(255, 255, 255, 0.06),
        0 6px 0 2px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(18, 32, 72, 0.8);
    box-shadow:
        0 0 0 2px rgba(246, 197, 68, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.06),
        0 6px 0 2px rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
}

.btn--ghost:active { transform: translateY(4px); }

.btn--big { font-size: 25px; padding: 17px 28px; }
.btn--small { font-size: 18px; padding: 8px 14px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px clamp(16px, 4vw, 40px);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.is-scrolled {
    padding-block: 10px;
    background: rgba(6, 11, 28, 0.84);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-hi);
    text-shadow: 0 2px 0 #2a1904;
}

.nav__brand img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.nav__links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav__links a {
    position: relative;
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav__links a:hover { color: var(--gold-hi); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 820px) {
    .nav__links { display: none; }
    .nav .btn { margin-left: auto; }
}

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

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 104px 18px 96px;
    text-align: center;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 1000px;
}

.hero__logo-wrap {
    animation:
        logo-in 1.3s cubic-bezier(0.16, 0.84, 0.24, 1) both,
        float 7s ease-in-out 1.3s infinite;
}

.hero__logo {
    width: min(800px, 92vw, 78svh);
    height: auto;
    filter:
        drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 50px rgba(82, 220, 255, 0.16));
}

@keyframes logo-in {
    from { opacity: 0; transform: translateY(26px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

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

.hero__edition,
.phase,
.countdown,
.hero__cta,
.hero__facts {
    animation: rise 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.hero__edition { animation-delay: 0.45s; }
.phase { animation-delay: 0.6s; }
.countdown { animation-delay: 0.72s; }
.hero__cta { animation-delay: 0.88s; }
.hero__facts { animation-delay: 1s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.hero__edition {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -6px 0 0;
    font-family: var(--font-pixel);
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-hi);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.8);
}

.pix-rule {
    width: clamp(26px, 6vw, 70px);
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px);
    opacity: 0.85;
}

.phase {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 9px 16px;
    font-family: var(--font-pixel);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(7, 14, 34, 0.74);
    border: 2px solid rgba(82, 220, 255, 0.38);
    border-radius: 3px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
}

.phase__dot {
    width: 10px;
    height: 10px;
    background: var(--diamond);
    animation: pulse-cyan 1.8s infinite;
}

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(82, 220, 255, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(82, 220, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(82, 220, 255, 0); }
}

/* The countdown: navy blocks with gold trim and corner studs, like the podium */

.countdown {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 18px);
}

.cd {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd__face {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(62px, 18vw, 126px);
    aspect-ratio: 1 / 1.08;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 2px, transparent 2px) 0 0 / 18px 18px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 2px, transparent 2px) 0 0 / 18px 18px,
        linear-gradient(180deg, #17295e 0%, #0c1636 100%);
    border: 3px solid #b98118;
    box-shadow:
        inset 0 0 0 3px #08102a,
        inset 0 16px 0 rgba(255, 255, 255, 0.035),
        0 8px 0 #040a1c,
        0 18px 34px rgba(0, 0, 0, 0.5),
        0 0 44px rgba(246, 197, 68, 0.13);
    overflow: visible;
}

.cd__face::after {
    content: "";
    position: absolute;
    inset: -7px;
    pointer-events: none;
    background:
        var(--stud) top left / 12px 12px no-repeat,
        var(--stud) top right / 12px 12px no-repeat,
        var(--stud) bottom left / 12px 12px no-repeat,
        var(--stud) bottom right / 12px 12px no-repeat;
}

.cd__num {
    display: block;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: clamp(50px, 10.5vw, 92px);
    line-height: 1;
    letter-spacing: 0.01em;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 0 #3b2304);
}

.cd__num.is-tick { animation: tick 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3); }

@keyframes tick {
    0% { transform: translateY(-16%) scale(1.06); opacity: 0.35; }
    100% { transform: none; opacity: 1; }
}

.cd__label {
    margin-top: 15px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.cd__sep {
    padding-top: clamp(14px, 3.4vw, 28px);
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 3px 0 #3b2304;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { opacity: 0.25; } }

@media (max-width: 600px) {
    .cd__sep { display: none; }
    .cd__label { letter-spacing: 0.08em; }
}

/* "SOON" spelled across the countdown blocks while registration is closed. */
.countdown--soon .cd__num { font-size: clamp(56px, 11.5vw, 100px); }

.hero__note {
    margin: -4px 0 0;
    font-size: 15px;
    color: var(--muted);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}

@media (max-width: 520px) {
    .hero__cta { flex-direction: column; width: 100%; max-width: 360px; }
    .hero__cta .btn { justify-content: center; padding: 16px 14px; font-size: 21px; }
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--muted);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__facts li + li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0 18px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.7;
}

.hero__facts strong {
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: 26px;
    color: var(--gold-hi);
    letter-spacing: 0.02em;
}

.hero__scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 3px solid rgba(238, 243, 255, 0.45);
    border-radius: 13px;
    animation: rise 0.9s 1.4s both;
}

.hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--gold);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (max-height: 760px) {
    .hero__scroll { display: none; }
}

@media (max-width: 560px) {
    .hero__facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }
    .hero__facts li { justify-content: center; }
    .hero__facts li + li::before { display: none; }
}

/* --------------------------------------------------------------------------
   Everything below the hero
   -------------------------------------------------------------------------- */

.content {
    position: relative;
    background: linear-gradient(180deg,
        rgba(7, 13, 32, 0) 0,
        rgba(7, 13, 32, 0.9) 260px,
        rgba(7, 13, 32, 0.97) 100%);
}

/* A faint block grid, like looking down at the arena floor. */
.content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(120, 150, 230, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(120, 150, 230, 0.045) 1px, transparent 1px) 0 0 / 32px 32px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 320px);
    mask-image: linear-gradient(180deg, transparent 0, #000 320px);
}

.section {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(52px, 8vw, 104px) clamp(16px, 4vw, 32px);
    scroll-margin-top: 40px;
}

.section__head {
    max-width: 720px;
    margin: 0 auto clamp(34px, 5vw, 56px);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--diamond);
}

.title {
    margin: 0;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: clamp(46px, 6.8vw, 80px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 5px 0 #33200a) drop-shadow(0 0 26px rgba(246, 197, 68, 0.2));
}

.section__lead {
    max-width: 600px;
    margin: 16px auto 0;
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--muted);
}

.live-dot {
    width: 9px;
    height: 9px;
    background: var(--red);
    animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}

/* Things that rise into place as they scroll into view. */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 0.84, 0.24, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Fighters
   -------------------------------------------------------------------------- */

.fighters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.fighters-count {
    margin: 0;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.fighters-count strong {
    display: inline-block;
    margin-right: 10px;
    font-size: 40px;
    font-weight: 400;
    color: var(--gold-hi);
    vertical-align: -6px;
    font-family: var(--font-pixel);
}

[data-count].is-bump { animation: bump 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.4); }

@keyframes bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); color: #fff; }
    100% { transform: scale(1); }
}

.search {
    position: relative;
    flex: 0 1 300px;
}

.search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    fill: var(--faint);
    pointer-events: none;
}

.search input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font: 500 15px var(--font-body);
    color: var(--text);
    background: rgba(9, 17, 42, 0.82);
    border: 2px solid var(--line);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder { color: var(--faint); }

.search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(246, 197, 68, 0.18);
}

.fighters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.fighter {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 14px 14px 13px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fighter:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 197, 68, 0.6);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(246, 197, 68, 0.14);
}

.fighters:not(.is-revealed) .fighter { opacity: 0; }

.fighters.is-revealed .fighter:not(.is-new) {
    animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(14px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

.fighter.is-new { animation: join 1.05s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

.fighter.is-new::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 0 26px rgba(246, 197, 68, 0.6), inset 0 0 18px rgba(246, 197, 68, 0.2);
    pointer-events: none;
    animation: flash 2.6s ease-out forwards;
}

@keyframes join {
    0% { opacity: 0; transform: translateY(-22px) scale(0.6); }
    55% { opacity: 1; transform: scale(1.04); }
    100% { transform: none; }
}

@keyframes flash {
    0%, 45% { opacity: 1; }
    100% { opacity: 0; }
}

/* The head sits in an inventory slot. */
.slot,
.fighter__slot {
    flex: none;
    padding: 6px;
    background: #131e46;
    box-shadow: inset 3px 3px 0 #070c22, inset -3px -3px 0 #2b3c79;
}

.fighter__head {
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
}

.fighter__body {
    flex: 1;
    min-width: 0;
}

.fighter__name {
    margin: 1px 0 0;
    padding-right: 34px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fighter__no {
    position: absolute;
    top: 11px;
    right: 12px;
    font-family: var(--font-label);
    font-size: 12px;
    color: var(--faint);
}

.ranks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 8px 0 3px;
    font-family: var(--font-pixel);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.03em;
    background: rgba(4, 8, 22, 0.62);
    border: 1px solid var(--line-soft);
    border-radius: 3px;
}

.rank__icon {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
}

.rank__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* The main site's retired stamp: centred on the icon, with the same shadow. */
.rank__icon .rank__retired {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 32px;
    height: 18px;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.rank--more {
    padding: 0 9px;
    color: var(--muted);
}

.t1 { color: var(--tier-1); }
.t2 { color: var(--tier-2); }
.t3 { color: var(--tier-3); }
.t4 { color: var(--tier-4); }
.t5 { color: var(--tier-5); }

.fighters-empty {
    margin: 26px 0 0;
    padding: 26px;
    text-align: center;
    color: var(--muted);
    border: 2px dashed var(--line);
    border-radius: 6px;
}

.preview-note {
    margin: 24px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   Format: the steps and the example match room
   -------------------------------------------------------------------------- */

.format {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

@media (max-width: 960px) {
    .format { grid-template-columns: 1fr; }
}

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

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border-left: 3px solid var(--line);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.step.is-active {
    border-color: var(--gold);
    background: linear-gradient(90deg, rgba(246, 197, 68, 0.11), transparent 85%);
}

.step__n {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: 25px;
    color: #2b1a00;
    background: linear-gradient(180deg, #ffe17c, #e2a52a);
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 0 2px var(--gold-base);
    transition: transform 0.3s ease;
}

.step.is-active .step__n { transform: scale(1.12); }

.step h3 {
    margin: 1px 0 4px;
    font-family: var(--font-pixel);
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.step p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.veto {
    position: sticky;
    top: 92px;
    padding: clamp(14px, 2.4vw, 24px);
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(246, 197, 68, 0.08), transparent),
        linear-gradient(180deg, rgba(18, 33, 74, 0.94) 0%, rgba(8, 15, 38, 0.97) 100%);
    border: 2px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.45);
}

@media (max-width: 960px) {
    .veto { position: relative; top: 0; }
}

.veto__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.vp {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.vp--a {
    color: var(--diamond);
    background: linear-gradient(90deg, rgba(82, 220, 255, 0.17), rgba(82, 220, 255, 0.02));
    border-color: rgba(82, 220, 255, 0.34);
}

.vp--b {
    flex-direction: row-reverse;
    text-align: right;
    color: var(--torch);
    background: linear-gradient(270deg, rgba(255, 154, 60, 0.17), rgba(255, 154, 60, 0.02));
    border-color: rgba(255, 154, 60, 0.34);
}

.veto[data-turn="a"] .vp--b,
.veto[data-turn="b"] .vp--a { opacity: 0.55; }

.vp.is-turn {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px currentColor, 0 0 26px -2px currentColor;
}

.vp.is-winner { box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(246, 197, 68, 0.55); }

.vp__slot { padding: 4px; }

.vp__head {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.vp__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.vp__side {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vp__who strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.veto__timer {
    position: relative;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
}

.veto__timer svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.veto__track {
    fill: rgba(4, 8, 22, 0.7);
    stroke: rgba(120, 150, 230, 0.18);
    stroke-width: 5;
}

.veto__ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-linecap: butt;
    stroke-dasharray: 157.08;
    stroke-dashoffset: 0;
    transition: stroke 0.2s ease;
}

.veto[data-turn="a"] .veto__ring { stroke: var(--diamond); }
.veto[data-turn="b"] .veto__ring { stroke: var(--torch); }

.veto__timer span {
    position: relative;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: 27px;
    color: var(--text);
}

.veto__caption {
    min-height: 1.5em;
    margin: 18px 0 14px;
    text-align: center;
    font-family: var(--font-pixel);
    font-size: clamp(22px, 2.6vw, 26px);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--gold-hi);
}

.veto__caption .ca { color: var(--diamond); }
.veto__caption .cb { color: var(--torch); }

.veto__board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(5px, 1vw, 9px);
}

.vcell {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: #0d1838;
    border: 2px solid #1f3068;
    border-radius: 5px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.3s ease;
}

.vcell img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.vcell__tag {
    position: absolute;
    top: -7px;
    left: -7px;
    display: none;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    font-family: var(--font-pixel);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #06102a;
    border-radius: 2px;
    z-index: 2;
}

.vcell[data-by] .vcell__tag { display: block; }
.vcell[data-by="a"] .vcell__tag { background: var(--diamond); }
.vcell[data-by="b"] .vcell__tag { background: var(--torch); }

.vcell.is-banned { border-color: #45202a; background: #120c1c; }
.vcell.is-banned img { filter: grayscale(1) brightness(0.42); transform: scale(0.9); }

.vcell.is-banned::after {
    content: "";
    position: absolute;
    inset: 16%;
    background:
        linear-gradient(45deg, transparent 43%, var(--red) 43% 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, var(--red) 43% 57%, transparent 57%);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
    animation: stamp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}

@keyframes stamp {
    from { transform: scale(1.8); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.vcell.is-pick-a {
    border-color: var(--diamond);
    background: rgba(82, 220, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(82, 220, 255, 0.3), 0 0 20px rgba(82, 220, 255, 0.4);
}

.vcell.is-pick-b {
    border-color: var(--torch);
    background: rgba(255, 154, 60, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 154, 60, 0.3), 0 0 20px rgba(255, 154, 60, 0.4);
}

.vcell.is-pick-a img,
.vcell.is-pick-b img { animation: pick 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.6); }

@keyframes pick {
    from { transform: scale(0.6); }
    to { transform: none; }
}

.veto.is-spinning .vcell:not(.is-pick-a):not(.is-pick-b) { opacity: 0.35; }

.vcell.is-spin {
    z-index: 1;
    transform: scale(1.12);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(246, 197, 68, 0.65);
}

.vcell.is-chosen {
    z-index: 1;
    transform: scale(1.18);
    border-color: var(--gold);
    background: rgba(246, 197, 68, 0.16);
    box-shadow: 0 0 0 3px var(--gold), 0 0 44px rgba(246, 197, 68, 0.8);
    animation: chosen 1.4s ease-in-out infinite;
}

@keyframes chosen {
    0%, 100% { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(246, 197, 68, 0.6); }
    50% { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 56px rgba(246, 197, 68, 0.95); }
}

.veto.is-done .vcell:not(.is-chosen) { opacity: 0.28; }

.veto__result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 74px;
    margin-top: 18px;
}

.veto__result > span {
    display: flex;
    align-items: center;
    gap: 14px;
}

.veto__result.is-in > span { animation: result-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }

@keyframes result-in {
    from { opacity: 0; transform: translateY(10px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.veto__pending { opacity: 0.8; }

.veto__qmark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    font-family: var(--font-pixel);
    font-size: 36px;
    line-height: 1;
    color: var(--gold-hi);
    background: rgba(246, 197, 68, 0.05);
    border: 2px dashed rgba(246, 197, 68, 0.45);
    border-radius: 6px;
}

.veto__pending-title {
    display: block;
    font-family: var(--font-pixel);
    font-size: 30px;
    line-height: 1;
    color: var(--text);
}

.veto__result img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(246, 197, 68, 0.5));
}

.veto__result-kit {
    display: block;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 46px);
    line-height: 1;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 0 #33200a);
}

.veto__result-ft {
    display: block;
    margin-top: 6px;
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.veto__note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--faint);
}

@media (max-width: 520px) {
    .vp__head { width: 30px; height: 30px; }
    .vp__side { font-size: 8px; letter-spacing: 0.08em; }
    .vp__who strong { font-size: 13px; }
    .veto__timer { width: 48px; height: 48px; }
    .vcell__tag { min-width: 16px; height: 16px; line-height: 16px; font-size: 13px; top: -5px; left: -5px; }
}

/* --------------------------------------------------------------------------
   Kits
   -------------------------------------------------------------------------- */

.kits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.kit {
    flex: 1 1 140px;
    max-width: 168px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 12px 18px;
    text-align: center;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.kit::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70%;
    background: radial-gradient(60% 80% at 50% 100%, rgba(246, 197, 68, 0.14), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kit:hover {
    transform: translateY(-5px);
    border-color: rgba(246, 197, 68, 0.55);
    box-shadow: 0 11px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(246, 197, 68, 0.14);
}

.kit:hover::before { opacity: 1; }

.kit__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
}

.kit__icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.kit:hover .kit__icon img { transform: scale(1.14) rotate(-5deg); }

.kit__name {
    position: relative;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.kit__ft {
    position: relative;
    margin: 0;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.kit__ft b {
    margin-left: 6px;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--gold-hi);
    font-family: var(--font-pixel);
    vertical-align: -4px;
}

.kit__servers {
    position: relative;
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   Prizes
   -------------------------------------------------------------------------- */

.section--prizes { overflow: hidden; }

.section--prizes::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(1100px, 130vw);
    aspect-ratio: 2 / 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(246, 197, 68, 0.13), transparent);
    pointer-events: none;
}

.podium {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding-top: clamp(70px, 14vw, 150px);
}

.podium__stage { position: relative; }

.podium__base {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.6));
}

.trophy {
    position: absolute;
    height: auto;
    transform: translateX(-50%);
    animation: trophy-float 4.6s ease-in-out infinite;
}

.trophy--1 {
    left: 50.2%;
    bottom: 63%;
    width: 25%;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 34px rgba(246, 197, 68, 0.45));
}

.trophy--2 {
    left: 17.6%;
    bottom: 54%;
    width: 20%;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(200, 220, 255, 0.35));
    animation-delay: -1.5s;
}

.trophy--3 {
    left: 82.4%;
    bottom: 47%;
    width: 20%;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(255, 150, 80, 0.35));
    animation-delay: -3s;
}

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

/* What each place wins, under its block of the podium. */
.prizes {
    display: grid;
    grid-template-columns: 1fr 1.06fr 1fr;
    gap: clamp(12px, 2vw, 20px);
    align-items: stretch;
    margin-top: 26px;
}

.prize {
    --metal: #d6e2f5;
    --edge: rgba(214, 226, 245, 0.35);
    --glow: rgba(70, 135, 255, 0.32);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 22px 18px 20px;
    text-align: center;
    background:
        radial-gradient(80% 55% at 50% 32%, var(--glow), transparent 72%),
        var(--card);
    border: 2px solid var(--edge);
    border-top: 4px solid var(--metal);
    border-radius: 6px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32), 0 24px 50px rgba(0, 0, 0, 0.35);
}

.prize--1 {
    --metal: var(--gold);
    --edge: rgba(246, 197, 68, 0.45);
    --glow: rgba(176, 82, 255, 0.34);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32), 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 46px rgba(246, 197, 68, 0.14);
}

.prize--3 {
    --metal: #ef9c5e;
    --edge: rgba(239, 156, 94, 0.38);
    --glow: rgba(255, 140, 70, 0.22);
}

.prize__place {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
}

.prize__rank {
    font-family: var(--font-pixel);
    font-size: 38px;
    line-height: 1;
    color: var(--metal);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}

.prize--1 .prize__rank {
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 0 #33200a);
}

.prize__label {
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.prize__art {
    width: clamp(100px, 11vw, 136px);
    height: auto;
    margin: 12px 0 8px;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px var(--glow));
    animation: bob 4.4s ease-in-out infinite;
}

.prize--1 .prize__art { animation-delay: -1.4s; }
.prize--3 .prize__art { animation-delay: -2.8s; }

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

.prize__headline {
    margin: 0 0 16px;
    font-family: var(--font-pixel);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(180deg, #e9f1ff, #8fb8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55));
}

.prize--1 .prize__headline { background-image: linear-gradient(180deg, #ffe0ff 0%, #e08cff 55%, #a64dff 100%); }
.prize--3 .prize__headline { background-image: linear-gradient(180deg, #ffd8b8, #e58a4a); }

.prize__list {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
    text-align: left;
    border-top: 1px solid var(--line-soft);
}

.prize__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--muted);
}

.prize__list img,
.prize__list svg {
    flex: none;
    width: 26px;
    height: 26px;
}

.prize__list svg { fill: var(--metal); }

@media (max-width: 760px) {
    .prizes { grid-template-columns: 1fr; }
    .prize--1 { order: -1; }

    .prize {
        display: grid;
        grid-template-columns: 92px 1fr;
        column-gap: 16px;
        align-items: center;
        text-align: left;
    }

    .prize__art {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 92px;
        margin: 0;
    }

    .prize__place { grid-column: 2; }
    .prize__headline { grid-column: 2; margin: 6px 0 0; font-size: 28px; }
    .prize__list { grid-column: 1 / -1; margin-top: 16px; }
}

/* --------------------------------------------------------------------------
   Rules
   -------------------------------------------------------------------------- */

.reqs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.req {
    padding: 24px 22px 22px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.req__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffe17c, #e2a52a);
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 0 2px var(--gold-base);
}

.req__mark svg {
    width: 22px;
    height: 22px;
    fill: #2b1a00;
}

.req h3 {
    margin: 0 0 6px;
    font-family: var(--font-pixel);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.1;
}

.req p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.essentials {
    margin-top: 40px;
    padding: clamp(22px, 3vw, 32px);
    background: rgba(9, 17, 42, 0.75);
    border: 2px solid var(--line);
    border-radius: 7px;
}

.essentials__title {
    margin: 0 0 20px;
    font-family: var(--font-pixel);
    font-size: 34px;
    font-weight: 400;
    color: var(--gold-hi);
}

.essentials ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.essentials li {
    display: grid;
    gap: 3px;
    padding-left: 18px;
    border-left: 3px solid var(--line);
}

.essentials b {
    font-family: var(--font-pixel);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text);
    line-height: 1.1;
}

.essentials span {
    font-size: 15px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Final call to action
   -------------------------------------------------------------------------- */

.final { padding-top: clamp(20px, 4vw, 40px); }

.final__card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(80px, 9vw, 104px) clamp(20px, 5vw, 56px) clamp(36px, 5vw, 52px);
    text-align: center;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(246, 197, 68, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(22, 38, 86, 0.92), rgba(9, 17, 42, 0.96));
    border: 2px solid rgba(246, 197, 68, 0.45);
    border-radius: 10px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(246, 197, 68, 0.1);
}

.final__trophy {
    position: absolute;
    /* Lifted half out of the card with `top`, not with a transform: the float
       animation owns the transform and would put the trophy back on the title. */
    top: calc(clamp(120px, 16vw, 160px) / -2);
    left: 50%;
    width: clamp(120px, 16vw, 160px);
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(246, 197, 68, 0.45));
    animation: trophy-float 4.6s ease-in-out infinite;
}

.final .section__lead { margin-bottom: 28px; }
.final .section__lead strong { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }

@media (max-width: 520px) {
    .final__card { padding-inline: 16px; }
    .final .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 14px;
        font-size: 21px;
        white-space: nowrap;
    }
}

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

.footer {
    position: relative;
    padding: 64px 20px 54px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(5, 10, 24, 0.9) 40%);
    border-top: 1px solid var(--line-soft);
}

.footer__logo {
    width: min(280px, 70vw);
    height: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.footer p { margin: 4px 0; color: var(--muted); }
.footer__small { font-size: 13px; color: var(--faint) !important; }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

@media (max-width: 520px) {
    .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
}

.toast {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 380px;
    padding: 10px 16px 10px 10px;
    font-size: 14px;
    background: rgba(10, 19, 46, 0.96);
    border: 2px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s ease;
}

.toast.is-in { opacity: 1; transform: none; }

.toast img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    flex: none;
}

.toast b { color: var(--gold-hi); font-weight: 600; }

/* --------------------------------------------------------------------------
   Less motion when asked for
   -------------------------------------------------------------------------- */

/*
 * Reduced motion means no movement for its own sake, not a dead page. What
 * goes is everything that drifts, floats, flies, zooms or bounces. What stays
 * is what carries meaning: the countdown counting, fighters arriving, and the
 * example match room, which is an explanation and would explain nothing as a
 * still picture. Those change by fading and lighting up instead of moving.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .sky__image,
    .trophy,
    .cd__sep,
    .hero__scroll span { animation: none; }

    .hero__logo-wrap,
    .hero__edition,
    .phase,
    .countdown,
    .hero__cta,
    .hero__facts,
    .hero__scroll { animation: fade 0.8s ease both; }

    .reveal { transform: none; }

    .fighters.is-revealed .fighter:not(.is-new),
    .fighter.is-new,
    .veto__result.is-in > span { animation: fade 0.6s ease both; }

    .final__trophy,
    .prize__art { animation: none; }

    .cd__num.is-tick,
    .vcell.is-banned::after,
    .vcell.is-pick-a img,
    .vcell.is-pick-b img,
    .vcell.is-chosen { animation: none; }

    .vcell.is-spin,
    .vcell.is-chosen,
    .vp.is-turn,
    .step.is-active .step__n,
    .vcell.is-banned img,
    .btn:hover,
    .btn:active,
    .fighter:hover,
    .kit:hover,
    .kit:hover .kit__icon img { transform: none; }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
