@import url("/fonts/fonts.css");

/* =========================================================================
   World's Best Girl — a dark, jewel-lit monument.
   Design intent: a museum plinth under a warm light. Deep obsidian ground,
   gold leaf, one enormous serif name, and almost nothing else competing.
   ========================================================================= */

:root {
  color-scheme: dark;

  --ink:        #08070b;
  --ink-2:      #0d0b12;
  --ink-3:      #14111c;

  --gold-100:   #fff6e2;
  --gold-200:   #f4e0b0;
  --gold-300:   #e3c178;
  --gold-400:   #c9a25c;
  --gold-500:   #9d7b3e;

  --rose:       #e9b9bd;
  --plum:       #6c3f6b;

  --text:       #efe9df;
  --text-dim:   #b9b0a4;
  --text-faint: #7d7568;

  --line:       rgba(227, 193, 120, 0.18);
  --line-soft:  rgba(239, 233, 223, 0.09);

  --font-display: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  --font-ui: Jost, "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: min(1120px, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- background layers ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(115% 72% at 50% -12%, rgba(227, 193, 120, 0.17), transparent 62%),
    radial-gradient(85% 60% at 8% 104%, rgba(108, 63, 107, 0.26), transparent 66%),
    radial-gradient(70% 52% at 96% 14%, rgba(70, 78, 148, 0.16), transparent 62%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 55%, #060509 100%);
}

.aura {
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.aura i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.aura i:nth-child(1) {
  width: 46vmax; height: 46vmax; left: 8%; top: 2%;
  background: radial-gradient(circle, rgba(227, 193, 120, 0.30), transparent 68%);
  animation: drift-a 34s ease-in-out infinite;
}
.aura i:nth-child(2) {
  width: 40vmax; height: 40vmax; right: 4%; top: 22%;
  background: radial-gradient(circle, rgba(233, 185, 189, 0.22), transparent 68%);
  animation: drift-b 44s ease-in-out infinite;
}
.aura i:nth-child(3) {
  width: 52vmax; height: 52vmax; left: 28%; bottom: -8%;
  background: radial-gradient(circle, rgba(108, 63, 107, 0.30), transparent 70%);
  animation: drift-c 52s ease-in-out infinite;
}
@keyframes drift-a { 50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate3d(-7vmax, 6vmax, 0) scale(0.9); } }
@keyframes drift-c { 50% { transform: translate3d(5vmax, -5vmax, 0) scale(1.08); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */

.kicker {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.gold {
  background-image: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-200) 36%, var(--gold-400) 66%, var(--gold-200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold { color: var(--gold-300); }
}

.rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 18px;
  background: linear-gradient(90deg, transparent, var(--line) 45%, var(--line) 55%, transparent);
}

a { color: var(--gold-300); text-decoration-color: rgba(227, 193, 120, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--gold-200); }

/* ---------- chrome ---------- */

.topbar {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .wordmark {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
}
.topbar .wordmark:hover { color: var(--gold-300); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.topbar nav a:hover { color: var(--gold-300); }

/* ---------- the monument ---------- */

.monument {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 11vh, 108px) 0 clamp(36px, 7vh, 72px);
  text-align: center;
  position: relative;
}

.sparkles {
  display: block;
  margin: 0 auto clamp(20px, 3.4vh, 34px);
  width: clamp(52px, 7vw, 76px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(227, 193, 120, 0.45));
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.86; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.045); }
}

.title-line {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  margin: 0 auto clamp(14px, 2.6vh, 26px);
  max-width: 900px;
}
.title-line h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.98rem, 3.1vw, 1.95rem);
  letter-spacing: 0.36em;
  text-indent: 0.36em;      /* balance the trailing letter-space */
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 15.5vw, 10.5rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  margin: 0;
  padding: 0.06em 0 0.1em;
  overflow-wrap: break-word;
  background-image: linear-gradient(
    100deg,
    var(--gold-400) 0%, var(--gold-200) 17%, #fffaf0 25%,
    var(--gold-200) 33%, var(--gold-400) 50%, var(--gold-200) 62%,
    var(--gold-300) 74%, var(--gold-400) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 11s ease-in-out infinite;
  text-shadow: 0 0 60px rgba(227, 193, 120, 0.14);
}
@keyframes sheen {
  0%, 100% { background-position: 125% 0; }
  50%      { background-position: -25% 0; }
}
.name.unclaimed {
  font-style: italic;
  font-weight: 300;
  color: var(--text-faint);
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
  text-shadow: none;
  font-size: clamp(2.6rem, 11vw, 7rem);
}

.reign-meta {
  margin: clamp(16px, 2.6vh, 26px) auto 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.reign-meta b { color: var(--gold-300); font-weight: 400; }

.reign-sub {
  margin-top: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  min-height: 1em;
}
.reign-sub b { color: var(--gold-300); font-weight: 400; }
.reign-sub[hidden] { display: none; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 18px;
}

.msg-copy {
  margin: 26px auto 0;
  max-width: 48ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ---------- call to action ---------- */

.cta-wrap {
  margin-top: clamp(30px, 5.5vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; }

.btn-gold {
  color: #2b1f08;
  background-image: linear-gradient(180deg, #fbeecb 0%, #eed296 42%, #d3ae66 100%);
  box-shadow:
    0 1px 0 rgba(255, 252, 240, 0.7) inset,
    0 -1px 0 rgba(120, 88, 30, 0.35) inset,
    0 18px 40px -18px rgba(227, 193, 120, 0.75),
    0 0 0 1px rgba(255, 240, 205, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,252,240,.8) inset, 0 -1px 0 rgba(120,88,30,.35) inset, 0 26px 54px -20px rgba(227,193,120,.9), 0 0 0 1px rgba(255,240,205,.45); }
.btn-gold:active { transform: translateY(0); }
.btn-gold .amt { font-weight: 500; }

.btn-ghost {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}
.btn-ghost:hover { color: var(--gold-200); box-shadow: 0 0 0 1px var(--line) inset; background: rgba(227,193,120,.05); }

.cta-note.tight { margin: 26px auto 0; }
.cta-note {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  max-width: 52ch;
  line-height: 2;
}

.price-tick { display: inline-block; transition: transform .4s var(--ease), color .4s var(--ease); }
.price-tick.bump { animation: bump .7s var(--ease); }
@keyframes bump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ---------- share ---------- */

.share {
  margin: clamp(34px, 6vh, 60px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.share-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.share-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  color: var(--text-dim);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  text-decoration: none;
}
.share-btn svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.share-btn:hover {
  color: var(--gold-200);
  transform: translateY(-3px);
  background: rgba(227, 193, 120, 0.08);
  box-shadow: 0 0 0 1px var(--line) inset, 0 12px 26px -14px rgba(227,193,120,.6);
}
.share-btn:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; }
.share-btn.is-busy { opacity: .5; pointer-events: none; }
.share-btn.wide {
  width: auto;
  border-radius: 999px;
  padding: 0 22px;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.story-hint {
  position: relative;
  max-width: 44ch;
  margin-top: 4px;
  padding: 15px 40px 15px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(227, 193, 120, 0.05);
  text-align: left;
}
.story-hint[hidden] { display: none; }
.story-hint p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.story-hint b { color: var(--gold-200); font-weight: 400; }
.story-hint-x {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}
.story-hint-x:hover { color: var(--gold-200); }

/* ---------- sections ---------- */

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 104px) 0 0;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(26px, 4vh, 44px);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-200);
}

/* how it works */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 4vw, 52px);
}
.how article { position: relative; padding-top: 6px; }
.how .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.6;
  display: block;
  margin-bottom: 12px;
}
.how h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.how p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; }

/* records scoreboard */
.records {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
/* Until there are enough records to fill a row, keep the box compact rather
   than stretching two cards across the whole page. */
.records[data-count="1"] { max-width: 360px; }
.records[data-count="2"] { max-width: 720px; }

.record {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006));
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.record:hover { background: rgba(227, 193, 120, 0.07); }
.record:focus-visible { outline: 2px solid var(--gold-200); outline-offset: -2px; }
.record-label {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.record-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
  transition: color 0.4s var(--ease);
}
.record:hover .record-name { color: var(--gold-200); }
.record-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-300);
  letter-spacing: 0.02em;
  margin-top: auto;
}
.records-note {
  margin: 0 0 clamp(26px, 4.5vh, 44px);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* hall of fame ledger */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.ledger li:first-child { border-top: 1px solid var(--line-soft); }
.ledger .rank {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  min-width: 4.2ch;
  flex: 0 0 auto;
}
.ledger .who {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}
.ledger a.who:hover { color: var(--gold-200); }
.ledger .dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(239, 233, 223, 0.16);
  transform: translateY(-4px);
  min-width: 20px;
}
.ledger .paid {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--gold-300);
  flex: 0 0 auto;
}
.ledger .when,
.ledger .when-date {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: 0 0 auto;
  text-align: right;
}
.ledger .when { min-width: 11ch; color: var(--text-dim); }
.ledger .when-date { min-width: 12ch; opacity: 0.62; }
@media (max-width: 900px) {
  .ledger .when-date { display: none; }
}
.ledger li.now .who { color: var(--gold-200); }
.ledger li.now .rank::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px var(--gold-300);
  margin-left: 6px;
  vertical-align: middle;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ledger-empty { color: var(--text-faint); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }

/* fine print strip */
.fineprint {
  width: var(--shell);
  margin: clamp(56px, 10vh, 100px) auto 0;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.9;
}
.fineprint b { color: var(--text-dim); font-weight: 400; letter-spacing: .04em; }

footer.site {
  width: var(--shell);
  margin: clamp(40px, 7vh, 80px) auto 0;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
footer.site a { color: var(--text-faint); text-decoration: none; }
footer.site a:hover { color: var(--gold-300); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- claim dialog ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 3, 7, 0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vh, 56px) 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.scrim.open { opacity: 1; visibility: visible; }
.scrim[hidden] { display: none; }

.sheet {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(24, 20, 32, 0.96), rgba(12, 10, 17, 0.98));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.scrim.open .sheet { transform: none; opacity: 1; }

.sheet h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--gold-200);
}
.sheet .sub { margin: 0 0 26px; color: var(--text-faint); font-size: 0.86rem; line-height: 1.7; }

.field { margin-bottom: 22px; }
.field > label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  padding: 13px 15px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.input::placeholder { color: rgba(125, 117, 104, 0.65); font-style: italic; }
.input:focus {
  outline: none;
  border-color: rgba(227, 193, 120, 0.5);
  box-shadow: 0 0 0 3px rgba(227, 193, 120, 0.09);
}
.input.money { font-family: var(--font-ui); letter-spacing: .02em; }

.money-row { display: flex; align-items: stretch; gap: 10px; }
.money-row .prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line-soft);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: rgba(0,0,0,.35);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.money-row .input { border-radius: 0 3px 3px 0; border-left: 0; }
.money-row .grp { display: flex; flex: 1 1 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.chip {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover, .chip.active {
  border-color: rgba(227, 193, 120, 0.5);
  color: var(--gold-200);
  background: rgba(227, 193, 120, 0.07);
}

.hint { font-size: 0.74rem; color: var(--text-faint); margin-top: 9px; line-height: 1.7; }
.err {
  font-size: 0.78rem;
  color: #f0a9a3;
  margin-top: 9px;
  min-height: 1.2em;
  line-height: 1.6;
}

.preview {
  margin: 26px 0;
  padding: 26px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(227,193,120,.13), transparent 62%),
    rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow: hidden;
}
.preview .pv-kicker {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.preview .pv-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.preview .pv-empty { color: var(--text-faint); font-style: italic; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 24px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.consent input {
  appearance: none;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0,0,0,.35);
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.consent input:checked { background: var(--gold-300); border-color: var(--gold-200); }
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #2b1f08;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.consent input:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 2px; }

.sheet .btn-gold { width: 100%; justify-content: center; }
.sheet .btn-gold[disabled] { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

.sheet-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 2;
}
.sheet-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 10px;
}
.sheet-close:hover { color: var(--gold-200); }
.sheet { position: relative; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(43, 31, 8, 0.28);
  border-top-color: #2b1f08;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.is-busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 22px);
  z-index: 90;
  background: rgba(18, 15, 24, 0.96);
  border: 1px solid var(--line);
  color: var(--gold-200);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transition: all .45s var(--ease);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.9);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- document pages (terms / privacy) ---------- */

.doc {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 84px) 0 60px;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.02em;
  color: var(--gold-200);
  margin: 0 0 6px;
}
.doc .updated { color: var(--text-faint); font-size: 0.66rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 40px; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 42px 0 12px;
}
.doc p, .doc li { color: var(--text-dim); font-size: 0.94rem; line-height: 1.9; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 400; }
.doc .callout {
  border-left: 2px solid var(--gold-400);
  background: rgba(227, 193, 120, 0.05);
  padding: 16px 20px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
}
.doc .callout p { margin: 0; color: var(--text); }

/* ---------- success page ---------- */

.crowned { text-align: center; }
.crowned .eyebrow {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 18px;
}
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

.card-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

.receipt {
  margin: clamp(30px, 5vh, 52px) auto 0;
  max-width: 460px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 2;
}
.receipt div { display: flex; justify-content: space-between; gap: 18px; }
.receipt b { color: var(--text-dim); font-weight: 400; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .topbar { padding-top: 16px; }
  .topbar nav { gap: 14px; }
  .title-line h1 { letter-spacing: 0.24em; text-indent: 0.24em; white-space: normal; }
  .ledger li { flex-wrap: wrap; gap: 6px 12px; }
  .ledger .dots { display: none; }
  .ledger .when { min-width: 0; margin-left: auto; }
  .fineprint { padding: 20px; }
  footer.site { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura i, .sparkles, .name, .ledger li.now .rank::after { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  #confetti { display: none; }
}

@media print {
  .aura, .grain, .stage { display: none; }
  body { background: #fff; color: #000; }
}
