/* ==========================================
   TECHPHILE ARCADE - BRICK BREAKER
========================================== */

.login-games {
    margin: 0 0 18px;
}

.game-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.game-heading strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

.game-heading span:not(.game-live) {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .76rem;
}

.game-live {
    padding: 6px 11px;
    border-radius: 20px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
}

/* Scoreboard */

.game-scoreboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 10px;
}

.game-scoreboard > div {
    padding: 9px 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f7f9fd;
    text-align: center;
}

.game-scoreboard span {
    display: block;
    color: var(--soft);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.game-scoreboard strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Game canvas */

.breakout-wrapper {
    overflow: hidden;
    border: 1px solid #27375c;
    border-radius: 14px;
    background: #101a30;
    box-shadow: 0 8px 22px rgba(20, 35, 65, .15);
}

#breakout-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 320;
    touch-action: none;
    cursor: crosshair;
    outline: none;
}

#breakout-canvas:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: -3px;
}

/* Buttons */

.game-controls {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 7px;
    margin-top: 11px;
}

.game-btn {
    min-height: 38px;
    padding: 8px 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font: 700 .75rem Inter, Arial, sans-serif;
    cursor: pointer;
    transition: transform .15s, background .15s;
}

.game-btn:hover {
    transform: translateY(-2px);
    background: #f0f8fc;
}

.game-btn.primary {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.game-btn:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

/* Instructions */

.game-instructions {
    margin: 11px 0 5px;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.6;
}

.game-status {
    min-height: 20px;
    margin: 5px 0 0;
    color: var(--teal-dark);
    font-size: .76rem;
    font-weight: 700;
}

@media (max-width: 520px) {
    .game-scoreboard {
        gap: 5px;
    }

    .game-scoreboard > div {
        padding: 8px 3px;
    }

    .game-controls {
        gap: 5px;
    }

    .game-btn {
        font-size: .68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-btn {
        transition: none;
    }
}