/* ============================================================================
   FoxHunt — website styles, V3
   ----------------------------------------------------------------------------
   The same design system as the apps. Tokens and component behaviour are a
   direct port of apps/iOS/App/FoxHunt/Shared/V3Theme.swift (and the Android
   V3Theme.kt) — if a value changes there it changes here, and vice versa;
   backend/tests/designTokens.test.js fails when they differ. The admin panel
   uses these tokens too (admin.css has no palette of its own).

   What "V3" means, concretely:
     - HARD shadows. A solid offset, never a blur. A HUD element sits ON the
       screen, it does not float above a fog.
     - Chunky solid shapes with a heavy dark keyline (2px #040A0A).
     - Flat saturated fills. No glass, no bevel, no gradient buttons.
     - Tight corners (6px, 10px), not pill-soft.
     - Sun-bleached warmth: amber and gold carry it, teal is the shade it sits in.
     - Numerals are the hero — heavy, condensed, tabular so they never jitter.

   ONE THEME. The day/night toggle is gone (Sep 2026), matching the app, which
   deleted its own light variant for the same reason: the whole visual language
   is a lit HUD against a dark city, and a light variant doubles the token set to
   describe something the game never looks like. `theme.js` and the toggle button
   are removed, not disabled. The previous forest stylesheet is in git history
   (and, locally, archive/website-pre-v3/ — which is gitignored).

   Type: the app uses Apple's compressed system black, which does not exist on
   the web. Archivo is the closest thing that does — a variable face with a real
   width axis, so it can be driven to the same heavy-condensed place rather than
   faked with transform: scaleX(). Body copy stays Inter.
   ========================================================================== */

/* Archivo and Inter are requested by a <link> in each page's <head>, not by an
   @import here: an @import cannot begin downloading until this file has landed,
   which serialises two round trips that a <link> runs in parallel. */

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

:root {
    /* --- Ground: deepest to nearest --------------------------------------- */
    --void:   #06100F;   /* behind everything */
    --deep:   #0A1A1D;   /* page ground */
    --ink:    #11292B;   /* raised panel */
    --steel:  #1B3C3D;   /* top surface, rails */

    /* --- Accent: the game itself ------------------------------------------ */
    --amber:  #F0A030;   /* primary: you, your prize, your controls */
    --gold:   #FFD24A;   /* money, highlights on amber */
    --ember:  #E2571B;   /* pressed / hot */
    --danger: #E03131;   /* happening NOW, never decorative */
    --go:     #7FB539;   /* clear, available, safe */
    --signal: #2FA8C4;   /* information: rings, scales, inert */

    /* --- Type -------------------------------------------------------------- */
    --bright:  #FFF6E6;  /* primary text, warm white */
    --muted:   #8CA3A2;  /* labels */
    --outline: #040A0A;  /* the heavy HUD keyline */

    /* --- Panel depth, relative to whatever section it sits in --------------
       A panel has to be a step away from its ground, not a fixed colour: an
       --ink card on an --ink section is invisible except for its keyline, which
       is how the activity-score box disappeared. Sections redefine these two,
       so a card is always one step up and a sunken well always one step down,
       wherever it is dropped. */
    --panel: var(--ink);
    --sunken: var(--void);

    /* --- Tiers: same meaning as in the app --------------------------------- */
    --tier-top:   #E03131;
    --tier-big:   #F0A030;
    --tier-small: #2FA8C4;

    /* There are no aliases. The forest palette's names (--fox-red, --card-bg,
       --gray, --secondary-fg and the rest) were rewritten in the markup rather
       than mapped here — two names for one colour is how the old stylesheet
       ended up with four greens that nobody could tell apart. */

    /* --- Metrics: V3.M ------------------------------------------------------ */
    --radius-sm: 6px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 10px;
    --keyline: 2px;
    --offset: 4px;        /* hard shadow throw */
    --gutter: 14px;

    /* Hard shadows. The only three in the system; there is no blur anywhere. */
    --shadow-sm: 2px 2px 0 var(--outline);
    --shadow-md: var(--offset) var(--offset) 0 var(--outline);
    --shadow-lg: 6px 6px 0 var(--outline);
    --shadow-xl: 6px 6px 0 var(--outline);
    --shadow-fox: var(--offset) var(--offset) 0 var(--outline);

    /* --- Spacing ------------------------------------------------------------ */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* --- Typography --------------------------------------------------------- */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Archivo', 'Arial Narrow', Impact, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.375rem;
    --font-size-xl: 1.625rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.25rem;   /* legal-document page titles */

    /* Presses are instant. A HUD control does not ease. */
    --transition-fast: all 0.08s linear;
    --transition: all 0.12s linear;
    --transition-bounce: all 0.12s linear;
}

/* ============================================================================
   Base
   ========================================================================== */

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    line-height: 1.65;
    color: var(--bright);
    /* Flat ground, no plate. A fixed full-page plate was the first attempt and
       it was wrong: the art is portrait, so `cover` on a wide monitor blew a
       couple of rooftops up to the size of the viewport and the page scrolled
       past disconnected brown blobs. The app never does that — each SCREEN gets
       one whole plate. The web equivalent is a plate per section, composed on
       purpose, over a flat ground. See .plate and .hero. */
    background: linear-gradient(180deg, var(--deep) 0%, var(--void) 100%) fixed;
    min-height: 100vh;
}

/* Display face: heavy and condensed, the app's numerals and headings. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 78, 'wght' 900;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--bright);
    text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-sm); }

p { color: var(--bright); }

a { color: var(--amber); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.2rem; }
li { color: var(--bright); }

img { max-width: 100%; height: auto; }

::selection { background: var(--amber); color: var(--void); }

/* Focus is visible and matches the keyline language — never a browser default
   halo, which is soft and reads as a different design system. */
:focus-visible {
    outline: var(--keyline) solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* The section grounds. Alternating them is what gives the page its banding;
   none of them is a "theme", they are depths. */
/* Both grounds are near-black. A mid-teal section ground was the other half of
   the problem the plates had: it turned every other band into a big flat slab
   of colour that competed with the art. Black lets the plates be the only
   saturated thing on the page, which is how both the app and the reference
   site work. The two still differ enough to band the page. */
.section-light { background: var(--deep); --panel: var(--ink);  --sunken: var(--void); }
.section-dark  { background: var(--void); --panel: var(--ink);  --sunken: var(--deep); }

.section-light, .section-dark {
    border-top: var(--keyline) solid var(--outline);
    border-bottom: var(--keyline) solid var(--outline);
}

/* A section carrying a plate needs its own ground and darkening — the flat body
   gradient is behind it, not part of it. */
.section.plate {
    border-top: var(--keyline) solid var(--outline);
    border-bottom: var(--keyline) solid var(--outline);
}

/* A statement on key art: tall enough for the art to read as a picture, and
   the copy block stays left the way the hero's does. */
.section.plate-left {
    display: flex;
    align-items: center;
    min-height: min(70vh, 560px);
    background-position: center 28%;
}
.section.plate-left .hero-content { margin: 0; text-align: left; }
.section.plate-left h2 { margin-bottom: var(--spacing-sm); }
.section.plate-left .hero-subtitle { margin-left: 0; margin-right: 0; }

@media (max-width: 860px) {
    .section.plate-left { min-height: 60vh; background-position: 60% 28%; }
}
.section.plate .section-subtitle { color: var(--bright); opacity: 0.85; }

.section-header { text-align: center; margin-bottom: var(--spacing-lg); }

.section-subtitle {
    color: var(--muted);
    font-size: var(--font-size-base);
    max-width: 62ch;
    margin: var(--spacing-sm) auto 0;
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============================================================================
   Plate helper
   ----------------------------------------------------------------------------
   Any block can be dropped onto one of the app's background plates. The
   darkening layer is part of the helper, not the caller's job — every earlier
   attempt at "just set a background-image" produced a panel with unreadable
   text somewhere on some viewport.
   ========================================================================== */

.plate {
    position: relative;
    background-color: var(--void);
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    isolation: isolate;
}

/* DIRECTIONAL scrim, not a blanket one.
   The first version dropped an even 80% black veil over every plate, and the
   result was olive mud — nothing like the app, where the day screen runs the
   plate at FULL saturation and floats small dark HUD slabs on top of it. The
   art is the screen; it is not wallpaper behind the screen.
   So: the plate stays at full strength, and the darkening is a gradient that
   only covers the edge the copy sits against. Same move the GTA V page makes —
   full-bleed key art, a left-to-right falloff, text in the shadow. */
.plate::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
        rgba(6,16,15,0.75) 0%,
        rgba(6,16,15,0.30) 34%,
        rgba(6,16,15,0.30) 60%,
        rgba(6,16,15,0.88) 100%);
}

/* Copy on the left: shade the left, leave the right at full strength. */
.plate-left::before {
    background: linear-gradient(90deg,
        rgba(6,16,15,0.94) 0%,
        rgba(6,16,15,0.78) 32%,
        rgba(6,16,15,0.18) 62%,
        rgba(6,16,15,0.05) 100%);
}

.plate-splash    { background-image: url('../images/plates/splash.jpg'); }
.plate-day       { background-image: url('../images/plates/day.jpg'); }
.plate-hero      { background-image: url('../images/plates/hero-wide.jpg'); }
.plate-art-fox    { background-image: url('../images/plates/art-fox.jpg'); }
.plate-art-hunter { background-image: url('../images/plates/art-hunter.jpg'); }
.plate-art-prize  { background-image: url('../images/plates/art-prize.jpg'); }
.plate-art-world  { background-image: url('../images/plates/art-world.jpg'); }
.plate-night     { background-image: url('../images/plates/night.jpg'); }
.plate-guide     { background-image: url('../images/plates/guide.jpg'); }
.plate-result    { background-image: url('../images/plates/result.jpg'); }
.plate-compass   { background-image: url('../images/plates/compass.jpg'); }
.plate-countdown { background-image: url('../images/plates/countdown.jpg'); }
.plate-flight    { background-image: url('../images/plates/flight.jpg'); }
.plate-offline   { background-image: url('../images/plates/offline.jpg'); }
.plate-qr        { background-image: url('../images/plates/qr.jpg'); }
.plate-sleep     { background-image: url('../images/plates/sleep.jpg'); }
.plate-messages  { background-image: url('../images/plates/messages.jpg'); }
.plate-violation { background-image: url('../images/plates/violation.jpg'); }

/* ============================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 16, 15, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: var(--keyline) solid var(--outline);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    height: 64px;
}

.logo { display: flex; align-items: center; gap: 0.6rem; }

/* The wordmark is artwork, not type — see the note in SplashView.swift. It is
   the same file the app ships, so the two cannot drift.
   40px, not 30: the artwork carries its own margin, so the letters inside it
   end up noticeably smaller than the box they are in. */
.logo-image { height: 40px; width: auto; display: block; }

.logo-text {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 78, 'wght' 900;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bright);
}

/* margin-left: auto keeps the links against whatever follows them (the login
   link on the homepage) instead of letting space-between centre them. */
.nav-links { display: flex; align-items: center; gap: var(--spacing-sm); list-style: none; padding: 0; margin-left: auto; }
.nav-links a, .nav-auth {
    color: var(--muted);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-auth:hover { color: var(--amber); }

/* The language picker (i18n.js): a small outlined button in the header, a list under it. */
.nav-lang { position: relative; flex-shrink: 0; }
/* A page whose header holds only a back button keeps it beside the picker, at the right. */
.nav-content > .btn-nav { margin-left: auto; }
.nav-lang-button {
    font: inherit;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--muted);
    background: none;
    border: var(--keyline) solid var(--outline);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}
.nav-lang-button:hover, .nav-lang-button[aria-expanded="true"] { color: var(--amber); }
.nav-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1100;
    min-width: 11rem;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    background: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: 6px;
    box-shadow: 4px 4px 0 var(--outline);
}
.nav-lang-menu li {
    padding: 0.45rem 0.9rem;
    font-size: var(--font-size-sm);
    color: var(--bright);
    cursor: pointer;
}
.nav-lang-menu li:hover, .nav-lang-menu li:focus { background: var(--ink); color: var(--amber); outline: none; }
.nav-lang-menu li[aria-selected="true"] { color: var(--amber); font-weight: 700; }
/* Inside the phone menu (i18n.js moves it there): the list opens in place, under the button. */
.nav-menu-extra { padding: 0.7rem 0; border-bottom: 1px solid var(--outline); }
.nav-menu-extra .nav-auth { display: block; padding: 0; border: 0; }
.nav-menu-extra .nav-lang-menu { position: static; margin-top: 0.5rem; box-shadow: none; }
/* No header on the page: the corner, the list opening upwards. */
.nav-lang-corner { position: fixed; right: 12px; bottom: 12px; z-index: 1100; }
.nav-lang-corner .nav-lang-menu { top: auto; bottom: calc(100% + 6px); }
.nav-lang-corner .nav-lang-button { background: var(--void); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-toggle span { width: 24px; height: var(--keyline); background: var(--bright); }

/* ============================================================================
   Buttons
   ----------------------------------------------------------------------------
   A V3 button is a solid slab with a keyline and a hard offset shadow. Pressing
   it moves the slab into its own shadow — the shadow shrinks by exactly the
   distance the button travels, so the two always meet.
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 84, 'wght' 800;
    font-size: var(--font-size-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    background: var(--steel);
    color: var(--bright);
}

.btn:hover { filter: brightness(1.12); }

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-sm);
    filter: brightness(0.95);
}

.btn:disabled, .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-md);
}

.btn-primary { background: var(--amber); color: var(--void); }
.btn-primary:hover { background: var(--gold); }

.btn-secondary { background: var(--ink); color: var(--bright); }
.btn-secondary:hover { background: var(--steel); }

/* Outline button. On key art a second solid slab competes with the primary and
   with the picture; a keyline reads as a control without covering anything. */
.btn-ghost {
    background: transparent;
    color: var(--bright);
    border-color: var(--bright);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--bright); color: var(--void); filter: none; }
.btn-ghost:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-large { padding: 1rem 2rem; font-size: var(--font-size-base); }
.btn-block { display: flex; width: 100%; }

.btn-nav { padding: 0.5rem 1rem; font-size: var(--font-size-xs); }

.btn-edit {
    padding: 0.35rem 0.8rem;
    font-size: var(--font-size-xs);
    background: var(--steel);
    color: var(--bright);
}

/* ============================================================================
   Cards and panels
   ========================================================================== */

.card,
.feature-card,
.mechanic-card,
.protection-card,
.safety-card,
.stat-card,
.price-box,
.cta-box,
.login-card,
.reset-password-card,
.verification-card,
.register-form-container,
.rules-category,
.rules-category-full,
.faq-item,
.timeline-content,
.principle-box,
.privacy-highlight,
.rule-highlight,
.code-display,
.search-box,
.step {
    background: var(--panel);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card, .feature-card, .mechanic-card, .protection-card, .safety-card,
.price-box, .cta-box, .login-card, .reset-password-card,
.verification-card, .register-form-container, .rules-category,
.rules-category-full, .principle-box, .step {
    padding: var(--spacing-md);
}

.card-header {
    border-bottom: var(--keyline) solid var(--outline);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.card-title { font-size: var(--font-size-lg); }
.card-body { color: var(--bright); }

/* Headings inside a panel need air under them. The display face has a 1.05
   line-height so a two-line title closes right up against the body copy, and
   several of these titles are two lines at card width. */
.card > h2, .card > h3, .card > h4,
.feature-card > h3, .feature-card > h4,
.mechanic-card > h3, .mechanic-card > h4,
.protection-card > h3, .protection-card > h4,
.safety-card > h3, .safety-card > h4,
.timeline-content > h3, .timeline-content > h4,
.step-content > h3, .step-content > h4 {
    margin-bottom: var(--spacing-xs);
}

/* Icons on cards. In the app these are glyphs in amber on the panel ground; on
   the web they are still mostly emoji in the markup, so they get a slab to sit
   in rather than floating at whatever size the platform renders them. */
.feature-icon,
.protection-icon,
.safety-icon,
.stat-icon,
.faq-icon,
.flow-icon,
.verification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--amber);
    margin-bottom: var(--spacing-xs);
}

.features-grid,
.mechanics-grid,
.protection-grid,
.safety-grid,
.stats-grid,
.benefits-grid {
    display: grid;
    gap: var(--gutter);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Three across, and it must come AFTER the shared rule above — the first
   attempt put it before, where the shared auto-fit simply overrode it at equal
   specificity and the six cards stayed 4 + 2 with a hole beside the last two. */
.features-grid,
.safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The safety report card closes the grid across its full width. */
.safety-card-wide { grid-column: 1 / -1; }

/* The safety and conduct agreement, read in place before signing (registration and profile). */
.agreement-text {
    max-height: 320px;
    overflow-y: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--void);
    border: 2px solid var(--outline);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--muted);
}
.agreement-text h4 { margin: var(--spacing-sm) 0 4px; color: var(--bright); font-size: var(--font-size-sm); }
.agreement-text h4:first-child { margin-top: 0; }
.agreement-text ul { margin: 0 0 var(--spacing-xs) 1.2em; }
.agreement-text p { margin: 0 0 var(--spacing-xs); }

@media (max-width: 860px) {
    .features-grid,
    .safety-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ============================================================================
   Numerals
   ----------------------------------------------------------------------------
   Distances, money and countdowns are the whole game. They get the display face
   with tabular figures so a ticking number never shifts the layout.
   ========================================================================== */

.stat-value,
.price,
.timeline-number,
.step-number,
.error-code,
.monospaced {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 76, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    color: var(--amber);
    line-height: 1;
}

.stat-value { font-size: var(--font-size-2xl); }
.price { font-size: var(--font-size-3xl); color: var(--gold); }
.error-code { font-size: clamp(4rem, 18vw, 9rem); color: var(--danger); }

.stat-label,
.price-detail,
.form-note,
.step-title,
.effective-date {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* No padding and no container: the readout runs edge to edge under the hero,
   the way the app's bar runs edge to edge at the bottom of the screen. */
.stats-section { padding: 0; }

.stat-card { padding: var(--spacing-md); text-align: center; }
.stat-card-highlight { background: var(--steel); border-color: var(--amber); }
.stat-content { display: flex; flex-direction: column; gap: 0.25rem; }

/* ============================================================================
   Hero
   ========================================================================== */

/* Key art, full bleed and full strength, with the copy sitting in the part of
   the art that is already dark. The centred-over-a-dimmed-plate version read as
   a stock template: the art was only there as texture and could have been any
   image. Anchoring the copy left, against the water tower, makes the runner and
   the skyline the subject of the page rather than its wallpaper. */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 760px);
    padding: var(--spacing-xl) 0;
    background-color: var(--void);
    background-image: url('../images/plates/hero-wide.jpg');
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    border-bottom: var(--keyline) solid var(--outline);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6,16,15,0.95) 0%, rgba(6,16,15,0.86) 26%,
                               rgba(6,16,15,0.42) 52%, rgba(6,16,15,0.00) 78%),
        linear-gradient(180deg, rgba(6,16,15,0.55) 0%, rgba(6,16,15,0.00) 26%,
                                rgba(6,16,15,0.00) 70%, rgba(6,16,15,0.70) 100%);
}

.hero-background { display: none; }  /* the plate replaced the old SVG scene */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 560px;
    margin: 0;
}

.hero-title-wrapper { margin-bottom: var(--spacing-sm); }

/* The lockup, at hero scale. Same artwork the app shows on its splash — used
   the way the GTA page uses its logo: above the headline, not as the headline. */
.hero-title-wrapper .logo-image,
.hero-logo {
    height: auto;
    width: min(360px, 66vw);
    margin: 0 0 var(--spacing-md);
    display: block;
}

.hero-tagline,
.hero-subtitle {
    color: var(--bright);
    font-size: var(--font-size-base);
    max-width: 46ch;
    margin: 0 0 var(--spacing-sm);
}

/* The one line of display type in the hero. Sentence case and tight, not the
   wide-tracked all-caps label it was — a headline should read as a sentence. */
.hero-tagline {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 82, 'wght' 900;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.02;
    text-transform: uppercase;
}

.hero-motto,
.hero-edition {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 800;
    font-size: var(--font-size-xs);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--spacing-xs);
}

.hero-cta {
    display: flex;
    gap: var(--gutter);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

@media (max-width: 860px) {
    /* Portrait: the runner occupies the middle, so there is no dark side to sit
       against. Copy goes back to centred, over a top-down falloff. */
    .hero { background-position: 64% 46%; text-align: center; }
    /* Light enough that the runner still reads. The desktop values put the copy
       in the art's own shadow; stacked, the copy sits ON the runner, so the
       scrim has to darken only the top and bottom and leave the middle alone. */
    .hero::after {
        background: linear-gradient(180deg, rgba(6,16,15,0.84) 0%, rgba(6,16,15,0.62) 30%,
                                            rgba(6,16,15,0.22) 62%, rgba(6,16,15,0.78) 100%);
    }
    .hero-content { text-align: center; max-width: 100%; }
    .hero-logo, .hero-title-wrapper .logo-image { margin-left: auto; margin-right: auto; }
    .hero-tagline, .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
}

/* ============================================================================
   Bands — art beside copy
   ----------------------------------------------------------------------------
   The page's main rhythm, taken from how the GTA V site sequences its sections:
   a piece of key art at full saturation on one side, a heading and two short
   paragraphs on the other, on a near-black ground. No card, no border, no
   frame — the art bleeds and the type sits next to it.

   This replaced a wall of uniform bordered cards. Cards are for data (see the
   prize board and the HUD strip, which are lifted from the app's own panels);
   they are the wrong container for a paragraph of prose.
   ========================================================================== */

/* The band is a direct child of the section, NOT of .container — the art runs
   off the outer edge of the screen. Boxed inside the container with a keyline
   and a rounded corner it read as a thumbnail of the game; bleeding, at half
   the viewport, it reads as the game. */
.band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--spacing-md), 4vw, var(--spacing-xl));
}

/* Alternate which side the art falls on, so the page does not march. */
.band.reverse .band-art { order: 2; }

.band-art { position: relative; align-self: stretch; min-height: 380px; }

.band-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Copy is inset to line up with the container on the page's inner edge and
   given room on the outer one; the art has already taken the bleed. */
.band-copy {
    padding: var(--spacing-xl) clamp(var(--spacing-sm), 5vw, 5rem)
             var(--spacing-xl) 0;
    max-width: 640px;
    justify-self: end;
}

.band.reverse .band-copy {
    padding: var(--spacing-xl) 0 var(--spacing-xl)
             clamp(var(--spacing-sm), 5vw, 5rem);
    justify-self: start;
}

.band-copy > h2 { margin-bottom: var(--spacing-sm); }
.band-copy > p {
    color: var(--muted);
    font-size: var(--font-size-base);
    line-height: 1.6;
    max-width: 48ch;
    margin-bottom: var(--spacing-sm);
}
.band-copy > p strong { color: var(--bright); }

/* The small amber label above a band heading — the app's section titles. */
.band-eyebrow {
    display: block;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 800;
    font-size: var(--font-size-xs);
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 860px) {
    .band { grid-template-columns: 1fr; gap: 0; }
    .band.reverse .band-art { order: 0; }
    .band-art { min-height: 260px; }
    .band-copy,
    .band.reverse .band-copy {
        padding: var(--spacing-lg) var(--spacing-sm);
        max-width: 100%;
        justify-self: stretch;
    }
}

/* A section that exists only to hold a band carries no padding of its own —
   the band's copy column supplies it, and the art must reach the edges. */
.section.band-section { padding: 0; }

/* ============================================================================
   HUD strip
   ----------------------------------------------------------------------------
   The live readout bar. Directly the app's bottom bar: near-black slabs, a big
   condensed amber numeral, a tiny tracked label under it, hard keylines
   between. It is the one thing on the page that looks like the game's
   interface rather than a description of it, so it sits immediately under the
   hero where it does the most work.
   ========================================================================== */

.hud-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--keyline);
    background: var(--outline);
    border-bottom: var(--keyline) solid var(--outline);
}

.hud-cell {
    background: var(--void);
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
}

.hud-cell.hot { background: var(--ink); }

/* Sized for a number, but the countdown cell swaps in the words "GAME ACTIVE"
   once the year starts, so it has to survive a string too: uppercase, and a
   ceiling low enough that the longest state still sits on one line. */
.hud-value {
    display: block;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 74, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--amber);
    overflow-wrap: anywhere;
}

.hud-cell.hot .hud-value { color: var(--gold); }

.hud-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============================================================================
   Prize distribution
   ----------------------------------------------------------------------------
   Foxes take most of the pool, so the board leads with them: a band with the
   rooftop art and the foxes' total, then one card per tier, then the hunters'
   leaderboard as a single line. The old board gave the hunters' ten ranks two
   thirds of the width and squeezed the three fox tiers into badges.
   ========================================================================== */

.prize-art img { object-position: 30% center; }

.prize-total {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 74, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    color: var(--gold);
    text-shadow: 4px 4px 0 var(--outline);
    margin: var(--spacing-sm) 0 var(--spacing-xs);
}

.band-copy > p.prize-total-caption {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
}

.prize-board { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-xl); }

/* One card per tier. Tier colours are THE tier colours — the same mapping
   V3.C.tier() uses in the app, so a Big Game spot is the same amber on the
   site as on the phone. minmax(0, 1fr), not 1fr: a 1fr track cannot shrink
   below its content and pushed the page sideways on a phone. */
.prize-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.prize-tier {
    --tier: var(--amber);
    position: relative;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 16%, var(--panel)) 0%, var(--panel) 55%);
    border: var(--keyline) solid var(--outline);
    border-top: 6px solid var(--tier);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.prize-tier.topdog   { --tier: var(--tier-top); }
.prize-tier.biggame  { --tier: var(--tier-big); }
.prize-tier.smallfox { --tier: var(--tier-small); }

.prize-tier-name {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 900;
    font-size: var(--font-size-lg);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tier);
}

.prize-tier-amount {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 74, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    line-height: 1;
    color: var(--bright);
    margin-top: var(--spacing-sm);
    overflow-wrap: anywhere;
}

.prize-tier-unit {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0.35rem 0 var(--spacing-sm);
}

.prize-tier-meta {
    font-size: var(--font-size-sm);
    color: var(--bright);
    opacity: 0.85;
    padding-top: var(--spacing-xs);
    border-top: 1px solid color-mix(in srgb, var(--tier) 30%, transparent);
}

.prize-tier-meta + .prize-tier-meta { border-top: 0; padding-top: 0.15rem; color: var(--muted); }

/* The hunters' side pot: one line, not a panel. */
.prize-hunters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-md);
    max-width: 1000px;
    margin: var(--spacing-md) auto 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--sunken);
    border: var(--keyline) solid var(--outline);
    border-left: 6px solid var(--go);
    border-radius: var(--radius-lg);
}

.prize-hunters p { color: var(--muted); font-size: var(--font-size-sm); }

.prize-hunter-range {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.prize-hunter-rank {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--muted);
}

.prize-hunter-amount {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 76, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-size: var(--font-size-lg);
    color: var(--go);
}

.prize-hunter-to { color: var(--muted); margin: 0 0.25rem; }

.prize-note {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--muted);
}

@media (max-width: 720px) {
    .prize-tiers { grid-template-columns: 1fr; gap: var(--spacing-sm); }
    .prize-tier { padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm); }
    .prize-tier-amount { margin-top: var(--spacing-xs); }
    .prize-tier-unit { margin-bottom: var(--spacing-xs); }
}

/* ============================================================================
   Timeline / steps / flow
   ========================================================================== */

.timeline { display: flex; flex-direction: column; gap: var(--gutter); }

.timeline-item { display: flex; gap: var(--gutter); align-items: flex-start; }

.timeline-number,
.step-number {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    background: var(--amber);
    color: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.timeline-content { flex: 1; padding: var(--spacing-sm); }

.step { display: flex; gap: var(--gutter); align-items: flex-start; }
.step-content { flex: 1; }
.step-description { color: var(--muted); }

.tag-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gutter);
    flex-wrap: wrap;
}

.flow-step { text-align: center; }
.flow-arrow { color: var(--amber); font-size: 1.4rem; }

/* ============================================================================
   FAQ
   ========================================================================== */

.faq-container { display: flex; flex-direction: column; gap: var(--gutter); max-width: 860px; margin: 0 auto; }

.faq-item { overflow: hidden; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 84, 'wght' 800;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    color: var(--bright);
}

.faq-question:hover { color: var(--amber); }

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-sm);
    color: var(--muted);
    display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: var(--transition-fast); margin-bottom: 0; }

/* ============================================================================
   Rules
   ========================================================================== */

.rules-container { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rules-category-full { grid-column: 1 / -1; }
.rules-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rules-list li { padding-left: 1.3rem; position: relative; color: var(--bright); }
.rules-list li::before { content: '▸'; position: absolute; left: 0; color: var(--amber); }

.rule-highlight,
.privacy-highlight,
.principle-box {
    border-left: var(--offset) solid var(--amber);
    padding: var(--spacing-sm) var(--spacing-md);
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem var(--spacing-md);
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: var(--font-size-sm);
    line-height: 1.45;
    color: var(--bright);
}

.benefits-list li strong { color: var(--gold); }

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--go);
    font-weight: 700;
}

/* ============================================================================
   Forms
   ========================================================================== */

.form-group { margin-bottom: var(--spacing-sm); }
.form-row { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.form-group label,
.checkbox-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-control,
.modal-input,
.search-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--bright);
    background: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-control:focus,
.modal-input:focus,
.search-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--amber);
}

::placeholder { color: var(--muted); opacity: 0.7; }

/* Pull the browser's own widgets into the palette — a default light dropdown in
   the middle of this is the single most obvious tell that a page was skinned. */
select { appearance: none; -webkit-appearance: none;
         background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%),
                           linear-gradient(135deg, var(--amber) 50%, transparent 50%);
         background-position: right 1rem center, right 0.7rem center;
         background-size: 5px 5px, 5px 5px;
         background-repeat: no-repeat;
         padding-right: 2.2rem; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--amber); width: 16px; height: 16px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-group label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--bright); font-size: var(--font-size-sm); }

.form-note { margin-top: 0.4rem; }

/* The two halves of the sign-up: what you get, and the form. Side by side on a
   desktop so the offer is still on screen while the form is being filled in. */
.register-container {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--gutter);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.register-form { display: flex; flex-direction: column; gap: var(--spacing-xs); }

/* This was a bare <ul> sitting straight on the key art — unreadable over the
   grid plate and the one block on the page with no panel under it. It is a
   panel like everything else now. */
.register-info {
    color: var(--bright);
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
}

.register-info > h3 {
    font-size: var(--font-size-lg);
    color: var(--amber);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: var(--keyline) solid var(--outline);
}

/* The price is the point of this panel, so it is the biggest thing in it and
   it sits at the bottom where the eye lands last before the form. */
.register-info .price-box {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    background: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

@media (max-width: 860px) {
    .register-container { grid-template-columns: 1fr; }
}

.search-box { padding: 0; border: none; box-shadow: none; background: none; }

/* ============================================================================
   Profile
   ----------------------------------------------------------------------------
   The player's dashboard, built from the app's grid screen rather than from a
   form: a hero card tinted by role, a readiness strip, a readout of footer-style
   tiles, all floating on a full-strength plate. Settings sit below on flat
   ground because they are visited, not watched.

   It replaced a grid of eight identical cards, which gave every block the same
   weight and left a hole beside the long settings card.
   ========================================================================== */

.pf-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--spacing-sm); }

/* The deck. Plate at strength in the middle, shaded top and bottom where the
   hero's name and the readout's labels sit. */
.pf-deck {
    padding: var(--spacing-lg) 0;
    background-position: center 60%;
    border-bottom: var(--keyline) solid var(--outline);
}
.pf-deck::before {
    background: linear-gradient(180deg,
        rgba(6,16,15,0.70) 0%,
        rgba(6,16,15,0.20) 40%,
        rgba(6,16,15,0.35) 70%,
        rgba(6,16,15,0.92) 100%);
}

/* --- Hero ------------------------------------------------------------------
   --accent is the role colour: amber for a Hunter (amber is "you"), the tier
   colour for a Fox. Same stripe-on-the-left as the app's hero and slot cards. */
.pf-hero {
    --accent: var(--amber);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 8px);
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.pf-hero[data-tier="top_dog"]   { --accent: var(--tier-top); }
.pf-hero[data-tier="big_game"]  { --accent: var(--tier-big); }
.pf-hero[data-tier="small_fox"] { --accent: var(--tier-small); }

.pf-hero::before,
.pf-check::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 6px;
    background: var(--accent);
}

.pf-hero-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--spacing-md);
}

.pf-avatar {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 76, 'wght' 900;
    font-size: 2.1rem;
    color: var(--void);
    background: var(--accent);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pf-id { min-width: 0; }
.pf-id h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.pf-email { color: var(--muted); font-size: var(--font-size-sm); margin-top: 0.3rem; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.pf-badges:empty { display: none; }

.pf-role { text-align: center; }
.pf-role-name {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 900;
    font-size: var(--font-size-xl);
    line-height: 1;
    text-transform: uppercase;
    color: var(--void);
    background: var(--accent);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.pf-role-line {
    margin-top: 0.5rem;
    max-width: 22ch;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
}

.pf-figure { text-align: right; }
.pf-figure-value,
.pf-track-value,
.pf-stat-value,
.pf-price,
.pf-strike-count,
.pf-countdown {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 76, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    line-height: 1;
}
.pf-figure-value { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold); }
.pf-figure-label,
.pf-track-label,
.pf-stat-label,
.pf-field > span {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* The game clock: the app hero's days-as-fox bar, here measuring the year. */
.pf-track {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}
.pf-track-text { display: flex; align-items: baseline; gap: 0.5rem; flex: 0 0 auto; }
.pf-track-value { font-size: var(--font-size-lg); color: var(--bright); }
.pf-bar {
    flex: 1;
    height: 12px;
    background: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: 3px;
    overflow: hidden;
}
.pf-bar-fill { height: 100%; width: 0; background: var(--accent); }

/* --- Ready to hunt ---------------------------------------------------------- */
.pf-ready { margin-top: var(--spacing-md); }
.pf-agreement {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--ink);
    border: var(--keyline) solid var(--signal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pf-agreement h2 { font-size: var(--font-size-base); text-transform: uppercase; margin-bottom: var(--spacing-xs); }
.pf-agreement h2 span { color: var(--muted); font-weight: 400; text-transform: none; }
.pf-agreement > p { color: var(--muted); font-size: var(--font-size-sm); margin-bottom: var(--spacing-sm); }
.pf-ready-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.pf-ready-head h2 {
    font-size: var(--font-size-base);
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--outline);
}
.pf-ready-count {
    padding: 0.1rem 0.5rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 900;
    font-size: var(--font-size-sm);
    color: var(--void);
    background: var(--amber);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
}
.pf-ready.is-complete .pf-ready-count { background: var(--go); }

.pf-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gutter);
}

.pf-check {
    --accent: var(--amber);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.8rem 0.8rem 1.2rem;
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pf-check[data-state="done"]   { --accent: var(--go); }
.pf-check[data-state="locked"] { --accent: var(--steel); }
.pf-check[data-state="waiting"] { --accent: var(--signal); }

.pf-check-icon { width: 28px; height: 28px; color: var(--accent); }
.pf-check[data-state="locked"] .pf-check-icon { color: var(--muted); }
/* Status badge on the icon's top-right corner: a tick once done, a red ! while the player still
   has to act (locked included — it still needs doing). Waiting has nothing to do, so no badge. */
.pf-check[data-state="done"]::after,
.pf-check[data-state="todo"]::after,
.pf-check[data-state="locked"]::after {
    position: absolute;
    top: calc(50% - 14px - 9px);
    left: calc(1.2rem + 28px - 9px);
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wght' 900;
    font-size: 12px;
    line-height: 1;
    border: var(--keyline) solid var(--outline);
    border-radius: 50%;
}
.pf-check[data-state="done"]::after { content: '✓'; color: var(--void); background: var(--go); }
.pf-check[data-state="todo"]::after,
.pf-check[data-state="locked"]::after { content: '!'; color: var(--bright); background: var(--danger); }
.pf-check-text { display: flex; flex-direction: column; min-width: 0; }
.pf-check-text strong {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 82, 'wght' 900;
    font-size: var(--font-size-base);
    line-height: 1.1;
    text-transform: uppercase;
}
.pf-check-text span { font-size: var(--font-size-xs); color: var(--muted); line-height: 1.35; }
.pf-check[data-state="done"] .pf-check-text span { color: var(--go); font-weight: 700; }
.pf-check-btn { padding: 0.45rem 0.8rem; font-size: var(--font-size-xs); box-shadow: var(--shadow-sm); }

/* --- Readout ---------------------------------------------------------------- */
.pf-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: var(--spacing-md);
}
.pf-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    container-type: inline-size;
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
/* Sized to the tile, not the window: "1843.6 km" and "€2,846.50" have to fit
   the same box as "14". */
.pf-stat-value { font-size: clamp(1.4rem, 16cqi, 3.2rem); color: var(--amber); white-space: nowrap; }
.pf-stat-value.very-large-value { font-size: var(--font-size-lg); }
.pf-stat-prize { background: var(--steel); border-color: var(--gold); }
.pf-stat-prize .pf-stat-value { color: var(--gold); }

.pf-note {
    margin-top: var(--gutter);
    padding: 0.8rem 1rem;
    font-size: var(--font-size-sm);
    color: var(--muted);
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-left: 6px solid var(--amber);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pf-note strong { color: var(--bright); }

.pf-footnote {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--bright);
    opacity: 0.7;
}

/* --- Body ------------------------------------------------------------------- */
.pf-body {
    display: grid;
    gap: var(--gutter);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.pf-panel {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md);
    background-color: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pf-panel h2 { font-size: var(--font-size-lg); text-transform: uppercase; margin-bottom: var(--spacing-sm); }
.pf-panel h3 {
    margin: var(--spacing-sm) 0 0.5rem;
    font-size: var(--font-size-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pf-panel h2 + h3 { margin-top: 0; }

.pf-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}
.pf-panel-head h2 { margin-bottom: 0; }
.pf-price { font-size: var(--font-size-2xl); color: var(--gold); }

/* The code a player gives away: the email's code box, on the page. `.pf-field` sets display, so
   its rows need their own [hidden] rule. */
#shareCodePanel .pf-field[hidden] { display: none; }
.pf-share-code {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    font-family: Menlo, Consolas, monospace;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--amber);
    word-break: break-all;
}

.pf-small { font-size: var(--font-size-sm); color: var(--muted); line-height: 1.55; margin-bottom: var(--spacing-sm); }
.pf-small:last-child { margin-bottom: 0; }
.pf-small strong { color: var(--bright); }

.pf-checkout { min-height: 120px; }
.pf-ideal { margin-top: var(--spacing-md); padding-top: var(--spacing-md); border-top: 1px solid var(--outline); }
.pf-ideal[hidden], .pf-ideal [hidden] { display: none; }

/* --- Checkout dialog ---------------------------------------------------------
   The shared .modal, widened for Whop's form. data-kind swaps the copy between
   the ticket and the reinstatement; data-state shows one pane at a time. */
/* Scoped by id: the shared .modal-content rules come later in this file. */
#checkoutModal .pf-checkout-dialog { max-width: 600px; max-height: 92vh; }
#checkoutModal .modal-header { align-items: baseline; }
#checkoutModal .modal-title { flex: 1; text-transform: uppercase; }

#checkoutModal[data-kind="ticket"] .pf-for-rebuy,
#checkoutModal[data-kind="rebuy"] .pf-for-ticket { display: none; }

.pf-pane { display: none; }
#checkoutModal[data-state="checkout"]   .pf-pane-checkout,
#checkoutModal[data-state="away"]       .pf-pane-away,
#checkoutModal[data-state="confirming"] .pf-pane-confirming,
#checkoutModal[data-state="done"]       .pf-pane-done,
#checkoutModal[data-state="waiting"]    .pf-pane-waiting,
#checkoutModal[data-state="failed"]     .pf-pane-failed { display: block; }

.pf-pane-away, .pf-pane-confirming, .pf-pane-waiting, .pf-pane-failed, .pf-pane-done { padding: var(--spacing-md) 0; text-align: center; }
.pf-pane-away h3, .pf-pane-confirming h3, .pf-pane-waiting h3, .pf-pane-failed h3, .pf-pane-done h3 { font-size: var(--font-size-xl); text-transform: uppercase; margin-bottom: 0.4rem; }
.pf-pane-failed .modal-actions, .pf-pane-done .modal-actions { justify-content: center; }
.pf-pane-waiting .pf-pane-mark { background: var(--signal); }
.pf-pane-failed .pf-pane-mark { background: var(--danger); color: var(--bright); }
.pf-pane-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
    color: var(--void);
    background: var(--amber);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pf-pane-done .pf-pane-mark { background: var(--go); }
.pf-pane-mark svg { width: 34px; height: 34px; }

/* Panels on art: the plate shows on the right, the copy sits in the shade. */
.pf-panel-art { padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg); background-position: center; }
.pf-panel-art::before {
    border-radius: inherit;
    background: linear-gradient(90deg,
        rgba(10,26,29,0.97) 0%,
        rgba(10,26,29,0.90) 45%,
        rgba(10,26,29,0.55) 100%);
}
.pf-panel-danger { border-color: var(--danger); }

.pf-ops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--gutter);
}

.pf-fields { display: grid; gap: 0.4rem; margin-bottom: var(--spacing-sm); }
.pf-fields:empty { display: none; }
.pf-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 0.55rem 0.8rem;
    background: rgba(6,16,15,0.82);
    border-radius: var(--radius-sm);
}
.pf-field > span { flex: 0 0 auto; }
.pf-field strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-weight: 600;
    color: var(--bright);
}
.pf-field-edit { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pf-field-hot strong { color: var(--danger); }
.pf-countdown { font-size: var(--font-size-lg); }

/* Strikes. The pips are the app's strike chips, filled red by profile.js. */
.pf-strike-count { font-size: var(--font-size-2xl); color: var(--danger); }
.pf-pips { display: flex; gap: 0.6rem; margin-bottom: var(--spacing-sm); }
.pf-pip {
    flex: 1;
    height: 18px;
    background: var(--void);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.pf-rules {
    margin: 0 0 var(--spacing-sm) 1.1rem;
    font-size: var(--font-size-xs);
    color: var(--muted);
}
.pf-rules strong { color: var(--bright); }

/* --- Settings --------------------------------------------------------------- */
.pf-settings {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gutter);
    align-items: start;
}

/* Three-way choice as one segmented slab, so the options sit on one line and
   read as a single control rather than three unrelated buttons. */
.pf-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-bottom: 0.5rem;
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pf-seg-btn {
    padding: 0.6rem 0.4rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 84, 'wght' 800;
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--void);
    border: none;
    border-right: var(--keyline) solid var(--outline);
    cursor: pointer;
    transition: var(--transition-fast);
}
.pf-seg-btn:last-child { border-right: none; }
.pf-seg-btn:hover { color: var(--bright); background: var(--steel); }
.pf-seg-btn.is-active { color: var(--void); background: var(--amber); }

.pf-actions { display: grid; gap: 0.6rem; }

.pf-danger {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: var(--keyline) solid var(--outline);
}
.pf-danger h3 { margin-top: 0; color: var(--danger); }
.pf-btn-danger { width: 100%; background: var(--danger); color: var(--bright); }

.code-display {
    padding: var(--spacing-sm);
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 80, 'wght' 900;
    font-size: var(--font-size-xl);
    letter-spacing: 0.22em;
    text-align: center;
    color: var(--gold);
    background: var(--sunken);
}

.action-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--spacing-sm); }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    color: var(--void);
    background: var(--muted);
}

.status-verified { background: var(--go); }
.status-pending  { background: var(--gold); }

@media (max-width: 1000px) {
    .pf-hero-top { grid-template-columns: auto minmax(0, 1fr); }
    .pf-role { text-align: left; }
    .pf-figure { text-align: left; }
    .pf-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-settings { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .pf-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
    .pf-role, .pf-figure { grid-column: 1 / -1; }
    .pf-track { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .pf-checks { grid-template-columns: 1fr; }
    .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-ops { grid-template-columns: 1fr; }

    /* Whop's form is taller than a phone: the dialog becomes a full-screen sheet. */
    #checkoutModal { padding: 0; align-items: stretch; }
    #checkoutModal .pf-checkout-dialog { max-width: none; max-height: none; border-radius: 0; border: none; box-shadow: none; }
}

.file-upload { margin-top: var(--spacing-md); }
.file-upload input { display: none; }

/* The native file input cannot be styled, so it is hidden and the label is
   dressed as a V3 button. */
.file-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 84, 'wght' 800;
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bright);
    background: var(--steel);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}
.file-upload-label:hover { filter: brightness(1.12); }
.file-upload-label:active { transform: translate(2px, 2px); box-shadow: none; }

/* ============================================================================
   Modal
   ========================================================================== */

.modal, .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    background: rgba(6, 16, 15, 0.86);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.active, .modal.show, .modal-overlay.active, .modal-overlay.show { display: flex; }

/* window.Modal dialogs (confirm / alert / prompt) are opened from inside the admin panel's own
   dialogs, which sit at 10000 — a confirmation that opens underneath one cannot be answered. */
#modalContainer .modal-overlay { z-index: 10001; }

.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: var(--ink);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: var(--keyline) solid var(--outline);
}

.modal-title { font-size: var(--font-size-lg); }
.modal-body { color: var(--bright); }
.modal-footer, .modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: var(--spacing-md); flex-wrap: wrap; }

.modal-close, .close-modal {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}
.modal-close:hover, .close-modal:hover { color: var(--danger); }

/* ============================================================================
   Legal documents (terms, privacy, rulebook)
   ========================================================================== */

.legal-document {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.legal-document h2 { margin: var(--spacing-lg) 0 var(--spacing-xs); font-size: var(--font-size-xl); color: var(--amber); }
.legal-document h3 { margin: var(--spacing-md) 0 var(--spacing-xs); }
.legal-document p, .legal-document li { color: var(--bright); margin-bottom: 0.6rem; }
.legal-document ul, .legal-document ol { margin-bottom: var(--spacing-sm); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ============================================================================
   Error / verification / loading pages
   ========================================================================== */

.error-page,
.verification-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.error-content { text-align: center; max-width: 560px; }
.error-title { margin-bottom: var(--spacing-xs); }
.error-message, .verification-message { color: var(--muted); margin-bottom: var(--spacing-md); }
.error-actions { display: flex; gap: var(--gutter); justify-content: center; flex-wrap: wrap; }
.verification-title { margin-bottom: var(--spacing-xs); }

.loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--muted); padding: var(--spacing-md); }

/* Square, not round: a V3 spinner is a rotating keyline block, in keeping with
   a system that has no soft shapes in it. */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--steel);
    border-top-color: var(--amber);
    border-radius: var(--radius-sm);
    animation: v3-spin 0.7s linear infinite;
}

@keyframes v3-spin { to { transform: rotate(360deg); } }

/* ============================================================================
   Footer
   ========================================================================== */

.footer {
    background: rgba(6, 16, 15, 0.94);
    border-top: var(--keyline) solid var(--outline);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: var(--spacing-md);
}

.footer-section h4 { margin-bottom: 0.6rem; font-size: var(--font-size-sm); color: var(--amber); }
.footer-section a, .footer-links a, .quick-links a { display: block; color: var(--muted); font-size: var(--font-size-sm); padding: 0.15rem 0; }
.footer-section a:hover, .footer-links a:hover, .quick-links a:hover { color: var(--amber); }
.footer-links, .quick-links { list-style: none; padding: 0; }

.footer-bottom {
    padding-top: var(--spacing-sm);
    border-top: var(--keyline) solid var(--outline);
    color: var(--muted);
    font-size: var(--font-size-xs);
    text-align: center;
}

.tagline { color: var(--muted); font-size: var(--font-size-sm); }

.app-store-badge { height: 40px; width: auto; }
.app-icon { border-radius: var(--radius-lg); border: var(--keyline) solid var(--outline); }

/* ============================================================================
   Distance rings (the "how close is close" diagram on the homepage)
   ========================================================================== */

.distance-ring {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    border: var(--keyline) solid var(--signal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-1km  { width: 100%; max-width: 260px; opacity: 0.55; }
.ring-100m { width: 38%; border-color: var(--amber); opacity: 1; }

.mechanic-visual { display: flex; align-items: center; justify-content: center; padding: var(--spacing-sm); }

/* ============================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.10em; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }

/* Leftovers from the day/night toggle. Kept as no-ops for one release so a
   cached page that still has the button in its markup does not render a stray
   control; the markup itself is already removed. */
.theme-toggle, .sun-icon, .moon-icon { display: none !important; }

/* ============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
        background: var(--void);
        border-bottom: var(--keyline) solid var(--outline);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--outline); }
    .mobile-menu-toggle { display: flex; }
    /* The menu is out of the flow here, so the login link sits beside the toggle. */
    .nav-auth { margin-left: auto; }

    .timeline-item, .step { flex-direction: column; }
    .hero { min-height: 70vh; }
}

@media (max-width: 520px) {
    :root { --spacing-xl: 2.5rem; --spacing-lg: 2rem; }
    .container { padding: 0 0.8rem; }
    .hero-cta .btn { width: 100%; }
    /* The fixed body plate costs a repaint on every scroll frame on mobile
       Safari and buys nothing at this size. */
    body { background-attachment: scroll, scroll; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================================
   Striking distance
   ----------------------------------------------------------------------------
   The diagram this replaced drew the 2 km ring and the 100 m safe zone as two
   circles side by side, which states the opposite of the rule: the safe zone
   is INSIDE the striking distance, both centred on the Fox. Drawn as real
   concentric geometry it explains itself without the caption having to.
   ========================================================================== */

.strike-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(var(--spacing-md), 4vw, var(--spacing-xl));
    align-items: center;
}

.strike-figure { margin: 0; }
.strike-figure svg { display: block; width: 100%; height: auto; }

.strike-key {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.key-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
}

.key-swatch {
    width: 12px;
    height: 12px;
    border: var(--keyline) solid var(--outline);
    border-radius: 2px;
}

.key-fox    { background: var(--ember); transform: rotate(45deg); }
.key-strike { background: var(--amber); }
.key-safe   { background: var(--danger); }
.key-hunter { background: var(--signal); border-radius: 50%; }

.strike-rules { display: flex; flex-direction: column; gap: var(--gutter); }

.strike-rule {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: var(--spacing-sm);
    align-items: baseline;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--panel);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* The figure is the point of each row, so it leads and it is set in the
   display face at numeral scale. */
.strike-figure-value {
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 74, 'wght' 900;
    font-variant-numeric: tabular-nums;
    font-size: var(--font-size-xl);
    line-height: 1;
    color: var(--amber);
    text-transform: uppercase;
}

.strike-figure-value.danger { color: var(--danger); }

.strike-rule h3 { font-size: var(--font-size-base); margin-bottom: 0.2rem; }
.strike-rule p { color: var(--muted); font-size: var(--font-size-sm); }

.strike-outcome-title {
    margin: var(--spacing-xl) 0 var(--spacing-sm);
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--amber);
}

.outcome-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}

.outcome-list li {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: var(--spacing-sm);
    align-items: start;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--panel);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.outcome-list strong { color: var(--bright); }

.outcome-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    font-family: var(--font-family-heading);
    font-variation-settings: 'wdth' 76, 'wght' 900;
    font-size: var(--font-size-base);
    color: var(--void);
    background: var(--amber);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
    .strike-layout { grid-template-columns: 1fr; }
    .strike-figure { max-width: 380px; margin: 0 auto; }
    .strike-rule { grid-template-columns: 1fr; gap: 0.3rem; }
    .outcome-list { grid-template-columns: 1fr; }
}

/* ============================================================================
   App downloads (assets/js/app-downloads.js) — home page and profile.
   One opaque slab holds both platforms; every logo is the same single colour,
   masked from the brand SVGs in images/platforms/.
   ========================================================================== */
.app-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    max-width: 760px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: rgba(6,16,15,0.88);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-lg);
}
.app-dl-platform { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.app-dl-platform h3 { margin: 0; }
.app-dl-logos { display: flex; gap: var(--spacing-md); color: var(--amber); }
.app-dl-os { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.app-dl-logo {
    width: 1.6rem;
    height: 1.6rem;
    background-color: currentColor;
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}
.app-dl-logo-apple   { --logo: url('../images/platforms/apple.svg'); }
.app-dl-logo-android { --logo: url('../images/platforms/android.svg'); }
.app-dl-logo-wearos  { --logo: url('../images/platforms/wearos.svg'); }
.app-dl-qr { padding: 0.8rem; background: var(--bright); border-radius: var(--radius-sm); line-height: 0; min-width: 184px; min-height: 184px; }
.app-dl-qr img, .app-dl-qr canvas { width: 160px; height: 160px; }
.app-dl-version { margin: 0; color: var(--gold); font-weight: 600; }
/* Shown only on phones (app-downloads.js). `.btn` sets display, so [hidden] needs its own rule. */
.app-dl-link[hidden] { display: none; }
.app-dl-note { margin: 0; color: var(--muted); font-size: var(--font-size-sm); max-width: 32ch; }
/* "Installing on Android": a tap-to-open note — hover doesn't exist on the phone that needs it. */
.app-dl-info { width: 100%; max-width: 40ch; text-align: left; font-size: var(--font-size-sm); }
.app-dl-info summary {
    cursor: pointer;
    text-align: center;
    color: var(--amber);
    font-weight: 600;
    list-style: none;
}
.app-dl-info summary::-webkit-details-marker { display: none; }
.app-dl-info summary::before { content: 'ⓘ '; }
.app-dl-info-body {
    margin-top: 0.6rem;
    padding: var(--spacing-sm);
    background: var(--sunken);
    border: var(--keyline) solid var(--outline);
    border-radius: var(--radius-sm);
    color: var(--bright);
}
.app-dl-info-body p, .app-dl-info-body li { margin: 0 0 0.5rem; }
.app-dl-info-body ol { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.app-dl-info-body p:last-child { margin-bottom: 0; }

/* On the profile the phone registration and the downloads each take the full row of panels. */
#devicePanel, #appDownloadsPanel { grid-column: 1 / -1; }

/* ============================================================================
   Home page: rulebook links, the sign-up column, the phone join bar
   ========================================================================== */
.home-more { text-align: center; margin-top: var(--spacing-lg); }
.home-more a:not(.btn) { color: var(--amber); font-weight: 600; }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1000px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .home-cards { grid-template-columns: 1fr; } }

/* Phone: the way in is always one thumb away. */
.home-band-cta { margin-top: var(--spacing-md); }
.home-form { max-width: 560px; margin: 0 auto; }
.home-promo summary { cursor: pointer; color: var(--amber); font-weight: 600; font-size: var(--font-size-sm); }
.home-promo[open] summary { margin-bottom: var(--spacing-xs); }
.home-joinbar { display: none; }
@media (max-width: 860px) {
    .home-joinbar {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        padding: var(--spacing-sm) var(--spacing-md);
        padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
        background: var(--void); border-top: 2px solid var(--outline);
    }
    .home-joinbar.at-form { display: none; }
    body.homepage { padding-bottom: 76px; }
}
