/* Pong Specific Styles */

.container {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Game Title Banner (RPS Style) */
.game-title-banner {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.4rem, 5vw, 2.22rem);
    text-transform: uppercase;
    text-align: center;
    margin: 10px 0 25px 0;
    letter-spacing: 2px;
}

.title-neon {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 30px rgba(0, 243, 255, 0.3);
}

.title-pong {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary), 0 0 30px rgba(189, 0, 255, 0.3);
}

.game-viewport {
    position: relative;
    width: min(700px, 95vw);
    margin: 0 auto;
}

.game-container {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    touch-action: none;
}

#game-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
}

/* PvP Header Style (Consolidated) */
.game-header-pvp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(700px, 95vw);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px 12px 0 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    box-sizing: border-box;
}

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

.player-left {
    color: var(--primary);
}

.player-right {
    color: var(--secondary);
}

.player-info .symbol {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.6rem;
}

.player-info .score {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

#turn-indicator {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    font-size: 0.6rem;
}

/* Stats Banner */
.stats-banner {
    margin: 5px auto 25px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    width: fit-content;
}

.stat-item {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.stat-divider {
    color: rgba(255, 255, 255, 0.1);
}

/* Lobby & Mode Cards (Standardized) */
.game-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
}

.mode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: clamp(16px, 4vw, 24px);
    flex: 1 1 260px;
    max-width: 320px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.mode-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: 1px;
}

.mode-desc {
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-grow: 1;
}

.full-width {
    width: 100%;
}

/* Difficulty Buttons */
.difficulty-group {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.diff-btn {
    flex: 1;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-dim);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.diff-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    font-family: 'Press Start 2P', monospace;
}

.overlay-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Auth View */
.form-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .game-header-pvp {
        font-size: 0.45rem;
        padding: 8px 10px;
    }

    .stat-divider {
        display: none;
    }

    .stats-banner {
        flex-direction: column;
        gap: 8px;
    }

    .player-info .score {
        font-size: 0.9rem;
    }

    .game-modes {
        gap: 12px;
        width: 100%;
    }

    .mode-card {
        padding: 20px;
        flex: 1 1 100%;
        max-width: 100%;
    }
}