/* =================================================================
   CAPY//OS — game.css
   "Stay Unbothered" layout: HUD, canvas wrapper, overlay, controls.
   ================================================================= */

.game-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    height: 100%;
}

.game-hud {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-1) 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.game-hud-item strong {
    font-family: var(--font-mono);
}

.game-mascot-expr {
    width: 36px;
    height: 36px;
    margin-left: auto;
    object-fit: contain;
}

.game-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 240px;
    border: 2px solid var(--border-ink);
    border-radius: var(--radius-md);
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(36, 26, 20, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
}

.game-overlay.is-hidden {
    display: none;
}

.game-overlay-card {
    background: var(--bg-window);
    border: 2px solid var(--border-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-window);
    padding: var(--sp-4);
    max-width: 320px;
    text-align: center;
}

.game-overlay-card h3 {
    margin: 0 0 var(--sp-2);
    font-family: var(--font-display);
}

.game-controls-row {
    display: flex;
    gap: var(--sp-2);
    justify-content: center;
}

.game-touch-controls {
    display: none;
    gap: var(--sp-3);
    justify-content: center;
    padding: var(--sp-2) 0;
}

.game-touch-btn {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
    justify-content: center;
}

/* Touch controls only shown on coarse-pointer (touch) devices */
@media (pointer: coarse) {
    .game-touch-controls {
        display: flex;
    }
}
