/*
  Look: the "When Christmas Finds Us Again" poster (Leonard's Canva invitation for the same gathering), so the
  invite and the game read as one set. Warm peach paper, navy ink like the poster's lettering, gold only for
  stars and lights, berry red from the wreath's bow for what is chosen or needs attention. The painted doorway
  from the poster (static/scene/door.webp) is the one picture; everything else is type, paper and ink.
  Allura (script, OFL) for big titles and names only, never below about 2rem: it is hard to read small.
  Cormorant Garamond (OFL, the invite's serif; its digits remapped to lining figures, because the old-style 0
  reads as the letter o) for headings, labels and buttons; the phone's own sans for
  anything read at length and for form fields. The game feel stays in the light string, the chunky press of
  the buttons and the small pops. Designed at iPhone width first; the tab bar moves from the bottom (phone)
  to the header (laptop).
*/
@font-face {
  font-family: "Allura";
  src: url("/static/fonts/allura-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fdeadc;        /* the poster's paper */
  --paper-2: #fffaf4;      /* a fresh sheet on top of it: cards */
  --paper-3: #f8e8d6;      /* a tinted well inside a card */
  --line: #e6cdb6;
  --ink: #122254;          /* the poster's lettering */
  --ink-2: #4a5072;
  --field: #7c7f98;
  --gold: #e0a650;         /* stars and lights, never text */
  --gold-deep: #c98d36;
  --gold-text: #7a5418;
  --kraft: #f3d9a8;
  --red: #b8373a;          /* the bow on the wreath */
  --red-text: #a02f31;
  --green-text: #2f6b3c;
  --btn: #1d2f6b;          /* the painted door */
  --btn-edge: #0c173f;
  --btn-hover: #273c82;
  --on-btn: #fffaf2;
  --focus: var(--ink);
  --script: "Allura", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 20px;
  --r-ctl: 12px;
  /* Painted surfaces: static/wash/*.svg, made by tools/make_washes.py. Stretched to each element, so their edges
     wobble like brushed paint; form fields keep a clear painted outline so they still read as fields. */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%23122254' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 16px 10px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z' fill='%23d99a3e'/%3E%3C/svg%3E");
  /* Paper: a fine grain that tiles (too fine to show a seam) over one slow warm mottle stretched across the
     screen, never tiled, so no repeat line shows. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .2 .07 0 0 0 -.02'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' preserveAspectRatio='none'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .4 0 0 0 0 .28 .22 0 0 0 -.08'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23m)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; position: relative; z-index: 1; }

h1, h2, h3, legend { font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; color: var(--ink); }
h1 { font: 400 clamp(2.8rem, 12.5vw, 4.2rem)/1.05 var(--script); margin: 0 0 .25em; letter-spacing: 0; }
h2 { font-size: 1.6rem; margin: 0 0 .45em; letter-spacing: .005em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }

a { color: var(--red-text); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

a[href], button:not(:disabled), summary, select:not(:disabled), label[for], label.check, label.choice,
input[type="checkbox"]:not(:disabled), input[type="radio"]:not(:disabled), input[type="file"]:not(:disabled) { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--on-btn); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- the paper (fixed behind everything) */

.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--grain), var(--mottle) center / 100% 100% no-repeat, var(--paper);
  view-transition-name: paper;
}

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

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1100px; }
@media (min-width: 900px) { .wrap { max-width: 720px; } .wrap.wide { max-width: 1100px; } }

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 4px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.mark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.mark-year { font: 400 2.1rem/1 var(--script); padding-top: 4px; }
.mark-star { width: 18px; height: 18px; background: var(--star) center / contain no-repeat; }
.phase-chip {
  margin: 0;
  font: 700 1rem var(--serif);
  letter-spacing: .02em;
  color: var(--ink);
  background: url("/static/wash/ring-ink.svg") center / 100% 100% no-repeat;
  padding: 4px 16px 5px;
}

/* Tab bar: bottom of the screen on phones, inside the header on wide screens. */
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255, 246, 237, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0 4px env(safe-area-inset-bottom);
  view-transition-name: tabs;
}
.tabs::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 6px; background: url("/static/wash/stroke-ink.svg") center / 100% 100% no-repeat; opacity: .55; }
.tabs ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-around; max-width: 560px; }
.tabs li { flex: 1; }
.tabs a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 6px 2px 4px;
  color: var(--ink-2);
  text-decoration: none;
  font: 600 .76rem var(--sans);
  letter-spacing: .01em;
  transition: color .15s;
}
.tab-icon { width: 26px; height: 26px; fill: currentColor; --cut: #fff6ed; transition: transform .2s var(--ease-back); }
.tabs a:hover { color: var(--ink); }
.tabs a:active .tab-icon { transform: scale(.88); }
.tabs a[aria-current="page"] { color: var(--red-text); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 3px; left: 50%; width: 40px; height: 8px; margin-left: -20px; background: url("/static/wash/dab-red.svg") center / 100% 100% no-repeat; }
body.has-tabs main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .top { flex-wrap: wrap; }
  .tabs { position: static; order: 3; width: 100%; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .tabs ul { max-width: none; justify-content: flex-start; gap: 4px; }
  .tabs li { flex: none; }
  .tabs a { flex-direction: row; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 1rem; border-radius: 12px; }
  .tabs::before { display: none; }
  .tabs a[aria-current="page"] { background: url("/static/wash/box-red.svg") center / 100% 100% no-repeat; }
  .tabs a[aria-current="page"]::before { display: none; }
  .tab-icon { width: 22px; height: 22px; }
  body.has-tabs main { padding-bottom: 40px; }
  body.has-tabs .foot { padding-bottom: 40px; }
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--ink-2);
  font-size: .9rem;
}
.foot p { margin: 0; }

.flash {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: url("/static/wash/box-gold.svg") center / 100% 100% no-repeat;
  color: var(--ink);
  font-weight: 600;
  animation: pop-in .45s var(--ease-back) both;
}

/* ---------- blocks */

.hero { padding: 18px 0 6px; position: relative; }
.lede { font: italic 500 1.32rem/1.35 var(--serif); letter-spacing: .015em; color: var(--ink); }
.hero p:not(.lede) { color: var(--ink-2); }
.hero p strong { color: var(--ink); }

/* The sign-in pages open like the poster: the title, the line under it, the painted doorway. */
.hero-poster { text-align: center; padding-top: 14px; }
.hero-poster h1 { font-size: clamp(3rem, 14vw, 4.6rem); max-width: 9.5em; margin-left: auto; margin-right: auto; }
.hero-poster .lede { max-width: 22em; margin-left: auto; margin-right: auto; }
.shooting-star { position: absolute; right: -6px; top: 0; width: 104px; height: auto; pointer-events: none; }
.door { display: block; width: min(68%, 270px); height: auto; margin: 2px auto -10px; }
@media (min-width: 900px) { .shooting-star { width: 140px; right: -40px; } }

.card {
  position: relative;
  border: 0 solid transparent;
  border-image: url("/static/wash/card.svg") 40 fill / 26px stretch;
  color: var(--ink);
  padding: 24px 20px;
  margin: 16px -2px 22px;
}
.card .hint, .card .muted { color: var(--ink-2); }
.card-glow, .phase-card { border-image-source: url("/static/wash/card-gold.svg"); }

/* A section straight on the paper, under a gold star on a hairline, like the break in a printed invitation. */
.panel { position: relative; margin: 30px 0 16px; padding: 22px 2px 4px; background: url("/static/wash/stroke-gold.svg") top center / 100% 7px no-repeat; }
.panel::before { content: ""; position: absolute; left: 50%; top: -5px; width: 40px; height: 17px; margin-left: -20px; background: var(--star) center / 15px no-repeat, var(--paper); }
.split > .panel { margin-top: 30px; }

.split { display: grid; gap: 0 28px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.stack { margin-top: 30px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-top: 30px; }

.muted { color: var(--ink-2); }
.hint { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
.empty { color: var(--ink-2); font-style: italic; }
.error { background: url("/static/wash/box-red-ring.svg") center / 100% 100% no-repeat; color: #8a1d22; padding: 12px 16px; font-weight: 600; }

/* Gift tag: mission codes look like the tag tied to the package. */
.code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 .88rem var(--mono);
  letter-spacing: .05em;
  color: var(--ink);
  background: url("/static/wash/box-kraft.svg") center / 100% 100% no-repeat;
  padding: 4px 12px 4px 10px;
  white-space: nowrap;
}
.code::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px #b8893a; }
.code-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }

.state { font: 700 1rem var(--serif); }
.state-ok { color: var(--green-text); }
.state-ok::before { content: "✓ "; }

/* ---------- buttons: the navy of the painted door, with a game's chunky press */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: url("/static/wash/button.svg") center / 100% 100% no-repeat;
  color: var(--on-btn);
  font: 700 1.2rem/1.1 var(--serif);
  letter-spacing: .02em;
  text-decoration: none;
  filter: drop-shadow(0 3px 2px rgba(12, 23, 63, .28));
  transition: transform .12s var(--ease-out), filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.22) drop-shadow(0 4px 3px rgba(12, 23, 63, .3)); text-decoration: none; }
.btn:active { transform: translateY(2px); filter: drop-shadow(0 1px 1px rgba(12, 23, 63, .3)); }
.btn:disabled { background: url("/static/wash/button-off.svg") center / 100% 100% no-repeat; color: #5d6180; filter: none; transform: none; }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 1.32rem; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-quiet { background: url("/static/wash/ring.svg") center / 100% 100% no-repeat; color: var(--ink); filter: none; }
.btn-quiet:hover { background: url("/static/wash/ring-ink.svg") center / 100% 100% no-repeat, url("/static/wash/tint-gold.svg") center / 100% 100% no-repeat; filter: none; }
.btn-quiet:active { transform: translateY(2px); filter: none; }

.link-button {
  background: none; border: 0; padding: 0 4px; min-height: 44px;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em;
}
.link-button:hover { text-decoration-thickness: 2px; }
.link-button.danger { color: var(--red-text); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 12px 0; }

/* ---------- forms */

.form label:not(.check):not(.choice) { display: block; font: 700 1.15rem var(--serif); margin: 16px 0 6px; }
.form h2 + label { margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  background: url("/static/wash/field.svg") center / 100% 100% no-repeat;
  border: 2px solid transparent;
  border-radius: var(--r-ctl);
  transition: box-shadow .15s;
}
textarea { resize: vertical; min-height: 92px; }
select:hover, select:focus { background: var(--arrow), url("/static/wash/field-on.svg") center / 100% 100% no-repeat; }
input:hover, textarea:hover, input:focus, textarea:focus { background: url("/static/wash/field-on.svg") center / 100% 100% no-repeat; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(224, 166, 80, .4); outline: none; }
input:disabled, textarea:disabled, select:disabled { background: url("/static/wash/box-paper.svg") center / 100% 100% no-repeat; color: var(--ink-2); }
input::placeholder, textarea::placeholder { color: #6b6f86; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 48px; font-weight: 500; cursor: pointer;
  background: var(--arrow), url("/static/wash/field.svg") center / 100% 100% no-repeat;
}

/* Photo fields: the file input covers the whole card, invisible, so a tap anywhere opens the camera or gallery. */
.picker {
  position: relative; display: flex; align-items: center;
  min-height: 76px; padding: 10px 16px 10px 10px;
  background: url("/static/wash/field-dashed.svg") center / 100% 100% no-repeat; color: var(--ink);
  transition: border-color .15s, background-color .15s, transform .18s var(--ease-back);
}
.picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker:hover { filter: brightness(.98); }
.picker:active { transform: scale(.98); }
.picker:focus-within { box-shadow: 0 0 0 4px rgba(224, 166, 80, .4); border-radius: 16px; }
.picker-face { display: flex; align-items: center; gap: 14px; min-width: 0; }
.picker-icon {
  position: relative; display: grid; place-items: center; flex: none; overflow: hidden;
  width: 54px; height: 54px; border-radius: 50%;
  background: url("/static/wash/disc-gold.svg") center / 100% 100% no-repeat;
}
.picker-icon .icon { width: 28px; height: 28px; fill: var(--ink); --cut: #f3d9a0; }
.picker-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.picker-text { display: grid; gap: 2px; min-width: 0; }
.picker-text strong { font: 700 1.15rem var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-text small { color: var(--ink-2); font-size: .92rem; }
.picker.has-file { background: url("/static/wash/field-green.svg") center / 100% 100% no-repeat; }
.picker.has-file .picker-icon { animation: pop-in .4s var(--ease-back) both; }
.picker:has(input:disabled) { opacity: .6; }
.picker:has(input:disabled) input { cursor: not-allowed; }

.group { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.group legend { font-size: 1.4rem; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 4px; min-height: 44px; padding-top: 10px; font-weight: 500; }

.choices { display: grid; gap: 10px; margin-top: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px; margin: 8px 0;
  background: url("/static/wash/field.svg") center / 100% 100% no-repeat;
  font-weight: 500;
  transition: transform .15s var(--ease-back), border-color .15s, background-color .15s;
}
.choices .choice { margin: 0; }
.choice:hover { background: url("/static/wash/field-on.svg") center / 100% 100% no-repeat; }
.choice:active { transform: scale(.98); }
.choice:has(input:checked) { background: url("/static/wash/choice-on.svg") center / 100% 100% no-repeat; transform: scale(1.01); }
.choice:has(input:disabled) { cursor: not-allowed; }

/* Checkboxes and radio buttons drawn to match: rounded edges, a berry-red fill that pops in. */
.check input[type="checkbox"], .choice input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  display: grid; place-content: center; flex: none;
  width: 28px; height: 28px; min-height: 0; margin: 0; padding: 0;
  background: #fff; border: 2px solid var(--field);
  transition: background-color .15s, border-color .15s, transform .2s var(--ease-back);
}
.check input[type="checkbox"] { border-radius: 8px; margin-top: -2px; }
.check input[type="checkbox"]::before {
  content: ""; width: 8px; height: 14px; margin-top: -3px;
  border: solid #fff; border-width: 0 3.5px 3.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .22s var(--ease-back);
}
.check input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.check input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="radio"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red);
  transform: scale(0); transition: transform .22s var(--ease-back);
}
.choice input[type="radio"]:checked { border-color: var(--red); }
.choice input[type="radio"]:checked::before { transform: scale(1); }
.check:active input, .choice:active input { transform: scale(.88); }

/* Guessing the Santa: tap a face. */
.guess-form { width: 100%; }
.guess-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  min-width: 0; margin: 14px 0 16px; padding: 0; border: 0;
}
@media (min-width: 520px) { .guess-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guess-option {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 12px 6px 10px;
  background: url("/static/wash/field.svg") center / 100% 100% no-repeat;
  font: 700 1.05rem/1.15 var(--serif); color: var(--ink); text-align: center; cursor: pointer;
  transition: transform .18s var(--ease-back), border-color .15s, background-color .15s, box-shadow .15s;
}
.guess-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.guess-option span { max-width: 100%; overflow-wrap: anywhere; }
.guess-option:hover { background: url("/static/wash/field-on.svg") center / 100% 100% no-repeat; }
.guess-option:active { transform: scale(.95); }
.guess-option:has(input:focus-visible) { background: url("/static/wash/field-on.svg") center / 100% 100% no-repeat; box-shadow: 0 0 0 4px rgba(224, 166, 80, .55); border-radius: 16px; }
.guess-option:has(input:checked) { background: url("/static/wash/choice-on.svg") center / 100% 100% no-repeat; transform: scale(1.04); }
.guess-option:has(input:checked) .avatar { box-shadow: 0 0 0 3px var(--red); }
.guess-option:has(input:checked)::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 10px;
  animation: pop-in .3s var(--ease-back) both;
}

.field-row { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 10px 0; }
.inline-form label:not(.check) { margin: 0; width: 100%; font: 700 1.1rem var(--serif); }
.inline-form select { flex: 1 1 200px; width: auto; }
.inline-form .teaser-check { width: 100%; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 240px; font-family: var(--mono); font-size: 14px; }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.avatar-row > div { flex: 1; min-width: 0; }
.avatar-row label { margin-top: 0 !important; }

details.explain { margin: 16px 0 4px; background: url("/static/wash/box-paper.svg") center / 100% 100% no-repeat; padding: 2px 18px; }
details.explain summary { min-height: 48px; display: flex; align-items: center; gap: 8px; font: 700 1.1rem var(--serif); }
details.explain[open] { padding-bottom: 8px; }

.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.starters .hint { width: 100%; margin: 0; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; background: url("/static/wash/ring.svg") center / 100% 100% no-repeat; color: var(--ink);
  font: 500 .95rem var(--sans);
  transition: transform .15s var(--ease-back), background-color .15s;
}
.chip:hover { background: url("/static/wash/ring-ink.svg") center / 100% 100% no-repeat, url("/static/wash/tint-gold.svg") center / 100% 100% no-repeat; }
.chip:active { transform: scale(.94); }

.teaser-check { padding: 14px 16px; margin-top: 14px; background: url("/static/wash/box-red-ring.svg") center / 100% 100% no-repeat; }
.teaser-check p { margin-bottom: 4px; }
.preview { display: block; max-width: 100%; height: auto; max-height: 300px; width: auto; margin-top: 12px; border-radius: 4px; border: 8px solid #fff; box-shadow: 0 3px 10px rgba(110, 60, 20, .2); animation: pop-in .4s var(--ease-back) both; }

/* ---------- the light string: one bulb per mission step, painted on the paper */

.light-string { display: block; width: 100%; height: auto; overflow: visible; }
.light-string .wire { fill: none; stroke: #3b4673; stroke-width: 1.8; stroke-linecap: round; }
.bulb-cap { fill: #a88a5c; }
.bulb-glass { fill: #f4e4d4; stroke: #9b8d7c; stroke-width: 1.5; }
.bulb-shine { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.bulb-glow { opacity: 0; }
.is-lit .bulb-glow { opacity: 1; }
.is-lit .bulb-glass { stroke: none; }
.is-lit .bulb-shine { opacity: 1; }
.bulb-red.is-lit .bulb-glass { fill: #c9423f; }
.bulb-gold.is-lit .bulb-glass { fill: #e3a24a; }
.bulb-green.is-lit .bulb-glass { fill: #5e8a47; }
.bulb-blue.is-lit .bulb-glass { fill: #34539a; }
.bulb .bulb-glass, .bulb .bulb-glow { transform-box: fill-box; transform-origin: 50% 0; }
/* the bonus star (preparation photos): the poster's four-point gold star, outlined in gold while still off */
.bonus-star .bulb-glass, .mini-star .bulb-glass { stroke-linejoin: round; stroke-width: 1.5; transform-origin: 50% 50%; }
.bonus-star:not(.is-lit) .bulb-glass, .mini-star:not(.is-lit) .bulb-glass { fill: #f8ead9; stroke: #b0894a; }
.bonus-star.is-lit .bulb-glass, .mini-star.is-lit .bulb-glass { fill: var(--gold); stroke: var(--gold-deep); }
/* switching on: JS adds .just-lit with a --delay to bulbs that came on since the last visit */
.just-lit .bulb-glow { animation: glow-on .6s var(--delay, 0s) ease-out both; }
.just-lit .bulb-glass { animation: glass-on .6s var(--delay, 0s) var(--ease-back) both; }
.lights-on .is-lit .bulb-glow { animation: glow-on .5s calc(.35s + var(--i) * .16s) ease-out both; }
.lights-on .is-lit .bulb-glass { animation: glass-on .5s calc(.35s + var(--i) * .16s) var(--ease-back) both; }
@keyframes glow-on { 0% { opacity: 0; } 40% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes glass-on { from { fill: #f4e4d4; transform: scale(.85); } 60% { transform: scale(1.16); } to { transform: scale(1); } }
.lights-count { font: 700 1.15rem var(--serif); margin: 4px 0 0; }

.mini-bulb { width: 22px; height: 30px; flex: none; overflow: visible; }

.steps { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.steps li.done { color: var(--ink-2); }
.steps li.done span.step-text { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ---------- avatars and people */

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.avatar-sm { width: 40px; height: 40px; }
.avatar-md { width: 54px; height: 54px; }
.avatar-lg { width: 78px; height: 78px; }
.avatar-xl { width: clamp(90px, 10vw, 156px); height: clamp(90px, 10vw, 156px); }
.avatar-initials { display: inline-grid; place-items: center; color: var(--ink); background: url("/static/wash/disc-gold.svg") center / 100% 100% no-repeat; font: 700 1.15rem var(--serif); }
.avatar-lg.avatar-initials { font-size: 2rem; }
.avatar-xl.avatar-initials { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }

.people { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.people li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.people li { animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }

.futures { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 8px; }
.futures li { counter-increment: f; display: flex; gap: 10px; align-items: baseline; font: 600 1.25rem/1.25 var(--serif); }
.futures li::before { content: counter(f); flex: none; width: 28px; height: 28px; background: url("/static/wash/disc-gold.svg") center / 100% 100% no-repeat; color: var(--ink); display: inline-grid; place-items: center; font: 700 .85rem var(--sans); transform: translateY(2px); }

/* Facts as little tickets: budget and party. */
.facts { display: grid; gap: 10px; margin: 14px 0 0; grid-template-columns: 1fr 1fr; }
.facts div { background: url("/static/wash/box-gold.svg") center / 100% 100% no-repeat; padding: 12px 14px; }
.facts dt { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.facts dd { margin: 2px 0 0; font: 700 1.12rem/1.25 var(--serif); color: var(--ink); }

/* ---------- motion helpers */

.rise { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } }
@keyframes float { 50% { transform: translateY(-6px); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- intro: the sleigh, in navy ink like a Christmas card, drops the card that becomes the login form */

.intro { display: none; }
html.play-intro .intro { display: block; position: fixed; inset: 0; z-index: 50; overflow: hidden; animation: intro-out .6s ease-in 3.9s forwards; }
html.play-intro main, html.play-intro .top, html.play-intro .foot { opacity: 0; }
html.intro-done main > * { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
html.intro-done main .intro { animation: none; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.intro-year {
  position: absolute; left: 0; right: 0; top: 15vh;
  text-align: center; margin: 0;
  font: 400 clamp(5rem, 30vw, 11rem)/1 var(--script);
  color: var(--ink);
  animation: year-in 1s var(--ease-out) .15s both;
}
.intro-caption { position: absolute; left: 0; right: 0; top: calc(15vh + clamp(5.2rem, 31vw, 11.4rem)); text-align: center; font: italic 500 1.4rem var(--serif); letter-spacing: .03em; color: var(--ink-2); animation: rise .6s var(--ease-out) .7s both; margin: 0; }
@keyframes year-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }

.intro-sleigh { position: absolute; left: 0; top: 38vh; width: min(135vw, 640px); animation: fly 3.2s cubic-bezier(.42, .05, .52, .96) .35s both; }
@keyframes fly {
  0% { transform: translate(-105%, 16vh) rotate(-12deg); }
  46% { transform: translate(calc(50vw - 46%), -1vh) rotate(-3deg); }
  56% { transform: translate(calc(50vw - 36%), -3vh) rotate(0deg); }
  100% { transform: translate(112vw, -30vh) rotate(-14deg); }
}
.intro .held-card { animation: let-go .01s linear 1.75s forwards; }
@keyframes let-go { to { opacity: 0; } }
.intro .deer, .act-scene .deer, .screen-sleigh .deer { animation: bob .34s ease-in-out 12 alternate; transform-box: fill-box; }
.intro .deer-back, .act-scene .deer-back, .screen-sleigh .deer-back { animation-delay: .17s; }
@keyframes bob { to { transform: translateY(-5px); } }
.intro .trail circle, .act-scene .trail circle, .screen-sleigh .trail circle { animation: twinkle .4s ease-in-out 10 alternate; }
.trail circle:nth-child(2n) { animation-delay: .2s; }
@keyframes twinkle { to { opacity: .25; } }
.nose-glow { animation: nose .5s ease-in-out 8 alternate; }
@keyframes nose { to { opacity: .45; } }

.intro-card { position: absolute; left: 50%; top: 38vh; width: 160px; animation: drop 1.5s cubic-bezier(.3, .1, .4, 1) 1.75s both, open-up .55s ease-in 3.35s forwards; }
@keyframes drop {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.3) rotate(-25deg); }
  10% { opacity: 1; }
  62% { transform: translate(-50%, 27vh) scale(1) rotate(10deg); }
  80% { transform: translate(-50%, 24vh) scale(1) rotate(-5deg); }
  100% { opacity: 1; transform: translate(-50%, 26vh) scale(1) rotate(0deg); }
}
@keyframes open-up { to { opacity: 0; transform: translate(-50%, 26vh) scale(2.6); } }
.intro-skip {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: url("/static/wash/ring-ink.svg") center / 100% 100% no-repeat; color: var(--ink); border: 0;
  font: 700 1.05rem var(--serif);
}
.intro-skip:hover { background: url("/static/wash/ring-ink.svg") center / 100% 100% no-repeat, url("/static/wash/tint-gold.svg") center / 100% 100% no-repeat; }

/* ---------- Santa Mode switch: fills the screen, everything on one centre line */

.intro-card img, .act-card img { display: block; width: 100%; height: auto; }
.activation {
  text-align: center; position: relative;
  min-height: calc(100dvh - 190px - env(safe-area-inset-bottom)); padding: 0 0 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.act-scene { position: relative; height: 250px; margin: 0 -16px; overflow: hidden; }
.act-scene .light-string { position: absolute; top: 0; left: 50%; width: min(94%, 440px); transform: translateX(-50%); }
.act-sleigh { position: absolute; left: 0; top: 60px; width: min(118vw, 520px); animation: fly-short 2.6s cubic-bezier(.42, .05, .52, .96) .2s both; }
@keyframes fly-short { from { transform: translate(-105%, 50px) rotate(-10deg); } to { transform: translate(110vw, -60px) rotate(-12deg); } }
.act-scene .held-card { animation: let-go .01s linear 1.2s forwards; }
.act-card { position: absolute; left: 50%; top: 64px; width: 150px; animation: drop-short 1.2s cubic-bezier(.3, .1, .4, 1) 1.2s both; }
@keyframes drop-short {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.3) rotate(-25deg); }
  10% { opacity: 1; }
  70% { transform: translate(-50%, 70px) scale(1) rotate(8deg); }
  100% { opacity: 1; transform: translate(-50%, 62px) scale(1) rotate(0); }
}
.activation h1 { font-size: clamp(3rem, 13vw, 4.4rem); animation: pop-in .6s var(--ease-back) 2s both; }
.activation .lede { margin: 0 auto 24px; max-width: 22em; animation: rise .5s var(--ease-out) 2.3s both; }
.activation form { animation: rise .5s var(--ease-out) 2.5s both; }

/* ---------- home */

/* The poster's spaced capitals ("CHRISTMAS GATHERING"), used once per page for the small line over a title. */
.greeting { font: 700 .95rem var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); margin: 0 0 2px; }
.mission-card .light-string { margin: 6px 0 4px; }
.mission-head { display: flex; align-items: center; gap: 14px; }
.seal { width: 78px; height: auto; flex: none; }
.mission-head h2 { margin: 0; font: 400 clamp(2.1rem, 8.6vw, 2.6rem)/1.05 var(--script); }
.mission-head p { margin: 0; }
.alert { background: url("/static/wash/box-red-ring.svg") center / 100% 100% no-repeat; padding: 12px 16px; font-weight: 600; }
.alert-box { border: 0 solid transparent; border-image: url("/static/wash/card-red.svg") 40 fill / 26px stretch; color: var(--ink); padding: 20px 20px; margin: 16px 0; }
.capsule-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 18px; color: var(--ink-2); }
.capsule-choice .check { color: var(--ink); }
.party-door { display: block; width: min(70%, 260px); height: auto; margin: 18px auto -6px; }

/* ---------- mission brief */

.dossier-head { display: flex; align-items: center; gap: 16px; }
.dossier-head h1 { margin: 0; font-size: clamp(2.3rem, 9.6vw, 3.6rem); }
.dossier-head p { margin: 0; }
.dossier-notes { display: grid; gap: 10px; margin: 16px 0 0; }
.dossier-notes div { display: grid; gap: 2px; }
.dossier-notes dt { font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.dossier-notes dd { margin: 0; font: 700 1.2rem/1.3 var(--serif); }
@media (min-width: 680px) { .dossier-notes { grid-template-columns: repeat(3, 1fr); } }
.step-card legend, .step-card h2 { display: flex; align-items: center; gap: 10px; }
.step-card .group:first-child { margin-top: 0; }
.my-photos { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .my-photos { grid-template-columns: 1fr 1fr; } }
.my-photos li { border-top: 1.5px dashed var(--line); padding-top: 16px; }

.tag {
  position: relative; max-width: 300px; margin: 14px 0;
  background: url("/static/wash/box-kraft.svg") center / 100% 100% no-repeat; color: var(--ink);
  padding: 16px 20px 14px 46px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 6px 6px rgba(110, 60, 20, .2));
}
.tag::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 2px #b8893a; }
.tag p { margin: 0; }
.tag-to { font: 400 2rem/1.1 var(--script); }
.tag-code { font-family: var(--mono); letter-spacing: .05em; }
.tag-from { color: var(--ink-2); font-size: .9rem; }
.ready-glow { animation: ready-glow 1.6s ease-out both; }
@keyframes ready-glow { 0% { filter: drop-shadow(0 0 0 rgba(224, 166, 80, .9)); } 40% { filter: drop-shadow(0 0 16px rgba(224, 166, 80, .8)); } 100% { filter: drop-shadow(0 0 22px rgba(224, 166, 80, 0)); } }

/* ---------- report: a letter from 2036, airmail stripes along the top */

.letter { padding-top: 26px; overflow: hidden; }
.letter::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(135deg, var(--red) 0 12px, var(--paper-2) 12px 20px, var(--btn) 20px 32px, var(--paper-2) 32px 40px);
}
.postmark {
  position: absolute; right: 16px; top: 22px;
  width: 64px; height: 74px;
  background: var(--paper-3);
  border: 2.5px dotted var(--ink-2);
  border-radius: 6px;
  display: grid; place-items: center; text-align: center;
  font: 700 1.15rem/1.05 var(--serif); color: var(--red-text);
  transform: rotate(6deg);
}
.postmark small { display: block; font: 600 .62rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.letter h1 { padding-right: 76px; font-size: clamp(2.6rem, 11vw, 3.4rem); }
.report-block { border-top: 1.5px dashed var(--line); padding-top: 16px; margin-top: 16px; position: relative; }
.report-block h2 { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.big-line { font: 600 clamp(1.5rem, 6vw, 1.9rem)/1.25 var(--serif); color: var(--ink); }
.hotspot-icon { width: 22px; height: 22px; }
.secret { display: grid; justify-items: center; text-align: center; }
.secret-gift { width: 150px; height: auto; animation: float 2.4s ease-in-out 3 both; }
.santa-line { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; position: relative; }
.santa-name { font: 400 3.4rem/1 var(--script); margin: 0; }
.reveal-block .santa-line .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(224, 166, 80, .6); }
.celebrate .reveal-block .santa-line { animation: pop-in .7s var(--ease-back) .3s both; }
.message {
  margin: 14px 0 0; padding: 16px 18px;
  font: italic 500 1.35rem/1.45 var(--serif);
  white-space: pre-line;
  background: url("/static/wash/box-paper.svg") center / 100% 100% no-repeat;
  position: relative;
}
.message::before { content: "\201C"; position: absolute; left: 10px; top: -20px; font: 700 3.6rem/1 var(--serif); color: var(--red); }

/* Sparkle burst when a Santa is revealed. */
.sparkles { position: absolute; left: 39px; top: 50%; width: 0; height: 0; pointer-events: none; }
.sparkles i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--c, var(--gold)); opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.celebrate .sparkles i { animation: burst .9s var(--ease-out) calc(.35s + var(--d, 0s)) both; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-86px) scale(1.1); }
}

/* ---------- photos: pinned like polaroids */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; margin-top: 14px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.gallery-small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo { margin: 0; background: #fff; padding: 8px 8px 10px; border-radius: 3px; box-shadow: 0 4px 12px -4px rgba(110, 60, 20, .35); color: var(--ink); transform: rotate(-1.4deg); transition: transform .2s var(--ease-back); }
.gallery > :nth-child(2n) .photo, .gallery > .photo:nth-child(2n) { transform: rotate(1.6deg); }
.photo:hover { transform: rotate(0) scale(1.02); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; background: var(--paper-3); }
.photo-link { display: block; }
.photo figcaption { font-size: .88rem; margin-top: 8px; display: grid; gap: 2px; }
.photo-caption { font-weight: 500; }
.photo-by { color: var(--ink-2); font: italic 600 .98rem var(--serif); }
.gallery-item.is-hidden .photo { opacity: .45; }
.gallery-item form { margin-top: 10px; }

/* ---------- album */

.story-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.story-head h3 { margin: 0; font: 400 2.2rem/1 var(--script); }
.story-head .code { margin-left: auto; }
.story-future { margin: 0; color: var(--ink-2); font: italic 500 1.1rem var(--serif); }
.story-from { font: 700 1.15rem var(--serif); margin-top: 12px; }
.thanks { margin-top: 12px; background: url("/static/wash/box-green.svg") center / 100% 100% no-repeat; padding: 12px 14px; }
.capsule { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
@media (min-width: 680px) { .capsule { grid-template-columns: 1fr 1fr; } }
.capsule > li { margin: 0; }
.capsule-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 400 1.9rem/1 var(--script); }

/* ---------- organizer */


.table-wrap { position: relative; overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1.5px dashed var(--line); vertical-align: middle; }
thead th { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
tbody th { font: 700 1.1rem var(--serif); white-space: nowrap; }
tr.dim { color: var(--ink-2); }
.yes { color: var(--green-text); font-weight: 600; }
.no { color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0 10px; }
.actions form { margin: 0; }
.tag-small { font: 600 .72rem var(--sans); color: var(--red-text); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.tracker-lights { display: flex; gap: 2px; }
.tracker-lights .mini-bulb { width: 18px; height: 24px; }

.queue { list-style: none; padding: 0; margin: 10px 0 0; }
.queue li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); min-height: 64px; }
.queue form { margin-left: auto; }
.queue-name { font: 700 1.2rem var(--serif); min-width: 7em; }
.queue-state { color: var(--ink-2); font-size: .9rem; }
.queue li.is-done .queue-name { color: var(--ink-2); }
.queue li.is-on { background: url("/static/wash/box-gold.svg") center / 100% 100% no-repeat; margin: 0 -10px; padding: 12px 10px; }

/* ---------- big screen (projector or TV, read from across a room, one 16:9 screen, no scrolling) */

.screen-main { padding: 9vh 5vw 3vh; max-width: 1800px; margin: 0 auto; width: 100%; }
.screen-garland { position: fixed; top: 0; left: 0; right: 0; z-index: 2; }
.screen-garland .light-string { width: 100%; }
.screen-grid { display: grid; gap: 5vh 5vw; position: relative; z-index: 1; }
@media (min-width: 1100px) {
  .screen-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.screen-card { border: 0 solid transparent; border-image: url("/static/wash/card.svg") 40 fill / 40px stretch; color: var(--ink); padding: 4vh 3vw; }
.screen-meta { font: italic 500 clamp(1.1rem, 1.5vw, 1.6rem) var(--serif); color: var(--ink-2); margin-bottom: 2vh; }
.screen-who { display: flex; align-items: center; gap: 1.6vw; margin: 0 0 2.4vh; position: relative; }
.screen-who h1, .screen-santa { font: 400 clamp(3.2rem, 6.4vw, 7.2rem)/1 var(--script); margin: 0; color: var(--ink); }
.screen-label { font: 600 clamp(.9rem, 1.1vw, 1.2rem) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 2.6vh 0 .6vh; display: flex; align-items: center; gap: 8px; }
.screen-label .hotspot-icon { width: 1.6em; height: 1.6em; }
.screen-future { font: 700 clamp(1.8rem, 3vw, 3.4rem)/1.12 var(--serif); margin: 0; }
.screen-hotspot { font: 600 clamp(1.6rem, 2.6vw, 3rem)/1.2 var(--serif); margin: 0; color: var(--red-text); }
.screen-right .screen-label:first-child { margin-top: 0; }
.screen-unknown { width: clamp(90px, 10vw, 156px); height: auto; }
.screen-classified { font: 400 clamp(3rem, 6vw, 6.6rem)/1 var(--script); margin: 0; color: var(--ink-2); }
.screen-waiting { font: italic 500 clamp(1.3rem, 1.9vw, 2.1rem) var(--serif); color: var(--ink-2); }
.screen-guess, .screen-package { font: 600 clamp(1.3rem, 1.9vw, 2.1rem)/1.25 var(--serif); margin: 0 0 1vh; }
.screen-message { font: italic 500 clamp(1.5rem, 2.4vw, 2.7rem)/1.3 var(--serif); margin: 2.4vh 0 0; white-space: pre-line; background: url("/static/wash/box-paper.svg") center / 100% 100% no-repeat; padding: 2.4vh 2vw; }
.screen-message.is-long { font-size: clamp(1.2rem, 1.7vw, 1.9rem); }
.screen .sparkles { left: clamp(45px, 5vw, 78px); }
.screen .sparkles i { width: 20px; height: 20px; left: -10px; top: -10px; }
.celebrate .screen-reveal .screen-who { animation: pop-in .8s var(--ease-back) 1.1s both; }
.celebrate .screen-reveal .screen-guess, .celebrate .screen-reveal .screen-package, .celebrate .screen-reveal .screen-message { animation: rise .6s var(--ease-out) 1.6s both; }
.celebrate .screen .sparkles i, .celebrate.screen .sparkles i { animation-delay: calc(1.2s + var(--d, 0s)); }
.screen-sleigh { position: fixed; left: 0; top: 12vh; width: min(46vw, 640px); z-index: 3; display: none; }
.celebrate .screen-sleigh { display: block; animation: fly-screen 2.8s cubic-bezier(.42, .05, .52, .96) both; }
@keyframes fly-screen { from { transform: translate(-105%, 30vh) rotate(-10deg); } to { transform: translate(112vw, -10vh) rotate(-12deg); } }
.screen-idle { min-height: 78vh; display: grid; align-content: center; gap: 2vh 4vw; position: relative; z-index: 1; }
.screen-idle h1 { font-size: clamp(4rem, 8.5vw, 9rem); max-width: 9em; margin: 0; }
.screen-sub { font: italic 500 clamp(1.5rem, 2.6vw, 2.9rem) var(--serif); color: var(--ink); margin: 0; }
.screen-count { margin: 1vh 0 0; font: 700 clamp(1.3rem, 2vw, 2.2rem) var(--serif); color: var(--red-text); }
.screen-door { width: min(36vw, 62vh); height: auto; }
@media (min-width: 1100px) {
  .screen-idle { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .screen-door { grid-column: 2; grid-row: 1 / span 3; justify-self: center; }
}
.screen-next { margin: 3vh 0 0; font: 700 clamp(1.4rem, 2.2vw, 2.4rem) var(--serif); color: var(--red-text); }
.celebrate .screen-next { animation: rise .6s var(--ease-out) 2.2s both; }

/* The random draw: names spin past on the paper, then stop on one. */
.spin {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-content: center; text-align: center;
  background: var(--grain), var(--mottle) center / 100% 100% no-repeat, var(--paper);
  transition: opacity .6s ease;
}
.spin-done { opacity: 0; }
.spin-label { margin: 0 0 3vh; font: italic 500 clamp(1.8rem, 3.4vw, 3.6rem) var(--serif); color: var(--ink-2); }
.spin-name { margin: 0; min-height: 1.2em; font: 400 clamp(5rem, 13vw, 14rem)/1.1 var(--script); color: var(--ink); }
.spin-name.landed { color: var(--red-text); animation: pop-in .5s var(--ease-back) both; }
.screen-exit { position: relative; z-index: 1; margin-top: 3vh; font-size: .9rem; }
.screen-exit a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .celebrate .screen-sleigh { display: none; }
}

/* ---------- form actions */
.form-actions { margin-top: 22px; }
.save-bar { margin: 0 0 22px; }

/* Guests and their personal links */
.guest-list { list-style: none; padding: 0; margin: 14px 0 0; }
.guest-list li { padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.guest-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 6px; }
.guest-name { font: 700 1.2rem var(--serif); }
.guest-state { font-size: .9rem; color: var(--ink-2); }
.guest-list .copy-row input { font-size: 13px; min-height: 44px; }
.guest-list .actions { margin-top: 4px; align-items: center; }
.actions a.link-button { display: inline-flex; align-items: center; }

/* Organizer lists on a phone */
.tracker-list { list-style: none; padding: 0; margin: 10px 0 0; }
.tracker-list li { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.tracker-name { font: 700 1.15rem var(--serif); min-width: 5.5em; }
.tracker-state { margin-left: auto; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .people-table thead { display: none; }
  .people-table, .people-table tbody, .people-table tr, .people-table th, .people-table td { display: block; }
  .people-table tr { padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
  .people-table th, .people-table td { border: 0; padding: 2px 0; white-space: normal; }
  .people-table tbody th { font: 700 1.2rem var(--serif); }
  .people-table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); font-weight: 500; }
  .people-table td.actions { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 2px; }
}
