.slot-machine {
    background: linear-gradient(180deg, #c73e1d 0%, #8b2500 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 4px solid #d4a574;
}

.slot-header {
    text-align: center;
    margin-bottom: 24px;
}

.slot-header h2 {
    color: #f4d9b8;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    position: relative;
    margin-bottom: 24px;
}

.reel {
    width: 120px;
    height: 150px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.reel.spinning {
    animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.symbol {
    font-size: 72px;
    animation: symbolAppear 0.3s ease;
}

@keyframes symbolAppear {
    from {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.reel.winning {
    animation: winPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 30px #d4a574;
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.payline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #d4a574 20%, #d4a574 80%, transparent 100%);
    transform: translateY(-50%);
    pointer-events: none;
}

.game-message {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f4d9b8;
    font-size: 20px;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-message.win {
    background: linear-gradient(90deg, #d4a574 0%, #f4d9b8 100%);
    color: #2a1810;
    animation: messagePulse 0.5s ease-in-out 3;
}

@keyframes messagePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.paytable {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-top: 24px;
}

.paytable h3 {
    color: #f4d9b8;
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #f4d9b8;
    font-size: 18px;
}

.payout-row span:first-child {
    font-size: 24px;
}

.payout-row span:last-child {
    font-weight: 700;
    color: #d4a574;
}

.betting-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bet-amount-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bet-amount-control label {
    font-weight: 600;
    color: var(--text-dark);
}

.bet-amount-control input {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .slot-machine {
        padding: 20px;
    }

    .slot-header h2 {
        font-size: 24px;
    }

    .reels-container {
        gap: 8px;
        padding: 20px;
    }

    .reel {
        width: 80px;
        height: 100px;
    }

    .symbol {
        font-size: 48px;
    }

    .payout-row {
        font-size: 14px;
    }

    .payout-row span:first-child {
        font-size: 18px;
    }

    .betting-controls {
        flex-direction: column;
    }
}