/* Breakout */

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

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

/* The canvas keeps its 480x560 backing store and is scaled by CSS; game.js
   maps pointer coordinates back through that scale. */
#canvas {
    width: min(420px, 92vw);
    height: auto;
    aspect-ratio: 480 / 560;
    border-radius: var(--radius-md);
    background: #2b2b33;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Dragging the paddle must not scroll the page on touch. */
    touch-action: none;
    cursor: none;
}

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

.bk-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;
}

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

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