/* ==========================================================================
   REDZERO ESPORTS — STYLESHEET
   Follows the Redzero Brand Guidelines v2.1: one red (#F82222) on a cool
   blue-black, roughly 60% blue-black, 30% steel and neutral type, 10% red.
   Saira carries the voice at size; Inter is what people read.
   Signature motif: the slant of the italic, used on buttons and rules.
   The square red dot marks live status only (recruiting, a giveaway that
   is open), never decoration. Small labels are sentence case; the only
   uppercase type is the italic display voice and the logo lockup.
   ========================================================================== */

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

:root {
    --header-height: 72px;

    /* Brand palette */
    --black: #0A0E14;        /* rz-midnight, surface-100: page ground */
    --surface: #131922;      /* rz-night, surface-000: slabs, base layer */
    --surface-2: #1F2633;    /* rz-steel, surface-200: cards */
    --line: #2A3345;         /* rz-border: hairlines */
    --line-strong: #3A4559;
    --white: #EEF1F5;        /* rz-frost: headlines, primary text */
    --red: #F82222;          /* rz-red: emblem, one red word, RZ score */
    --red-fill: #E31C1C;     /* rz-red-fill: red behind white text */
    --red-hover: #C41616;    /* rz-red-pressed: hover always goes darker */
    --red-dark: #C41616;
    --red-tint: #4A0A0E;     /* rz-red-tint: large red areas */
    --red-text: #FF5A6A;     /* small red type, the word LOSS */
    --win: #5EEAD4;          /* the word WIN only */
    --red-soft: rgba(248, 34, 34, 0.1);
    --gray-100: #EEF1F5;
    --gray-200: #EEF1F5;
    --gray-300: #B4BCC8;     /* rz-ash: body text */
    --gray-400: #B4BCC8;
    --gray-500: #8791A0;     /* rz-slate: captions, muted text */
    --gray-700: #1F2633;
    --display: 'Saira', 'Arial Narrow', sans-serif;
    --name: 'Nebula', var(--display); /* player names */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: var(--font);     /* captions are Inter; no third typeface */
    --slant: 10px;           /* horizontal offset for slanted corners */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.16s var(--ease);  /* hover, press, toggles */
    --enter: 0.32s var(--ease);       /* menus, popups, things that arrive */
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

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

.container {
    width: min(1280px, 100% - 48px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--white);
    color: var(--black);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}
.skip-link:focus { top: 12px; }

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

/* ===== Type ===== */
.text-red { color: var(--red); }
/* small red type on Night/Steel uses red-text for contrast */
.mini-stat-val.text-red { color: var(--red-text); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.eyebrow-sep { color: var(--gray-500); }

/* square status dot, never glowing: only next to something live or open */
.red-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    flex-shrink: 0;
}

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

/* h2: Saira 700, sentence case */
.section-title {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.17;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-400);
    max-width: 420px;
    line-height: 1.5;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* ===== Buttons (slanted) ===== */
.btn {
    --cut: var(--slant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--display);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: 0;
    border: none;
    background: none;
    color: var(--white);
    clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn svg { transition: transform var(--transition); }
.btn:focus-visible { clip-path: none; }
.btn:hover svg { transform: translateX(3px); }

/* red fills use rz-red-fill (white passes 4.7:1); hover goes darker */
.btn-primary { background: var(--red-fill); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }

.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--gray-300); }

.btn-ghost,
.btn-outline { background: var(--surface-2); }
.btn-ghost:hover,
.btn-outline:hover { background: var(--line-strong); }

/* Saira never goes below 18px, so small buttons switch to Inter */
.btn-sm { padding: 8px 20px; font-family: var(--font); font-size: 14px; line-height: 20px; --cut: 8px; }
.btn-large { padding: 16px 36px; }
.btn:active { transform: scale(0.98); }

.btn:disabled { opacity: 0.6; cursor: wait; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 14, 20, 0.92);
    border-bottom-color: var(--line);
}

.navbar { height: var(--header-height); display: flex; align-items: center; }

.nav-container {
    width: min(1280px, 100% - 48px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 12px; width: fit-content; }
.nav-logo .logo-icon { height: 34px; width: auto; }

.nav-logo-tag {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    line-height: 1;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active { color: var(--white); }

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--red);
    transform: skewX(-20deg) scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav-link:hover::after { transform: skewX(-20deg) scaleX(1); }
.nav-link-ext::after { display: none; }
.nav-link-ext span { font-size: 12px; }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform var(--transition), opacity var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#main-content { padding-top: var(--header-height); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0 48px;
    overflow: hidden;
    isolation: isolate;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* display-hero: Saira 900 italic, uppercase, -0.01em */
.hero-title {
    font-size: clamp(48px, 6.6vw, 96px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.hero-line { display: block; padding-right: 0.08em; }

/* lead: Saira 600 18/28 */
.hero-description {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-400);
    max-width: 540px;
    line-height: 28px;
    margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { min-width: 0; display: grid; gap: 24px; }

/* Divisions. The signed roster is a team photo, lit red; the games we're
   recruiting for are open slots, unlit, until hovered.

   The roster as a team photo: the same cut-outs as the roster cards, staggered
   in two rows on one slanted, red-lit panel. Sizes are in portrait widths:
   --units is the group's width, --height its height, --x each player's left
   edge (set per player by script.js). The base dissolves into the page. */
.hero-lineup {
    --raise: 0.36;   /* how far the back row stands above the front row */
    position: relative;
    aspect-ratio: var(--units) / var(--height);
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 66%, transparent 96%);
}
.hero-lineup::before {
    content: '';
    position: absolute;
    inset: 16% 2% 0;
    clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
    background:
        radial-gradient(60% 55% at 50% 40%, rgba(248, 34, 34, 0.32), transparent 72%),
        linear-gradient(180deg, var(--red-tint) 0%, var(--surface) 80%);
}
.hero-lineup-player {
    position: absolute;
    bottom: 0;
    left: calc(100% * var(--x) / var(--units));
    width: calc(100% / var(--units));
    height: auto;
}
.hero-lineup-back {
    bottom: calc(100% * var(--raise) / var(--height));
    transform: scale(0.92);
    transform-origin: bottom center;
    filter: brightness(0.7);
}

.division-label { display: grid; }
.hero-lineup + .division-label { margin-top: -32px; position: relative; }
.division-game { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 28px; color: var(--white); }
.division-status { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gray-500); }
.division-status-open { color: var(--red-text); }
.division-status-open::after { content: '\2192'; display: inline-block; margin-left: 6px; transition: transform var(--transition); }

.open-division {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
/* Five silhouettes, head and shoulders, standing where a team will go. */
.open-division-figures {
    position: relative;
    display: flex;
    justify-content: center;
    aspect-ratio: 3.4 / 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.open-division-figures::before,
.open-division-figures::after {
    content: '';
    position: absolute;
    inset: 20% 0 0;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.open-division-figures::before { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%); }
.open-division-figures::after {
    background:
        radial-gradient(60% 70% at 50% 40%, rgba(248, 34, 34, 0.28), transparent 75%),
        linear-gradient(180deg, var(--red-tint) 0%, var(--surface) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}
.open-division-figures img {
    position: relative;
    z-index: 1;
    flex: none;
    width: 26%;
    height: auto;
    align-self: flex-start;
    margin: 3% -4.5% 0;
    filter: brightness(0);
    transform: scaleX(-1);
}
/* A shallow V: the middle figure stands forward and lowest. */
.open-division-figures img:nth-child(even) { z-index: 2; margin-top: 6%; }
.open-division-figures img:nth-child(3) { z-index: 3; margin-top: 8%; }
.open-division:hover .open-division-figures::after,
.open-division:focus-visible .open-division-figures::after { opacity: 1; }
.open-division:hover .division-status-open::after,
.open-division:focus-visible .division-status-open::after { transform: translateX(4px); }

/* ===== Page blueprint (tactical floor plan, fixed behind every section) ===== */
.page-blueprint {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 95% 90% at 55% 45%, #000 45%, transparent 95%);
            mask-image: radial-gradient(ellipse 95% 90% at 55% 45%, #000 45%, transparent 95%);
}
.page-blueprint svg { width: 100%; height: 100%; display: block; }
.page-blueprint path, .page-blueprint rect { vector-effect: non-scaling-stroke; }
.bp-grid { stroke: rgba(255, 255, 255, 0.025); stroke-width: 1; }
.bp-wall-outer { stroke: rgba(255, 255, 255, 0.13); stroke-width: 3; }
.bp-wall { stroke: rgba(255, 255, 255, 0.09); stroke-width: 2; }
.bp-window { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.bp-thin { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.bp-door { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; stroke-dasharray: 3 4; }
/* The plan is the backdrop, not a show: static, so it never competes with the roster. */
.bp-route { stroke: rgba(248, 34, 34, 0.35); stroke-width: 1.5; stroke-dasharray: 6 8; }
.bp-site path { stroke: rgba(248, 34, 34, 0.4); stroke-width: 2; }
.bp-label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; fill: rgba(248, 34, 34, 0.35); }
.bp-label-dim { fill: rgba(255, 255, 255, 0.18); }

/* Status strip */
.status-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 72px;
    border-top: 1px solid var(--line);
}

.status-item {
    padding: 24px 24px 0;
    border-left: 1px solid var(--line);
}
.status-item:first-child { padding-left: 0; border-left: none; }

.status-item dt {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.status-item dd {
    font-family: var(--display);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* static square dot: red never pulses or flashes */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
}

/* ===== Marquee ===== */
.marquee {
    position: relative;
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 24px 0;
    background: var(--surface);
}

.motion-toggle {
    position: absolute;
    right: 16px;
    bottom: 4px;
    z-index: 1;
    padding: 4px 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--white);
    font-size: 12px;
    cursor: pointer;
}
.motion-paused .marquee-track { animation-play-state: paused; }

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 64s linear infinite;
}

/* Spacing lives on each item (not flex gap) so both halves of the track are
   exactly equal and the -50% loop joins seamlessly. */
.marquee-track span { margin-right: 56px; }

.marquee-track span {
    font-family: var(--display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--white);
}

/* Outline text: draw a thick stroke *behind* a fill that matches the background.
   The fill covers the inner half of the stroke plus any overlapping contours
   inside the italic glyphs, leaving one clean outer outline. */
.marquee-track span.outline {
    color: var(--surface);
    -webkit-text-stroke: 3px var(--gray-500);
    paint-order: stroke fill;
}

.marquee-track span:not(.outline)::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 0.5em;
    margin-left: 56px;
    background: var(--red);
    transform: skewX(-20deg);
    vertical-align: middle;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Team / pillars ===== */
.team-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.team-intro { position: sticky; top: calc(var(--header-height) + 40px); }
.team-intro .section-title { margin-bottom: 20px; }

.pillars { border-top: 1px solid var(--line); counter-reset: none; }

.pillar {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 24px;
    align-items: baseline;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.pillar::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--enter);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
}

.pillar-body h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pillar-body p { color: var(--gray-400); font-size: 15px; max-width: 460px; }

.pillar-meta {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
}

.map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.map-chips li {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-200);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 0;
}

/* ===== Roster ===== */
.rosters-section { background: rgba(19, 25, 34, 0.55); border-block: 1px solid var(--line); container-type: inline-size; }

.players-grid {
    --roster-columns: 5;
    --roster-gap: 16px;
    display: grid;
    grid-template-columns: repeat(var(--roster-columns), minmax(0, 1fr));
    gap: var(--roster-gap);
}
/* Keep the announced lineup together on wide screens. */
@media (min-width: 1081px) {
    /* Six players across one row: 10% wider than the page column, centred and kept off the window edges
       (cqw: the roster section's width, which excludes the scrollbar). */
    .players-grid:has(> .player-card:nth-child(6):last-child),
    .players-grid:has(> .player-card:nth-child(7):last-child) {
        --row: min(1386px, 100cqw - 32px);
        --roster-columns: 6;
        --roster-gap: 12px;
        width: var(--row);
        margin-inline: calc((100% - var(--row)) / 2);
    }
}

.player-card {
    container-type: inline-size;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    /* Keep the card on its own compositing layer at all times. Otherwise the
       browser promotes it only while the hover animation runs, re-rounds the
       image edge, and a hairline gap flashes at the start/end of the hover. */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.player-card:hover { border-color: rgba(248, 34, 34, 0.5); transform: translate3d(0, -4px, 0); }

/* Placeholder slots */
.player-card-pending {
    cursor: default;
    aspect-ratio: 3 / 4;
    justify-content: space-between;
    padding: 24px;
    background:
        repeating-linear-gradient(-60deg, transparent 0 14px, rgba(255, 255, 255, 0.018) 14px 15px),
        var(--surface);
}
.player-card-pending:hover { transform: translate3d(0, 0, 0); border-color: var(--line-strong); }

.slot-num {
    font-size: clamp(56px, 6vw, 88px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--surface);
    -webkit-text-stroke: 3px var(--line-strong);
    paint-order: stroke fill;
    transition: -webkit-text-stroke-color var(--transition);
}
.player-card-pending:hover .slot-num { -webkit-text-stroke-color: var(--red); }

.slot-role {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--red-text);
    margin-bottom: 4px;
}

.player-card-pending .player-alias { font-size: 16px; font-weight: 600; color: var(--gray-400); text-transform: none; white-space: normal; }

/* Announced player cards: a full-bleed cut-out portrait on a shared red-lit
   backdrop, with the role and name laid over the bottom. The photos are
   transparent cut-outs framed identically (see assets/players), so the glow
   comes from CSS and every card matches. */
.player-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(70% 55% at 50% 38%, rgba(248, 34, 34, 0.30), transparent 70%),
        linear-gradient(180deg, var(--red-tint) 0%, var(--surface) 78%);
}
/* Brighter glow fades in on hover. Opacity only: no transforms on the media
   (a transformed photo in a clipped, fractional-height box shows hairlines). */
.player-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(75% 60% at 50% 36%, rgba(248, 34, 34, 0.42), transparent 72%);
    opacity: 0;
    transition: opacity var(--transition);
}
.player-card:hover .player-card-media::before,
.player-card:focus-within .player-card-media::before { opacity: 1; }
/* Shade under the name so it reads over the shirt. */
.player-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 45%;
    background: linear-gradient(to top, var(--surface) 8%, rgba(19, 25, 34, 0.75) 45%, transparent);
}
.player-card-img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.player-card-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 16px;
}
.player-card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; }
/* Same face as the name (Nebula), smaller and red. */
.player-card-role {
    display: block;
    font-family: var(--name);
    font-size: clamp(11px, 6cqi, 13px);
    font-weight: 400;
    font-synthesis: none;
    line-height: 16px;
    color: var(--red-text);
}
.player-alias-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
/* Scale with the card width; allow long names and enlarged text to wrap. */
.player-alias { font-size: clamp(16px, 13cqi, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.player-country { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; line-height: 1; flex: none; }
.country-flag { width: 20px; height: 15px; object-fit: cover; flex: none; }
/* Nebula is very wide (letters run up to ~0.85em). Every name is sized as if it
   were nine letters (DesertCat) so the row matches; a longer name (--chars, set
   per card) steps down further to stay on one line. */
.player-card-content .player-alias {
    font-family: var(--name);
    font-weight: 400;
    font-synthesis: none;
    font-size: calc((100cqi - 32px) * 1.1 / max(9, var(--chars, 9))); /* 32px = text padding */
    letter-spacing: 0;
    white-space: nowrap;
}
/* The name is the card's button; stretch its hit area over the whole card. */
.player-card-link { font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.player-card-link::after { content: ''; position: absolute; inset: -9999px; }
.player-card:has(.player-card-link) { cursor: pointer; }
.player-card:has(.player-card-link:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.player-card-link:focus-visible { outline: none; }
.player-card-coach {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - (var(--roster-columns) - 1) * var(--roster-gap)) / var(--roster-columns));
    cursor: default;
}
.player-stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-block: 1px solid var(--line);
    margin-bottom: 16px;
}
.mini-stat-label {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}
.mini-stat-val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.player-socials-row { display: flex; flex-wrap: wrap; gap: 8px; }
.player-social {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--surface-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--line);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.player-social:hover { color: var(--white); border-color: var(--line-strong); background: var(--line); }

/* ===== Matches ===== */
.match-view-toggle { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }

.toggle-tab {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    position: relative;
    transition: color var(--transition);
}
.toggle-tab:hover { color: var(--white); }
.toggle-tab.active { color: var(--white); }
.toggle-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--red);
}

.match-list { display: flex; flex-direction: column; gap: 12px; }

.match-empty-state {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge badge"
        "title title"
        "desc  desc"
        "foot  foot";
    gap: 12px;
    padding: 48px;
    border: 1px dashed var(--line-strong);
    background: rgba(19, 25, 34, 0.8);
}
.empty-state-badge {
    grid-area: badge;
    width: fit-content;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--red);
}
.empty-state-title {
    grid-area: title;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
}
.empty-state-title::first-letter { text-transform: uppercase; }
.empty-state-desc { grid-area: desc; color: var(--gray-400); max-width: 620px; font-size: 15px; }
.empty-state-footer {
    grid-area: foot;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--gray-500);
}
.empty-state-footer strong { color: var(--gray-200); font-weight: 500; }

/* Tournaments the team is entered in, listed above the fixtures */
.match-list-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 12px;
}
.match-list-label:first-child { margin-top: 0; }
.match-list-note { font-size: 14px; color: var(--gray-500); }
.event-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background var(--transition);
}
.event-card:hover { background: var(--surface-2); }
.event-card .match-details-sub { flex-wrap: wrap; gap: 4px 16px; }
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    font-family: var(--display);
    line-height: 1;
    white-space: nowrap;
}
.event-day { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Inter: Saira never goes below 18px */
.event-month { margin-top: 4px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--red-text); }

.match-card {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background var(--transition);
}
.match-card:hover { background: var(--surface-2); }
.match-meta { display: flex; flex-direction: column; gap: 4px; }
.match-game-tag { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--red); }
.match-tournament { font-size: 18px; font-weight: 600; line-height: 1.3; }
.match-details-sub { font-size: 13px; color: var(--gray-500); display: flex; gap: 12px; }
.match-teams-showcase { display: flex; align-items: center; justify-content: center; gap: 24px; }
.match-team { display: flex; align-items: center; gap: 12px; min-width: 140px; }
.match-team.team-right { flex-direction: row-reverse; text-align: right; }
.match-team-logo { width: 40px; height: 40px; object-fit: contain; }
.match-team-name { font-size: 16px; font-weight: 600; }
.vs-text { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gray-500); }
.match-score-badge { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.match-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.match-countdown-badge { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; }
.match-result-pill { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--win); }
.match-mvp-badge { font-size: 13px; color: var(--gray-400); }
.match-mvp-badge strong { color: var(--white); }

/* ===== Featured tournament ===== */
.tournament-section { padding-top: 64px; }

.tournament-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.tournament-body { min-width: 0; }
.tournament-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; margin-top: 4px; }
.tournament-details { margin-top: 8px; font-size: 14px; color: var(--gray-300); }
.tournament-action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.tournament-note { font-size: 13px; color: var(--gray-500); }
.tournament-when { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--red-text); font-variant-numeric: tabular-nums; }

.tournament-schedule {
    padding: 24px 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
}
.tournament-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.tournament-week h3 { font-size: 15px; font-weight: 600; }
.tournament-week h3 span { margin-left: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gray-500); }
.tournament-week dl { margin-top: 10px; display: grid; gap: 6px; }
.tournament-week dl > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14px; }
.tournament-week dt { color: var(--gray-300); }
.tournament-week dd { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.tournament-times { margin-top: 20px; font-size: 13px; color: var(--gray-500); }
.tournament-times strong { font-family: var(--mono); font-weight: 500; color: var(--gray-300); }

@media (max-width: 768px) {
    .tournament-section { padding-top: 48px; }
    .tournament-card { flex-direction: column; align-items: flex-start; padding: 24px; }
    .tournament-action { align-items: flex-start; }
    .tournament-schedule { padding: 20px 24px 24px; }
    .tournament-weeks { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Social posts ===== */
.posts-section { padding-top: 40px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    list-style: none;
}
.posts-grid > li { display: flex; }

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--white);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}
.post-card::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    top: -1px;
    height: 2px;
    width: 0;
    background: var(--red);
    transition: width 0.5s var(--ease);
}
.post-card:hover, .post-card:focus-within { border-color: var(--line-strong); background: var(--surface-2); }
.post-card:hover::before, .post-card:focus-within::before { width: 100%; }

.post-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-placeholder { width: 56px; height: 56px; color: var(--gray-500); }

.post-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-caption {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: var(--gray-300);
    overflow-wrap: anywhere;
}
.post-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.post-cta { font-size: 13px; font-weight: 600; color: var(--red-text); }
.post-cta:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ===== Partners ===== */
.partners-section { padding-top: 40px; }

.partner-group-title { font-size: 20px; margin: 32px 0 16px; }
.partner-name { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--white); }

.partners-grid {
    display: grid;
    /* auto-fill keeps tiles a fixed size, so new partners slot in without stretching the row */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    list-style: none;
}

.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 124px;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--white);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.partner-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--enter);
}
.partner-card:hover, .partner-card:focus-visible { border-color: var(--line-strong); background: var(--surface-2); }
.partner-card:hover::before, .partner-card:focus-visible::before { transform: scaleX(1); }

/* Logos are the white-text versions so they read on the dark cards */
.partner-logo {
    opacity: 0.85;
    transition: opacity var(--transition);
}
.partner-logo img { display: block; height: 28px; width: auto; max-width: 100%; object-fit: contain; }
/* Some wordmarks sit small in their artwork; these sizes balance them against the rest */
.partner-logo img.partner-logo-tall { height: 34px; }
.partner-logo img.partner-logo-stacked { height: 44px; }
.partner-card:hover .partner-logo { opacity: 1; }

.partner-meta {
    text-align: center;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-card { min-height: 104px; padding: 20px 12px; }
}

/* ===== Recruitment ===== */
.recruitment-section { padding-top: 40px; }

.recruitment-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    padding: 64px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.recruitment-title {
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.04;
    white-space: nowrap;
    margin-bottom: 20px;
}

.recruitment-desc { font-size: 16px; color: var(--gray-400); line-height: 1.7; max-width: 520px; margin-bottom: 28px; }

.recruitment-perks-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-200);
}
.perk-item::before {
    content: '';
    width: 12px;
    height: 3px;
    background: var(--red);
    transform: skewX(-20deg);
    flex-shrink: 0;
}

.recruitment-box-right {
    align-self: center;
    background: rgba(10, 14, 20, 0.35);
    border: 1px solid var(--line);
    padding: 32px;
}

.spec-title {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.spec-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.spec-list dt { font-size: 13px; color: var(--gray-500); }
.spec-list dd { font-size: 14px; font-weight: 500; color: var(--white); }
.spec-note { margin-top: 16px; font-size: 13px; color: var(--gray-500); }

/* ===== Footer ===== */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: rgba(10, 14, 20, 0.88); }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-icon { height: 44px; }
.footer-tagline { font-size: 15px; color: var(--gray-400); line-height: 1.7; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin: 24px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-200);
}
.footer-top .footer-nav { margin: 0; }

.footer-tryouts { border: 0; background: none; color: inherit; font: inherit; }
.footer-nav a:hover, .footer-tryouts:hover { color: var(--white); }

.social-links { display: flex; align-items: center; gap: 4px; }
.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: color var(--transition), background var(--transition);
}
.social-icon:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--gray-500);
}

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-legal a { color: var(--gray-400); }
.footer-legal a:hover { color: var(--white); }

/* Trademark notice: last, full-width line of the footer */
.footer-disclaimer { order: 1; flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--gray-500); }

/* ===== Modals ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    background: transparent;
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay[open] { display: flex; }
.modal-overlay::backdrop {
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--red);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--white);
    z-index: 10;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--line-strong); border-color: var(--line-strong); }

/* modal eyebrow reuse */
.modal-content .section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.section-tag {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
}

/* Player dossier */
.dossier-body { display: grid; grid-template-columns: 320px 1fr; }
.dossier-photo-col { position: relative; min-height: 380px; background: radial-gradient(70% 55% at 50% 38%, rgba(248, 34, 34, 0.30), transparent 70%), linear-gradient(180deg, var(--red-tint), var(--surface) 80%); overflow: hidden; }
.dossier-photo-col img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dossier-photo-gradient { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, var(--surface), transparent); }
.dossier-info-col { padding: 36px 32px; }
.dossier-header-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.dossier-game-badge, .dossier-role-badge {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
}
.dossier-role-badge { background: var(--red-fill); color: #fff; }
.empty-state-badge, .match-game-tag, .match-countdown-badge { color: var(--red-text); }
.dossier-alias-title { font-family: var(--name); font-size: min(34px, 8vw); font-weight: 400; font-synthesis: none; line-height: 1.1; overflow-wrap: anywhere; }
.dossier-realname { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
.dossier-bio { font-size: 14px; color: var(--gray-300); margin-bottom: 24px; white-space: pre-line; }
.dossier-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 24px; }
.dossier-gear-section { margin-bottom: 24px; }
.dossier-section-heading { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 12px; }
.dossier-gear-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.dossier-gear-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.dossier-gear-label { color: var(--gray-500); }
.dossier-gear-val { font-weight: 500; }
.dossier-socials { display: flex; gap: 8px; }

/* Tryout form */
.apply-modal-content { max-width: 640px; padding: 44px 40px 40px; }
.apply-modal-title { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.apply-modal-sub { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; }
.apply-form { display: flex; flex-direction: column; gap: 20px; }
.form-group-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-label { font-size: 13px; font-weight: 500; color: var(--gray-300); }
.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--white);
    transition: border-color var(--transition), background var(--transition);
}
.form-control::placeholder { color: var(--gray-500); }
.form-control:focus { outline: none; border-color: var(--red); }
.form-control:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
select.form-control option { background: var(--surface); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* Toasts */
/* ===== Giveaway popup ===== */
.giveaway-pop {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 900; /* under the header and mobile menu */
    width: min(360px, calc(100vw - 32px));
    padding: 20px 24px 24px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--red);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--enter), transform var(--enter);
}
.giveaway-pop.is-open { opacity: 1; transform: none; }
.giveaway-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color var(--transition);
}
.giveaway-close:hover { color: var(--white); }
.giveaway-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--red-text);
    margin-bottom: 8px;
    padding-right: 32px;
}
.giveaway-title { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; padding-right: 16px; }
.giveaway-desc { font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
@media (max-width: 768px) {
    .giveaway-pop { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
    .giveaway-eyebrow { margin-bottom: 4px; }
    .giveaway-title { font-size: 17px; margin-bottom: 4px; }
    .giveaway-desc { font-size: 13px; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .giveaway-pop { transition: none; transform: none; }
}

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--red);
    font-size: 14px;
    font-weight: 500;
    animation: slideInToast var(--enter);
}
@keyframes slideInToast { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Legacy reveal classes (script adds them) — always visible */
.reveal { opacity: 1; }

/* ===== Policy pages ===== */
.policy-page { background: var(--black); }
.policy-header { padding: 24px 0; border-bottom: 1px solid var(--line); }
.policy-header .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.policy-header .logo-icon { height: 36px; }
.policy-content { max-width: 800px; padding: 56px 0 72px; }
.policy-content h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.policy-content h2 { font-size: 21px; margin: 32px 0 12px; }
.policy-content p, .policy-content li { color: var(--gray-300); }
.policy-content p + p { margin-top: 12px; }
.policy-content ul { list-style: disc; padding-left: 24px; }
.policy-content li + li { margin-top: 8px; }
.policy-content a { text-decoration: underline; text-underline-offset: 3px; }
.form-turnstile:empty { display: none; }
.form-turnstile { max-width: 100%; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray-300); line-height: 1.5; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--red); }
.form-privacy { font-size: 14px; color: var(--gray-300); line-height: 1.6; }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.policy-notice { padding: 16px 20px; border-left: 2px solid var(--red); background: var(--surface); margin: 24px 0; }
/* ===== Player pages (/players, /players/<slug>) ===== */
.player-page-main { padding: 40px 0 80px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-300); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--white); }
.player-page-title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.player-page-lead { color: var(--gray-300); max-width: 640px; margin-bottom: 32px; }
.player-profile { max-width: 960px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--red); }
.player-profile .dossier-photo-col { min-height: 460px; }
.player-profile .dossier-info-col { padding: 40px; }
.player-profile .dossier-alias-title { font-size: min(44px, 10vw); margin-bottom: 8px; }
.player-profile .dossier-bio { font-size: 15px; }
.player-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.dossier-profile-link { margin-top: 24px; }
.player-more { margin-top: 64px; }
.player-more-title { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 20px; }
.player-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.player-link-card { display: flex; flex-direction: column; container-type: inline-size; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--transition), transform var(--transition); }
.player-link-card:hover, .player-link-card:focus-visible { border-color: var(--red); transform: translateY(-2px); }
.player-link-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(70% 55% at 50% 38%, rgba(248, 34, 34, 0.30), transparent 70%), linear-gradient(180deg, var(--red-tint), var(--surface) 80%); }
.player-link-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.player-link-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.player-link-alias { font-size: 20px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
@media (max-width: 1080px) {
    .player-profile .dossier-photo-col { height: 360px; min-height: 0; }
    .player-profile .dossier-info-col { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .player-link-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .player-link-card:hover, .player-link-card:focus-visible { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; }
    .status-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .status-item:nth-child(3) { padding-left: 0; border-left: none; }
    .team-grid { grid-template-columns: 1fr; gap: 48px; }
    .team-intro { position: static; }
    .players-grid { --roster-columns: 3; }
    .match-card { grid-template-columns: 1fr; text-align: center; }
    .match-action { align-items: center; }
    .recruitment-card { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 40px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .container, .nav-container { width: calc(100% - 32px); }
    .section { padding: 88px 0; }
    .nav-container { grid-template-columns: 1fr auto; }
    .nav-logo .logo-icon { height: 30px; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        background: var(--black);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding: 32px 16px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--enter), transform var(--enter), visibility 0.32s;
    }
    .nav-links.active { visibility: visible; opacity: 1; transform: none; }
    .nav-link { font-size: 28px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
    .nav-link::after { display: none; }
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .hero { min-height: auto; padding: 56px 0 40px; }
    .hero-buttons .btn { flex: 1 1 auto; }
    .status-strip { margin-top: 48px; }
    .status-item { padding: 16px 16px 0; }
    .status-item dd { font-size: 15px; }
    .pillar { grid-template-columns: 40px 1fr; }
    .pillar-meta { grid-column: 2; }
    .players-grid { --roster-columns: 2; --roster-gap: 12px; }
    .player-card-content { padding: 12px; }
    .player-alias-row { gap: 4px; }
    .section-head { margin-bottom: 36px; }
    .match-empty-state { padding: 32px 24px; }
    .match-card { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
    .event-card { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px; }
    .event-card .match-action { grid-column: 1 / -1; align-items: stretch; }
    .match-meta { min-width: 0; overflow-wrap: anywhere; }
    .match-teams-showcase { gap: 12px; }
    .match-team { min-width: 0; flex: 1; flex-direction: column; gap: 8px; }
    .match-team.team-right { flex-direction: column; text-align: center; }
    .match-team-name { font-size: 14px; overflow-wrap: anywhere; }
    .recruitment-card { padding: 40px 24px; }
    .recruitment-content-left, .recruitment-box-right { min-width: 0; }
    .recruitment-content-left .btn { max-width: 100%; white-space: normal; text-align: center; }
    .recruitment-title { font-size: clamp(26px, 8.5vw, 44px); }
    .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
    .dossier-body { grid-template-columns: 1fr; }
    .dossier-photo-col { height: 280px; min-height: 0; }
    .form-group-row { grid-template-columns: 1fr; }
    .apply-modal-content { padding: 40px 20px 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
    .status-strip { grid-template-columns: 1fr; }
    .status-item { padding-left: 0; border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    .motion-toggle { display: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Contact & sponsorship ===== */
.contact-section { padding-top: 40px; }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}
.contact-intro .section-subtitle { max-width: 420px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 40px;
}
.contact-form .btn { align-self: flex-start; }

.form-error {
    font-size: 13px;
    color: var(--red-text);
    border-left: 2px solid var(--red);
    padding: 8px 12px;
    background: rgba(248, 34, 34, 0.06);
}

/* Spam trap: kept out of sight for people, visible to bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Tryouts closed state (toggled from the admin panel) ===== */
.tryouts-closed-note { display: none; font-size: 14px; color: var(--gray-400); margin-top: 8px; }
.tryouts-closed .tryouts-closed-note { display: block; }
.tryouts-closed [data-trigger="tryouts"] { display: none; }
.tryouts-closed .open-division { display: grid; cursor: default; }
.tryouts-closed .open-division-figures::after { display: none; }
.tryouts-closed .division-status-open { color: var(--gray-500); }
.tryouts-closed .division-status-open::after { content: none; }
.tryouts-closed .live-dot { background: var(--gray-500); }

.match-result-pill.loss { color: var(--red); }
.match-result-pill.draw { color: var(--gray-400); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-card { padding: 28px 20px; }
}
