/* ==========================================================================
   BeaverOS Tactical Scoreboard Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #080c09;
    --bg-panel: rgba(13, 19, 15, 0.88);
    --bg-card: rgba(18, 26, 21, 0.92);
    --border-chassis: #25332a;
    --border-bevel: #384d3f;
    --border-glow-cyan: rgba(0, 229, 255, 0.4);
    --border-glow-amber: rgba(255, 159, 67, 0.45);
    --border-glow-green: rgba(63, 224, 36, 0.45);

    --text-primary: #e6f4ea;
    --text-dim: #8b9d90;
    --text-faint: #526357;

    --hud-cyan: #00e5ff;
    --hud-green: #3fe024;
    --hud-amber: #ff9f43;
    --hud-red: #ff5252;
    --hud-gold: #ffd32a;

    --mono: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body.is-standalone-scoreboard {
    min-height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--sans);
    line-height: 1.45;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 30%, rgba(255, 159, 67, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(8, 12, 9, 0.94), rgba(8, 12, 9, 0.98)),
        url('../images/alley-background.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

/* Subtle CRT scanline overlay on standalone page */
body.is-standalone-scoreboard::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Scoreboard Modal Overlay (index.html integration)
   -------------------------------------------------------------------------- */
body.has-scoreboard-open {
    overflow: hidden !important;
}

.scoreboard-modal {
    position: fixed;
    inset: 0;
    z-index: 35; /* Behind terminal (45) but above scene (1) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--terminal-dock-bottom, 134px) 16px 20px;
    background: rgba(4, 7, 5, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding-top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scoreboard-modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.scoreboard-modal[hidden] {
    display: none !important;
}

.scoreboard-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: pointer;
}

.scoreboard-modal__window {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    width: 100%;
    max-height: calc(100vh - var(--terminal-dock-bottom, 134px) - 24px);
    max-height: calc(100svh - var(--terminal-dock-bottom, 134px) - 24px);
    display: flex;
    flex-direction: column;
    animation: modal-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scoreboard-modal__window .chassis {
    max-height: calc(100vh - var(--terminal-dock-bottom, 134px) - 24px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - var(--terminal-dock-bottom, 134px) - 24px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bevel) rgba(0, 0, 0, 0.5);
    transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure exec.rs stays docked in the top corner while scoreboard is active */
body.has-scoreboard-open .terminal {
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    left: calc(16px + env(safe-area-inset-left, 0px)) !important;
}

/* When exec.rs is expanded while scoreboard is active, smoothly shift scorecard under it */
body.has-scoreboard-open.has-terminal-open .scoreboard-modal {
    padding-top: var(--terminal-dock-bottom, 360px);
}

body.has-scoreboard-open.has-terminal-open .scoreboard-modal__window,
body.has-scoreboard-open.has-terminal-open .scoreboard-modal__window .chassis {
    max-height: calc(100vh - var(--terminal-dock-bottom, 360px) - 20px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - var(--terminal-dock-bottom, 360px) - 20px - env(safe-area-inset-bottom, 0px));
}

body.has-scoreboard-open.has-terminal-open .terminal:not(.is-minimized) {
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    left: calc(16px + env(safe-area-inset-left, 0px)) !important;
}

body.has-scoreboard-open.has-terminal-open .terminal:not(.is-minimized) .terminal__body {
    max-height: 210px;
    height: 210px;
}

.scoreboard-modal__window .top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.scoreboard-modal__window .chassis::-webkit-scrollbar {
    width: 8px;
}

.scoreboard-modal__window .chassis::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.scoreboard-modal__window .chassis::-webkit-scrollbar-thumb {
    background: var(--border-bevel);
    border-radius: 4px;
}

.scoreboard-modal__window .chassis::-webkit-scrollbar-thumb:hover {
    background: var(--hud-green);
}

/* Shell-styled close button matching exec.rs terminal & launcher */
.shell-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(14, 21, 17, 0.95);
    border: 1px solid var(--border-chassis);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.shell-close-btn:hover {
    background: rgba(24, 36, 28, 0.98);
    border-color: rgba(255, 95, 86, 0.75);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 95, 86, 0.35);
    transform: translateY(-1px);
}

.shell-close-btn:active {
    transform: scale(0.96);
}

.shell-close-btn__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.shell-close-btn__dot::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: 700 7px/1 var(--mono);
    color: rgba(0, 0, 0, 0.8);
    content: '×';
    opacity: 0;
    transition: opacity 0.15s ease;
}

.shell-close-btn:hover .shell-close-btn__dot {
    transform: scale(1.15);
}

.shell-close-btn:hover .shell-close-btn__dot::after {
    opacity: 1;
}

.shell-close-btn__prompt {
    color: var(--hud-green);
    font-weight: 800;
    font-size: 0.75rem;
    line-height: 1;
}

.shell-close-btn__text {
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.shell-close-btn__esc {
    color: var(--text-dim);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-left: 1px;
}

.shell-close-btn:hover .shell-close-btn__esc {
    color: rgba(255, 255, 255, 0.7);
}

.btn-tactical--close {
    border-color: rgba(255, 82, 82, 0.5);
    color: var(--hud-red);
    cursor: pointer;
}

.btn-tactical--close:hover {
    border-color: var(--hud-red);
    background: rgba(255, 82, 82, 0.22);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .scoreboard-modal {
        padding: var(--terminal-dock-bottom, 126px) 8px calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .scoreboard-modal__window,
    .scoreboard-modal__window .chassis {
        max-height: calc(100vh - var(--terminal-dock-bottom, 126px) - 16px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100svh - var(--terminal-dock-bottom, 126px) - 16px - env(safe-area-inset-bottom, 0px));
    }

    /* Match exec.rs terminal width, margins and tactical style to the scorecard on mobile */
    body.has-scoreboard-open .terminal {
        top: calc(10px + env(safe-area-inset-top, 0px)) !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        border-radius: 8px;
        border-color: var(--border-chassis);
        background: rgba(14, 21, 17, 0.95);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(63, 224, 36, 0.2);
    }

    body.has-scoreboard-open .terminal.is-minimized,
    body.has-scoreboard-open .terminal.is-closed {
        width: calc(100% - 16px) !important;
    }

    body.has-scoreboard-open .terminal__bar {
        padding: 8px 12px;
        gap: 6px;
    }

    body.has-scoreboard-open .terminal__player {
        margin-left: auto;
        margin-right: auto;
    }

    body.has-scoreboard-open .terminal.is-minimized .terminal__open,
    body.has-scoreboard-open .terminal.is-closed .terminal__open {
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        gap: 2px;
        font-size: 11px;
    }

    body.has-scoreboard-open .terminal-launcher {
        top: 10px;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        text-align: center;
        border-radius: 8px;
        border-color: var(--border-chassis);
        background: rgba(14, 21, 17, 0.95);
    }

    body.has-scoreboard-open.has-terminal-open .scoreboard-modal {
        padding-top: var(--terminal-dock-bottom, 340px);
    }

    body.has-scoreboard-open.has-terminal-open .scoreboard-modal__window,
    body.has-scoreboard-open.has-terminal-open .scoreboard-modal__window .chassis {
        max-height: calc(100vh - var(--terminal-dock-bottom, 340px) - 16px);
        max-height: calc(100svh - var(--terminal-dock-bottom, 340px) - 16px);
    }

    body.has-scoreboard-open.has-terminal-open .terminal:not(.is-minimized) .terminal__body {
        max-height: 180px;
        height: 180px;
    }

    .chassis .top-bar,
    .top-bar {
        padding: 8px 12px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .chassis .brand,
    .brand {
        gap: 6px;
        min-width: 0;
    }

    .chassis .brand__logo,
    .brand__logo {
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .chassis .brand__beaver,
    .brand__beaver {
        font-size: 1.05rem;
    }

    .chassis .brand__badge,
    .brand__badge {
        display: none !important;
    }

    .chassis .status-telemetry,
    .status-telemetry {
        display: none !important;
    }

    .chassis .nav-actions,
    .nav-actions {
        flex-shrink: 0;
    }

    .chassis .shell-close-btn,
    .shell-close-btn {
        padding: 4px 10px;
        font-size: 0.72rem;
        gap: 5px;
    }

    .chassis .shell-close-btn__esc,
    .shell-close-btn__esc {
        display: none !important;
    }

    .footer-meta {
        font-size: 0.62rem;
        gap: 6px 10px;
    }

    .footer-meta__left {
        gap: 6px;
    }

    .footer-build-btn,
    .footer-github-btn {
        padding: 3px 6px;
        font-size: 0.62rem;
    }
}

/* --------------------------------------------------------------------------
   HUD Container & Chassis Frame
   -------------------------------------------------------------------------- */
.hud-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.chassis {
    background: var(--bg-panel);
    border: 2px solid var(--border-chassis);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(63, 224, 36, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

/* Tactical Corner Bolts */
.chassis::before,
.chassis::after {
    content: '⬢';
    position: absolute;
    top: 8px;
    font-size: 11px;
    color: var(--border-bevel);
    line-height: 1;
    z-index: 10;
}
.chassis::before { left: 10px; }
.chassis::after { right: 10px; }

/* --------------------------------------------------------------------------
   Top Bar / Title & Links
   -------------------------------------------------------------------------- */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(180deg, #16201a 0%, #0d1410 100%);
    border-bottom: 2px solid var(--border-chassis);
}

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

.brand__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 0 10px rgba(63, 224, 36, 0.5);
}

.brand__beaver {
    font-size: 1.4rem;
}

.brand__badge {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hud-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-tactical {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(25, 36, 29, 0.85);
    border: 1px solid var(--border-bevel);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-tactical:hover {
    color: #fff;
    background: rgba(45, 64, 52, 0.95);
    border-color: var(--hud-green);
    box-shadow: 0 0 10px rgba(63, 224, 36, 0.3);
}

.btn-tactical--source {
    border-color: rgba(255, 159, 67, 0.4);
    color: var(--hud-amber);
}

.btn-tactical--source:hover {
    border-color: var(--hud-amber);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.35);
}

.status-telemetry {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.status-telemetry__indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-telemetry__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hud-green);
    box-shadow: 0 0 6px var(--hud-green);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   Operatives & Active Deployment Grid
   -------------------------------------------------------------------------- */
.intel-grid {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr minmax(280px, 320px);
    gap: 16px;
    padding: 20px;
    background: rgba(10, 15, 12, 0.65);
    border-bottom: 2px solid var(--border-chassis);
}

@media (max-width: 960px) {
    .intel-grid {
        grid-template-columns: 1fr 1fr;
    }
    .intel-grid__center {
        grid-column: 1 / -1;
        order: -1;
    }
}

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

/* Operative Cards */
.operative-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.operative-card:hover {
    transform: translateY(-2px);
}

.operative-card:active {
    transform: scale(0.98);
}

.operative-card.is-poked {
    animation: operative-poke 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes operative-poke {
    0%, 100% { transform: none; }
    25% { transform: scale(0.97) rotate(-1.5deg); }
    50% { transform: scale(1.02) rotate(1.5deg); }
    75% { transform: scale(0.99) rotate(-0.5deg); }
}

.operative-card--nick {
    border: 1.5px solid rgba(255, 159, 67, 0.5);
    box-shadow: 0 0 12px rgba(255, 159, 67, 0.15);
}

.operative-card--nick:hover {
    border-color: rgba(255, 159, 67, 0.85);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.25);
}

.operative-card--tim {
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.operative-card--tim:hover {
    border-color: rgba(0, 229, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.25);
}

.operative-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.operative-card__viewport {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1 / 1.02;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operative-card--nick .operative-card__viewport {
    border: 1px solid rgba(255, 159, 67, 0.6);
}

.operative-card--tim .operative-card__viewport {
    border: 1px solid rgba(0, 229, 255, 0.6);
}

.operative-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.05) brightness(1.0);
    transition: transform 0.3s ease;
}

.operative-card:hover .operative-card__img {
    transform: scale(1.03);
}

.operative-card__reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, transparent 65%, rgba(0, 0, 0, 0.6) 100%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.operative-card__tag-overlay {
    display: none;
}

.operative-card__signal-graph {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecg-line {
    width: 100%;
    height: 16px;
}

.operative-card__plate {
    background: rgba(10, 14, 11, 0.85);
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid var(--border-bevel);
}

.operative-card__name {
    font-family: var(--mono);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.operative-card__callsign {
    display: inline-block;
}

.operative-card__loadout-badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.operative-card__loadout-badge--stealth {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.operative-card__loadout-badge--degenerate {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.5);
    box-shadow: 0 0 8px rgba(255, 159, 67, 0.3);
}

.operative-card__loadout-badge--berserk {
    color: #ff0055;
    background: rgba(255, 0, 85, 0.16);
    border: 1px solid rgba(255, 0, 85, 0.6);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    animation: badge-pulse 1.4s infinite alternate ease-in-out;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 6px rgba(255, 0, 85, 0.4);
        border-color: rgba(255, 0, 85, 0.5);
    }
    100% {
        box-shadow: 0 0 14px rgba(255, 0, 85, 0.85);
        border-color: rgba(255, 0, 85, 0.95);
    }
}

.operative-card--nick .operative-card__name {
    color: var(--hud-amber);
    text-shadow: 0 0 8px rgba(255, 159, 67, 0.6);
}

.operative-card--tim .operative-card__name {
    color: var(--hud-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.operative-card__role-box {
    margin-top: 6px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.operative-card--nick .operative-card__role-box {
    border-color: rgba(255, 159, 67, 0.35);
    box-shadow: inset 0 0 10px rgba(255, 159, 67, 0.1);
}

.operative-card--tim .operative-card__role-box {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.operative-card__role-badge {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.operative-card--nick .operative-card__role-badge {
    color: var(--hud-amber);
    text-shadow: 0 0 8px rgba(255, 159, 67, 0.5);
}

.operative-card--tim .operative-card__role-badge {
    color: var(--hud-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.role-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.role-divider {
    opacity: 0.4;
    font-weight: 400;
}

.operative-card__role-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

.role-bars {
    display: inline-flex;
    gap: 2px;
}

.role-bars i {
    display: block;
    width: 3px;
    height: 7px;
    border-radius: 1px;
}

.operative-card--nick .role-bars i {
    background: var(--hud-amber);
    box-shadow: 0 0 3px var(--hud-amber);
}

.operative-card--tim .role-bars i {
    background: var(--hud-cyan);
    box-shadow: 0 0 3px var(--hud-cyan);
}

/* Center Active Deployment Box */
.intel-grid__center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border-bevel);
    border-radius: 8px;
    padding: 18px 20px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.deployment-header {
    text-align: center;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--border-chassis);
    padding-bottom: 12px;
}

.deployment-header__eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--hud-amber);
    text-transform: uppercase;
}

.deployment-header__title {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.deployment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.82rem;
}

.deployment-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.deployment-row__label {
    color: var(--hud-green);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deployment-row__value {
    color: #fff;
    text-align: right;
    font-weight: 500;
}

.deployment-row__value--alert {
    color: var(--hud-amber);
    animation: pulse-alert 2.5s infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.deployment-row__value--bad {
    color: var(--hud-red);
    font-weight: 700;
}

.deployment-row__value--ok {
    color: var(--hud-green);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Destruction & Metrics Section
   -------------------------------------------------------------------------- */
.metrics-section {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
    padding: 20px;
    background: rgba(14, 21, 17, 0.85);
    border-bottom: 2px solid var(--border-chassis);
}

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

.metric-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-chassis);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-chassis);
    padding-bottom: 8px;
}

.panel-header__title {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hud-amber);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header__era {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Segmented Ammo Bar */
.ammo-bar {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 159, 67, 0.35);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    gap: 3px;
    height: 18px;
    overflow: hidden;
}

.ammo-bar__seg {
    flex: 1;
    background: rgba(255, 159, 67, 0.15);
    border-radius: 1px;
}

.ammo-bar__seg.is-hot {
    background: var(--hud-amber);
    box-shadow: 0 0 6px rgba(255, 159, 67, 0.7);
}

.ammo-bar__seg.is-critical {
    background: var(--hud-red);
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.8);
}

/* Big Stat Cards */
.big-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 12, 0.7);
    border: 1px solid var(--border-bevel);
    border-radius: 6px;
    padding: 10px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-strip:hover {
    transform: translateX(4px);
    border-color: var(--hud-amber);
}

.stat-strip__icon {
    font-size: 1.4rem;
    margin-right: 12px;
}

.stat-strip__content {
    flex: 1;
}

.stat-strip__num {
    font-family: var(--mono);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.stat-strip__unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hud-amber);
    margin-left: 4px;
}

.stat-strip__label {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 2px;
}

.stat-strip__badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: var(--hud-red);
}

/* Secondary Metrics (Averages & High Scores) */
.secondary-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sub-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-panel__title {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--hud-cyan);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.metric-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 17, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    border-radius: 4px;
}

.metric-list__key {
    color: var(--text-dim);
}

.metric-list__val {
    color: #fff;
    font-weight: 700;
}

.metric-list__val--high {
    color: var(--hud-gold);
    text-shadow: 0 0 6px rgba(255, 211, 42, 0.4);
}

.metric-list__note {
    font-size: 0.68rem;
    color: var(--text-faint);
    margin-left: 6px;
    font-style: italic;
}

.metric-list__item--record {
    display: grid;
    grid-template-columns: 110px 85px 1fr;
    align-items: center;
    gap: 8px;
}

.metric-list__item--record .metric-list__val {
    text-align: left;
    white-space: nowrap;
}

.metric-list__item--record .metric-list__note {
    text-align: right;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .metric-list__item--record {
        grid-template-columns: 96px 74px 1fr;
        gap: 4px;
        font-size: 0.74rem;
        padding: 5px 8px;
    }
}

/* --------------------------------------------------------------------------
   Operation Log / Tactical Table
   -------------------------------------------------------------------------- */
.log-section {
    padding: 20px;
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.log-header__title {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-header__hashes {
    color: var(--hud-green);
    letter-spacing: -1px;
}

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-chassis);
    border-radius: 8px;
    background: var(--bg-card);
}

.tactical-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.82rem;
    text-align: left;
}

.tactical-table th {
    background: #111a14;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-chassis);
    white-space: nowrap;
}

.tactical-table th.num-col {
    text-align: right;
}

/* Era Banners */
.era-banner td {
    padding: 8px 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.era-banner--rdr2 td {
    background: linear-gradient(90deg, rgba(160, 82, 45, 0.45) 0%, rgba(160, 82, 45, 0.1) 100%);
    color: #f5cd79;
    border-top: 1px solid rgba(245, 205, 121, 0.3);
    border-bottom: 1px solid rgba(245, 205, 121, 0.3);
}

.era-banner--gta td {
    background: linear-gradient(90deg, rgba(63, 224, 36, 0.3) 0%, rgba(63, 224, 36, 0.05) 100%);
    color: var(--hud-green);
    border-top: 1px solid rgba(63, 224, 36, 0.35);
    border-bottom: 1px solid rgba(63, 224, 36, 0.35);
}

/* Table Rows */
.tactical-table tbody tr:not(.era-banner) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    cursor: pointer;
}

.tactical-table tbody tr:not(.era-banner):hover {
    background: rgba(63, 224, 36, 0.08);
}

.tactical-table td {
    padding: 10px 12px;
    white-space: nowrap;
}

.tactical-table td.num-col {
    text-align: right;
    font-weight: 600;
    color: #fff;
}

.op-id {
    color: var(--hud-cyan);
    font-weight: 700;
}

.op-date {
    color: var(--text-dim);
}

.op-mission {
    font-weight: 600;
    color: #fff;
}

.tactical-table th:last-child {
    min-width: 300px;
    width: 44%;
}

.op-notes {
    white-space: normal !important;
    min-width: 300px;
    max-width: 480px;
    padding: 8px 12px !important;
    vertical-align: middle;
}

.intel-bubble {
    background: rgba(8, 12, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--border-bevel);
    border-radius: 4px;
    padding: 7px 11px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tactical-table tr:hover .intel-bubble {
    background: rgba(14, 22, 17, 0.95);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.era-rdr2-row .intel-bubble {
    border-left-color: #f5cd79;
}

.era-gta-row .intel-bubble {
    border-left-color: var(--hud-green);
}

.intel-bubble--active {
    border-left-color: var(--hud-amber) !important;
    background: rgba(255, 159, 67, 0.12) !important;
    border-color: rgba(255, 159, 67, 0.4) !important;
}

.intel-bubble__prefix {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.era-rdr2-row .intel-bubble__prefix {
    color: #f5cd79;
}

.era-gta-row .intel-bubble__prefix {
    color: var(--hud-green);
}

.intel-bubble--active .intel-bubble__prefix {
    color: var(--hud-amber);
}

.intel-bubble__text {
    font-family: var(--sans);
    color: var(--text-primary);
    font-size: 0.78rem;
}

.intel-bubble__text em {
    font-family: var(--mono);
    font-style: normal;
    font-weight: 700;
    color: var(--hud-gold);
}

.op-row--pending {
    background: rgba(255, 159, 67, 0.08) !important;
    border-top: 1px dashed rgba(255, 159, 67, 0.4) !important;
    border-bottom: 1px dashed rgba(255, 159, 67, 0.4) !important;
}

.op-row--pending:hover {
    background: rgba(255, 159, 67, 0.16) !important;
}

.op-badge-pending {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 159, 67, 0.15);
    border: 1px solid rgba(255, 159, 67, 0.5);
    color: var(--hud-amber);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Responsive & Reactive Mobile Operation Log
   -------------------------------------------------------------------------- */
.tactical-table tbody tr:not(.era-banner) {
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.tactical-table tbody tr:not(.era-banner):active {
    transform: scale(0.99);
}

.tactical-table tbody tr:not(.era-banner).is-selected {
    background: rgba(63, 224, 36, 0.14) !important;
    border-color: var(--hud-green) !important;
    box-shadow: 0 0 14px rgba(63, 224, 36, 0.35);
}

.tactical-table tbody tr:not(.era-banner).is-selected .intel-bubble {
    border-left-color: var(--hud-green) !important;
    background: rgba(14, 25, 18, 0.98);
}

@media (max-width: 720px) {
    .log-section {
        padding: 14px 10px;
    }

    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    .table-container {
        border: none;
        background: transparent;
        overflow-x: visible;
    }

    .tactical-table,
    .tactical-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .tactical-table thead {
        display: none;
    }

    .tactical-table tbody tr.era-banner {
        display: block;
        width: 100%;
        margin: 8px 0 2px;
        border-radius: 6px;
        overflow: hidden;
    }

    .tactical-table tbody tr.era-banner td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 0.72rem;
        padding: 7px 10px;
        white-space: normal;
    }

    .tactical-table tbody tr:not(.era-banner) {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px 10px;
        padding: 12px;
        background: rgba(14, 21, 17, 0.9);
        border: 1px solid var(--border-chassis);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .tactical-table td.op-id {
        grid-column: 1;
        grid-row: 1;
        padding: 2px 6px;
        font-size: 0.72rem;
        font-weight: 800;
        background: rgba(0, 229, 255, 0.12);
        border: 1px solid rgba(0, 229, 255, 0.4);
        border-radius: 4px;
        color: var(--hud-cyan);
        width: fit-content;
    }

    .tactical-table td.op-mission {
        grid-column: 2;
        grid-row: 1;
        padding: 0 4px;
        font-size: 0.8rem;
        font-weight: 700;
        color: #fff;
        white-space: normal;
        line-height: 1.25;
    }

    .tactical-table td.op-date {
        grid-column: 3;
        grid-row: 1;
        padding: 0;
        text-align: right;
        font-size: 0.7rem;
        color: var(--text-dim);
    }

    .tactical-table td.num-col {
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 4px;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 5px;
        font-size: 0.82rem;
        font-weight: 800;
        color: var(--hud-amber);
        text-align: center;
        white-space: nowrap;
    }

    .tactical-table td.num-col:nth-of-type(4) {
        grid-column: 1;
    }
    .tactical-table td.num-col:nth-of-type(4)::before {
        content: 'MG';
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--text-dim);
        margin-bottom: 2px;
    }

    .tactical-table td.num-col:nth-of-type(5) {
        grid-column: 2;
    }
    .tactical-table td.num-col:nth-of-type(5)::before {
        content: 'BEERS';
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--text-dim);
        margin-bottom: 2px;
    }

    .tactical-table td.num-col:nth-of-type(6) {
        grid-column: 3;
    }
    .tactical-table td.num-col:nth-of-type(6)::before {
        content: 'SHOTS';
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--text-dim);
        margin-bottom: 2px;
    }

    .tactical-table td.op-notes {
        grid-column: 1 / -1;
        grid-row: 3;
        padding: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .tactical-table td.op-notes .intel-bubble {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.72rem;
        padding: 6px 10px;
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   Footer System Logs & Ticker
   -------------------------------------------------------------------------- */
.footer-bar {
    background: #090e0b;
    border-top: 2px solid var(--border-chassis);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-tabs__left {
    display: flex;
    gap: 14px;
}

.footer-tabs__tab {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-tabs__tab--active {
    color: var(--hud-amber);
    font-weight: 700;
}

.footer-ticker {
    background: #000;
    border: 1px solid var(--border-chassis);
    border-radius: 4px;
    padding: 6px 12px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.footer-ticker__content {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--hud-green);
    letter-spacing: 0.06em;
    animation: ticker-scroll 24s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.footer-ticker:hover .footer-ticker__content {
    animation-play-state: paused;
}

.tag-ok { color: var(--hud-green); font-weight: 700; }
.tag-crit { color: var(--hud-red); font-weight: 700; }
.tag-warn { color: var(--hud-amber); font-weight: 700; }

/* --------------------------------------------------------------------------
   Footer Meta: Build Info, Release Date & Compact GitHub Button
   -------------------------------------------------------------------------- */
.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid rgba(63, 224, 36, 0.15);
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.footer-meta__left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-meta__label {
    color: var(--hud-amber);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.footer-meta__val {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-meta__sep {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

.footer-meta__right {
    display: inline-flex;
    align-items: center;
}

.footer-build-btn,
.footer-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(14, 21, 17, 0.95);
    border: 1px solid rgba(63, 224, 36, 0.35);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.footer-build-btn:hover,
.footer-github-btn:hover {
    background: rgba(24, 38, 28, 0.98);
    border-color: var(--hud-green);
    color: #fff;
    box-shadow: 0 0 10px rgba(63, 224, 36, 0.35);
    transform: translateY(-1px);
}

.footer-build-btn:active,
.footer-github-btn:active {
    transform: scale(0.97);
}

.footer-build-btn__label {
    color: var(--hud-amber);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.footer-build-btn__ver {
    color: var(--hud-green);
    font-weight: 700;
}

.footer-build-btn:hover .footer-build-btn__ver {
    color: #fff;
}

/* ========================================================================== */
/* NEW TACTICAL / FUN EXPANSION COMPONENTS                                    */
/* ========================================================================== */


/* ---------- Operative Card Loadout Switcher ---------- */
.loadout-control {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(10, 16, 12, 0.75);
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loadout-control__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
}

.loadout-control__title {
    font-size: 0.62rem;
    color: #ffcb6b;
    letter-spacing: 0.08em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.loadout-control__hint {
    font-size: 0.54rem;
    color: var(--hud-green);
    letter-spacing: 0.06em;
    font-weight: 700;
    opacity: 0.9;
    animation: hint-glow 2s infinite ease-in-out;
}

@keyframes hint-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 6px rgba(63, 224, 36, 0.6); }
}

.loadout-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.loadout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 6px 3px 5px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    text-align: center;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.loadout-btn__led {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: block;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.loadout-btn__icon {
    font-size: 0.85rem;
    line-height: 1;
    display: block;
}

.loadout-btn__name {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.loadout-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.loadout-btn.is-active {
    background: rgba(63, 224, 36, 0.2);
    border-color: var(--hud-green);
    color: #fff;
    box-shadow: 0 0 10px rgba(63, 224, 36, 0.4), inset 0 0 6px rgba(63, 224, 36, 0.2);
}

.loadout-btn.is-active .loadout-btn__led {
    background: var(--hud-green);
    box-shadow: 0 0 6px var(--hud-green);
}

.loadout-btn[data-mode="degenerate"].is-active {
    background: rgba(255, 159, 67, 0.22);
    border-color: var(--hud-amber);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.45), inset 0 0 6px rgba(255, 159, 67, 0.2);
}

.loadout-btn[data-mode="degenerate"].is-active .loadout-btn__led {
    background: var(--hud-amber);
    box-shadow: 0 0 6px var(--hud-amber);
}

.loadout-btn[data-mode="berserk"].is-active {
    background: rgba(255, 82, 82, 0.25);
    border-color: #ff5252;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.55), inset 0 0 6px rgba(255, 82, 82, 0.25);
}

.loadout-btn[data-mode="berserk"].is-active .loadout-btn__led {
    background: #ff5252;
    box-shadow: 0 0 8px #ff5252;
    animation: wanted-star-flash 0.3s infinite alternate;
}

/* Card Mode Dynamic Themes */
.operative-card.mode--degenerate {
    border-color: rgba(255, 159, 67, 0.6);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 159, 67, 0.22);
}

.operative-card.mode--berserk {
    border-color: rgba(255, 82, 82, 0.7);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 82, 82, 0.3);
}

.operative-card.mode--stealth {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 229, 255, 0.18);
}

.operative-card.is-flipping {
    transform: perspective(600px) rotateY(8deg) scale(0.98);
    transition: transform 0.15s ease;
}

.operative-card__intel-snippet {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.35);
    border-left: 2px solid var(--border-hot);
    border-radius: 0 4px 4px 0;
    font-size: 0.68rem;
    line-height: 1.35;
}

.operative-card__quote {
    font-style: italic;
    color: #ffcb6b;
    margin-bottom: 4px;
}

.operative-card__fuel {
    display: flex;
    gap: 4px;
    font-size: 0.62rem;
}

.operative-card__fuel-label {
    color: var(--text-dim);
    font-weight: 700;
}

.operative-card__fuel-val {
    color: var(--hud-cyan);
    font-weight: 600;
}

/* ---------- Livermore Tactical Weather Sat-Feed ---------- */
.sat-weather {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(8, 14, 10, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    font-family: var(--mono);
}

.sat-weather__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--hud-cyan);
    margin-bottom: 6px;
}

.sat-weather__radar-blip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
    animation: radar-pulse 1.4s infinite ease-out;
}

@keyframes radar-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 1; }
}

.sat-weather__coords {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 0.58rem;
}

.sat-weather__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sat-weather__cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(14, 22, 17, 0.65);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sat-weather__lbl {
    color: var(--text-dim);
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.sat-weather__val {
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.sat-weather__sub {
    color: var(--hud-amber);
    font-size: 0.56rem;
    font-weight: 600;
}

.sat-weather__val--warn .sat-weather__sub {
    color: #ff5252;
}

/* --------------------------------------------------------------------------
   OP-08 Live Tactical Dispatch & Admin Bar
   -------------------------------------------------------------------------- */
.op08-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: rgba(10, 16, 12, 0.85);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
}

.op08-admin-bar.is-authenticated {
    border-color: rgba(255, 179, 0, 0.45);
    background: rgba(25, 20, 10, 0.9);
}

.op08-admin-bar__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.op08-admin-pill {
    color: var(--hud-text-dim, #7a8a80);
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.op08-admin-bar.is-authenticated .op08-admin-pill {
    color: var(--hud-amber, #ffb300);
    background: rgba(255, 179, 0, 0.15);
}

.op08-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5252;
    box-shadow: 0 0 8px #ff5252;
    animation: op08-pulse 1.8s infinite;
}

@keyframes op08-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.op08-rounds-badge {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.op08-admin-bar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.op08-tap-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: 700 0.68rem/1 var(--font-mono);
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.op08-tap-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

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

.op08-tap-btn--beer {
    border-color: rgba(255, 202, 40, 0.4);
    color: #ffe082;
}

.op08-tap-btn--beer:hover {
    background: rgba(255, 202, 40, 0.2);
}

.op08-tap-btn--shot {
    border-color: rgba(255, 112, 67, 0.4);
    color: #ffab91;
}

.op08-tap-btn--shot:hover {
    background: rgba(255, 112, 67, 0.2);
}

.op08-tap-btn--mg {
    border-color: rgba(77, 208, 225, 0.4);
    color: #80deea;
}

.op08-tap-btn--mg:hover {
    background: rgba(77, 208, 225, 0.2);
}

.op08-ctrl-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #90a4ae;
    font: 700 0.64rem/1 var(--font-mono);
    padding: 5px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.op08-ctrl-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.op08-ctrl-btn--auth {
    color: var(--hud-amber, #ffb300);
    border-color: rgba(255, 179, 0, 0.35);
}

.op08-ctrl-btn--auth:hover {
    background: rgba(255, 179, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Review Drawer
   -------------------------------------------------------------------------- */
.op08-review-drawer {
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(8, 12, 10, 0.95);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 6px;
    font-family: var(--font-mono);
    animation: op08-slide-down 0.2s ease-out;
}

@keyframes op08-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.op08-review-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.op08-review-drawer__title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--hud-green, #2ecc71);
    letter-spacing: 0.05em;
}

.op08-review-drawer__close {
    background: none;
    border: none;
    color: #90a4ae;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    transition: color 0.15s ease;
}

.op08-review-drawer__close:hover {
    color: #ff5252;
}

.op08-review-drawer__list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.op08-empty {
    color: var(--hud-text-dim, #7a8a80);
    font-size: 0.68rem;
    font-style: italic;
    padding: 8px 4px;
}

.op08-log-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.op08-log-time {
    color: #78909c;
    font-size: 0.62rem;
    white-space: nowrap;
}

.op08-log-badge {
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.62rem;
    white-space: nowrap;
}

.op08-log-badge--beer {
    background: rgba(255, 202, 40, 0.15);
    color: #ffe082;
    border: 1px solid rgba(255, 202, 40, 0.3);
}

.op08-log-badge--shot {
    background: rgba(255, 112, 67, 0.15);
    color: #ffab91;
    border: 1px solid rgba(255, 112, 67, 0.3);
}

.op08-log-badge--mg {
    background: rgba(77, 208, 225, 0.15);
    color: #80deea;
    border: 1px solid rgba(77, 208, 225, 0.3);
}

.op08-log-desc {
    flex: 1;
    color: #cfd8dc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.op08-item-name {
    color: #fff;
    font-weight: 600;
}

.op08-item-notes {
    color: #90a4ae;
    font-style: italic;
    margin-left: 4px;
}

.op08-btn-void {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff8a80;
    font: 700 0.58rem/1 var(--font-mono);
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.op08-btn-void:hover {
    background: #ff5252;
    color: #fff;
}

/* Active OP 08 Row Live Glowing */
.op-row--active-op08.is-live {
    background: rgba(46, 204, 113, 0.08) !important;
    border-top: 1px solid rgba(46, 204, 113, 0.4) !important;
    border-bottom: 1px solid rgba(46, 204, 113, 0.4) !important;
}

.op-row--active-op08.is-live:hover {
    background: rgba(46, 204, 113, 0.16) !important;
}

.op-val--live {
    color: #2ecc71;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

/* Completed OP 08 Row (Post-Departure) */
.op-row--completed.is-completed {
    background: rgba(255, 215, 0, 0.06) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.35) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.35) !important;
}

.op-row--completed.is-completed:hover {
    background: rgba(255, 215, 0, 0.12) !important;
}

.op-val--final {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* ==========================================================================
   BeaverOS Workstation Login GUI (AES-256-GCM Lock Screen)
   ========================================================================== */

.status-telemetry__dot.is-locked {
    background: var(--hud-amber);
    box-shadow: 0 0 8px var(--hud-amber);
}

.shell-lock-btn {
    border-color: rgba(255, 159, 67, 0.45);
    color: var(--hud-amber);
}

.shell-lock-btn:hover {
    border-color: var(--hud-amber);
    background: rgba(40, 28, 14, 0.95);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 159, 67, 0.35);
}

.beaveros-desktop[hidden],
.beaveros-login[hidden] {
    display: none !important;
}

.beaveros-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beaveros-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 24px;
    min-height: 520px;
}

.beaveros-login__screen {
    width: 100%;
    max-width: 520px;
    background:
        radial-gradient(circle at 50% 0%, rgba(63, 224, 36, 0.1), transparent 62%),
        radial-gradient(circle at 85% 90%, rgba(0, 229, 255, 0.08), transparent 55%),
        rgba(10, 15, 12, 0.95);
    border: 1px solid var(--border-bevel);
    border-radius: 10px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(63, 224, 36, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}

.beaveros-login__statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(5, 9, 7, 0.92);
    border-bottom: 1px solid var(--border-chassis);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.beaveros-login__status-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hud-amber);
    font-weight: 700;
}

.beaveros-login__led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hud-amber);
    box-shadow: 0 0 8px var(--hud-amber);
    animation: pulse-led 2s infinite ease-in-out;
}

@keyframes pulse-led {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.88); }
}

.beaveros-login__panel {
    padding: 26px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.beaveros-login__panel.is-error-shake {
    animation: login-error-shake 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes login-error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.beaveros-login__emblem {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(63, 224, 36, 0.18) 0%, rgba(12, 20, 15, 0.95) 72%);
    border: 1px solid rgba(63, 224, 36, 0.45);
    box-shadow: 0 0 24px rgba(63, 224, 36, 0.22);
    margin-bottom: 12px;
}

.beaveros-login__ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 229, 255, 0.4);
    animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.beaveros-login__icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.beaveros-login__eyebrow {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--hud-amber);
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid rgba(255, 159, 67, 0.32);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.beaveros-login__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 0 16px rgba(63, 224, 36, 0.25);
}

.beaveros-login__subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    max-width: 400px;
    margin-bottom: 18px;
}

/* Operative Account Quick-Select Cards */
.beaveros-profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
}

.beaveros-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(16, 24, 19, 0.9);
    border: 1px solid var(--border-chassis);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.16s ease;
    position: relative;
}

.beaveros-profile:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(20, 32, 25, 0.95);
    transform: translateY(-1px);
}

.beaveros-profile.is-selected {
    border-color: var(--hud-green);
    background: rgba(22, 42, 28, 0.92);
    box-shadow: 0 0 14px rgba(63, 224, 36, 0.22);
}

.beaveros-profile__avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.beaveros-profile__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.beaveros-profile__name {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}

.beaveros-profile__role {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.beaveros-profile__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hud-green);
    color: #041006;
    font-size: 0.68rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s ease;
}

.beaveros-profile.is-selected .beaveros-profile__check {
    opacity: 1;
    transform: scale(1);
}

/* Login Form Fields */
.beaveros-login__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: left;
}

.beaveros-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.beaveros-field__label {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--hud-cyan);
}

.beaveros-field__wrap {
    display: flex;
    align-items: center;
    background: rgba(6, 10, 8, 0.95);
    border: 1px solid var(--border-bevel);
    border-radius: 6px;
    padding: 0 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.beaveros-field__wrap:focus-within {
    border-color: var(--hud-green);
    box-shadow: 0 0 0 2px rgba(63, 224, 36, 0.18);
}

.beaveros-field__icon {
    font-size: 0.88rem;
    margin-right: 8px;
    opacity: 0.85;
    user-select: none;
}

.beaveros-field__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--mono);
    font-size: 1rem; /* >= 16px prevents iOS Safari / WebClip from auto-zooming viewport on focus */
    padding: 10px 0;
    width: 100%;
}

.beaveros-field__input::placeholder {
    color: var(--text-faint);
}

.beaveros-field__toggle {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.beaveros-field__toggle:hover {
    color: #fff;
}

.beaveros-login__error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.45);
    border-radius: 6px;
    color: #ff8a80;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.beaveros-login__error[hidden] {
    display: none !important;
}

.beaveros-login__submit {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(63, 224, 36, 0.24) 0%, rgba(28, 120, 18, 0.34) 100%);
    border: 1px solid var(--hud-green);
    border-radius: 6px;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(63, 224, 36, 0.2);
    transition: all 0.16s ease;
}

.beaveros-login__submit:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(63, 224, 36, 0.35) 0%, rgba(36, 150, 24, 0.48) 100%);
    box-shadow: 0 0 22px rgba(63, 224, 36, 0.4);
    transform: translateY(-1px);
}

.beaveros-login__submit:active:not(:disabled) {
    transform: translateY(0);
}

.beaveros-login__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.beaveros-login__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(5, 9, 7, 0.92);
    border-top: 1px solid var(--border-chassis);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.beaveros-profiles-label {
    align-self: flex-start;
    margin-bottom: 6px;
}

.beaveros-login__panel[hidden],
.beaveros-boot[hidden] {
    display: none !important;
}

/* Stage 2: Cinematic Biometric Handshake & Decryption Sequence */
.beaveros-boot {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: boot-stage-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes boot-stage-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.beaveros-boot__reticle {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.beaveros-boot__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.beaveros-boot__ring--outer {
    inset: -6px;
    border: 2px dashed var(--hud-green);
    box-shadow: 0 0 24px rgba(63, 224, 36, 0.35);
    animation: spin-slow 6s linear infinite;
}

.beaveros-boot__ring--inner {
    inset: 2px;
    border: 1.5px solid var(--hud-cyan);
    animation: spin-slow 4s linear infinite reverse;
}

.beaveros-boot[data-op="nick"] .beaveros-boot__ring--outer {
    border-color: var(--hud-amber);
    box-shadow: 0 0 26px rgba(255, 159, 67, 0.45);
}

.beaveros-boot[data-op="tim"] .beaveros-boot__ring--outer {
    border-color: var(--hud-cyan);
    box-shadow: 0 0 26px rgba(0, 229, 255, 0.45);
}

.beaveros-boot__avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.beaveros-boot__badge {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--hud-green);
    background: rgba(63, 224, 36, 0.12);
    border: 1px solid rgba(63, 224, 36, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.beaveros-boot__title {
    font-family: var(--mono);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 18px rgba(63, 224, 36, 0.4);
    margin-bottom: 14px;
}

.beaveros-boot__bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--border-bevel);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.beaveros-boot__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan));
    box-shadow: 0 0 12px var(--hud-green);
    transition: width 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.beaveros-boot[data-op="nick"] .beaveros-boot__bar {
    background: linear-gradient(90deg, var(--hud-amber), var(--hud-gold));
    box-shadow: 0 0 12px var(--hud-amber);
}

.beaveros-boot__log {
    width: 100%;
    background: rgba(4, 8, 6, 0.92);
    border: 1px solid var(--border-chassis);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 0.68rem;
    line-height: 1.55;
    text-align: left;
    color: var(--text-dim);
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.beaveros-boot__line {
    color: #a5d6a7;
    animation: boot-line-in 0.18s ease-out;
}

.beaveros-boot__line.is-final {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(63, 224, 36, 0.5);
}

@keyframes boot-line-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Desktop Reveal & Active Commander Highlight */
.beaveros-desktop.is-boot-reveal {
    animation: desktop-boot-reveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes desktop-boot-reveal {
    0% { opacity: 0; filter: brightness(1.8) contrast(1.2); transform: scale(0.985); }
    100% { opacity: 1; filter: brightness(1) contrast(1); transform: scale(1); }
}

.operative-card.is-session-commander {
    box-shadow:
        0 0 0 1px var(--hud-green),
        0 0 28px rgba(63, 224, 36, 0.25);
}

.operative-card.is-session-commander .operative-card__header span:first-child::before {
    content: "★ ACTIVE SESSION // ";
    color: var(--hud-green);
}

@media (max-width: 560px) {
    .beaveros-login {
        align-items: flex-start;
        padding: 10px 8px calc(16px + env(safe-area-inset-bottom, 0px));
        min-height: 0;
    }
    .beaveros-login__panel {
        padding: 16px 14px 16px;
    }
    .beaveros-profiles {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
    }
    .beaveros-login__status-center {
        display: none;
    }
}




