:root {
    --neon-yellow: #DAFF01;
    --bg-black: #000000;
    --card-bg: #0F0F0F;
    --text-white: #FFFFFF;
    --text-gray: #AAAAAA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ccff00;
    /* Fallback */
    background: linear-gradient(135deg, #ccff00 0%, #aadd00 100%);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Background Effects */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../background.png') no-repeat center center fixed;
    background-size: cover;
}

.deco-trophy {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: url('../trophy_icon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(218, 255, 1, 0.4));
    animation: float 6s ease-in-out infinite;
}

.deco-crown {
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: url('../crown_icon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(218, 255, 1, 0.4));
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-effect-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(218, 255, 1, 0.08) 0%, transparent 70%);
    filter: blur(80px);
}

.glow-effect-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(218, 255, 1, 0.05) 0%, transparent 70%);
    filter: blur(80px);
}

/* Card Container */
.card-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

/* 3D Carousel & Smoke Effect */
.header-carousel-container {
    perspective: 1000px;
    width: 100%;
    height: 280px;
    position: relative;
    margin-bottom: 60px;
    overflow: visible;
}

.static-logo {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 140px;
    width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 20;
}

.smoke-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(218, 255, 1, 0.8) 0%, rgba(218, 255, 1, 0) 70%);
    filter: blur(40px);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    transition: none;
}

.smoke-layer.active {
    animation: smokeBurst 0.8s ease-out forwards;
}

@keyframes smokeBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.header-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(90deg) translateZ(100px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-slide.active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg) translateZ(0);
}

.header-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.slide-scouts .scouts-hero {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25));
    margin-bottom: 20px;
}

.slide-prizes .prizes-hero {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 0 35px rgba(218, 255, 1, 0.35));
    margin-bottom: 20px;
}

.scout-text {
    font-size: 42px !important;
    text-align: center;
    margin-top: -20px !important;
}

.brand-logo {
    display: block;
    margin: 0 auto 5px auto;
    max-width: 140px;
    width: 100%;
    object-fit: contain;
}

.hero-player {
    display: block;
    width: 240px;
    height: auto;
    margin-top: -10px;
    z-index: 1;
}

.slide-scouts .title-overlay {
    bottom: -50px;
    transform: translateX(-6px);
}

.slide-prizes .title-overlay {
    bottom: -50px;
}

.title-overlay {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: 'Teko', sans-serif;
    font-size: 60px;
    font-weight: 800;
    color: white;
    font-style: italic;
    margin: 0;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    line-height: 0.8;
    text-transform: uppercase;
}

.junior-text {
    font-size: 42px;
    display: block;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.slide-prizes h1 {
    font-size: 82px;
}

.slide-prizes .junior-text {
    font-size: 48px;
    margin-top: -5px;
}

.subtitle {
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    margin-top: -5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-text {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neon-yellow {
    color: var(--neon-yellow);
}

.event-info-pill {
    background: transparent;
    border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow);
    text-align: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 24px auto;
    display: block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info-pill a {
    color: var(--neon-yellow);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: var(--text-white);
}

input {
    width: 100%;
    background: #1A1A1A;
    border: 1px solid #333;
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--neon-yellow);
    background: #222;
}

button {
    width: 100%;
    background-color: var(--neon-yellow);
    color: black;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(218, 255, 1, 0.3);
}

/* Download Section (Now Inside Card) */
.download-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.download-text {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.app-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.store-link img {
    height: 38px;
    transition: transform 0.2s ease;
}

.store-link:hover img {
    transform: scale(1.05);
}

.footer-links {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
}

.neon-link {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 600;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--neon-yellow);
    width: 90%;
    max-width: 380px;
}

.check-icon {
    width: 60px;
    height: 60px;
    background: var(--neon-yellow);
    color: black;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.success-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 10px;
}

.success-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.done-btn {
    background: white;
    color: black;
    width: auto;
    padding: 10px 40px;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(218, 255, 1, 0.1);
    border-top: 3px solid var(--neon-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

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

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

@media (min-width: 1024px) {
    .card-container {
        max-width: 900px;
    }
}