#game-wrapper {
    text-align: center;
    padding: 80px 20px 40px;
}

#game-wrapper h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.dark-mode #game-wrapper h1 {
    color: #ecf0f1;
}

#game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mode-select {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.mode-select label {
    font-weight: bold;
    color: #2c3e50;
}

.dark-mode .mode-select label {
    color: #ecf0f1;
}

#game-mode {
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.dark-mode #game-mode {
    background: #2c3e50;
    color: #ecf0f1;
}

.score-board {
    display: flex;
    gap: 30px;
}

.player-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    background: #ecf0f1;
}

.dark-mode .player-score {
    background: #2c3e50;
}

.player-x {
    color: #e74c3c;
    font-weight: bold;
}

.player-o {
    color: #3498db;
    font-weight: bold;
}

.player-score span:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

#status {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    min-height: 30px;
}

.dark-mode #status {
    color: #ecf0f1;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 0 auto 20px;
    background: #2c3e50;
    padding: 5px;
    border-radius: 10px;
    width: fit-content;
}

.cell {
    background: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
}

.dark-mode .cell {
    background: #34495e;
}

.cell:hover:not(.taken) {
    background: #d5dbdb;
}

.dark-mode .cell:hover:not(.taken) {
    background: #2c3e50;
}

.cell.x {
    color: #e74c3c;
}

.cell.o {
    color: #3498db;
}

.cell.winner {
    background: #2ecc71;
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

#restart-btn {
    padding: 12px 30px;
    font-size: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#restart-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }
    
    .cell {
        font-size: 36px;
    }
    
    #game-info {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #board {
        grid-template-columns: repeat(3, 60px);
        grid-template-rows: repeat(3, 60px);
    }
    
    .cell {
        font-size: 28px;
    }
}
