/* NeuroCore: Byte Wars - UI Styling */

/* Canvas and Game Container */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000011 0%, #001122 50%, #000033 100%);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: none; /* Hidden during splash screens */
}

#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #001122;
    border: none;
    box-shadow: none;
    outline: none; /* Remove default focus outline */
}

#gameCanvas:focus {
    outline: 2px solid #00ffff;
    outline-offset: -2px;
}

/* HUD Overlay */
#hudOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    padding: 10px;
    box-sizing: border-box;
}

/* Settings Button */
.settings-button {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45px;
    height: 40px;
    background: rgba(0, 255, 255, 0.25);
    border: 3px solid #00ffff;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 15;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    animation: settingsButtonPulse 2s ease-in-out infinite;
}

.settings-button:hover {
    background: rgba(0, 255, 255, 0.4);
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    transform: scale(1.1);
}

.hamburger-line {
    width: 20px;
    height: 3px;
    background: #00ffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.settings-button:hover .hamburger-line {
    background: #ffffff;
    box-shadow: 0 0 15px #00ffff;
}

@keyframes settingsButtonPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
        border-color: #00ffff;
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        border-color: #44ffff;
    }
}

/* Health Bar Styles */
.health-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    min-height: 60px;
}

.health-panel {
    background: rgba(0, 68, 102, 0.3);
    border: 2px solid #00ffff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.health-label {
    color: #00ffff;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 5px #00ffff;
}

.health-bar {
    width: 100%;
    height: 24px;
    background: #111111;
    border: 2px solid #00ffff;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(to bottom, #00ff00, #00cc00);
    transition: width 0.3s ease;
    position: relative;
}

.health-fill.low {
    background: linear-gradient(to bottom, #00ff00, #00cc00);
}

.health-fill.critical {
    background: linear-gradient(to bottom, #ff0000, #cc0000);
    animation: healthCritical 0.5s ease-in-out infinite alternate;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
}

.health-warning {
    color: #ff0000;
    font-size: 10px;
    margin-top: 4px;
    animation: warningPulse 1s ease-in-out infinite;
}

.shield-indicator {
    color: #ff6600;
    font-size: 11px;
    margin-top: 4px;
    animation: shieldGlow 1s ease-in-out infinite alternate;
}

/* Feedback Link Styles */
.feedback-container {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.feedback-link {
    display: inline-block;
    color: #000000;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.feedback-link:hover {
    background: #f0f0f0;
    border-color: #000000;
}

/* OVERCLOCK BAR STYLES COMPLETELY REMOVED */
/* Overclock functionality still works, but no visual elements exist */
/* This prevents any green bar styling from appearing */

/* Neural Overclock System Styles */
.overclock-container {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 200px;
    min-height: 60px;
}

.overclock-panel {
    background: rgba(68, 0, 102, 0.4);
    border: 2px solid #ff00ff;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}

.overclock-label {
    color: #ff00ff;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 4px #ff00ff;
    text-align: center;
}

.overclock-bar {
    width: 100%;
    height: 20px;
    background: #111111;
    border: 1px solid #ff00ff;
    border-radius: 3px;
    overflow: visible;
    position: relative;
    margin-bottom: 4px;
}

.overclock-fill {
    height: 100%;
    background: linear-gradient(to bottom, #ff00ff, #cc00cc);
    transition: width 0.3s ease;
    width: 0%;
}

.overclock-fill.ready {
    animation: overclockPulse 1s ease-in-out infinite alternate;
}

.overclock-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
    white-space: nowrap;
    z-index: 10;
}

.overclock-ready {
    color: #ff00ff;
    font-size: 11px;
    margin-top: 2px;
    text-align: center;
    font-weight: bold;
    animation: overclockReadyPulse 1s ease-in-out infinite;
    text-shadow: 0 0 3px #ff00ff;
}

.overclock-effects {
    color: #ff00ff;
    font-size: 11px;
    margin-top: 2px;
    text-align: center;
    font-weight: bold;
    animation: overclockActive 0.3s ease-in-out infinite alternate;
    text-shadow: 0 0 3px #ff00ff;
}

/* Dash Indicator Styles */
.dash-container {
    position: absolute;
    top: 140px;
    left: 20px;
    width: 150px;
    min-height: 40px;
}

.dash-panel {
    background: rgba(0, 68, 102, 0.3);
    border: 1px solid #00ffff;
    border-radius: 4px;
    padding: 4px;
}

.dash-label {
    color: #00ffff;
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 2px;
}

.dash-bar {
    width: 100%;
    height: 15px;
    background: #111111;
    border: 1px solid #00ffff;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.dash-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.dash-fill.ready {
    background: linear-gradient(to bottom, #ff6600, #cc4400);
    width: 100%;
}

.dash-fill.cooldown {
    background: linear-gradient(to bottom, #ff6600, #cc4400);
}

.dash-fill.active {
    background: linear-gradient(to bottom, #ffffff, #cccccc);
    width: 100%;
    animation: dashActive 0.2s ease-in-out infinite alternate;
}

.dash-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
}

/* Safe Zone Timer Styles */
.safezone-container {
    position: absolute;
    top: 190px;
    left: 20px;
    width: 180px;
    min-height: 60px;
}

.safezone-panel {
    background: rgba(0, 68, 102, 0.3);
    border: 2px solid #00ff88;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.safezone-panel.cooldown {
    border-color: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.safezone-panel.warning {
    border-color: #ff6600;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
    animation: warningPulse 0.5s ease-in-out infinite alternate;
}

.safezone-label {
    color: #00ff88;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 3px #00ff88;
}

.safezone-label.cooldown {
    color: #ff4444;
    text-shadow: 0 0 3px #ff4444;
}

.safezone-label.warning {
    color: #ff6600;
    text-shadow: 0 0 3px #ff6600;
}

.safezone-bar {
    width: 100%;
    height: 18px;
    background: #111111;
    border: 2px solid #00ff88;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.safezone-bar.cooldown {
    border-color: #ff4444;
}

.safezone-bar.warning {
    border-color: #ff6600;
}

.safezone-fill {
    height: 100%;
    background: linear-gradient(to bottom, #00ff88, #00cc66);
    transition: width 0.2s ease;
}

.safezone-fill.cooldown {
    background: linear-gradient(to bottom, #ff4444, #cc3333);
}

.safezone-fill.warning {
    background: linear-gradient(to bottom, #ff6600, #cc4400);
    animation: warningFill 0.3s ease-in-out infinite alternate;
}

.safezone-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
}

.safezone-status {
    color: #00ff88;
    font-size: 9px;
    margin-top: 4px;
    text-align: center;
}

.safezone-status.cooldown {
    color: #ff4444;
}

.safezone-status.warning {
    color: #ff6600;
}

/* Stats Panel Styles */
.stats-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
}

.stats-panel {
    background: rgba(0, 68, 102, 0.3);
    border: 2px solid #00ffff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.stats-title {
    color: #00ffff;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #00ffff;
}

.stats-item {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px #000000;
}

.stats-item.flash {
    color: #ff6600;
    animation: statFlash 0.3s ease-in-out;
}

/* Wave Information Panel Styles */
.wave-container {
    position: absolute;
    top: 260px;
    left: 20px;
    width: 220px;
}

.wave-panel {
    background: rgba(0, 68, 102, 0.3);
    border: 2px solid #00ffff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.wave-title {
    color: #00ffff;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 0 5px #00ffff;
    text-align: center;
}

.wave-status {
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px #000000;
    text-align: center;
}

.wave-status.preparing {
    color: #00ff00;
}

.wave-status.spawning {
    color: #ff6600;
    animation: statusFlash 1s ease-in-out infinite;
}

.wave-status.active {
    color: #ff0000;
}

.wave-status.completed {
    color: #00ff00;
}

.wave-progress-bar {
    width: 100%;
    height: 16px;
    background: #111111;
    border: 1px solid #00ffff;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 4px;
}

.wave-progress-fill {
    height: 100%;
    background: linear-gradient(to bottom, #00ffff, #0088aa);
    transition: width 0.3s ease;
}

.wave-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
}

.wave-timer {
    color: #cccccc;
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
}

/* Upgrades Panel */
.upgrades-container {
    position: absolute;
    top: 400px;
    left: 20px;
    width: 220px;
}

.upgrades-panel {
    background: rgba(102, 68, 0, 0.3);
    border: 2px solid #ff6600;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

.upgrades-title {
    color: #ff6600;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 0 5px #ff6600;
    text-align: center;
}

.upgrades-list {
    min-height: 20px;
}

.upgrades-empty {
    color: #888888;
    font-size: 10px;
    text-align: center;
    font-style: italic;
}

.upgrade-item {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 3px;
    padding: 4px 6px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-item:last-child {
    margin-bottom: 0;
}

.upgrade-item-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.upgrade-item-info {
    flex: 1;
    min-width: 0;
}

.upgrade-item-name {
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upgrade-item-level {
    color: #ff6600;
    font-size: 9px;
    margin-top: 1px;
}

@keyframes statusFlash {
    0% { opacity: 0.8; }
    100% { opacity: 1.0; }
}

@keyframes completedFlash {
    0% { opacity: 1.0; }
    50% { opacity: 0.5; }
    100% { opacity: 1.0; }
}

@keyframes statusFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Mini Map Styles */
.minimap-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 140px;
}

.minimap-panel {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 4px;
    position: relative;
}

.minimap-title {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    font-size: 10px;
    font-weight: bold;
}

/* Game Over Screen */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.game-over-title {
    color: #ff0000;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff0000;
    animation: gameOverPulse 2s ease-in-out infinite;
}

.game-over-stats {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;    text-shadow: 1px 1px 2px #000000;
}

.game-over-instructions {
    margin-top: 40px;
}

.game-over-instruction {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: instructionBlink 1.5s ease-in-out infinite;
}

.game-over-instruction:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes healthCritical {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shieldGlow {
    0% { text-shadow: 0 0 5px #ff6600; }
    100% { text-shadow: 0 0 15px #ff6600; }
}

/* overclockPulse animation removed */
@keyframes remainingAnimation {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes readyPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes activePulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes readyBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes dashActive {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes statFlash {
    0% { color: #ffffff; }
    50% { color: #ff6600; transform: scale(1.1); }
    100% { color: #ffffff; }
}

@keyframes gameOverPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes instructionBlink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.4; }
}

@keyframes warningFill {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes overclockPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes overclockReadyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes overclockActive {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

/* Settings Overlay Styles */
.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.settings-overlay.hidden {
    display: none;
}

.settings-panel {
    background: linear-gradient(135deg, rgba(0, 68, 102, 0.95) 0%, rgba(0, 34, 68, 0.95) 100%);
    border: 3px solid #00ffff;
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    animation: settingsSlideIn 0.3s ease-out;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 2px solid #00ffff;
}

.settings-title {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
}

.settings-close {
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #ff4444;
    transform: scale(1.1);
}

.settings-content {
    padding: 20px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option label {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.settings-checkbox {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #00ffff;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.settings-checkbox:checked {
    background: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.settings-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.settings-select {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 4px;
    color: #ffffff;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.settings-select:hover,
.settings-select:focus {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.settings-select option {
    background: #002244;
    color: #ffffff;
}

.settings-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-item {
    color: #ffffff;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.settings-footer {
    padding: 20px 30px;
    background: rgba(0, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    text-align: center;
}

.settings-instruction {
    color: #aaaaaa;
    font-size: 14px;
    font-style: italic;
}

/* Settings content scrollbar */
.settings-content::-webkit-scrollbar {
    width: 8px;
}

.settings-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

@keyframes settingsSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Upgrade Menu Overlay Styles */
.upgrade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 40;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.upgrade-overlay.hidden {
    display: none;
}

.upgrade-panel {
    background: linear-gradient(135deg, rgba(0, 68, 102, 0.95) 0%, rgba(0, 34, 68, 0.95) 100%);
    border: 3px solid #ff6600;
    border-radius: 12px;
    width: 700px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.6);
    animation: upgradeSlideIn 0.4s ease-out;
}

.upgrade-header {
    background: linear-gradient(90deg, #664400 0%, #886600 100%);
    border-bottom: 2px solid #ff6600;
    padding: 20px 30px;
    text-align: center;
}

.upgrade-title {
    color: #ff6600;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 15px #ff6600;
    animation: upgradeGlow 2s ease-in-out infinite alternate;
}

.upgrade-subtitle {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
}

.upgrade-content {
    padding: 30px;
}

.upgrade-choices {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.upgrade-choice {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 170, 170, 0.1) 100%);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upgrade-choice:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 170, 170, 0.2) 100%);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.upgrade-choice:active {
    transform: translateY(0) scale(0.98);
}

.upgrade-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.upgrade-name {
    color: #00ffff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #00ffff;
}

.upgrade-description {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    opacity: 0.9;
}

.upgrade-level {
    color: #ff6600;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(255, 102, 0, 0.2);
    border: 1px solid #ff6600;
    border-radius: 4px;
    display: inline-block;
}

.upgrade-footer {
    background: linear-gradient(90deg, #664400 0%, #886600 100%);
    border-top: 2px solid #ff6600;
    padding: 15px 30px;
    text-align: center;
}

.upgrade-instruction {
    color: #ff6600;
    font-size: 14px;
    font-weight: bold;
    animation: instructionBlink 1.5s ease-in-out infinite;
}

@keyframes upgradeSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes upgradeGlow {
    from {
        text-shadow: 0 0 15px #ff6600;
    }
    to {
        text-shadow: 0 0 25px #ff6600, 0 0 35px #ff6600;
    }
}

/* Changelog Overlay Styles */
.changelog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 35;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.changelog-overlay.hidden {
    display: none;
}

.changelog-panel {
    background: linear-gradient(135deg, rgba(0, 68, 102, 0.95) 0%, rgba(0, 34, 68, 0.95) 100%);
    border: 3px solid #00ffff;
    border-radius: 12px;
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    animation: changelogSlideIn 0.3s ease-out;
}

.changelog-header {
    background: linear-gradient(90deg, #004466 0%, #006688 100%);
    border-bottom: 2px solid #00ffff;
    padding: 20px 30px;
    text-align: center;
}

.changelog-title {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 15px #00ffff;
}

.changelog-version {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
}

.changelog-content {
    padding: 20px 30px;
    max-height: 50vh;
    overflow-y: auto;
}

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

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-section-title {
    color: #00ffff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00ffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.changelog-item {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 10px;
    opacity: 0.95;
}

.changelog-footer {
    background: rgba(0, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 15px 30px;
    text-align: center;
}

.changelog-instruction {
    color: #00ffff;
    font-size: 14px;
    font-weight: bold;
    animation: instructionBlink 1.5s ease-in-out infinite;
}

/* Changelog content scrollbar */
.changelog-content::-webkit-scrollbar {
    width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

@keyframes changelogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Help System Overlay Styles */
.help-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 36;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.help-overlay.hidden {
    display: none;
}

.help-panel {
    background: linear-gradient(135deg, rgba(68, 0, 102, 0.95) 0%, rgba(34, 0, 68, 0.95) 100%);
    border: 3px solid #ff00ff;
    border-radius: 12px;
    width: 700px;
    max-width: 95vw;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6);
    animation: helpSlideIn 0.3s ease-out;
}

.help-header {
    background: linear-gradient(90deg, #440066 0%, #660088 100%);
    border-bottom: 2px solid #ff00ff;
    padding: 20px 30px;
    text-align: center;
}

.help-title {
    color: #ff00ff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 15px #ff00ff;
}

.help-version {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
}

.help-content {
    padding: 20px 30px;
    max-height: 55vh;
    overflow-y: auto;
}

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

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    color: #ff00ff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #ff00ff;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding-bottom: 5px;
}

.help-item {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 10px;
    opacity: 0.95;
}

.help-footer {
    background: rgba(255, 0, 255, 0.05);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    padding: 15px 30px;
    text-align: center;
}

.help-instruction {
    color: #ff00ff;
    font-size: 14px;
    font-weight: bold;
    animation: instructionBlink 1.5s ease-in-out infinite;
}

/* Help content scrollbar */
.help-content::-webkit-scrollbar {
    width: 8px;
}

.help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.help-content::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 255, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}

@keyframes helpSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pause Overlay Styles */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.pause-overlay.hidden {
    display: none;
}

.pause-panel {
    background: linear-gradient(135deg, rgba(0, 68, 102, 0.95) 0%, rgba(0, 34, 68, 0.95) 100%);
    border: 3px solid #ff6600;
    border-radius: 12px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.6);
    animation: pauseSlideIn 0.3s ease-out;
}

.pause-title {
    color: #ff6600;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ff6600;
}

.pause-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pause-instruction {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pause-instruction:hover {
    background: rgba(255, 102, 0, 0.2);
    transform: translateY(-2px);
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.pause-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 68, 102, 0.4) 0%, rgba(0, 34, 68, 0.4) 100%);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.pause-button.primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(0, 170, 170, 0.3) 100%);
    border-width: 3px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.pause-button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4) 0%, rgba(0, 170, 170, 0.4) 100%);
    border-color: #00ffff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.pause-button:active {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.pause-btn-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pause-btn-text {
    flex: 1;
    text-align: center;
}

@keyframes pauseSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #101216;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Hidden by default */
    animation: splashFadeIn 0.5s ease-out;
}

/* Show splash screen when active */
.splash-screen.active {
    display: flex;
    animation: splashFadeIn 1s ease-out;
}

.splash-screen.fade-out {
    animation: splashFadeOut 1s ease-in-out forwards;
}

.splash-screen.fade-in {
    display: flex !important;
    animation: splashFadeIn 1s ease-out forwards;
}

.splash-content {
    text-align: center;
    animation: splashContentSlide 1.5s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.splash-logo {
    width: 600px;
    height: auto;
    max-width: 80vw;
    max-height: 50vh;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(232, 213, 196, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
    object-fit: contain;
}

.splash-subtitle {
    color: #e8d5c4;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 4px;
    opacity: 0.9;
    animation: subtitleFade 2s ease-out 0.5s both;
    text-shadow: 0 0 10px rgba(232, 213, 196, 0.5);
}

.splash-loading {
    margin-top: 20px;
    animation: loadingFade 2s ease-out 1s both;
}

.loading-squares {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-square {
    width: 14px;
    height: 14px;
    background: #e8d5c4;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(232, 213, 196, 0.6);
    animation: squareBounce 1.4s ease-in-out infinite both;
}

.loading-square:nth-child(1) { animation-delay: -0.32s; }
.loading-square:nth-child(2) { animation-delay: -0.16s; }
.loading-square:nth-child(3) { animation-delay: 0; }

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
        visibility: hidden;
    }
}

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

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 30px rgba(232, 213, 196, 0.4));
    }
    to {
        filter: drop-shadow(0 0 50px rgba(232, 213, 196, 0.8));
    }
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

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

@keyframes squareBounce {
    0%, 80%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0.3;
    }
    40% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

/* Skip Intro Button */
.skip-intro-button {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 170, 170, 0.15) 100%);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: skipButtonFadeIn 0.5s ease-out 1s forwards;
}

.skip-intro-button.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.skip-intro-button .skip-icon {
    font-size: 16px;
    display: inline-block;
    animation: skipIconPulse 1.5s ease-in-out infinite;
}

.skip-intro-button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25) 0%, rgba(0, 170, 170, 0.25) 100%);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        0 4px 15px rgba(0, 255, 255, 0.3);
}

.skip-intro-button:active {
    transform: translateY(0);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4);
}

@keyframes skipButtonFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

@keyframes skipIconPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* Game Logo Splash Screen Styles */
.game-logo {
    width: 700px;
    max-width: 85vw;
    max-height: 60vh;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
    animation: gameLogoEntrance 2s ease-out;
}

@keyframes gameLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-15deg);
        filter: drop-shadow(0 0 50px rgba(0, 255, 255, 0.8));
    }
    50% {
        transform: scale(1.05) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.6));
    }
}

/* ALL OVERCLOCK CSS REMOVED - No visual elements exist */

/* Difficulty Selection Screen */
.difficulty-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.95) 0%, rgba(0, 34, 68, 0.95) 50%, rgba(0, 0, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.difficulty-container {
    max-width: 1000px;
    width: 90%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 34, 68, 0.4) 100%);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;
}

.difficulty-title {
    font-size: 36px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.difficulty-subtitle {
    font-size: 16px;
    color: #88ccff;
    margin-bottom: 30px;
    opacity: 0.8;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.difficulty-option {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 17, 34, 0.6) 100%);
    border: 2px solid #004488;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.difficulty-option:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.difficulty-option:hover::before {
    left: 100%;
}

.difficulty-option * {
    position: relative;
    z-index: 2;
}

.difficulty-emoji {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.difficulty-name {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.difficulty-description {
    font-size: 13px;
    color: #88ccff;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.difficulty-stats {
    font-size: 12px;
    color: #aaccee;
}

.stat-item {
    margin: 3px 0;
    padding: 2px 8px;
    background: rgba(0, 68, 136, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(0, 136, 255, 0.3);
}

/* Difficulty-specific styling */
.difficulty-option[data-difficulty="easy"]:hover {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.difficulty-option[data-difficulty="medium"]:hover {
    border-color: #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.difficulty-option[data-difficulty="hard"]:hover {
    border-color: #ff4400;
    box-shadow: 0 0 20px rgba(255, 68, 0, 0.3);
}

.difficulty-option[data-difficulty="extreme"]:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.difficulty-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.difficulty-hint {
    font-size: 14px;
    color: #88ccff;
    opacity: 0.7;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .difficulty-container {
        width: 95%;
        padding: 20px;
    }
    
    .difficulty-title {
        font-size: 28px;
    }
    
    .difficulty-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .difficulty-option {
        padding: 15px;
    }
    
    .difficulty-emoji {
        font-size: 40px;
    }
    
    .difficulty-name {
        font-size: 18px;
    }
    
    .difficulty-description {
        height: auto;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .difficulty-logo {
        width: 120px;
    }
    
    .difficulty-title {
        font-size: 24px;
    }
    
    .difficulty-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .difficulty-option {
        padding: 10px;
    }
    
    .difficulty-emoji {
        font-size: 36px;
    }
    
    .difficulty-name {
        font-size: 16px;
    }
    
    .difficulty-description {
        height: auto;
        min-height: 50px;
    }
}

/* Audio prompt animation */
@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

/* Audio Prompt Overlay Styles */
.audio-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than splash screens */
    backdrop-filter: blur(10px);
    animation: audioPromptFadeIn 0.5s ease-out;
}

.audio-prompt.hidden {
    display: none;
}

.audio-prompt-content {
    background: linear-gradient(135deg, 
        rgba(0, 68, 102, 0.95) 0%, 
        rgba(0, 34, 68, 0.95) 50%, 
        rgba(0, 17, 34, 0.95) 100%);
    border: 3px solid #00ffff;
    border-radius: 15px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: audioPromptSlideIn 0.4s ease-out 0.1s both;
    max-width: 500px;
    width: 90%;
}

.audio-prompt-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: audioIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

.audio-prompt-title {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.audio-prompt-text {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.4;
    opacity: 0.9;
}

.audio-prompt-button {
    background: linear-gradient(135deg, #00ffff 0%, #0088aa 100%);
    color: #001122;
    border: 2px solid #00ffff;
    padding: 12px 24px;
    margin: 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    min-width: 160px;
}

.audio-prompt-button:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00aacc 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.6),
        0 4px 15px rgba(0, 255, 255, 0.3);
}

.audio-prompt-button:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.audio-prompt-button.secondary {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 255, 0.1) 100%);
    color: #00ffff;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.audio-prompt-button.secondary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.2) 100%);
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        0 4px 15px rgba(0, 255, 255, 0.2);
}

/* Audio Prompt Animations */
@keyframes audioPromptFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes audioPromptSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes audioIconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
    }
}

/* Responsive adjustments for audio prompt */
@media (max-width: 768px) {
    .audio-prompt-content {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .audio-prompt-title {
        font-size: 20px;
    }
    
    .audio-prompt-text {
        font-size: 14px;
    }
    
    .audio-prompt-button {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 140px;
    }
}

/* ===================================
   HOME SCREEN STYLES
   =================================== */

.home-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-screen.hidden {
    display: none;
}

/* Animated Background */
.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000a1a 0%, #001133 50%, #000522 100%);
    overflow: hidden;
}

.home-background .animated-waves {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.animated-wave {
    position: absolute;
    left: 0; width: 200%; height: 180px;
    opacity: 0.18;
    background: linear-gradient(90deg, #00eaff 0%, #0055ff 100%);
    filter: blur(16px);
    border-radius: 100% 100% 0 0 / 80% 80% 0 0;
    animation: waveMove 12s linear infinite;
}
.animated-wave.wave2 {
    top: 30%;
    opacity: 0.12;
    background: linear-gradient(90deg, #0055ff 0%, #00eaff 100%);
    animation-delay: 3s;
    animation-duration: 16s;
}
.animated-wave.wave3 {
    top: 60%;
    opacity: 0.10;
    background: linear-gradient(90deg, #00eaff 0%, #0055ff 100%);
    animation-delay: 6s;
    animation-duration: 20s;
}

@keyframes waveMove {
    0% { transform: translateX(-25%) scaleY(1); }
    50% { transform: translateX(0%) scaleY(1.08); }
    100% { transform: translateX(-25%) scaleY(1); }
}

/* Make sure .cyber-grid and .neural-particles are above the waves */
.cyber-grid, .neural-particles { z-index: 2; }

/* Make sure .home-content is above everything */
.home-content { z-index: 10; }

/* Logo Container */
.home-logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

/* Add glowing ring behind logo */
.home-logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoRingPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoRingPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.home-logo {
    width: 320px;
    max-width: 75vw;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.5));
    animation: logoGlowPulse 3s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 50px rgba(0, 255, 255, 0.8)); }
}

.home-tagline {
    color: #00aaff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 20px;
    text-shadow: 
        0 0 10px rgba(0, 170, 255, 0.8),
        0 0 20px rgba(0, 170, 255, 0.4);
    animation: taglinePulse 3s ease-in-out infinite;
    background: linear-gradient(45deg, #00aaff, #00ffff, #00aaff);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: taglineShimmer 4s ease-in-out infinite;
}

@keyframes taglineShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.9;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

/* Home Menu Buttons */
.home-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 40px;
    animation: menuSlideIn 1s ease-out 0.5s both;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-button {
    opacity: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.85) 0%, rgba(0, 40, 80, 0.85) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.home-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 170, 255, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.home-button:hover::before {
    left: 100%;
}

.home-button:hover::after {
    opacity: 1;
}

.home-button.primary {
    background: linear-gradient(135deg, #00eaff 0%, #0055ff 100%);
    color: #fff;
    border: 3px solid #00eaff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 40px 10px rgba(0,255,255,0.25), 0 0 0 2px #00eaff, 0 8px 32px rgba(0, 170, 255, 0.5);
    filter: brightness(1.2) saturate(1.2);
    padding: 28px 48px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    animation: playButtonPulse 2s infinite cubic-bezier(.4,0,.2,1);
    transition: box-shadow 0.3s, background 0.3s, transform 0.2s;
}

.home-button.primary:hover {
    background: linear-gradient(135deg, #00ffff 0%, #0077ff 100%);
    box-shadow: 0 0 60px 20px #00eaff, 0 0 0 3px #00eaff, 0 12px 40px rgba(0,255,255,0.5);
    transform: scale(1.06) translateY(-4px);
    filter: brightness(1.3) saturate(1.3);
}

@keyframes playButtonPulse {
    0%, 100% { box-shadow: 0 0 40px 10px #00eaff44, 0 0 0 2px #00eaff, 0 8px 32px #00aaff55; }
    50% { box-shadow: 0 0 80px 30px #00eaff99, 0 0 0 4px #00eaff, 0 16px 64px #00aaff99; }
}

/* Home Footer */
.home-footer {
    text-align: center;
    color: #88aacc;
    font-size: 12px;
    line-height: 1.8;
    animation: footerFadeIn 1s ease-out 1s both;
    background: rgba(0, 20, 40, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.home-version {
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 600;
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.home-studio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-text {
    opacity: 0.7;
    font-size: 11px;
}

.studio-name {
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: studioNameGlow 3s ease-in-out infinite;
}

@keyframes studioNameGlow {
    0%, 100% { 
        color: #00ffff;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% { 
        color: #ffffff;
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    }
}

/* Responsive Design for Home Screen */
@media (max-width: 768px) {
    .home-content {
        padding: 30px 20px;
        max-width: 90%;
        margin: 20px;
    }
    
    .home-logo {
        width: 220px;
        max-width: 75vw;
    }
    
    .home-tagline {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .home-menu {
        max-width: 100%;
        gap: 14px;
    }
    
    .home-button {
        padding: 16px 20px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .home-button.primary {
        padding: 18px 25px;
        font-size: 15px;
    }
    
    .button-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .home-footer {
        padding: 15px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 20px 15px;
    }
    
    .home-logo {
        width: 180px;
    }
    
    .home-tagline {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .home-button {
        padding: 14px 18px;
        font-size: 13px;
        gap: 12px;
    }
    
    .button-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* =====================================================
   IN-GAME FEEDBACK POPUP STYLES
   ===================================================== */

.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.feedback-popup {
    background: linear-gradient(135deg, rgba(15, 25, 40, 0.95) 0%, rgba(25, 40, 60, 0.95) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.2);
    animation: popupSlideIn 0.4s ease-out;
}

.feedback-header {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.feedback-title {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.feedback-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.close-feedback-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: #ff6b6b;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.close-feedback-btn:hover {
    background: rgba(255, 50, 50, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.4);
}

.feedback-success {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
}

.feedback-success h3 {
    color: #00ff88;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.feedback-success p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
    font-size: 14px;
}

.continue-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    border: none;
    color: #003311;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.ingame-feedback-form .form-group {
    margin-bottom: 20px;
}

.ingame-feedback-form .form-label {
    display: block;
    color: #00ffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.ingame-feedback-form .form-input,
.ingame-feedback-form .form-select,
.ingame-feedback-form .form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20, 30, 50, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ingame-feedback-form .form-input:focus,
.ingame-feedback-form .form-select:focus,
.ingame-feedback-form .form-textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(25, 35, 55, 0.9);
}

.ingame-feedback-form .form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.ingame-feedback-form .form-input::placeholder,
.ingame-feedback-form .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.cancel-btn,
.submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-btn {
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(150, 150, 150, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.cancel-btn:hover {
    background: rgba(100, 100, 100, 0.3);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #00ffff 0%, #0088cc 100%);
    color: #001122;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-link {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.feedback-link:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Popup animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .feedback-popup {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .feedback-title {
        font-size: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}


