﻿/* =============================================
   CYBER GOD - AAA ULTRA QUALITY STYLES
   10,000x Enhanced Graphics System
   ============================================= */

/* OFFLINE GAME: No external fonts. Using local fallback stacks. */

:root {
    --primary: #00f0ff;
    --primary-dim: #006677;
    --secondary: #ff00ff;
    --accent: #ffcc00;
    --danger: #ff3333;
    --success: #00ff66;
    --bg-dark: #0a0a0f;
    --bg-medium: #111122;
    --bg-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #aabbcc;
    --text-dim: #556677;
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.2);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.2);
    --glow-accent: 0 0 20px rgba(255, 204, 0, 0.5), 0 0 40px rgba(255, 204, 0, 0.2);
    --glow-ultra: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 60px rgba(0, 240, 255, 0.4), 0 0 90px rgba(0, 240, 255, 0.2);
    --transition-fast: 0.15s ease;
    --transition-med: 0.3s ease;
    --transition-slow: 0.6s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
}

/* Ultra-smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hardware acceleration for ultra-smooth graphics */
#game-world, #main-canvas, #particle-canvas, #lighting-canvas, #svg-layer {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* AAA PHOTOREALISTIC SVG RENDERING */
#svg-layer > * {
    shape-rendering: geometricPrecision;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

/* ULTRA 3D DEPTH EFFECT for objects */
#svg-layer > g {
    transform-style: preserve-3d;
}

/* EPIC HOVER EFFECTS for objects */
#svg-layer > g:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 240, 255, 0.4))
            drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

/* CANVAS LAYERS - Cinematic depth of field */
#main-canvas {
    filter: brightness(1.05) contrast(1.1);
}

#particle-canvas {
    filter: blur(0.3px) brightness(1.2);
    mix-blend-mode: screen;
}

#lighting-canvas {
    mix-blend-mode: overlay;
    opacity: 0.9;
}

/* Screens */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen.overlay {
    z-index: 100;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.hidden {
    display: none !important;
}

/* =============================================
   MAIN MENU
   ============================================= */

#main-menu {
    background: var(--bg-dark);
    flex-direction: column;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    animation: menuPulse 8s ease-in-out infinite;
}

@keyframes menuPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.menu-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.menu-container.scrollable {
    max-width: 800px;
    text-align: left;
}

.title-container {
    margin-bottom: 50px;
}

.game-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 96px;
    font-weight: 900;
    letter-spacing: 16px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 25%,
        var(--accent) 50%,
        var(--secondary) 75%,
        var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.6))
            drop-shadow(0 0 80px rgba(255, 0, 255, 0.4))
            drop-shadow(0 0 120px rgba(255, 204, 0, 0.3));
    animation: titleGlowUltra 4s ease-in-out infinite, titleShift 8s linear infinite;
}

@keyframes titleGlowUltra {
    0%, 100% { 
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.6))
                drop-shadow(0 0 80px rgba(255, 0, 255, 0.4))
                drop-shadow(0 0 120px rgba(255, 204, 0, 0.3));
    }
    33% { 
        filter: drop-shadow(0 0 50px rgba(255, 0, 255, 0.7))
                drop-shadow(0 0 90px rgba(255, 204, 0, 0.5))
                drop-shadow(0 0 130px rgba(0, 240, 255, 0.4));
    }
    66% { 
        filter: drop-shadow(0 0 45px rgba(255, 204, 0, 0.65))
                drop-shadow(0 0 85px rgba(0, 240, 255, 0.45))
                drop-shadow(0 0 125px rgba(255, 0, 255, 0.35));
    }
}

@keyframes titleShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.game-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: 6px;
    margin-top: 10px;
    text-shadow: var(--glow-primary);
}

.game-tagline {
    font-size: 16px;
    color: var(--text-dim);
    margin-top: 8px;
    font-style: italic;
}

/* Menu Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 48px;
    border: 2px solid var(--primary-dim);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(0, 240, 255, 0.02));
    color: var(--primary);
    cursor: pointer;
    letter-spacing: 3px;
    transition: all var(--transition-med);
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.05));
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:active {
    transform: scale(0.98);
}

.exit-btn {
    border-color: rgba(255, 51, 51, 0.3);
    color: var(--danger);
    background: linear-gradient(180deg, rgba(255, 51, 51, 0.05), transparent);
}

.exit-btn:hover {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

/* =============================================
   GAME SCREEN
   ============================================= */

#game-screen {
    flex-direction: column;
    background: var(--bg-dark);
}

#game-world {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    /* ULTRA AAA CINEMATIC EFFECTS */
    animation: gameWorldPulse 8s ease-in-out infinite;
}

@keyframes gameWorldPulse {
    0%, 100% {
        filter: brightness(1) contrast(1.05) saturate(1.1);
    }
    50% {
        filter: brightness(1.05) contrast(1.1) saturate(1.15);
    }
}

#main-canvas, #particle-canvas, #lighting-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#main-canvas { 
    z-index: 1;
    /* ULTRA HD QUALITY */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#svg-layer { 
    z-index: 2;
    /* AAA PHOTOREALISTIC RENDERING */
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.15));
}

#particle-canvas { 
    z-index: 3; 
    pointer-events: none;
    /* CINEMATIC PARTICLE BLUR */
    filter: blur(0.5px) brightness(1.3);
    mix-blend-mode: screen;
    animation: particleGlow 4s ease-in-out infinite;
}

@keyframes particleGlow {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 1;
    }
}

#lighting-canvas { 
    z-index: 4; 
    pointer-events: none;
    /* VOLUMETRIC LIGHTING EFFECTS */
    mix-blend-mode: overlay;
    opacity: 0.92;
    animation: lightingPulse 6s ease-in-out infinite;
}

@keyframes lightingPulse {
    0%, 100% {
        filter: brightness(1) blur(0px);
    }
    50% {
        filter: brightness(1.1) blur(1px);
    }
}

/* HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 0.5));
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}

.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hud-right {
    gap: 8px;
}

#object-count { color: var(--primary); }
#time-display { color: var(--accent); }
#fps-display { color: var(--success); }

.hud-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    width: 30px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.hud-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Command Input */
#command-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(0deg, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.8));
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

#command-history {
    max-height: 120px;
    overflow-y: auto;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.6;
}

#command-history::-webkit-scrollbar {
    width: 4px;
}

#command-history::-webkit-scrollbar-track {
    background: transparent;
}

#command-history::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 2px;
}

.cmd-entry {
    padding: 2px 0;
}

.cmd-entry .cmd-text {
    color: var(--primary);
}

.cmd-entry .cmd-result {
    color: var(--success);
    margin-left: 12px;
}

.cmd-entry .cmd-error {
    color: var(--danger);
    margin-left: 12px;
}

.command-input-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 16px 12px;
    gap: 8px;
}

.command-prompt {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary);
    font-size: 16px;
    text-shadow: var(--glow-primary);
}

#command-input {
    flex: 1;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 16px;
    outline: none;
    transition: all var(--transition-med);
}

#command-input:focus {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: var(--glow-primary);
}

#command-input::placeholder {
    color: var(--text-dim);
    font-style: italic;
}

/* Context Menu */
#context-menu {
    position: absolute;
    z-index: 60;
    background: var(--bg-medium);
    border: 1px solid var(--primary-dim);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#context-menu .context-header {
    padding: 8px 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-dim);
    background: rgba(0, 240, 255, 0.05);
}

#context-menu .context-actions {
    padding: 4px 0;
}

.context-action {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.context-action:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
}

/* =============================================
   PAUSE MENU
   ============================================= */

.pause-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 30px;
    text-shadow: var(--glow-accent);
}

/* =============================================
   HOW TO PLAY
   ============================================= */

.section-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 30px;
    text-align: center;
}

.help-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    color: var(--secondary);
    margin: 24px 0 12px;
    text-shadow: var(--glow-secondary);
}

.help-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 20px;
    padding-left: 20px;
}

.examples code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    padding: 4px 12px;
    border-left: 2px solid var(--primary-dim);
}

.keyword-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 20px;
}

.keyword-item {
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--text-secondary);
}

.keyword-item strong {
    color: var(--primary);
}

/* Item list for How To Play */
.help-content h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: var(--accent);
    margin: 16px 0 6px;
    padding-left: 4px;
}

.item-list {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid var(--primary-dim);
    margin-bottom: 8px;
}

/* =============================================
   CREDITS
   ============================================= */

.credits-content {
    text-align: center;
    margin: 20px 0;
}

.credits-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
}

.credits-content p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 4px 0 20px;
}

.credit-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-role {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.credit-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

.credits-footer {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 20px;
}

/* =============================================
   SETTINGS
   ============================================= */

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.setting-item label {
    font-size: 16px;
    color: var(--text-secondary);
}

.setting-item input[type="range"] {
    -webkit-appearance: none;
    width: 200px;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--glow-primary);
}

.setting-item select {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--primary-dim);
    padding: 6px 12px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.setting-item select:focus {
    border-color: var(--primary);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* =============================================
   SAVE/LOAD
   ============================================= */

.save-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.save-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition-med);
}

.save-slot:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
}

.save-slot.selected {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: var(--glow-primary);
}

.slot-number {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--primary);
}

.slot-info {
    font-size: 13px;
    color: var(--text-dim);
}

.save-load-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* =============================================
   OBJECT SELECTION HIGHLIGHT
   ============================================= */

.object-selected {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* AAA CINEMATIC EFFECTS */
@keyframes filmGrain {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

@keyframes chromaticPulse {
    0%, 100% {
        filter: none;
    }
    50% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 0, 0.1))
                drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.1));
    }
}

/* Film grain overlay for ultra-realistic look */
#game-world::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    opacity: 0.03;
    animation: filmGrain 0.2s infinite;
    z-index: 10;
}

/* Scanline effect for retro-futuristic aesthetic */
#game-world::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 240, 255, 0.01) 2px,
        rgba(0, 240, 255, 0.01) 4px
    );
    z-index: 10;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideUp { animation: slideUp 0.3s ease; }
.animate-pulse { animation: pulse 1s infinite; }
.animate-shake { animation: shake 0.3s ease; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .game-subtitle {
        font-size: 12px;
    }
    
    .menu-btn {
        font-size: 14px;
        padding: 12px 24px;
        min-width: 240px;
    }
    
    .keyword-grid {
        grid-template-columns: 1fr;
    }
    
    #command-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 28px;
    }
    
    .menu-btn {
        min-width: 200px;
    }
}

/* =============================================
   COMMAND OUTPUT
   ============================================= */

.command-output {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 50;
    pointer-events: none;
    white-space: nowrap;
}

.command-output.active {
    opacity: 1;
}

.command-output.success {
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid rgba(0, 255, 102, 0.4);
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.command-output.error {
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid rgba(255, 51, 51, 0.4);
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* =============================================
   CONTEXT MENU
   ============================================= */

#context-menu {
    position: absolute;
    z-index: 60;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
    display: none;
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(10px);
}

#context-menu.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

.context-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: var(--primary);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.context-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.context-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary);
    padding-left: 16px;
}

/* =============================================
   SAVE SLOTS
   ============================================= */

.save-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.save-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.save-slot:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: var(--glow-primary);
}

.save-slot.occupied {
    border-color: rgba(0, 240, 255, 0.4);
}

.save-slot.empty {
    opacity: 0.5;
}

.slot-number {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--primary);
    min-width: 60px;
}

.slot-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.slot-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.slot-date {
    font-size: 11px;
    color: var(--text-dim);
}

.slot-empty {
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
}

.slot-btn {
    padding: 6px 14px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 6px;
}

.slot-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
}

.slot-btn.delete-btn {
    border-color: rgba(255, 51, 51, 0.3);
    background: rgba(255, 51, 51, 0.1);
    color: var(--danger);
}

.slot-btn.delete-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--danger);
}

/* =============================================
   SETTINGS CONTROLS
   ============================================= */

.setting-group {
    margin-bottom: 24px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.setting-group h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-row label {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.setting-row input[type="range"] {
    flex: 2;
    max-width: 180px;
    accent-color: var(--primary);
    margin: 0 12px;
}

.setting-row input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-row select {
    background: var(--bg-medium);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.setting-row select:focus {
    border-color: var(--primary);
    outline: none;
}

.setting-value {
    font-size: 12px;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.setting-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
