.card-body.mines {
    padding: 5px;
}

.balance {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

.bet-amount {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.cell {
    aspect-ratio: 1;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cell:hover {
    background-color: #444;
}

.cell.revealed {
    background-color: #555;
}

/* 
@keyframes mineExplode {
    0% {
        transform: scale(0.5);
        opacity: 0;
        background-color: #333;
    }
    30% {
        transform: scale(1.2);
        background-color: #ff4444;
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.1);
        background-color: #ff0000;
    }
    100% {
        transform: scale(1);
        background-color: #f44336;
    }
}

@keyframes shake {
    0% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-5px) rotate(-5deg); }
    40% { transform: translateX(5px) rotate(5deg); }
    60% { transform: translateX(-5px) rotate(-5deg); }
    80% { transform: translateX(5px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0deg); }
} */

.cell.mine {
    background: url("/static/img/games/mines/bomb.png") no-repeat;
    background-size: cover;
    background-color: #333;

    animation: 
        bombAppear 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards,
        shake 0.5s 0.8s infinite;
}

.cell img {
    width: 40px;
    height: 40px;
}

.cell.safe {
    background: url("/static/img/currency/cc_coin.PNG") no-repeat;
    background-size: cover;
    background-color: #333;

    animation: 
        bombAppear 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes bombAppear {
  0% {
    transform: scale(0.1) rotate(-30deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
  70% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Анимация дрожания */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}
