/* Slot Machine Styles */
.slot-game-container {
    animation: fadeInUp 1s ease .3s both;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.slot-game {
    background: linear-gradient(180deg, #1a1035 0%, #0d0620 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 80px rgba(138,43,226,.15);
    border: 2px solid #3d2a6d;
}

.slot-header {
    background: linear-gradient(180deg, #2d1f4e, #1a1035);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #3d2a6d;
}

.slot-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #fff;
}

.slot-18plus {
    font-size: .65rem;
    color: #888;
}

.play-real-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: .75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,71,87,.3);
}

.play-real-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255,71,87,.5);
}

.play-real-btn .coin-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: #333;
    font-weight: 900;
}

.slot-main {
    position: relative;
    background: linear-gradient(180deg, #ff9966 0%, #ff5e62 40%, #7b2d8e 80%, #4a1c6d 100%);
    padding: 12px;
    overflow: hidden;
}

.slot-main::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(75,0,130,.7), transparent);
    pointer-events: none;
    z-index: 1;
}

.jackpots-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.jackpot-box {
    padding: 4px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 65px;
    border: 2px solid rgba(255,255,255,.3);
    position: relative;
    overflow: hidden;
}

.jackpot-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: jackpot-shine 2s infinite;
}

@keyframes jackpot-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.jackpot-box.grand { background: linear-gradient(180deg, #4169e1, #1e3a8a); }
.jackpot-box.major { background: linear-gradient(180deg, #ff4500, #cc3700); }
.jackpot-box.minor { background: linear-gradient(180deg, #32cd32, #228b22); }
.jackpot-box.mini { background: linear-gradient(180deg, #9932cc, #6b238e); }

.jackpot-label {
    font-size: .5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.9);
}

.jackpot-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .95rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

.game-logo {
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 10;
    text-align: center;
}

.game-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,.8), 0 0 15px rgba(255,215,0,.5);
    line-height: 1;
}

.game-logo-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .75rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.8);
}

.buy-bonus-btn {
    background: linear-gradient(180deg, #ff6b35, #ee4d2d);
    color: white;
    border: 2px solid #ffd700;
    padding: .3rem .6rem;
    border-radius: 15px;
    font-size: .6rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all .3s ease;
    box-shadow: 0 3px 10px rgba(255,107,53,.4);
}

.buy-bonus-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(255,107,53,.6);
}

.reels-frame {
    background: linear-gradient(180deg, #1a0a2e, #0d051a);
    border-radius: 12px;
    padding: 8px;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    border: 3px solid #ffd700;
    box-shadow: inset 0 0 30px rgba(0,0,0,.8), 0 0 25px rgba(255,215,0,.4);
    position: relative;
    z-index: 5;
}

.reels-wrapper {
    background: #0a0412;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 4px;
}

.reel-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    height: calc(3 * 56px + 6px);
    overflow: hidden;
    background: #0a0412;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    width: 100%;
}

.symbol-cell {
    width: 100%;
    height: 56px;
    background: linear-gradient(145deg, #2d1f4e, #1a1035);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3d2a6d;
    flex-shrink: 0;
}

.symbol-cell.winning {
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(255,215,0,.8), inset 0 0 15px rgba(255,215,0,.3);
    animation: winner-glow .4s ease infinite alternate;
}

@keyframes winner-glow {
    from { box-shadow: 0 0 15px rgba(255,215,0,.8), inset 0 0 15px rgba(255,215,0,.3); }
    to { box-shadow: 0 0 25px rgba(255,215,0,1), inset 0 0 25px rgba(255,215,0,.5); }
}

.symbol-cell.wild {
    border-color: var(--wild-glow) !important;
    box-shadow: 0 0 20px var(--wild-glow), 0 0 40px var(--wild-glow), inset 0 0 20px rgba(0,255,136,.4);
    animation: wild-pulse 1s ease infinite;
}

@keyframes wild-pulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--wild-glow), 0 0 40px var(--wild-glow), inset 0 0 20px rgba(0,255,136,.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px var(--wild-glow), 0 0 60px var(--wild-glow), inset 0 0 30px rgba(0,255,136,.6);
        transform: scale(1.03);
    }
}

.symbol-emoji {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
    line-height: 1;
}

.symbol-cell.wild .symbol-emoji {
    filter: drop-shadow(0 0 10px var(--wild-glow)) drop-shadow(0 0 20px var(--wild-glow));
}

.win-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a0a2e;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    z-index: 30;
    opacity: 0;
    transition: all .5s cubic-bezier(.68, -.55, .265, 1.55);
    box-shadow: 0 15px 50px rgba(255,215,0,.6);
    text-align: center;
    border: 3px solid #fff;
}

.win-overlay.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.win-overlay.mega {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    animation: mega-win .3s ease infinite alternate;
}

@keyframes mega-win {
    from { box-shadow: 0 0 50px #ff00ff, 0 0 100px #00ffff; }
    to { box-shadow: 0 0 80px #00ffff, 0 0 150px #ff00ff; }
}

.win-label {
    font-size: .9rem;
    opacity: .8;
}

.win-amount {
    font-size: 2.5rem;
    display: block;
    text-shadow: 2px 2px 0 rgba(0,0,0,.2);
}

.win-multiplier {
    font-size: 1rem;
    opacity: .9;
    margin-top: 5px;
}

.slot-controls {
    background: linear-gradient(180deg, #1a1035, #0d0620);
    padding: 12px 15px;
    border-top: 2px solid #3d2a6d;
}

.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.balance-display,
.bet-display {
    text-align: center;
    min-width: 80px;
}

.control-label {
    font-size: .6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: #fff;
}

.control-value span {
    color: var(--gold);
}

.spin-message {
    text-align: center;
    font-size: .75rem;
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 1px;
    flex: 1;
    padding: 0 10px;
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3d2a6d;
    background: linear-gradient(180deg, #2d1f4e, #1a1035);
    color: #888;
    font-size: .85rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    transform: scale(1.1);
}

.bet-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.spin-btn-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4ade80, #22c55e);
    border: 3px solid #86efac;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(34,197,94,.5);
    position: relative;
    flex-shrink: 0;
}

.spin-btn-main:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(34,197,94,.7);
}

.spin-btn-main:disabled {
    background: linear-gradient(180deg, #555, #333);
    border-color: #666;
    cursor: not-allowed;
}

.spin-btn-main svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.spin-btn-main.spinning svg {
    animation: spin-rotate .6s linear infinite;
}

@keyframes spin-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-overlay.show {
    display: flex;
}

.bonus-modal {
    background: linear-gradient(180deg, #1a3a5c, #0d2840);
    border-radius: 20px;
    padding: 20px;
    max-width: 360px;
    width: 100%;
    position: relative;
    border: 3px solid #ffd700;
    box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.bonus-modal-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(180deg, rgba(255,215,0,.2), transparent);
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 15px;
}

.bonus-modal-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ffd700;
    letter-spacing: 2px;
}

.bonus-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.bonus-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.bonus-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bonus-option {
    background: linear-gradient(180deg, #2d5a7b, #1a3a5c);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    border: 3px solid #3d6a8a;
    cursor: pointer;
    transition: all .3s ease;
}

.bonus-option:hover {
    border-color: #ffd700;
    transform: translateY(-3px);
}

.bonus-option.free-spins {
    background: linear-gradient(180deg, #4a2c7a, #2d1b4e);
}

.bonus-option.mystery {
    background: linear-gradient(180deg, #1e7a4a, #0d4a2a);
}

.bonus-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.bonus-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bonus-price {
    background: linear-gradient(180deg, #ff9500, #ff6b00);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .75rem;
    display: inline-block;
}

/* Big Win Overlay */
.big-win-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255,215,0,.3) 0%, rgba(0,0,0,.95) 70%);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.big-win-overlay.show {
    display: flex;
    animation: bigwin-bg .5s ease;
}

@keyframes bigwin-bg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.big-win-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    background: linear-gradient(180deg, #ffd700, #ff8c00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bigwin-pulse .5s ease infinite alternate;
    letter-spacing: 5px;
}

@keyframes bigwin-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.big-win-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-top: 10px;
}

.big-win-coins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.flying-coin {
    position: absolute;
    font-size: 2rem;
    animation: coin-fall 2s linear forwards;
}

@keyframes coin-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slot-game-container {
        max-width: 100%;
    }
    
    .reel-column {
        height: calc(3 * 48px + 6px);
    }
    
    .symbol-cell {
        height: 48px;
    }
    
    .symbol-emoji {
        font-size: 1.3rem;
    }
    
    .spin-btn-main {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 380px) {
    .reel-column {
        height: calc(3 * 42px + 6px);
    }
    
    .symbol-cell {
        height: 42px;
    }
    
    .symbol-emoji {
        font-size: 1.1rem;
    }
    
    .game-logo {
        display: none;
    }
}
