/* Main Game Container */
.game-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Same as article section */
    text-align: center;
    margin-bottom: 30px;
}

/* Headings */
.game-container h1 {
    color: #2c3e50;
    margin-top: 0;
}

/* Mode and Difficulty Selectors */
.mode-selector, .difficulty-selector {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Buttons */
.game-container button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.game-container button:hover {
    background-color: #2980b9;
}

.game-container button.selected {
    background-color: #2ecc71;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Icon Selection */
.icon-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.icon-option {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-option.selected {
    border-color: #2ecc71;
    background-color: #e8f8f0;
}

.icon-option svg {
    width: 30px;
    height: 30px;
}

/* Game Board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    margin: 20px auto;
    max-width: 300px;
    aspect-ratio: 1/1;
}

.cell {
    background-color: #fff;
    border: 2px solid #34495e;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cell:hover {
    background-color: #f0f0f0;
}

.cell svg {
    width: 80%;
    height: 80%;
}

/* Game Status */
.status {
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
    min-height: 27px;
}

/* Statistics */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Same as article section */
    text-align: center;
    margin-bottom: 30px;
}

/* Tournament Mode */
.tournament-mode {
    background: #fffde7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Leaderboard */
.leaderboard {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.leaderboard th, .leaderboard td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.leaderboard th {
    background-color: #3498db;
    color: white;
}

.winner {
    background-color: #a5d6a7;
}

/* Responsive Design */
@media (max-width: 600px) {
    .icon-options {
        flex-wrap: wrap;
    }
    
    .stat-box {
        min-width: 100px;
    }
}
