:root {
  --night: #1b1f4b;
  --night-deep: #0f1233;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --green: #1f7a3a;
  --gold: #f4c542;
  --snow: #ffffff;
  --ink: #1b1b1f;
  --muted: #5b5f73;
  --line: #d9dbe6;
  --card: rgba(255, 255, 255, 0.97);
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--night-deep);
  color: var(--snow);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100dvh; }

button, input, textarea { font: inherit; }

.stage {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
}

/* Character background: the still sits underneath, the loop fades in on
   top once it is actually playing. */
.bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  overflow: hidden;
  background: var(--night);
  z-index: 0;
}

.bg-still,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.bg-video { opacity: 0; transition: opacity 0.35s ease; }
.bg-video.is-playing { opacity: 1; }

.bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 40, 0.5), rgba(10, 12, 40, 0) 34%);
  transition: background 0.3s ease;
}

.bg-shade.dim { background: rgba(10, 12, 40, 0.62); }

.screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.grow { flex: 1 1 auto; min-height: 24px; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-right: 52px; /* room for the music button */
}

/* Music button: fixed top-right of the phone-width stage on every screen. */
.music-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc((100vw - min(100vw, 480px)) / 2 + 16px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--snow);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.music-btn.is-on { background: rgba(244, 197, 66, 0.92); }
.music-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.credit { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--snow);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.progress {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.step {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---------- The sky: question and headings ---------- */

.sky {
  margin-top: 3.5vh;
  text-shadow: 0 2px 14px rgba(10, 12, 40, 0.65);
}

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.sky h1,
.sky h2 {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 800;
  line-height: 1.12;
}

.sky h1 { font-size: clamp(32px, 9.5vw, 42px); }
.sky h2 { font-size: clamp(26px, 7.6vw, 34px); }

.sky p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(5, 6, 30, 0.35);
}

.card + .card { margin-top: 12px; }

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-size: 20px;
}

.card p { margin: 0 0 10px; line-height: 1.45; }
.card p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

.facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.facts li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

.facts .emoji { font-size: 24px; width: 30px; text-align: center; }

/* Welcome: a slim glass panel, so Santa isn't hidden behind a card. */
.welcome-panel {
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: rgba(15, 18, 51, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(5, 6, 30, 0.35);
  text-align: center;
}

.facts.compact {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0 0 12px;
  text-align: left;
}

.facts.compact li {
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--snow);
}

.facts.compact .emoji { flex: 0 0 auto; width: 24px; font-size: 20px; }

.welcome-panel .text-btn { display: block; margin: 8px auto 0; }
.welcome-panel .credit { margin-top: 8px; }
.credit.on-sky { color: rgba(255, 255, 255, 0.72); }

/* ---------- Buttons ---------- */

.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--red);
  color: var(--snow);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn.secondary {
  background: var(--snow);
  color: var(--ink);
  border: 2px solid var(--line);
}

.btn.secondary:hover { background: #f3f4f8; }
.btn + .btn { margin-top: 10px; }

.text-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.on-sky.text-btn { color: rgba(255, 255, 255, 0.85); }
.text-btn:disabled { opacity: 0.55; text-decoration: none; cursor: default; }

/* ---------- Form fields ---------- */

.field { margin-bottom: 14px; }

.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--snow);
  color: var(--ink);
  font-size: 17px;
}

.field input:focus { outline: none; border-color: var(--red); }
.field input:disabled { background: #f2f4fb; color: var(--muted); }

/* The emailed code: big, spaced digits. 16px+ also stops iOS zooming. */
.field .code-input {
  width: 100%;
  min-height: 60px;
  padding: 8px 0 8px 0.45em;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--snow);
  color: var(--ink);
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.45em;
}

.junk-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6d6;
  font-size: 15px;
}

.ask { font-family: var(--font-round); font-size: 19px; font-weight: 800; }

.row-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
}

.row-links .text-btn { margin-top: 2px; }

.center { text-align: center; }

.lead { margin: 0 0 10px; font-weight: 700; line-height: 1.4; }

.lead.letter {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 19px;
  color: #3b2a1a;
}

.hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.hint.warn { color: #9b0a20; font-weight: 700; }
.hint:empty { display: none; }

.counter { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: right; }

.error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fde8eb;
  color: #9b0a20;
  font-weight: 700;
  font-size: 15px;
}

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

/* ---------- Answer controls ---------- */

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip { position: relative; cursor: pointer; }

.chip input,
.swatch input,
.tick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--snow);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chip input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--snow);
}

.chip input:checked + span::before { content: "✓ "; white-space: pre; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.4; }

.pick-note { margin: -6px 0 12px; font-size: 14px; color: var(--muted); font-weight: 600; }

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 6px;
  margin-bottom: 16px;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.swatch .dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow 0.12s ease;
}

.swatch input:checked + .dot { box-shadow: 0 0 0 3px var(--snow), 0 0 0 6px var(--green); }
.swatch input:focus-visible + .dot { box-shadow: 0 0 0 3px var(--snow), 0 0 0 6px var(--gold); }

.slider { margin: 6px 0 18px; }

/* Useful-or-silly: a candy cane track with a present to drag along it. */
.candy-cane {
  position: relative;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 14px;
}

.candy-cane:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }

.cane-bar {
  position: absolute;
  top: 50%;
  left: 2px;
  right: 35px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 8px 0 0 8px;
  background: repeating-linear-gradient(90deg, #d62828 0 8px, #ffffff 8px 16px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 2px 5px rgba(5, 6, 30, 0.25);
}

.cane-hook {
  position: absolute;
  top: calc(50% - 38px);
  right: 0;
  width: 36px;
  height: 48px;
  filter: drop-shadow(0 2px 2px rgba(5, 6, 30, 0.25));
}

.candy-cane input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 30px);
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.candy-cane input[type="range"]:focus { outline: none; }
.candy-cane input[type="range"]::-webkit-slider-runnable-track { height: 56px; background: transparent; border: 0; }
.candy-cane input[type="range"]::-moz-range-track { height: 56px; background: transparent; border: 0; }

.candy-cane input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 46px;
  height: 46px;
  margin-top: 5px;
  border: 0;
  background: url("/img/gift-thumb.svg") center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(5, 6, 30, 0.35));
}

.candy-cane input[type="range"]::-moz-range-thumb {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: url("/img/gift-thumb.svg") center / contain no-repeat;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.slider-labels span:last-child { text-align: right; }

.tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.tick .box {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--snow);
  font-size: 18px;
}

.tick input:checked + .box { background: var(--green); border-color: var(--green); }
.tick input:checked + .box::after { content: "✓"; }
.tick input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Selfie ---------- */

.selfie-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.selfie-preview {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #eef0f7 center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
}

.selfie-preview img { width: 100%; height: 100%; object-fit: cover; }

.selfie-actions { display: grid; gap: 8px; flex: 1; }

.selfie-actions .btn { min-height: 46px; font-size: 16px; margin: 0; }

.file-input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* The selfie reason: big enough to read, on frosted glass over the sky. */
.why-glass {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 18, 51, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
  text-shadow: 0 1px 6px rgba(10, 12, 40, 0.5);
}

.card.compact { padding: 14px; }
.card.compact .selfie-row { margin-bottom: 6px; }
.card.compact .selfie-actions .btn { min-height: 44px; }

.why {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f2f4fb;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Question intro: the character on their own ---------- */

.intro-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  cursor: pointer;
}

.sky.intro h2 { font-size: clamp(30px, 9vw, 40px); }

.pop-in { animation: pop-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

@keyframes pop-in {
  from { transform: translateY(18px) scale(0.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.intro-actions { text-align: center; padding-bottom: 6px; }

.intro-btn {
  display: inline-block;
  width: auto;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.92);
  box-shadow: 0 8px 24px rgba(5, 6, 30, 0.4);
}

.intro-hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.card.slide-up { animation: slide-up 0.35s ease-out both; }

@keyframes slide-up {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Santa's list and the rubber stamp ---------- */

.santa-list {
  margin: 0 2px 14px;
  padding: 20px 20px 22px;
  border-radius: 12px;
  color: #3b2a1a;
  background:
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(150, 100, 50, 0.16) 33px 34px),
    linear-gradient(180deg, #fffaf0, #f5e4c2);
  box-shadow: 0 16px 44px rgba(5, 6, 30, 0.45), inset 0 0 0 1px rgba(120, 80, 30, 0.18), inset 0 0 40px rgba(160, 110, 50, 0.18);
}

.list-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  color: var(--red);
}

.list-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.list-name { font-weight: 700; }
.list-tick { font-size: 15px; font-style: italic; color: #7a5a30; white-space: nowrap; }

.stamp {
  display: block;
  width: fit-content;
  margin: 12px auto 14px;
  padding: 4px 18px;
  border: 7px double currentColor;
  border-radius: 14px;
  font-family: var(--font-round);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.stamp.nice { color: var(--green); }
.stamp.naughty { color: var(--red); font-size: 44px; }

.stamp.big { animation: stamp-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.35s both; }

@keyframes stamp-in {
  from { transform: scale(2.8) rotate(-26deg); opacity: 0; }
  to { transform: scale(1) rotate(-8deg); opacity: 0.9; }
}

.stamp.mini {
  display: inline-block;
  margin: 0;
  padding: 1px 10px;
  border-width: 4px;
  border-radius: 8px;
  font-size: 20px;
}

.list-msg { margin: 0; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.45; }

.next-btn { box-shadow: 0 10px 30px rgba(5, 6, 30, 0.4); }

.verdict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 8px;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@keyframes confetti-fall {
  from { transform: translate(0, 0) rotate(0); }
  to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); }
}

/* ---------- Verdict ---------- */

.verdict {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  font-family: var(--font-round);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.verdict.nice { background: #e3f4e8; color: var(--green); }
.verdict.naughty { background: #fde8eb; color: var(--red); }

.verdict-pop { animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 4px;
}

.link-box code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f4fb;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-box .btn { width: auto; min-height: 42px; padding: 8px 14px; font-size: 15px; }

/* ---------- Reveal ---------- */

.reveal-hero { text-align: center; }

.reveal-photo {
  width: 150px;
  height: 150px;
  margin: 4px auto 12px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--snow);
  font-family: var(--font-round);
  font-size: 54px;
  font-weight: 900;
  overflow: hidden;
}

.reveal-photo img { width: 100%; height: 100%; object-fit: cover; }

.reveal-name {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.gift {
  display: block;
  margin: 8px auto 16px;
  font-size: 92px;
  line-height: 1;
  border: 0;
  background: none;
  cursor: pointer;
  animation: wobble 1.6s ease-in-out infinite;
}

.gift:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 16px; }

@keyframes wobble {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(-9deg); }
  80% { transform: rotate(8deg); }
  90% { transform: rotate(-4deg); }
}

.answers { list-style: none; margin: 0; padding: 0; }

.answer {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eceef5;
}

.answer:first-child { border-top: 0; padding-top: 0; }

.face {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--night);
}

.answer .q { margin: 0 0 3px; font-size: 14px; color: var(--muted); font-weight: 700; }
.answer .a { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.answer .a.none { color: #9a9db0; font-weight: 600; }
.answer .flag { display: block; margin-top: 4px; color: var(--red); font-size: 15px; }

.wish-link {
  display: inline-block;
  margin-top: 2px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ff9900;
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.wish-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.colour-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  vertical-align: -2px;
}

/* ---------- Loading ---------- */

.loading {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.noscript {
  position: relative;
  z-index: 2;
  margin: 40vh 16px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--snow);
  color: var(--ink);
  text-align: center;
}

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

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