:root {
    --primary-gold: #FFD700;
    --dark-gold: #B8860B;
    --accent-red: #FF4500;
    --success-green: #25D366;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1a0a05;
    background-image: url('../images/bg_desert.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: #fff;
}

/* Atmospheric Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(20, 10, 2, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.content-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* PREMIUM LOGO SHIMMER */
.logo-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    font-family: 'Cinzel', serif;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 900;
    letter-spacing: 20px;
    margin: 0;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to right, #FFD700 20%, #fff 40%, #fff 60%, #FFD700 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    transition: opacity 0.5s ease;
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.subtitle-text {
    position: fixed;
    top: calc(50% + 50px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 8px;
    color: #FFD700;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: opacity 0.5s ease;
}

.hide-text {
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.8);
}

.grid-container {
    max-width: 900px;
    margin: 0 auto 120px auto;
    position: relative;
    z-index: 5;
}

/* BOX WRAPPER & FLOATING */
.box-wrapper {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.box-wrapper:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.box-wrapper:hover {
    transform: scale(1.1) translateY(-15px);
    z-index: 100;
}

.box-image {
    width: 100%;
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
}

.prize-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(0, 0, 0, 1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.prize-text.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* PREMIUM BUTTONS */
.controls-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    padding: 0 25px;
    transition: all 0.5s ease;
}

.btn-premium {
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 16px 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    letter-spacing: 2px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gold Button Styling */
.btn-gold {
    background: linear-gradient(45deg, #B8860B, #FFD700, #DAA520);
    color: #000;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
    color: #000;
}

/* Glassmorphism Dark Button */
.btn-glass-red {
    background: rgba(244, 67, 54, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.btn-glass-red:hover {
    background: rgba(244, 67, 54, 0.4);
    border-color: #F44336;
    color: #fff;
}

/* Glassmorphism Green Button */
.btn-glass-green {
    background: rgba(37, 211, 102, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(37, 211, 102, 0.5);
}

.btn-glass-green:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: #25D366;
    color: #fff;
}

/* SHIMMER EFFECT FOR BUTTONS */
.btn-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* BURST EFFECTS */
@keyframes burst {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.burst-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: burst 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

/* MODAL CUSTOM */
.modal-content.luxury {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(44, 44, 44, 0.5) 100%);
    backdrop-filter: blur(8px);
    border: 2px solid #FFD700;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.modal-header,
.modal-footer {
    border: none;
}

.form-control.luxury-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #B8860B;
    color: #FFD700;
    font-size: 1.2rem;
    text-align: center;
}

/* PARTICLES */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* MUSIC TOGGLE */
.music-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFD700;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.music-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* WINNER ANNOUNCEMENT (BOTTOM PANEL) */
.winner-announcement {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.9);
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    width: 95%;
    max-width: 800px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 10, 2, 0.8) 0%, rgba(44, 22, 5, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid #FFD700;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.winner-announcement.show {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.winner-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0;
    line-height: 1.2;
}

.winner-prize-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 5px;
    line-height: 1.1;
}

.winner-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.btn-winner-action {
    flex: 1;
    max-width: 250px;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-winner-oke {
    background: #FFD700;
    color: #000;
    border: none;
}

.btn-winner-all {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-winner-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .winner-announcement {
        bottom: 100px;
        padding: 15px;
    }

    .winner-prize-name {
        font-size: 1.5rem;
    }

    .btn-winner-action {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .logo-text {
        font-size: 3rem;
    }

    .subtitle-text {
        font-size: 0.7rem;
        top: calc(50% + 40px);
    }

    .box-image {
        max-width: 100px;
    }

    .grid-container {
        margin-bottom: 250px;
    }

    .controls-container {
        bottom: 20px;
    }
}

.controls-container.hide-controls {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

/* DRAW LOADER */
.draw-loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    width: 450px;
}

@media (max-width: 480px) {
    .draw-loader-container {
        width: 90%;
        padding: 20px 10px;
    }

    .loader-text {
        font-size: 1rem;
    }
}

.draw-loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 215, 0, 0.1);
    border-top: 5px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-wrapper {
    width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    box-shadow: 0 0 15px #FFD700;
    transition: width 0.15s linear;
}

.loader-text {
    font-family: 'Cinzel', serif;
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
}

.dots::after {
    content: '';
    animation: dots-anim 1.5s infinite;
}

@keyframes dots-anim {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}

@keyframes pulse-op {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.searchlight-box {
    filter: brightness(2) drop-shadow(0 0 30px gold) scale(1.1) !important;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 3rem;
    }

    .subtitle-text {
        font-size: 0.7rem;
        top: calc(50% + 40px);
    }

    .box-image {
        max-width: 100px;
    }

    .prize-text {
        font-size: 1rem;
    }

    .grid-container {
        margin-bottom: 200px;
    }
}
