:root {
    --bg-color: #03030c;
    --panel-bg: rgba(10, 10, 26, 0.75);
    --panel-border: rgba(0, 243, 255, 0.2);
    --panel-border-glow: rgba(0, 243, 255, 0.1);
    
    /* Neon Palette */
    --neon-cyan: #00f3ff;
    --neon-pink: #ff007f;
    --neon-yellow: #ffd700;
    --neon-green: #39ff14;
    --neon-red: #ff3131;
    --neon-purple: #9d00ff;
    
    /* Text Colors */
    --text-main: #e2e8f0;
    --text-muted: #718096;
    --text-glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5);
    --text-glow-pink: 0 0 10px rgba(ff, 0, 127, 0.5);
    
    --font-cyber: 'Orbitron', system-ui, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

body, html {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-cyber);
    height: 100%;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

.access-gate {
    align-items: center;
    background: rgba(3, 3, 12, 0.97);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    transition: opacity 350ms ease, visibility 350ms ease;
    z-index: 1000;
}

.access-gate.access-granted {
    opacity: 0;
    visibility: hidden;
}

.access-terminal {
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.25), inset 0 0 24px rgba(0, 243, 255, 0.06);
    max-width: 520px;
    padding: 36px;
    width: 100%;
}

.access-kicker,
.access-form label,
.access-message {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
}

.access-terminal h2 {
    color: var(--text-main);
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    margin: 14px 0 10px;
}

.access-terminal p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.access-form label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.access-input-row {
    display: flex;
    gap: 10px;
}

.access-input-row input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--panel-border);
    color: var(--neon-green);
    flex: 1;
    font: 1rem var(--font-mono);
    min-width: 0;
    padding: 12px;
    width: 100%;
}

.access-input-row .cyber-btn {
    flex: 0 0 auto;
    width: auto;
}

.access-input-row input:focus {
    border-color: var(--neon-cyan);
    outline: none;
}

.access-message {
    display: block;
    font-size: 0.72rem;
    margin-top: 16px;
}

.access-success { color: var(--neon-green); }
.access-failure { color: var(--neon-red); }

@media (max-width: 480px) {
    .access-terminal { padding: 24px; }
    .access-input-row { align-items: stretch; flex-direction: column; }
}

/* Background Stars and Retro Grid */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    z-index: -2;
    opacity: 0.3;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 1000;
    pointer-events: none;
}

/* CRT Screen Scanline Overlay */
#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1001;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.crt-glow::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 1002;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* Header */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(4, 4, 15, 0.85);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    z-index: 10;
    position: relative;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: var(--text-glow-cyan);
    margin-bottom: 2px;
}

.sub-logo {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--neon-pink);
    letter-spacing: 2px;
}

.server-status {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    background: rgba(0, 243, 255, 0.05);
    padding: 6px 15px;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.online {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: blink 2s infinite;
}

.status-text {
    font-size: 0.85rem;
    color: var(--neon-cyan);
}

/* Layout Grid */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 120px);
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Panels */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 10px var(--panel-border-glow);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.15);
}

.panel-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 243, 255, 0.08);
    border-bottom: 1px solid var(--panel-border);
}

.panel-icon {
    color: var(--neon-cyan);
    margin-right: 10px;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite alternate;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.panel-desc {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.3;
}

.panel-content {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

.margin-top-sm {
    margin-top: 15px;
}

/* Scrollbars */
.panel-content::-webkit-scrollbar,
#diagnostic-log::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track,
#diagnostic-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.panel-content::-webkit-scrollbar-thumb,
#diagnostic-log::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover,
#diagnostic-log::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Left Sidebar Diagnostics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 4px rgba(0, 243, 255, 0.3);
}

#diagnostic-log {
    background: #020208;
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 4px;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--neon-green);
    height: 120px;
    overflow-y: auto;
    white-space: pre-line;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Controls Guide */
.controls-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.control-row span {
    margin-left: auto;
    color: var(--text-main);
}

kbd {
    background: #111122;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 2px 0 var(--neon-cyan), 0 0 4px rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 6px;
    display: inline-block;
}

.mobile-only {
    display: none;
}

.badge {
    background: var(--neon-pink);
    color: #fff;
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Main Game Area Styles */
.game-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.canvas-wrapper {
    position: relative;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    overflow: hidden;
    background: #000;
    max-width: 100%;
    aspect-ratio: 6/7;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* Overlay Screens */
.game-overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 12, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 5;
    text-align: center;
}

.game-overlay-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    max-width: 80%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.overlay-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

.overlay-content h2 {
    font-size: 1.5rem;
}

.overlay-content .subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Glow effects */
.neon-text {
    letter-spacing: 3px;
}
.glow-blue {
    color: var(--neon-cyan);
    text-shadow: var(--text-glow-cyan);
}
.glow-red {
    color: var(--neon-red);
    text-shadow: 0 0 15px rgba(255, 49, 49, 0.8);
}
.glow-yellow {
    color: var(--neon-yellow);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.accent-text {
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.25rem;
}

.stats-summary {
    font-family: var(--font-mono);
    line-height: 1.6;
    font-size: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    border-radius: 4px;
    width: 100%;
}

/* Forms */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 10px 0;
}

.cyber-form label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    overflow: hidden;
}

.cyber-form input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
}

.cyber-form input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.status-msg {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    height: 1.2rem;
    text-align: left;
}

.status-msg.success {
    color: var(--neon-green);
}

.status-msg.error {
    color: var(--neon-red);
}

/* Cyber Buttons */
.btn {
    cursor: pointer;
    font-family: var(--font-cyber);
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.cyber-btn {
    font-size: 0.9rem;
    display: inline-block;
    width: 100%;
}

.btn.yellow-theme {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn.yellow-theme:hover {
    background: var(--neon-yellow);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.btn.red-theme {
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 49, 49, 0.2);
}

.btn.red-theme:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 49, 49, 0.6);
}

/* In-game HUD UI styling */
.hud-container {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.hud-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hud-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
}

.score-hud {
    border-left: 3px solid var(--neon-cyan);
}
.score-hud #hud-score {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.multiplier-hud {
    border-left: 3px solid var(--neon-pink);
    max-width: 120px;
}
.multiplier-hud #hud-multiplier {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
}

.shield-hud {
    border-left: 3px solid var(--neon-green);
    flex-grow: 1.5;
}

.shield-bar-wrapper {
    flex-grow: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shield-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #81ff00);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    transition: width 0.15s ease-out, background-color 0.3s ease;
}

.shield-bar.warning {
    background: linear-gradient(90deg, var(--neon-yellow), #ffae00);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.shield-bar.danger {
    background: linear-gradient(90deg, var(--neon-red), #ff0055);
    box-shadow: 0 0 10px rgba(255, 49, 49, 0.5);
}

/* Sidebar Right - Leaderboard & Settings */
.leaderboard-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 8px 12px;
    text-align: left;
}

.leaderboard-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:hover {
    background: rgba(0, 243, 255, 0.03);
}

.leaderboard-table td.text-right {
    text-align: right;
}

.leaderboard-table tr:nth-child(1) td {
    color: var(--neon-yellow);
    font-weight: bold;
}
.leaderboard-table tr:nth-child(2) td {
    color: #c0c0c0;
    font-weight: bold;
}
.leaderboard-table tr:nth-child(3) td {
    color: #cd7f32;
    font-weight: bold;
}

.loading-leaderboard {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0 !important;
}

/* Configuration Settings Panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-row label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Range sliders */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type=range]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Checkbox Row styling */
.checkbox-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.checkbox-row input[type=checkbox] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--neon-cyan);
}

/* Track select dropdown */
.select-row select {
    background: #0d0d21;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    color: var(--neon-cyan);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.select-row select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

/* Footer Styling */
.cyber-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 2, 8, 0.9);
    position: relative;
    z-index: 10;
}

/* Glitch Animation */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan), 0 1px var(--neon-cyan);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(34px, 9999px, 55px, 0); }
    20% { clip: rect(1px, 9999px, 4px, 0); }
    30% { clip: rect(87px, 9999px, 92px, 0); }
    40% { clip: rect(43px, 9999px, 64px, 0); }
    50% { clip: rect(12px, 9999px, 81px, 0); }
    60% { clip: rect(90px, 9999px, 98px, 0); }
    70% { clip: rect(5px, 9999px, 17px, 0); }
    80% { clip: rect(72px, 9999px, 83px, 0); }
    90% { clip: rect(54px, 9999px, 60px, 0); }
    100% { clip: rect(25px, 9999px, 32px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 115px, 0); }
    10% { clip: rect(5px, 9999px, 25px, 0); }
    20% { clip: rect(45px, 9999px, 50px, 0); }
    30% { clip: rect(15px, 9999px, 85px, 0); }
    40% { clip: rect(102px, 9999px, 112px, 0); }
    50% { clip: rect(77px, 9999px, 99px, 0); }
    60% { clip: rect(12px, 9999px, 45px, 0); }
    70% { clip: rect(82px, 9999px, 95px, 0); }
    80% { clip: rect(2px, 9999px, 15px, 0); }
    90% { clip: rect(44px, 9999px, 52px, 0); }
    100% { clip: rect(98px, 9999px, 120px, 0); }
}

.animate-pulse {
    animation: pulse 1s infinite alternate;
}

/* Responsive Grid Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 240px 1fr;
        height: auto;
        overflow-y: visible;
    }
    
    .sidebar-right {
        grid-column: span 2;
    }
}

@media (max-width: 850px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .sidebar-left, .sidebar-right {
        grid-column: span 1;
    }
    
    .cyber-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    
    .server-status {
        width: 100%;
        justify-content: center;
    }
    
    .hud-container {
        flex-wrap: wrap;
    }
    
    .multiplier-hud {
        max-width: none;
    }
    
    .canvas-wrapper {
        width: 100%;
    }
}
