/* =====================================================================
   Boxer Manager — logged-out pages: the landing page and the small auth
   cards (forgotten password, consent, legal, banned).

   Same "Broadcast" look as the game (app.css): black, one neon, Chakra
   Petch on labels, Inter for anything read. Slants and capitals only on
   labels — the tag, the headline, the tabs and the one main button. Neon
   means "do this now". Earlier designs are kept in napady/harness/
   (landing-old, landing-broadcast-v1..v3, landing-variants).
   ===================================================================== */

:root {
    color-scheme: dark;

    --bg: #060709;
    --surface: #0e1016;
    --surface-2: #141822;
    --muted: #181c27;
    --text: #f3f5fa;
    --text-2: #a1aabc;
    --text-3: #6d768b;
    --border: #1d2230;
    --border-strong: #2b3244;

    --neon: #e6ff2e;
    --neon-ink: #0a0b00;
    --neon-hover: #f1ff7a;

    --danger: #ff3b47;
    --danger-soft: rgba(255, 59, 71, 0.1);
    --danger-border: rgba(255, 59, 71, 0.38);
    --danger-text: #ff8a92;

    --warn-soft: rgba(255, 176, 32, 0.1);
    --warn-border: rgba(255, 176, 32, 0.32);
    --warn-text: #ffc661;

    --win: #3ddc84;
    --win-soft: rgba(61, 220, 132, 0.12);
    --win-border: rgba(61, 220, 132, 0.38);
    --win-text: #6ee7a0;

    --red-corner: #ff6b6b;
    --blue-corner: #5aa9ff;

    --radius-sm: 6px;

    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Chakra Petch', 'Exo 2', 'Inter', sans-serif;

    --slant: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
    --slant-lg: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);

    --panel-w: 30rem;

    /* Old names, still read by a few rules below. */
    --primary-accent: var(--neon);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --border-color: var(--border);
}

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

html, body { margin: 0; padding: 0; }


body {
    min-height: 100vh;
    background:
        radial-gradient(1000px 460px at 100% -220px, rgba(230, 255, 46, 0.045), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* One ring for every focusable thing; slanted shapes drop the slant while
   focused, because clip-path would cut the ring off. */
:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
    clip-path: none !important;
}

/* ---------- logo: neon fist block + italic wordmark, as in the game ---------- */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: var(--display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
}

.brand-logo span { color: var(--neon); }

.brand-logo::before {
    content: '\f6de';
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.1rem;
    clip-path: var(--slant);
    background: var(--neon);
    color: var(--neon-ink);
    font-family: 'Font Awesome 6 Free';
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 900;
}

/* =====================================================================
   Landing. The first screen is a fight — frames of the game's own fight
   animation with the arena blurred and darkened behind the boxers, so the
   drawn boxers against a photographed hall read as a TV shot with depth of
   field rather than two kinds of picture — and the way in floats on it as
   a card. Below the fold: the numbers, three features each with a real
   screen of the game, and how to start. Worked out in
   napady/harness/landing-variants/ (variant F).
   ===================================================================== */
.landing-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 27rem;
    grid-template-rows: auto 1fr auto;
    gap: 2rem 4rem;
    /* A little short of the window, so the band below peeks out and says
       the page goes on. */
    min-height: calc(100vh - 7rem);
    min-height: calc(100svh - 7rem);
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
}

.landing-slides {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;   /* the slow zoom must not poke out */
}

/* Into black from the bottom (the headline) and the right (the card); the
   top edge too, under the logo and the menu. */
.landing-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 7, 9, 0.95) 0%, rgba(6, 7, 9, 0) 16%),
        linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 9, 0.6) 36%, rgba(6, 7, 9, 0.1) 62%, rgba(6, 7, 9, 0.85) 100%),
        linear-gradient(270deg, rgba(6, 7, 9, 0.8) 0%, rgba(6, 7, 9, 0) 42%);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 7s ease-out;
}

.slide.active { opacity: 1; transform: scale(1); }

.landing-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav { display: flex; align-items: center; gap: 1.25rem; }

.landing-nav-link {
    color: var(--text-2);
    font-size: 0.9rem;
    text-decoration: none;
}

.landing-nav-link:hover { color: var(--text); }

/* Two buttons of the page: the neon one does the main thing, the ghost one
   the other. */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 0;
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.landing-btn--neon {
    clip-path: var(--slant-lg);
    background: var(--neon);
    color: var(--neon-ink);
}

.landing-btn--neon:hover { background: var(--neon-hover); }

.landing-btn--ghost {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(6, 7, 9, 0.5);
    color: var(--text);
    backdrop-filter: blur(6px);
}

.landing-btn--ghost:hover { background: var(--muted); }

.landing-nav .landing-btn { padding: 0.55rem 1rem; font-size: 0.78rem; }

/* Language: the code in a box like "Sign in", the languages drop below it. */
.landing-lang { position: relative; }

.landing-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(6, 7, 9, 0.5);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.landing-lang-toggle::-webkit-details-marker { display: none; }
.landing-lang-toggle:hover { background: var(--muted); }

.landing-lang-toggle i {
    color: var(--text-3);
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.landing-lang[open] .landing-lang-toggle i { transform: rotate(180deg); }

.landing-lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 2px;
    min-width: 9.5rem;
    padding: 0.375rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
}

.landing-lang-menu a {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.85rem;
    text-decoration: none;
}

.landing-lang-menu a:hover { background: var(--muted); color: var(--text); }
.landing-lang-menu a.is-active { color: var(--neon); }

/* On a phone the menu is one neon button that takes you to the form. */
.landing-play { display: none; }

.landing-headline { grid-column: 1; grid-row: 3; max-width: 46rem; }

/* The slanted neon tag above the headline — the broadcast "lower third". */
.landing-tag {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.3rem 1.1rem;
    clip-path: var(--slant);
    background: var(--neon);
    color: var(--neon-ink);
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-headline h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    font-style: italic;
    font-weight: 700;
    line-height: 0.93;
    text-transform: uppercase;
    text-wrap: balance;
}

.landing-lead {
    max-width: 34rem;
    margin: 1.25rem 0 1.75rem;
    color: var(--text-2);
    font-size: 1.05rem;
}

/* Which shot — short slanted bars, the lit one in neon. What is on screen
   says the scorebug; the bars carry it only as their accessible name. */
.landing-slider-bar { display: flex; align-items: center; gap: 1rem; min-width: 0; }

.slider-nav { display: flex; flex-shrink: 0; gap: 0.35rem; }

.slider-nav-dot {
    width: 1.3rem;
    height: 0.3rem;
    padding: 0;
    border: 0;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    background: rgba(243, 245, 250, 0.25);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.slider-nav-dot:hover { background: rgba(243, 245, 250, 0.5); }
.slider-nav-dot.active { width: 2.4rem; background: var(--neon); }

.landing-panel {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    padding: 1.75rem;
    background: rgba(14, 16, 22, 0.85);
    border: 1px solid var(--border-strong);
    border-top: 3px solid var(--neon);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    scroll-margin: 1.5rem;
}

/* ---------- scorebug ----------
   Like the one over a fight in the game: league, round and clock, the two
   corners with health and stamina, a line of commentary. It sits in the
   empty corner of the shot, above the headline. */
.hud {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    width: min(23rem, 100%);
    overflow: hidden;
    background: rgba(6, 7, 9, 0.78);
    border: 1px solid var(--border-strong);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.hud-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.7rem;
    background: linear-gradient(90deg, var(--surface-2), rgba(20, 24, 34, 0.6));
    border-bottom: 1px solid var(--border);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* "Preview from the game" — neon outline, not a red LIVE: nothing here is
   happening right now. */
.hud-badge {
    flex-shrink: 0;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(230, 255, 46, 0.55);
    border-radius: 3px;
    color: var(--neon);
    white-space: nowrap;
}

.hud-event {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hud-clock {
    display: flex;
    gap: 0.5rem;
    padding: 0.1rem 0.55rem;
    clip-path: var(--slant);
    background: #000;
    color: var(--text-2);
    white-space: nowrap;
}

.hud-clock b { min-width: 2.3rem; color: var(--neon); font-variant-numeric: tabular-nums; }

.hud-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.7rem;
    border-left: 3px solid;
    font-size: 0.88rem;
    font-weight: 600;
}

.hud-row + .hud-row { border-top: 1px solid var(--border); }
.hud-row--red { border-left-color: var(--red-corner); }
.hud-row--blue { border-left-color: var(--blue-corner); }

.hud-name em {
    margin-left: 0.35rem;
    color: var(--text-3);
    font-family: var(--display);
    font-size: 0.75rem;
    font-style: normal;
}

.hud-bars { display: grid; gap: 3px; }

.hud-bars i {
    position: relative;
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(243, 245, 250, 0.1);
}

.hud-bars i::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--v, 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.hud-bars .hud-health::after,
.hud-legend .hud-health { background: var(--win); }
.hud-bars .hud-stamina::after,
.hud-legend .hud-stamina { background: var(--blue-corner); }
.hud-bars .hud-health.is-low::after { background: var(--danger); }

.hud-legend {
    display: flex;
    justify-content: flex-end;
    gap: 0.9rem;
    padding: 0.1rem 0.7rem 0.4rem;
    color: var(--text-3);
    font-size: 0.68rem;
}

.hud-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.hud-legend i { width: 0.7rem; height: 4px; border-radius: 2px; }

.hud-comment {
    display: block;
    margin: 0;
    padding: 0.55rem 0.7rem 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    line-height: 1.45;
}

.hud-note {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0;
    padding: 0.5rem 0.7rem 0.6rem;
    border-top: 1px solid var(--border);
    background: rgba(20, 24, 34, 0.6);
    color: var(--text-2);
    font-size: 0.78rem;
    line-height: 1.45;
}

.hud-note i { color: var(--text-3); font-size: 0.72rem; }

.hud-comment b {
    margin-right: 0.45rem;
    color: var(--neon);
    font-family: var(--display);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- what a manager does ----------
   Peeks out under the first screen, with a neon arrow on its top edge. */
.landing-do {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.landing-down {
    position: absolute;
    top: -1.1rem;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--neon);
    color: var(--neon-ink);
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 6px 20px -6px rgba(230, 255, 46, 0.6);
    transform: translateX(-50%);
    animation: landing-bob 2.2s ease-in-out infinite;
    transition: background-color 0.15s ease;
}

.landing-down:hover { background: var(--neon-hover); }

@keyframes landing-bob { 50% { transform: translate(-50%, 4px); } }

.landing-do-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.4rem clamp(1rem, 2vw, 1.75rem);
}

.landing-do-item + .landing-do-item { border-left: 1px solid var(--border); }

.landing-do-item > i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.1rem;
    clip-path: var(--slant);
    background: rgba(230, 255, 46, 0.1);
    color: var(--neon);
    font-size: 0.95rem;
}

.landing-do-item b {
    display: block;
    font-family: var(--display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-do-item p {
    margin: 0.2rem 0 0;
    color: var(--text-2);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ---------- three features, each with a real screen ---------- */
.landing-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 84rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.landing-feature + .landing-feature { border-top: 1px solid var(--border); }
.landing-feature--flip .landing-feature-text { order: 2; }

.landing-feature-num {
    color: var(--neon);
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.landing-feature h2 {
    margin: 0.4rem 0 0.6rem;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.landing-feature-sub { margin: 0 0 1rem; font-size: 1.05rem; }
.landing-feature-text p:last-child { margin: 0; color: var(--text-2); }

.landing-feature-media { margin: 0; }

.landing-shot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-strong);
    border-top: 3px solid var(--neon);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

/* ---------- how to start ---------- */
.landing-start {
    display: grid;
    justify-items: start;
    gap: 2rem;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
    background:
        linear-gradient(90deg, rgba(6, 7, 9, 0.97) 35%, rgba(6, 7, 9, 0.7)),
        var(--start-bg) center 30% / cover;
    border-top: 1px solid var(--border);
}

.landing-start h2 {
    max-width: 40rem;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
}

.landing-start .landing-tag { margin: 0 0 1rem; }

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 17rem));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.landing-steps li {
    counter-increment: step;
    padding-top: 1rem;
    border-top: 1px solid rgba(243, 245, 250, 0.18);
}

.landing-steps b {
    display: block;
    font-family: var(--display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-steps b::before { content: counter(step, decimal-leading-zero) ' '; color: var(--neon); }
.landing-steps p { margin: 0.4rem 0 0; color: var(--text-2); font-size: 0.9rem; }

.landing-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.landing-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.landing-foot a:not(.brand-logo) { color: var(--text-3); text-decoration: none; }
.landing-foot a:not(.brand-logo):hover { color: var(--text); }

/* ---------- tabs ---------- */
.tab-buttons {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    margin-bottom: -1px;
    padding: 0.7rem 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-3);
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--neon); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* =====================================================================
   Forms — shared by the landing page and the auth cards.
   ===================================================================== */
.form-container input,
.banned-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: 0.95rem/1.4 var(--font);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-container input::placeholder,
.banned-form textarea::placeholder { color: var(--text-3); }

.form-container input:hover,
.banned-form textarea:hover { border-color: #3a4358; }

.form-container input:focus,
.banned-form textarea:focus {
    outline: none;
    border-color: var(--neon);
    background: var(--muted);
}

.form-container input[type="date"] { color-scheme: dark; }

.form-container .is-invalid { border-color: var(--danger-border); }

/* The one main button: slanted, capitals, neon. */
.submit-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem 1rem;
    border: 0;
    clip-path: var(--slant-lg);
    background: var(--neon);
    color: var(--neon-ink);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.submit-btn:hover { background: var(--neon-hover); }

/* The rule shown under a password box before anything is typed. */
.form-container .help-text {
    margin: -0.35rem 0 0.85rem;
    color: var(--text-3);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* Date of birth and the consent checkbox on the sign-up form. */
.form-container .field-row label {
    display: block;
    margin: 0.25rem 0 0.35rem;
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 500;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.25rem 0 0.75rem;
}

.consent-row input[type="checkbox"] {
    /* The form theme puts the label first in the markup; the box belongs on
       the left of it, where people look for one. */
    order: -1;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin: 0.2rem 0 0;
    padding: 0;
    accent-color: var(--neon);
}

/* Its refusal goes under the box and the sentence, full width, not into a
   narrow column beside them. */
.consent-row { flex-wrap: wrap; }
.consent-row ul { order: 1; flex-basis: 100%; margin: 0.25rem 0 0; }

.consent-row label {
    flex: 1;
    min-width: 0;
    color: var(--text-2);
    font-size: 0.8rem;
    line-height: 1.5;
}

.consent-row label a { color: var(--text); text-underline-offset: 2px; }
.consent-row label a:hover { color: var(--neon); }

/* Validation errors: a refusal at a glance, not help text. */
.form-container ul {
    margin: -0.25rem 0 0.75rem;
    padding: 0.55rem 0.8rem;
    list-style: none;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-sm);
    color: var(--danger-text);
    font-size: 0.82rem;
    line-height: 1.45;
}

.form-container ul li + li { margin-top: 0.35rem; }

.form-container ul li::before {
    content: '\26A0';
    margin-right: 0.45rem;
}

/* ---------- or, and the two other ways in ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-3);
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Side by side in equal halves while both labels fit; a language with longer
   labels (cs, ru) puts each button on its own row instead of cutting the text. */
.social-login {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.social-btn:hover { background: var(--muted); border-color: var(--text-3); }
.social-btn i { font-size: 1rem; }

.fa-google { color: #ea4335; }
.fa-discord { color: #7983f5; }

/* ---------- flashes ---------- */
.auth-flash {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid;
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-flash-error,
.auth-flash-danger {
    background: var(--danger-soft);
    border-color: var(--danger-border);
    border-left-color: var(--danger);
    color: var(--danger-text);
}

.auth-flash-success {
    background: var(--win-soft);
    border-color: var(--win-border);
    border-left-color: var(--win-text);
    color: var(--win-text);
}

/* Recovery links under the sign-in form. */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.auth-links a,
.auth-card-back a,
.banned-logout a {
    color: var(--text-2);
    text-decoration: none;
}

.auth-links a:hover,
.auth-card-back a:hover,
.banned-logout a:hover {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--neon);
    text-underline-offset: 3px;
}

/* Honeypot. Kept out of the layout without display:none, which some bots
   check for, and off the tab order in the markup itself. */
.form-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =====================================================================
   Auth cards: the small pages that hang off the landing page.
   ===================================================================== */
.auth-card-page {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fill the viewport when Turbo retains the game's flex body layout. */
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 27rem;
    padding: 2.25rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--neon);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}

.auth-card-logo { margin-bottom: 2rem; }

.auth-card h1 {
    margin: 0 0 0.6rem;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-card-lead {
    margin: 0 0 1.5rem;
    color: var(--text-2);
    font-size: 0.925rem;
    line-height: 1.55;
}

.auth-card-back {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

/* An address that has been asked for but not yet confirmed. */
.account-pending-email {
    margin: -0.5rem 0 1rem;
    padding: 0.6rem 0.8rem;
    background: var(--warn-soft);
    border: 1px solid var(--warn-border);
    border-radius: var(--radius-sm);
    color: var(--warn-text);
    font-size: 0.875rem;
}

/* The page a banned manager is held on: why, and a way to write to the admin. */
.banned-card { max-width: 32rem; }

.banned-reason {
    margin: 0 0 1.75rem;
    padding: 0.75rem 1rem;
    background: var(--danger-soft);
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.banned-reason p {
    margin: 0.25rem 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.banned-label {
    color: var(--text-2);
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.banned-form {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.banned-form .banned-subtitle {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}

.banned-help {
    margin: 0 0 1rem;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Same field as the sign-in inputs, just taller. */
.banned-form textarea {
    min-height: 9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.banned-logout {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    text-align: center;
}

/* =====================================================================
   Narrow screens: the fight on top, the headline, the form right under
   it, then the rest.
   ===================================================================== */
@media (max-width: 1000px) {
    .landing-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto 11rem auto auto;
        gap: 1.5rem;
        min-height: 0;
        padding-bottom: 2rem;
    }

    .landing-slides { bottom: auto; height: 34rem; }

    .landing-slides::after {
        background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 9, 0.7) 38%, rgba(6, 7, 9, 0.15) 72%, rgba(6, 7, 9, 0.75) 100%);
    }

    .landing-lead { margin-bottom: 1.25rem; }
    .landing-panel { grid-column: 1; grid-row: 4; }

    /* On a phone the scorebug is one strip at the foot of the shot. */
    .hud { align-self: end; width: 100%; margin: 0; }
    .hud-row,
    .hud-legend,
    .hud-comment,
    .hud-note { display: none; }

    .landing-do { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* of-type: the arrow link before the items must not count */
    .landing-do-item:nth-of-type(3) { border-left: 0; }
    .landing-do-item:nth-of-type(n + 3) { border-top: 1px solid var(--border); }
    .landing-down { display: none; }

    .landing-feature { grid-template-columns: 1fr; }
    .landing-feature--flip .landing-feature-text { order: 0; }

    .landing-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .landing-nav-link,
    .landing-nav .landing-btn--ghost { display: none; }
    .landing-play { display: inline-flex; }

    /* Logo, "Play for free" and the language in one row. */
    .landing-top,
    .landing-nav { gap: 0.5rem; }
    .landing-nav .landing-btn { padding: 0.55rem 0.75rem; white-space: nowrap; }
    .landing-lang-toggle { padding: 0.55rem 0.6rem; }
    .landing-lang-toggle i { display: none; }

    .landing-panel { padding: 1.5rem 1.25rem; }

    .landing-do { grid-template-columns: 1fr; }
    .landing-do-item { padding: 1rem 1.25rem; }
    .landing-do-item + .landing-do-item { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 340px) {
    .landing-nav .landing-btn { padding: 0.55rem 0.6rem; letter-spacing: 0.05em; }
}

/* Common laptop heights: a smaller headline leaves room for the band below. */
@media (min-width: 1001px) and (max-height: 960px) {
    .landing-headline h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
}

/* Short laptop screens: the card is the tallest thing on the first screen,
   so it tightens up enough for the band below to still peek out. */
@media (min-width: 1001px) and (max-height: 860px) {
    .landing-hero { row-gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
    .landing-panel { padding: 1.1rem 1.5rem 1.25rem; }
    .landing-panel .tab-buttons { margin-bottom: 1rem; }
    .landing-panel .tab-btn { padding: 0.55rem 1rem; }
    .landing-panel .form-container input { margin-bottom: 0.55rem; padding: 0.6rem 0.9rem; }
    .landing-panel .form-container .help-text { margin: -0.2rem 0 0.55rem; }
    .landing-panel .submit-btn { padding: 0.75rem 1rem; }
    .landing-panel .divider { margin: 0.9rem 0 0.7rem; }
    .landing-panel .social-btn { padding: 0.55rem 0.5rem; }
    .landing-tag { margin-bottom: 0.7rem; }
    .landing-lead { margin: 0.9rem 0 1rem; }
    .hud-comment { display: none; }
}

@media (max-width: 420px) {
    .social-btn { flex-basis: 100%; }
    .auth-card { padding: 1.75rem 1.25rem; }

    /* Too narrow for the whole logo next to "Play for free" and the language; the mark stays. */
    .landing-top .brand-logo { font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; transform: none; }
    .landing-down { animation: none; }
}
