/* ==========================================================================
   FANTACLASSE — FANTASY SPORTS ARENA DESIGN SYSTEM (LICEO SCIENTIFICO)
   Responsive Mobile-First Architecture:
   - Mobile (<= 767px)  : Compact Arena Header + Pitch/Roster + Bottom Sports Dock
   - Tablet (768-1023px): Top Arena Bar + Segmented Switcher + Adaptive 2-Col
   - Desktop (>= 1024px): Full Stadium Topbar + 2-Pane Tactical Arena (Pitch + Dock)
   ========================================================================== */

:root {
    /* Legacy token aliases preserved for automated test contract compatibility */
    --bg-chalkboard: #0B0F0E;
    --green-primary: #16A34A;
    --yellow-accent: #FBBF24;

    /* Core Stadium & Arena Surfaces */
    --app-bg: #EEF2F6;
    --surface-primary: #FFFFFF;
    --surface-subtle: #F8FAFC;
    --surface-muted: #F1F5F9;
    --surface-navy: #0B1120;
    --surface-navy-mid: #111C33;
    --surface-navy-elevated: #1E293B;
    --surface-navy-glass: rgba(15, 23, 42, 0.88);

    /* Pitch Turf Surfaces */
    --pitch-dark: #072218;
    --pitch-mid: #0C3424;
    --pitch-light: #11422E;
    --pitch-line: rgba(197, 243, 106, 0.24);
    --pitch-glow: rgba(197, 243, 106, 0.14);

    /* Typography Colors */
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-on-dark: #F8FAFC;
    --text-on-dark-muted: #94A3B8;

    /* Competitive Accents */
    --accent-lime: #C5F36A;
    --accent-lime-hover: #B2E64E;
    --accent-lime-dim: rgba(197, 243, 106, 0.16);
    --accent-emerald: #10B981;
    --accent-emerald-dark: #047857;
    --accent-emerald-soft: #D1FAE5;
    --accent-cyan: #38BDF8;
    --accent-amber: #F59E0B;

    /* Semantic Status Colors */
    --status-ok-bg: #DCFCE7;
    --status-ok-text: #166534;
    --status-ok-border: #86EFAC;
    --status-wait-bg: #FEF3C7;
    --status-wait-text: #92400E;
    --status-wait-border: #FDE68A;
    --status-err-bg: #FEE2E2;
    --status-err-text: #B91C1C;
    --status-err-border: #FCA5A5;

    /* 9 Curricular Subjects — Tactical Color Coding */
    --subj-inf-bg: #E0F2FE;
    --subj-inf-fg: #0369A1;
    --subj-inf-accent: #38BDF8;

    --subj-mat-bg: #E0E7FF;
    --subj-mat-fg: #3730A3;
    --subj-mat-accent: #818CF8;

    --subj-sci-bg: #DCFCE7;
    --subj-sci-fg: #15803D;
    --subj-sci-accent: #4ADE80;

    --subj-ita-bg: #FEF3C7;
    --subj-ita-fg: #B45309;
    --subj-ita-accent: #FBBF24;

    --subj-fil-bg: #F3E8FF;
    --subj-fil-fg: #6B21A8;
    --subj-fil-accent: #C084FC;

    --subj-sto-bg: #FFEDD5;
    --subj-sto-fg: #C2410C;
    --subj-sto-accent: #FB923C;

    --subj-ing-bg: #CCFBF1;
    --subj-ing-fg: #0F766E;
    --subj-ing-accent: #2DD4BF;

    --subj-art-bg: #FCE7F3;
    --subj-art-fg: #BE185D;
    --subj-art-accent: #F472B6;

    --subj-mot-bg: #FFE4E6;
    --subj-mot-fg: #BE123C;
    --subj-mot-accent: #FB7185;

    /* Borders & Shadows */
    --border-light: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-dark: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-elevated: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-pitch: 0 20px 44px rgba(7, 34, 24, 0.28);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-pill: 9999px;

    /* Typography Families */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Shell Metrics */
    --topbar-h: 66px;
    --tabbar-h: 68px;
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--app-bg);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(197, 243, 106, 0.14), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.08), transparent 36%);
    color: var(--text-main);
    line-height: 1.45;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 16px;
    background: var(--surface-navy);
    color: var(--accent-lime);
    font-weight: 700;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--accent-emerald);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-lime);
    color: var(--surface-navy);
}

/* ==========================================================================
   2. APP SPLASH LOADER
   ========================================================================== */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    animation: splash-auto-hide 0.25s ease 0.45s forwards;
}

@keyframes splash-auto-hide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.app-splash.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.app-splash__card {
    background: var(--surface-navy-mid);
    border: 1px solid rgba(197, 243, 106, 0.28);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    color: #FFFFFF;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.app-splash__crest {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: var(--radius-lg);
    background: var(--accent-lime);
    color: var(--surface-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(197, 243, 106, 0.3);
}

.app-splash__brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.app-splash__subtitle {
    font-size: 0.78rem;
    color: var(--text-on-dark-muted);
    margin-top: 4px;
    margin-bottom: 16px;
}

.app-splash__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.app-splash__bar-fill {
    display: block;
    width: 78%;
    height: 100%;
    background: var(--accent-lime);
    border-radius: var(--radius-pill);
}

/* ==========================================================================
   3. UNIFIED FANTASY SPORTS NAVIGATION SHELL (NO ADMIN SIDEBAR)
   ========================================================================== */
.app-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.arena-header {
    min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--surface-navy);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(197, 243, 106, 0.16);
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: 0 6px 20px rgba(11, 17, 32, 0.22);
}

.arena-header__inner {
    max-width: 1360px;
    min-height: var(--topbar-h);
    margin: 0 auto;
    padding: 6px max(14px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-badge__crest {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-hover) 100%);
    color: var(--surface-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(197, 243, 106, 0.25);
}

.brand-badge__text {
    display: flex;
    flex-direction: column;
}

.brand-badge__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: #FFFFFF;
}

.brand-badge__sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-lime);
}

/* Segmented Arena Nav (Visible >= 768px) */
.arena-nav {
    display: none;
}

/* Right Manager HUD in Header */
.arena-hud {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-budget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(197, 243, 106, 0.14);
    border: 1px solid rgba(197, 243, 106, 0.38);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.hud-budget__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 8px var(--accent-lime);
}

.hud-manager {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hud-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.76rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.hud-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: var(--status-err-border);
}

.hud-logout__text {
    display: none;
}

/* Main Workspace Content */
.app-Workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-content {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 16px max(12px, env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px) max(12px, env(safe-area-inset-left, 0px));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile Persistent Sports Dock (<= 767px) */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    background: var(--surface-navy);
    border-top: 1px solid rgba(197, 243, 106, 0.2);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 130;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px rgba(11, 17, 32, 0.35);
}

.mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--radius-md);
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.15s ease;
}

.mobile-tabbar__item.is-active {
    color: var(--surface-navy);
    background: var(--accent-lime);
    box-shadow: 0 4px 12px rgba(197, 243, 106, 0.25);
}

@media (min-width: 768px) {
    .mobile-tabbar {
        display: none;
    }

    .arena-header__inner {
        padding: 0 20px;
    }

    .arena-nav {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 4px;
        border-radius: var(--radius-pill);
    }

    .arena-nav__link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: var(--radius-pill);
        font-size: 0.78rem;
        font-weight: 700;
        color: #CBD5E1;
        white-space: nowrap;
        transition: all 0.15s ease;
    }

    .arena-nav__link:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.06);
    }

    .arena-nav__link.is-active {
        background: var(--accent-lime);
        color: var(--surface-navy);
        box-shadow: 0 2px 10px rgba(197, 243, 106, 0.25);
    }

    .hud-logout__text {
        display: inline;
    }

    .app-content {
        padding: 22px 24px 44px;
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .hud-manager {
        display: inline-flex;
    }

    .arena-nav__link {
        padding: 7px 15px;
        font-size: 0.83rem;
        gap: 8px;
    }
}

@media (min-width: 1200px) {
    .arena-header__inner {
        padding: 0 32px;
    }

    .app-content {
        padding: 26px 32px 52px;
        gap: 22px;
    }
}

/* ==========================================================================
   4. SPORTY BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    background: var(--surface-navy);
    color: #FFFFFF;
    border-color: var(--surface-navy);
}

.btn--primary:hover {
    background: var(--surface-navy-elevated);
}

.btn--lime {
    background: var(--accent-lime);
    color: var(--surface-navy);
    border-color: rgba(197, 243, 106, 0.8);
    box-shadow: 0 4px 12px rgba(197, 243, 106, 0.2);
}

.btn--lime:hover {
    background: var(--accent-lime-hover);
}

.btn--emerald {
    background: var(--accent-emerald);
    color: #FFFFFF;
}

.btn--emerald:hover {
    background: var(--accent-emerald-dark);
}

.btn--secondary {
    background: var(--surface-primary);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.btn--secondary:hover {
    background: var(--surface-muted);
    border-color: var(--text-secondary);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.16);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn--danger-soft {
    background: var(--status-err-bg);
    color: var(--status-err-text);
    border-color: var(--status-err-border);
}

.btn--danger-soft:hover {
    background: var(--status-err-bg);
    border-color: var(--status-err-text);
}

.btn--sm {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.btn--xs {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.73rem;
    border-radius: var(--radius-xs);
}

.btn--full {
    width: 100%;
}

/* Role / Subject Code Badge */
.role-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--subj-mat-bg);
    color: var(--subj-mat-fg);
}

.role-code[data-codice="INF"] { background: var(--subj-inf-bg); color: var(--subj-inf-fg); }
.role-code[data-codice="MAT"] { background: var(--subj-mat-bg); color: var(--subj-mat-fg); }
.role-code[data-codice="SCI"] { background: var(--subj-sci-bg); color: var(--subj-sci-fg); }
.role-code[data-codice="ITA"] { background: var(--subj-ita-bg); color: var(--subj-ita-fg); }
.role-code[data-codice="FIL"] { background: var(--subj-fil-bg); color: var(--subj-fil-fg); }
.role-code[data-codice="STO"] { background: var(--subj-sto-bg); color: var(--subj-sto-fg); }
.role-code[data-codice="ING"] { background: var(--subj-ing-bg); color: var(--subj-ing-fg); }
.role-code[data-codice="ART"] { background: var(--subj-art-bg); color: var(--subj-art-fg); }
.role-code[data-codice="MOT"] { background: var(--subj-mot-bg); color: var(--subj-mot-fg); }

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-tag--ok {
    background: var(--status-ok-bg);
    color: var(--status-ok-text);
    border: 1px solid var(--status-ok-border);
}

.status-tag--wait {
    background: var(--status-wait-bg);
    color: var(--status-wait-text);
    border: 1px solid var(--status-wait-border);
}

.status-tag--starter {
    background: var(--accent-lime);
    color: var(--surface-navy);
    font-weight: 800;
}

/* ==========================================================================
   5. SCREEN A: MY TEAM — CLUB SCOREBOARD & 3-3-3 TACTICAL PITCH ARENA
   ========================================================================== */
.club-scoreboard {
    background: linear-gradient(135deg, var(--surface-navy) 0%, var(--surface-navy-mid) 60%, var(--pitch-mid) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 18px 18px;
    border: 1px solid rgba(197, 243, 106, 0.22);
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.club-scoreboard__top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.club-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.club-identity__shield {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: rgba(197, 243, 106, 0.14);
    border: 2px solid var(--accent-lime);
    color: var(--accent-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.club-identity__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.club-identity__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-lime);
}

.club-identity__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #FFFFFF;
}

.club-identity__sub {
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
}

/* Scoreboard Telemetry Strip */
.club-telemetry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.telemetry-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-box--highlight {
    background: rgba(197, 243, 106, 0.12);
    border-color: rgba(197, 243, 106, 0.35);
}

.telemetry-box__label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
}

.telemetry-box__val {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
}

.telemetry-box--highlight .telemetry-box__val {
    color: var(--accent-lime);
}

/* Readiness Progress & Next Action Bar */
.club-scoreboard__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.readiness-meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.readiness-meter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
}

.readiness-meter__label {
    font-weight: 700;
    color: #E2E8F0;
}

.readiness-meter__status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-lime);
    font-weight: 700;
}

.readiness-segments {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.readiness-seg {
    height: 7px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s ease;
}

.readiness-seg.is-filled {
    background: var(--accent-lime);
    box-shadow: 0 0 8px rgba(197, 243, 106, 0.4);
}

.club-scoreboard__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .club-scoreboard {
        padding: 20px 24px;
    }

    .club-telemetry {
        grid-template-columns: repeat(4, 1fr);
    }

    .club-scoreboard__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .club-scoreboard__top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .club-telemetry {
        grid-template-columns: repeat(4, minmax(120px, auto));
    }
}

/* ==========================================================================
   6. TWO-COLUMN SQUAD ARENA: TACTICAL PITCH + INTERACTIVE POSITION DOCK
   ========================================================================== */
.squad-arena {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

@media (min-width: 1024px) {
    .squad-arena {
        grid-template-columns: 1.38fr 0.92fr;
        gap: 22px;
    }
}

/* The 3-3-3 Football-Inspired Tactical Pitch */
.tactical-pitch-stage {
    background: var(--surface-navy);
    border-radius: var(--radius-2xl);
    padding: 12px;
    border: 1px solid rgba(197, 243, 106, 0.24);
    box-shadow: var(--shadow-pitch);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pitch-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 6px;
    color: #FFFFFF;
}

.pitch-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pitch-formation-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-lime);
    color: var(--surface-navy);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.pitch-topbar__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
}

.pitch-topbar__hint {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* The Actual Turf Pitch Surface */
.tactical-pitch {
    position: relative;
    border-radius: var(--radius-xl);
    background:
        repeating-linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.032) 0px,
            rgba(255, 255, 255, 0.032) 46px,
            transparent 46px,
            transparent 92px
        ),
        radial-gradient(circle at 50% 50%, #165B3E 0%, #0C3825 62%, #072217 100%);
    border: 2px solid rgba(197, 243, 106, 0.42);
    padding: 14px 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Pitch Chalk Markings Overlay */
.tactical-pitch__markings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pitch-center-line {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: rgba(197, 243, 106, 0.28);
}

.pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 124px;
    height: 124px;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(197, 243, 106, 0.28);
    border-radius: 50%;
}

.pitch-box-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48%;
    height: 42px;
    border: 1.5px solid rgba(197, 243, 106, 0.26);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.pitch-box-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48%;
    height: 42px;
    border: 1.5px solid rgba(197, 243, 106, 0.26);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

/* Each of the 3 Tactical Lines (3-3-3) */
.pitch-line {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pitch-line__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.pitch-line__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background: rgba(11, 17, 32, 0.78);
    border: 1px solid rgba(197, 243, 106, 0.24);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-lime);
}

.pitch-line__count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(11, 17, 32, 0.68);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.pitch-line__slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

/* Positioned Player Token on the Pitch (.pitch-node) */
.pitch-node {
    position: relative;
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 7px 5px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    color: #FFFFFF;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    min-height: 122px;
}

.pitch-node:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 243, 106, 0.8);
    background: rgba(15, 23, 42, 0.9);
}

.pitch-node.is-occupied {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 0.96) 100%);
    border-color: rgba(197, 243, 106, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.pitch-node.is-vacant {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(11, 17, 32, 0.48);
}

.pitch-node.is-selected {
    border-style: solid;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(197, 243, 106, 0.35), 0 10px 24px rgba(0, 0, 0, 0.42);
    transform: translateY(-2px);
}

.pitch-node__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

.pitch-node__code {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.pitch-node.is-occupied .pitch-node__code {
    background: var(--accent-lime);
    color: var(--surface-navy);
}

.pitch-node__pool {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: #CBD5E1;
}

/* Player Kit Shield / Jersey Token inside Pitch Node */
.pitch-kit {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid var(--accent-lime);
    color: var(--accent-lime);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
}

.pitch-node.is-vacant .pitch-kit {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
}

.pitch-kit__monogram {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Player Nameplate Banner on Pitch */
.pitch-node__plate {
    width: 100%;
    background: rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xs);
    padding: 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pitch-node.is-occupied .pitch-node__plate {
    background: var(--accent-lime);
    color: var(--surface-navy);
}

.pitch-node__holder {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pitch-node__subj {
    font-size: 0.58rem;
    font-weight: 700;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .tactical-pitch-stage {
        padding: 16px;
    }

    .tactical-pitch {
        padding: 20px 18px;
        gap: 18px;
    }

    .pitch-line__tag {
        font-size: 0.66rem;
    }

    .pitch-line__slots {
        gap: 14px;
    }

    .pitch-node {
        padding: 11px 10px 10px;
        min-height: 146px;
    }

    .pitch-node__code {
        font-size: 0.66rem;
        padding: 2px 6px;
    }

    .pitch-node__pool {
        font-size: 0.63rem;
    }

    .pitch-kit {
        width: 50px;
        height: 50px;
    }

    .pitch-kit__monogram {
        font-size: 0.98rem;
    }

    .pitch-node__holder {
        font-size: 0.84rem;
    }

    .pitch-node__subj {
        font-size: 0.68rem;
    }
}

/* ==========================================================================
   7. INTERACTIVE TACTICAL DOCK & SLOT INSPECTOR (.tactical-dock)
   ========================================================================== */
.tactical-dock {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 1024px) {
    .tactical-dock {
        position: sticky;
        top: calc(var(--topbar-h) + 18px);
    }
}

.dock-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dock-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.dock-card__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dock-card__kicker {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.dock-card__title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

/* Active Starter Showcase inside Tactical Dock */
.dock-starter-box {
    background: var(--surface-navy);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(197, 243, 106, 0.3);
}

.dock-starter-box.is-empty {
    background: var(--surface-muted);
    color: var(--text-main);
    border: 1px dashed var(--border-strong);
}

.dock-starter-box__person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dock-starter-box__emblem {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-lime);
    color: var(--surface-navy);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dock-starter-box.is-empty .dock-starter-box__emblem {
    background: var(--border-light);
    color: var(--text-muted);
}

.dock-starter-box__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dock-starter-box__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-lime);
}

.dock-starter-box.is-empty .dock-starter-box__label {
    color: var(--text-muted);
}

.dock-starter-box__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Candidate Picker List inside Dock */
.dock-candidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dock-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.dock-candidate-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.dock-candidate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    transition: border-color 0.15s ease;
}

.dock-candidate-row.is-active-starter {
    background: var(--status-ok-bg);
    border-color: var(--status-ok-border);
}

.dock-candidate-row__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.dock-candidate-row__left > div {
    min-width: 0;
}

.dock-candidate-row__badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--surface-navy);
    color: var(--accent-lime);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dock-candidate-row__name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-candidate-row__sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dock-empty-notice {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px dashed var(--border-strong);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dock-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* 9-Subject Quick Matrix inside Dock */
.subject-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.matrix-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.matrix-pill:hover {
    border-color: var(--surface-navy);
}

.matrix-pill.is-covered {
    background: var(--status-ok-bg);
    border-color: var(--status-ok-border);
    color: var(--status-ok-text);
}

.matrix-pill.is-selected {
    background: var(--surface-navy);
    border-color: var(--surface-navy);
    color: var(--accent-lime);
}

.matrix-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-strong);
}

.matrix-pill.is-covered .matrix-pill__dot {
    background: var(--accent-emerald);
}

.matrix-pill.is-selected .matrix-pill__dot {
    background: var(--accent-lime);
}

/* ==========================================================================
   8. SCREEN B: CLASS ROSTER & CANDIDATE SCOUTING (/mercato)
   ========================================================================== */
.scouting-header {
    background: linear-gradient(135deg, var(--surface-navy) 0%, var(--surface-navy-mid) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    border: 1px solid rgba(197, 243, 106, 0.22);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scouting-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scouting-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.scouting-header__desc {
    font-size: 0.84rem;
    color: #94A3B8;
}

.scouting-header__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(197, 243, 106, 0.15);
    border: 1px solid rgba(197, 243, 106, 0.4);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Unified 9-Subject + All Filter & Coverage Strip on Roster Screen */
.coverage-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .coverage-strip {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .coverage-strip {
        grid-template-columns: repeat(10, 1fr);
    }
}

.coverage-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #CBD5E1;
    transition: all 0.15s ease;
}

.coverage-chip:hover {
    border-color: var(--accent-lime);
    color: #FFFFFF;
}

.coverage-chip.has-cards {
    border-color: rgba(197, 243, 106, 0.45);
    background: rgba(197, 243, 106, 0.1);
}

.coverage-chip.is-active {
    background: var(--accent-lime);
    color: var(--surface-navy);
    border-color: var(--accent-lime);
    font-weight: 800;
}

/* Scouting Toolbar: Search + Department/Subject Tabs + Status Filter */
.scouting-toolbar {
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.scouting-toolbar__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .scouting-toolbar__top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.scouting-search {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.scouting-search__input {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px 8px 36px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface-subtle);
    font-size: 0.85rem;
    color: var(--text-main);
}

.scouting-search__input:focus {
    outline: none;
    border-color: var(--surface-navy);
    background: #FFFFFF;
}

.scouting-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    transition: all 0.15s ease;
    cursor: pointer;
}

.filter-pill:hover {
    border-color: var(--border-strong);
    color: var(--text-main);
}

.filter-pill.is-active {
    background: var(--surface-navy);
    color: var(--accent-lime);
    border-color: var(--surface-navy);
}

/* Compact Sports Roster Cards / Scouting Tiles (.cards-grid & .player-card) */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1080px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.player-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--surface-navy);
}

.player-card[data-codice="INF"]::before,
.player-card[data-codice="MAT"]::before,
.player-card[data-codice="SCI"]::before {
    background: var(--accent-cyan);
}

.player-card[data-codice="ITA"]::before,
.player-card[data-codice="FIL"]::before,
.player-card[data-codice="STO"]::before {
    background: var(--accent-amber);
}

.player-card[data-codice="ING"]::before,
.player-card[data-codice="ART"]::before,
.player-card[data-codice="MOT"]::before {
    background: var(--accent-emerald);
}

.player-card.is-starter-card {
    border-color: var(--accent-emerald);
    background: linear-gradient(180deg, var(--surface-primary) 0%, var(--status-ok-bg) 100%);
}

.player-card:hover {
    transform: translateY(-2px);
    border-color: var(--surface-navy);
    box-shadow: var(--shadow-elevated);
}

.player-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.player-card__badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Horizontal Compact Sports Identity inside Player Card */
.player-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-card__visual {
    flex-shrink: 0;
}

.player-card__emblem {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--surface-navy);
    color: var(--accent-lime);
    border: 2px solid rgba(197, 243, 106, 0.45);
    box-shadow: var(--shadow-sm);
}

.player-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.player-card__name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-card__role-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-emerald-dark);
}

.player-card__dept {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.player-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.player-card__slot-hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   9. SCREEN C: PROPOSAL & VERIFICATION WORKFLOW (/suggerisci)
   ========================================================================== */
.workflow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .workflow-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
}

.workflow-step.is-current {
    background: var(--surface-navy);
    color: #FFFFFF;
    border-color: var(--surface-navy);
}

.workflow-step__num {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent-lime);
    color: var(--surface-navy);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-step__text {
    display: flex;
    flex-direction: column;
}

.workflow-step__title {
    font-size: 0.8rem;
    font-weight: 800;
}

.workflow-step__sub {
    font-size: 0.68rem;
    opacity: 0.78;
}

.creator-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

@media (min-width: 960px) {
    .creator-split {
        grid-template-columns: 1.25fr 0.95fr;
        gap: 22px;
    }
}

.panel-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.panel-card__head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-card__title {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 800;
}

.panel-card__sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 560px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface-primary);
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--surface-navy);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-group.has-error .form-input,
.form-group.has-error .form-select {
    border-color: var(--status-err-text);
    background: var(--status-err-bg);
}

.field-error {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--status-err-text);
    margin-top: 5px;
    min-height: 1.1em;
}

.field-error:empty {
    display: none;
}

/* 9-Subject Tactical Quick Selector (3x3) */
.role-quick-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.role-quick-btn {
    padding: 9px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--surface-subtle);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s ease;
}

.role-quick-btn:hover {
    border-color: var(--surface-navy);
}

.role-quick-btn strong {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-main);
}

.role-quick-btn span {
    font-size: 0.67rem;
    color: var(--text-secondary);
    line-height: 1.15;
}

.role-quick-btn.is-selected {
    background: var(--surface-navy);
    border-color: var(--surface-navy);
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.2);
}

.role-quick-btn.is-selected strong {
    color: var(--accent-lime);
}

.role-quick-btn.is-selected span {
    color: #E2E8F0;
}

/* Right Column on /suggerisci: Live Shield Card + Verification Tracker */
.creator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-stage {
    background: radial-gradient(circle at 50% 0%, #1E293B 0%, var(--surface-navy) 100%);
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    color: #FFFFFF;
    border: 1px solid rgba(197, 243, 106, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-elevated);
}

.preview-stage__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-lime);
}

.trading-card {
    width: 100%;
    max-width: 280px;
    background: linear-gradient(160deg, var(--surface-navy-elevated) 0%, var(--surface-navy) 100%);
    border: 2px solid var(--accent-lime);
    border-radius: var(--radius-xl);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.trading-card__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trading-card__crest {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: rgba(197, 243, 106, 0.14);
    border: 2px solid var(--accent-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-lime);
    margin: 4px 0;
}

.trading-card__name {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    color: #FFFFFF;
    word-break: break-word;
}

.trading-card__role {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-lime);
}

.trading-card__footer {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #94A3B8;
}

/* Verification Queue Tracker */
.verification-queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
}

.queue-row__left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.queue-row__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   10. AUTHENTICATION TUNNEL & GUEST MATCHDAY GATE
   ========================================================================== */
.auth-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 14px;
    background:
        radial-gradient(circle at 18% 15%, rgba(197, 243, 106, 0.2), transparent 36%),
        radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.14), transparent 38%),
        var(--surface-navy);
}

.auth-stage {
    width: 100%;
    max-width: 1060px;
    background: var(--surface-primary);
    border: 1px solid rgba(197, 243, 106, 0.28);
    border-radius: var(--radius-2xl);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
    background:
        radial-gradient(circle at 50% 100%, #0F3826 0%, var(--surface-navy) 75%);
    color: #FFFFFF;
    gap: 18px;
    border-bottom: 1px solid rgba(197, 243, 106, 0.2);
}

@media (min-width: 860px) {
    .auth-stage {
        grid-template-columns: 1.12fr 0.95fr;
    }

    .auth-showcase {
        padding: 36px;
        border-bottom: none;
        border-right: 1px solid rgba(197, 243, 106, 0.18);
    }
}

.auth-showcase__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-showcase__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(197, 243, 106, 0.16);
    border: 1px solid rgba(197, 243, 106, 0.35);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.auth-showcase__headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}

.auth-showcase__lead {
    font-size: 0.86rem;
    color: #94A3B8;
}

/* Miniature 3-3-3 Pitch Preview in Auth Showcase */
.gate-formation-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    background: rgba(7, 34, 24, 0.75);
    border: 1.5px solid rgba(197, 243, 106, 0.32);
    border-radius: var(--radius-lg);
    padding: 10px;
}

.gate-slot {
    background: rgba(11, 17, 32, 0.72);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gate-slot.is-filled {
    border-style: solid;
    border-color: var(--accent-lime);
    background: rgba(197, 243, 106, 0.14);
}

.gate-slot__code {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-lime);
}

.gate-slot__subject {
    font-size: 0.64rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gate-slot__holder {
    font-size: 0.74rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 34px 34px;
    }
}

.auth-card__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-muted);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 18px;
}

.auth-card__tab {
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.auth-card__tab.is-active {
    background: var(--surface-navy);
    color: var(--accent-lime);
    box-shadow: var(--shadow-sm);
}

.auth-card__header {
    margin-bottom: 16px;
}

.auth-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.auth-card__subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.auth-card__footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.auth-card__footer a {
    font-weight: 700;
    color: var(--surface-navy);
    text-decoration: underline;
}

.gate-secondary-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.gate-catalog-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ==========================================================================
   11. BANNERS, EMPTY STATES & SKELETON LOADERS
   ========================================================================== */
.status-banner {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.status-banner__title {
    font-weight: 700;
    font-size: 0.85rem;
}

.status-banner__text {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.status-banner .btn {
    margin-top: 8px;
}

.status-banner--success {
    background: var(--status-ok-bg);
    color: var(--status-ok-text);
    border-color: var(--status-ok-border);
}

.status-banner--error {
    background: var(--status-err-bg);
    color: var(--status-err-text);
    border-color: var(--status-err-border);
}

.state-box {
    background: var(--surface-primary);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.state-box__title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
}

.state-box__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 420px;
}

.state-box__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

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

.skeleton-card {
    height: 132px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--border-light) 25%, var(--surface-muted) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: pulse-sk 1.4s infinite linear;
}

@keyframes pulse-sk {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   12. OVERHAUL EXTENSIONS: 5 FORMATIONS, CATTEDRA, ECONOMY, LEAGUES & AUDIT
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.club-identity__kit-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
}

.club-identity__shield .club-identity__kit-icon {
    width: 28px;
    height: 28px;
}

.tactical-select {
    min-height: 36px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 243, 106, 0.35);
    background: rgba(15, 23, 42, 0.92);
    color: #F8FAFC;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.tactical-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pitch-line__slots--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .pitch-line__slots--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bench-cattedra-strip {
    background: rgba(11, 17, 32, 0.86);
    border: 1px solid rgba(197, 243, 106, 0.25);
    border-radius: var(--radius-xl);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #FFFFFF;
}

.bench-cattedra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .bench-cattedra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cattedra-slot {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cattedra-slot__label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-lime);
}

.bench-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bench-submit-row__info {
    font-size: 0.76rem;
    color: #CBD5E1;
}

.league-command-section {
    margin-top: 12px;
}

details.league-command-section > summary {
    list-style: none;
    cursor: pointer;
}

details.league-command-section > summary::-webkit-details-marker {
    display: none;
}

details.league-command-section[open] .league-forms-split {
    margin-top: 12px;
}

.standings-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.standings-table th,
.standings-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-light);
}

.standings-table th {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--surface-subtle);
}

.standings-table tr.is-my-team {
    background: var(--status-ok-bg);
}

.standings-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.league-forms-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.league-mini-form {
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pagellino-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .pagellino-summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pagellino-stat {
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.pagellino-stat strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-main);
}

.pagellino-stat--total {
    background: var(--surface-navy);
    border-color: var(--surface-navy);
    color: #CBD5E1;
}

.pagellino-stat--total strong {
    color: var(--accent-lime);
}

.market-economy-bar {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.card-price-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-navy);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
}

.player-card__btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.market-ledger-panel,
.scrutinio-console-card {
    margin-top: 4px;
}

/* ==========================================================================
   13. RESPONSIVE, TOUCH & MULTI-DEVICE ADAPTATIONS (/impeccable adapt)
   ========================================================================== */

/* Narrow Mobile Viewports (<= 520px): prevent horizontal cramping in header,
   tactical selects, dock candidate rows, and card action bars */
@media (max-width: 520px) {
    .arena-header__inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .arena-hud {
        flex-wrap: wrap;
        gap: 6px;
    }

    .arena-hud .tactical-select {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tactical-controls-bar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .tactical-controls-bar .tactical-select {
        width: 100%;
    }

    .dock-starter-box {
        flex-wrap: wrap;
    }

    .dock-candidate-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dock-candidate-row .player-card__btn-group {
        width: 100%;
        justify-content: flex-end;
    }

    .dock-candidate-row .player-card__btn-group .btn {
        flex: 1 1 auto;
    }

    .player-card__actions {
        flex-wrap: wrap;
    }

    .bench-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bench-submit-row .btn {
        width: 100%;
    }
}

/* Ultra-narrow Mobile Viewports (<= 380px, e.g. 320px-375px phones):
   compact stage padding while keeping all pitch-node gameplay telemetry readable */
@media (max-width: 380px) {
    .brand-badge__sub {
        display: none;
    }

    .tactical-pitch-stage {
        padding: 8px;
    }

    .tactical-pitch {
        padding: 8px 4px;
        gap: 10px;
    }

    .pitch-line__slots {
        gap: 4px;
    }

    .pitch-node {
        padding: 6px 4px;
        min-height: 118px;
    }

    .pitch-node__code {
        font-size: 0.64rem;
        padding: 2px 4px;
    }

    .pitch-node__pool {
        font-size: 0.62rem;
    }

    .pitch-node__holder {
        font-size: 0.72rem;
    }

    .pitch-node__subj {
        font-size: 0.63rem;
    }
}

/* Tablet Hybrid Breakpoint (640px-1023px): use full horizontal width for the
   9-subject quick coverage matrix while the dock is stacked below the pitch */
@media (min-width: 640px) and (max-width: 1023px) {
    .subject-matrix-grid {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }

    .matrix-pill {
        flex-direction: column;
        justify-content: center;
        padding: 8px 4px;
    }
}

/* Tablet & Desktop (>= 768px): side-by-side League Creation & Invite Join forms */
@media (min-width: 768px) {
    .league-forms-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop (>= 1024px): 3-column Cattedra, Leadership & Reserves console */
@media (min-width: 1024px) {
    .bench-cattedra-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Coarse Pointer (Touch Devices: phones & tablets): enforce ergonomic touch targets
   and scroll containment */
@media (pointer: coarse) {
    .btn,
    .btn--sm,
    .tactical-select,
    .hud-logout,
    .filter-pill,
    .matrix-pill,
    .coverage-chip,
    .role-quick-btn {
        min-height: 44px;
    }

    .btn--xs {
        min-height: 38px;
        padding: 6px 12px;
    }

    .dock-candidate-list {
        max-height: 300px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .standings-table-wrap {
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Touch Devices without Hover: prevent sticky hover transforms and provide tactile active feedback */
@media (hover: none) {
    .pitch-node:hover,
    .player-card:hover {
        transform: none;
    }

    .pitch-node:active,
    .player-card:active,
    .matrix-pill:active,
    .filter-pill:active,
    .role-quick-btn:active {
        transform: scale(0.98);
    }
}

/* Mobile Landscape Orientation (short viewport height <= 500px):
   free vertical space for the tactical pitch */
@media (max-height: 500px) and (orientation: landscape) {
    .arena-header {
        position: relative;
    }

    .mobile-tabbar {
        height: calc(52px + env(safe-area-inset-bottom, 0px));
        padding-top: 3px;
        padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .skeleton-card {
        animation: none;
    }

    .app-splash {
        animation-duration: 0.15s;
        animation-delay: 0.1s;
    }

    .pitch-node,
    .pitch-node:hover,
    .pitch-node.is-selected,
    .player-card,
    .player-card:hover,
    .btn:active,
    .matrix-pill:active,
    .filter-pill:active,
    .role-quick-btn:active {
        transform: none;
    }

    .pitch-node,
    .player-card,
    .btn,
    .matrix-pill,
    .filter-pill,
    .coverage-chip,
    .role-quick-btn,
    .readiness-seg,
    .hud-logout,
    .mobile-tabbar__item,
    .arena-nav__link {
        transition-property: background-color, border-color, color, opacity, box-shadow;
        transition-duration: 0.12s;
    }
}
