:root {
    --bg-color: #050505;
    --text-color: #fff;
    --accent-color: #00f2ff;
    --danger-color: #ff0055;
    --success-color: #00ff88;
    --font-game: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-game);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    /* Aspect ratio control if needed, but full screen is immersive */
    max-height: 100vh;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    text-align: center;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.danger {
    color: var(--danger-color);
    text-shadow: 0 0 10px var(--danger-color);
}

.success {
    color: var(--success-color);
    text-shadow: 0 0 10px var(--success-color);
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.difficulty-select {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2rem;
    font-family: var(--font-game);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    border-radius: 5px;
}

.btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.control-select {
    margin-bottom: 2rem;
    text-align: center;
}

.control-label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #aaa;
}

.radio-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.radio-btn input {
    display: none;
}

.radio-visual {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    color: #888;
}

.radio-btn input:checked+.radio-visual {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 2rem;
    transition: 0.3s;
}

.back-link:hover {
    color: #fff;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
    font-size: 1.5rem;
    text-shadow: 0 0 5px #000;
}