body {
    background-color: #04AA6D;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #8B0000 0%, #2F4F2F 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 30px 20px;
}

.game-title {
    text-align: center;
    color: #FFD700;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.slot-machine {
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.3);
    margin-bottom: 25px;
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.reel {
    background: white;
    border-radius: 12px;
    width: 110px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.2);
    border: 4px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.reel.spinning {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0%, 100% { transform: rotateX(0deg); }
    50% { transform: rotateX(180deg); opacity: 0.3; }
}

.controls {
    text-align: center;
}

.spin-btn {
    background: #228B22;
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 12px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.spin-btn:hover:not(:disabled) {
    background: #2ea32e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.spin-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.info-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.info-label {
    font-weight: 600;
    color: #8B0000;
}

.info-value {
    font-weight: 700;
    color: #228B22;
    font-size: 1.2em;
}

.bet-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.bet-btn {
    background: #F2A117;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.bet-btn:hover {
    background: #d88e12;
    transform: translateY(-1px);
}

.bet-btn.active {
    background: #CC0033;
    box-shadow: 0 0 0 3px rgba(204, 0, 51, 0.3);
}

.message {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    min-height: 40px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.message.win {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: pulse 0.5s ease-in-out;
}

.message.lose {
    color: #FFB6C1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.paytable {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.paytable h4 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 15px;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em;
}

.paytable-row:last-child {
    border-bottom: none;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #228B22;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-link:hover {
    background: #2ea32e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    .game-title {
        font-size: 2em;
    }

    .reel {
        width: 90px;
        height: 110px;
        font-size: 3.2em;
    }

    .spin-btn {
        padding: 12px 40px;
        font-size: 1.3em;
    }

    .reels-container {
        gap: 10px;
    }

    .info-row {
        font-size: 1em;
    }
}