:root {
    --casino-green: #1A5D1A;
    --casino-green-dark: #0F3A0F;
    --nugget-gold: #D4A84B;
    --nugget-gold-light: #E8C97D;
    --nugget-gold-dark: #A17B28;
    --card-black: #1C1C1C;
    --vintage-red: #8B2323;
    --deep-brown: #4A3728;
    --cream-white: #F5F0E6;
    --aged-blue: #2B4F6E;
    --burnt-orange: #CC6B2C;
    --forest-green: #2D5A27;
    --antique-maroon: #6B2D3D;
    --felt-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--card-black);
    color: var(--cream-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(28, 28, 28, 0.95), transparent);
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

/* SVG sticker logo, pinned to the right of the nav */
.logo-img { height: 32px; width: auto; display: block; }

.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--nugget-gold), var(--nugget-gold-dark));
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--card-black);
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(212, 168, 75, 0.3);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream-white);
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    color: var(--cream-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--nugget-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--nugget-gold); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px; height: 2px;
    background: var(--cream-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero {
    min-height: 100vh;
    /* casino-table photo with a dark scrim so the wordmark + CTAs stay legible */
    background:
        linear-gradient(180deg, rgba(28, 28, 28, 0.88) 0%, rgba(28, 28, 28, 0.55) 45%, rgba(28, 28, 28, 0.82) 100%),
        url("../assets/hero-bg.png") center / cover no-repeat,
        var(--card-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--felt-texture);
    opacity: 0.18;
    pointer-events: none;
}

/* Corner Flourishes */
.flourish { position: absolute; width: 120px; height: 120px; opacity: 0.3; }
.flourish-tl { top: 80px; left: 40px; border-top: 2px solid var(--nugget-gold); border-left: 2px solid var(--nugget-gold); }
.flourish-tr { top: 80px; right: 40px; border-top: 2px solid var(--nugget-gold); border-right: 2px solid var(--nugget-gold); }
.flourish-bl { bottom: 40px; left: 40px; border-bottom: 2px solid var(--nugget-gold); border-left: 2px solid var(--nugget-gold); }
.flourish-br { bottom: 40px; right: 40px; border-bottom: 2px solid var(--nugget-gold); border-right: 2px solid var(--nugget-gold); }

/* Card Fan */
.card-fan {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    /* the rotated cards + drop shadow hang ~93px below this box, so the large
       bottom margin keeps that overhang from overlapping the subtitle */
    margin-top: 2.5rem;
    margin-bottom: 8.75rem;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.playing-card {
    width: 140px; height: 196px;
    border-radius: 10px;
    position: absolute;
    bottom: 0; /* pin to the fan's bottom edge so the container box tracks the cards */
    transform-origin: bottom center;
    cursor: pointer;
    backface-visibility: hidden;
}

.playing-card::after { content: ''; position: absolute; inset: -15px; z-index: -1; }

.playing-card:hover .card-back {
    transform: translate3d(0, -20px, 0) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(212, 168, 75, 0.3);
}

.playing-card:hover { z-index: 100 !important; }

.card-back {
    width: 100%; height: 100%;
    /* radius == border width, so the OUTER white border is rounded but the
       inner padding box (where the design sits) has square corners */
    border-radius: 8px;
    border: 8px solid white;
    position: relative;
    overflow: hidden;
    isolation: isolate; /* contain the per-card colour blend to this card only */
    /* Golden Nugget back design extracted from Golden Nuggets Back_Black.ai */
    background-color: #00000a; /* matches the back design's field so the margin is seamless */
    background-image: url("../assets/card-back.png");
    background-size: 96%;       /* scaled down slightly so the design doesn't touch the edges */
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    will-change: transform;
}

/*
 * Per-card colour wash. A solid overlay blended with `screen` turns the dark
 * navy field into the target colour while keeping the gold/cream artwork light.
 * Colours are taken from the letter-sets in gn-sticker.svg
 * (GOL black · DEN crimson · NUG green · GET brown · ET blue · RDS purple).
 * card-1 stays plain black (no overlay), as requested.
 */
.card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}
.card-2 .card-back::after { background: #b31e3b; } /* DEN — crimson */
.card-3 .card-back::after { background: #0d8a6a; } /* NUG — green */
.card-4 .card-back::after { background: #775421; } /* GET — brown */
.card-5 .card-back::after { background: #0c548b; } /* ET  — blue */
.card-6 .card-back::after { background: #5b57a5; } /* RDS — purple */

.card-1 { transform: rotate(-25deg) translate3d(-150px, 0, 0); animation: fanIn1 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; z-index: 6; }
.card-2 { transform: rotate(-15deg) translate3d(-90px, 0, 0); animation: fanIn2 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; z-index: 5; }
.card-3 { transform: rotate(-5deg) translate3d(-30px, 0, 0); animation: fanIn3 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; z-index: 4; }
.card-4 { transform: rotate(5deg) translate3d(30px, 0, 0); animation: fanIn4 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; z-index: 3; }
.card-5 { transform: rotate(15deg) translate3d(90px, 0, 0); animation: fanIn5 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; z-index: 2; }
.card-6 { transform: rotate(25deg) translate3d(150px, 0, 0); animation: fanIn6 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; z-index: 1; }

@keyframes fanIn1 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(-25deg) translate3d(-150px, 0, 0); } }
@keyframes fanIn2 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(-15deg) translate3d(-90px, 0, 0); } }
@keyframes fanIn3 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(-5deg) translate3d(-30px, 0, 0); } }
@keyframes fanIn4 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(5deg) translate3d(30px, 0, 0); } }
@keyframes fanIn5 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(15deg) translate3d(90px, 0, 0); } }
@keyframes fanIn6 { 0% { opacity: 0; transform: rotate(0deg) translate3d(0, 100px, 0); } 100% { opacity: 1; transform: rotate(25deg) translate3d(150px, 0, 0); } }

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translate3d(0, 30px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid var(--nugget-gold);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nugget-gold);
}

/* Pill sitting above the card fan */
.hero-badge-top {
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ref-banner {
    background: rgba(212, 168, 75, 0.12);
    border: 1px dashed var(--nugget-gold);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 520px;
    font-size: 0.9rem;
    color: var(--nugget-gold-light);
}

/* ---- Marquee opt-in (inline form in the hero) ---- */
.hero-form-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--cream-white);
    margin-bottom: 0.5rem;
}

.hero-form-sub {
    color: rgba(245, 240, 230, 0.82);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 168, 75, 0.45);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.inline-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--cream-white);
    font-family: 'Lora', serif;
    font-size: 1rem;
    padding: 0.6rem 0;
}
.inline-form input[type="email"]::placeholder { color: rgba(245, 240, 230, 0.4); }
.inline-form input[type="email"]:focus { outline: none; }
.inline-form .btn { border-radius: 50px; white-space: nowrap; }

.consent-inline {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 520px;
    font-size: 0.82rem;
    color: rgba(245, 240, 230, 0.72);
    text-align: left;
}
.consent-inline input { margin-top: 0.25rem; accent-color: var(--nugget-gold); flex-shrink: 0; }

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nugget-gold-light), var(--nugget-gold));
    color: var(--card-black);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--nugget-gold), var(--nugget-gold-dark));
    box-shadow: 0 6px 30px rgba(212, 168, 75, 0.5);
    transform: translate3d(0, -2px, 0);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-white);
    border: 1px solid var(--nugget-gold);
}

.btn-secondary:hover { background: rgba(212, 168, 75, 0.1); border-color: var(--nugget-gold-light); }

.btn-block { display: block; width: 100%; }

/* Sections */
section { padding: 6rem 2rem; position: relative; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }

.section-badge {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--nugget-gold);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--cream-white);
}

.section-header p { color: rgba(245, 240, 230, 0.75); font-size: 1.05rem; }

/* How it works */
.how {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(26, 93, 26, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, var(--casino-green-dark), var(--card-black));
    position: relative;
}

.how::before { content: ''; position: absolute; inset: 0; background: var(--felt-texture); opacity: 0.4; }

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-card {
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 2.5rem 2rem;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.how-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 168, 75, 0.15);
    pointer-events: none;
}

.how-card:hover {
    transform: translate3d(0, -8px, 0);
    border-color: var(--nugget-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 75, 0.1);
}

.how-step {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--nugget-gold);
    margin-bottom: 1rem;
}

.how-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.how-card h4 { font-size: 1.3rem; color: var(--cream-white); margin-bottom: 0.75rem; }
.how-card p { color: rgba(245, 240, 230, 0.75); font-size: 0.95rem; }

/* Prize */
.prize {
    background: radial-gradient(ellipse at 30% 70%, rgba(74, 55, 40, 0.3) 0%, transparent 50%), var(--card-black);
}

.prize-content { max-width: 760px; margin: 0 auto; text-align: center; }

.prize-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.prize-stat { text-align: center; }

.prize-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--nugget-gold);
    display: block;
}

.prize-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.6);
}

.prize-copy { font-size: 1.1rem; color: rgba(245, 240, 230, 0.85); margin-bottom: 1.5rem; }
.prize-copy strong { color: var(--nugget-gold); }

.prize-disclosure {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(245, 240, 230, 0.5);
    border-top: 1px solid rgba(212, 168, 75, 0.2);
    padding-top: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Opt-in form states (the form itself lives in the hero — see .inline-form) */
.field-error { color: #e8a0a0; font-size: 0.8rem; margin: 0.25rem 0 0.75rem; }

.trust-line {
    text-align: center;
    font-family: 'Courier Prime', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 230, 0.45);
    margin-top: 1rem;
}

/* Pending state — the hero fan collapses to the front (black) card, which then
   flips to a confirmation face. The supporting copy fades in beneath it. */

/* --- 1. Collapse: cards tuck into a single centred stack ---
   `.collapsing` stops the fan-in animation and enables a transform transition
   without changing the cards' position; JS then forces a reflow and adds
   `.collapsed`, so the move from fanned → stacked actually animates. */
.card-fan.collapsing .playing-card {
    animation: none;
    transition: transform 0.7s cubic-bezier(0.6, 0.04, 0.2, 1), opacity 0.5s ease;
}
.card-fan.collapsed .card-1 { transform: rotate(0deg) translate3d(0, 0, 0); }
.card-fan.collapsed .card-2,
.card-fan.collapsed .card-3,
.card-fan.collapsed .card-4,
.card-fan.collapsed .card-5,
.card-fan.collapsed .card-6 { transform: rotate(0deg) translate3d(0, 0, 0); opacity: 0; }
/* keep the collapsing/flipping card steady under the cursor */
.card-fan.collapsing .playing-card:hover .card-back {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- 2. Flip the front card to its confirmation face --- */
.card-1 { perspective: 1000px; }
.card-1 .card-flip {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.6, 0.04, 0.2, 1);
}
.card-1.flipped .card-flip { transform: rotateY(180deg); }

.card-1 .cf-side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
}

/* reveal face — a cream card face with corner pips + an envelope */
.cf-face {
    transform: rotateY(180deg);
    background: linear-gradient(165deg, #fffdf7 0%, var(--cream-white) 58%, #ece3cf 100%);
    border: 8px solid #fff;
    color: var(--card-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cf-face::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(161, 123, 40, 0.55);
    border-radius: 5px;
    pointer-events: none;
}
.cf-envelope { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); }
.cf-caption {
    margin-top: 0.5rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--casino-green-dark);
}
.cc-suit {
    position: absolute;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--card-black);
}
.cc-suit.cc-tl { top: 10px; left: 12px; }
.cc-suit.cc-br { bottom: 10px; right: 12px; transform: rotate(180deg); color: var(--vintage-red); }

/* Closed/"coming soon" state — shown when the opt-in form is toggled off for
   the public (OPTIN_FORM_PUBLIC=false). Mirrors the form's centred layout. */
#closed-state {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

/* --- 3. Copy below the card, fading in after collapse + flip --- */
#pending-state {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    animation: pendingIn 0.6s ease 1.45s both;
}
@keyframes pendingIn {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.pending-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--nugget-gold);
    margin-bottom: 0.75rem;
}

.pending-email-chip {
    display: inline-block;
    max-width: 100%;
    margin: 0.7rem auto 1rem;
    padding: 0.5rem 1.1rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: var(--nugget-gold-light);
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.35);
    border-radius: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-copy { color: rgba(245, 240, 230, 0.82); font-size: 1rem; margin: 0 auto; max-width: 400px; }
.pending-copy strong { color: var(--cream-white); }

.pending-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(245, 240, 230, 0.4);
    font-family: 'Courier Prime', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 1.5rem 0 1.1rem;
}
.pending-divider::before, .pending-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 168, 75, 0.2);
}
.pending-divider span { padding: 0 1rem; }

.pending-demo { font-size: 0.82rem; color: rgba(245, 240, 230, 0.55); margin-bottom: 1.25rem; font-style: italic; }

/* Takeover: clear the badge + flourishes; the fan stays as the flip card */
.pending-mode .hero-badge-top,
.pending-mode .flourish { display: none; }
.pending-mode .card-fan { margin-bottom: 2.5rem; }

/* Footer */
footer {
    background: var(--card-black);
    border-top: 1px solid rgba(212, 168, 75, 0.2);
    padding: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand { padding-right: 2rem; }

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }

.footer-logo-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--nugget-gold), var(--nugget-gold-dark));
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--card-black);
    font-size: 1.2rem;
}

.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--cream-white); }

.footer-brand p { color: rgba(245, 240, 230, 0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-brand em { color: rgba(245, 240, 230, 0.75); font-style: italic; }

.footer-column h5 {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nugget-gold);
    margin-bottom: 1.5rem;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: rgba(245, 240, 230, 0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--nugget-gold); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: rgba(245, 240, 230, 0.4);
    letter-spacing: 0.1em;
}

.footer-suits { display: flex; gap: 1rem; font-size: 1.2rem; }
.footer-suits span:nth-child(1) { color: var(--cream-white); } /* ♠ */
.footer-suits span:nth-child(2) { color: var(--vintage-red); }  /* ♦ */
.footer-suits span:nth-child(3) { color: var(--cream-white); } /* ♣ */
.footer-suits span:nth-child(4) { color: var(--vintage-red); }  /* ♥ */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* ============ DASHBOARD ============ */
.dash-body { background: var(--card-black); }

.dash-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.dash-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.15);
}

.nuggets-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(212, 168, 75, 0.12);
    border: 1px solid var(--nugget-gold);
    border-radius: 50px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: var(--nugget-gold);
    letter-spacing: 0.05em;
}

.dash-welcome { text-align: center; margin-bottom: 1.75rem; }

.dash-welcome h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, var(--nugget-gold-light), var(--nugget-gold), var(--nugget-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.dash-welcome p { color: rgba(245, 240, 230, 0.7); max-width: 580px; margin: 0 auto; font-size: 0.95rem; }

/* Panels */
.panel {
    background: rgba(28, 28, 28, 0.85);
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 1.4rem 1.6rem;
    position: relative;
    margin-bottom: 1rem;
}

.panel::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(212, 168, 75, 0.12);
    pointer-events: none;
}

.panel-title {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nugget-gold);
    margin-bottom: 0.9rem;
}

/* Invite link */
.invite-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.invite-link {
    flex: 1;
    min-width: 240px;
    padding: 0.9rem 1rem;
    background: rgba(15, 58, 15, 0.4);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 4px;
    color: var(--cream-white);
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn { white-space: nowrap; }
.copy-btn.copied { background: linear-gradient(135deg, var(--forest-green), var(--casino-green)); color: var(--cream-white); }

.share-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.share-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid rgba(212, 168, 75, 0.35);
    border-radius: 4px;
    color: var(--cream-white);
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover { border-color: var(--nugget-gold); background: rgba(212, 168, 75, 0.1); color: var(--nugget-gold); }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-tile {
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: rgba(26, 93, 26, 0.12);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 6px;
}

.stat-tile .num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--nugget-gold);
    display: block;
}

.stat-tile .lbl {
    font-family: 'Courier Prime', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.6);
}

/* Leaderboard */
.leaderboard { list-style: none; counter-reset: rank; }
.leaderboard li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}
.leaderboard li:last-child { border-bottom: none; }
.leaderboard li::before {
    counter-increment: rank;
    content: counter(rank);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--nugget-gold);
    width: 1.5rem;
    text-align: center;
}
.leaderboard .lb-name { flex: 1; color: rgba(245, 240, 230, 0.85); font-size: 0.9rem; }
.leaderboard .lb-nuggets { font-family: 'Courier Prime', monospace; font-size: 0.8rem; color: var(--nugget-gold); }

/* Countdown */
.countdown-panel { text-align: center; }
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.75rem 0 1.25rem;
}
.cd-unit { text-align: center; }
.cd-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cream-white);
    display: block;
    min-width: 2.2rem;
}
.cd-lbl {
    font-family: 'Courier Prime', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.55);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card-black);
    border: 1px solid var(--nugget-gold);
    color: var(--nugget-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Dashboard folded into the hero =====
   The dashboard is a third state of the hero, so it inherits the same photo
   backdrop. It's hidden until the confirm/preview link flips the page into
   `dash-mode` (set pre-paint on <html>, then on <body> by the script). */
#dashboard-state { display: none; }
.dash-mode #dashboard-state { display: block; width: 100%; text-align: left; }
.dash-mode #form-state, .dash-mode #pending-state, .dash-mode #closed-state { display: none; }

/* Keep the hero photo, drop the marketing furniture, and top-align so the
   taller dashboard scrolls naturally instead of being vertically centred. */
.dash-mode .hero { justify-content: flex-start; padding-top: 5.5rem; padding-bottom: 3rem; }
.dash-mode .card-fan,
.dash-mode .hero-badge-top,
.dash-mode .flourish { display: none; }
.dash-mode .hero-content {
    width: 100%;
    max-width: 920px;
    text-align: left;
    animation: none; /* render immediately — no fade-in delay on the dashboard */
}

/* Marketing sections are for prospects, not confirmed subscribers */
.dash-mode .how,
.dash-mode .prize { display: none; }

/* Nav swaps its marketing links for the Nuggets chip.
   Hide the chip off-dashboard: .nuggets-chip's display:inline-flex would
   otherwise win over the [hidden] attribute, so force it none by default. */
#nav-chip { display: none; }
.dash-mode .nav-links,
.dash-mode .menu-toggle { display: none; }
.dash-mode #nav-chip { display: inline-flex; }

/* Eligibility / odds line under the stats grid */
.odds-line {
    margin-top: 1.25rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--nugget-gold-light);
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .menu-toggle { display: flex; }
    .logo-img { height: 28px; }
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(28, 28, 28, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.5rem; }
    .card-fan { transform: scale(0.7); height: 250px; }
    .how-grid { grid-template-columns: 1fr; }
    .prize-stats { gap: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    .flourish { display: none; }
    .countdown { gap: 1rem; }
    .cd-num { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .card-1, .card-2, .card-3, .card-4, .card-5, .card-6, .hero-content,
    #pending-state { animation: none; }
    .card-fan.collapsing .playing-card, .card-1 .card-flip { transition: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto; }
}
