/* --- GLOBAL LAYOUT & NO SCROLLBAR --- */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Scrollbar Removed */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Flexbox to Center Everything */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Background Image with Radial Circle Effect */
    background:  url('background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
     background-position: center 40%;
}

.main-container {
    width: 100%;
    /*max-width: 900px;*/
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* --- LOGO STYLING --- */
#main-logo {
    max-height: 350px;
    transition: all 0.5s ease-in-out;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.title-text {
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* --- REEL WINDOW & CARDS --- */
.reel-window {
    height: 270px;
    width: 100%;
    max-width: 650px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: none; /* Initially Hidden */
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.reel-tape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.reel-card {
    height: 270px; /* Matched with window height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* --- GLASS CARD DESIGN --- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* --- NEON BUTTON --- */
.btn-neon {
    background: linear-gradient(45deg, #ff357a, #fff172);
    border: none;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.5s;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 53, 122, 0.5);
}
.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 53, 122, 0.9);
    color: #000;
}

/* --- MODAL & CELEBRATIONS --- */
.modal-content {
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid #ffc107;
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.5);
    color: white;
    overflow: hidden;
}

.winner-bg-img {
    opacity: 0.3;
    min-height: 450px;
    object-fit: cover;
}

.animate-pop { animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; transform: scale(0); }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

.gold-text {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 0px 5px rgba(255, 215, 0, 0.3);
    font-weight: 800;
    animation: shine 3s infinite linear;
}
@keyframes shine { 0% { background-position: 0 } 100% { background-position: 200px } }

.slide-up { opacity: 0; transform: translateY(30px); animation: slideUpFade 0.8s ease forwards; animation-delay: 0.5s; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }

.winner-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; z-index: 10; }

.celebration-area { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti { position: absolute; border-radius: 2px; box-shadow: 0 1px 1px rgba(0,0,0,0.15); will-change: transform, opacity; }
.spark { position: absolute; width: 4px; height: 10px; border-radius: 2px; opacity: 0.95; transform-origin: bottom center; will-change: transform, opacity; box-shadow: 0 0 6px rgba(255,255,200,0.6); }
.fountain-base { position: absolute; bottom: 8px; height: 1px; width: 1px; }

/* Responsive Adjustments */
@media (max-height: 700px) {
    #main-logo { max-height: 250px; }
    .btn-neon { font-size: 1.2rem !important; padding: 10px 30px !important; }
}