* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fdbb2d;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.balance {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(253, 187, 45, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
}

.game-selection {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.game-btn {
    background: linear-gradient(to bottom, #fdbb2d, #b21f1f);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.game {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
}

.game.active {
    display: block;
}

h2 {
    margin-bottom: 20px;
    color: #fdbb2d;
    font-size: 1.8rem;
}

/* Стили для слотов */
.slots-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.slot-reel {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    box-shadow: 0 0 10px rgba(253, 187, 45, 0.5);
}

/* Стили для покера */
.poker-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.card {
    width: 80px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Стили для рулетки */
.roulette-wheel {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(90deg, #b21f1f 50%, #000 50%);
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(253, 187, 45, 0.7);
    position: relative;
}

.roulette-result {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

/* Стили для монетки */
.coin-container {
    margin: 30px 0;
}

.coin {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d4af37, #ffd700);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

/* Общие стили для управления ставками */
.bet-controls {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bet-controls label {
    font-size: 1.2rem;
}

.bet-controls input {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    width: 120px;
    text-align: center;
    font-size: 1.1rem;
}

button {
    background: linear-gradient(to bottom, #1a2a6c, #0d1b4d);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: linear-gradient(to bottom, #2a3a8c, #1d2b6d);
}

.roulette-options, .coin-options {
    display: flex;
    gap: 15px;
}

.color-btn, .side-btn {
    min-width: 120px;
}

.result {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 30px;
}

.history {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #fdbb2d;
}

#history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.history-item {
    padding: 8px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.win {
    color: #4CAF50;
}

.loss {
    color: #f44336;
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes flip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0); }
}

.spinning {
    animation: spin 0.5s linear infinite;
}

.flipping {
    animation: flip 0.6s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-selection {
        flex-direction: column;
        gap: 10px;
    }
    
    .slots-container, .poker-cards {
        flex-wrap: wrap;
    }
    
    .slot-reel {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .card {
        width: 60px;
        height: 90px;
        font-size: 2rem;
    }
}