* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to bottom, #1a0b2e, #3d1466);
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    padding: 15px;
}

.slot-container {
    background: #2b0f4c;
    border: 4px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.header-ui {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: clamp(16px, 4vw, 24px);
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
}

.slot-machine {
    display: flex;
    gap: 8px;
    background: #11051f;
    padding: 8px;
    border: 3px solid #b8860b;
    border-radius: 8px;
    height: 400px;
    overflow: hidden;
}

.reel-container {
    flex: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgb(255 215 0 / 39%);
    position: relative;
}

.reel-container:last-child {
    border-right: none;
}

.reel-container.show-win {
    overflow: visible !important;
    z-index: 50;
}

.reel {
    display: flex;
    flex-direction: column;
}

/* GABUNGAN CLASS SYMBOL YANG BERSIH */
.symbol {
    height: 75px; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: bold;
    background: linear-gradient(to bottom, #ffea00, #ff8c00);
    border: none;
    border-radius: 30px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.6);
    transition: transform 0.1s;
    width: 100%;
    max-width: 300px;
}

.spin-btn:active {
    transform: scale(0.95);
}

.spin-btn:disabled {
    background: gray;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 600px) {
    .slot-container {
        padding: 10px;
        border-width: 2px;
    }
    
    .slot-machine {
        height: 265px;
        gap: 4px;
        padding: 4px;
    }
    
    .symbol {
        height: 50px; 
        font-size: 24px;
    }
    
    .header-ui {
        margin-bottom: 10px;
    }
}

/* ANIMASI LISTRIK DINAMIS */
@keyframes electricShockDynamic {
    0% {
        box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color), inset 0 0 5px var(--glow-color);
        border-color: var(--glow-color);
    }
    50% {
        box-shadow: 0 0 15px #ffffff, 0 0 25px var(--glow-alt), inset 0 0 10px var(--glow-alt);
        border-color: #ffffff;
    }
    100% {
        box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color), inset 0 0 5px var(--glow-color);
        border-color: var(--glow-color);
    }
}

/* GABUNGAN CLASS ELECTRIC WIN YANG BERSIH */
.electric-win {
    transform: scale(1.005) !important;
    z-index: 100;
    border: 3px solid var(--glow-color); 
    border-radius: 12px;
    animation: electricShockDynamic 0.4s infinite alternate; 
    background: rgba(255, 255, 255, 0.15); 
}

.out-of-spins-msg {
    color: #ff4d4d;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: pulseText 2s infinite;
    padding: 10px;
}

@keyframes pulseText {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.results-board {
    margin-top: 15px;
    padding: 15px;
    background: #11051f;
    border: 2px solid #b8860b;
    border-radius: 8px;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #aaa;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid var(--glow-color);
    color: white;
    text-shadow: 1px 1px 2px black;
    box-shadow: 0 0 10px var(--glow-color);
}

.inventory-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed #d4af37;
    border-radius: 8px;
    width: 100%;
}

.inventory-box h3 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
}

.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd;
    font-size: 16px;
    text-align: left;
    padding: 0 10px;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #00ffaa;
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* MODAL & FORM */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #2b0f4c;
    border: 3px solid #00ffaa;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 28px;
    text-shadow: 2px 2px 4px #000;
}

.modal-content p {
    color: #ddd;
    margin-bottom: 15px;
}

.modal-prize-list {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
    border: 1px dashed #d4af37;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #b8860b;
    background: #11051f;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

#claim-btn {
    background: linear-gradient(to right, #00ffaa, #008cff);
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 30px;
    color: #111;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.4);
    transition: transform 0.1s;
}

#claim-btn:active {
    transform: scale(0.95);
}

/* QR CODE VERIFIKASI */
#qrcode-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
    border: 3px solid #00ffaa;
}

#qrcode-container img {
    width: 100% !important;
    height: 100% !important;
}

.qr-info-text {
    color: #ff3333;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    border-top: 1px dashed #444;
    padding-top: 10px;
}