.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.game-header {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.stats {
    display: flex;
    gap: 28px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.board-wrapper {
    position: relative;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

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

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.overlay h2 {
    font-size: 2.4rem;
    margin: 0;
}

.overlay p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    text-align: center;
    padding: 0 24px;
}

.overlay.hidden {
    display: none;
}
