:root {
    --bg-dark: #050505;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --font-main: 'Outfit', sans-serif;
    --font-retro: 'Press Start 2P', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: var(--font-main);
    color: white;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

canvas {
    display: block;
    height: 100%;
    max-width: 600px;
    /* Limit width on desktop */
    width: 100%;
    background: #111;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* HUD */
.hud {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    /* Let clicks pass through to canvas */
    font-family: var(--font-retro);
    font-size: 12px;
    text-shadow: 2px 2px 0px #000;
}

.hidden {
    display: none !important;
}

.score-box {
    color: var(--neon-cyan);
}

.speed-box {
    color: var(--neon-pink);
}

.icon-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.panel {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 20, 40, 0.9);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px var(--neon-cyan);
    border-radius: 10px;
    max-width: 90%;
}

h1 {
    font-family: var(--font-retro);
    font-size: 24px;
    color: var(--neon-pink);
    text-shadow: 3px 3px 0px var(--neon-cyan);
    margin-bottom: 20px;
    line-height: 1.5;
}

p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 14px;
}

.cta-btn {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 15px 30px;
    font-family: var(--font-retro);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px var(--neon-pink);
}

.cta-btn:active {
    background: var(--neon-pink);
    color: black;
}

.final-score {
    font-family: var(--font-retro);
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--neon-cyan);
}