@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(ellipse at 50% 20%, #0d1f52 0%, #060e2c 55%, #020510 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Allow natural scrolling on short viewports (landscape phones, small laptops)
   instead of clipping/squeezing the card into the screen. */
body.min-h-screen {
    min-height: 100vh;
    height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ===== Animated starfield / sparkle backdrop ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,215,0,.6) 0, transparent 50%),
        radial-gradient(2px 2px at 80% 10%, rgba(255,255,255,.5) 0, transparent 50%),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,215,0,.5) 0, transparent 50%),
        radial-gradient(2px 2px at 60% 85%, rgba(255,255,255,.4) 0, transparent 50%),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,215,0,.5) 0, transparent 50%),
        radial-gradient(2px 2px at 45% 40%, rgba(255,255,255,.4) 0, transparent 50%);
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: sparkle-drift 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle-drift {
    from { background-position: 0 0; }
    to   { background-position: -400px 400px; }
}

/* ===== Main card ===== */
.bg-lines {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 215, 0, 0.035) 0px,
            rgba(255, 215, 0, 0.035) 2px,
            transparent 2px,
            transparent 14px
        ),
        linear-gradient(155deg, #152a66 0%, #0c1740 55%, #060b24 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    z-index: 1;
}

/* ===== Poster-style card (uses poster-bg.svg asset) ===== */
.poster-card {
    background-image: url('../../asset/poster-bg.svg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 215, 0, 0.18);
    z-index: 1;
}

/* Pill badge e.g. "CULTURE SPINWHEEL" */
.pill-badge {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #fff;
    background: rgba(255, 215, 0, .08);
    border: 1px solid rgba(255, 215, 0, .4);
    box-shadow: 0 0 20px rgba(255, 215, 0, .15);
}

/* Large headline gold number/text block (e.g. "Rp15.000.000" style) */
.headline-gold {
    background: linear-gradient(180deg, #fff6d8 0%, #ffe38a 25%, #d4a017 60%, #ffdf80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 25px rgba(255, 215, 0, .5),
        0 4px 0 rgba(0,0,0,.25);
    letter-spacing: .5px;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,.4));
}

.card-shadow {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 215, 0, .08) inset,
        0 0 80px rgba(37, 99, 235, .25);
}

/* Soft rotating glow behind the card */
.card-shadow::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

/* ===== Gold text treatments ===== */
.gold-glow {
    background: linear-gradient(180deg, #fff6d8 0%, #ffd766 35%, #d4a017 70%, #ffe38a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 18px rgba(255, 215, 0, .55),
        0 0 36px rgba(255, 180, 0, .35);
    letter-spacing: .5px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

.gold-text {
    color: #ffd766;
    text-shadow: 0 0 10px rgba(255, 215, 0, .4);
}

/* ===== Confetti assets (image-based decoration) ===== */
.confetti-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.confetti-asset {
    position: absolute;
    height: auto;
    opacity: .95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
    animation: confetti-float 5s ease-in-out infinite;
}

.confetti-twinkle {
    animation: confetti-float 5s ease-in-out infinite, confetti-twinkle 2.4s ease-in-out infinite;
}

@keyframes confetti-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@keyframes confetti-twinkle {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* Hide the bulkiest confetti pieces on very small screens to avoid clutter/overflow */
@media (max-width: 420px) {
    .confetti-hide-xs { display: none; }
}

@media (max-width: 340px) {
    .confetti-hide-sm { display: none; }
}

/* ===== Wheel ===== */
.wheel-wrap {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 45px rgba(255, 215, 0, .35));
}

/* Wheel face artwork (gold rim + navy/yellow slices + bulbs), from wheel-face.svg */
.wheel-face {
    background-image: url('../../asset/wheel-face.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.55));
}

/* Fluid wheel size: scales smoothly from small phones up to large desktops */
.wheel-size {
    width: clamp(220px, 68vw, 420px);
    height: clamp(220px, 68vw, 420px);
}

@media (min-width: 768px) {
    .wheel-size {
        width: clamp(320px, 34vw, 420px);
        height: clamp(320px, 34vw, 420px);
    }
}

/* Podium/stand artwork beneath the wheel, from wheel-podium.svg */
.wheel-podium {
    width: min(150%, calc(100vw - 2rem));
    max-width: 480px;
    margin: -8% auto 0;
    aspect-ratio: 800 / 260;
    background-image: url('../../asset/wheel-podium.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    z-index: -1;
}

/* Hub in the center of the wheel */
.wheel-hub {
    background: radial-gradient(circle at 35% 30%, #fffbe6, #ffd766 45%, #b8860b 100%);
    box-shadow:
        0 0 0 4px rgba(255,255,255,.65),
        0 4px 14px rgba(0,0,0,.5);
}

/* Pointer */
.wheel-pointer {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
    animation: pointer-bounce 1.6s ease-in-out infinite;
}

@keyframes pointer-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 4px); }
}

/* Slice labels */
.slice {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.slice span {
    display: inline-block;
    transform-origin: center;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(180deg, #fff3c4 0%, #ffd766 45%, #d4a017 100%);
    color: #11204d;
    box-shadow:
        0 10px 25px rgba(212, 160, 23, .45),
        0 0 0 1px rgba(255,255,255,.4) inset;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 14px 32px rgba(212, 160, 23, .6),
        0 0 0 1px rgba(255,255,255,.5) inset;
    filter: brightness(1.05);
}

.btn-gold:active {
    transform: translateY(0) scale(.98);
}

.btn-gold:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-violet {
    background: linear-gradient(180deg, #6d4cf0, #4527a0);
    box-shadow:
        0 10px 25px rgba(69, 39, 160, .5),
        0 0 0 1px rgba(255,255,255,.15) inset;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-violet:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.1);
}

/* Pulse ring behind the spin button */
.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 215, 0, .55);
    animation: btn-pulse-ring 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes btn-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, .55); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Modal entrance */
.modal-pop {
    animation: modal-pop .35s cubic-bezier(.2, .8, .2, 1.2);
}

@keyframes modal-pop {
    from { opacity: 0; transform: scale(.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Divider used under "Total Hadiah" style headings */
.gold-divider {
    display: inline-block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd766, transparent);
    vertical-align: middle;
}
</content>
