/* Bubble Shooter */

.bs-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    user-select: none;
}

.bs-hud {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    font-variant-numeric: tabular-nums;
}

/* Backing store stays 420x520; game.js maps pointer coords through the scale. */
#canvas {
    width: min(400px, 92vw);
    height: auto;
    aspect-ratio: 420 / 520;
    border-radius: var(--radius-md);
    background: #2b2b33;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Aiming by dragging must not scroll the page. */
    touch-action: none;
    cursor: crosshair;
}

.bs-feedback {
    min-height: 1.4em;
    margin: 0;
    font-weight: 600;
    color: var(--color-text-light);
    text-align: center;
}

.bs-btn {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bs-btn:hover { background: var(--color-primary-dark); }
.bs-btn:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

/* Mid-game the button would only steal the pointer away from aiming. */
.state-playing .bs-btn { visibility: hidden; }
