/*
 * Ixonian pre-registration page, in the Ixonian theme (see docs/ixonian-theme.md
 * in the main Ixonian project): black page, dark surfaces with white hairlines,
 * warm cream text, gold and rust accents, DM Sans for the interface and
 * Playfair Display for headings, and the cream "primary" button.
 */

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display Variable';
  src: url('../fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --stage: #0b0a09;
  --panel: #121110;
  --surface: #141311;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --ink: #f5f0e8;
  --muted: rgba(248, 242, 232, .7);
  --faint: rgba(245, 240, 232, .46);
  --cream: #f0e8d8;
  --cream-ink: #191512;
  --gold: #c9a86a;
  --gold-bright: #f2d27a;
  --rust: #e2805a;
  --rust-deep: #b94f2a;
  --danger: #ff8a7a;
  --success: #43c488;
  --warning: #e5b24a;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display Variable', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- page background ---------- */

/* The crystal picture behind the card, under a dark gradient so the card and text stay clear. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000 url('../images/hero-bg-1280.jpg') 62% 50% / cover no-repeat;
  animation: backdrop-in 1.6s ease both;
}
@media (min-width: 1281px), (min-width: 821px) and (min-resolution: 1.5dppx) {
  .backdrop { background-image: url('../images/hero-bg-2560.jpg'); }
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* a soft shadow behind the card so it lifts off the picture */
    radial-gradient(ellipse 58% 62% at 50% 52%, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, 0) 100%),
    /* darker at the top and bottom, where the back button and the footer sit */
    linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .38) 24%, rgba(0, 0, 0, .38) 70%, rgba(0, 0, 0, .9) 100%),
    /* a gentle vignette at the edges */
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .6) 100%);
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- page frame ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 24px 22px;
}

.topbar {
  width: min(960px, 100%);
  display: flex;
  align-items: center;
  min-height: 28px;
}

.back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, transform .2s var(--ease-out);
}
.back svg { width: 20px; height: 10px; }
.back:hover { color: #fff; transform: translateX(-3px); }
.back:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 4px; }
.back.is-hidden { visibility: hidden; }

.mode-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 12, .85);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
}
.mode-note::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}
.mode-note.is-live::before { background: var(--success); }
.mode-note code { font-family: inherit; font-weight: 700; color: var(--ink); }
.mode-note[hidden] { display: none; }

/* ---------- the card ---------- */

.card {
  position: relative;
  width: min(960px, 100%);
  height: clamp(590px, 64vw, 632px);
  background:
    var(--stage);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -36px rgba(255, 255, 255, .22), 0 40px 90px rgba(0, 0, 0, .6);
}

.ink {
  position: absolute;
  inset: 0;
  background: var(--panel);
  border-radius: 13px;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 36% 100%);
}

/* The dark left side of the card shows the book covers, edge to edge. */
.art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 13px;
  pointer-events: none;
}
.hero-frame { position: absolute; inset: 0; }
.cover-frame {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46%; /* the dark side at its widest; the slant below matches the grey panel */
  overflow: hidden;
  background: var(--stage);
  clip-path: polygon(0 0, 100% 0, 78.26% 100%, 0 100%);
  animation: frame-in 1s ease both;
}
/* a soft shade toward the slanted edge so the cover blends into the panel */
.cover-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .35) 100%);
}
.cover-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 5.5s ease-out;
}
.cover-slide.is-active { opacity: 1; transform: scale(1); }
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  user-select: none;
  pointer-events: none;
}
.cover-logo { position: absolute; left: 25%; top: 50%; width: 50%; height: auto; transform: translateY(-50%); }
@keyframes frame-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- form panel ---------- */

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 57%;
  right: 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  user-select: none;
}
.brand img { pointer-events: none; }
.wordmark { width: 118px; height: auto; margin-left: -3px; }

.progress {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.progress li {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .14);
  transition: width .4s var(--ease-out), background .4s;
}
.progress li.is-done { background: rgba(240, 232, 216, .5); }
.progress li.is-current { width: 30px; background: var(--gold); }

.steps { margin: 0; }

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  transition: opacity .32s ease, transform .4s var(--ease-out);
}
.step.is-entering { opacity: 0; transform: translateY(16px); }
.step.is-leaving { opacity: 0; transform: translateY(-12px); }

.title {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.title:focus { outline: none; }

.subtitle {
  margin: 8px 0 28px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

.field { position: relative; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(245, 240, 232, .86);
}

.field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  font-size: .95rem;
  caret-color: var(--cream);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: rgba(245, 240, 232, .42); }
.field input:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus {
  border-color: rgba(240, 232, 216, .6);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(240, 232, 216, .1);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #1a1917 inset;
  transition: background-color 9999s;
}
.field[data-field="password"] input { padding-right: 48px; }
.field.is-invalid input { border-color: var(--danger); }
.line { display: none; }

.eye {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--faint);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.eye:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.eye:focus-visible { outline: 2px solid var(--cream); outline-offset: 0; }
.eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-slash { opacity: 1; transition: opacity .2s; }
.eye[aria-pressed="true"] .eye-slash { opacity: 0; }

.strength {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.strength i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  transition: background .3s;
}
.strength[data-level="1"] i:nth-child(-n + 1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n + 2) { background: var(--warning); }
.strength[data-level="3"] i:nth-child(-n + 3) { background: var(--gold); }
.strength[data-level="4"] i { background: var(--success); }

.hint {
  margin: 8px 0 0;
  font-size: .78rem;
  color: var(--faint);
  min-height: 1.5em;
}

.error {
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--danger);
}
.error:empty { margin: 0; }

.who {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -14px 0 22px;
  font-size: .88rem;
  color: var(--muted);
  min-width: 0;
}
.who-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--rust);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(226, 128, 90, .45);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--ink); text-decoration-color: rgba(245, 240, 232, .5); }
.link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 2px; }

.check {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 12px;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.check:first-of-type { margin-top: 18px; }
.check input {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check .box {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 4px;
  transition: background .2s, border-color .2s;
}
.check input:checked + .box { background: var(--cream); border-color: var(--cream); }
.check input:checked + .box::after {
  content: '';
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid var(--cream-ink);
  border-bottom: 2px solid var(--cream-ink);
  transform: rotate(-45deg);
}
.check input:focus-visible + .box { outline: 2px solid var(--cream); outline-offset: 2px; }
.check.is-invalid .box { border-color: var(--danger); }
.check a { color: var(--ink); text-decoration-color: rgba(245, 240, 232, .4); text-underline-offset: 2px; }
.check a:hover { color: var(--rust); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The Ixonian primary button ("Read Book"): cream, dark text, 6px corners. */
.btn {
  position: relative;
  display: inline-block;
  min-width: 180px;
  margin-top: 26px;
  padding: 13px 36px;
  border: 1px solid var(--cream);
  border-radius: 6px;
  background: var(--cream);
  color: var(--cream-ink);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cream-ink);
  box-shadow: -14px 0 0 var(--cream-ink), 14px 0 0 var(--cream-ink);
  animation: dots 1s ease-in-out infinite;
}
@keyframes dots {
  0%, 100% { box-shadow: -14px 0 0 rgba(25, 21, 18, .3), 14px 0 0 var(--cream-ink); background: rgba(25, 21, 18, .65); }
  50% { box-shadow: -14px 0 0 var(--cream-ink), 14px 0 0 rgba(25, 21, 18, .3); background: var(--cream-ink); }
}

.fineprint {
  margin: 16px 0 0;
  font-size: .78rem;
  color: var(--faint);
}

/* ---------- cards ---------- */

/* Cards have the Ixonian book-cover shape, 19 : 27.5. */
.deck {
  --card-w: 92px;
  --card-h: calc(var(--card-w) * 27.5 / 19);
  --spread: 62px;
  position: relative;
  height: 212px;
  margin: -6px 0 8px;
}

.pcard {
  position: absolute;
  left: 50%;
  top: 36px;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  padding: 0;
  border: 0;
  background: none;
  border-radius: 9px;
  cursor: pointer;
  perspective: 900px;
  z-index: var(--z, 1);
  --y: var(--y0, 0px);
  --r: var(--r0, 0deg);
  transform: translate(var(--x, 0px), var(--y)) rotate(var(--r)) scale(var(--s, 1));
  transition: transform .45s var(--ease-out), opacity .45s ease, filter .45s ease;
}
.pcard:not(:disabled):hover,
.pcard:not(:disabled):focus-visible {
  --y: calc(var(--y0, 0px) - 18px);
  --r: calc(var(--r0, 0deg) * .3);
  z-index: 10;
}
.pcard:focus-visible { outline: none; }
.pcard:disabled { cursor: default; }

.pcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, 1.25, .5, 1);
}
.pcard.is-flipped .pcard-inner { transform: rotateY(180deg); }

.pcard-back,
.pcard-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 9px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Back: like a normal playing card. White border, red diamond pattern,
   and the Ixonian logo in a dark oval (the colours it was designed on). */
.pcard-back {
  background: #fdfbf6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 14px 24px -12px rgba(0, 0, 0, .85);
}
.pc-pattern {
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  background-color: #9e2b25;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 7px);
  box-shadow: inset 0 0 0 2px #9e2b25, inset 0 0 0 3px rgba(255, 255, 255, .55);
}
.pc-oval {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #090b10;
  box-shadow: 0 0 0 2px #fdfbf6, 0 0 0 3px #9e2b25, 0 0 0 4px rgba(255, 255, 255, .55);
  transform: translate(-50%, -50%);
}
.pc-logo {
  width: 72%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.pcard:focus-visible .pcard-back { box-shadow: 0 0 0 2px var(--cream), 0 18px 28px -12px rgba(0, 0, 0, .9); }

.pcard.is-picked:not(.is-flipped) { animation: card-wiggle .5s ease-in-out infinite; }
@keyframes card-wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -2.5deg; }
  75% { rotate: 2.5deg; }
}

.pcard.is-dropped {
  opacity: 0;
  --y: calc(var(--y0, 0px) + 60px);
  pointer-events: none;
}
.pcard.is-dim { filter: brightness(.55); }

/* Front: a plain white playing card. The prize is the "rank": its chance and
   icon sit in the corners, its icon and name in the middle. */
.pcard-front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: #fdfbf6;
  color: #9e2b25;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 34px -14px rgba(0, 0, 0, .9);
}
.pcard-front.is-none { color: #1d1b19; }
.pc-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}
.pc-corner.is-top { left: 6px; top: 6px; }
.pc-corner.is-bottom { right: 6px; bottom: 6px; transform: rotate(180deg); }
.pc-corner .pc-icon { width: 9px; height: 9px; }
.pc-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pc-name {
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #1d1b19;
}

.result {
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.result.is-shown { opacity: 1; transform: none; }
.result-text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink); }
.result-note { margin: 10px 0 0; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.result-note strong { color: var(--ink); font-weight: 600; }

.odds-wrap { margin-top: 14px; }
.odds {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: .8rem;
  color: var(--muted);
}
.odds[hidden] { display: none; }
.odds li { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.odds li span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- confetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 11px;
  border-radius: 1px;
}
.confetti i.is-round { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: .78rem;
  color: var(--faint);
}
.footer a,
.footer-link {
  color: var(--faint);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: .78rem;
  cursor: pointer;
  transition: color .2s;
}
.footer a:hover,
.footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer a:focus-visible,
.footer-link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   Phones and small screens
   ========================================================= */

@media (max-width: 820px) {
  /*
   * Phones: the cover fills the top of the screen and stays still behind a
   * black gradient; the form slides up over it as you scroll down.
   */
  .page {
    --hero-h: min(62vh, 560px);
    padding: 0 0 18px;
    gap: 0;
    justify-content: flex-start;
  }
  @supports (height: 1svh) {
    .page { --hero-h: min(62svh, 560px); }
  }

  .topbar { position: relative; z-index: 2; padding: 12px 16px 4px; }

  .card {
    height: auto;
    min-height: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ink { display: none; }

  .art {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--hero-h);
    border-radius: 0;
    z-index: 0;
  }
  .cover-frame { width: 100%; clip-path: none; }
  .cover-frame::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .85) 82%, #000 100%);
  }
  .cover-img { object-position: center 25%; }

  .panel {
    position: relative;
    z-index: 1;
    inset: auto;
    margin-top: calc(var(--hero-h) - 150px);
    padding: 84px 24px 30px;
    background: none;
  }
  /* The crystal picture sits behind the form: it fades in under the cover and back to black before the footer. */
  .backdrop { display: none; }
  .panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(180deg, #000 0, rgba(0, 0, 0, .9) 150px, rgba(0, 0, 0, .78) 48%, rgba(0, 0, 0, .82) 78%, #000 100%),
      #000 url('../images/hero-bg-1280.jpg') 62% 40% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 96px);
    mask-image: linear-gradient(180deg, transparent 0, #000 96px);
  }
  /* solid boxes, so the picture never runs through what people type */
  .field input { background: rgba(14, 13, 12, .92); }
  .field input:focus { background: rgba(20, 19, 18, .94); }

  .footer { position: relative; z-index: 1; width: 100%; padding: 6px 16px 0; background: #000; }

  .brand { margin-bottom: 20px; }
  .title { font-size: 1.75rem; }
  .subtitle { margin-bottom: 24px; }
  .btn { width: 100%; }

  .deck { --card-w: 70px; --spread: 50px; height: 172px; }
  .pc-icon { width: 20px; height: 20px; }
  .pc-corner { font-size: 5.5px; }
  .pc-corner .pc-icon { width: 7px; height: 7px; }
  .pc-name { font-size: 8px; }
}

@media (max-width: 380px) {
  .deck { --card-w: 62px; --spread: 45px; height: 160px; }
}

/* =========================================================
   Reduced motion: keep the story, drop the movement
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .cover-frame { animation: none !important; }
  .cover-slide { transform: none !important; }
}

.result-btn { margin-top: 18px; }
