/* Game Container and Board Styles */
.game-container {
    background: var(--theme-bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--theme-border-glass);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    box-shadow: var(--theme-shadow-hard);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    
    /* Hide scrollbar for webkit browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.game-container::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}



/* Score Board */
.score-section {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: var(--theme-bg-glass-light);
    border-radius: 12px;
    border: 1px solid var(--theme-border-light);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.score-card {
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--theme-bg-glass-light);
    border: 1px solid var(--theme-border-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(10px);
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-gradient-card-shine);
    transition: left 0.5s ease;
}

.score-card:hover::before {
    left: 100%;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition-smooth);
}

.score-card.player-x .score-value {
    color: var(--theme-player-x);
    text-shadow: 0 0 20px var(--theme-text-shadow-red);
}

.score-card.player-o .score-value {
    color: var(--theme-player-o);
    text-shadow: 0 0 20px var(--theme-text-shadow-blue);
}

.score-card.draws .score-value {
    color: var(--theme-accent-orange);
    text-shadow: 0 0 20px var(--theme-text-shadow-orange);
}

/* Points Display */
.points-display-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.points-icon {
    font-size: 24px;
}

.points-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.points-label {
    font-size: 16px;
    opacity: 0.9;
}

.points-section {
    justify-content: center;
}

.points-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.points-card .score-label {
    color: rgba(255, 255, 255, 0.9);
}

.points-card .score-value {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}





/* Current Player - styled like score-value */
.current-player {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition-smooth);
    line-height: 1;
}

.current-player.x {
    color: var(--theme-player-x);
    text-shadow: 0 0 20px var(--theme-text-shadow-red);
}

.current-player.o {
    color: var(--theme-player-o);
    text-shadow: 0 0 20px var(--theme-text-shadow-blue);
}



/* Timer Value - styled like score-value */
.timer-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--theme-accent-green);
    text-shadow: 0 0 20px var(--theme-text-shadow-green);
    transition: all 0.3s ease;
    line-height: 1;
}

.timer-value.warning {
    color: var(--theme-accent-orange);
    text-shadow: 0 0 20px var(--theme-text-shadow-orange);
    animation: timerPulse 1s infinite;
}

.timer-value.danger {
    color: var(--theme-player-x);
    text-shadow: 0 0 20px var(--theme-text-shadow-red);
    animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tournament Specific */
.tournament-details {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.tournament-scores {
    display: flex;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
}

.tournament-score-x {
    color: var(--theme-player-x);
    text-shadow: 0 0 15px var(--theme-text-shadow-red);
}

.tournament-score-o {
    color: var(--theme-player-o);
    text-shadow: 0 0 15px var(--theme-text-shadow-blue);
}



