body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1c2439, #1c2439);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.game {
    background: linear-gradient(135deg, #1c2439, #1c2439);
    text-align: center;
}

header h1 {
    margin-bottom: 50px;
}

.balance, .controls {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    margin: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.collectWinnings {
    background: #55ff00;
    color: white;
}

button.collectWinnings:hover {
    background: #45d400;
}

button.resetGame {
    background: #ff3300;
    color: white;
}

button.resetGame:hover {
    background: #cc2900;
}

button.startGame {
    background: #ffbf00;
    color: white;
}

button.startGame:hover {
    background: #cc9900;
}

.gameBoard {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

.cell {
    width: 60px;
    height: 60px;
    background-color: #3266aa;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cell.revealed {
    background: #1a1515;
}

.cell.mine {
    background-color: rgb(156, 0, 0);
    animation: explode 0.5s ease-out;
}

.cell.mine::after {
    content: '';
    background-image: url('img/bomb.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes explode {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cell.safe {
    background: #ffd000;
    animation: reveal 0.3s ease;
}

.cell.safe::after {
    content: '';
    background-image: url('img/star.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes reveal {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
