/* Fortune Slots - Premium 5-Reel Slot Machine */

.fortune-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.fortune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.fortune-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fortune-icon {
    font-size: 32px;
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
    }
}

.fortune-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fortune-balance {
    text-align: right;
}

.balance-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.balance-amount {
    display: block;
    color: #4ade80;
    font-size: 24px;
    font-weight: bold;
}

.fortune-machine {
    background: linear-gradient(180deg, #2d2d44 0%, #1a1a2e 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.2);
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 20px;
    background: #0a0a15;
    border-radius: 15px;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.8);
    position: relative;
}

.reel {
    width: 100px;
    height: 270px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #111 0%, #1a1a2e 50%, #111 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.reel-strip {
    position: absolute;
    width: 100%;
    transition: transform 0.1s ease-out;
}

.reel-strip.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-90px);
    }
}

.symbol {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.symbol.winning {
    animation: glow 0.5s ease-in-out infinite alternate;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
}

@keyframes glow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.payline-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 90px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    border-top: 2px solid rgba(168, 85, 247, 0.3);
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(90deg,
            rgba(168, 85, 247, 0.1),
            rgba(236, 72, 153, 0.05),
            rgba(168, 85, 247, 0.1));
    z-index: 5;
}

.fortune-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bet-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bet-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.bet-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #4a4a6a 0%, #2d2d44 100%);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.bet-btn:hover {
    background: linear-gradient(180deg, #5a5a7a 0%, #3d3d54 100%);
    transform: scale(1.1);
}

.bet-btn:active {
    transform: scale(0.95);
}

.bet-amount {
    color: #a855f7;
    font-size: 24px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.spin-button {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow:
        0 5px 20px rgba(168, 85, 247, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow:
        0 8px 30px rgba(168, 85, 247, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.spin-button:active:not(:disabled) {
    transform: scale(0.98);
}

.spin-button:disabled {
    background: linear-gradient(180deg, #666 0%, #444 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.message-area {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.win-message {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #a855f7, #ec4899, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: winPulse 0.5s ease-in-out;
}

.lose-message {
    font-size: 18px;
    color: #888;
}

@keyframes winPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fortune-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
}

.stat-value {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.fortune-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: linear-gradient(180deg, #2d2d44 0%, #1a1a2e 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: linear-gradient(180deg, #3d3d54 0%, #2a2a3e 100%);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

/* Symbol colors */
.sym-wild {
    color: #ff6b6b;
}

.sym-scatter {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.sym-high {
    color: #a855f7;
}

.sym-mid {
    color: #3b82f6;
}

.sym-low {
    color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
    .fortune-container {
        padding: 10px;
    }

    .fortune-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .fortune-balance {
        text-align: center;
    }

    .reels-container {
        gap: 5px;
        padding: 10px;
    }

    .reel {
        width: 60px;
        height: 180px;
    }

    .symbol {
        height: 60px;
        font-size: 32px;
    }

    .payline-indicator {
        height: 60px;
        top: 60px;
    }

    .reel-strip {
        transform: translateY(-60px);
    }

    @keyframes spin {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-60px);
        }
    }

    .fortune-controls {
        gap: 15px;
    }

    .spin-button {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    .fortune-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        flex: 1 1 40%;
    }
}