/* ================================================================
   JackpotZone – Modern Casino Pre-Lander
   ================================================================ */

:root {
    --bg-0: #0a0e1a;
    --bg-1: #111727;
    --bg-2: #1a2236;
    --bg-3: #242d45;

    --gold: #f5c542;
    --gold-bright: #ffd966;
    --gold-deep: #b8881d;

    --accent: #e63946;
    --success: #22c55e;

    --text: #f1f3f9;
    --text-muted: #8893af;
    --text-dim: #5a6485;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(245, 197, 66, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-gold: 0 10px 40px -10px rgba(245, 197, 66, 0.4);
    --shadow-deep: 0 20px 60px -15px rgba(0, 0, 0, 0.6);

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;

    /* Ambient background glow */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 197, 66, 0.12), transparent 70%),
        radial-gradient(ellipse 60% 40% at 50% 110%, rgba(230, 57, 70, 0.08), transparent 70%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 2px;
}

.logo-mark {
    color: var(--gold);
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.6));
}

.logo-text em {
    color: var(--gold);
    font-style: normal;
}

.jackpot-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(245, 197, 66, 0.05));
    border: 1px solid var(--border-strong);
}

.jackpot-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.jackpot-amount {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.4);
}

/* ================================================================
   HERO
   ================================================================ */
.main {
    padding: 60px 0 80px;
}

.hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto;
}

.lead strong {
    color: var(--text);
    font-weight: 700;
}

/* ================================================================
   SLOT MACHINE
   ================================================================ */
.slot-section {
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.slot-machine {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow:
        var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.slot-machine::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 30%, transparent 70%, var(--gold-deep) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
}

.slot-machine__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.slot-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    animation: pulse 1.4s ease-in-out infinite alternate;
}

.slot-light:last-child {
    animation-delay: 0.7s;
}

@keyframes pulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to   { opacity: 1;   transform: scale(1.1); }
}

.slot-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 6px;
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.5);
}

/* Reels */
.slot-machine__reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #000;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.reel-window {
    position: relative;
    height: 240px; /* Exactly 3 symbols tall (80px per symbol) */
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: #f5f5f5;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Top/bottom shading on reels for depth */
.reel-window::before,
.reel-window::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 3;
    pointer-events: none;
}

.reel-window::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.reel-window::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
}

.reel {
    width: 100%;
    height: 100%;
    background-image: url('files/reel.jpg');
    background-repeat: repeat-y;
    background-size: 124px 400px; /* native size — symbols at 80px intervals */
    background-position: center 0;
    /* background-position-y animates for the scroll illusion */
    transition: background-position 4s cubic-bezier(0.15, 0.7, 0.25, 1);
}

.reel-2 {
    transition-duration: 3s;
}

.reel-3 {
    transition-duration: 5s;
}

/* Banner rows shown in the reel window after a WIN.
   Each row crops the top 80px of reel.jpg (the "700 GRATIS SPINS" banner)
   and stacks 3 of them to fill the 240px window. */
.banner-row {
    width: 100%;
    height: 33.333%;
    background-image: url('files/reel.jpg');
    background-size: auto 400px; /* keep native aspect, image is 400px tall */
    background-position: center -5px; /* show banner region */
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    /* Clip so only the banner region (top 80px of native image) is visible */
    /* Since each row is 80px tall (240 / 3) and background-position is -5px,
       the visible portion is image rows 5–85: the full banner. */
}

@keyframes bannerPop {
    0%   { opacity: 0; transform: scale(0.85); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* Horizontal payline across middle */
.payline {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.5;
    pointer-events: none;
}

/* Bottom / spin button */
.slot-machine__bottom {
    margin-top: 20px;
}

.spin-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #0a0e1a;
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow:
        0 6px 24px -6px rgba(245, 197, 66, 0.6),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.spin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s;
}

.spin-btn:hover:not(:disabled)::after {
    left: 100%;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px -6px rgba(245, 197, 66, 0.75),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-btn__label {
    font-size: 28px;
}

.spin-btn__sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
}

/* ================================================================
   STATUS MESSAGES
   ================================================================ */
.status {
    width: 100%;
    max-width: 500px;
    display: none;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid;
    animation: slideUp 0.4s ease-out;
}

.status.is-visible {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
}

.status div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status strong {
    font-size: 15px;
    font-weight: 700;
}

.status span {
    font-size: 13px;
    color: var(--text-muted);
}

.status--miss {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.3);
}

.status--miss .status-icon {
    background: rgba(230, 57, 70, 0.2);
    color: #ff6b7a;
}

.status--win {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(245, 197, 66, 0.1));
    border-color: rgba(245, 197, 66, 0.4);
    box-shadow: 0 0 30px -5px rgba(245, 197, 66, 0.3);
}

.status--win .status-icon {
    background: var(--gold);
    color: #0a0e1a;
    animation: spin-glow 2s ease-in-out infinite;
}

.status--win strong {
    color: var(--gold-bright);
    letter-spacing: 0.5px;
}

.status--win b {
    color: var(--text);
}

@keyframes spin-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.7); }
    50%      { box-shadow: 0 0 0 12px rgba(245, 197, 66, 0); }
}

/* ================================================================
   STEPS
   ================================================================ */
.steps {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.steps-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 42px);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.steps-heading em {
    font-style: normal;
    color: var(--gold);
}

/* Utility: line-break that only appears on mobile.
   Used in the steps heading to push "3 Schritten" onto its own line. */
br.mobile-only {
    display: none;
}
@media (max-width: 600px) {
    br.mobile-only {
        display: inline;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    position: relative;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--bg-3);
    letter-spacing: 1px;
    line-height: 1;
    user-select: none;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 16px;
    filter: grayscale(0.1);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ================================================================
   CTA
   ================================================================ */
.cta-wrap {
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.cta-wrap.is-active {
    opacity: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 42px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: #0a0e1a;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 3px;
    border-radius: 999px;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.cta-wrap.is-active .cta-btn {
    pointer-events: auto;
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 50px -10px rgba(245, 197, 66, 0.6);
}

.cta-arrow {
    transition: transform 0.2s ease;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    /* Tighter header so more vertical room is left for the slot */
    .site-header {
        padding: 10px 0;
    }

    .site-header .container {
        gap: 10px;
    }

    .jackpot-badge {
        padding: 5px 10px;
    }

    .jackpot-label {
        font-size: 9px;
    }

    .jackpot-amount {
        font-size: 16px;
    }

    .logo {
        font-size: 20px;
    }

    /* Reduce main top padding heavily */
    .main {
        padding: 16px 0 50px;
    }

    /* Compact hero: smaller heading, no lead paragraph visible on small phones */
    .hero {
        margin-bottom: 16px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: clamp(26px, 8vw, 34px);
        margin-bottom: 10px;
    }

    .lead {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Slot machine: tighter paddings and smaller reels */
    .slot-machine {
        padding: 12px;
    }

    .slot-machine__top {
        margin-bottom: 10px;
        padding-bottom: 8px;
        gap: 10px;
    }

    .slot-title {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .slot-light {
        width: 8px;
        height: 8px;
    }

    .slot-machine__reels {
        gap: 4px;
        padding: 5px;
    }

    /* Smaller reel window on mobile so everything fits above the fold.
       Must be a multiple of 60 (one symbol cell) to keep grid alignment. */
    .reel-window {
        height: 180px; /* 3 × 60px cells */
    }

    /* Rescale the repeating reel image to match the new 60px cell size.
       The native image is 124×400. To make symbols appear at 60px intervals
       instead of 80px, scale the image to 75% height: 400 × 0.75 = 300px. */
    .reel {
        background-size: 93px 300px;
    }

    .slot-machine__bottom {
        margin-top: 14px;
    }

    .spin-btn {
        padding: 14px 16px;
    }

    .spin-btn__label {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .spin-btn__sub {
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* Banner-row (win state) also scales down to match the mobile cell size.
       60px cell tall, image scaled to 300px → banner region is 0–60 in scaled coords. */
    .banner-row {
        background-size: auto 300px;
        background-position: center -4px;
    }

    .steps-grid {
        gap: 14px;
    }

    .step {
        padding: 24px 20px 20px;
    }

    .status {
        padding: 14px 16px;
        gap: 12px;
    }

    .status-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .status strong {
        font-size: 14px;
    }

    .status span {
        font-size: 12px;
    }
}

/* Hide lead paragraph on very small screens to save more vertical space */
@media (max-width: 420px) {
    .lead {
        display: none;
    }

    .hero {
        margin-bottom: 12px;
    }
}

/* Shake animation on miss */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.slot-machine.is-miss {
    animation: shake 0.4s ease-in-out;
}

/* Win flash — celebratory blinking glow pulsing around the whole slot machine */
@keyframes win-blink {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(245, 197, 66, 0),
            var(--shadow-deep),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        border-color: var(--border);
    }
    50% {
        box-shadow:
            0 0 60px 8px rgba(245, 197, 66, 0.85),
            0 0 100px 20px rgba(245, 197, 66, 0.4),
            var(--shadow-deep),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        border-color: var(--gold-bright);
    }
}

.slot-machine.is-blinking {
    animation: win-blink 0.45s ease-in-out infinite;
}

/* Also brighten the gold border accent during blink */
.slot-machine.is-blinking::before {
    animation: border-pulse 0.45s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* Step highlighting during flow */
.step.is-current {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.step.is-current::before {
    opacity: 1;
}

.step.is-done {
    opacity: 0.5;
}

/* ================================================================
   WIN MODAL
   ================================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 80px -10px rgba(245, 197, 66, 0.3);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    overflow: hidden;
}

.modal.is-open .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Decorative gold accent along the top of the card */
.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), var(--gold-bright), transparent);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    transform: rotate(90deg);
}

/* Floating confetti sparkles */
.modal-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.modal-confetti span {
    position: absolute;
    color: var(--gold);
    font-size: 14px;
    opacity: 0;
    animation: confetti-float 2.5s ease-in-out infinite;
}

.modal-confetti span:nth-child(1) { top: 15%; left: 10%;  animation-delay: 0s;    font-size: 18px; }
.modal-confetti span:nth-child(2) { top: 25%; left: 85%;  animation-delay: 0.3s;  color: var(--gold-bright); }
.modal-confetti span:nth-child(3) { top: 60%; left: 8%;   animation-delay: 0.6s;  font-size: 12px; }
.modal-confetti span:nth-child(4) { top: 75%; left: 88%;  animation-delay: 0.9s;  font-size: 16px; }
.modal-confetti span:nth-child(5) { top: 40%; left: 92%;  animation-delay: 1.2s;  color: var(--gold-bright); }
.modal-confetti span:nth-child(6) { top: 50%; left: 5%;   animation-delay: 1.5s;  font-size: 10px; }
.modal-confetti span:nth-child(7) { top: 85%; left: 15%;  animation-delay: 1.8s;  font-size: 14px; }
.modal-confetti span:nth-child(8) { top: 10%; left: 80%;  animation-delay: 2.1s;  font-size: 12px; }

@keyframes confetti-float {
    0%   { opacity: 0; transform: translateY(10px) rotate(0deg); }
    30%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-30px) rotate(180deg); }
}

.modal-crown {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 20px rgba(245, 197, 66, 0.5));
    animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.05); }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 44px;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 40px rgba(245, 197, 66, 0.4);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(245, 197, 66, 0.05));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.modal-prize::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 197, 66, 0.15), transparent 30%);
    animation: prize-shine 4s linear infinite;
    pointer-events: none;
}

@keyframes prize-shine {
    to { transform: rotate(360deg); }
}

.modal-prize-amount {
    position: relative;
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    color: var(--gold-bright);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(245, 197, 66, 0.6);
}

.modal-prize-label {
    position: relative;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--text);
}

.modal-prize-extra {
    position: relative;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.95;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-desc strong {
    color: var(--text);
    font-weight: 700;
}

.modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: #0a0e1a;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2.5px;
    border-radius: 999px;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cta-pulse 2s ease-in-out infinite;
}

.modal-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 50px -10px rgba(245, 197, 66, 0.6);
}

.modal-cta-arrow {
    transition: transform 0.2s ease;
}

.modal-cta:hover .modal-cta-arrow {
    transform: translateX(4px);
}

.modal-note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* Mobile modal tweaks */
@media (max-width: 600px) {
    .modal {
        padding: 12px;
    }

    .modal-card {
        padding: 32px 22px 24px;
    }

    .modal-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .modal-prize {
        padding: 16px;
    }

    .modal-prize-amount {
        font-size: 52px;
    }

    .modal-prize-label {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .modal-crown {
        font-size: 48px;
    }

    .modal-cta {
        font-size: 17px;
        letter-spacing: 2px;
    }
}

/* ================================================================
   WELCOME POPUP — specific accents
   ================================================================ */
.modal-card--welcome {
    text-align: center;
}

.welcome-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(245, 197, 66, 0.08));
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.welcome-prize-label {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 4px 0 8px;
}

.welcome-prize-amount {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(245, 197, 66, 0.4);
    margin-bottom: 20px;
}

.welcome-divider {
    height: 1px;
    width: 60%;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ================================================================
   FLOW SCREENS — multi-step modal (congrats + quiz + result)
   ================================================================ */
.modal-card--flow {
    text-align: center;
    /* A bit wider to accommodate quiz questions comfortably */
    max-width: 480px;
}

.flow-screen {
    display: none;
    animation: flow-fade-in 0.35s ease-out;
}

.flow-screen.is-active {
    display: block;
}

@keyframes flow-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flow-precta {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 14px 0 20px;
}

.modal-expiry {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-expiry .countdown {
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1.5px;
    margin-left: 4px;
}

/* ================================================================
   QUIZ
   ================================================================ */
.quiz-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 999px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.quiz-step {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}

.quiz-question {
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    text-align: left;
}

.quiz-question strong {
    color: var(--gold-bright);
}

/* Secondary sentence under the main question */
.quiz-sub {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 18px;
    text-align: left;
}

/* Highlighted info box (used in Q3) */
.quiz-info {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
    padding: 14px 16px;
    background: rgba(245, 197, 66, 0.08);
    border: 1px solid rgba(245, 197, 66, 0.25);
    border-radius: var(--radius-md);
}

.quiz-info strong {
    color: var(--gold-bright);
}

/* Options list */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.quiz-option-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.quiz-option-label {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.quiz-option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option:hover {
    background: rgba(245, 197, 66, 0.08);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.quiz-option:hover .quiz-option-radio {
    border-color: var(--gold);
}

.quiz-option:active {
    transform: translateY(0);
}

/* When selected (briefly, before advancing) */
.quiz-option.is-selected {
    background: rgba(245, 197, 66, 0.15);
    border-color: var(--gold);
}

.quiz-option.is-selected .quiz-option-radio {
    background: var(--gold);
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

/* ================================================================
   RESULT SCREEN
   ================================================================ */
.result-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 999px;
    color: #4ade80;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modal-title--result {
    font-size: 28px;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 10px;
    /* Override the gold gradient — use white for result headline */
    background: none;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
}

.result-list {
    list-style: none;
    padding: 18px 20px;
    margin: 18px 0;
    background: rgba(245, 197, 66, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    text-align: left;
}

.result-list li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

/* Mobile tweaks for flow/quiz — scale down a touch but keep readable */
@media (max-width: 600px) {
    .modal-card--flow {
        padding: 28px 20px 22px;
    }

    .quiz-step {
        font-size: 13px;
    }

    .quiz-question {
        font-size: 18px;
    }

    .quiz-sub {
        font-size: 15px;
    }

    .quiz-info {
        font-size: 15px;
    }

    .quiz-option {
        padding: 14px 14px;
        gap: 12px;
    }

    .quiz-option-icon {
        font-size: 22px;
        width: 32px;
    }

    .quiz-option-label {
        font-size: 16px;
    }

    .modal-title--result {
        font-size: 23px;
    }

    .modal-subtitle {
        font-size: 15px;
    }

    .modal-desc {
        font-size: 15px;
    }

    .result-list li {
        font-size: 15px;
    }

    .welcome-prize-amount {
        font-size: 22px;
        letter-spacing: 2px;
    }
}
