/* Game page layout */
.game-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}

.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--color-panel);
    border-bottom: 1px solid var(--color-border);
}

.game-header h2 {
    font-family: var(--font-retro);
    font-size: 0.7rem;
    color: var(--color-vector);
    letter-spacing: 2px;
}

.game-controls-hint {
    font-size: 0.75rem;
    color: #666;
}

.game-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.game-container canvas {
    display: block;
    background: #000;
}

/* HUD overlay */
.game-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-retro);
    font-size: 0.7rem;
}

.hud-score {
    color: var(--color-vector);
}

.hud-lives {
    color: var(--color-vector);
}

/* Game over overlay */
.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.game-overlay h2 {
    font-family: var(--font-retro);
    font-size: 1.5rem;
    color: var(--color-vector);
    margin-bottom: 1rem;
}

.game-overlay p {
    font-family: var(--font-retro);
    font-size: 0.6rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.game-overlay .final-score {
    font-size: 0.8rem;
    color: var(--color-vector);
    margin-bottom: 2rem;
}

/* Pause indicator */
.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-retro);
    font-size: 1rem;
    color: var(--color-vector);
    letter-spacing: 4px;
    z-index: 10;
}

/* Touch controls */
.touch-controls {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.5rem;
    pointer-events: none;
    z-index: 20;
}

.touch-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    pointer-events: none;
}

.touch-group-center {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.touch-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-retro);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
}

.touch-btn-fire {
    width: 70px;
    height: 70px;
    font-size: 0.55rem;
    border-color: rgba(255, 80, 80, 0.4);
}

.touch-btn-special {
    font-size: 0.45rem;
    width: 50px;
    height: 50px;
    border-color: rgba(80, 180, 255, 0.4);
}

.touch-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (pointer: coarse) {
    .touch-controls {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .game-controls-hint {
        display: none;
    }
}

/* CRT effect (optional) */
.crt-effect canvas {
    filter: contrast(1.1) brightness(0.95);
}

.crt-effect canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}
