.game-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1rem 3rem;
    min-height: calc(100vh - 60px);
}

.game-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent2, #a066ff);
    margin-bottom: 0.5rem;
}

.game-heading {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.4rem;
}

.game-heading span {
    color: var(--accent, #4f8fff);
}

.game-sub {
    font-size: 0.82rem;
    color: var(--text2, #94a3b8);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

/* HUD */
.hud {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hud-label {
    color: var(--text2, #94a3b8);
    font-size: 0.6rem;
}

.hud-value {
    color: var(--accent, #4f8fff);
    font-size: 1rem;
    font-weight: 700;
}

.hud-value.lives {
    color: #f87171;
}

.hud-value.score {
    color: #4f8fff;
}

.hud-value.level {
    color: #a066ff;
}

.hud-value.combo {
    color: #fbbf24;
}

/* Canvas wrapper */
.canvas-wrapper {
    position: relative;
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(79, 143, 255, 0.08),
        0 0 40px rgba(79, 143, 255, 0.06);
}

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

/* Overlays */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(2px);
    z-index: 10;
    gap: 1.2rem;
}

.overlay-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #e2e8f0;
}

.overlay-title span {
    color: #4f8fff;
}

.overlay-title.danger {
    color: #f87171;
}

.overlay-score {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.8;
}

.overlay-score strong {
    color: #fbbf24;
    font-size: 1.1rem;
}

.btn-start {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    padding: 0.65rem 2rem;
    border: 1px solid rgba(79, 143, 255, 0.5);
    background: rgba(79, 143, 255, 0.1);
    color: #4f8fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-start:hover {
    background: rgba(79, 143, 255, 0.2);
    border-color: rgba(79, 143, 255, 0.8);
    box-shadow: 0 0 16px rgba(79, 143, 255, 0.2);
}

.ship-preview {
    font-size: 2.5rem;
    line-height: 1;
}

/* Controls hint */
.controls-hint {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ctrl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text2, #94a3b8);
}

.key {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 3px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.05);
}

/* mobile controls */
.mobile-controls {
    display: none;
    gap: 1rem;
    margin-top: 1.2rem;
    align-items: center;
}

.mobile-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(79, 143, 255, 0.35);
    background: rgba(79, 143, 255, 0.08);
    color: #4f8fff;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.1s;
}

.mobile-btn:active {
    background: rgba(79, 143, 255, 0.2);
}

.mobile-btn.fire-btn {
    border-color: rgba(160, 102, 255, 0.5);
    background: rgba(160, 102, 255, 0.1);
    color: #a066ff;
}

.mobile-btn.fire-btn:active {
    background: rgba(160, 102, 255, 0.25);
}

@media (max-width: 520px) {
    .mobile-controls {
        display: flex;
    }

    .controls-hint {
        display: none;
    }

    #gameCanvas {
        width: 340px !important;
        height: 480px !important;
    }

    .canvas-wrapper {
        width: 340px;
    }
}

/* back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.8rem;
    font-size: 0.78rem;
    color: var(--text2, #94a3b8);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    font-family: 'Orbitron', monospace;
}

.back-link:hover {
    color: var(--accent, #4f8fff);
}