/* ==========================================================================
   Tim's Christmas Dinner – styles
   One continuous night-sky "app screen". Mobile first: the basic styles are
   for phones; bigger screens get extras in the @media (min-width: 760px) block.
   ========================================================================== */

/* The spiky title font from the film. Used ONLY for the big title, the two
   section headings and the date on the ticket. */
@font-face {
  font-family: 'Burtons Nightmare';
  src: url('/media/BurtonsNightmare.ttf') format('truetype');
  font-display: swap;
}

/* Colours, fonts and shapes in one place – change them here. */
:root {
  --night: #0b1a3a;
  --night-deep: #071028;
  --night-light: #15295a;
  --red: #cd1423;
  --red-dark: #8f0c17;
  --red-soft: #ff8f99;          /* red that's readable on the night sky (error text) */
  --snow: #ffffff;
  --ice: #dbe7ff;
  --ice-dim: #b8c7e8;           /* quieter text, still > 4.5:1 on night */
  --gold: #ffd166;
  --green: #2f9e5b;
  --font-title: 'Burtons Nightmare', 'Impact', 'Haettenschweiler', 'Arial Black', sans-serif;
  --font-body: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --radius: 16px;
  --radius-panel: 26px;
  --radius-input: 14px;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --gap-section: 3rem;
  --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

p { text-wrap: pretty; }
h1, h2, h3, .intro, .format p, .challenge-intro, .footer-message { text-wrap: balance; }

a { color: var(--gold); }
a:hover { color: var(--snow); }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }   /* admin page */
.wrap { width: min(680px, 100% - 2rem); margin-inline: auto; }

/* ---------- Spiky red headings ---------- */
.spiky {
  font-family: var(--font-title);
  font-weight: normal;
  color: var(--red);
  letter-spacing: 0.03em;
  line-height: 1.02;
  margin: 0 0 1rem;
  /* A dark outline + a soft glow so the red pops on the night sky. */
  -webkit-text-stroke: 1px #2a0005;
  text-shadow:
    2px 2px 0 #1a0003,
    -1px -1px 0 #1a0003,
    0 0 22px rgba(255, 255, 255, 0.22);
}
h1.spiky { font-size: clamp(2.6rem, 11vw, 5.5rem); text-align: center; }
h2.spiky { font-size: clamp(2.2rem, 8vw, 3.4rem); text-align: center; }

/* ---------- The candy-cane ribbon (the only stripe on the page) ---------- */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--snow) 10px 20px);
  box-shadow: 0 0 18px rgba(205, 20, 35, 0.45);
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--snow);
  background: linear-gradient(180deg, #e01b2b, var(--red) 55%, #b5101e);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(205, 20, 35, 0.38), 0 2px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { color: var(--snow); filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.btn-small { min-height: 0; padding: 0.3rem 0.9rem; font-size: 0.9rem; box-shadow: none; }   /* admin */
.btn-danger { background: var(--red-dark); }

/* A quiet text link (e.g. "What's the plan?") */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--ice);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(219, 231, 255, 0.45);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--snow); text-decoration-color: var(--gold); }

/* ---------- Glass ---------- */
.panel, .course, .extra, .footer-inner {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .course, .extra, .footer-inner { background: rgba(21, 41, 90, 0.92); }
}

/* ==========================================================================
   1. Hero: title, film, ticket
   ========================================================================== */
.hero {
  position: relative;
  padding: 2.25rem 0 var(--gap-section);
  /* The snowy runway + hut, darkened, melting into the night at the bottom. */
  background:
    linear-gradient(180deg, rgba(7, 16, 40, 0.7) 0%, rgba(11, 26, 58, 0.72) 55%, var(--night) 100%),
    url('/media/hut.jpg') center top / cover no-repeat;
}
.hero-inner { width: min(900px, 100% - 2rem); margin-inline: auto; text-align: center; }
.hero-kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ice);
}
.hero-title, h1.hero-title {
  position: relative;
  z-index: 5;                      /* always above the film frame */
  font-size: clamp(2.8rem, 13vw, 6rem);
  line-height: 1.12;               /* the spiky font is tall: tighter than this and the lines collide */
  margin: 0 auto -0.1em;           /* just tucks the bottom of the title over the film's top edge */
  max-width: 11ch;
  transform: rotate(-2deg);
}

/* The film: a thin candy-stripe frame with a soft red glow */
.film {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 5px;
  border-radius: 22px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--snow) 12px 24px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 46px rgba(205, 20, 35, 0.4), 0 24px 50px rgba(0, 0, 0, 0.5);
}
.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 17px;
  background: #000;
}

/* The ticket stub: the only solid-white thing on the page.
   Two little notches are cut out of its sides with a mask; the shadow sits on
   the wrapper because a mask would clip it. */
.ticket-wrap {
  width: min(460px, 100%);
  margin: 1.75rem auto 0;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transform: rotate(-1.2deg);
}
.ticket {
  --notch-y: calc(100% - 4.1rem);
  background: var(--snow);
  color: var(--night);
  border-radius: 22px;
  -webkit-mask:
    radial-gradient(circle 13px at 0 var(--notch-y), transparent 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% var(--notch-y), transparent 96%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 13px at 0 var(--notch-y), transparent 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% var(--notch-y), transparent 96%, #000) right / 51% 100% no-repeat;
}
.ticket-main { padding: 1.4rem 1.25rem 1rem; }
.ticket-date {
  margin: 0;
  color: var(--red);
  font-size: clamp(2.2rem, 10.5vw, 3.3rem);
  line-height: 1;
  text-align: center;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 rgba(143, 12, 23, 0.25);
}
.ticket-time { margin: 0.45rem 0 0; font-size: 1.15rem; font-weight: 700; color: #34405e; }
.ticket-time strong { color: var(--red-dark); font-size: 1.35rem; }
.ticket-stub {
  height: 4.1rem;
  display: grid;
  place-items: center;
  border-top: 2px dashed #d3dbec;
  margin-inline: 1.1rem;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--snow);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease;
}
.pill-link:hover { color: var(--snow); background: var(--night-light); }
.pill-link:active { transform: scale(0.97); }

.welcome { font-size: 1.15rem; max-width: 34em; margin: 1.5rem auto 0; }
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.hero-actions .btn { width: min(100%, 360px); }

/* ==========================================================================
   2. The evening
   ========================================================================== */
.evening {
  padding: var(--gap-section) 0;
  /* The hut in the forest, faded in and out of the night at the edges. */
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(11, 26, 58, 0.8) 22%, rgba(11, 26, 58, 0.82) 70%, var(--night) 100%),
    url('/media/forest.jpg') center / cover no-repeat;
}
.evening .wrap { display: grid; gap: 1.5rem; }
.evening h2 { margin: 0; }

.format { text-align: center; }
.format h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--gold);
}
.format p { margin: 0 auto; max-width: 34em; font-size: 1.125rem; color: var(--ice); }

/* The courses: two across on a phone, four across on a desktop.
   An odd last tile (Drinks) becomes a full-width strip underneath. */
.courses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.course {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1.1rem 0.5rem 1rem;
  text-align: center;
  border-radius: 22px;
}
.course-icon { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.course-name { font-size: 1.2rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.course-note { font-size: 0.95rem; color: var(--ice); font-weight: 600; }
.course:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 0;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  justify-items: start;
  column-gap: 0.9rem;
  row-gap: 0;
  padding: 0.85rem 1.25rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.13), rgba(255, 255, 255, 0.07));
}
.course:last-child:nth-child(odd) .course-icon { grid-row: 1 / span 2; align-self: center; font-size: 2.2rem; }
.course:last-child:nth-child(odd) .course-name { align-self: end; }
.course:last-child:nth-child(odd) .course-note { align-self: start; }

.drinks-note {
  margin: -0.5rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: var(--ice-dim);
}

/* Bring + wear: two glass rows, written as sentences */
.extras { display: grid; gap: 0.75rem; }
.extra {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ice);
}
.extra strong { color: var(--gold); font-weight: 900; }
.extra-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.75rem;
  line-height: 1;
}

/* ==========================================================================
   3. The questionnaire
   ========================================================================== */
.rsvp {
  padding: calc(var(--gap-section) - 1rem) 0 calc(var(--gap-section) + 1rem);
  /* The kitchen where everything has a face. They are judging your answers. */
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(11, 26, 58, 0.78) 20%, rgba(7, 16, 40, 0.8) 75%, var(--night-deep) 100%),
    url('/media/kitchen.jpg') center / cover no-repeat;
}
.rsvp h2 { margin-bottom: 0.5rem; }
.intro { text-align: center; margin: 0 auto 1.5rem; max-width: 30em; font-size: 1.125rem; color: var(--ice); }

.form-panel {
  position: relative;
  border-radius: var(--radius-panel);
  padding: 1.35rem 1.1rem 1.25rem;
  background: rgba(7, 16, 40, 0.58);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .form-panel { background: rgba(7, 16, 40, 0.94); }
}

.rsvp-form { color-scheme: dark; }
.rsvp-form fieldset {
  border: 0;
  margin: 0;
  padding: 0 0 1.5rem;
  min-width: 0;
}
.rsvp-form fieldset + fieldset { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rsvp-form legend {
  float: left;               /* keeps the legend inside the fieldset's box, like a normal heading */
  width: 100%;
  padding: 0;
  margin: 0 0 0.75rem;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--snow);
}
.rsvp-form legend + * { clear: both; }
.field { margin-top: 0.9rem; }
.choice-grid + .field { margin-top: 1.1rem; }
.field:first-child, legend + .field { margin-top: 0; }
.rsvp-form label { display: block; font-weight: 700; margin: 0 0 0.4rem; color: var(--ice); }

.rsvp-form input[type='text'],
.rsvp-form select,
.rsvp-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 1.0625rem;      /* 16px+ stops iPhones zooming in */
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(219, 231, 255, 0.3);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.08);
  color: var(--snow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rsvp-form textarea { resize: vertical; min-height: 6rem; }
.rsvp-form ::placeholder { color: rgba(219, 231, 255, 0.6); opacity: 1; }
.rsvp-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.8rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd166' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 1.2rem;
}
.rsvp-form select:invalid { color: rgba(219, 231, 255, 0.7); }
.rsvp-form option { color: var(--night); background: var(--snow); }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35);
}
.rsvp-form [aria-invalid='true'] { border-color: var(--red-soft); background-color: rgba(205, 20, 35, 0.14); }

.req { color: var(--red-soft); }
.hint { font-weight: 400; color: #6b7590; font-size: 0.9em; }   /* admin */

/* Dietary options: toggle pills that fill red when ticked. The real tick-box
   stays in the page (for keyboards and screen readers), just visually hidden. */
.choice-row, .choice-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.rsvp-form label.pill {
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1.05rem;
  border: 1px solid rgba(219, 231, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--snow);
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.pill span::before {
  content: '+';
  display: inline-block;
  width: 0.9em;
  margin-right: 0.15rem;
  font-weight: 900;
  color: var(--gold);
}
.pill:active { transform: scale(0.97); }
.pill:has(input:checked) {
  background: var(--red);
  border-color: #ff5a67;
  box-shadow: 0 6px 18px rgba(205, 20, 35, 0.4);
}
.pill:has(input:checked) span::before { content: '✓'; color: var(--snow); }
.pill:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* The hero of the form: Santa's challenge, with a soft red glow */
.rsvp-form fieldset.challenge {
  margin: 0.25rem -0.35rem 1.5rem;
  padding: 1.25rem 1.1rem 1.35rem;
  border: 1px solid rgba(255, 110, 120, 0.45);
  border-radius: 24px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(205, 20, 35, 0.38), transparent 70%),
    rgba(143, 12, 23, 0.22);
  box-shadow: 0 0 40px rgba(205, 20, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rsvp-form fieldset + fieldset.challenge { border-top: 1px solid rgba(255, 110, 120, 0.45); padding-top: 1.25rem; }
.rsvp-form .challenge-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 0.6rem;
}
.challenge-santa {
  width: 7rem;
  height: 7rem;
  margin-top: -0.25rem;
  border-radius: 50%;
  border: 4px solid var(--snow);
  background: var(--snow);
  box-shadow: 0 0 0 4px var(--red), 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 40px rgba(205, 20, 35, 0.55);
  transform: rotate(-6deg);
}
.challenge-title { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.challenge-intro { margin: 0 auto 1.1rem; max-width: 32em; text-align: center; color: var(--ice); }
.challenge label { color: var(--snow); }
.challenge input[type='text'] { background: rgba(7, 16, 40, 0.55); border-color: rgba(255, 209, 102, 0.5); }
.hint-line { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--ice-dim); }

.field-error, .form-error { color: var(--red-soft); font-weight: 700; margin: 0.4rem 0 0; }
.form-error {
  background: rgba(205, 20, 35, 0.18);
  border: 1px solid var(--red-soft);
  color: #ffd9dd;
  border-radius: var(--radius-input);
  padding: 0.7rem 0.95rem;
  margin: 0 0 1.25rem;
}
[hidden] { display: none !important; }

/* The honeypot: moved off-screen so people never see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; min-height: 56px; font-size: 1.15rem; }

/* The thank-you, plus one celebratory burst of snow and sparkles */
.thank-you { text-align: center; font-size: 1.125rem; padding: 0.75rem 0.25rem 0.5rem; color: var(--ice); }
.thank-you p { margin: 0 auto; max-width: 30em; }
.thank-you .big { font-weight: 900; color: var(--gold); font-size: 2.1rem; line-height: 1.1; margin-bottom: 0.6rem; }
.thank-you-santa {
  width: 6.5rem; height: 6.5rem; margin: 0 auto 1rem;
  border-radius: 50%; border: 4px solid var(--snow); background: var(--snow);
  box-shadow: 0 0 0 4px var(--red), 0 0 40px rgba(205, 20, 35, 0.5);
}
.celebrate .thank-you { animation: thanks-in 0.6s var(--ease-pop) both; }
.celebrate .thank-you-santa { animation: santa-pop 0.8s var(--ease-pop) 0.1s both; }
@keyframes thanks-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes santa-pop { 0% { transform: scale(0.3) rotate(-30deg); } 100% { transform: scale(1) rotate(-6deg); } }

.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.burst i {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--snow);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: burst 1.6s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
.burst i:nth-child(3n)   { background: var(--gold); box-shadow: 0 0 10px rgba(255, 209, 102, 0.9); width: 8px; height: 8px; }
.burst i:nth-child(4n)   { background: #ff5a67; box-shadow: 0 0 10px rgba(255, 90, 103, 0.8); border-radius: 2px; }
.burst i:nth-child(1)  { --x: -150px; --y: -70px; }
.burst i:nth-child(2)  { --x: 140px; --y: -90px; animation-delay: 0.05s; }
.burst i:nth-child(3)  { --x: -90px; --y: 120px; animation-delay: 0.1s; }
.burst i:nth-child(4)  { --x: 110px; --y: 140px; }
.burst i:nth-child(5)  { --x: -30px; --y: -130px; animation-delay: 0.08s; }
.burst i:nth-child(6)  { --x: 60px; --y: -150px; }
.burst i:nth-child(7)  { --x: -170px; --y: 40px; animation-delay: 0.12s; }
.burst i:nth-child(8)  { --x: 175px; --y: 30px; animation-delay: 0.04s; }
.burst i:nth-child(9)  { --x: -60px; --y: 170px; }
.burst i:nth-child(10) { --x: 30px; --y: 190px; animation-delay: 0.14s; }
.burst i:nth-child(11) { --x: -120px; --y: -140px; animation-delay: 0.2s; }
.burst i:nth-child(12) { --x: 120px; --y: -40px; animation-delay: 0.18s; }
.burst i:nth-child(13) { --x: -140px; --y: 150px; animation-delay: 0.06s; }
.burst i:nth-child(14) { --x: 160px; --y: 110px; animation-delay: 0.16s; }
.burst i:nth-child(15) { --x: 0px; --y: -170px; animation-delay: 0.22s; }
.burst i:nth-child(16) { --x: -190px; --y: -20px; animation-delay: 0.1s; }
.burst i:nth-child(17) { --x: 190px; --y: -120px; animation-delay: 0.24s; }
.burst i:nth-child(18) { --x: 80px; --y: 80px; animation-delay: 0.02s; }
@keyframes burst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 60px)) scale(1) rotate(180deg); }
}

/* ---------- Floating "Answer the questionnaire" button (phones only) ---------- */
.fab { display: none; }
@media (max-width: 759.98px) {
  .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    min-height: 52px;
    padding: 0 1.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #e01b2b, var(--red) 55%, #b5101e);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--snow);
    font-weight: 800;
    font-size: 1.0625rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(205, 20, 35, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 140%);
    transition: transform 0.35s var(--ease-pop), opacity 0.25s ease, visibility 0s linear 0.35s;
  }
  .fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: transform 0.35s var(--ease-pop), opacity 0.25s ease, visibility 0s;
  }
  .fab.is-visible:active { transform: translate(-50%, 0) scale(0.97); }
  .fab:hover { color: var(--snow); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  color: var(--ice);
  background: linear-gradient(180deg, var(--night-deep), #050b1d);
  padding: 4.5rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  position: relative;
  width: min(560px, 100% - 2rem);
  margin-inline: auto;
  padding: 4.75rem 1.5rem 1.75rem;
  border-radius: var(--radius-panel);
}
.footer-reindeer {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0;
  translate: -50% -55%;
  rotate: 5deg;
  border-radius: 50%;
  border: 4px solid var(--snow);
  background: var(--snow);
  box-shadow: 0 0 0 4px var(--red), 0 16px 32px rgba(0, 0, 0, 0.5);
}
.footer-message { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--snow); line-height: 1.45; }
.footer-small { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--ice-dim); }

/* ---------- Falling snow ----------
   Two layers of dots (made with CSS gradients – no images) drifting down.
   Kept light: two pseudo-elements, only "transform" is animated. */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.snow::before, .snow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  /* Start one "loop distance" above the screen and slide down exactly that far,
     so the pattern lines up perfectly when the animation repeats. */
  top: -880px;
  height: calc(100% + 880px);
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 80px 120px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 150px 60px, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 210px 170px, #fff 50%, transparent 51%),
    radial-gradient(4px 4px at 260px 20px, rgba(255,255,255,0.7) 50%, transparent 51%);
  background-size: 300px 220px;
  animation: snowfall-a 18s linear infinite;
  opacity: 0.55;
}
.snow::after {
  top: -900px;
  height: calc(100% + 900px);
  background-size: 420px 300px;
  animation: snowfall-b 28s linear infinite;
  opacity: 0.35;
  filter: blur(1px);
}
/* 880px = 4 x the 220px pattern height; 900px = 3 x 300px. */
@keyframes snowfall-a { to { transform: translateY(880px); } }
@keyframes snowfall-b { to { transform: translateY(900px); } }

/* ==========================================================================
   Bigger screens: the same phone design, given room to breathe
   ========================================================================== */
@media (min-width: 760px) {
  :root { --gap-section: 4.5rem; }
  .hero { padding-top: 3rem; }
  .ticket-wrap { margin-top: 2.25rem; }
  .hero-actions { flex-direction: row; justify-content: center; gap: 1.25rem; }
  .hero-actions .btn { width: auto; padding-inline: 2rem; }
  .courses { grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
  .extras { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .extra { align-items: flex-start; }
  .form-panel { padding: 2rem 2rem 1.75rem; }
  .rsvp-form fieldset.challenge { margin-inline: -0.75rem; padding: 1.5rem 1.75rem 1.6rem; }
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
  .field-grid > .field + .field { margin-top: 0; }
  .field-grid > .field-wide { grid-column: 1 / -1; }
  .btn-submit { width: 100%; }
}

/* Respect people who ask their phone/computer for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow::before, .snow::after { animation: none; }
  .btn, .pill-link, .rsvp-form label.pill, .fab, .fab.is-visible { transition: none; }
  .btn:active, .pill-link:active, .pill:active { transform: none; }
  .burst { display: none; }
  .celebrate .thank-you, .celebrate .thank-you-santa { animation: none; }
}

/* ---------- Admin page ---------- */
body.admin { padding: 1.5rem 0 3rem; }
body.admin h1.spiky { font-size: clamp(2rem, 7vw, 3.4rem); }
body.admin h2 { color: var(--gold); }
.notice { background: var(--green); padding: 0.5rem 1rem; border-radius: 12px; display: inline-block; }
.stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.stat { background: var(--snow); color: var(--night); border-radius: var(--radius); padding: 0.75rem 1.25rem; font-weight: 700; border-left: 8px solid var(--red); }
.stat-num { font-size: 2rem; color: var(--red); margin-right: 0.25rem; }
.table-wrap { overflow-x: auto; background: var(--snow); color: var(--night); border-radius: var(--radius); }
.rsvp-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.rsvp-table th, .rsvp-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #e3e8f3; text-align: left; vertical-align: top; }
.rsvp-table th { background: var(--red); color: var(--snow); position: sticky; top: 0; }
.rsvp-table td.yes { color: var(--green); font-weight: 800; }
.rsvp-table td.no { color: var(--red); font-weight: 800; }
.rsvp-table a { color: var(--red); }
.nowrap { white-space: nowrap; }
form.inline { display: inline; }

/* ---------- The opening curtain ----------
   Two dark gates with a candy-cane seam over the whole screen. The moon rises, the title pops,
   Santa and the reindeer slide in, a shooting star crosses the sky (like the end of the film),
   then the gates part and the hero builds itself in behind them.
   intro.js sets html.has-intro / no-intro before paint; site.js adds .curtain-play to start and
   .curtain-open to finish, then swaps has-intro for intro-done. */
html.no-intro .curtain { display: none; }
html.has-intro { overflow: hidden; }
.curtain {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  /* no background of its own: the two gates paint the sky, so the page shows through as they part */
}
.curtain-gate {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: radial-gradient(circle at 50% 42%, rgba(28, 58, 122, 0.9) 0, rgba(28, 58, 122, 0) 40%),
    linear-gradient(180deg, var(--night-light), var(--night) 60%, var(--night-deep));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.25, 1);
  z-index: 2;
}
.curtain-gate-left { left: 0; }
.curtain-gate-right { right: 0; }
.curtain-gate::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 28px;
  background: repeating-linear-gradient(135deg, var(--red) 0 16px, var(--snow) 16px 32px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}
.curtain-gate-left::after { right: 0; border-left: 4px solid var(--snow); }
.curtain-gate-right::after { left: 0; border-right: 4px solid var(--snow); }

.curtain-stage {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; align-content: center; gap: 0.25rem;
  text-align: center; padding: 1rem;
}

/* the moon rises out of the dark */
.curtain-moon {
  position: absolute; z-index: 0; left: 50%; top: 42%; width: min(70vw, 360px); aspect-ratio: 1;
  transform: translate(-50%, -20%) scale(0.3); opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #ffffff 0, #e8eefc 55%, #c9d6f5 100%);
  box-shadow: 0 0 60px 20px rgba(220, 230, 255, 0.35), 0 0 160px 60px rgba(120, 150, 255, 0.2);
}
.curtain-play .curtain-moon { animation: curtain-moonrise 1s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.1s forwards; }
@keyframes curtain-moonrise {
  0% { transform: translate(-50%, -20%) scale(0.3); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* stars twinkle, snow drifts */
.curtain-stars, .curtain-snow { position: absolute; inset: 0; pointer-events: none; }
.curtain-stars i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0;
  animation: curtain-twinkle 1.6s ease-in-out infinite;
}
.curtain-stars i:nth-child(1) { left: 8%; top: 12%; animation-delay: 0.1s; }
.curtain-stars i:nth-child(2) { left: 22%; top: 30%; animation-delay: 0.5s; width: 4px; height: 4px; }
.curtain-stars i:nth-child(3) { left: 15%; top: 70%; animation-delay: 0.9s; }
.curtain-stars i:nth-child(4) { left: 30%; top: 85%; animation-delay: 0.3s; width: 4px; height: 4px; }
.curtain-stars i:nth-child(5) { left: 44%; top: 8%; animation-delay: 0.7s; }
.curtain-stars i:nth-child(6) { left: 58%; top: 16%; animation-delay: 1.1s; width: 4px; height: 4px; }
.curtain-stars i:nth-child(7) { left: 70%; top: 28%; animation-delay: 0.2s; }
.curtain-stars i:nth-child(8) { left: 86%; top: 20%; animation-delay: 0.8s; }
.curtain-stars i:nth-child(9) { left: 90%; top: 55%; animation-delay: 0.4s; width: 4px; height: 4px; }
.curtain-stars i:nth-child(10) { left: 76%; top: 78%; animation-delay: 1.3s; }
.curtain-stars i:nth-child(11) { left: 60%; top: 90%; animation-delay: 0.6s; width: 4px; height: 4px; }
.curtain-stars i:nth-child(12) { left: 38%; top: 60%; animation-delay: 1.0s; }
@keyframes curtain-twinkle { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.2); } }
.curtain-snow i {
  position: absolute; top: -4%; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  animation: curtain-fall 4.5s linear infinite;
}
.curtain-snow i:nth-child(1) { left: 5%; animation-delay: -0.5s; }
.curtain-snow i:nth-child(2) { left: 17%; animation-delay: -2.2s; width: 5px; height: 5px; }
.curtain-snow i:nth-child(3) { left: 28%; animation-delay: -1.1s; }
.curtain-snow i:nth-child(4) { left: 39%; animation-delay: -3.4s; width: 4px; height: 4px; }
.curtain-snow i:nth-child(5) { left: 50%; animation-delay: -0.2s; width: 5px; height: 5px; }
.curtain-snow i:nth-child(6) { left: 61%; animation-delay: -2.8s; }
.curtain-snow i:nth-child(7) { left: 72%; animation-delay: -1.6s; width: 4px; height: 4px; }
.curtain-snow i:nth-child(8) { left: 81%; animation-delay: -3.9s; }
.curtain-snow i:nth-child(9) { left: 90%; animation-delay: -0.9s; width: 5px; height: 5px; }
.curtain-snow i:nth-child(10) { left: 96%; animation-delay: -2.5s; }
@keyframes curtain-fall { 0% { transform: translateY(0) translateX(0); } 50% { transform: translateY(55vh) translateX(12px); } 100% { transform: translateY(110vh) translateX(-8px); } }

/* the title pops in with a wobble */
.curtain-title {
  position: relative; z-index: 1; margin: 0;
  color: var(--red); font-size: clamp(2.6rem, 12vw, 6rem); line-height: 1.05;
  text-shadow: 0 4px 0 var(--red-dark), 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: scale(0.2) rotate(-12deg);
}
.curtain-play .curtain-title { animation: curtain-pop 0.85s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards; }
@keyframes curtain-pop {
  0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  55% { opacity: 1; transform: scale(1.12) rotate(3deg); }
  78% { transform: scale(0.96) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}
.curtain-sub {
  position: relative; z-index: 1; margin: 0.35rem 0 0;
  color: var(--ice); font-weight: 700; font-size: 1rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease 1.15s, transform 0.5s ease 1.15s;
}
.curtain-play .curtain-sub { opacity: 1; transform: none; }

/* Santa and the reindeer slide in from the wings; he bobs, the reindeer chews */
.curtain-santa, .curtain-reindeer {
  position: absolute; z-index: 1; bottom: 6%; width: min(38vw, 220px); height: auto;
  border-radius: 50%; border: 5px solid var(--red); background: #fff;
  box-shadow: 0 0 0 5px var(--snow), 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.9s cubic-bezier(0.2, 1.1, 0.3, 1);
}
.curtain-santa { left: 4%; transform: translate(-150%, 30%) rotate(-25deg); transition-delay: 1s; }
.curtain-reindeer { right: 4%; transform: translate(150%, 30%) rotate(25deg); transition-delay: 1.15s; }
.curtain-play .curtain-santa { transform: translate(0, 0) rotate(-8deg); animation: curtain-bob 1.3s ease-in-out 1.9s infinite; }
.curtain-play .curtain-reindeer { transform: translate(0, 0) rotate(8deg); animation: curtain-chew 0.55s ease-in-out 2s infinite; }
@keyframes curtain-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes curtain-chew { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 3px; rotate: -4deg; } }

/* the shooting star, with a glittery tail, crossing the sky behind the moon */
.curtain-star {
  position: absolute; z-index: 2; top: 13%; left: -12%; width: 20px; height: 20px;
  border-radius: 50%; background: #fffbe6; opacity: 0;
  box-shadow: 0 0 12px 4px #fff, 0 0 40px 12px rgba(255, 240, 180, 0.8);
}
.curtain-star::before {
  content: ''; position: absolute; right: 9px; top: 50%; height: 4px; width: 320px;
  transform: translateY(-50%); border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 210, 0.9) 100%);
}
.curtain-star::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: #fff; transform: translateY(-50%);
  /* the glitter: a scatter of tiny sparkles behind the head */
  box-shadow: -18px -9px 0 0 #fff, -34px 6px 0 0 #ffe9a8, -52px -4px 0 -1px #fff, -70px 8px 0 0 #fff,
    -88px -10px 0 -1px #ffe9a8, -108px 3px 0 0 #fff, -130px -6px 0 -1px #fff, -150px 7px 0 -1px #ffe9a8, -172px -2px 0 -2px #fff;
  animation: curtain-glitter 0.18s steps(2) infinite;
}
.curtain-play .curtain-star { animation: curtain-shoot 1.15s cubic-bezier(0.3, 0.6, 0.5, 1) 1.75s forwards; }
@keyframes curtain-shoot {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  8% { opacity: 1; transform: translate(6vw, 1vh) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(124vw, 22vh) scale(0.8); }
}
@keyframes curtain-glitter { from { opacity: 1; } to { opacity: 0.45; } }

/* opening: gates part, the stage fades */
.curtain-open .curtain-gate-left { transform: translateX(-104%); }
.curtain-open .curtain-gate-right { transform: translateX(104%); }
.curtain-open .curtain-stage { transition: opacity 0.35s ease 0.15s; opacity: 0; }
.curtain-open { transition: opacity 0.3s ease 1.15s; opacity: 0; pointer-events: none; }

/* ...and the hero builds itself in behind the parting gates */
.hero-inner > * { transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1); }
html.has-intro .hero-inner > * { opacity: 0; transform: translateY(30px); }
html.has-intro .hero-inner > .hero-title { transform: translateY(-50px) scale(0.85); }
html.intro-done .hero-inner > :nth-child(1) { transition-delay: 0.15s; }
html.intro-done .hero-inner > :nth-child(2) { transition-delay: 0.25s; }
html.intro-done .hero-inner > :nth-child(3) { transition-delay: 0.4s; }
html.intro-done .hero-inner > :nth-child(4) { transition-delay: 0.55s; }
html.intro-done .hero-inner > :nth-child(5) { transition-delay: 0.7s; }
html.intro-done .hero-inner > :nth-child(6) { transition-delay: 0.85s; }

/* calmer version for people who prefer reduced motion: things fade, nothing flies */
@media (prefers-reduced-motion: reduce) {
  .curtain-stars i, .curtain-snow i, .curtain-star, .curtain-play .curtain-santa, .curtain-play .curtain-reindeer { animation: none; }
  .curtain-moon, .curtain-title, .curtain-sub, .curtain-santa, .curtain-reindeer { transition: opacity 0.6s ease; transform: none; animation: none; }
  .curtain-play .curtain-moon, .curtain-play .curtain-title, .curtain-play .curtain-sub, .curtain-play .curtain-santa, .curtain-play .curtain-reindeer { opacity: 1; transform: none; animation: none; }
  .curtain-gate { transition: opacity 0.6s ease; }
  .curtain-open .curtain-gate { transform: none; opacity: 0; }
  .hero-inner > * { transition: opacity 0.6s ease; }
  html.has-intro .hero-inner > *, html.has-intro .hero-inner > .hero-title { transform: none; }
}

/* ---------- The "Sent!" screen ----------
   Takes over the screen after the questionnaire is sent: night sky, moon, a burst of snow and
   sparkles, Santa, their name and ingredient, and a button back to the page. */
.sent {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 1.25rem;
  background: radial-gradient(circle at 50% 30%, #1c3a7a 0, var(--night) 45%, var(--night-deep) 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.sent.is-open { opacity: 1; }
html.sent-open { overflow: hidden; }
.sent-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sent-moon {
  position: absolute; left: 50%; top: 22%; width: min(60vw, 300px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4); opacity: 0;
  background: radial-gradient(circle at 40% 38%, #fff 0, #e8eefc 55%, #c9d6f5 100%);
  box-shadow: 0 0 60px 20px rgba(220, 230, 255, 0.35), 0 0 160px 60px rgba(120, 150, 255, 0.2);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.1s, opacity 0.5s ease 0.1s;
}
.sent.is-open .sent-moon { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sent-burst i {
  position: absolute; left: 50%; top: 40%; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  opacity: 0;
}
.sent.is-open .sent-burst i { animation: sent-fly 1.6s cubic-bezier(0.1, 0.7, 0.3, 1) 0.25s forwards; }
.sent-burst i:nth-child(3n) { background: var(--gold); box-shadow: 0 0 10px rgba(255, 209, 102, 0.9); width: 9px; height: 9px; }
.sent-burst i:nth-child(4n) { background: var(--red); width: 6px; height: 6px; }
.sent-burst i:nth-child(1)  { --dx: -42vw; --dy: -30vh; } .sent-burst i:nth-child(2)  { --dx: 38vw;  --dy: -34vh; }
.sent-burst i:nth-child(3)  { --dx: -20vw; --dy: -42vh; } .sent-burst i:nth-child(4)  { --dx: 24vw;  --dy: -40vh; }
.sent-burst i:nth-child(5)  { --dx: -46vw; --dy: 2vh; }   .sent-burst i:nth-child(6)  { --dx: 44vw;  --dy: 6vh; }
.sent-burst i:nth-child(7)  { --dx: -30vw; --dy: 28vh; }  .sent-burst i:nth-child(8)  { --dx: 32vw;  --dy: 24vh; }
.sent-burst i:nth-child(9)  { --dx: -8vw;  --dy: 44vh; }  .sent-burst i:nth-child(10) { --dx: 10vw;  --dy: 46vh; }
.sent-burst i:nth-child(11) { --dx: -36vw; --dy: -12vh; } .sent-burst i:nth-child(12) { --dx: 40vw;  --dy: -14vh; }
.sent-burst i:nth-child(13) { --dx: -14vw; --dy: -20vh; } .sent-burst i:nth-child(14) { --dx: 16vw;  --dy: -24vh; }
.sent-burst i:nth-child(15) { --dx: -44vw; --dy: 18vh; }  .sent-burst i:nth-child(16) { --dx: 46vw;  --dy: 16vh; }
.sent-burst i:nth-child(17) { --dx: -22vw; --dy: 38vh; }  .sent-burst i:nth-child(18) { --dx: 22vw;  --dy: 36vh; }
.sent-burst i:nth-child(19) { --dx: -4vw;  --dy: -46vh; } .sent-burst i:nth-child(20) { --dx: 4vw;   --dy: 30vh; }
.sent-burst i:nth-child(21) { --dx: -48vw; --dy: -24vh; } .sent-burst i:nth-child(22) { --dx: 48vw;  --dy: -4vh; }
.sent-burst i:nth-child(23) { --dx: -28vw; --dy: 10vh; }  .sent-burst i:nth-child(24) { --dx: 30vw;  --dy: 42vh; }
@keyframes sent-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}
.sent-card {
  position: relative; text-align: center; max-width: 26rem;
  padding: 1.5rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(24px) scale(0.96); opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.35s, opacity 0.5s ease 0.35s;
}
.sent.is-open .sent-card { transform: none; opacity: 1; }
.sent-santa {
  width: 7.5rem; height: 7.5rem; margin: -4.5rem auto 0.5rem; border-radius: 50%;
  border: 5px solid var(--red); background: #fff;
  box-shadow: 0 0 0 5px var(--snow), 0 16px 32px rgba(0, 0, 0, 0.5);
}
.sent-kicker { margin: 0; color: var(--gold); font-weight: 800; }
.sent-title { margin: 0.1rem 0 0.5rem; font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 900; line-height: 1.1; color: var(--snow); }
.sent-text { margin: 0 auto 0.6rem; max-width: 24rem; color: var(--ice); font-size: 1.1rem; }
.sent-text strong { color: var(--gold); }
.sent-small { font-size: 0.95rem; opacity: 0.9; }
.sent-btn { margin-top: 0.75rem; width: 100%; }
.form-done { text-align: center; color: var(--ice); font-weight: 700; margin: 0.5rem 0; }
@media (prefers-reduced-motion: reduce) {
  .sent, .sent-moon, .sent-card { transition: opacity 0.4s ease; transform: none; }
  .sent.is-open .sent-burst i { animation: none; }
}
