*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --orange: #f56b3f;
    --yellow: #fae182;
    --cream: #f2f0eb;
    --near-black: #292929;
    --gray: #6b6b6b;
    --teal: #43bdae;
    --white: #ffffff;
    --border: rgba(41, 41, 41, 0.09);
    --font-headline: "PolySans Median Wide", sans-serif;
    --font-body: "GT America", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--near-black);
    overflow-x: hidden;
}

/* ── HERO ── */
.hero {
    position: relative;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 32px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.confetti span {
    position: absolute;
    font-size: clamp(40px, 6vw, 48px);
    animation: float linear infinite both;
    animation-fill-mode: both;
    filter: drop-shadow(0 3px 10px rgba(41, 41, 41, 0.18));
}
@keyframes float {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
    }
    92% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4.5vw, 56px);
    width: 100%;
    max-width: 1300px;
    text-align: center;
}

.exclusive-pill {
    display: inline-flex;
    align-items: center;
    background: #f5f4f2;
    border: 1px solid #d0cfce;
    color: #8f8e8d;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 9999px;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3.5vw, 56px);
    width: 100%;
    max-width: 900px;
}

.hero h1 {
    font-family: var(--font-headline);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -2px;
    color: #000;
    margin: 0;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.8vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    color: #8f8e8d;
    max-width: 900px;
    margin: 0 auto;
}
.hero-sub strong {
    color: var(--near-black);
    font-weight: 500;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-body);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 500;
    padding: 20px 40px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.hero-fine {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.8vw, 24px);
    color: #8f8e8d;
    line-height: 1.3;
}

/* ── PRIZES ── */
.prizes-section {
    background: #000;
    padding: 88px 32px;
}
.prizes-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 4.5vw, 56px);
}
.prizes-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
}
.prizes-title {
    font-family: var(--font-headline);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -1.5px;
    color: var(--yellow);
    margin: 0;
}
.prizes-sub {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.8vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    color: #8f8e8d;
    max-width: 900px;
    margin: 0 auto;
}
.prizes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}
@media (min-width: 880px) {
    .prizes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
.prize-card {
    background: var(--white);
    border-radius: 24px;
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.prize-emoji {
    font-size: clamp(76px, 7.5vw, 88px);
    line-height: 1;
}
.prize-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.prize-friends {
    font-family: var(--font-headline);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 500;
    color: #000;
    line-height: 1;
}
.prize-reward {
    font-family: var(--font-headline);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    color: var(--orange);
    line-height: 1.05;
    text-align: center;
}
.prize-note {
    font-family: var(--font-body);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 400;
    color: #8f8e8d;
    line-height: 1.15;
    text-align: center;
}
/* ── SHARED SECTION HEADERS (used by sweep + leaderboard) ── */
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-headline);
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--near-black);
    margin-bottom: 8px;
}
.section-sub {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ── RAFFLE ── */
.raffle-section {
    background: var(--white);
    padding: clamp(56px, 7vw, 88px) 32px 0;
}
.raffle-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 4.5vw, 56px);
}
.raffle-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    width: 100%;
}
.raffle-title {
    font-family: var(--font-headline);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.04;
    color: #000;
    margin: 0;
}
.raffle-sub {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.8vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    color: #8f8e8d;
    max-width: 900px;
    margin: 0 auto;
}
.raffle-prizes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}
@media (min-width: 880px) {
    .raffle-prizes {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
.raffle-card {
    background: #f5f4f2;
    border-radius: 24px;
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}
.raffle-card-emoji {
    font-size: clamp(76px, 7.5vw, 88px);
    line-height: 1;
}
.raffle-card-label {
    font-family: var(--font-headline);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 500;
    color: #000;
    line-height: 1;
    margin: 0;
}
.raffle-card-prize {
    font-family: var(--font-headline);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    line-height: 1.05;
    color: var(--orange);
    margin: 0;
}
.raffle-image {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
}

/* ── LEADERBOARD ── */
.lb-section {
    background: #f5f4f2;
    padding: 72px 32px clamp(40px, 5vw, 48px);
}
.lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}
.lb-sub {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.8vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    color: #8f8e8d;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.lb-inner .hero-cta + .lb-title {
    margin-top: 40px;
}
.lb-title {
    font-family: var(--font-headline);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -1.5px;
    color: #000;
    text-align: center;
    margin: 0;
}
.lb-card {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}
.lb-row + .lb-row {
    border-top: 1px solid #e5e5e5;
}
.lb-position {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}
.lb-position.top3 {
    background: #3acb00;
}
.lb-name {
    font-family: var(--font-body);
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    color: #000;
    white-space: nowrap;
}
.lb-handle {
    font-family: var(--font-body);
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 400;
    line-height: 1.3;
    color: #8f8e8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.lb-foot {
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px 20px 24px;
}
.lb-toggle {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #000;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 9999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.lb-toggle:hover {
    border-color: #000;
}
.lb-foot-note {
    flex: 1;
    text-align: right;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #8f8e8d;
}
.lb-hidden {
    display: none;
}

/* ── MODAL ── */
.modal {
    position: fixed;
    inset: 0;
    margin: auto;
    background: var(--white);
    border: none;
    border-radius: 24px;
    width: calc(100% - 40px);
    max-width: 500px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    color: var(--near-black);
}
.modal::backdrop {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(10px);
}
.modal[open] {
    animation: mopen 0.22s ease;
}
@keyframes mopen {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 24px;
}
.modal-close {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.modal-close img {
    display: block;
}
.modal-close:hover {
    opacity: 1;
}
.modal-close:focus,
.modal-close:focus-visible {
    outline: none;
}
.modal h2 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--near-black);
    margin: 0;
}

/* sectioned post-claim units */
.modal-unit {
    padding: 32px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-unit-gray {
    background: #f5f4f2;
    gap: 8px;
}
.modal-unit-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--near-black);
    margin: 0;
}
.modal-unit-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--near-black);
    margin: 0;
}

/* input row with inline orange button (link copy, text-someone) */
.modal-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 8px 8px 24px;
}
.modal-input-gray {
    background: #f5f4f2;
}
.modal-input-value,
.modal-input-field {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--near-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-input-field {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
}
.modal-input-field::placeholder {
    color: #8f8e8d;
}
.modal-input-btn {
    flex-shrink: 0;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        opacity 0.15s,
        background 0.15s;
}
.modal-input-btn:hover {
    opacity: 0.9;
}
.modal-input-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* share message box */
.share-box {
    width: 100%;
    background: #f5f4f2;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.share-msg {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--near-black);
}
.share-url {
    color: var(--orange);
    word-break: break-all;
}
.share-copy-btn {
    flex-shrink: 0;
    min-width: 104px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition:
        opacity 0.15s,
        background 0.15s;
}
.share-copy-btn:hover {
    opacity: 0.9;
}

/* flyer download (gray pill) */
.flyer-btn {
    width: 100%;
    background: #f5f4f2;
    color: var(--near-black);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}
.flyer-btn:hover {
    background: #ebeae6;
}
.flyer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.flyer-btn-icon {
    display: block;
    flex-shrink: 0;
}

.share-hint {
    width: 100%;
    max-width: 424px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    color: #8f8e8d;
    text-align: center;
}

/* claim */
.claim-form {
    padding: 0 24px 32px;
}
.claim-sub {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 16px;
}
.claim-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.f-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.f-group input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid rgba(41, 41, 41, 0.15);
    border-radius: 10px;
    font-size: 15px;
    color: var(--near-black);
    background: #fafaf8;
    outline: none;
    transition: border-color 0.15s;
    font-family: var(--font-body);
}
.f-group input:focus {
    border-color: var(--orange);
    background: #fff;
}

/* phone field row */
.claim-phone-row {
    margin-bottom: 18px;
}
.claim-phone-row .f-group input {
    font-size: 15px;
}

/* compliance */
.compliance-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #f8f7f4;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}
.compliance-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}
.compliance-text {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
}
.compliance-text a {
    color: var(--orange);
    text-decoration: none;
}

.claim-privacy {
    font-size: 15px;
    color: var(--gray);
    text-align: center;
    margin: 4px 0 10px;
    line-height: 1.5;
}
.claim-error {
    background: #fdecec;
    color: #a33232;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 10px;
}
.claim-btn {
    width: 100%;
    padding: 16px;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 107, 63, 0.25);
    transition:
        opacity 0.15s,
        transform 0.15s,
        box-shadow 0.18s;
}
.claim-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(245, 107, 63, 0.3);
}

.invite-result {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}
.invite-result:empty {
    display: none;
}

/* small prints */
.small-print-section {
    background: #f5f4f2;
    padding: clamp(40px, 5vw, 48px) 32px 60px;
}
.small-print {
    max-width: 640px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}
.small-print a {
    color: var(--gray);
}

/* ── FOOTER ── */
footer {
    background: #f5f4f2;
    padding: 24px 24px 56px;
    text-align: center;
}
footer p {
    font-family: var(--font-body);
    font-size: 13px;
    color: #8f8e8d;
    line-height: 1.8;
}
footer a {
    color: #8f8e8d;
    text-decoration: none;
}

@media (max-width: 640px) {
    .hero {
        padding: 56px 32px;
    }
    .hero h1 {
        letter-spacing: -1.5px;
    }
    .prizes-section {
        padding: 56px 32px;
    }
    .raffle-section {
        padding: 56px 24px 0;
    }
    .lb-section {
        padding: 40px 20px;
    }
    .lb-row,
    .lb-foot {
        padding: 16px 16px;
        gap: 12px;
    }
    .claim-fields {
        grid-template-columns: 1fr;
    }
    .modal-header {
        padding: 24px 20px;
    }
    .claim-form {
        padding: 0 20px 24px;
    }
    .modal-unit {
        padding: 24px 20px;
    }
    .modal-input {
        padding: 8px 8px 8px 16px;
    }
    .share-box {
        padding: 16px;
    }
    .small-print-section {
        padding: 40px 24px 48px;
    }
}
