:root {
    --bg-dark: #020205;
    --panel-bg: rgba(6, 6, 12, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent: #e8943a;
    --accent-blue: #38bdf8;
    --accent-glow: rgba(232, 148, 58, 0.3);
    --accent-blue-glow: rgba(56, 189, 248, 0.3);
    --text-primary: #f2f2fa;
    --text-secondary: #8f8f9e;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
    --sidebar-width: 320px;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* ========== BOOT TERMINAL ========== */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030308;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px 48px;
    font-family: var(--font-mono);
    color: #38ff80;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#boot-screen.boot-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

#boot-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 120, 0.02) 0px,
        transparent 1px,
        transparent 3px
    );
    z-index: 1;
}

#boot-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 340px;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Side panel columns ── */
.boot-side {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: min(72vh, 580px);
    z-index: 2;
}

.boot-panel {
    flex: 1;
    border: 1px solid rgba(56, 255, 128, 0.12);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 20, 10, 0.5);
    position: relative;
    animation: panelFadeIn 0.6s ease forwards;
    opacity: 0;
}
.boot-side:first-child .boot-panel:nth-child(1) { animation-delay: 0.2s; }
.boot-side:first-child .boot-panel:nth-child(2) { animation-delay: 0.5s; }
#boot-side-right .boot-panel:nth-child(1) { animation-delay: 0.35s; }
#boot-side-right .boot-panel:nth-child(2) { animation-delay: 0.65s; }

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

/* corner accent top-left */
.boot-panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid rgba(56, 255, 128, 0.5);
    border-left: 2px solid rgba(56, 255, 128, 0.5);
    pointer-events: none;
}
/* corner accent bottom-right */
.boot-panel::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 2px solid rgba(56, 255, 128, 0.5);
    border-right: 2px solid rgba(56, 255, 128, 0.5);
    pointer-events: none;
}

.bp-title {
    font-size: 7.5px;
    letter-spacing: 1.4px;
    color: rgba(56, 255, 128, 0.55);
    padding: 5px 10px;
    border-bottom: 1px solid rgba(56, 255, 128, 0.08);
    background: rgba(56, 255, 128, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bp-body {
    flex: 1;
    padding: 7px 9px;
    font-size: 8.5px;
    line-height: 1.65;
    color: rgba(56, 255, 128, 0.38);
    overflow: hidden;
    white-space: pre;
    word-break: break-all;
}

/* Hide side panels on narrow screens */
@media (max-width: 1080px) {
    .boot-side { display: none; }
}

#ascii-logo {
    font-size: clamp(9px, 1.6vw, 14px);
    line-height: 1.5;
    color: #38ff80;
    text-align: center;
    text-shadow: 0 0 16px rgba(56, 255, 128, 0.55), 0 0 40px rgba(56, 255, 128, 0.2);
    margin-bottom: 8px;
    white-space: pre;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { text-shadow: 0 0 16px rgba(56,255,128,0.55), 0 0 40px rgba(56,255,128,0.2); }
    to   { text-shadow: 0 0 24px rgba(56,255,128,0.9), 0 0 60px rgba(56,255,128,0.35); }
}

#boot-terminal {
    min-height: 260px;
    max-height: 48vh;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.75;
    color: #70ffa0;
    padding: 4px 0;
}

#boot-terminal::-webkit-scrollbar { width: 3px; }
#boot-terminal::-webkit-scrollbar-thumb { background: rgba(56, 255, 128, 0.2); border-radius: 3px; }

#boot-terminal .line { opacity: 0; animation: termFadeIn 0.15s forwards; }
#boot-terminal .line-warn { color: #e8b030; }
#boot-terminal .line-ok   { color: #38ff80; }
#boot-terminal .line-info { color: #38bdf8; }
#boot-terminal .line-err  { color: #ff4466; }
#boot-terminal .line-dim  { color: #55806a; }

@keyframes termFadeIn { to { opacity: 1; } }

#boot-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 20px;
}

#boot-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(56, 255, 128, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

#boot-progress-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, #38ff80, #38bdf8);
    border-radius: 2px;
    transition: width 0.3s;
}

#boot-progress-pct {
    font-size: 12px;
    color: #38ff80;
    min-width: 36px;
    text-align: right;
}

.boot-hidden { display: none !important; }

#boot-enter-wrap {
    text-align: center;
    padding-top: 12px;
}

#boot-enter-btn {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 2px;
    padding: 14px 36px;
    background: transparent;
    border: 1px solid #38ff80;
    color: #38ff80;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 8px rgba(56, 255, 128, 0.5);
}

#boot-enter-btn:hover {
    background: #38ff80;
    color: #030308;
    box-shadow: 0 0 30px rgba(56, 255, 128, 0.4);
    text-shadow: none;
}

.boot-hint {
    font-size: 11px;
    color: #446655;
    margin-top: 10px;
}

#boot-stats {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #335544;
    z-index: 2;
}

/* ========== MAIN APP ========== */
.app-hidden { display: none !important; }

#webgl-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== Node labels (galaxy map) ===== */
#node-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.node-label {
    position: absolute;
    top: 0; left: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: rgba(200, 220, 255, 0.75);
    text-shadow: 0 0 8px rgba(100, 160, 255, 0.6), 0 0 2px rgba(0,0,0,0.9);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}

.node-label.visible { opacity: 1; }

#ui-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.glass-panel, button, input, aside { pointer-events: auto; }

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== NAV HEADER ========== */
#nav-header {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    height: 64px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-area h1 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area .sub {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

.pulse-icon {
    font-size: 18px;
    color: var(--accent-blue);
    animation: radarPulse 2s infinite ease-in-out;
}

.hud-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: #00ff66; box-shadow: 0 0 8px #00ff66; }

.navigation-controls { display: flex; gap: 8px; }

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
}

.nav-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* ========== SIDEBAR ========== */
#control-sidebar {
    position: absolute;
    top: 100px; left: 16px; bottom: 16px;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    opacity: 1;
}

#control-sidebar.collapsed {
    transform: translateX(calc(-100% - 30px));
    opacity: 0;
    pointer-events: none;
}

.sidebar-header { margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 10px; }
.sidebar-header h1 { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.sidebar-header .subtitle { font-size: 9px; font-family: var(--font-mono); color: var(--accent); letter-spacing: 2px; margin-top: 2px; }

.sidebar-content { flex: 1; overflow-y: auto; padding-right: 6px; }
.sidebar-content::-webkit-scrollbar { width: 3px; }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.control-section { margin-bottom: 20px; }

.section-title {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.section-title i { color: var(--accent); font-size: 11px; }

.control-group { margin-bottom: 14px; }

.control-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11px;
}

.value-display {
    font-family: var(--font-mono);
    color: var(--accent);
    background: rgba(232, 148, 58, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(232, 148, 58, 0.12);
    font-size: 11px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255,255,255,0.35);
    transition: all 0.12s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }

.preset-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: capitalize;
}

.preset-btn:hover { background: rgba(255, 255, 255, 0.07); }
.preset-btn.active { background: var(--accent-glow); border-color: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

.theme-picker { display: flex; gap: 10px; margin-top: 6px; }

.theme-btn {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn.active { border-color: #fff; transform: scale(1.1); box-shadow: 0 0 8px rgba(255,255,255,0.35); }

.sidebar-footer { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; }

.action-btn {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.action-btn:hover { background: var(--text-primary); color: var(--bg-dark); }
.action-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* ========== INFO CARD ========== */
#info-card {
    position: absolute;
    top: 100px; right: 16px;
    width: 340px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.info-header { border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 14px; margin-bottom: 16px; }
.sector-tag { color: var(--accent-blue); font-size: 10px; font-weight: bold; display: block; margin-bottom: 5px; }
#info-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
#info-class { font-size: 9px; color: var(--text-secondary); margin-top: 3px; letter-spacing: 1px; }

.stats-table { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.stat-row { display: flex; justify-content: space-between; font-size: 11px; border-bottom: 1px dashed rgba(255,255,255,0.03); padding-bottom: 5px; }
.stat-label { color: var(--text-secondary); }
.stat-value { color: #fff; font-weight: 500; }

.description-box {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 12px;
    line-height: 1.5;
    font-size: 12px;
    color: var(--text-secondary);
}

.glowing-btn {
    position: relative;
    width: 100%;
    height: 44px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px var(--accent-blue-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: btnPulse 2.5s infinite;
}

.glowing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-blue-glow), 0 0 8px #fff;
    background: #fff;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 16px var(--accent-blue-glow); }
    50% { box-shadow: 0 4px 24px rgba(56, 189, 248, 0.45); }
}

/* ========== TECH HUD ========== */
#tech-hud {
    position: absolute;
    bottom: 16px; right: 16px;
    padding: 8px 16px;
    display: flex;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.hud-item { display: flex; align-items: center; gap: 5px; }
.hud-label { color: var(--text-secondary); }
#hud-fps, #hud-temp { color: var(--accent-blue); font-weight: bold; }

/* ========== GUIDE OVERLAY ========== */
.guide-hidden { display: none !important; }

#guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 2, 5, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

#guide-panel {
    width: 90%;
    max-width: 520px;
    padding: 32px;
    text-align: center;
}

#guide-panel h2 {
    font-family: var(--font-head);
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}

.guide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.guide-item strong { color: var(--text-primary); }

.guide-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
    font-size: 14px;
}

#guide-panel .glowing-btn { margin-top: 8px; }

/* ========== DOSSIER OVERLAY ========== */
.dossier-hidden { display: none !important; }

#dossier-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 4, 2, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

#dossier-panel {
    width: min(860px, 92vw);
    height: min(640px, 88vh);
    background: #030a05;
    border: 1px solid rgba(56, 255, 128, 0.18);
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(56, 255, 128, 0.06), 0 0 160px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    color: #38ff80;
    overflow: hidden;
}

#dossier-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(56, 255, 128, 0.1);
    background: rgba(56, 255, 128, 0.03);
    gap: 8px;
    flex-shrink: 0;
}

.dossier-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dossier-dot.red    { background: #ff5f57; }
.dossier-dot.yellow { background: #febc2e; }
.dossier-dot.green  { background: #28c840; }

#dossier-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(56, 255, 128, 0.55);
}

#dossier-close, #dossier-lang {
    background: none;
    border: 1px solid transparent;
    color: rgba(56, 255, 128, 0.4);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    transition: all 0.15s;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    border-radius: 3px;
}
#dossier-close { font-size: 14px; padding: 2px 4px; }
#dossier-lang {
    border-color: rgba(56, 255, 128, 0.18);
    margin-right: 4px;
    min-width: 28px;
}
#dossier-close:hover, #dossier-lang:hover {
    color: #38ff80;
    border-color: rgba(56, 255, 128, 0.4);
    background: rgba(56, 255, 128, 0.06);
}

#dossier-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 255, 128, 0.18) transparent;
}
#dossier-body::-webkit-scrollbar { width: 3px; }
#dossier-body::-webkit-scrollbar-track { background: transparent; }
#dossier-body::-webkit-scrollbar-thumb { background: rgba(56, 255, 128, 0.18); border-radius: 2px; }

#dossier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid rgba(56, 255, 128, 0.07);
    font-size: 10px;
    color: rgba(56, 255, 128, 0.3);
    flex-shrink: 0;
    letter-spacing: 1px;
}

.dossier-object-name {
    font-size: 22px;
    color: #38ff80;
    letter-spacing: 1px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.dossier-object-class {
    font-size: 10px;
    color: rgba(56, 255, 128, 0.4);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.dossier-section { margin-bottom: 24px; }

.dossier-section-title {
    font-size: 9px;
    letter-spacing: 4px;
    color: rgba(56, 255, 128, 0.4);
    border-bottom: 1px solid rgba(56, 255, 128, 0.08);
    padding-bottom: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.dossier-param-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 5px 12px;
    font-size: 12px;
}

.dossier-param-key { color: rgba(56, 255, 128, 0.45); }
.dossier-param-val { color: #38ff80; }

.dossier-text {
    font-size: 12px;
    line-height: 1.75;
    color: rgba(56, 255, 128, 0.7);
    white-space: pre-wrap;
}

.dossier-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
    line-height: 2;
    color: rgba(56, 255, 128, 0.7);
}
.dossier-list li::before { content: '▸  '; color: rgba(56, 255, 128, 0.35); }

hr.dossier-divider {
    border: none;
    border-top: 1px dashed rgba(56, 255, 128, 0.08);
    margin: 20px 0;
}

/* Dossier button (secondary) */
.dossier-btn {
    width: 100%;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(56, 255, 128, 0.18);
    border-radius: 8px;
    color: rgba(56, 255, 128, 0.6);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.dossier-btn:hover {
    background: rgba(56, 255, 128, 0.06);
    border-color: rgba(56, 255, 128, 0.4);
    color: #38ff80;
    box-shadow: 0 0 12px rgba(56, 255, 128, 0.08);
}

/* Info footer stacked layout */
.info-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

/* ========== HELPERS ========== */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
    #info-card {
        top: auto; bottom: 16px;
        left: 16px; right: 16px;
        width: calc(100% - 32px);
        max-height: 240px;
    }
    #control-sidebar { width: calc(100% - 32px); }
    #tech-hud { display: none; }
    .guide-grid { grid-template-columns: 1fr; }
}
