body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#game-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
    margin-bottom: 5px;
}

#turn-indicator {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
}

/* Color coding helper classes for the turn indicator text */
.text-X { color: #2196F3; }
.text-O { color: #f44336; }

/* Bomb inventories style */
.bomb-inventory {
    display: flex;
    justify-content: center;
    gap: 8px;
    height: 35px;
    margin: 10px 0;
    align-items: center;
}

.inventory-bomb {
    width: 30px;
    height: 30px;
    background-color: #37474F; 
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Perfect 6x6 Grid layout */
#board {
    display: grid;
    grid-template-columns: repeat(6, 60px);
    grid-template-rows: repeat(6, 60px);
    gap: 5px;
    margin: 10px auto;
    background-color: #ccc;
    padding: 5px;
    border-radius: 6px;
    width: max-content;
}

.cell {
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.cell:hover {
    background-color: #e3f2fd;
}

/* Styling for specific pieces */
.cell.X { color: #2196F3; }
.cell.O { color: #f44336; }

.cell.bomb { 
    background-color: #37474F; 
    color: #fff;
    border-radius: 50%;
}

.cell.temp-bomb {
    background-color: #90A4AE;
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

button:hover { background-color: #45a049; }
#undo-btn { background-color: #ff9800; }
#undo-btn:hover { background-color: #e65100; }
#new-game-btn { background-color: #2196F3; }
#new-game-btn:hover { background-color: #0b7dda; }

.hidden {
    display: none !important;
}

#message {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    min-height: 25px;
}