/* Global Styles, Layout, Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    padding: 10px;
}

#gameTitle {
    font-size: 4em;
    color: #000;
    text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
    margin-bottom: 20px;
    animation: titleGlow 2s ease-in-out infinite;
    text-align: center;
    font-weight: bold;
    letter-spacing: 4px;
    margin-left: 0px;
    transition: margin-left 0.3s;
}

#gameTitle.with-hud {
    margin-left: 235px;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px #0ff, 0 0 40px #0ff; }
    50% { text-shadow: 0 0 30px #0ff, 0 0 60px #0ff, 0 0 80px #0ff; }
}

#gameWrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

#mainContent {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    justify-content: center;
}

#gameContainer {
    position: relative;
    background: #000;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    border: 3px solid #0ff;
    display: inline-block;
    box-sizing: border-box;
}

canvas {
    display: block;
    background: #000;
    max-width: 100%;
    height: auto;
}

.hidden { display: none !important; }

h1 {
    font-size: 3em;
    color: #0ff;
    text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite;
}

h2 { font-size: 1.5em; color: #0ff; margin-bottom: 20px; }

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px #0ff, 0 0 40px #0ff; }
    50% { text-shadow: 0 0 30px #0ff, 0 0 60px #0ff, 0 0 80px #0ff; }
}

button {
    background: linear-gradient(45deg, #0ff, #00bfff);
    border: none;
    color: #000;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

button:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
button:disabled { opacity: 0.3; cursor: not-allowed; }

.version-tag {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: #0ff;
    font-size: 0.8em;
    opacity: 0.5;
    z-index: 1000;
}

.volume-control { position: fixed; top: 20px; right: 20px; z-index: 1000; }

.volume-button {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #0ff;
    color: #0ff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.volume-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 20, 40, 0.98);
    border: 2px solid #0ff;
    min-width: 150px;
    display: none;
    flex-direction: column;
}

.volume-dropdown.show { display: flex; }

.volume-option {
    padding: 15px 20px;
    color: #0ff;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.volume-option:last-child { border-bottom: none; }
.volume-option:hover { background: rgba(0, 255, 255, 0.2); }

.volume-option.active {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    font-weight: bold;
}

.volume-option.active::after { content: '✓'; margin-left: 10px; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
