/* Общие стили для игр */
.game-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.balance-display {
    font-size: 1.5rem;
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.spin-button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 20px auto;
}

.spin-button:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}

/* Стили для слотов */
.slots-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slots-display {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.reel {
    width: 100px;
    height: 150px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.symbol {
    width: 80px;
    height: 80px;
    margin: 5px 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.slots-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.bet-controls, .lines-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-btn {
    background-color: #6a1b9a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.max-bet {
    background-color: #9c27b0;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Стили для рулетки */
.roulette-wheel-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.roulette-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        #d32f2f 0% 2.7%, #1e1e1e 2.7% 5.4%,
        /* Продолжите градиент для всех чисел */
    );
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.wheel-center {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.roulette-table {
    margin-top: 20px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.number {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.number:hover {
    transform: scale(1.05);
}

.number.red {
    background-color: #d32f2f;
    color: white;
}

.number.black {
    background-color: #1e1e1e;
    color: white;
}

.number.green {
    background-color: #2e7d32;
    color: white;
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.bet-option {
    padding: 15px;
    text-align: center;
    background-color: #6a1b9a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-option:hover {
    background-color: #9c27b0;
}

.roulette-controls {
    margin-top: 30px;
}

.chip-btn {
    background-color: #ff9800;
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
}

.clear-bets {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.bets-display {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.bet-item {
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

/* Анимации */
@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1000px); }
}

.win-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4caf50;
    color: white;
    padding: 20px 40px;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -40%); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .slots-display {
        flex-direction: column;
    }
    
    .reel {
        margin: 10px 0;
    }
    
    .roulette-wheel {
        width: 200px;
        height: 200px;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .outside-bets {
        grid-template-columns: repeat(2, 1fr);
    }
}