/* The Winner's Circle waitlist. Same ground, type and colours as the player app (Night Gold). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0b141e;
  --ink-2: #121d2a;
  --ink-3: #1c2a39;
  --ink-4: #2b3c4f;
  --bone: #f6f3ec;
  --mute: #93a0b1;
  --gold: #eeaf24;
  --gold-hi: #ffd15c;
  --violet: #8f6bff;
  --violet-deep: #6f48ea;
  --flame: #f2482b;
  --mint: #3ee0a1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { background: var(--ink); -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.card :focus-visible { outline-color: var(--ink); }
::selection { background: var(--gold); color: var(--ink); }

/* ── the two voices ── */
.display {
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.012em;
}
.cond {
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  line-height: 1;
}
.kicker { font-weight: 300; letter-spacing: -0.025em; line-height: 1; }
.num { font-variant-numeric: tabular-nums; }

/* ── page ── */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; color: var(--gold); }
.brand .cond { font-size: 19px; text-transform: uppercase; }

/* ── headline ── */
.hero { margin-top: 36px; display: grid; gap: 10px; font-weight: inherit; }
.hero .kicker { font-size: clamp(26px, 6.4vw, 40px); color: var(--bone); }
.hero .title { font-size: clamp(68px, 19vw, 148px); color: var(--bone); }
.hero .amp { color: var(--gold); }
@media (min-width: 1024px) { .hero { margin-top: 56px; } }

/* ── the spine: the card in a narrow column, the photo beside it ── */
.spine { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .spine {
    grid-template-columns: minmax(0, 480px) 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "card photo" "card steps";
  }
  .spine .card { grid-area: card; }
  .spine .photo { grid-area: photo; }
  .spine .steps { grid-area: steps; align-content: end; }
}

/* ── the photo ── */
.photo {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--ink-2);
  aspect-ratio: 16 / 10;
}
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  animation: drift 18s var(--ease) both;
}
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.chip {
  position: absolute; top: 16px; left: 16px;
  height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em;
}
/* The one gradient: a neutral scrim so words can sit on the photograph. */
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 18px;
  background: linear-gradient(to top, rgba(11, 20, 30, 0.85), rgba(11, 20, 30, 0));
}
.photo figcaption .cond { font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ── the card: the one violet surface on the page ── */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 32px; background: var(--violet); color: var(--ink);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%230b141e' fill-opacity='.16'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.card-mark {
  position: absolute; right: -24%; bottom: -34%; width: 80%; height: auto; aspect-ratio: 276 / 282;
  z-index: -1; color: rgba(11, 20, 30, 0.1);
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.clock { display: flex; gap: 14px; margin-top: 6px; }
.clock span { display: grid; gap: 4px; }
.clock b { font-size: clamp(52px, 15vw, 64px); font-weight: 900; }
.clock i {
  font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  font-stretch: 100%; font-variation-settings: "wdth" 100; line-height: 1;
}
.clock-block { padding-bottom: 20px; border-bottom: 2px solid rgba(11, 20, 30, 0.14); }

.card-title { margin-top: 22px; font-size: 48px; }
.lead { margin-top: 8px; max-width: 32ch; font-size: 17px; font-weight: 500; line-height: 1.35; }

form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 15px; font-weight: 700; }
.field input {
  width: 100%; height: 60px; padding: 0 18px;
  border: 2px solid transparent; border-radius: 20px;
  background: var(--bone); color: var(--ink);
  font: inherit; font-size: 19px; font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #7d8797; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 20, 30, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--flame); }
.hint { font-size: 14px; font-weight: 500; opacity: 0.8; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error {
  padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bone);
  font-size: 15px; font-weight: 600; line-height: 1.35;
}
.error::before { content: "! "; color: var(--flame); font-weight: 900; }

/* The one action: a full pill with the arrow riding in its own circle. */
.action {
  margin-top: 4px; width: 100%; height: 64px; padding: 0 8px 0 28px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px; background: var(--ink); color: var(--bone); text-decoration: none;
  transition: background 0.2s;
}
.action:hover { background: var(--ink-2); }
.action .cond { font-size: 21px; text-transform: uppercase; }
.arrow {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--ink); transition: transform 0.3s var(--ease);
}
.action:hover .arrow { transform: translateX(4px); }
.action[aria-busy="true"] .arrow svg { animation: spin 0.9s linear infinite; }
.action[aria-busy="true"] { pointer-events: none; }
.press { transition: transform 0.15s var(--ease), background 0.2s; }
.press:active { transform: scale(0.97); }

.fine { font-size: 14px; font-weight: 500; text-align: center; opacity: 0.85; }

/* ── done ── */
#done { animation: rise 0.5s var(--ease) both; }
.coin {
  margin-top: 22px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--ink); box-shadow: inset 0 -5px 0 rgba(152, 108, 41, 0.55);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}
#done .card-title { margin-top: 16px; outline: none; }
.share { margin-top: 22px; display: grid; gap: 10px; }
.ghost {
  height: 52px; border-radius: 999px; border: 2px solid rgba(11, 20, 30, 0.3);
  font-size: 17px; text-transform: uppercase; color: var(--ink);
}
.ghost:hover { border-color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4) rotate(-40deg); } }

/* ── what happens next: quiet rows, gold numerals ── */
.steps { list-style: none; display: grid; gap: 10px; }
.steps li {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 26px; background: var(--ink-2);
}
.steps .n {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink-3); color: var(--gold); font-size: 28px; line-height: 1;
}
.steps b { display: block; font-size: 20px; text-transform: uppercase; }
.steps small { display: block; margin-top: 4px; font-size: 15px; color: var(--mute); line-height: 1.35; }

/* ── footer ── */
.foot { margin-top: 56px; display: grid; gap: 8px; font-size: 13px; color: var(--mute); max-width: 70ch; }
.foot .kicker { font-size: 30px; color: var(--gold); margin-bottom: 6px; }

/* ── the last minute: the card's frame pulses ── */
.card.urgent { animation: urgent 1s ease-in-out infinite; }
@keyframes urgent { 50% { box-shadow: 0 0 0 6px var(--flame); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── small phones ── */
.brand .cond, .photo figcaption .cond { white-space: nowrap; }
@media (max-width: 639px) {
  .brand .mark { width: 30px; height: 30px; }
  .brand .cond { font-size: 16px; }
  .photo figcaption { padding: 40px 16px 14px; }
  .photo figcaption .cond { font-size: 14px; }
  .chip { top: 12px; left: 12px; height: 30px; font-size: 13px; }
  .card-mark { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.action.live { margin-top: 20px; }
