* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wildtech-orange: #ff7b00;
    --wildtech-brown: #8b4513;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --cell-bg: white;
    --border-color: #ddd;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    color: var(--wildtech-orange);
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.language-selector select {
    background-color: var(--wildtech-brown);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.language-selector select:focus {
    outline: 2px solid var(--wildtech-orange);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-mode label {
    margin-right: 10px;
    font-weight: bold;
    color: var(--wildtech-brown);
}

.game-mode select {
    background-color: var(--wildtech-orange);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

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

.player-score {
    text-align: center;
}

.player-score h3 {
    color: var(--wildtech-brown);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.player-score span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--wildtech-orange);
}

.game-info {
    text-align: center;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-info p {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

#currentPlayer {
    color: var(--wildtech-brown);
    font-weight: bold;
}

#gameStatus {
    color: var(--wildtech-orange);
    font-weight: bold;
    min-height: 1.5rem;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 300px;
    margin: 0 auto;
    background-color: var(--wildtech-brown);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cell {
    aspect-ratio: 1;
    background-color: var(--cell-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s ease;
    min-height: 80px;
}

.cell:hover {
    background-color: #f0f0f0;
    transform: scale(0.98);
}

.cell.x {
    color: var(--wildtech-orange);
}

.cell.o {
    color: var(--wildtech-brown);
}

.cell.winner {
    background-color: rgba(255, 123, 0, 0.2);
    animation: pulse 1s infinite;
}

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

.btn {
    background-color: var(--wildtech-orange);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: #e66900;
}

.btn.btn-secondary {
    background-color: var(--wildtech-brown);
}

.btn.btn-secondary:hover {
    background-color: #7a3d10;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

footer a {
    color: var(--wildtech-orange);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--wildtech-orange);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .score-board {
        justify-content: center;
    }
    
    .game-board {
        max-width: 280px;
    }
    
    .cell {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .game-board {
        max-width: 250px;
    }
    
    .cell {
        font-size: 2rem;
    }
    
    .player-score span {
        font-size: 1.5rem;
    }
    
    .score-board {
        gap: 20px;
    }
}