 /* slot.css - ПРОФЕССИОНАЛЬНЫЕ СТИЛИ КАК В РЕАЛЬНЫХ КАЗИНО */
.main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.slot-machine {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a1a 0%, #1e1b4b 100%);
    border-radius: 20px;
    border: 3px solid rgba(124, 58, 237, 0.6);
    box-shadow: 
        0 0 60px rgba(124, 58, 237, 0.4),
        inset 0 0 100px rgba(0, 0, 0, 0.8);
    padding: 20px;
    overflow: hidden;
}

.machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.machine-header h3 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 20px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.balance, .jackpot {
    font-weight: 600;
}

#balance, #jackpot-amount {
    color: #7c3aed;
    font-weight: 700;
    transition: all 0.3s ease;
}

#balance.low-balance {
    color: #ff6b6b;
    animation: lowBalancePulse 2s infinite;
}

@keyframes lowBalancePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#jackpot-amount.mega-jackpot {
    animation: megaJackpot 3s infinite;
}

@keyframes megaJackpot {
    0%, 100% { color: #ffd700; }
    25% { color: #ff6b00; }
    50% { color: #ff0000; }
    75% { color: #ff6b00; }
}

.progress-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.bonus-progress, .freespin-progress {
    flex: 1;
}

.progress-text {
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-family: 'Exo 2', sans-serif;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 4px;
    transition: width 0.3s ease;
    transform-origin: left;
}

.progress-fill.animated {
    animation: progressFill 0.5s ease-out;
}

@keyframes progressFill {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

#bonus-progress {
    width: 30%;
}

#freespin-progress {
    width: 0%;
}

.game-area {
    position: relative;
    margin-bottom: 20px;
}

#slot-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 15px;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.9) 0%, rgba(30, 27, 75, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(124, 58, 237, 0.5);
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(124, 58, 237, 0.4);
    min-height: 400px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.reel-container {
    width: 18vw;
    height: 54vw;
    max-width: 100px;
    max-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary-purple);
    box-shadow: 
        0 0 30px rgba(124, 58, 237, 0.6),
        inset 0 0 50px rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0f23 30%, #1e1b4b 70%, #0f0f23 100%);
}

.reel {
    width: 100%;
    height: auto;
    position: relative;
    transition: transform 0.1s linear;
    will-change: transform;
}

.reel.spinning {
    animation: reelSpin 0.5s infinite linear;
    filter: blur(3px) brightness(1.2);
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.reel.spinning-fast {
    animation-duration: 0.2s;
    filter: blur(4px) brightness(1.3);
}

.reel.spinning-slow {
    animation-duration: 0.8s;
    filter: blur(1px) brightness(1.1);
}

.reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(124, 58, 237, 0.2) 20%,
        rgba(124, 58, 237, 0.3) 50%,
        rgba(124, 58, 237, 0.2) 80%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel.spinning::before {
    opacity: 1;
}

.reel-symbol {
    width: 100%;
    height: 18vw;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.4);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    animation: symbolAppear 0.5s ease-out;
    transform-origin: center;
}

@keyframes symbolAppear {
    0% { 
        opacity: 0;
        transform: scale(0.8) rotateX(-45deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

.reel-stopping {
    animation: reelStop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    filter: blur(0px) brightness(1) !important;
}

@keyframes reelStop {
    0% { 
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    80% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(2px);
    }
    100% { 
        transform: translateY(0);
    }
}

.reel-symbol.winning {
    animation: symbolWin 0.6s ease 3, symbolPulse 2s infinite;
    background: rgba(124, 58, 237, 0.4);
    box-shadow: 
        inset 0 0 40px rgba(124, 58, 237, 0.6),
        0 0 50px rgba(124, 58, 237, 0.8);
    z-index: 10;
}

@keyframes symbolWin {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.15);
    }
}

@keyframes symbolPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 40px rgba(124, 58, 237, 0.6),
            0 0 50px rgba(124, 58, 237, 0.8);
    }
    50% { 
        box-shadow: 
            inset 0 0 60px rgba(124, 58, 237, 0.9),
            0 0 70px rgba(124, 58, 237, 1);
    }
}

.symbol-mel { 
    color: #8b5cf6; 
    text-shadow: 0 0 30px #8b5cf6, 0 0 50px #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.symbol-keys { 
    color: #ffd700; 
    text-shadow: 0 0 30px #ffd700, 0 0 50px #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.symbol-wild { 
    color: #ff00ff; 
    text-shadow: 0 0 30px #ff00ff, 0 0 50px #ff00ff, 0 0 70px #ff00ff;
    background: rgba(255, 0, 255, 0.2);
    animation: wildPulse 2s infinite;
}

@keyframes wildPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(5deg); }
    75% { transform: scale(1.05) rotate(-5deg); }
}

.symbol-car { 
    color: #00ff00; 
    text-shadow: 0 0 30px #00ff00, 0 0 50px #00ff00;
    background: rgba(0, 255, 0, 0.15);
}

.symbol-jet { 
    color: #00ffff; 
    text-shadow: 0 0 30px #00ffff, 0 0 50px #00ffff;
    background: rgba(0, 255, 255, 0.15);
}

.symbol-crypto { 
    color: #ffa500; 
    text-shadow: 0 0 30px #ffa500, 0 0 50px #ffa500;
    background: rgba(255, 165, 0, 0.15);
}

.symbol-phone { 
    color: #ff6b6b; 
    text-shadow: 0 0 30px #ff6b6b, 0 0 50px #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.symbol-watch { 
    color: #4ecdc4; 
    text-shadow: 0 0 30px #4ecdc4, 0 0 50px #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
}

.symbol-house { 
    color: #45b7d1; 
    text-shadow: 0 0 30px #45b7d1, 0 0 50px #45b7d1;
    background: rgba(69, 183, 209, 0.15);
}

.symbol-diamond { 
    color: #96ceb4; 
    text-shadow: 0 0 30px #96ceb4, 0 0 50px #96ceb4;
    background: rgba(150, 206, 180, 0.15);
}

.symbol-money { 
    color: #feca57; 
    text-shadow: 0 0 30px #feca57, 0 0 50px #feca57;
    background: rgba(254, 202, 87, 0.15);
}

.symbol-scatter { 
    color: #ff9ff3; 
    text-shadow: 0 0 30px #ff9ff3, 0 0 50px #ff9ff3;
    background: rgba(255, 159, 243, 0.15);
}

.symbol-bonus { 
    color: #54a0ff; 
    text-shadow: 0 0 30px #54a0ff, 0 0 50px #54a0ff;
    background: rgba(84, 160, 255, 0.15);
    animation: bonusSpin 3s infinite linear;
}

@keyframes bonusSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.premium-symbol {
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.win-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        gold 20%, 
        #ff00ff 50%, 
        gold 80%, 
        transparent 100%);
    box-shadow: 0 0 25px gold, 0 0 50px #ff00ff;
    z-index: 5;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.5s ease;
}

.win-line.active {
    opacity: 1;
    transform: scaleX(1);
    animation: linePulse 1.5s infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.slot-machine-active {
    animation: machineGlow 3s infinite;
}

@keyframes machineGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    }
    50% { 
        box-shadow: 0 0 60px rgba(124, 58, 237, 0.8),
                   0 0 80px rgba(124, 58, 237, 0.6);
    }
}

.jackpot-active {
    animation: jackpotGlow 0.5s infinite alternate;
}

@keyframes jackpotGlow {
    0% { 
        box-shadow: 0 0 60px gold,
                   0 0 100px rgba(255, 215, 0, 0.6);
    }
    100% { 
        box-shadow: 0 0 100px gold,
                   0 0 150px rgba(255, 215, 0, 0.9),
                   0 0 200px rgba(255, 215, 0, 0.7);
    }
}

.win-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.last-win, .total-wins {
    font-weight: 600;
}

#last-win-amount, #total-wins-amount {
    color: #7c3aed;
    font-weight: 700;
    transition: all 0.3s ease;
}

#last-win-amount.highlight {
    animation: winHighlight 0.5s ease 3;
}

@keyframes winHighlight {
    0%, 100% { color: #7c3aed; }
    50% { color: #ffd700; }
}

.slot-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.spin-button {
    position: relative;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.spin-button:hover:not(:disabled):not(.spinning) {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
    transform: scale(1.05);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.spin-button:active {
    transform: scale(0.95) translateZ(0);
}

.spin-button.spinning {
    animation: buttonPulse 0.5s infinite alternate;
}

@keyframes buttonPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 30px rgba(124, 58, 237, 0.6);
    }
    100% { 
        transform: scale(0.97);
        box-shadow: 0 6px 40px rgba(124, 58, 237, 0.9);
    }
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.auto-spin-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.6);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auto-spin-button:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.4);
    border-color: rgba(124, 58, 237, 0.9);
    transform: translateY(-2px);
}

.auto-spin-button.active {
    background: rgba(124, 58, 237, 0.6);
    border-color: rgba(124, 58, 237, 0.9);
}

/* ===== УЛУЧШЕННАЯ СИСТЕМА СТАВОК ===== */

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.bet-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.bet-label {
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    margin-right: 10px;
}

.bet-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bet-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 8px;
    padding: 8px 15px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.bet-btn.active, .bet-btn:hover:not(.disabled) {
    background: rgba(124, 58, 237, 0.6);
    border-color: rgba(124, 58, 237, 0.8);
    transform: translateY(-2px);
}

.bet-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bet-adjustments {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.bet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.current-bet {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
}

.total-stake {
    font-size: 0.9em;
    color: #c4b5fd;
}

.bet-buttons-compact {
    display: flex;
    gap: 10px;
}

.bet-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: 2px solid #c4b5fd;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bet-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

/* ===== ПАНЕЛЬ ДЕМО-УПРАВЛЕНИЯ ===== */

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.demo-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.6);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.demo-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.multiplier {
    font-weight: 600;
}

#multiplier {
    color: #7c3aed;
    font-weight: 700;
}

.freespins-active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    animation: freespinPulse 2s infinite;
}

.freespins-active.pulse {
    animation: freespinPulseActive 2s infinite;
}

@keyframes freespinPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes freespinPulseActive {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.9);
    }
}

.demo-warning {
    text-align: center;
    color: #ff6b6b;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.rules-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rules-btn:hover {
    background: rgba(124, 58, 237, 1);
    transform: scale(1.1);
}

/* ===== КНОПКИ ЗАГОЛОВКА ===== */

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.6);
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.header-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.6);
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.back-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal.closing {
    animation: modalDisappear 0.2s ease-in forwards;
}

@keyframes modalDisappear {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.5);
    position: relative;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple-light);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #7c3aed;
}

.modal-content h3 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.rules-list {
    margin-bottom: 30px;
}

.rule-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #7c3aed;
}

.rule-item h4 {
    color: #7c3aed;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
}

.rule-item p {
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    margin: 5px 0;
}

/* Бонусная игра */
.bonus-game-content {
    background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 50%, #a855f7 100%);
    border: 4px solid #ffd700;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.7);
    animation: bonusGlow 2s ease-in-out infinite alternate;
    backdrop-filter: blur(15px);
    max-width: 700px;
}

@keyframes bonusGlow {
    0% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
        border-color: #ffd700;
    }
    100% {
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 215, 0, 0.4);
        border-color: #ffff00;
    }
}

.bonus-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    background: linear-gradient(45deg, #ffd700, #ffff00, #ffed4e, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 2s ease-in-out infinite alternate;
    font-family: 'Orbitron', sans-serif;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.bonus-instructions {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
    color: white;
    text-align: center;
}

.bonus-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.bonus-case {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #8B4513, #A0522D, #CD853F);
    border: 3px solid #D2691E;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    animation: casePulse 2.5s ease-in-out infinite;
}

@keyframes casePulse {
    0%, 100% {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 10px 45px rgba(210, 105, 30, 0.7);
    }
}

.bonus-case::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.bonus-case:hover::before {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.bonus-case:hover {
    transform: translateY(-12px) scale(1.08);
    border-color: #ffd700;
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.5);
}

.bonus-case:active {
    transform: translateY(-6px) scale(1.04);
}

.bonus-case.opened {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #fff8dc);
    border-color: #ffed4e;
    color: #000;
    cursor: default;
    animation: caseOpen 0.6s ease;
    transform: scale(1.05);
}

@keyframes caseOpen {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.05);
    }
}

.bonus-case.opened:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.bonus-case.big-prize {
    animation: bigPrizeGlow 1.2s ease-in-out infinite;
    border: 3px solid #ff6b00;
}

@keyframes bigPrizeGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 1), 0 0 70px rgba(255, 215, 0, 0.6);
    }
}

.bonus-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    border: 2px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
}

.bonus-stat {
    text-align: center;
}

.bonus-stat-label {
    font-size: 1em;
    color: #c4b5fd;
    margin-bottom: 5px;
}

.bonus-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffd700;
}

/* Риск-игра */
.gamble-content {
    background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
    border: 3px solid #e74c3c;
    animation: gambleGlow 2s infinite alternate;
    max-width: 500px;
}

@keyframes gambleGlow {
    0% {
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.6);
        border-color: #e74c3c;
    }
    100% {
        box-shadow: 0 0 60px rgba(231, 76, 60, 0.9);
        border-color: #ff6b6b;
    }
}

.gamble-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    text-align: center;
}

.gamble-amounts {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gamble-amount {
    text-align: center;
}

.gamble-amount-label {
    font-size: 0.9em;
    color: #c4b5fd;
    margin-bottom: 5px;
}

.gamble-amount-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
}

.gamble-instruction {
    margin: 15px 0;
    color: #c4b5fd;
    font-size: 1.1em;
    text-align: center;
}

.gamble-card-container {
    margin: 30px 0;
    perspective: 1000px;
}

.gamble-card {
    width: 200px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.gamble-card-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.card-back, .card-result {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-back {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 3px solid #fca5a5;
    color: white;
}

.card-result {
    background: linear-gradient(135deg, #1e293b, #374151);
    border: 3px solid;
    transform: rotateY(180deg);
}

.card-result.win {
    border-color: #00ff00;
}

.card-result.lose {
    border-color: #dc2626;
}

.card-pattern {
    font-size: 4em;
    margin-bottom: 10px;
}

.card-instruction {
    font-size: 1em;
    opacity: 0.8;
}

.card-color {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid white;
}

.card-text {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-multiplier {
    font-size: 2em;
    color: #ffd700;
}

.gamble-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.gamble-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gamble-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.gamble-btn-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: 2px solid #fca5a5;
}

.gamble-btn-black {
    background: linear-gradient(135deg, #000000, #374151);
    color: white;
    border: 2px solid #6b7280;
}

.gamble-btn-take {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: 2px solid #00ff00;
}

.gamble-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.gamble-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gamble-stat {
    text-align: center;
}

.gamble-stat-label {
    font-size: 0.9em;
    color: #c4b5fd;
}

.gamble-stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700;
}

.flipping {
    transform: rotateY(180deg);
}

@keyframes cardWinGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 0, 1);
    }
}

@keyframes cardLoseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 1);
    }
}

.card-result.win {
    animation: cardWinGlow 1s ease-in-out infinite;
}

.card-result.lose {
    animation: cardLoseGlow 1s ease-in-out infinite;
}

/* Видео overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.video-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#meme-video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 100px rgba(124, 58, 237, 0.8);
}

.close-video-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(124, 58, 237, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-video-btn:hover {
    background: rgba(124, 58, 237, 1);
    transform: scale(1.1);
}

/* Сообщения */
@keyframes messageAppear {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes messageDisappear {
    from { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
    to { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .slot-machine {
        padding: 15px;
    }
    
    .machine-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-btn, .back-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #slot-container {
        gap: 5px;
        padding: 10px;
        min-height: 320px;
    }
    
    .reel-container {
        width: 70px;
        height: 210px;
    }
    
    .reel-symbol {
        height: 70px;
        font-size: 2.2em;
    }
    
    .win-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .control-group {
        flex-direction: column;
        align-items: center;
    }
    
    .bet-controls {
        gap: 10px;
    }
    
    .bet-section, .bet-adjustments {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .bet-buttons {
        justify-content: center;
    }
    
    .demo-controls {
        gap: 8px;
    }
    
    .demo-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .game-status {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .bonus-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .bonus-case {
        font-size: 2.2em;
    }
    
    .bonus-title {
        font-size: 2.2em;
    }
    
    .bonus-stats {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .gamble-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gamble-btn {
        width: 200px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #slot-container {
        gap: 3px;
        padding: 8px;
        min-height: 280px;
    }
    
    .reel-container {
        width: 60px;
        height: 180px;
    }
    
    .reel-symbol {
        height: 60px;
        font-size: 1.8em;
    }
    
    .bet-btn {
        padding: 6px 10px;
        min-width: 40px;
        font-size: 0.9em;
    }
    
    .bet-control-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .current-bet {
        font-size: 1.3em;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .bonus-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bonus-case {
        font-size: 1.8em;
    }
    
    .bonus-title {
        font-size: 1.8em;
    }
    
    .gamble-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Специальные классы для доступности */
.spin-button:focus,
.auto-spin-button:focus,
.bet-btn:focus,
.rules-btn:focus,
.demo-btn:focus,
.header-btn:focus,
.back-btn:focus {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Индикатор загрузки */
.spin-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(124, 58, 237, 0.3);
    border-top: 4px solid #7c3aed;
    border-radius: 50%;
    animation: spinLoading 1s linear infinite;
    z-index: 10;
}

@keyframes spinLoading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* CSS переменные для единообразия */
:root {
  --primary-purple: #7c3aed;
  --primary-purple-light: #a855f7;
  --accent-gold: #ffd700;
  --dark-bg: #0a0a1a;
  --darker-bg: #0a0a1a;
  --medium-bg: #1e1b4b;
  --text-light: #ffffff;
  --shadow-glow: rgba(124, 58, 237, 0.6);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

.message {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-out;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.message.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

.message.hide {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

/* Исправление размытого текста в сообщениях */
.message,
.message * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.maxwin-message,
.bigwin-message, 
.jackpot-message,
.bonus-message,
.win-message,
.info-message {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* СУПЕР-РЕАЛИСТИЧНЫЕ АНИМАЦИИ БАРАБАНОВ */
.reel-container.spinning {
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.reel.spinning-instant {
    animation-duration: 0.08s !important;
    filter: blur(8px) brightness(1.4) contrast(1.2);
}

.reel.spinning-fast {
    animation-duration: 0.05s !important;
    filter: blur(6px) brightness(1.3) contrast(1.1);
}

.reel.spinning-slow {
    animation-duration: 0.1s !important;
    filter: blur(3px) brightness(1.1) contrast(1);
}

/* ЭФФЕКТ ГЛУБИНЫ ПРИ ВРАЩЕНИИ */
.reel-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.reel-container.spinning::after {
    opacity: 1;
}

/* СВЕТОВЫЕ ЭФФЕКТЫ НА КРАЯХ БАРАБАНОВ */
.reel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(124, 58, 237, 0.1) 20%,
        rgba(124, 58, 237, 0.3) 50%,
        rgba(124, 58, 237, 0.1) 80%,
        transparent 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.reel-container.spinning::before {
    opacity: 1;
    animation: edgeGlow 0.5s ease-in-out infinite alternate;
}

@keyframes edgeGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* ДОБАВЬТЕ В КОНЕЦ slot.css */

/* МОЩНАЯ 7-СЕКУНДНАЯ АНИМАЦИЯ С ОДНИМ ЗВУКОМ */
.reel-container {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* СУПЕР-БЫСТРОЕ ВРАЩЕНИЕ С МАКСИМАЛЬНЫМИ ЭФФЕКТАМИ */
.reel.spinning-instant {
    animation-duration: 0.05s !important;
    filter: blur(18px) brightness(2) contrast(1.5) saturate(1.3);
    transform: translateZ(0);
}

.reel.spinning-fast {
    animation-duration: 0.035s !important;
    filter: blur(12px) brightness(1.7) contrast(1.4) saturate(1.2);
}

.reel.spinning-slow {
    animation-duration: 0.08s !important;
    filter: blur(6px) brightness(1.4) contrast(1.3) saturate(1.1);
}

/* ИНТЕНСИВНАЯ ВИБРАЦИЯ И СВЕЧЕНИЕ */
.reel-container.spinning {
    animation: powerfulVibration 0.08s linear infinite;
    box-shadow: 
        0 0 40px rgba(124, 58, 237, 1),
        0 0 80px rgba(168, 85, 247, 0.8),
        inset 0 0 60px rgba(255, 255, 255, 0.3);
    border-color: rgba(192, 132, 252, 0.95);
}

@keyframes powerfulVibration {
    0%, 100% { 
        transform: translateX(-2px) translateY(-1px) rotate(-0.3deg); 
    }
    25% { 
        transform: translateX(2px) translateY(1px) rotate(0.2deg); 
    }
    50% { 
        transform: translateX(-1px) translateY(2px) rotate(0.3deg); 
    }
    75% { 
        transform: translateX(1px) translateY(-2px) rotate(-0.2deg); 
    }
}

/* МНОГОСЛОЙНЫЕ СВЕТОВЫЕ ЭФФЕКТЫ */
.reel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.4) 0%, transparent 60%),
        linear-gradient(45deg, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.reel-container.spinning::before {
    opacity: 1;
    animation: intenseLightShow 2s linear infinite;
}

@keyframes intenseLightShow {
    0% { 
        background-position: -100% -100%, 200% 200%, 0% 0%, 0% 0%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 150% 150%, -100% -100%, 50% 50%, 25% 25%;
        filter: hue-rotate(90deg);
    }
    50% {
        background-position: -100% 200%, 150% -100%, 100% 100%, 50% 50%;
        filter: hue-rotate(180deg);
    }
    75% {
        background-position: 200% -100%, -100% 150%, 50% 50%, 75% 75%;
        filter: hue-rotate(270deg);
    }
    100% { 
        background-position: -100% -100%, 200% 200%, 0% 0%, 100% 100%;
        filter: hue-rotate(360deg);
    }
}

/* АНИМАЦИЯ ЭНЕРГИИ ДЛЯ ВСЕЙ МАШИНЫ */
.slot-machine.spinning-active {
    animation: fullPowerAnimation 7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fullPowerAnimation {
    0% {
        box-shadow: 0 0 50px rgba(124, 58, 237, 0.8);
        transform: scale(1);
        border-color: rgba(124, 58, 237, 0.7);
    }
    20% {
        box-shadow: 
            0 0 120px rgba(124, 58, 237, 1),
            0 0 200px rgba(168, 85, 247, 0.9),
            0 0 280px rgba(192, 132, 252, 0.7);
        transform: scale(1.008);
        border-color: rgba(168, 85, 247, 1);
    }
    50% {
        box-shadow: 
            0 0 150px rgba(124, 58, 237, 0.95),
            0 0 250px rgba(168, 85, 247, 0.8),
            0 0 320px rgba(192, 132, 252, 0.6);
        transform: scale(1.005);
        border-color: rgba(192, 132, 252, 0.9);
    }
    80% {
        box-shadow: 
            0 0 100px rgba(124, 58, 237, 0.9),
            0 0 180px rgba(168, 85, 247, 0.7),
            0 0 240px rgba(192, 132, 252, 0.5);
        transform: scale(1.002);
        border-color: rgba(168, 85, 247, 0.8);
    }
    100% {
        box-shadow: 0 0 50px rgba(124, 58, 237, 0.8);
        transform: scale(1);
        border-color: rgba(124, 58, 237, 0.7);
    }
}

/* ЭФФЕКТ ЧАСТИЦ ВОКРУГ БАРАБАНОВ */
.reel-container.spinning::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%),
        radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    border-radius: 15px;
    animation: particleField 1s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes particleField {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

/* ПЛАВНАЯ ОСТАНОВКА С ЭФФЕКТОМ РАССЕИВАНИЯ ЭНЕРГИИ */
.reel-stopping {
    animation: energyDissipate 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    filter: blur(0px) brightness(1) contrast(1) saturate(1) !important;
}

@keyframes energyDissipate {
    0% { 
        transform: translateY(var(--stop-pos, 0px));
        filter: blur(3px) brightness(1.2);
    }
    30% {
        transform: translateY(calc(var(--stop-pos, 0px) - 8px));
    }
    50% {
        transform: translateY(calc(var(--stop-pos, 0px) + 4px));
    }
    70% {
        transform: translateY(calc(var(--stop-pos, 0px) - 2px));
    }
    85% {
        transform: translateY(calc(var(--stop-pos, 0px) + 1px));
    }
    100% { 
        transform: translateY(var(--stop-pos, 0px));
        filter: blur(0px) brightness(1);
    }
}

/* ФИНАЛЬНЫЙ ВСПЛЕСК ПРИ ОСТАНОВКЕ */
.reel-stopping::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 80%);
    border-radius: 15px;
    animation: finalFlash 0.5s ease-out;
    z-index: 1;
}

@keyframes finalFlash {
    0% { 
        opacity: 0.9;
        transform: scale(1);
    }
    70% { 
        opacity: 0.3;
        transform: scale(1.15);
    }
    100% { 
        opacity: 0;
        transform: scale(1.3);
    }
}

.reel.reel-stopping {
    animation: reelStopOptimized 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Стили для кнопки разблокировки звука */
.unlock-sound-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#unlock-sound-btn {
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    border: 2px solid #00ff00;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

#unlock-sound-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
}