:root {
    --bg: #0a0612;
    --bg-alt: #130a22;
    --pink: #ff2e88;
    --cyan: #21e6c1;
    --gold: #ffb800;
    --violet: #7c3aed;
    --ink: #f4eefb;
    --ink-dim: #a89bc2;
    --card: rgba(255, 255, 255, 0.035);
    --card-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* atmospheric backdrop: grid + grain + glows, fixed behind all content */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 46, 136, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 230, 193, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.font-display {
    font-family: 'Bungee', cursive;
    letter-spacing: 0.5px;
}

.text-outline {
    -webkit-text-stroke: 1px rgba(244, 238, 251, 0.5);
    color: transparent;
}

.text-neon-pink { color: var(--pink); text-shadow: 0 0 10px rgba(255,46,136,0.7), 0 0 30px rgba(255,46,136,0.35); }
.text-neon-cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(33,230,193,0.7), 0 0 30px rgba(33,230,193,0.35); }
.text-neon-gold { color: var(--gold); text-shadow: 0 0 10px rgba(255,184,0,0.6), 0 0 30px rgba(255,184,0,0.3); }

.btn-neon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Bungee', cursive;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #0a0612;
    background: linear-gradient(100deg, var(--gold), var(--pink));
    padding: 1rem 2rem;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 30px -8px rgba(255,46,136,0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-neon:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset, 0 14px 40px -8px rgba(255,184,0,0.8);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.card-glow {
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-glow:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    border-color: rgba(255,46,136,0.5);
    box-shadow: 0 20px 50px -20px rgba(255,46,136,0.5), 0 0 0 1px rgba(33,230,193,0.15);
}

.game-card { overflow: hidden; }
.game-card .game-img { transition: transform 0.5s ease, filter 0.5s ease; }
.game-card:hover .game-img { transform: scale(1.08) rotate(0.5deg); filter: saturate(1.3); }
.game-card .play-tag {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.game-card:hover .play-tag { opacity: 1; transform: translateY(0); }

/* marquee ticker */
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 22s linear infinite;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* winners horizontal scroller */
.winners-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}
.winners-row::-webkit-scrollbar { height: 6px; }
.winners-row::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 999px; }
.winner-card { scroll-snap-align: start; flex: 0 0 auto; }

/* staggered fade-up entrance */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.diag-clip {
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.star-gold path { fill: var(--gold); }

.iframe-frame {
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    box-shadow: 0 0 0 1px rgba(33,230,193,0.15), 0 30px 60px -25px rgba(255,46,136,0.4);
    overflow: hidden;
    background: var(--bg-alt);
}
