/* ============================================================
   lottery.day - Dopamine Neon Burst
   Palette: #ffd700, #e5e5e5, #1a1a1a, #ef4444, #ffffff,
            #ff006e, #2563eb, #22c55e
   Fonts:   Bungee Shade (display), Bungee (numbers), Rubik (body)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

/* ============================================================
   HERO - Radial Gold-to-Pink Burst
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 50%, #ffd700 0%, #ffd700 15%, #ff006e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem 8rem;
}

/* Confetti shower layer */
.confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti {
    position: absolute;
    top: -40px;
    width: 10px;
    height: 14px;
    opacity: 0.95;
    animation-name: confetti-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.confetti--triangle {
    width: 12px;
    height: 12px;
    background: transparent;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.confetti--circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.confetti--rect {
    width: 6px;
    height: 12px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.9;
    }
}

/* Sparkle layer */
.sparkle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.4;
    animation: sparkle-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.jackpot-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.banner-pill {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: #1a1a1a;
    color: #ffd700;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.jackpot-amount {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    color: #ffffff;
    text-shadow: 0 4px 0 rgba(26, 26, 26, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Lottery ball - main */
.lottery-ball {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ffffff 60%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.25),
        inset 0 -8px 16px rgba(0, 0, 0, 0.1),
        inset 0 6px 12px rgba(255, 255, 255, 0.9);
    position: relative;
    animation: ball-float 4s ease-in-out infinite;
}

.lottery-ball--main::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
    z-index: -1;
    animation: halo-pulse 2.5s ease-in-out infinite;
}

@keyframes ball-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes halo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.ball-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.ball-domain {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.ball-domain--accent {
    color: #ff006e;
}

.hero-tagline {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    max-width: 520px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
    background: #1a1a1a;
    color: #ffd700;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.3);
}

.btn--primary:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn--ghost:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn--xl {
    font-size: 1.15rem;
    padding: 1.25rem 2.75rem;
}

/* Countdown ribbon */
.countdown-ribbon {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 2rem;
    background: rgba(26, 26, 26, 0.85);
    border: 2px solid #ffd700;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.countdown-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #e5e5e5;
    letter-spacing: 0.2em;
}

.countdown-value {
    font-family: 'Bungee', cursive;
    font-size: 1.4rem;
    color: #ffd700;
    letter-spacing: 0.05em;
}

/* ============================================================
   NUMBER GRID SECTION
   ============================================================ */
.grid-section {
    padding: 6rem 1.5rem 5rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.08), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 110, 0.08), transparent 40%),
        #ffffff;
    text-align: center;
    position: relative;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-head--left {
    text-align: left;
    margin-left: 0;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #ff006e;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 2px solid #ff006e;
    border-radius: 999px;
}

.section-title {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: #1a1a1a;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.section-sub {
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    opacity: 0.75;
    line-height: 1.7;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(8, 80px);
    gap: 14px;
    justify-content: center;
    padding: 2rem 0;
    max-width: 100%;
}

.num-cell {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 -3px 6px rgba(0, 0, 0, 0.06),
        inset 0 3px 6px rgba(255, 255, 255, 0.9);
    user-select: none;
}

.num-cell:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: #ff006e;
    box-shadow:
        0 8px 22px rgba(255, 0, 110, 0.25),
        inset 0 -3px 6px rgba(0, 0, 0, 0.08);
}

.num-cell.is-selected {
    background: #ffd700;
    border-color: #ffd700;
    color: #ffffff;
    box-shadow:
        0 8px 22px rgba(255, 215, 0, 0.55),
        inset 0 -4px 8px rgba(0, 0, 0, 0.12),
        inset 0 4px 8px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    animation: pop 0.4s ease;
}

@keyframes pop {
    0%   { transform: scale(0.6); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1.05); }
}

/* Selection summary */
.selection-summary {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.summary-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: #1a1a1a;
}

.summary-balls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mini-ball {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffd700;
    color: #ffffff;
    font-family: 'Bungee', cursive;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18),
        inset 0 -3px 6px rgba(0, 0, 0, 0.12),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}

.mini-ball--empty {
    background: #ffffff;
    color: #e5e5e5;
    border: 2px dashed #e5e5e5;
    box-shadow: none;
}

.mini-ball--filled {
    animation: drop 0.5s ease;
}

@keyframes drop {
    0% { transform: translateY(-30px) scale(0.4); opacity: 0; }
    60% { transform: translateY(6px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.mini-ball--blue { background: #2563eb; }
.mini-ball--pink { background: #ff006e; }
.mini-ball--green { background: #22c55e; }
.mini-ball--red { background: #ef4444; }
.mini-ball--gold { background: #ffd700; }

/* ============================================================
   WINNERS SECTION
   ============================================================ */
.winners-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a1530 100%);
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.winners-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.15), transparent 30%);
    pointer-events: none;
}

.winners-section .section-title {
    color: #ffffff;
}

.winners-section .section-eyebrow {
    color: #ffd700;
    border-color: #ffd700;
}

.winners-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.winner-card {
    position: relative;
    padding: 2.5rem 1.75rem 2rem;
    border-radius: 24px;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.winner-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.4;
}

.winner-card--gold::before { background: #ffd700; }
.winner-card--pink::before { background: #ff006e; }
.winner-card--blue::before { background: #2563eb; }

.winner-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: #ffffff;
    background: #1a1a1a;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.winner-card--gold .winner-badge { background: #ffd700; color: #1a1a1a; }
.winner-card--pink .winner-badge { background: #ff006e; }
.winner-card--blue .winner-badge { background: #2563eb; }

.winner-amount {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.winner-meta {
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 2;
}

.winner-balls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.num-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bungee', cursive;
    font-size: 0.9rem;
    color: #ffffff;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.num-ball--gold { background: #ffd700; color: #1a1a1a; }
.num-ball--pink { background: #ff006e; }
.num-ball--blue { background: #2563eb; }
.num-ball--green { background: #22c55e; }
.num-ball--red { background: #ef4444; }

/* ============================================================
   ODDS / EXPLAINER SECTION
   ============================================================ */
.odds-section {
    padding: 6rem 1.5rem;
    background: #ffffff;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 0, 110, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}

.odds-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.odds-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.odds-stat {
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0 #1a1a1a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.odds-stat:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #ff006e;
}

.odds-stat:nth-child(1) { background: #ffd700; }
.odds-stat:nth-child(2) { background: #ff006e; color: #ffffff; }
.odds-stat:nth-child(3) { background: #2563eb; color: #ffffff; }
.odds-stat:nth-child(4) { background: #22c55e; color: #ffffff; }

.odds-stat__num {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.odds-stat__label {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
    position: relative;
    padding: 5rem 1.5rem;
    background: radial-gradient(circle at 50% 50%, #ffd700 0%, #ff006e 100%);
    text-align: center;
    overflow: hidden;
}

.cta-strip::before,
.cta-strip::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.cta-strip::before { top: -60px; left: -60px; }
.cta-strip::after { bottom: -80px; right: -80px; width: 280px; height: 280px; }

.cta-strip__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.cta-strip__title {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 0 rgba(26, 26, 26, 0.3);
}

.cta-strip__sub {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FOOTER + TICKER TAPE
   ============================================================ */
.footer {
    background: #1a1a1a;
    color: #ffffff;
}

.ticker {
    height: 48px;
    background: #1a1a1a;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker-slide 50s linear infinite;
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    color: #ffd700;
    padding-left: 100%;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ticker-item__sep {
    color: #ff006e;
    font-size: 1.2rem;
}

.ticker-item__num {
    color: #ffffff;
}

@keyframes ticker-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.footer-meta {
    padding: 2.5rem 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: baseline;
}

.footer-logo {
    font-family: 'Bungee Shade', cursive;
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1;
}

.footer-logo--accent {
    color: #ff006e;
}

.footer-copy {
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    color: #e5e5e5;
    opacity: 0.75;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: #ff006e;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .number-grid {
        grid-template-columns: repeat(6, 70px);
        gap: 10px;
    }

    .num-cell {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }

    .odds-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-meta {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-brand {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem 7rem;
    }

    .lottery-ball {
        width: 220px;
        height: 220px;
    }

    .number-grid {
        grid-template-columns: repeat(5, 60px);
        gap: 8px;
    }

    .num-cell {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }

    .countdown-ribbon {
        bottom: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .winner-card {
        padding: 2rem 1.25rem 1.75rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .number-grid {
        grid-template-columns: repeat(4, 60px);
    }

    .summary-balls {
        gap: 0.5rem;
    }

    .mini-ball {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
}
