@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #090a0f;
    --panel: #12121c;
    --border: #282633;
    --text: #f2eff9;
    --muted: #9a96aa;
    --accent: #be94ff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(ellipse 65% 45% at 50% 0, #26183d70, transparent), var(--bg);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 9% 22%, #baa0db66 0 1px, transparent 2px),
        radial-gradient(circle at 87% 39%, #baa0db55 0 1px, transparent 2px),
        radial-gradient(circle at 17% 72%, #baa0db33 0 1px, transparent 2px),
        radial-gradient(circle at 77% 84%, #baa0db55 0 1px, transparent 2px),
        linear-gradient(#b091d706 1px, transparent 1px),
        linear-gradient(90deg, #b091d706 1px, transparent 1px);
    background-size: auto, auto, auto, auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(#000, transparent 85%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-header, footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: auto;
    padding: 24px 28px;
}
.site-header { border-bottom: 1px solid #ffffff08; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
nav a[aria-current] { color: var(--accent); }
.quiet-link, .small { font-size: 12px; color: var(--muted); }
main { max-width: 1000px; margin: auto; padding: 60px 28px 64px; }
.hero { text-align: center; margin-bottom: 48px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -.05em; line-height: 1.15; margin: 0 0 18px; font-weight: 800; }
h1 span { color: var(--accent); }
.intro { font-size: 14px; color: var(--muted); margin: 0 auto; max-width: 660px; line-height: 1.8; }
.intro strong { color: #cdc6dc; font-weight: 500; }
.community { display: grid; grid-template-columns: repeat(3, 1fr); background: #12121a80; border: 1px solid var(--border); border-radius: 16px; padding: 22px 0; margin-bottom: 26px; }
.community > div { padding: 0 26px; border-right: 1px solid var(--border); }
.community > div:last-child { border: 0; }
.community strong { display: block; font-size: 28px; letter-spacing: -.04em; line-height: 1.3; }
.community small { font-size: 20px; font-weight: 500; margin-left: 3px; }
.community span { display: block; margin-top: 6px; font-size: 9px; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.account-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid #3a2c4f;
    border-radius: 14px;
    background: linear-gradient(110deg, #231a32, #13121d 65%);
}
.identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-emblem { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #735293; border-radius: 12px; background: #332042; flex-shrink: 0; }
.avatar { border-radius: 50%; flex-shrink: 0; }
.identity h2 { font-size: 14px; margin: 0 0 2px; font-weight: 700; overflow-wrap: anywhere; }
.identity p { font-size: 11px; color: var(--muted); margin: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; white-space: nowrap; border-radius: 9px; padding: 10px 17px; font-size: 11px; font-weight: 700; }
.primary { background: #b58af4; color: #170d28; border: 1px solid #d1adff; box-shadow: 0 3px 15px #a36df31a; }
.primary:not(:disabled):hover { background: #caa7ff; }
.secondary { background: #21192e; color: var(--accent); border: 1px solid #46335e; }
.setup-note { color: #a59aaf; font-size: 11px; margin: 10px 4px 0; }
.setup-note span { color: var(--accent); margin-right: 6px; }
.tracking.good { color: #90debb; }
.requirements { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 10px; }
.requirements li { padding: 3px 7px; border: 1px solid #534257; border-radius: 5px; color: #b8a4bd; }
.requirements li.met { color: #a5dec4; border-color: #315345; background: #153127; }
.account-actions { display: flex; gap: 14px; }
.account-actions button { padding: 0; background: none; border: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.notice { padding: 14px 18px; margin-bottom: 20px; border: 1px solid #5d4379; background: #23182e; border-radius: 12px; font-size: 13px; }
.reward-section { margin-top: 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-heading h2 { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; }
.section-heading > span, .section-heading a { font-size: 10px; color: var(--muted); }
.section-heading a:hover { color: var(--accent); }
.reward-card { display: grid; grid-template-columns: minmax(0, 1fr) 144px; align-items: center; gap: 30px; border: 1px solid var(--border); border-left: 3px solid #8e62c9; border-radius: 14px; padding: 22px; background: linear-gradient(110deg, #181421, #111119); }
.reward-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--muted); margin-bottom: 9px; }
.reward-type { color: #c4a2f3; background: #39264f; border-radius: 4px; padding: 2px 7px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 15px; margin: 0 0 18px; line-height: 1.4; letter-spacing: -.01em; }
.reward-detail h3 span { color: #b7acc8; font-weight: 400; margin-left: 8px; font-size: 12px; }
.reward-detail label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-top: 7px; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 10px; overflow: hidden; background: #2b2634; accent-color: #bc8dfc; }
progress::-webkit-progress-bar { background: #2b2634; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #8f5ad0, #d2aaff); }
progress::-moz-progress-bar { background: #bc8dfc; }
.reward-state { text-align: right; color: var(--muted); font-size: 11px; }
.reward-card form { justify-self: end; }
.reward-caption { color: var(--muted); font-size: 10px; margin: 12px 3px 32px; }
.how { scroll-margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 16px 0 5px; }
.steps h3 { font-size: 13px; margin-bottom: 8px; }
.steps p { font-size: 12px; color: var(--muted); }
.steps a, .small a { color: var(--accent); }
.copy-status { padding: 6px 10px; border: 1px solid #4a375e; background: #1a1424; color: var(--accent); font-size: 11px; border-radius: 6px; }
details { border-top: 1px solid var(--border); padding: 15px 0; font-size: 12px; }
summary { cursor: pointer; font-weight: 500; }
details p { color: var(--muted); }
.claimed { margin: 28px 0; }
.claimed h2 { font-size: 16px; }
.claim-list article { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.claim-list article > div { flex: 1; }
.claim-list strong { font-size: 12px; }
.claim-list span { display: block; color: var(--muted); font-size: 10px; }
.claim-list code { font-size: 11px; overflow-wrap: anywhere; }
.refresh-note { margin: 18px 0 0; font-size: 10px; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
    .account-bar.is-linked { flex-wrap: wrap; gap: 14px; }
    .account-actions { margin-left: auto; }
}
@media (max-width: 620px) {
    .site-header, footer { padding: 20px; }
    .site-header { flex-wrap: wrap; gap: 16px; }
    .site-header nav { order: 3; width: 100%; justify-content: space-between; }
    .quiet-link { margin-left: auto; }
    main { padding: 36px 18px 40px; }
    .hero { margin-bottom: 30px; }
    h1 { font-size: 35px; line-height: 1.18; }
    .intro { font-size: 12px; }
    .desktop-break { display: none; }
    .community { padding: 18px 0; margin-bottom: 18px; border-radius: 12px; }
    .community > div { padding: 0 12px; }
    .community strong { font-size: 23px; }
    .community small { font-size: 15px; }
    .community span { font-size: 8px; letter-spacing: .04em; line-height: 1.5; }
    .account-bar { padding: 18px; flex-wrap: wrap; gap: 16px; }
    .account-bar > form:not(.account-actions) { width: 100%; }
    .account-bar > form:not(.account-actions) .button { width: 100%; padding-block: 11px; }
    .identity { gap: 12px; }
    .identity h2 { font-size: 13px; }
    .identity p { font-size: 10px; }
    .setup-note { font-size: 10px; }
    .reward-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .reward-state { text-align: left; font-size: 10px; }
    .reward-card form { justify-self: stretch; }
    .reward-card form .button { width: 100%; }
    .reward-detail h3 span { font-size: 11px; }
    .steps { grid-template-columns: 1fr; gap: 12px; }
    footer { gap: 16px; }
    footer nav { gap: 14px; font-size: 11px; }
}

/* Reward milestones and the live next-unlock preview. */
main { max-width: 1240px; }
.reward-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; text-align: left; align-items: center; margin: 10px 0 48px; }
.reward-hero h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.13; }
.reward-hero h1 span { background: linear-gradient(115deg,#ead9ff,#b78aff 65%,#8b76ef); background-clip: text; -webkit-text-fill-color: transparent; }
.reward-hero .intro { font-size: 16px; margin: 22px 0; }
.hero-cta { font-size: 14px; padding: 12px 20px; }
.reward-hero .community { margin: 32px 0 0; border: 0; border-radius: 0; padding: 0; background: none; }
.reward-hero .community > div { padding: 0 18px; }
.reward-hero .community > div:first-child { padding-left: 0; }
.reward-hero .community strong { font-size: 25px; }
.reward-hero .community strong span { display: inline; font-size: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; text-transform: none; }
.reward-hero .community span { font-size: 10px; }
.reward-preview { position: relative; overflow: hidden; border: 1px solid #403250; border-radius: 24px; background: radial-gradient(ellipse at 100% 0,#46265966,transparent 65%),linear-gradient(135deg,#191620,#101017); padding: 28px; box-shadow: 0 22px 60px #0004; }
.reward-preview::before { content: ''; position: absolute; top: -130px; right: -120px; width: 300px; height: 300px; border: 1px solid #8f5ac333; border-radius: 50%; pointer-events: none; }
.preview-header { position: relative; display: flex; justify-content: space-between; gap: 16px; color: #b9aec9; font-size: 12px; }
.preview-header > span:first-child { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.preview-header > span:last-child { color: var(--accent); text-align: right; }
.preview-body { display: grid; grid-template-columns: 146px minmax(0,1fr); gap: 24px; align-items: center; margin: 36px 0 28px; }
.progress-ring { width: 146px; height: 146px; border-radius: 50%; padding: 8px; background: conic-gradient(#c196ff calc(var(--progress)*1%),#302936 0); outline: 1px dashed #8d5fbd55; outline-offset: 8px; flex-shrink: 0; }
.progress-ring > div { height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #121018; }
.progress-ring strong { font-size: 31px; line-height: 1.2; letter-spacing: -.05em; }
.progress-ring span { font-size: 10px; color: #b3a6c4; text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.preview-detail { min-width: 0; }
.preview-detail .eyebrow { font-size: 11px; margin: 0 0 7px; }
.preview-detail h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.03em; margin: 0 0 10px; }
.preview-detail > p:not(.eyebrow) { color: #b2a7c0; font-size: 13px; line-height: 1.65; margin: 0 0 17px; }
.preview-progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 8px; }
.preview-progress-label a { color: var(--accent); }
.status-preview { display: flex; align-items: center; gap: 14px; border: 1px solid #3a3046; border-radius: 11px; background: #29213075; padding: 13px 16px; }
.status-preview > div { flex: 1; }
.status-preview span { display: block; font-size: 10px; color: #b2a7c0; }
.status-preview strong { display: block; font-size: 14px; }
.preview-footnote { margin: 16px 0 0; color: #a99ab7; font-size: 11px; }
.reward-card { margin-bottom: 12px; scroll-margin-top: 24px; }
.reward-card.is-discount { border-left-color: #bd8dea; }
.reward-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.reward-meta, .section-heading a, .section-heading > span { font-size: 12px; }
.reward-type { font-size: 11px; }
.reward-detail h3 { font-size: 17px; }
.reward-card .button { font-size: 13px; }
.reward-state { font-size: 13px; }
.identity h2 { font-size: 16px; }
.identity p, .setup-note, .reward-caption, .refresh-note { font-size: 12px; }
.claimed h2 { font-size: 20px; }
.claim-list strong, .claim-list code { font-size: 13px; }
.claim-list span { font-size: 12px; }
@media (max-width: 1000px) {
 .reward-hero { gap: 30px; grid-template-columns: 1fr; }
 .hero-copy { max-width: 720px; }
 .reward-hero h1 { max-width: 600px; }
 .reward-hero .community { max-width: 560px; }
 .preview-body { grid-template-columns: 146px minmax(0,1fr); }
 .reward-preview { max-width: 720px; }
}
@media (max-width: 620px) {
 .reward-hero { margin-top: 0; margin-bottom: 30px; }
 .reward-hero h1 { font-size: 38px; }
 .reward-hero .intro { font-size: 15px; }
 .reward-preview { padding: 22px 18px; border-radius: 18px; }
 .preview-body { grid-template-columns: 110px minmax(0,1fr); gap: 20px; margin: 30px 0 24px; }
 .progress-ring { width: 110px; height: 110px; padding: 6px; outline-offset: 5px; }
 .progress-ring strong { font-size: 28px; }
 .progress-ring span { font-size: 8px; }
 .preview-detail h2 { font-size: 19px; }
 .preview-detail > p:not(.eyebrow) { font-size: 12px; }
 .preview-header { font-size: 11px; }
 .reward-hero .community > div { padding-inline: 12px; }
 .reward-hero .community span { font-size: 9px; }
 .reward-progress-label { font-size: 11px; }
 .status-preview { padding-inline: 12px; gap: 8px; }
}
@media (max-width: 360px) {
 .preview-body { grid-template-columns: 1fr; }
 .progress-ring { margin: 4px auto 10px; }
 .reward-hero h1 { font-size: 34px; }
 .reward-hero .community > div { padding-inline: 8px; }
}
