/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

/* Custom Scrollbar for Chrome/Safari/Edge */
/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

:root {
    --main-blue: #3b82f6;
    --neon-blue: #00f2ff;
    --neon: #00f2ff;
    --red: #ff3131;
    --tactical-orange: #ff6b00;
    --hazard-yellow: #f4f000;
    --hud-gray: #0f171c;
    --hud-border: rgba(0, 242, 255, 0.15);
    --dark-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --active-glow: #00ff88;
    --font-orbitron: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;
}

.mono { font-family: var(--font-mono); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    margin: 3px 4px 3px 0;
    border-radius: 3px;
    border: 1px solid rgba(255, 49, 49, 0.4);
    background: rgba(255, 49, 49, 0.1);
    color: #ff6b6b;
}
.badge i { font-size: 0.6rem; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); 
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--active-glow);
    box-shadow: 0 0 15px var(--active-glow);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: #000;
    background-image:
        linear-gradient(rgba(18, 24, 27, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 27, 0.6) 1px, transparent 1px);
    background-size: 32px 32px;
    /* background-attachment:fixed forces a full repaint of this background
       on every scroll frame in most browsers - a well-known cause of janky/
       slow scrolling, especially on mobile. Scrolling with the page instead
       looks near-identical (it's a tiny repeating pattern) but is free. */
    color: #e2e8f0;
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Makes the browser render its own native popups on this page (select
       dropdown lists, date/time pickers, autofill suggestions) in dark mode
       instead of stark white - CSS can't restyle those popups directly,
       this is the actual supported way to theme them. */
    color-scheme: dark;
}

/* Faint CRT scanline sweep over the whole page */
body::before {
    content: " ";
    display: block;
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 244, 255, 0.04) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.01));
    background-size: 100% 4px, 6px 100%;
    z-index: 99999;
    pointer-events: none;
    opacity: 0.65;
}

/* Whole-page mode tint - a soft glow behind everything plus a retint of the
   grid lines, so the SF-red / BR-orange color-coding isn't just on the
   badge and panel, it reads across the entire background too. */
body::after {
    content: " ";
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle at 50% 0%, rgba(255, 49, 49, 0.22), transparent 60%);
}
body.mode-theme-sf {
    background-image:
        linear-gradient(rgba(120, 20, 20, 0.85) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 20, 20, 0.85) 1px, transparent 1px);
}
body.mode-theme-sf::after { opacity: 1; }
body.mode-theme-br {
    background-image:
        linear-gradient(rgba(120, 65, 8, 0.85) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 65, 8, 0.85) 1px, transparent 1px);
}
body.mode-theme-br::after {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.22), transparent 60%);
}

/* --- SCRIM HUB DASHBOARD (scrims.html) ---
   Recovered: this whole block was accidentally deleted in commit f18802e
   while resolving a merge conflict (the wrong side of the conflict was kept),
   which is why the dashboard/admin panel had no styling at all. */

#admin-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid var(--neon);
    color: var(--neon);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: "Orbitron";
    font-size: 0.65rem;
    letter-spacing: 1px;
    z-index: 10001;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- TACTICAL HUD HEADER --- */
.hud-header {
    position: relative;
    background: #000;
    border: 1px solid var(--hud-border);
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 3px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.hud-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #000;
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 2px;
    color: var(--neon);
    font-size: 1rem;
}

.hud-brand-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.hud-brand-frx {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #fff;
}
.hud-brand-sub {
    font-family: var(--font-orbitron);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--neon);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.hud-brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 3px;
}
.hud-brand-meta .neon { color: rgba(0, 242, 255, 0.8); }
.hud-brand-meta .secure { color: #10b981; }
.hud-brand-meta .dot { color: #334155; }

.hud-clock-panel {
    display: none;
    align-items: center;
    gap: 24px;
    background: rgba(15, 23, 28, 0.8);
    border: 1px solid var(--hud-border);
    border-radius: 2px;
    padding: 10px 22px;
}
@media (min-width: 1150px) {
    .hud-clock-panel { display: flex; }
}
.hud-clock-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hud-clock-value {
    font-size: 0.75rem;
    color: var(--neon);
    font-weight: 500;
    margin-top: 2px;
}
.hud-clock-value.orange { color: var(--tactical-orange); font-weight: 700; }
.hud-clock-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 242, 255, 0.15);
}

.hud-role-area {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hud-role-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #1e293b;
    background: rgba(2, 6, 9, 0.9);
    padding: 7px 12px;
    border-radius: 4px;
    color: var(--neon);
}
.hud-role-card.is-commander { color: var(--tactical-orange); }
.hud-role-label {
    font-size: 0.55rem;
    color: #64748b;
    line-height: 1;
}
.hud-role-value {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

.hud-ticker {
    margin-top: 12px;
    position: relative;
    height: 26px;
    background: #020506;
    border: 1px solid #0f172a;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hud-ticker-tag {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(0, 242, 255, 0.15);
    border-right: 1px solid rgba(0, 242, 255, 0.3);
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 0.55rem;
    color: var(--neon);
    letter-spacing: 1px;
    z-index: 2;
}
.hud-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
@media (max-width: 640px) {
    .hud-brand-meta { flex-wrap: wrap; }
    .hud-header-row { justify-content: center; text-align: center; }
    .hud-brand { flex-direction: column; text-align: center; }
}

.info-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glass-card {
    background: rgba(2, 5, 6, 0.92);
    border: 1px solid var(--hud-border);
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 242, 255, 0.05);
}

.tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-orbitron);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.15);
    letter-spacing: 2px;
}

.center-tag {
    justify-content: center;
    font-size: 0.9rem;
}

.btn {
    padding: 12px 30px;
    font-family: "Orbitron";
    font-weight: 900;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn.primary {
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 15px var(--neon);
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn:hover {
    transform: scale(1.05);
}

.full {
    width: 100%;
    margin-bottom: 10px;
}

.leaderboard table {
    width: 100%;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.leaderboard thead th {
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e293b;
}
.leaderboard thead th:not(:first-child) { text-align: right; }
.leaderboard table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lb-rank {
    font-weight: 700;
    font-size: 0.65rem;
    color: #64748b;
    margin-right: 8px;
}
.lb-rank.gold { color: #f59e0b; }
.lb-team-name {
    font-family: var(--font-orbitron);
    font-weight: 800;
    color: var(--neon);
    letter-spacing: 0.5px;
}
.lb-wins {
    text-align: right;
    font-weight: 700;
    color: #fff;
}
.lb-kills {
    text-align: right;
    color: #94a3b8;
}

/* Ticker text now lives inside the header (#hud-ticker); this animates it. */
.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: #94a3b8;
    animation: ticker 25s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ADMIN PANEL */
.admin-trigger {
    position: fixed;
    bottom: 40px;
    right: 20px;
    opacity: 0.2;
    cursor: pointer;
    z-index: 999;
    transition: 0.3s;
    font-size: 1.2rem;
}

.admin-trigger:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-box {
    width: 350px;
    border: 1px solid var(--neon);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.admin-box label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-box input,
.admin-box select,
.admin-box textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hud-border);
    color: white;
    padding: 10px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 5px;
}

.admin-box input:focus {
    border-color: var(--neon);
    outline: none;
}

.glow-btn {
    background: var(--neon);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: "Orbitron";
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.glow-btn:hover {
    box-shadow: 0 0 18px var(--neon);
}

.glow-btn-small {
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Orbitron";
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}
.glow-btn-small:hover { filter: brightness(1.2); }

.btn-close {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
}

.danger-btn {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 10px;
    font-family: "Orbitron";
    font-size: 0.6rem;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.danger-btn:hover {
    background: var(--red) !important;
    color: #fff !important;
}

/* One consistent look for every admin panel block: a labeled card that's
   either neutral, neon-toned, or red-toned - no more one-off inline styles
   per section. */
.admin-scroll-area {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}
.admin-scroll-area::-webkit-scrollbar {
    width: 3px;
}
.admin-scroll-area::-webkit-scrollbar-thumb {
    background: var(--neon);
}

.admin-section {
    margin-top: 18px;
    padding: 15px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hud-border);
}
.admin-section:first-child { margin-top: 0; }
.admin-section-title {
    font-family: "Orbitron";
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #888;
}
.admin-section.tone-neon {
    border-color: rgba(0, 242, 255, 0.25);
    background: rgba(0, 242, 255, 0.04);
}
.admin-section.tone-neon .admin-section-title { color: var(--neon); }
.admin-section.tone-red {
    border-color: rgba(255, 0, 80, 0.25);
    background: rgba(255, 0, 80, 0.05);
}
.admin-section.tone-red .admin-section-title { color: var(--red); }

.admin-row {
    display: flex;
    gap: 10px;
}
.admin-row > div { flex: 1; }

.admin-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem !important;
    color: var(--red) !important;
    text-transform: none !important;
    margin-top: 12px !important;
}

.outline-red { background: transparent; border: 1px solid var(--red); color: var(--red); }
.fill-neon { background: var(--neon); border: none; color: #000; }
.fill-red { background: var(--red); border: none; color: #fff; }

/* Admin-only controls (leaderboard delete, etc.) - hidden unless the
   founder's UID is confirmed by scrim-logic.js, which adds this class
   to <body> only for that one account. */
.admin-only-btn {
    display: none;
}

body.is-admin .admin-only-btn {
    display: inline-block;
}

@media (max-width: 1200px) {
    .info-grid-2x2 {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 15px;
    }
    .info-grid-2x2 {
        grid-template-columns: 1fr;
    }
    .glass-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    .leaderboard table td {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
    .admin-box {
        width: 90%;
        margin: 10px;
    }
    .hud-brand-frx { font-size: 1.1rem; }
    .hud-brand-sub { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 10px;
    }
}

/* ==========================================================================
   TOURNAMENT PLATFORM ADDITIONS
   Registration grid, bracket, world map radar, register modal - reuses the
   existing --neon/--red tokens and .glass-card/.tag/.btn/.badge language
   instead of introducing a new design system.
   ========================================================================== */

.hud-corner-box {
    position: relative;
}
.hud-corner-box::before,
.hud-corner-box::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--neon);
    border-style: solid;
    pointer-events: none;
}
.hud-corner-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-corner-box::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* SF = red, BR = orange - applied to whichever view is currently showing,
   so the color-coding from the mode badge carries through the whole panel. */
.theme-sf { border-color: rgba(255, 49, 49, 0.2) !important; }
.theme-sf:hover { border-color: rgba(255, 49, 49, 0.5) !important; }
.theme-sf .tag { color: var(--red) !important; border-bottom-color: rgba(255, 49, 49, 0.15) !important; }
.theme-sf.hud-corner-box::before,
.theme-sf.hud-corner-box::after { border-color: var(--red) !important; }

.theme-br { border-color: rgba(255, 107, 0, 0.2) !important; }
.theme-br:hover { border-color: rgba(255, 107, 0, 0.5) !important; }
.theme-br .tag { color: var(--tactical-orange) !important; border-bottom-color: rgba(255, 107, 0, 0.15) !important; }
.theme-br.hud-corner-box::before,
.theme-br.hud-corner-box::after { border-color: var(--tactical-orange) !important; }
.theme-br .lb-team-name { color: var(--tactical-orange) !important; }

.section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 15px;
}
.section-divider .tag { margin: 0; }
.section-divider .line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* --- REGISTRATION GRID --- */
.reg-grid-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon);
}

.slot-mini-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #999;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: 0.2s;
}
.slot-mini-btn:hover { border-color: var(--neon); color: var(--neon); }
.slot-mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.slot-mini-btn.active { background: var(--neon); color: #000; border-color: var(--neon); }


/* --- TOURNAMENT BRACKET --- */
.bracket-scroll {
    overflow-x: auto;
    padding: 20px 5px;
}

.bracket-columns {
    display: flex;
    gap: 50px;
    min-width: 680px;
    align-items: center;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bracket-column.sf { justify-content: space-around; height: 100%; }
.bracket-column.final { justify-content: center; }

.bracket-node {
    background: #020506;
    border: 1px solid var(--hud-border);
    border-radius: 3px;
    padding: 10px;
    width: 190px;
    font-size: 0.7rem;
}
.bracket-node.is-live {
    border-color: var(--red);
    box-shadow: 0 0 12px rgba(255, 49, 49, 0.2);
}
.bracket-node.has-winner {
    border-color: rgba(0, 255, 136, 0.4);
}

.bracket-node-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.bracket-node-header .live-tag { color: var(--red); font-weight: 900; }
.bracket-node-header .winner-tag { color: #00ff88; font-weight: 900; }

.bracket-team-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
    border-radius: 3px;
    margin-bottom: 2px;
    color: #ccc;
}
.bracket-team-row.winner { background: rgba(0, 255, 136, 0.08); color: #00ff88; }
.bracket-team-row .team-name { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.bracket-team-row .team-score { font-family: 'Orbitron', sans-serif; font-weight: 900; }

.champion-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.champion-box .label { font-size: 0.55rem; color: #ffc107; text-transform: uppercase; letter-spacing: 1px; display: block; }
.champion-box .name { font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff; font-size: 0.75rem; }

/* --- WORLD MAP MONITOR --- */
.map-monitor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 900px) {
    .map-monitor-grid { grid-template-columns: 2fr 1fr; }
}

#scrim-region-map {
    width: 100%;
    aspect-ratio: 16 / 8;
    background: rgba(2, 5, 6, 0.7);
    border-radius: 3px;
    border: 1px solid var(--hud-border);
    /* Tells the browser vertical swipes over the map are page scrolls, not
       map gestures - the standard fix for an embedded map "trapping" scroll
       on mobile (same technique Google Maps embeds use). */
    touch-action: pan-y;
}
@media (max-width: 600px) {
    #scrim-region-map { aspect-ratio: 4 / 3; }
    .region-pill { font-size: 0.6rem; padding: 6px 12px; }
    .region-stat-row { font-size: 0.75rem; }
}

.region-stat-panel {
    background: rgba(2, 5, 6, 0.7);
    border: 1px solid var(--hud-border);
    border-radius: 3px;
    padding: 14px;
}

.region-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.region-pill {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid var(--hud-border);
    color: #94a3b8;
    cursor: pointer;
    background: transparent;
    transition: 0.2s;
}
.region-pill.active {
    border-color: var(--neon);
    color: var(--neon);
    background: rgba(0, 242, 255, 0.08);
}

.region-stat-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.region-stat-row b { color: var(--neon); }

/* --- INLINE REGISTRATION FORM --- */
.reg-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.reg-field-block { flex: 1; }
.reg-field-block.reg-field-device { flex: 0 0 110px; }
.reg-field-block label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.reg-field-block input,
.reg-field-block select {
    width: 100%;
    padding: 9px 10px;
    background: #000;
    border: 1px solid var(--hud-border);
    color: #fff;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
}
.reg-field-block input:focus,
.reg-field-block select:focus { outline: none; border-color: var(--neon); }

@media (max-width: 480px) {
    .reg-field-row { flex-wrap: wrap; }
    .reg-field-block.reg-field-device { flex: 1 1 100%; }
}

.reg-form-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.reg-form-overlay.active { display: flex; }
.reg-form-box {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}
.reg-form-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.reg-form-close:hover { color: var(--red); }

.reg-form-error {
    background: rgba(255, 49, 49, 0.1);
    border: 1px solid rgba(255, 49, 49, 0.4);
    color: var(--red);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.65rem;
    margin-bottom: 12px;
    display: none;
}
.reg-form-error.active { display: block; }

.reg-field-block input[type="file"] {
    padding: 6px;
    font-size: 0.65rem;
    color: #94a3b8;
}

/* ==========================================================================
   SCRIM SYSTEM: mode badge, schedule bar, idle team list, footer, admin rows
   ========================================================================== */
.mode-badge {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid;
    text-transform: uppercase;
    margin-left: 4px;
}
.mode-badge.mode-sf { color: var(--red); border-color: rgba(255, 49, 49, 0.4); background: rgba(255, 49, 49, 0.08); }
.mode-badge.mode-br { color: var(--tactical-orange); border-color: rgba(255, 107, 0, 0.4); background: rgba(255, 107, 0, 0.08); }
.mode-badge.mode-off { color: #64748b; border-color: #334155; background: rgba(255, 255, 255, 0.03); }

.hud-clock-value.mode-sf-text { color: var(--red); }
.hud-clock-value.mode-br-text { color: var(--tactical-orange); }

.schedule-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sched-empty {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
}
.sched-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid var(--hud-border);
    background: rgba(2, 5, 6, 0.6);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}
.sched-pill.active { border-color: var(--neon); box-shadow: 0 0 12px rgba(0, 242, 255, 0.15); }
.sched-pill .sched-day { color: #fff; font-weight: 700; }
.sched-pill .sched-time { color: #94a3b8; }
.sched-pill .sched-tag {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.sched-pill.sf .sched-tag { color: var(--red); background: rgba(255, 49, 49, 0.1); }
.sched-pill.br .sched-tag { color: var(--tactical-orange); background: rgba(255, 107, 0, 0.1); }
.sched-pill .sched-label { color: #64748b; }

.bracket-round-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 4px;
}

.idle-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.idle-team-slot { color: #64748b; }
.idle-team-name { color: var(--neon); font-family: var(--font-orbitron); font-weight: 700; flex: 1; padding: 0 10px; }
.idle-team-mode { color: #94a3b8; font-size: 0.6rem; text-transform: uppercase; }

.scrim-footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--hud-border);
}
.scrim-footer-inner {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #64748b;
}
.scrim-footer-inner a { color: var(--neon); text-decoration: none; }
.scrim-footer-inner a:hover { text-decoration: underline; }
.scrim-footer-inner .dot { margin: 0 10px; }

.admin-sched-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #94a3b8;
}

.br-admin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.br-admin-team {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.br-admin-placement, .br-admin-kills {
    flex: 0 0 70px;
    padding: 6px 8px;
    background: #000;
    border: 1px solid var(--hud-border);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.debug-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hud-border);
    border-radius: 3px;
    padding: 8px 12px;
}
.debug-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.6rem;
}
.debug-row:last-child { border-bottom: none; }
.debug-row span { color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.debug-row b { color: var(--neon); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }