/* ARGUS site, design direction B (owner-approved canvas, artboards "Home B" / "Store B").
   Dark, square corners, condensed panels instead of paragraphs, the Peacock palette.
   Tokens first; every component below uses them. */

/* Colours: the Peacock palette's variables (--obsidian, --deep-peacock, --peacock-teal,
   --argus-gold, --bone, --status-*) come from /web/assets/palette.css, generated from
   Console/config/palette.js. Nothing here writes a colour: every token is one of those or a mix.
   The palette's rules: text is bone (or gold) on obsidian or deep peacock; muted text stays at
   80% bone or more so it keeps 4.5:1 on deep peacock; teal is never text on deep peacock (use
   --accent-text, which surfaces reset to bone); gold is for store, VIP and premium only, large on
   deep peacock, never on teal; teal buttons take obsidian text. */
:root {
    --bg: var(--obsidian);
    --surface: var(--deep-peacock);
    --surface-glass: color-mix(in srgb, var(--surface) 94%, transparent);
    --line: color-mix(in srgb, var(--peacock-teal) 22%, var(--obsidian));
    --line-strong: color-mix(in srgb, var(--peacock-teal) 40%, var(--obsidian));
    --line-faint: color-mix(in srgb, var(--peacock-teal) 12%, var(--obsidian));
    --text: var(--bone);
    --text-2: color-mix(in srgb, var(--bone) 92%, var(--obsidian));
    --text-3: color-mix(in srgb, var(--bone) 87%, var(--obsidian));
    --text-4: color-mix(in srgb, var(--bone) 83%, var(--obsidian));
    --text-5: color-mix(in srgb, var(--bone) 80%, var(--obsidian));
    --text-6: color-mix(in srgb, var(--bone) 80%, var(--obsidian));
    --off: color-mix(in srgb, var(--bone) 30%, var(--obsidian));
    --accent: var(--peacock-teal);
    --accent-text: var(--peacock-teal); /* teal as text: on obsidian only (surfaces reset it) */
    --accent-tint: color-mix(in srgb, var(--peacock-teal) 14%, transparent);
    --accent-ink: var(--obsidian);
    --premium: var(--argus-gold); /* store, VIP and premium only */
    --online: var(--status-success);
    --offline: var(--status-error);
    --text-strong: var(--bone);
    --line-card: color-mix(in srgb, var(--peacock-teal) 28%, var(--obsidian));
    --line-soft: color-mix(in srgb, var(--peacock-teal) 18%, var(--obsidian));
    --line-overlay: color-mix(in srgb, var(--bone) 20%, transparent);
    --art-bg: color-mix(in srgb, var(--deep-peacock) 35%, var(--obsidian));
    --surface-sunk: color-mix(in srgb, var(--deep-peacock) 50%, var(--obsidian));
    --surface-hover: color-mix(in srgb, var(--deep-peacock) 96%, var(--peacock-teal));
    --surface-raised: color-mix(in srgb, var(--deep-peacock) 94%, var(--peacock-teal)); /* light enough tint that 80% bone keeps 4.5:1 */
    /* Panels (vitalrust.com's): dark translucent obsidian over the faded page scene, deep peacock
       only as a tint from the top, a hairline edge that is brighter on top, teal accents. */
    --panel-bg: color-mix(in srgb, var(--obsidian) 80%, transparent);
    --panel-tint: color-mix(in srgb, var(--deep-peacock) 42%, transparent);
    --panel-line: color-mix(in srgb, var(--peacock-teal) 22%, transparent);
    --panel-line-top: color-mix(in srgb, var(--peacock-teal) 55%, transparent);
    --panel-hover: color-mix(in srgb, var(--peacock-teal) 10%, transparent);
    --panel-cut: 14px;
    --glow-online: color-mix(in srgb, var(--status-success) 55%, transparent);

    /* The "vital" type, the owner's pick: Archivo Expanded headings, Archivo body text,
       JetBrains Mono for data. */
    --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-mono: 'Archivo', system-ui, sans-serif; /* data text: Archivo with tabular figures (body), no monospace */
    --display-stretch: 125%;
    --heading-case: uppercase;
    --size-hero: clamp(48px, 7vw, 80px);
    --size-h2: clamp(30px, 4vw, 44px);
    --size-h3: clamp(34px, 4.5vw, 52px);

    --container: 1120px;
    --gutter: 24px;
    --gutter-wide: clamp(24px, 5vw, 72px); /* full-width rows (header, Home hero): ~72 px at 1440 and up */
    --header-h: 60px;
    --radius: 0;
    --bg-veil: 76%; /* obsidian over the page scene: text keeps 4.5:1 even over white (tested) */
}

/* Inter type (config web.displayFont = 'inter'): Inter headings and body; data stays in mono. */
.font-inter {
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --display-stretch: 100%;
    --heading-case: none;
    --size-hero: clamp(56px, 9vw, 104px);
    --size-h2: clamp(36px, 5vw, 56px);
    --size-h3: clamp(40px, 5.5vw, 64px);
}

/* On deep peacock surfaces teal text is too faint (3.1:1): "accent" text there is bone. */
.panel, .product-card, .item-cell, .buy-panel, .sv-metric, .store-card, .spec-list, .plan { --accent-text: var(--text); }

*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
html { background: var(--bg); }
body { font-variant-numeric: tabular-nums; } /* figures line up */
body {
    margin: 0;
    background: transparent; /* the page's scene (.page-bg) shows through */
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; display: flex; flex-direction: column; /* the footer sits at the bottom of short pages */
}
#main { flex: 1 0 auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 8px; top: -48px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- display type */

.display {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: var(--display-stretch);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.display-hero { font-size: var(--size-hero); }
.display-h3 { font-size: var(--size-h3); line-height: 0.92; }
.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: var(--display-stretch);
    font-weight: 800;
    font-size: var(--size-h2);
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: var(--heading-case);
}
.accent { color: var(--accent-text); }

/* ---------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header .left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.logo {
    display: flex; align-items: center;
    font-family: var(--font-display); font-stretch: var(--display-stretch);
    font-weight: 900; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-text);
}
.logo:hover { color: var(--accent-text); }
/* The brand kit's wordmark image (never stretched: height set, width follows). */
.logo .wordmark { display: block; height: 22px; width: auto; }
.nav { display: flex; flex-wrap: nowrap; gap: 4px; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
/* Nav links, after vitalrust.com: plain uppercase text at rest. The current page has a 2px underline;
   on hover (and keyboard focus) a small solid triangle slides in at the left, the underline grows
   from the left and the text brightens to bone; a press moves the link 1px down. Teal, or gold for
   Store (its text is always gold). The marker sits in the link's left padding, so nothing shifts. */
.nav a { --nav-mark: var(--accent); position: relative; display: inline-block; padding: 7px 10px 7px 16px; color: var(--text-2); white-space: nowrap; transition: color 0.18s ease-out; }
.nav a::before {
    content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 8px; margin-top: -4px; background: var(--nav-mark);
    clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; transform: translateX(-4px); transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.nav a::after {
    content: ''; position: absolute; left: 16px; right: 10px; bottom: 2px; height: 2px; background: var(--nav-mark);
    transform: scaleX(0); transform-origin: left center; transition: transform 0.18s ease-out;
}
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::before, .nav a:focus-visible::before { opacity: 1; transform: none; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a:focus-visible { outline: none; }
.nav a:active { transform: translateY(1px); }
.nav a.nav-store, .nav a.nav-store:hover, .nav a.nav-store:focus-visible { --nav-mark: var(--premium); color: var(--premium); } /* the store: gold */
@media (prefers-reduced-motion: reduce) {
    .nav a, .nav a::before, .nav a::after { transition: none; }
    .nav a::before { transform: none; }
}
.header-actions { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.header-actions a { display: flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.header-actions a.signin { color: var(--text); }
/* Signed in (site.js): the gamertag, cut short so a long one cannot push the header apart. */
.header-actions a.signin.is-signed-in span { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.mobile-signin.is-signed-in span { min-width: 0; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0.02em; }
.header-actions .divider { width: 1px; height: 20px; background: var(--line-strong); }
.cart-count { min-width: 20px; padding: 2px 5px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 600; font-size: 11px; line-height: 1.3; text-align: center; }
.cart-count[hidden] { display: none; }

/* Up to 1240 px: two rows, so the longest language (German, French) never collides in one row. Logo
   and actions on the first; the nav on the second, one line that scrolls sideways if it ever runs
   out of room (it never wraps to a third row). */
@media (max-width: 1240px) {
    .site-header .container {
        height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "logo actions" "nav nav"; align-items: center; gap: 0 16px;
    }
    .site-header .left { display: contents; }
    .logo { grid-area: logo; height: 52px; }
    .header-actions { grid-area: actions; gap: 12px; }
    .header-actions .wide-only { display: none; }
    .nav {
        grid-area: nav; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
        margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scrollbar-width: none;
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { flex: none; padding: 6px 7px 6px 13px; font-size: 11px; }
    .nav a::before { left: 3px; }
    .nav a::after { left: 13px; right: 7px; bottom: 1px; }
}
@media (max-width: 1240px) and (min-width: 901px) {
    .nav a { font-size: 12px; padding: 6px 9px 6px 15px; }
    .nav a::after { left: 15px; right: 9px; }
}
@media (max-width: 520px) {
    .nav a.nav-home { display: none; } /* the logo links home */
    .logo { font-size: 20px; }
    .logo .wordmark { height: 20px; }
}

/* ---------------------------------------------------------------- buttons, tags */

.btn {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 22px; max-width: 100%;
    font-weight: 800; font-size: 12px; line-height: 1.25; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; /* wraps: labels differ by language */
}
/* Primary buttons, after vitalrust.com: heavy display type, a right edge slanted like the ARGUS
   wordmark, and a soft top light on the teal (mixed from palette colours only). */
.btn-primary {
    --slant: 14px;
    padding-right: calc(22px + var(--slant));
    font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; letter-spacing: 0.06em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, var(--text)) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 86%, var(--bg)) 100%);
    color: var(--accent-ink);
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    transition: filter 0.15s, transform 0.15s;
}
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line-strong); color: var(--text); }
.btn-small { min-height: 34px; padding: 6px 14px; gap: 8px; letter-spacing: 0.08em; }
.btn-outline-accent { border: 1px solid var(--accent); color: var(--accent-text); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--text-3); }
.btn svg { flex: none; }

.kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tag { padding: 4px 8px; border: 1px solid var(--line-strong); color: var(--text); }
.tag-live { border-color: var(--accent); color: var(--accent-text); }
.kicker .muted { color: var(--text-3); }
.chip { padding: 3px 7px; background: var(--line); font-size: 11px; font-weight: 700; color: var(--text-3); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); flex: none; }
.dot.is-online { background: var(--online); }
.dot.is-offline { background: var(--offline); }
.dot-small { width: 5px; height: 5px; }
.dot-off { background: var(--off); }
.pill-accent { padding: 4px 8px; background: var(--accent-tint); color: var(--accent-text); font-weight: 800; font-variant-numeric: tabular-nums; }
/* An event pill whose countdown has reached zero shows just NOW (live.js: .has-now / data-now). */
.pill-accent.has-now { font-size: 0; }
.pill-accent.has-now > [data-now] { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------------------------------------------------------------- sections and panels */

.section { border-bottom: 1px solid var(--line); }
.section > .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .titles { display: flex; flex-direction: column; gap: 14px; }
.link-accent { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
/* One panel system for every box on the site (data panels, store tiles, the buy panel, specs):
   translucent obsidian with a backdrop blur over the page scene, a deep peacock tint fading down
   from the top, a hairline border with a brighter top edge, a short teal accent line at the top
   left, and the bottom right corner cut like the buttons (its edge drawn by the last background). */
.panel, .store-card, .buy-panel, .spec-list {
    position: relative;
    border: 1px solid var(--panel-line); border-top-color: var(--panel-line-top);
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), var(--panel-line) 50%, transparent calc(50% + 1px)) right bottom / var(--panel-cut) var(--panel-cut) no-repeat,
        linear-gradient(180deg, var(--panel-tint) 0, transparent 180px),
        var(--panel-bg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--panel-cut)), calc(100% - var(--panel-cut)) 100%, 0 100%);
}
.panel::before, .store-card::before, .buy-panel::before, .spec-list::before {
    content: ''; position: absolute; z-index: 1; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--accent); pointer-events: none;
}
.label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.stat-value { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- footer */

/* vitalrust.com's footer: wordmark and square social buttons, link columns, a thin bottom bar. */
.site-footer { border-top: 1px solid var(--panel-line-top); background: linear-gradient(180deg, var(--panel-tint) 0, transparent 160px), color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.footer-top { padding-top: 56px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .logo { font-size: 30px; }
.footer-brand .logo .wordmark { height: 30px; }
.social { display: flex; gap: 8px; }
.social-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); color: var(--text); }
.social-btn:hover { border-color: var(--accent); color: var(--text); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-h { margin: 0 0 14px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
/* Legal: two sub-columns, filled top to bottom (vitalrust.com's footer). */
.footer-col.is-split ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 10px 40px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .container { min-height: 52px; padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: var(--text-4); }

@media (prefers-reduced-motion: reduce) {
    video[autoplay] { display: none; }
}

/* ---------------------------------------------------------------- page scene */

/* The faded Rust scene behind every page (backgrounds.js picks it): fixed, under an obsidian veil
   with solid obsidian at the top and bottom. --bg-veil is high enough that text keeps its contrast
   even over a white pixel (tested), so the scene is mood, never noise. */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        var(--bg) 0%,
        color-mix(in srgb, var(--bg) var(--bg-veil), transparent) 16%,
        color-mix(in srgb, var(--bg) var(--bg-veil), transparent) 70%,
        var(--bg) 100%);
}

@media (max-width: 520px) {
    .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .footer-col.is-split { grid-column: 1 / -1; }
    .footer-col.is-split ul { column-gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { padding-top: 40px; padding-bottom: 32px; gap: 32px; }
}

/* ---------------------------------------------------------------- language menu */

.lang-menu { position: relative; }
.lang-btn {
    list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; cursor: pointer;
    border: 1px solid var(--line-strong); font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--text);
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-menu[open] .lang-btn { border-color: var(--accent); }
.flag { width: 20px; height: 14px; flex: none; }
.lang-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; margin: 0; padding: 6px 0; list-style: none;
    background: linear-gradient(180deg, var(--panel-tint) 0, transparent 120px), color-mix(in srgb, var(--obsidian) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--panel-line); border-top-color: var(--panel-line-top);
}
.header-actions .lang-list a { gap: 10px; padding: 8px 14px; font-weight: 500; font-size: 14px; text-transform: none; color: var(--text-2); }
.header-actions .lang-list a:hover, .header-actions .lang-list a[aria-current] { background: var(--panel-hover); box-shadow: inset 2px 0 0 var(--accent); color: var(--text); }
/* The button names the language in its own words ("English", "Deutsch"); the code is the fallback
   where the header is tight. */
.lang-btn .lang-name { font-family: var(--font-body); font-weight: 700; font-size: 13px; text-transform: none; white-space: nowrap; }
.lang-btn .lang-code { display: none; }
.narrow-only { display: none; }

@media (max-width: 900px) {
    .header-actions .narrow-only { display: inline; }
}
@media (max-width: 520px) {
    .lang-btn .lang-code, .header-actions .cart-word { display: none; }
    .header-actions { gap: 10px; }
}

/* The block right after a video section: the page scene fades in from solid obsidian, so it only
   starts below the video (video sections themselves are solid; see home.css and store.css). */
.scene-fade { background: linear-gradient(180deg, var(--bg) 0, var(--bg) 24px, transparent 260px); }

/* Full-width rows (vitalrust.com's wide margins): the header on every page and the Home hero. */
.container.container-wide { max-width: none; padding-left: var(--gutter-wide); padding-right: var(--gutter-wide); }

/* Over a full-screen hero (Home) the header floats transparent at the top, readable on a light top
   shade, and turns solid once the page is scrolled (site.js adds .is-scrolled). */
.site-header.is-overlay {
    position: fixed; top: 0; left: 0; right: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, transparent 100%);
    border-bottom-color: transparent;
    transition: background-color 0.2s, border-color 0.2s;
}
.site-header.is-overlay.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
/* Home: the header has no logo while the hero wordmark is on screen (site.js). With reduced motion
   it simply appears once the wordmark has scrolled away; otherwise the wordmark itself morphs into
   it (logo-morph, below). Keyboard focus still shows it. Only the header's own logo (.left > .logo):
   the phone menu's logo always shows. */
.site-header.logo-follows-hero.logo-hidden .left > .logo { opacity: 0; pointer-events: none; }
.site-header.logo-follows-hero.logo-hidden .left > .logo:focus-visible { opacity: 1; }
/* The scroll morph: the header turns solid with the morph's progress (--morph-p, 0 to 1, set by
   site.js), and the logo takes the hero wordmark's letter-spacing so the hand-over is exact. */
.site-header.is-overlay.logo-morph {
    transition: border-color 0.2s;
    background-color: color-mix(in srgb, var(--bg) calc(var(--morph-p, 0) * 100%), transparent);
}
.site-header.logo-morph .left > .logo { letter-spacing: -0.01em; }
/* Scroll-driven version (site.js .morph-sda, with home.css): the header turns solid and the desktop
   nav slides over on the page's scroll timeline, docked at --dock-d; site.js writes nav-make-room. */
@supports (animation-timeline: scroll()) {
    .site-header.is-overlay.logo-morph.morph-sda {
        background-color: transparent;
        animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0px var(--dock-d, 1px);
    }
    .site-header.morph-sda .nav { animation: nav-make-room linear both; animation-timeline: scroll(root); animation-range: 0px var(--dock-d, 1px); }
}
@keyframes header-solid { from { background-color: transparent; } to { background-color: var(--bg); } }

/* ---------------------------------------------------------------- phones, after vitalrust.com */
/* Desktop: the phone-only Store button and menu stay hidden. */
.header-actions .store-cta, .header-actions .mobile-nav { display: none; }
@media (max-width: 760px) {
    /* Header: logo, then a gold Store button, cart, sign in and the menu button. The link row and
       the language menu move into the full-screen menu. */
    .site-header .container { grid-template-areas: "logo actions"; }
    .site-header .nav, .header-actions > .lang-menu, .header-actions .divider, .header-actions .cart-word { display: none; }
    .header-actions { gap: 10px; }
    .header-actions .store-cta {
        display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 22px 8px 14px;
        font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 12px;
        letter-spacing: 0.06em; text-transform: uppercase; color: var(--bg); background: var(--premium);
        clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    }
    .store-cta:hover { color: var(--bg); filter: brightness(1.06); }
    .signin { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); }
    .signin svg { display: none; }
    .header-actions .mobile-nav { display: block; }
    /* Sign in lives in the menu on phones, so the row always fits. */
    .header-actions > .signin { display: none; }
    .site-header .container { min-width: 0; }
    .header-actions { min-width: 0; }
    .menu-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text); }
    .menu-btn::-webkit-details-marker { display: none; }
    .menu-btn .ico-close { display: none; }
    .mobile-nav[open] .menu-btn { position: fixed; top: 10px; right: var(--gutter); z-index: 61; border: 1px solid var(--line-strong); background: var(--bg); }
    .mobile-nav[open] .menu-btn .ico-open { display: none; }
    .mobile-nav[open] .menu-btn .ico-close { display: block; }
    .mobile-panel {
        position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--bg);
        padding: 0 var(--gutter) 40px; display: flex; flex-direction: column;
    }
    .mobile-panel-top { height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
    .mobile-panel-top .logo .wordmark { height: 22px; }
    .mobile-links { display: flex; flex-direction: column; margin-top: 12px; }
    .mobile-links a {
        padding: 18px 0; border-bottom: 1px solid var(--line);
        font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 30px; line-height: 1;
        text-transform: uppercase; color: var(--text);
    }
    .mobile-links a:last-child { border-bottom: 0; }
    .mobile-links a[aria-current="page"] { color: var(--accent-text); }
    .mobile-links a.is-store { color: var(--premium); }
    /* The current page: the same solid triangle as the desktop nav's hover. */
    .mobile-links a { display: flex; align-items: center; gap: 12px; }
    .mobile-links a[aria-current="page"]::before { content: ''; flex: none; width: 12px; height: 16px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
    .mobile-links a.is-store[aria-current="page"]::before { background: var(--premium); }
    .mobile-links a:active { transform: translateY(1px); }
    .mobile-signin {
        margin-top: 28px; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px;
        border: 1px solid var(--line-strong); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
    }
    /* Languages: a plain list of links, one per row (flag, native name), the current one ticked. */
    .mobile-lang { margin-top: 20px; }
    .mobile-lang-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
    .mobile-lang-list a {
        display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong);
        font-weight: 700; font-size: 15px; text-transform: none; color: var(--text-2);
    }
    .mobile-lang-list a[aria-current] { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
    .mobile-lang-list .lang-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
    .mobile-lang-list .lang-check { flex: none; color: var(--accent); }
    html.menu-open { overflow: hidden; }
    /* The open menu covers everything: the header (its stacking context) goes above the Home hero
       wordmark, which also hides while the menu is open. */
    .site-header:has(.mobile-nav[open]), html.menu-open .site-header { z-index: 70; }
    html.menu-open .hero-wordmark { visibility: hidden; }

    /* Footer: bold display headings and bigger links, two columns. */
    .footer-brand .logo .wordmark { height: 52px; }
    .footer-h { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 15px; letter-spacing: 0.02em; color: var(--text); } /* 16px ran "Społeczność" and "Communauté" out of their column at 390 */
    .footer-col a { font-size: 16px; color: var(--text); }
}

/* ---------------------------------------------------------------- page head (Events, Leaderboard, Clans) */

/* Data pages: a kicker, a big display heading, then panels. */
.page-main { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.page-head .titles { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-h1 { font-size: clamp(40px, 7vw, 88px); overflow-wrap: anywhere; hyphens: auto; }
.page-empty { padding: 28px; font-weight: 700; color: var(--text-3); }
@media (max-width: 820px) {
    .page-main { padding-top: 24px; padding-bottom: 64px; gap: 20px; }
}

/* ---------------------------------------------------------------- Find a player (Leaderboard, stats) */

.find-player { display: flex; flex-direction: column; gap: 8px; flex: 0 1 420px; min-width: 0; }
.find-row { display: flex; gap: 8px; }
.find-row input {
    flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--obsidian) 80%, transparent); font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--text);
}
.find-row input::placeholder { color: var(--text-5); }
.find-row input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.find-row .btn { flex: none; min-height: 44px; border: 0; cursor: pointer; }
@media (max-width: 820px) {
    .find-player { flex-basis: 100%; }
}
