* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    /* Hapus baris background-image lama dari sini */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-bottom: 95px; 
    overflow-x: hidden;
    position: relative;
}

/* Versi Desktop (Layar lebar) */
@media (min-width: 769px) {
    body {
        background-image: url('DEKSTOP\ 1920x1080.jpg');
    }
}

/* Versi Mobile (Layar kecil) */
@media (max-width: 768px) {
    body {
        background-image: url('MOBILE\ 1080x1920.jpg');
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(8, 5, 18, 0.274) 0%, rgba(20, 10, 40, 0.233) 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    text-align: center;
    background: rgba(15, 10, 30, 0.11); 
    border: 1px solid rgba(255, 255, 255, 0.521); 
    border-radius: 30px;
    padding: 35px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.281), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    margin: auto 0;
}

.logo-area img { max-width: 170px; height: auto; }
.pulse-logo { display: inline-block; animation: pulseEffect 2s infinite ease-in-out; transition: transform 0.3s ease; }
@keyframes pulseEffect {
    0% { transform: scale(1); filter: drop-shadow(0 4px 8px rgb(109, 27, 39)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 6px 16px rgba(179, 29, 52)); }
    100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(109, 27, 39)); }
}

.seo-title {
font-size: 1.55rem; 
font-weight: 800; 
text-transform: uppercase; 
letter-spacing: 1.5px;
background: linear-gradient(45deg, #B31D34, #b80e27, #dd0525);
-webkit-background-clip: text; 
-webkit-text-fill-color: transparent; 
margin-bottom: 6px;

/* Kode Stroke Putih */
-webkit-text-stroke: 0.5px #ffffff;
paint-order: stroke fill;

}

.subtitle { font-size: 0.82rem; color: #ffffff; line-height: 1.5; margin-bottom: 25px; padding: 0 15px; }

/* ==========================================================================
   3. STRUKTUR LAYOUT RODA EMAS KUSTOM (SINKRONISASI UKURAN KANVAS)
   ========================================================================== */
.wheel-wrapper {
    position: relative; 
    width: 100%; 
    max-width: 320px; 
    aspect-ratio: 1 / 1; 
    margin: 0 auto 28px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FIX DETAIL: Ukuran dinaikkan menjadi 95% agar roda membesar pas ke diameter dalam bingkai kustom */
canvas {
    width: 95% !important; 
    height: 95% !important; 
    position: absolute; 
    z-index: 3;
    border-radius: 50%;
}

/* Bingkai overlay dikunci mati di posisi tengah luar */
.wheel-frame-overlay {
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 5; 
    object-fit: contain; 
    pointer-events: none;
}

.form-group { width: 100%; padding: 0 5px; }
input[type="text"] {
    width: 100%; padding: 14px 20px; font-size: 0.95rem; font-weight: 600; text-align: center;
    border-radius: 50px; border: 2px solid rgba(255, 255, 255, 0.15); background: rgba(0, 0, 0, 0.4);
    color: #ffffff; letter-spacing: 2px; outline: none;
}
.btn-spin {
    width: 100%; 
    padding: 14px; 
    margin-top: 14px; 
    font-size: 1.05rem; 
    font-weight: 800; 
    color: #0c081a;
    
    /* MODIFIKASI: Gradasi emas multi-layer agar efek logamnya keluar */
    background: linear-gradient(45deg, #b8860b 0%, #e1ad01 25%, #fff2a3 50%, #fdc238 75%, #b8860b 100%);
    background-size: 200% auto; /* Diperlukan untuk animasi kilat */
    
    /* MODIFIKASI: Tambah bingkai emas tipis agar potongan tombol terlihat tajam */
    border: 1.5px solid #fff2a3; 
    border-radius: 50px; 
    cursor: pointer;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    
    /* MODIFIKASI: Mengubah bayangan putih menjadi kilau emas mewah (Gold Glow) */
    box-shadow: 0 6px 20px rgba(225, 173, 1, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.7);
    
    /* TAMBAHAN: Efek transisi halus dan animasi kilatan cahaya otomatis */
    transition: all 0.4s ease;
    animation: kilatEmas 3s infinite linear;
    position: relative;
    overflow: hidden;
}

/* Efek interaktif saat tombol ditekan atau dilewati kursor mouse */
.btn-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 194, 56, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    filter: brightness(1.1);
}

/* Formula animasi untuk efek kilatan cahaya logam bergerak */
@keyframes kilatEmas {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.btn-spin:disabled { background: #B31D34; color: #db1734; box-shadow: none; cursor: not-allowed; }

.pinned-footer {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 68px; 
    background: rgba(15, 10, 32, 0.90); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.25); display: flex; justify-content: space-around; align-items: center; z-index: 99;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7);
}
.footer-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; width: 25%; height: 100%; }
.footer-custom-icon { width: 26px; height: 26px; object-fit: contain; margin-bottom: 4px; animation: floatEffect 3s infinite ease-in-out; }

.footer-item:nth-child(1) .footer-custom-icon { animation-delay: 0s; }
.footer-item:nth-child(2) .footer-custom-icon { animation-delay: 0.3s; }
.footer-item:nth-child(3) .footer-custom-icon { animation-delay: 0.6s; }
.footer-item:nth-child(4) .footer-custom-icon { animation-delay: 0.9s; }

.footer-text { font-size: 0.72rem; font-weight: 600; color: #e1daf5; letter-spacing: 0.3px; }
.footer-item:active .footer-custom-icon, .footer-item:hover .footer-custom-icon { transform: scale(1.1) translateY(-4px); filter: drop-shadow(0 4px 6px rgba(255, 215, 0, 0.5)); }
@keyframes floatEffect { 0% { transform: translateY(0px); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0px); } }

/* MODAL OVERLAY: ULTRA TRANSPARAN ELEGAN */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); 
    display: flex; align-items: center; justify-content: center;
    z-index: 100; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 16px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.welcome-overlay-transparant {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); 
    display: flex; align-items: center; justify-content: center;
    z-index: 110; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 16px;
}
.welcome-overlay-transparant.active { opacity: 1; visibility: visible; }

.modal-card {
    background: #111625; border: 2px solid #B31D34; border-radius: 24px; width: 100%; max-width: 380px;
    padding: 35px 24px 25px 24px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: scale(0.85); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card,
.welcome-overlay-transparant.active .modal-card { transform: scale(1); }

.welcome-card { border-color: #B31D34; box-shadow: 0 20px 60px rgba(0,0,0,0.9); }
.welcome-card h2 { background: linear-gradient(45deg, #F5C553, #F5C553); -webkit-background-clip: text; }
.welcome-logo-area { margin: 15px 0; }
.welcome-text { font-size: 0.88rem; color: #d1cae6; line-height: 1.6; margin-bottom: 5px; }
.btn-welcome-start { background: linear-gradient(45deg, #B31D34, #610c19); color: #fff; margin-top: 20px; font-weight: 800; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); }

.prize-announcement { font-size: 1.35rem; font-weight: 800; color: #ffffff; margin: 16px 0; background: rgba(243, 156, 18, 0.08); padding: 12px; border-radius: 12px; border: 1px dashed rgba(243, 156, 18, 0.4); border-left: 5px solid #B31D34; }
.verification-code { font-size: 0.75rem; color: #ffffff; background: rgba(0, 0, 0, 0.2); padding: 4px 10px; border-radius: 4px; display: inline-block; }
.btn-claim { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px; background: #B31D34; color: #ffffff; text-decoration: none; font-weight: 700; font-size: 0.95rem; border-radius: 50px; margin-top: 18px; }
.btn-claim svg { width: 20px; height: 20px; margin-right: 8px; fill: #ffffff; }

/* FIX BUTTON OK KAPSUL */
.modal-overlay .btn-spin {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.08);
}
.modal-overlay .btn-spin:hover {
    background: linear-gradient(135deg, #475569, #334155);
}
.logo-menang {
            width: 1.5em;
            height: 1.5em;
            vertical-align: middle;
            object-fit: contain;
            display: inline-block; animation: pulseEffect 2s infinite ease-in-out; transition: transform 0.3s ease; }
        @keyframes pulseEffect {
    0% { transform: scale(1); filter: drop-shadow(0 4px 8px rgb(90, 90, 90)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 6px 16px rgb(255, 255, 255)); }
    100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(90, 90, 90)); }
}