/* ==========================================================================
   RUSTED WARFARE - MODERN DARK THEME INTERFACE
   Clean, sleek, contemporary dark UI with high readability and modern ergonomics
   ========================================================================== */

:root {
    /* Base Surfaces */
    --bg-canvas: #090d14;
    --bg-base: #0f1520;
    --bg-surface: #151d2a;
    --bg-surface-hover: #1c2637;
    --bg-surface-active: #243044;
    --bg-card: #182232;
    --bg-input: #0b1018;

    /* Borders & Dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(255, 255, 255, 0.25);
    --border-focus: #3b82f6;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Accent Colors */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-success: #16a34a;
    --color-success-hover: #15803d;
    --color-warning: #f59e0b;
    --color-warning-dim: #b45309;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;

    /* Team Colors */
    --team-blue: #3b82f6;
    --team-blue-bg: rgba(59, 130, 246, 0.15);
    --team-red: #ef4444;
    --team-red-bg: rgba(239, 68, 68, 0.15);

    /* Typography & Spacing */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
    --shadow-popover: 0 20px 40px -6px rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-canvas);
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* ==================== BATTLEFIELD VIEWPORT ==================== */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-canvas);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* ==================== MODERN BUTTONS ==================== */
.tactile-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    box-shadow: var(--shadow-sm);
}

.tactile-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    color: #ffffff;
}

.tactile-btn:active {
    transform: scale(0.97);
    background: var(--bg-surface-active);
}

.tactile-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary-hover);
    color: #ffffff;
}

.tactile-btn.btn-mini {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.tactile-btn.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.tactile-btn.btn-primary-hero {
    background: var(--color-primary);
    border-color: var(--color-primary-hover);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.tactile-btn.btn-primary-hero:hover {
    background: var(--color-primary-hover);
}

.tactile-btn.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary-hover);
    color: #ffffff;
}

.tactile-btn.btn-success {
    background: var(--color-success);
    border-color: var(--color-success-hover);
    color: #ffffff;
}

.tactile-btn.btn-success:hover {
    background: var(--color-success-hover);
}

.tactile-btn.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.tactile-btn.btn-danger:hover {
    background: var(--color-danger);
    border-color: var(--color-danger-hover);
    color: #ffffff;
}

.tactile-btn.btn-warning {
    background: var(--color-warning);
    border-color: var(--color-warning-dim);
    color: #1a1405;
    font-weight: 600;
}

.tactile-btn.btn-team-blue {
    background: var(--team-blue-bg);
    border-color: var(--team-blue);
    color: #bfdbfe;
}

.tactile-btn.btn-team-blue:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.tactile-btn.btn-team-red {
    background: var(--team-red-bg);
    border-color: var(--team-red);
    color: #fecaca;
}

.tactile-btn.btn-team-red:hover {
    background: var(--color-danger);
    color: #ffffff;
}

.tactile-btn-group {
    display: inline-flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.tactile-btn-group .tactile-btn {
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* ==================== TOP HUD BAR ==================== */
#top-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(15, 21, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    z-index: 10;
}

.hud-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.hud-credits {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.hud-icon {
    width: 15px;
    height: 15px;
}

.gold-val {
    color: var(--color-warning);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.income-val {
    color: var(--color-success);
    font-size: 11px;
    font-weight: 600;
    background: rgba(22, 163, 74, 0.15);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}

.supply-bracket {
    color: var(--text-muted);
}

#supply-amount {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.hud-commander {
    color: var(--text-secondary);
}

.hud-rating-pill {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hud-timer {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
    justify-content: center;
}

/* ==================== BOTTOM LEFT: MINIMAP PANEL ==================== */
#minimap-panel {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 174px;
    background: rgba(15, 21, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.minimap-bezel {
    width: 160px;
    height: 160px;
    background: #080c12;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#minimap-canvas {
    display: block;
    width: 160px;
    height: 160px;
    cursor: crosshair;
}

.minimap-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minimap-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding-right: 4px;
}

/* ==================== BOTTOM RIGHT: COMMAND & SELECTION CONSOLE ==================== */
#command-panel {
    position: absolute;
    bottom: 12px;
    right: 12px;
    height: 174px;
    display: flex;
    background: rgba(15, 21, 32, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    overflow: hidden;
}

/* Left: Unit Info Card */
#selection-card {
    width: 260px;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 12px;
    display: flex;
    align-items: center;
}

.selection-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    gap: 4px;
}

.standby-text {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.standby-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 200px;
}

.selection-details {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.portrait-bezel {
    width: 58px;
    height: 58px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portrait-bezel img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

.unit-intel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.unit-title-row {
    display: flex;
    flex-direction: column;
}

.unit-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unit-class {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* HP Progress Bar */
.hp-gauge-box {
    position: relative;
    width: 100%;
    height: 15px;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.hp-gauge-track {
    width: 100%;
    height: 100%;
}

.hp-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: var(--radius-sm);
    transition: width 0.12s ease-out;
}

.hp-numeric {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.unit-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.spec-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}

/* Right: Action & Production Grid */
#action-deck {
    width: 360px;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
}

.action-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 4px;
}

.deck-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.queue-strip {
    display: flex;
    gap: 4px;
}

.queue-slot {
    width: 22px;
    height: 22px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.queue-slot img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

.queue-slot:hover {
    border-color: var(--color-danger);
    background: rgba(239, 68, 68, 0.15);
}

/* Action button tiles */
.action-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 6px;
    overflow-y: auto;
}

.btn-command {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-height: 56px;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
}

.btn-command:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.btn-command:active {
    transform: scale(0.96);
    background: var(--bg-surface-active);
}

.btn-command.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.cmd-hotkey {
    position: absolute;
    top: 3px;
    left: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
}

.cmd-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 10px;
    line-height: 1.15;
}

.cmd-cost {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-warning);
}

/* ==================== MAIN MENU & MODALS ==================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-backdrop.hidden, .hidden {
    display: none !important;
}

.rts-menu-frame {
    width: 840px;
    max-width: 95vw;
    max-height: 88vh;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-popover);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-icon {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
}

.menu-title-block h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    margin: 0;
}

.menu-tagline {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 1px;
}

/* NAV TABS */
.rts-nav-bar {
    display: flex;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 16px;
    gap: 4px;
}

.nav-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* SUB PANELS */
.menu-panel {
    display: none;
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.menu-panel.active {
    display: block;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* MAP GRID */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.map-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.map-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.map-preview-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
}

.map-card-info {
    padding: 10px 12px;
}

.map-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.map-card-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* PARAMETERS GRID */
.panel-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.param-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-box label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.rts-select, .rts-input {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rts-select:focus, .rts-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.panel-action-bar {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

/* ==================== MULTIPLAYER WAR ROOM ==================== */
.mp-lobby-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.rooms-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.room-item-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-radius: var(--radius-md);
    transition: border-color 0.12s ease;
}

.room-item-row:hover {
    border-color: var(--border-hover);
}

.room-staging-area {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.staging-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.staging-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.players-roster, .radio-chat-box {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    height: 170px;
    overflow-y: auto;
    padding: 8px;
}

.team-selection-row, .chat-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.chat-row input {
    flex: 1;
}

.staging-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== LEADERBOARD & DOSSIER ==================== */
.table-scroll-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-height: 340px;
    overflow-y: auto;
}

.rts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rts-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rts-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

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

.dossier-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dossier-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dossier-badge {
    font-size: 32px;
}

.dossier-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.dossier-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.auth-tabs-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.form-feedback {
    font-size: 12px;
    margin-top: 4px;
}

/* ==================== FIELD MANUAL (CONTROLS) ==================== */
.manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.manual-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.key-tag {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-sm);
}

/* ==================== GAME OVER MODAL ==================== */
.debriefing-box {
    width: 480px;
    padding: 28px;
    text-align: center;
}

.debriefing-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.debriefing-title.victory {
    color: var(--color-success);
}

.debriefing-title.defeat {
    color: var(--color-danger);
}

.debriefing-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-digit {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.debriefing-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==================== SERVER STATUS PILLS & TELEMETRY ==================== */
.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
    transition: background 0.2s ease;
}

.status-indicator-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-indicator-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.hud-backend-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

.hud-ping-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-match-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.menu-server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

