/* Firefight.gg / HaloTracker: Reach - Authentic 2011/2012 Dark Theme */

:root {
    --bg-dark: #0f1013;
    --bg-panel: #16181d;
    --bg-panel-alt: #1c1f26;
    --bg-border: #2a2e38;
    --accent-red: #d32f2f;
    --accent-red-hover: #f44336;
    --accent-amber: #ffb300;
    --accent-cyan: #38bdf8;
    --text-white: #f0f2f5;
    --text-gray: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-blue: #2196f3;
    --accent-green: #4caf50;
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background: var(--bg-dark) url('../assets/templates/pack2.png') repeat-x top center;
    background-color: #0c0d10;
    color: var(--text-white);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
}

:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.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;
}

a {
    color: var(--accent-red-hover);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Top Bar */
.site-header {
    background: rgba(15, 16, 20, 0.96);
    border-bottom: 2px solid #262933;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.top-notice {
    background: #141926;
    border-bottom: 1px solid #28344d;
    padding: 6px 0;
    font-size: 11.5px;
    color: #cbd5e1;
}

.top-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-notice a,
.top-notice-forum-link {
    color: #7dd3fc;
    font-weight: 700;
    white-space: nowrap;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.brand-header-logo {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.logo-title span {
    color: var(--accent-red);
}

.logo-badge {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    background: #1b202c;
    border: 1px solid #323a4e;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Navigation Tabs */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.18s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
    color: #fff;
    background: var(--accent-red);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.nav-btn-forums {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.38);
}

.nav-btn-forums:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
}

/* Quick Search in Header */
.header-search {
    display: flex;
    align-items: center;
    background: #1f222a;
    border: 1px solid #323744;
    border-radius: 4px;
    padding: 4px 8px;
    width: 205px;
    flex-shrink: 0;
}

.header-search:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.header-search input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12.5px;
    width: 100%;
    min-height: 28px;
}

.header-search button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    min-width: 30px;
    min-height: 28px;
}

/* Main View Wrapper */
.main-content {
    padding: 20px 0 40px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service Record Header Banner */
.service-record-hero {
    background: linear-gradient(180deg, #181b22 0%, #121419 100%);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.service-record-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(211, 47, 47, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #232731;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.player-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.emblem-box {
    width: 64px;
    height: 64px;
    border: 2px solid #363b48;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-names h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.player-names h1 .gt {
    color: var(--accent-red);
}

.player-names h1 .service-tag {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    background: #232732;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.player-meta-badges {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.meta-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #20242e;
    color: #a0aec0;
    border: 1px solid #2d3341;
}

.meta-pill.highlight {
    background: #2a1515;
    color: #ff8585;
    border-color: #551e1e;
}

/* Site Score Card */
.site-rank-card {
    text-align: right;
    background: #1a1c24;
    border: 1px solid #292d3a;
    padding: 10px 16px;
    border-radius: 4px;
}

.site-rank-card .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-rank-card .val {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-amber);
}

.site-rank-card .subval {
    font-size: 11px;
    color: var(--text-gray);
}

/* Hero Columns: Spartan Render + Quick Stats + Playlists */
.hero-body {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* Spartan Model Container */
.spartan-viewer-box {
    background: #0f1115;
    border: 1px solid #222630;
    border-radius: 4px;
    height: 340px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spartan-viewer-box img.spartan-img {
    height: 310px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.spartan-viewer-box .spartan-label {
    position: absolute;
    bottom: 6px;
    font-size: 11px;
    color: var(--text-muted);
    z-index: 3;
}

/* Rank Progression & Gauges */
.stats-center-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rank-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #181b23;
    border: 1px solid #282d3b;
    padding: 14px 18px;
    border-radius: 4px;
}

.rank-insignia {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.rank-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.rank-text .cr-info {
    font-size: 12px;
    color: var(--accent-amber);
    margin-top: 2px;
}

.cr-bar-container {
    margin-top: 6px;
    background: #101216;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #262b36;
}

.cr-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffb300);
    width: 100%;
}

/* Badges row: BPR, Division, Armory */
.badges-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-badge-card {
    background: #171920;
    border: 1px solid #252934;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}

.metric-badge-card .title {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-badge-card .score {
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0;
}

.metric-badge-card .score.green { color: var(--accent-green); }
.metric-badge-card .score.purple { color: #ba68c8; }
.metric-badge-card .score.amber { color: var(--accent-amber); }

.metric-badge-card .subtitle {
    font-size: 11px;
    color: var(--text-gray);
}

/* Overview Stat Grid */
.stat-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-chip {
    background: #14161d;
    border: 1px solid #21252f;
    padding: 8px 10px;
    border-radius: 3px;
}

.stat-chip .chip-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-chip .chip-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.stat-chip .chip-val.red { color: var(--accent-red); }

/* Top Playlists Column */
.top-playlists-card {
    background: #15171e;
    border: 1px solid #252935;
    border-radius: 4px;
    padding: 14px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #222632;
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.card-title span.sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: normal;
}

.playlist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1c202a;
    font-size: 12px;
}

.playlist-row:last-child {
    border-bottom: none;
}

.playlist-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.playlist-name {
    font-weight: 600;
    color: #e2e8f0;
}

.playlist-rank-pos {
    color: var(--accent-green);
    font-style: italic;
    font-size: 11px;
}

.playlist-stats-mini {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-gray);
}

.playlist-stats-mini .kd-num {
    color: #fff;
    font-weight: bold;
}

/* Secondary Tab Panels */
.tab-panel-container {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    overflow: hidden;
}

.sub-nav-bar {
    display: flex;
    background: #111317;
    border-bottom: 1px solid var(--bg-border);
    padding: 0 10px;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sub-tab-btn:hover {
    color: #fff;
}

.sub-tab-btn.active {
    color: var(--accent-red-hover);
    border-bottom-color: var(--accent-red);
    background: rgba(211, 47, 47, 0.05);
}

.tab-pane {
    display: none;
    padding: 24px;
}

.tab-pane.active {
    display: block;
}

/* Medals & Awards Grid */
.medals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.medal-card {
    background: #171920;
    border: 1px solid #252833;
    border-radius: 4px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.medal-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-red);
    background: #1d2029;
}

.medal-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.medal-card .medal-name {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medal-card .medal-count {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-amber);
    margin-top: 2px;
}

/* Data Tables: Weapons, Vehicles, Leaderboards */
.htr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.htr-table th {
    background: #14161c;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #2a2e39;
}

.htr-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #20242e;
    color: #cbd5e1;
}

.htr-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.htr-table .numeric {
    text-align: right;
}

.htr-table .highlight-col {
    color: #fff;
    font-weight: bold;
}

/* Leaderboard Page Specifics */
.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #16181f;
    border: 1px solid var(--bg-border);
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.dropdown-select {
    background: #1f232b;
    border: 1px solid #363c4a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.lb-search-input {
    background: #1f232b;
    border: 1px solid #363c4a;
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    width: 260px;
}

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.page-btn {
    background: #1a1c24;
    border: 1px solid #2b303d;
    color: #a0aec0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Armory Catalog View */
.armory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.armory-card {
    background: #171920;
    border: 1px solid #262935;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.armory-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.armory-card .slot-tag {
    font-size: 10px;
    color: var(--accent-red-hover);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.armory-pricing {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #232631;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
}

.armory-pricing .cost {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-amber);
}

.armory-pricing .rank-req {
    color: var(--text-muted);
}

/* Floating Tooltip */
.htr-tooltip {
    position: fixed;
    background: rgba(18, 20, 26, 0.96);
    border: 1px solid #ff4444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    padding: 10px 14px;
    border-radius: 4px;
    max-width: 280px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    font-size: 12px;
}

.htr-tooltip .tip-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.htr-tooltip .tip-desc {
    color: #cbd5e1;
    line-height: 1.4;
}

.htr-tooltip .tip-meta {
    margin-top: 6px;
    font-size: 10px;
    color: var(--accent-amber);
}

/* Footer */
.site-footer {
    border-top: 1px solid #1e222a;
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   ENHANCED REACH FEATURES: MODES, PGCR, ARMORY BUILDER & TELEMETRY
   ========================================================================== */

/* Mode Switcher Pills */
.mode-selector-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #14161c;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #232732;
    overflow-x: auto;
}

.mode-pill {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mode-pill:hover {
    color: #fff;
    background: #20242e;
}

.mode-pill.active {
    background: #2a1515;
    color: #ff8585;
    border-color: #632020;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

/* Detailed Mode Stat Grid */
.mode-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.mode-stat-card {
    background: #16181f;
    border: 1px solid #242834;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
}

.mode-stat-card .val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.mode-stat-card .val.green { color: var(--accent-green); }
.mode-stat-card .val.amber { color: var(--accent-amber); }
.mode-stat-card .val.red { color: var(--accent-red-hover); }

.mode-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Filter Pills (Medals, Armory, Weapons) */
.filter-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.filter-pill {
    background: #191c24;
    border: 1px solid #282d3b;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    color: #fff;
    background: #232835;
}

.filter-pill.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

/* Match History Card */
.match-history-table td {
    vertical-align: middle;
}

.result-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.result-badge.victory {
    background: #15331e;
    color: #4ade80;
    border: 1px solid #22543d;
}

.result-badge.defeat {
    background: #331515;
    color: #f87171;
    border: 1px solid #542222;
}

.btn-view-pgcr {
    background: #202531;
    border: 1px solid #363e52;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-view-pgcr:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

/* Post-Game Carnage Report (PGCR) Modal */
.pgcr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.pgcr-modal-overlay.active {
    display: flex;
}

.pgcr-modal-content {
    background: #14161d;
    border: 2px solid #363d4f;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
    position: relative;
    padding: 24px;
}

.pgcr-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #242936;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
}

.pgcr-close-btn:hover {
    background: var(--accent-red);
}

.pgcr-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #272c3a;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.pgcr-hero h2 {
    font-size: 22px;
    color: #fff;
    font-weight: 800;
}

.pgcr-hero .meta {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

.pgcr-team-header {
    background: #1c202a;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
    display: flex;
    justify-content: space-between;
}

.pgcr-team-header.humans { background: #162a3f; color: #60a5fa; border-left: 4px solid #3b82f6; }
.pgcr-team-header.zombies { background: #351616; color: #f87171; border-left: 4px solid #ef4444; }
.pgcr-team-header.red { background: #3a1818; color: #f87171; border-left: 4px solid #dc2626; }
.pgcr-team-header.blue { background: #18283a; color: #60a5fa; border-left: 4px solid #2563eb; }

/* Spartan Loadout Builder */
.armory-builder-box {
    background: #161820;
    border: 1px solid #272b38;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #272b38;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.builder-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.builder-slot {
    background: #1b1e27;
    border: 1px solid #2a2f3d;
    border-radius: 5px;
    padding: 10px;
}

.builder-slot label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.builder-slot select {
    width: 100%;
    background: #14161d;
    border: 1px solid #363d4f;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.color-swatches-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #4a5568;
    cursor: pointer;
    transition: transform 0.1s;
}

.color-swatch:hover, .color-swatch.active {
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.budget-calculator-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c202a;
    border: 1px solid #2f3647;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 18px;
}

.budget-stats {
    display: flex;
    gap: 24px;
}

.budget-item .val {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-amber);
}

.budget-item .label {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-equip-loadout {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-equip-loadout:hover {
    background: var(--accent-red-hover);
}

/* Decomp Telemetry Console */
.telemetry-hero {
    background: linear-gradient(135deg, #131722 0%, #0d0f14 100%);
    border: 1px solid #232c3f;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.telemetry-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.telemetry-json-viewer {
    background: #0d0e12;
    border: 1px solid #222633;
    border-radius: 6px;
    padding: 16px;
    color: #7dd3fc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.btn-telemetry-action {
    background: #1e2433;
    border: 1px solid #384259;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-telemetry-action:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}


/* ==========================================================================
   MEDAL CHEST & COMPREHENSIVE GAMEMODE BREAKDOWN STYLING
   ========================================================================== */
.medals-chest-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: #11141c;
    border: 1px solid #232838;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.medals-stat-box {
    display: flex;
    flex-direction: column;
}

.medals-stat-box .num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Eurostile', 'Conduit', 'Segoe UI', Arial, sans-serif;
}

.medals-stat-box .num.amber { color: #f59e0b; }
.medals-stat-box .num.green { color: #10b981; }
.medals-stat-box .num.cyan { color: #38bdf8; }
.medals-stat-box .num.gold { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }

.medals-stat-box .lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.medals-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.htr-select {
    background: #161a24;
    border: 1px solid #2b3245;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.htr-select:focus {
    border-color: #38bdf8;
}

.medal-cat-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    margin-top: 4px;
}

.medal-card.unearned {
    opacity: 0.35;
    filter: grayscale(80%);
}

.medal-card.unearned:hover {
    opacity: 0.8;
    filter: none;
}

/* Playlist Gametype Tags */
.pl-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-infection { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.tag-slayer { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.tag-swat { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-snipers { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.4); }
.tag-multiteam { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-grifball { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
.tag-classic { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
.tag-btb { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.4); }
.tag-objective { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.4); }
.tag-mlg { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Win/Loss Progress Bar */
.win-loss-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 90px;
}

.win-loss-bar {
    width: 100%;
    height: 5px;
    background: #ef4444;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.win-bar-fill {
    height: 100%;
    background: #10b981;
}

.win-loss-pct {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.spread-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.spread-badge.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.spread-badge.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Reach UI Weapon & Vehicle Mastery Cards */
.mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mastery-card {
    background: #11141a;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mastery-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: #151922;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mastery-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mastery-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.mastery-card-img-wrap {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.mastery-card-img-wrap img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.25));
}

.mastery-card-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.mastery-stat-col .val {
    font-size: 12px;
    font-weight: 800;
}

.mastery-stat-col .lbl {
    font-size: 9px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 700;
}

.infantry-only-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px dashed rgba(100, 116, 139, 0.4);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    margin: 12px 0;
}

.infantry-only-card .icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #38bdf8;
}

.playlist-summary-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 14px;
}

.pl-summary-box {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.pl-summary-box .num {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.pl-summary-box .lbl {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.pl-subpane {
    display: none;
}

.pl-subpane.active {
    display: block;
}

/* ==========================================================================
   CUSTOM GAMES BROWSER (CGB)
   ========================================================================== */
.cgb-lobbies-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cgb-card {
    background: #141720;
    border: 1px solid #232838;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.cgb-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cgb-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cgb-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cgb-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cgb-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cgb-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.cgb-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.cgb-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cgb-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 130px;
}

.cgb-players-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.cgb-bar-track {
    width: 100%;
    height: 6px;
    background: #1e2433;
    border-radius: 3px;
    overflow: hidden;
}

.cgb-bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 3px;
}

.cgb-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cgb-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cgb-status-badge.in_lobby {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cgb-status-badge.in_game {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.cgb-btn-join {
    background: #0284c7;
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.cgb-btn-join:hover {
    background: #0369a1;
    transform: scale(1.03);
}

.cgb-btn-map {
    background: #1e2433;
    border: 1px solid #363e52;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.cgb-btn-map:hover {
    color: #fff;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   FIREFIGHT.GG BRANDING, LIVE GLOBAL EVENTS & XBOX 360 GAMERPIC ARCHIVE
   ========================================================================== */
:root {
    --accent-cyan: #38bdf8;
    --xbox-green: #6db33f;
    --xbox-green-bright: #8ad158;
}

.site-header {
    background: #0b1017;
    border-bottom: 2px solid #1e293b;
}

.brand-header-logo {
    height: 48px;
    display: block;
    background: #0b1017;
    padding: 3px 8px;
    border-radius: 6px;
}

.footer-brand-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 44px;
    display: block;
    background: #0b1017;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #1e293b;
}

.live-motd-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-left: 4px solid #38bdf8;
    border-radius: 6px;
}

.live-motd-bar .motd-tag {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #bae6fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-motd-bar .motd-text {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
}

.live-events-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.event-banner-pill {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 12px;
}

.event-banner-pill .ev-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 12px;
}

.event-banner-pill .ev-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2px;
}

.event-banner-pill .ev-chip {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.event-banner-pill.blue-flame {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(30, 58, 138, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.65);
}
.event-banner-pill.blue-flame .ev-title { color: #7dd3fc; }
.event-banner-pill.blue-flame .ev-chip { background: rgba(56, 189, 248, 0.25); border: 1px solid #38bdf8; color: #e0f2fe; }

.event-banner-pill.red-flame {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(153, 27, 27, 0.25));
    border: 1px solid rgba(248, 113, 113, 0.65);
}
.event-banner-pill.red-flame .ev-title { color: #fca5a5; }
.event-banner-pill.red-flame .ev-chip { background: rgba(239, 68, 68, 0.25); border: 1px solid #f87171; color: #fee2e2; }

.event-banner-pill.armor-fx {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.22), rgba(88, 28, 135, 0.25));
    border: 1px solid rgba(192, 132, 252, 0.65);
}
.event-banner-pill.armor-fx .ev-title { color: #d8b4fe; }
.event-banner-pill.armor-fx .ev-chip { background: rgba(168, 85, 247, 0.25); border: 1px solid #c084fc; color: #f3e8ff; }

.event-banner-pill.nameplate-ev {
    background: linear-gradient(90deg, rgba(109, 179, 63, 0.22), rgba(20, 83, 45, 0.25));
    border: 1px solid rgba(138, 209, 88, 0.65);
}
.event-banner-pill.nameplate-ev .ev-title { color: #bef264; }
.event-banner-pill.nameplate-ev .ev-chip { background: rgba(109, 179, 63, 0.28); border: 1px solid #8ad158; color: #ecfccb; }

/* Xbox 360 Gamerpic Box & Picker */
.gamerpic-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gamerpic-box {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    border: 2px solid #9ca3af;
    box-shadow: 0 0 0 1px #111827, 0 4px 12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    background: #111827;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gamerpic-box:hover {
    border-color: var(--xbox-green-bright);
    transform: translateY(-1px);
}

.gamerpic-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.btn-change-gamerpic {
    background: linear-gradient(180deg, #2b3525 0%, #1b2418 100%);
    border: 1px solid var(--xbox-green);
    color: #d9f99d;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-change-gamerpic:hover {
    background: var(--xbox-green);
    color: #0b1017;
}

.lb-gamerpic-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lb-gamerpic {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #64748b;
    background: #0f172a;
    object-fit: cover;
    flex-shrink: 0;
}

.gamerpic-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, #1d242c 0%, #151a21 100%);
    border: 1px solid #334155;
    border-left: 4px solid var(--xbox-green);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.gamerpic-preview-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gamerpic-preview-left img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #0b1017;
}

.gamerpic-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding: 6px 4px;
}

.gamerpic-tile {
    background: #181d26;
    border: 1px solid #2b3344;
    border-radius: 6px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: center;
}

.gamerpic-tile:hover {
    border-color: #94a3b8;
    background: #202734;
    transform: translateY(-1px);
}

.gamerpic-tile.selected {
    border-color: var(--xbox-green-bright);
    background: linear-gradient(180deg, rgba(109, 179, 63, 0.26) 0%, rgba(30, 46, 24, 0.45) 100%);
    box-shadow: 0 0 0 1px var(--xbox-green);
}

.gamerpic-tile img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #0b1017;
    object-fit: cover;
}

.gamerpic-tile .gp-label {
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gamerpic-tile .gp-cat {
    font-size: 9px;
    color: #94a3b8;
}

.btn-xbox-save {
    background: linear-gradient(180deg, #7bc449 0%, #56962d 100%);
    border: 1px solid #a3e635;
    color: #091106;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-xbox-save:hover {
    filter: brightness(1.08);
}

/* ==========================================================================
   HOMEPAGE REORGANIZATION & DEDICATED cR LEADERBOARD STYLING
   ========================================================================== */

/* Home Hero Banner */
.home-hero-banner {
    background: linear-gradient(135deg, rgba(22, 24, 31, 0.95) 0%, rgba(15, 23, 42, 0.90) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.home-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #f59e0b, #ef4444);
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pill-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.pill-dot.amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.pill-dot.cyan  { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.pill-dot.red   { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.hero-btn.primary {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    color: #fff;
}
.hero-btn.primary:hover {
    background: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    text-decoration: none;
}

.hero-btn.secondary {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    border: 1px solid #fbbf24;
    color: #fff;
}
.hero-btn.secondary:hover {
    background: #d97706;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    text-decoration: none;
}

.hero-btn.accent {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    border: 1px solid #34d399;
    color: #fff;
}
.hero-btn.accent:hover {
    background: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    text-decoration: none;
}

.hero-btn.outline {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #bae6fd;
}
.hero-btn.outline:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    text-decoration: none;
}

.hero-btn.gold {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 60%, #92400e 100%);
    border: 1px solid #fde68a;
    color: #fff;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
    font-weight: 800;
}
.hero-btn.gold:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.7);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Home Section Panels */
.home-section-panel {
    background: #16181f;
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.section-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-cyan);
    margin-bottom: 2px;
}

.section-title-wrap h2 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.section-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.section-badge.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.section-badge.info {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.section-intro {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.download-card {
    background: #1a1d26;
    border: 1px solid #282d3c;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
}

.download-card.highlight {
    border-color: rgba(245, 158, 11, 0.6);
    background: linear-gradient(180deg, #1d212d 0%, #171a22 100%);
}

.card-icon-wrap {
    font-size: 32px;
    margin-bottom: 10px;
}

.card-os {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.card-version {
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 14px;
}

.card-specs {
    list-style: none;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.card-specs li {
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
}

.card-specs li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: bold;
}

.btn-download {
    display: block;
    text-align: center;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-download.primary {
    background: #0284c7;
    color: #fff;
    border: 1px solid #38bdf8;
}
.btn-download.primary:hover {
    background: #0369a1;
    text-decoration: none;
}

.btn-download.secondary {
    background: #252a36;
    color: #e2e8f0;
    border: 1px solid #3d4558;
}
.btn-download.secondary:hover {
    background: #333a4a;
    color: #fff;
    text-decoration: none;
}

.btn-download.accent {
    background: #d97706;
    color: #fff;
    border: 1px solid #fbbf24;
}
.btn-download.accent:hover {
    background: #b45309;
    text-decoration: none;
}

/* System Requirements & Instructions */
.sysreq-box, .install-steps-box {
    background: #14161d;
    border: 1px solid #252a37;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
}

.sysreq-title {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sysreq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .sysreq-grid {
        grid-template-columns: 1fr;
    }
}

.sysreq-col-header {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 8px;
    border-bottom: 1px solid #222734;
    padding-bottom: 4px;
}

.sysreq-col ul {
    list-style: none;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.steps-list {
    padding-left: 20px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.7;
}

.steps-list code {
    background: #1e2330;
    color: #fbbf24;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.legal-notice-box {
    background: rgba(30, 20, 20, 0.7);
    border: 1px solid #5a2020;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.notice-icon {
    font-size: 22px;
    color: #f87171;
}

.notice-content {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Forum Feed Cards */
.forum-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.forum-card {
    background: #1a1d26;
    border: 1px solid #272d3c;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.forum-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.forum-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forum-cat-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
}

.tag-announcements { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.tag-matchmaking   { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.tag-custom-games  { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.tag-lfg           { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-support       { background: rgba(16, 185, 129, 0.2); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-general       { background: rgba(148, 163, 184, 0.2); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.4); }

.forum-time {
    font-size: 11px;
    color: var(--text-muted);
}

.forum-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.forum-card-title a {
    color: #f1f5f9;
}

.forum-card-title a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.forum-card-snippet {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.forum-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #232734;
    padding-top: 10px;
}

.forum-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-author-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #334155;
}

.forum-author-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.forum-author-rank {
    display: block;
    font-size: 10px;
    color: var(--accent-cyan);
}

.forum-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.forum-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #14161e;
    border: 1px solid #242937;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 12px;
    color: #cbd5e1;
}

.btn-forum-cta {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-forum-cta:hover {
    background: #0284c7;
    color: #fff;
    text-decoration: none;
}

/* Spartan Signup Form */
.signup-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

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

.signup-card {
    background: #191c25;
    border: 1px solid #272c3b;
    border-radius: 6px;
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group label .req {
    color: #ef4444;
}

.htr-input {
    width: 100%;
    background: #12141a;
    border: 1px solid #333a4c;
    color: #fff;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 4px;
    transition: border-color 0.15s ease;
}

.htr-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.input-with-status {
    position: relative;
    display: flex;
    align-items: center;
}

.input-status-indicator {
    position: absolute;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
}

.input-status-indicator.available { color: #10b981; }
.input-status-indicator.taken     { color: #ef4444; }
.input-status-indicator.checking  { color: #f59e0b; }

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

.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.signup-alert-box {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.signup-alert-box.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #a7f3d0;
}

.signup-alert-box.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fecaca;
}

.btn-submit-signup {
    width: 100%;
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 11px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.btn-submit-signup:hover {
    background: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-submit-signup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-terms-note {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.signup-perks {
    background: #14171f;
    border: 1px solid #242938;
    border-radius: 6px;
    padding: 20px;
}

.signup-perks h3 {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perks-list {
    list-style: none;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.perks-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.perk-bullet {
    color: #fbbf24;
}

/* Platform Pillars */
.platform-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pillar-card {
    background: #191c25;
    border: 1px solid #272d3c;
    border-radius: 6px;
    padding: 18px;
}

.pillar-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.pillar-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.pillar-desc {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

.pillar-desc code {
    background: #101217;
    color: #38bdf8;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Dedicated cR Leaderboard View Styling */
.leaderboard-hero-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #171b25 0%, #11141c 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 16px;
}

.cr-stat-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 8px 14px;
    border-radius: 6px;
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 12px;
}

.rank-medal.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    border: 2px solid #fde68a;
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.rank-medal.silver {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    border: 2px solid #f1f5f9;
    color: #fff;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
}

.rank-medal.bronze {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    border: 2px solid #fed7aa;
    color: #fff;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
}

.rank-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.spartan-profile-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cr-gamerpic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #334155;
    background: #0f172a;
}

.spartan-names-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cr-gamertag-link {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
}
.cr-gamertag-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.service-tag-box {
    display: inline-block;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: #11141c;
    border: 1px solid #272d3c;
    padding: 2px 6px;
    border-radius: 3px;
}

.armor-comp-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.armor-comp-val {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
}

.cr-armor-bar {
    width: 100%;
    max-width: 110px;
    height: 6px;
    background: #12141a;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #232734;
}

.cr-armor-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 3px;
}

.military-rank-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cr-rank-icon-40 {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.military-rank-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.cr-balance-val {
    font-size: 14px;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 0.3px;
}

.cr-unit {
    font-size: 10px;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.8);
    text-transform: uppercase;
}

.flame-pill {
    font-size: 12px;
    padding: 1px 3px;
    border-radius: 3px;
}
.flame-pill.blue {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #38bdf8;
}
.flame-pill.red {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.np-pill {
    font-size: 10px;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #93c5fd;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ==========================================================================
   TOURNAMENT SHOWCASE: 2v2 & 4v4 CASH SERIES (BUNGIE 2010 AESTHETIC)
   ========================================================================== */

.tournament-showcase-panel {
    background: linear-gradient(180deg, #161822 0%, #12141c 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tournament-showcase-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #fbbf24, #f59e0b, #38bdf8, #d97706);
    background-size: 200% 100%;
    animation: tourneyGlowSweep 6s linear infinite;
}

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

.tournament-kicker {
    color: #fbbf24 !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.tournament-header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tournament-purse-badge {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%) !important;
    border: 1px solid #fbbf24 !important;
    color: #fde68a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.tournament-verified-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* Status Bar & Callout */
.tournament-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(20, 24, 34, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tournament-status-left {
    flex: 1;
    min-width: 280px;
}

.tournament-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.radar-ping {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: radarPulse 1.8s ease-in-out infinite;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.reg-status-title {
    font-size: 13px;
    font-weight: 800;
    color: #6ee7b7;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.tournament-intro-desc {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.tournament-status-right {
    min-width: 220px;
}

.tournament-quick-meta {
    background: rgba(13, 16, 24, 0.8);
    border: 1px solid #232a3b;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item {
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.meta-label {
    color: var(--text-muted);
}

.meta-val {
    font-weight: 700;
}

.meta-val.gold {
    color: #fbbf24;
}

.meta-val.green {
    color: #34d399;
}

.meta-val.cyan {
    color: #38bdf8;
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.tournament-card {
    background: #171a24;
    border: 1px solid #282f40;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tournament-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18), 0 0 12px rgba(245, 158, 11, 0.2);
}

.tourney-media-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #090a0f;
}

.tourney-card-artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    filter: brightness(0.92) contrast(1.08);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.tournament-card:hover .tourney-card-artwork {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.12);
}

.tourney-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 24, 0.2) 0%, rgba(15, 17, 24, 0.4) 50%, #171a24 100%);
    pointer-events: none;
}

.tourney-media-header {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.tourney-format-pill {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #7dd3fc;
    backdrop-filter: blur(4px);
}

.tourney-format-pill.gold {
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}

.tourney-purse-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(180, 83, 9, 0.85);
    border: 1px solid #fde68a;
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(4px);
}

.tourney-purse-pill.gold {
    background: rgba(217, 119, 6, 0.9);
}

/* Card Details */
.tourney-card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.tourney-title-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.tourney-heading {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.tourney-tagline {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.tourney-bounty-badge {
    text-align: right;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    padding: 6px 12px;
    flex-shrink: 0;
}

.tourney-bounty-badge.gold {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.55);
}

.bounty-sub {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bounty-amount {
    font-size: 18px;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 0.3px;
}

.bounty-amount.gold {
    color: #fde68a;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Specs Box */
.tourney-specs-box {
    background: rgba(14, 16, 23, 0.7);
    border: 1px solid #232838;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tourney-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 10px;
}

.spec-k {
    color: var(--text-gray);
    font-weight: 600;
}

.spec-v {
    font-weight: 700;
    color: #e2e8f0;
}

.spec-v.alert-red {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* Maps Panel */
.tourney-maps-panel {
    background: rgba(14, 16, 23, 0.7);
    border: 1px solid #232838;
    border-radius: 6px;
    padding: 10px 14px;
}

.panel-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tourney-map-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tourney-map-chip {
    font-size: 11.5px;
    font-weight: 700;
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

/* Payout Breakdown */
.tourney-payout-panel {
    background: rgba(18, 22, 32, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 12px 14px;
}

.payout-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payout-tier {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 8px 4px;
}

.payout-tier.gold-tier {
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.1);
}

.payout-tier.silver-tier {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

.payout-tier.bronze-tier {
    background: rgba(180, 83, 9, 0.08);
    border-color: rgba(180, 83, 9, 0.25);
}

.place-tag {
    font-size: 11px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.place-cash {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 0.2px;
}

.place-cash.gold {
    color: #fde68a;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.place-sub {
    font-size: 10px;
    color: var(--text-muted);
}

/* Card Actions */
.tourney-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-tourney-btn {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    border-radius: 4px;
    padding: 10px 14px;
    letter-spacing: 0.4px;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.btn-tourney-btn.primary {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    border: 1px solid #fbbf24;
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-tourney-btn.primary:hover {
    background: #d97706;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.btn-tourney-btn.primary.gold {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-color: #fde68a;
}

.btn-tourney-btn.primary.gold:hover {
    background: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.65);
    color: #fff;
    transform: translateY(-1px);
}

.btn-tourney-btn.secondary {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
}

.btn-tourney-btn.secondary:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.6);
}

/* Tournament Footer Bar */
.tournament-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 12px 18px;
    flex-wrap: wrap;
}

.footer-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-gray);
    flex: 1;
    min-width: 260px;
}

.footer-icon {
    font-size: 20px;
    color: #38bdf8;
    flex-shrink: 0;
}

.btn-tourney-forum {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #bae6fd;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-tourney-forum:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
    border-color: #38bdf8;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    .tournament-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .tournament-status-right {
        width: 100%;
    }
}

/* ==========================================================================
   CLASSIC HALOTRACKER LAYOUTS, MCC ENTITLEMENT, AUNTIE DOT, FOOTER & MOBILE
   ========================================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-action-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* MCC Entitlement & Steam OpenID Box */
.mcc-entitlement-box {
    background: linear-gradient(135deg, #131b29 0%, #111520 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-left: 4px solid #38bdf8;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.mcc-entitlement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn-steam-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #1b2838 0%, #171a21 100%);
    border: 1px solid #66c0f4;
    color: #c7d5e0 !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-steam-verify:hover {
    background: #2a475e;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(102, 192, 244, 0.4);
}

.steam-verify-banner {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mcc-entitlement-copy {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.55;
}

.mcc-entitlement-copy code {
    background: #0d121c;
    color: #7dd3fc;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Multi-Region Dedicated Relay Cards */
.relay-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.relay-region-card {
    background: #141824;
    border: 1px solid #263046;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.relay-region-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.relay-region-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.relay-status-pill {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.relay-region-meta {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Classic HaloTracker Unified Leaderboards Header & Mode Tabs */
.htr-classic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #1b1f2b 0%, #141720 100%);
    border: 1px solid #2a3142;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 16px;
}

.htr-classic-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
}

.htr-mode-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.htr-mode-tab {
    background: #12151e;
    border: 1px solid #2d3548;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.htr-mode-tab:hover {
    color: #fff;
    border-color: #38bdf8;
}

.htr-mode-tab.active {
    background: var(--accent-red);
    border-color: #ef5350;
    color: #fff;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.35);
}

.lb-mode-pane {
    display: none;
}

.lb-mode-pane.active {
    display: block;
}

.lb-controls-left,
.lb-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-count-summary {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 700;
}

/* Classic HaloTracker 3-Column TrueSkill Cards (Screenshot 4) */
.htr-ts-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.ts-col-card {
    background: #161922;
    border: 1px solid #282e3f;
    border-radius: 6px;
    overflow: hidden;
}

.ts-col-header {
    background: linear-gradient(180deg, #212634 0%, #191d28 100%);
    border-bottom: 1px solid #2d3447;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
}

.ts-col-header span.sub {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 700;
}

.ts-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #1f2431;
    font-size: 12.5px;
}

.ts-player-row:last-child {
    border-bottom: none;
}

.ts-player-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ts-rank-pos {
    font-weight: 800;
    color: var(--text-muted);
    width: 24px;
    flex-shrink: 0;
}

.ts-player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ts-level-pill {
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
}

/* Classic HTR 1v1 & Team League Layout (Screenshot 6) */
.htr-league-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 18px;
    align-items: start;
}

.htr-league-main {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    overflow: hidden;
}

.league-pane-body {
    padding: 24px;
}

.htr-league-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-card {
    background: #161922;
    border: 1px solid #282e3f;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-card-header {
    background: #1f2432;
    border-bottom: 1px solid #2d3447;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f8fafc;
}

.sidebar-links-list {
    list-style: none;
    padding: 8px 14px;
}

.sidebar-links-list li {
    padding: 7px 0;
    border-bottom: 1px solid #202534;
    font-size: 12.5px;
}

.sidebar-links-list li:last-child {
    border-bottom: none;
}

.sidebar-links-list a {
    color: #bae6fd;
    font-weight: 600;
}

.empty-board-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-gray);
}

.empty-board-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.empty-board-state h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.empty-board-state p {
    font-size: 13px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Classic HTR Tournaments Orange Bar (Screenshot 5) */
.htr-tourney-orange-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 55%, #7c2d12 100%);
    border: 1px solid #fb923c;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(194, 65, 12, 0.28);
}

.htr-tourney-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.htr-tourney-tab {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(254, 215, 170, 0.45);
    color: #ffedd5;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.htr-tourney-tab.active,
.htr-tourney-tab:hover {
    background: #fff;
    border-color: #fff;
    color: #7c2d12;
}

/* Planet Reach Orbital Service Record & Empty Lookup State (Screenshots 1, 2, 3) */
.service-record-hero {
    background:
        linear-gradient(180deg, rgba(16, 19, 27, 0.78) 0%, rgba(14, 16, 22, 0.96) 68%),
        url('../assets/ui/planet_reach_header.jpg') center top / cover no-repeat;
}

.service-record-empty-hero {
    border: 1px solid #2b3448;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background:
        linear-gradient(180deg, rgba(13, 17, 26, 0.74) 0%, rgba(13, 16, 23, 0.95) 100%),
        url('../assets/ui/planet_reach_header.jpg') center top / cover no-repeat;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.sr-empty-orbital {
    padding: 40px 26px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.sr-empty-orbital h2 {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin: 6px 0 10px;
}

.sr-empty-orbital p {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sr-lookup-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 12px;
}

.sr-lookup-form .btn-submit-signup {
    width: auto;
    white-space: nowrap;
}

.sr-lookup-status {
    font-size: 12.5px;
    font-weight: 700;
    color: #fca5a5;
    min-height: 18px;
    margin-bottom: 10px;
}

.sr-empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.sr-gamertag-heading {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sr-gamertag-heading .gt {
    color: #ff5252;
}

.sr-gamertag-heading .service-tag {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 700;
    background: #232732;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.meta-pill-link {
    color: #7dd3fc !important;
    border-color: rgba(56, 189, 248, 0.4);
    text-decoration: none !important;
}

.forum-sig-bar {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(12, 16, 24, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-sig-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-sig-preview img {
    height: 55px;
    width: auto;
    max-width: 100%;
    border-radius: 3px;
    border: 1px solid #334155;
}

.forum-sig-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 240px;
    max-width: 440px;
}

.forum-sig-copy input {
    flex: 1;
    min-width: 0;
    background: #0b0f17;
    border: 1px solid #283244;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

/* Career Stats: 6-Column Summary Table (Screenshot 2) */
.career-summary-header {
    background: linear-gradient(180deg, #202534 0%, #171b26 100%);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f8fafc;
    border-bottom: 1px solid #2b3244;
}

.career-summary-table td:first-child {
    font-weight: 700;
    color: #f1f5f9;
}

/* Competitive Summary Strip & Expandable Playlist Rows (Screenshot 1) */
.htr-comp-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.comp-summary-box {
    background: #141822;
    border: 1px solid #262d3e;
    border-radius: 5px;
    padding: 10px 12px;
}

.comp-summary-box .k {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.comp-summary-box .v {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.pl-expand-row td {
    background: #111520 !important;
    padding: 12px 16px !important;
}

.pl-expand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.pl-expand-stat {
    background: #171c29;
    border: 1px solid #262f45;
    border-radius: 4px;
    padding: 8px 10px;
}

.pl-expand-stat .lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pl-expand-stat .val {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
}

/* Firefight Stats By Map Grid (Screenshot 3) */
.htr-ff-maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.ff-map-card {
    background: #151923;
    border: 1px solid #262d3e;
    border-radius: 6px;
    padding: 12px 14px;
}

.ff-map-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    border-bottom: 1px solid #22293a;
    padding-bottom: 4px;
}

.ff-map-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 11.5px;
    color: #cbd5e1;
}

/* Auntie DOT Support & Bug Triage View */
.support-hero-card {
    background: linear-gradient(180deg, #161b26 0%, #12151e 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    padding: 24px;
}

.support-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.support-header-row h2 {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
}

.support-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.support-ask-form {
    background: #10141d;
    border: 1px solid #252e42;
    border-radius: 6px;
    padding: 16px;
}

.support-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.support-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.support-response-box {
    margin-top: 18px;
    background: #0e131c;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 6px;
    padding: 18px;
}

.support-steps-list {
    margin: 10px 0 14px 20px;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.65;
}

.support-template-box {
    width: 100%;
    background: #090d14;
    border: 1px solid #273248;
    color: #bae6fd;
    font-family: monospace;
    font-size: 11.5px;
    padding: 10px;
    border-radius: 4px;
    resize: vertical;
}

/* Legal & Governance Cards */
.legal-doc-card {
    background: #151821;
    border: 1px solid #272d3d;
    border-radius: 8px;
    padding: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-doc-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 6px;
}

.legal-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #242a38;
}

.legal-doc-card h3 {
    font-size: 15px;
    font-weight: 800;
    color: #7dd3fc;
    margin: 18px 0 6px;
}

.legal-doc-card p {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.65;
}

.modal-field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Multi-Column Footer with Reference Catalogs */
.site-footer {
    background: #0c0e13;
    border-top: 1px solid #202532;
    padding: 36px 0 28px;
    text-align: left;
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 28px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-brand-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #f8fafc;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-links a,
.footer-nav-link {
    background: none;
    border: none;
    padding: 2px 0;
    font-family: inherit;
    font-size: 12.5px;
    color: #cbd5e1;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-nav-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-disclaimer {
    border-top: 1px solid #1c212d;
    padding-top: 16px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: center;
}

/* ==========================================================================
   FULL MOBILE & TABLET OPTIMIZATION (360px - 1024px, ZERO OVERFLOW)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-body {
        grid-template-columns: 1fr;
    }
    .spartan-viewer-box {
        height: 250px;
    }
    .spartan-viewer-box img.spartan-img {
        height: 220px;
    }
    .htr-ts-three-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .htr-league-layout {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }
    .header-collapsible {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #242936;
    }
    .header-collapsible.open {
        display: flex;
    }
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
    .header-search {
        width: 100%;
        min-height: 44px;
    }
    .header-search input {
        font-size: 14px;
    }
    .sub-nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sub-tab-btn {
        white-space: nowrap;
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .home-hero-banner,
    .home-section-panel,
    .support-hero-card,
    .legal-doc-card {
        padding: 18px 14px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btn {
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }
    .section-header,
    .leaderboard-hero-strip,
    .leaderboard-controls,
    .hero-top,
    .forum-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .site-rank-card {
        width: 100%;
        text-align: left;
    }
    .lb-search-input {
        width: 100% !important;
        min-height: 42px;
    }
    .htr-ts-three-col,
    .downloads-grid,
    .forum-cards-grid,
    .platform-pillars-grid,
    .relay-regions-grid,
    .form-row,
    .sr-lookup-form,
    .footer-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .sr-lookup-form .btn-submit-signup {
        width: 100%;
    }
    .badges-row,
    .stat-chips-grid,
    .payout-tiers-grid {
        grid-template-columns: 1fr;
    }
    .card-action-split {
        grid-template-columns: 1fr;
    }
    .btn-download,
    .btn-tourney-btn,
    .btn-submit-signup,
    .page-btn,
    .filter-pill,
    .htr-mode-tab,
    .htr-tourney-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .forum-sig-copy {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
    .tab-pane {
        padding: 14px 12px;
    }
}



