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

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

.player-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 8px;
    border-radius: 6px;
}

.p1-stat .player-label {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.p2-stat .player-label {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.center-stat {
    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;
}

.timer-val {
    color: var(--text-primary);
}

.timer-val.urgent {
    color: #ef4444;
}

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

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

.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.8rem;
    margin: 0;
}

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

.overlay.hidden {
    display: none;
}

.controls-hint {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.p1-hint { color: #38bdf8; }
.p2-hint { color: #f97316; }

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