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

.game-header {
    width: 100%;
    max-width: 620px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 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;
}

.ctrl-btns { display: flex; gap: 8px; }

.btn-sm {
    padding: 7px 14px !important;
    font-size: 0.85rem !important;
}

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

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

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

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

.overlay p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
    padding: 0 28px;
    line-height: 1.7;
}

.overlay.hidden { display: none; }

.game-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    margin: 16px;
    border-radius: 12px;
}

.nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--text-primary); }
.nav-title { font-size: 1.1rem; font-weight: 700; }
