@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
}

canvas {
    display: block;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.3),
                0 0 120px rgba(0, 217, 255, 0.2);
}

/* UI Overlay */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.ui-overlay > * {
    pointer-events: auto;
}

/* Menu Styles */
.menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid #39FF14;
    border-radius: 20px;
    padding: 40px 60px;
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.5),
                inset 0 0 20px rgba(57, 255, 20, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
}

.menu h1 {
    font-size: 48px;
    color: #39FF14;
    text-shadow: 0 0 20px #39FF14, 0 0 40px #39FF14;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 3px;
}

.menu .subtitle {
    font-size: 16px;
    color: #00D9FF;
    text-shadow: 0 0 10px #00D9FF;
    margin-bottom: 30px;
    opacity: 0.8;
}

.menu-button {
    display: block;
    width: 280px;
    padding: 15px 30px;
    margin: 15px auto;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    background: linear-gradient(135deg, #39FF14 0%, #00FF88 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.8);
    background: linear-gradient(135deg, #00FF88 0%, #39FF14 100%);
}

.menu-button.secondary {
    background: linear-gradient(135deg, #00D9FF 0%, #0088FF 100%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.menu-button.secondary:hover {
    background: linear-gradient(135deg, #0088FF 0%, #00D9FF 100%);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
}

.menu-button.danger {
    background: linear-gradient(135deg, #FF1744 0%, #FF4488 100%);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.menu-button.danger:hover {
    background: linear-gradient(135deg, #FF4488 0%, #FF1744 100%);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
}

/* Settings Panel */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.setting-item {
    text-align: left;
}

.setting-item label {
    display: block;
    color: #00D9FF;
    font-size: 14px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #00D9FF;
}

.setting-item select,
.setting-item input[type="range"] {
    width: 100%;
    padding: 8px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid #39FF14;
    border-radius: 5px;
    color: #39FF14;
    font-family: 'Orbitron', monospace;
}

.setting-item input[type="range"] {
    accent-color: #39FF14;
}

/* Stats Display */
.stats-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid #39FF14;
    border-radius: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    color: #00D9FF;
    font-size: 14px;
    margin: 8px 0;
    text-shadow: 0 0 5px #00D9FF;
}

.stat-row .label {
    opacity: 0.8;
}

.stat-row .value {
    color: #39FF14;
    font-weight: 700;
    text-shadow: 0 0 10px #39FF14;
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 100px;
    right: -400px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transition: right 0.5s ease;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.achievement-popup.show {
    right: 20px;
}

.achievement-popup h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #FFD700;
}

.achievement-popup p {
    color: #00D9FF;
    font-size: 14px;
    text-shadow: 0 0 5px #00D9FF;
}

/* Hidden class */
.hidden {
    display: none !important;
}