/* Styles specific to the canvas page and HUD overlay. */
.canvas-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 30% 20%, rgba(142, 230, 255, 0.07), transparent 45%), radial-gradient(circle at 70% 30%, rgba(255, 157, 115, 0.08), transparent 40%), #070a16;
    box-shadow: var(--shadow);
}

#game-canvas {
    width: 100%;
    display: block;
    background: transparent;
}

.hud {
    position: absolute;
    inset: 0;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.6rem;
    pointer-events: none;
}

.hud-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    color: var(--text);
    min-width: 80px;
}

.hud-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.hud-item strong {
    display: block;
    font-size: 1.2rem;
}

.game-over {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(4, 6, 15, 0.8);
    backdrop-filter: blur(6px);
    color: var(--text);
}

.game-over-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.final-score {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.game-over-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.touch-controls {
    display: none;
    gap: 0.4rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.touch-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem;
    border-radius: 12px;
    min-width: 56px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.touch-row {
    display: flex;
    gap: 0.4rem;
}

@media (max-width: 700px) {
    .touch-controls {
        display: flex;
        flex-direction: column;
    }

    .hud {
        gap: 0.4rem;
    }
}
