/* Space Shooter — Tema spazio neon */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #050510;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

canvas {
    display: block;
    background: #050510;
}

/* Schermate */
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.95);
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.screen h1 {
    color: #39ff14;
    font-size: 2.5rem;
    text-shadow: 0 0 20px #39ff14;
    margin-bottom: 10px;
}

.screen h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.screen p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 24px;
}

.final-score {
    color: #ffd700 !important;
    font-size: 1.4rem !important;
    font-weight: 700;
}

.game-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #39ff14;
    background: transparent;
    color: #39ff14;
    border-radius: 30px;
    cursor: pointer;
    margin: 6px;
    transition: all 0.3s;
    min-width: 180px;
}

.game-btn:hover, .game-btn:active {
    background: #39ff14;
    color: #050510;
    box-shadow: 0 0 20px rgba(57,255,20,0.5);
}

.game-btn.secondary {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.6);
}

.game-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: white;
    box-shadow: none;
}

.controls-hint {
    margin-top: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* HUD */
#hud {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    z-index: 5;
    pointer-events: none;
}

.hud-score {
    color: #39ff14;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(57,255,20,0.5);
}

.hud-lives {
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.hud-btn {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Power-up indicator */
#powerUpIndicator {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#powerUpIndicator.shield {
    background: rgba(0,150,255,0.2);
    border: 1px solid rgba(0,150,255,0.5);
    color: #00aaff;
}

#powerUpIndicator.double {
    background: rgba(255,100,0,0.2);
    border: 1px solid rgba(255,100,0,0.5);
    color: #ff6600;
}

.hidden { display: none !important; }
