/* ==========================================================================
   CYBERPUNK DESIGN SYSTEM - STYLE SHEET
   ========================================================================== */

:root {
    --bg-dark: #0a0b10;
    --bg-panel: rgba(16, 18, 27, 0.85);
    --border-color: #1b1e2e;
    
    /* Cyber Colors */
    --neon-green: #00ff66;
    --neon-red: #ff0055;
    --neon-yellow: #ffcc00;
    --neon-cyan: #00f0ff;
    --neon-blue: #0088ff;
    
    /* Glares & Glows */
    --glow-green: 0 0 10px rgba(0, 255, 102, 0.5), inset 0 0 5px rgba(0, 255, 102, 0.2);
    --glow-red: 0 0 10px rgba(255, 0, 85, 0.5), inset 0 0 5px rgba(255, 0, 85, 0.2);
    --glow-yellow: 0 0 10px rgba(255, 204, 0, 0.5), inset 0 0 5px rgba(255, 204, 0, 0.2);
    --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5), inset 0 0 5px rgba(0, 240, 255, 0.2);
    --glow-blue: 0 0 10px rgba(0, 136, 255, 0.5), inset 0 0 5px rgba(0, 136, 255, 0.2);
    
    /* Fonts */
    --font-mono: 'Share Tech Mono', monospace;
    --font-cyber: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: #c4c9e3;
    font-family: var(--font-mono);
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ==========================================================================
   CRT SCANLINE AND FLICKER EFFECTS
   ========================================================================== */

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

.crt-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, rgba(16, 18, 27, 0) 60%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.crt-flicker {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 16, 16, 0.05);
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: crt-flicker-anim 0.15s infinite;
}

@keyframes crt-flicker-anim {
    0% { opacity: 0.15; }
    50% { opacity: 0.18; }
    100% { opacity: 0.15; }
}

/* ==========================================================================
   DASHBOARD GRID CONTAINER
   ========================================================================== */

.dashboard-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 12px;
    gap: 12px;
    background: radial-gradient(circle at center, #111424 0%, #06070a 100%);
    box-sizing: border-box;
}

/* Glow Border Helpers */
.border-glow-green { border: 1px solid var(--neon-green); box-shadow: var(--glow-green); }
.border-glow-red { border: 1px solid var(--neon-red); box-shadow: var(--glow-red); }
.border-glow-yellow { border: 1px solid var(--neon-yellow); box-shadow: var(--glow-yellow); }
.border-glow-cyan { border: 1px solid var(--neon-cyan); box-shadow: var(--glow-cyan); }
.border-glow-blue { border: 1px solid var(--neon-blue); box-shadow: var(--glow-blue); }

.text-glow-green { color: var(--neon-green); text-shadow: 0 0 5px rgba(0, 255, 102, 0.6); }
.text-glow-red { color: var(--neon-red); text-shadow: 0 0 5px rgba(255, 0, 85, 0.6); }
.text-glow-yellow { color: var(--neon-yellow); text-shadow: 0 0 5px rgba(255, 204, 0, 0.6); }
.text-glow-cyan { color: var(--neon-cyan); text-shadow: 0 0 5px rgba(0, 240, 255, 0.6); }
.text-glow-blue { color: var(--neon-blue); text-shadow: 0 0 5px rgba(0, 136, 255, 0.6); }

/* HEADER PANEL */
.dashboard-header {
    height: 50px;
    background: var(--bg-panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-radius: 4px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-status-indicator {
    color: var(--neon-green);
}

.blink {
    animation: blink-anim 1s steps(2, start) infinite;
}

@keyframes blink-anim {
    to { visibility: hidden; }
}

.system-title {
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.threat-indicator-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.threat-indicator-container .value {
    font-family: var(--font-cyber);
    font-size: 16px;
    letter-spacing: 1px;
}

/* BUTTONS */
.ctrl-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid currentColor;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

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

.ctrl-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* BODY LAYOUT */
.dashboard-body {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 12px;
    min-height: 0; /* Important for scroll sizing */
}

/* SUB PANELS styling */
.panel-left, .panel-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.sub-panel {
    background: var(--bg-panel);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-title {
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    text-transform: uppercase;
}

/* LEFT PANEL SPECIFIC COMPONENTS */
.score-panel {
    flex: 0 0 auto;
}

.score-display {
    font-family: var(--font-cyber);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    padding: 10px 0;
}

.combo-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.combo-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.combo-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.1s linear;
}

.health-panel {
    flex: 0 0 auto;
}

.health-metrics {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.health-percent {
    font-family: var(--font-cyber);
    font-size: 28px;
    font-weight: 900;
}

.health-status {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.health-bar-container {
    width: 100%;
    height: 14px;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    border-radius: 2px;
    overflow: hidden;
    padding: 1px;
}

.health-bar-fill {
    height: 100%;
    width: 100%;
    background: var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
    transition: width 0.3s ease;
}

.system-load-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 5px;
}

.system-load-row .metric {
    display: flex;
    gap: 8px;
}

.system-load-row .label {
    opacity: 0.6;
}

/* POWER-UP PANEL */
.powerup-panel {
    flex: 1 1 auto;
    overflow-y: auto;
}

.powerup-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.powerup-slot {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.02);
    border-radius: 4px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    overflow: hidden;
}

.powerup-slot:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.5);
}

.powerup-slot.active-power {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    animation: active-glow-pulse 1s infinite alternate;
}

@keyframes active-glow-pulse {
    from { box-shadow: 0 0 4px rgba(0, 240, 255, 0.4); }
    to { box-shadow: 0 0 12px rgba(0, 240, 255, 0.8); }
}

.powerup-slot.ready {
    border-color: var(--neon-cyan);
}

.powerup-slot.ready .hotkey {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.hotkey {
    width: 18px;
    height: 18px;
    background: rgba(0, 240, 255, 0.2);
    color: #fff;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    margin-right: 12px;
}

.powerup-details {
    display: flex;
    flex-direction: column;
}

.powerup-name {
    font-family: var(--font-cyber);
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.powerup-desc {
    font-size: 9px;
    opacity: 0.5;
    margin-top: 2px;
}

.cooldown-overlay {
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: rgba(0, 240, 255, 0.12);
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Icon Placeholders (Custom SVG/CSS Drawings in Icons) */
.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.shield-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 16px;
    top: 4px; left: 5px;
    border: 2px solid var(--neon-cyan);
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.shield-icon::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 3px;
    top: 4px; left: 5px;
    background: var(--neon-cyan);
}

.scan-icon::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: 6px; left: 6px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
}
.scan-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    top: 16px; left: 16px;
    background: var(--neon-cyan);
    transform: rotate(45deg);
}

.limiter-icon::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 4px; left: 4px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
}
.limiter-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    top: 12px; left: 12px;
    background: var(--neon-cyan);
    transform-origin: left center;
    transform: rotate(-30deg);
}

/* CENTER PANEL: GAME CANVAS */
.panel-center {
    background: rgba(10, 11, 16, 0.9);
    position: relative;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

/* OVERLAYS SYSTEM */
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 30px;
    backdrop-filter: blur(4px);
}

.overlay-screen.active {
    display: flex;
}

.overlay-content {
    background: var(--bg-panel);
    max-width: 550px;
    width: 100%;
    padding: 35px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: overlay-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes overlay-fade-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.game-title {
    font-family: var(--font-cyber);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
}

.subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.7;
    margin-top: -10px;
}

.instructions-section h3, .controls-info h3, .high-score-section h3 {
    font-family: var(--font-cyber);
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.9;
    border-left: 3px solid currentColor;
    padding-left: 8px;
}

.protocol-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
}

.protocol-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 3px 6px;
    font-size: 9px;
    font-weight: bold;
    border-radius: 2px;
    text-align: center;
    font-family: var(--font-cyber);
    border: 1px solid currentColor;
}

.badge-green { color: var(--neon-green); background: rgba(0, 255, 102, 0.05); }
.badge-red { color: var(--neon-red); background: rgba(255, 0, 85, 0.05); }
.badge-yellow { color: var(--neon-yellow); background: rgba(255, 204, 0, 0.05); }

.controls-info {
    font-size: 11px;
    line-height: 1.6;
}

.key-cap {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-family: var(--font-mono);
    color: #fff;
    margin: 0 2px;
}

.overlay-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.action-btn {
    background: transparent;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 12px 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.action-btn:hover::before {
    left: 100%;
}

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

/* GAME OVER OVERLAY COMPONENTS */
.score-breakdown {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.stat-label {
    opacity: 0.6;
}

.stat-val {
    font-family: var(--font-cyber);
    font-weight: bold;
}

.high-score-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-high-score {
    display: none; /* Shown dynamically if user gets high score */
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.new-high-score .alert-text {
    font-size: 11px;
    font-weight: bold;
}

.new-high-score .input-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.new-high-score input {
    background: #0f111a;
    border: 1px solid var(--neon-yellow);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-cyber);
    font-size: 14px;
    letter-spacing: 2px;
    padding: 5px 10px;
    width: 100px;
    text-align: center;
}

.new-high-score input:focus {
    outline: none;
    box-shadow: var(--glow-yellow);
}

.scores-list {
    margin-left: 20px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scores-list li {
    padding-bottom: 2px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}

.score-entry {
    display: flex;
    justify-content: space-between;
}

.score-entry .name {
    font-weight: bold;
}

/* RIGHT PANEL COMPONENTS */
.logs-panel {
    flex: 1 1 auto;
    min-height: 0;
}

.console-logs {
    flex: 1 1 auto;
    font-size: 11px;
    line-height: 1.5;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    word-break: break-all;
    font-family: var(--font-mono);
}

/* Scrollbars styling */
.console-logs::-webkit-scrollbar, .powerup-panel::-webkit-scrollbar {
    width: 4px;
}
.console-logs::-webkit-scrollbar-track, .powerup-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.console-logs::-webkit-scrollbar-thumb, .powerup-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.console-logs::-webkit-scrollbar-thumb:hover, .powerup-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.log-line {
    padding-left: 10px;
    position: relative;
}

.log-line::before {
    content: '>';
    position: absolute;
    left: 0;
    opacity: 0.5;
}

.log-line.system { color: #8fa0e3; }
.log-line.legit { color: var(--neon-green); }
.log-line.threat { color: var(--neon-red); font-weight: bold; }
.log-line.scan { color: var(--neon-yellow); }
.log-line.action { color: var(--neon-cyan); }
.log-line.powerup { color: var(--neon-cyan); text-transform: uppercase; font-weight: bold; }

.chart-panel {
    flex: 0 0 160px;
}

.chart-container {
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.network-chart {
    width: 100%;
    height: 100%;
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 5px;
}

/* FOOTER BAR */
.dashboard-footer {
    height: 30px;
    background: var(--bg-panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ==========================================================================
   MOBILE-ONLY ELEMENTS (hidden on desktop)
   ========================================================================== */

.mobile-hud-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-panel);
    border-radius: 4px;
    flex-shrink: 0;
}

.m-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.m-health-stat {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.m-health-row {
    display: flex;
    justify-content: space-between;
}

.m-label {
    font-size: 9px;
    opacity: 0.55;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.m-val {
    font-family: var(--font-cyber);
    font-size: 12px;
    font-weight: bold;
}

.m-health-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.m-health-fill {
    height: 100%;
    width: 100%;
    background: var(--neon-red);
    box-shadow: 0 0 6px rgba(255, 0, 85, 0.6);
    transition: width 0.3s ease;
}

/* MOBILE POWER-UP BAR */
.mobile-powerup-bar {
    display: none;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-power-btn {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    gap: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s, background 0.2s;
    min-height: 64px;
}

.mobile-power-btn .icon {
    width: 22px;
    height: 22px;
    margin-right: 0;
    flex-shrink: 0;
}

.mobile-power-btn.ready {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.mobile-power-btn.active-power {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    animation: active-glow-pulse 1s infinite alternate;
}

.mobile-power-cooldown {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 240, 255, 0.1);
    pointer-events: none;
    transition: width 0.1s linear;
}

.mobile-power-name {
    font-family: var(--font-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Mobile controls info (hidden on desktop) */
.mobile-controls-info {
    display: none;
    font-size: 12px;
    line-height: 1.8;
}

.mobile-controls-info h3 {
    font-family: var(--font-cyber);
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.9;
    border-left: 3px solid currentColor;
    padding-left: 8px;
}

/* ==========================================================================
   RESPONSIVE SCALING FOR SMALLER MONITORS
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-body {
        grid-template-columns: 240px 1fr 240px;
        gap: 8px;
    }

    .dashboard-container {
        padding: 6px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
    }

    .dashboard-container {
        height: 100vh;
        padding: 8px;
        gap: 6px;
        overflow: hidden;
    }

    /* Compact header */
    .dashboard-header {
        height: 42px;
        padding: 0 10px;
        flex-shrink: 0;
    }

    .system-title {
        display: none;
    }

    .system-status-indicator {
        display: none;
    }

    .threat-indicator-container .label {
        display: none;
    }

    .threat-indicator-container .value {
        font-size: 13px;
    }

    .ctrl-btn {
        padding: 5px 10px;
        font-size: 11px;
        margin-left: 4px;
    }

    /* Hide footer */
    .dashboard-footer {
        display: none;
    }

    /* Body: flex column, canvas takes all space */
    .dashboard-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
        min-height: 0;
    }

    .panel-left,
    .panel-right {
        display: none;
    }

    .panel-center {
        flex: 1;
        min-height: 0;
    }

    /* Show mobile elements */
    .mobile-hud-bar {
        display: flex;
    }

    .mobile-powerup-bar {
        display: flex;
    }

    .mobile-controls-info {
        display: block;
    }

    .controls-info {
        display: none;
    }

    /* Overlay improvements */
    .overlay-screen {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .overlay-content {
        padding: 20px 16px;
        gap: 14px;
        max-width: 100%;
    }

    .game-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .protocol-list li {
        grid-template-columns: 95px 1fr;
        font-size: 11px;
    }

    .action-btn {
        font-size: 12px;
        padding: 12px 20px;
        letter-spacing: 1px;
        width: 100%;
    }

    .overlay-actions {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .dashboard-container {
        padding: 6px;
        gap: 4px;
    }

    .dashboard-header {
        height: 38px;
    }

    .game-title {
        font-size: 18px;
    }

    .protocol-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mobile-power-btn {
        min-height: 56px;
        padding: 8px 4px;
    }

    .mobile-power-name {
        font-size: 8px;
    }
}
