/* Santa Who? — layout and components. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--floor, #eef4fb);
  overflow-x: hidden;
  transition: background-color .6s ease;
}
button, input, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
a { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
#app { position: relative; min-height: 100vh; min-height: 100dvh; }
.noscript { padding: 24px; font-family: var(--font-display); }

/* ------------------------------------------------------------ scene layer */

.scene-layer {
  position: fixed;
  inset: 0 0 auto 0;
  height: 54vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
@media (min-width: 700px), (min-aspect-ratio: 4/5) {
  .scene-layer { height: 100vh; height: 100lvh; }
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover;
  background-position: center bottom;
}
.scene.in { opacity: 1; }
.scene svg { display: block; width: 100%; height: 100%; }

.snow-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  background-image:
    radial-gradient(circle at 20px 30px, #fff 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 140px 90px, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70px 160px, rgba(255, 255, 255, .8) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 200px 220px, rgba(255, 255, 255, .7) 0 3px, transparent 4px);
  background-size: 180px 180px, 240px 240px, 200px 200px, 300px 300px;
  animation: snowfall 16s linear infinite;
}
.snow-layer.on { opacity: .85; }
@keyframes snowfall {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 40px 180px, -50px 240px, 30px 200px, -20px 300px; }
}

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

.screen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: var(--frame-max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  animation: screen-in .35s ease both;
}
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px var(--gutter);
}
.bar-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
  font-size: 1.2rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.bar-btn:active { transform: scale(.94); }
.bar-spacer { width: 44px; flex: 0 0 auto; }
.bar-left { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.bar-logo {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}
.bar-logo-img { display: block; width: 100%; height: 100%; }
.bar-title {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-title:not(:empty) {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-height: clamp(200px, 33vh, 320px);
  padding: 4px var(--gutter) 0;
}
.host {
  flex: 0 0 auto;
  width: clamp(124px, 36vw, 176px);
  margin-bottom: -6px;
  z-index: 1;
  filter: drop-shadow(0 8px 12px rgba(23, 35, 65, .22));
  animation: host-in .5s cubic-bezier(.2, 1.3, .4, 1) both;
}
.host svg, .host img { display: block; width: 100%; height: auto; }
@keyframes host-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.bubble {
  position: relative;
  align-self: flex-end;
  flex: 1 1 auto;
  max-width: 300px;
  margin: 6px 0 clamp(70px, 20vw, 96px);
  padding: 14px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lift);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 4.3vw, 1.18rem);
  line-height: 1.3;
  animation: bubble-in .45s cubic-bezier(.2, 1.4, .4, 1) .12s both;
}
.bubble p { margin: 0; }
.bubble::after {
  content: '';
  position: absolute;
  left: -11px;
  bottom: 28px;
  border: 11px solid transparent;
  border-left: 0;
  border-right-color: #fff;
}
@keyframes bubble-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.panel {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--paper);
  box-shadow: 0 -6px 30px rgba(23, 35, 65, .18);
}
.screen-compact .panel { margin-top: 8px; }
.panel-reveal { background: transparent; box-shadow: none; padding-top: 4px; }
@media (min-width: 600px) {
  .panel { flex: 0 0 auto; margin-bottom: 32px; border-radius: var(--r-xl); }
}

.progress { height: 8px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--berry), var(--gold)); transition: width .4s ease; }

/* ------------------------------------------------------------ type */

.logo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 3.4rem);
  line-height: 1;
  text-align: center;
  color: var(--berry);
  text-shadow: 0 3px 0 var(--paper-3);
}
.lead { margin: 0; font-size: 1.12rem; line-height: 1.45; text-align: center; }
.small-print { margin: -4px 0 0; font-size: .85rem; font-style: italic; text-align: center; color: var(--ink-soft); }
.h-page { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.h-small { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.eyebrow { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.muted { margin: 0; color: var(--ink-soft); }
.small { font-size: .85rem; }
.center { text-align: center; }
.empty { margin: 0; padding: 18px; text-align: center; color: var(--ink-soft); background: var(--paper-2); border-radius: var(--r-md); }
.name { color: var(--berry-dark); }
.big-emoji { margin: 0; font-size: 4rem; line-height: 1; text-align: center; }
.link { font-weight: 700; font-size: .9rem; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }
.row.wrap { flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, box-shadow .1s ease, background-color .2s;
}
.btn-icon { font-size: 1.15em; line-height: 1; }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 5px 0 var(--berry-dark), 0 10px 20px rgba(163, 32, 58, .25); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--berry-dark); }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--paper-3), inset 0 0 0 2px var(--paper-3); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--paper-3), inset 0 0 0 2px var(--paper-3); }
.btn-ghost { width: auto; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.btn-danger { background: var(--berry-soft); color: var(--berry-dark); }
.btn-lg { min-height: 60px; font-size: 1.2rem; }
.btn-sm { width: auto; min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------ picture choices */

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 122px;
  padding: 14px 10px 12px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 4px 0 var(--paper-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .15s, background-color .15s;
}
.choice:last-child:nth-child(odd) { grid-column: span 2; }
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--paper-3); }
.choice.selected { border-color: var(--pine); background: var(--pine-soft); box-shadow: 0 4px 0 var(--pine); }
.choice.pop { animation: pop .32s ease; }
.choice-icon { font-size: 2.7rem; line-height: 1; }
.choice-icon-svg { width: 52px; height: 52px; }
.choice-icon-svg svg { width: 100%; height: 100%; }
.choice-label { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2; text-align: center; }
.choices-many .choice { min-height: 106px; }
.choices-many .choice-icon { font-size: 2.3rem; }
.choices-compact { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.choices-compact .choice { min-height: 92px; padding: 10px 6px; }
.choices-compact .choice-icon { font-size: 2rem; }
.choices-compact .choice:last-child:nth-child(odd) { grid-column: auto; }
@keyframes pop { 40% { transform: scale(1.07); } 100% { transform: none; } }

/* ------------------------------------------------------------ avatars */

.avatar {
  --tint: var(--berry);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 3px solid var(--tint);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  background: radial-gradient(circle at 50% 30%, #fff 0 35%, color-mix(in srgb, var(--tint) 24%, #fff) 80%);
}
.avatar-inner, .avatar-inner svg { display: block; width: 100%; height: 100%; }
.avatar-sm { width: 40px; height: 40px; border-width: 2px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 136px; height: 136px; border-width: 5px; }
.avatar-with-name { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; max-width: 72px; }
.avatar-name { font-size: .78rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-strip { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.strip-wrap { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--paper-2); }

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

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.field-inline { flex-direction: row; align-items: flex-end; gap: 12px; }
.field-inline > div { flex: 1; }
.hint { margin: -2px 0 2px; font-size: .85rem; color: var(--ink-soft); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 1.05rem;
}
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(47, 143, 216, .2); }
.input-age { width: 92px; text-align: center; }
.input-slug { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .98rem; }
.address-preview { margin: 0; font-size: .8rem; color: var(--ink-soft); word-break: break-all; }
.field-error { margin: 0; min-height: 1px; color: var(--berry-dark); font-weight: 700; }
.field-error:empty { display: none; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 2px solid var(--paper-3); cursor: pointer; font-weight: 700; }
.toggle input { width: 24px; height: 24px; accent-color: var(--pine); flex: 0 0 auto; }
.notice { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--gold-soft); border: 2px solid #f4dc9c; display: flex; flex-direction: column; gap: 8px; }
.notice p { margin: 0; }

.editor-preview {
  --tint: var(--berry);
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border: 5px solid var(--tint);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  background: radial-gradient(circle at 50% 30%, #fff 0 35%, color-mix(in srgb, var(--tint) 24%, #fff) 80%);
}
.editor-preview-art, .editor-preview-art svg { display: block; width: 100%; height: 100%; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 8px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
}
.picker.selected { border-color: var(--pine); background: var(--pine-soft); }
.picker-art { width: 64px; height: 64px; }
.picker-art svg { width: 100%; height: 100%; }
.picker-label { font-size: .78rem; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 46px;
  height: 46px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 2px var(--paper-3);
  cursor: pointer;
}
.swatch.selected { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.08); }

/* ------------------------------------------------------------ lists & tiles */

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 3px 0 var(--paper-3);
  color: var(--ink);
  text-decoration: none;
}
.list-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--paper-3); }
.list-icon { font-size: 1.4rem; }
.list-text { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.list-chevron { font-size: 1.5rem; color: var(--ink-faint); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 4px 0 var(--paper-3);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--paper-3); }
.tile-icon { font-size: 2rem; line-height: 1; }
.tile-label { font-family: var(--font-display); font-weight: 600; }
.tile-sub { font-size: .8rem; color: var(--ink-soft); }
.chip { padding: 6px 14px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 2px 0 var(--paper-3); font-weight: 700; text-decoration: none; color: var(--ink); }

.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.roster-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); background: #fff; box-shadow: 0 3px 0 var(--paper-3); flex-wrap: wrap; }
.roster-text { flex: 1; min-width: 100px; display: flex; flex-direction: column; }
.roster-confirm { flex: 1 1 100%; margin: 0; font-weight: 700; }

.how { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--paper-2); }
.how-icon { font-size: 1.8rem; line-height: 1; }
.how strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.how p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); }

.address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: var(--r-md); border: 2px dashed var(--paper-3); }
.address code { flex: 1 1 100%; font-size: .8rem; word-break: break-all; }

/* ------------------------------------------------------------ audition */

.pass { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pass-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.15; }
.perform-call { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-align: center; }
.intel-tag {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
}

.envelope {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 320px;
  padding: 28px 22px;
  border: none;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fffdf8, #f6dfc3);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  animation: wobble 2.6s ease-in-out infinite;
}
.envelope-seal { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--berry); box-shadow: 0 5px 0 var(--berry-dark); font-size: 2.8rem; }
.envelope-text { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; text-align: center; }
.envelope-cta { padding: 8px 20px; border-radius: var(--r-pill); background: var(--gold); font-family: var(--font-display); font-weight: 600; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-1.6deg); } 16% { transform: rotate(1.6deg); } 24% { transform: rotate(0); } }
.reveal-slot.revealed .santa-card { animation: card-in .75s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes card-in { from { transform: perspective(800px) rotateY(80deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ santa card */

.santa-card {
  --card-tint: var(--paper-2);
  position: relative;
  overflow: hidden;
  padding-bottom: 18px;
  border: 3px solid var(--card-tint);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.santa-card-band {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.santa-card-art { padding-top: 12px; background: radial-gradient(circle at 50% 62%, #fff 0 22%, var(--card-tint) 72%); }
.santa-card-figure { width: min(210px, 56vw); margin: 0 auto; }
.santa-card-figure svg, .santa-card-figure img { display: block; width: 100%; height: auto; }
.santa-card-name { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.santa-card-title { margin: 2px 16px 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 7.4vw, 2.1rem); line-height: 1.05; text-transform: uppercase; color: var(--berry-dark); }
.santa-card-tagline { margin: 0 20px 14px; font-size: 1.06rem; font-style: italic; }
.santa-card-job { margin: 0 12px; font-weight: 700; color: var(--pine-dark); }
.santa-card-facts { display: grid; gap: 8px; margin: 0 14px; text-align: left; }
.fact { padding: 10px 12px; border-radius: var(--r-md); background: var(--paper); }
.fact dt { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.fact dd { margin: 2px 0 0; font-weight: 800; font-size: 1.04rem; }
.stamp {
  position: absolute;
  top: 48px;
  right: 14px;
  padding: 2px 10px;
  border: 4px solid var(--pine);
  border-radius: 8px;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .1em;
  opacity: .85;
  transform: rotate(12deg);
  animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) .7s both;
}
@keyframes stamp { from { transform: rotate(12deg) scale(2.4); opacity: 0; } to { transform: rotate(12deg) scale(1); opacity: .85; } }

/* ------------------------------------------------------------ portrait */

.portrait {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: #8a5a3c;
  box-shadow: inset 0 0 0 4px var(--gold-dark), var(--shadow-lift);
}
.portrait-inner {
  position: relative;
  padding: 22px 6px 10px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 246, 216, .35), transparent 60%),
    linear-gradient(#24345f, #4a5e9a);
}
.portrait-inner::before {
  content: '';
  position: absolute;
  inset: 6px 8px auto;
  height: 12px;
  background: radial-gradient(circle, #ffd04a 0 3px, transparent 4px) 0 0 / 22px 12px, radial-gradient(circle, #ff5a6a 0 3px, transparent 4px) 11px 0 / 22px 12px;
  opacity: .9;
}
.portrait-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 2px; }
.portrait-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 31%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.portrait-crowd .portrait-person { flex-basis: 23.5%; }
.portrait-huge .portrait-person { flex-basis: 19%; }
.portrait-figure { width: 100%; }
.portrait-figure svg, .portrait-figure img { display: block; width: 100%; height: auto; }
.nameplate {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin-top: -6px;
  padding: 3px 6px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
  font-size: .68rem;
  line-height: 1.15;
}
.nameplate strong { font-family: var(--font-display); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portrait-huge .nameplate span { display: none; }
.portrait-plaque {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(#f6d26a, var(--gold-dark));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .86rem;
  text-align: center;
}

/* ------------------------------------------------------------ missions */

.alert-card { padding: 18px; border: 3px dashed var(--berry); border-radius: var(--r-lg); background: #fff; text-align: center; }
.alert-headline {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .14em;
  animation: alert-flash 1.3s ease-in-out infinite;
}
.alert-text { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.45; }
@keyframes alert-flash { 50% { background: var(--berry-dark); transform: scale(1.04); } }

.appointed { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.appointed-role { margin: 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--gold-soft); font-family: var(--font-display); font-weight: 600; text-transform: capitalize; }
.people-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.person-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-md);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.person-pick:active { background: var(--pine-soft); border-color: var(--pine); }

.turn-head { display: flex; align-items: center; gap: 10px; }
.turn-name { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.turn-text { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { padding: 10px 14px 10px 40px; position: relative; border-radius: var(--r-md); background: #fff; font-weight: 700; }
.bullets li::before { content: '🎤'; position: absolute; left: 12px; top: 10px; }
.gauge { display: flex; flex-direction: column; gap: 4px; }
.gauge-label { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.gauge-track { height: 18px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: inherit; background: repeating-linear-gradient(45deg, var(--gold) 0 10px, #f6d26a 10px 20px); transition: width .6s ease; min-width: 18px; }

/* ------------------------------------------------------------ report */

.report {
  position: relative;
  padding: 22px 20px 30px;
  border-radius: 6px;
  background: #fffdf8 repeating-linear-gradient(transparent 0 31px, #e9eef7 31px 32px);
  box-shadow: var(--shadow-lift);
}
.report-kicker { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.report-family { margin: 4px 0 0; font-weight: 800; }
.report-headline { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.05; color: var(--berry); }
.report-lines { margin: 0; padding: 0; list-style: none; }
.report-lines li { position: relative; margin: 10px 0; padding-left: 28px; font-weight: 700; line-height: 1.4; }
.report-lines li::before { content: '✔'; position: absolute; left: 2px; color: var(--pine); }
.report-staff { margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--paper-3); }
.report-staff ul { margin: 4px 0 0; padding-left: 18px; font-size: .92rem; }
.report-label { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.report-sign { margin: 16px 0 0; font-style: italic; color: var(--ink-soft); font-size: .9rem; }
.stamp-report { top: auto; bottom: 22px; right: 14px; border-color: var(--berry); color: var(--berry); font-size: .95rem; transform: rotate(-10deg); animation: none; }

/* ------------------------------------------------------------ intel */

.dossier { display: flex; flex-direction: column; gap: 10px; }
.dossier-group { padding: 12px 14px; border-radius: var(--r-md); background: #fff; box-shadow: 0 3px 0 var(--paper-3); }
.dossier-group h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.dossier-group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dossier-group li { display: flex; gap: 8px; align-items: baseline; }
.dossier-group li.typed { font-style: italic; }
.dossier-icon { flex: 0 0 auto; }
.dossier-head { display: flex; align-items: center; gap: 14px; }
.intel-details { border-radius: var(--r-md); background: var(--paper-2); padding: 8px 12px; }
.intel-details summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 800; min-height: 44px; }
.intel-details[open] summary { margin-bottom: 8px; }

/* ------------------------------------------------------------ share */

.hook { margin: 0; padding: 14px 16px; border-left: 5px solid var(--gold); border-radius: var(--r-md); background: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.share-link { min-height: 90px; font-size: .8rem; word-break: break-all; resize: none; }
.share-result { display: flex; flex-direction: column; gap: 6px; }
.cta-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--paper-2); }

/* ------------------------------------------------------------ overlays */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

.modal {
  width: min(92vw, 440px);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: transparent;
  overflow: visible;
}
.modal::backdrop { background: rgba(23, 35, 65, .6); }
.modal-close {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal .santa-card { max-height: 86vh; overflow-y: auto; }

.confetti { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ------------------------------------------------------------ top-bar actions */

.bar-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.bar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--sky);
  color: #fff;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.bar-action-compact { width: 44px; padding: 0; justify-content: center; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.15rem; }
.bar-action:active { transform: scale(.96); }
@media (max-width: 380px) { .bar-action-label { display: none; } .bar-action { width: 44px; padding: 0; justify-content: center; } }

/* ------------------------------------------------------------ families & HQ */

.family-card, .intel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 4px 0 var(--paper-3);
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.family-card:active, .intel-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--paper-3); }
.family-card .list-chevron { position: absolute; right: 14px; top: 14px; }
.family-card-text { display: flex; flex-direction: column; padding-right: 24px; }
.family-card-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.family-card-avatars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.intel-card { background: linear-gradient(135deg, #fff, var(--frost)); border: 2px solid #cfe3f3; box-shadow: 0 4px 0 #cfe3f3; }
.intel-card-head { display: flex; align-items: center; gap: 12px; }
.intel-card-head > div { flex: 1; display: flex; flex-direction: column; }
.intel-card-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.intel-card-icon { font-size: 2rem; }
.intel-card-people { display: flex; flex-wrap: wrap; gap: 8px; }
.intel-card-person { position: relative; }
.intel-card-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--sky);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.settings-box { border-radius: var(--r-md); background: var(--paper-2); padding: 4px 14px; }
.settings-box summary { min-height: 44px; display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; cursor: pointer; }
.settings-box[open] { padding-bottom: 14px; }
.archive-game { padding-top: 8px; border-top: 2px dashed var(--paper-3); }

/* ------------------------------------------------------------ wish map */

.wish-map { display: flex; flex-direction: column; gap: 14px; }
.wish-map-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.wish-map .choices-compact { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.wish-map .choice { min-height: 96px; }
.wish-map .choice-label { font-size: .88rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  min-height: 40px;
  padding: 6px 12px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-pill);
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.chip-toggle.on { border-color: var(--pine); background: var(--pine-soft); }
.chip-toggle.on::after { content: ' ✓'; color: var(--pine-dark); }
.chips-static { margin-bottom: 6px; }
.chip-static { padding: 3px 10px; border-radius: var(--r-pill); background: var(--paper-2); font-size: .85rem; font-weight: 700; }
.chips-label { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.wish-cat { border-radius: var(--r-md); background: #fff; box-shadow: 0 3px 0 var(--paper-3); padding: 4px 14px; }
.wish-cat summary { min-height: 48px; display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.wish-cat[open] { padding-bottom: 14px; }
.wish-cat[open] > * + * { margin-top: 8px; }

.wish-adder { display: flex; flex-direction: column; gap: 8px; }
.wish-adder .label { font-family: var(--font-display); font-weight: 600; }
.wish-adder-row { display: flex; gap: 8px; align-items: center; }
.wish-adder-row .input { flex: 1; min-width: 0; }
.wish-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wish-chips:empty { display: none; }
.wish-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: var(--r-pill); background: var(--gold-soft); border: 2px solid #f4dc9c; font-weight: 700; }
.wish-chip-x { width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; font-size: 1.2rem; cursor: pointer; }

/* ------------------------------------------------------------ elf intel */

.intel-row { align-items: center; }
.intel-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-icons { display: inline-flex; flex-wrap: wrap; gap: 2px; font-size: 1.05rem; }
.intel-details summary .cat-icons { margin-left: auto; }
.gift-cat { display: flex; flex-direction: column; }
.own-words { background: var(--gold-soft); box-shadow: 0 3px 0 #f4dc9c; }
.badge { margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper-2); font-family: var(--font-body); font-size: .72rem; font-weight: 800; vertical-align: middle; }
.badge-yes { background: var(--pine-soft); color: var(--pine-dark); margin-left: auto; }

/* ------------------------------------------------------------ settings */

select.input { appearance: auto; }
.range { width: 100%; accent-color: var(--berry); min-height: 32px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-head output { font-weight: 800; color: var(--ink-soft); }
.tips { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }

/* ------------------------------------------------------------ modes, solo & invites */

.modes { display: flex; flex-direction: column; gap: 10px; }
.mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 4px 0 var(--paper-3);
  text-align: left;
  cursor: pointer;
}
.mode-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--paper-3); }
.mode-card:first-child { border-color: #f4dc9c; box-shadow: 0 4px 0 #f4dc9c; }
.mode-icon { font-size: 2.2rem; line-height: 1; flex: 0 0 auto; }
.mode-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mode-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.mode-text span { color: var(--ink-soft); font-size: .92rem; }

.invite-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.invite-steps li { padding: 8px 12px 8px 36px; position: relative; border-radius: var(--r-md); background: var(--paper-2); font-weight: 700; }
.invite-steps li::before { content: '✦'; position: absolute; left: 14px; color: var(--gold-dark); }
.invite-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.invite-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: #fff; box-shadow: 0 3px 0 var(--paper-3); }
.invite-row-text { flex: 1; display: flex; flex-direction: column; }
.who-row { gap: 10px; }
.send-back { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--gold-soft); border: 2px solid #f4dc9c; }

/* ------------------------------------------------------------ DreamList & thanks */

.dreamlist-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, #fff, var(--frost)); border: 2px solid #cfe3f3; }
.dreamlist-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.thanks-box { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--paper-2); text-align: center; }
.thanks-box .muted { font-size: .95rem; }
.thanks-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.thanks-box .btn { text-decoration: none; }
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 2px dashed var(--paper-3);
  text-align: center;
}
.footer-share { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-heading { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--sky); color: var(--white); }
.share-btn:active { transform: scale(.94); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.footer-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
@media (max-width: 420px) { .footer-brands { grid-template-columns: 1fr; } }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-brand strong { font-size: .95rem; color: var(--berry-dark); }
.footer-brand:hover strong, .footer-brand:focus-visible strong { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-fine { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.footer-fine p { margin: 0; }
.footer-fine a { color: inherit; font-weight: 700; }
.footer-logo { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; box-shadow: var(--shadow-soft); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .snow-layer { display: none; }
}

/* ---------------------------------------------------------------- audition panel */
.panel-cue { margin: 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--frost); border: 2px solid #cfe3f3; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--sky); align-self: flex-start; }

/* ---------------------------------------------------------------- letters to Santa */
.letter-sheet {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 18px 14px;
  border: 10px solid transparent;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(transparent 0 31px, rgba(58, 110, 168, .12) 31px 32px) padding-box,
    linear-gradient(#fffdf7, #fffdf7) padding-box,
    repeating-linear-gradient(-45deg, var(--berry) 0 10px, #fff 10px 20px) border-box;
  box-shadow: var(--shadow-soft);
}
.letter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.letter-eyebrow { margin: 0; font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.letter-who { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--berry-dark); }
.letter-job { margin: 0; font-weight: 800; font-size: .9rem; color: var(--pine-dark); }
.letter-postmark {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%;
  border: 3px double var(--sky); color: var(--sky);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-family: var(--font-display); font-size: .55rem; font-weight: 600; letter-spacing: .08em; text-align: center;
  transform: rotate(9deg); opacity: .85;
}
.letter-postmark strong { font-size: 1.05rem; letter-spacing: .04em; }
.letter-body { display: flex; flex-direction: column; gap: 10px; font-size: 1.08rem; line-height: 1.55; }
.letter-part { display: flex; flex-direction: column; gap: 2px; }
.letter-prefix { margin: 0; font-weight: 800; }
.letter-text { margin: 0; white-space: pre-wrap; }
.letter-list { margin: 0; padding-left: 22px; }
.letter-list li { margin: 2px 0; }
.letter-blank { min-height: 1.6em; border-bottom: 2px dotted var(--ink-faint); }
.letter-wish { display: flex; align-items: center; gap: 6px; }
.letter-wish .letter-input, .letter-wish-text { flex: 1; min-width: 0; }
.letter-wishes .wish-adder-row { margin-top: 6px; }
.letter-wishes .wish-adder-row .letter-input { flex: 1; min-width: 0; }
.letter-list li.letter-blank { list-style: none; margin-left: -22px; padding-left: 22px; }
.letter-signoff, .letter-name { align-items: flex-end; text-align: right; }
.letter-name .letter-text, .letter-name .letter-input { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--berry-dark); }
.letter-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 2px dashed var(--paper-3); }
.letter-avatar { width: 54px; height: 54px; }
.letter-avatar svg { width: 100%; height: 100%; }
.letter-input {
  width: 100%; border: none; border-bottom: 2px dashed var(--gold); border-radius: 6px;
  background: rgba(253, 240, 207, .55); padding: 6px 8px; resize: none; overflow: hidden;
  font: inherit; line-height: 1.55; color: var(--ink);
}
.letter-input:focus { outline: none; background: var(--gold-soft); border-bottom-color: var(--berry); }
.letter-input::placeholder { color: var(--ink-faint); font-style: italic; }
.letter-signoff .letter-input, .letter-name .letter-input { text-align: right; max-width: 70%; }

/* ---------------------------------------------------------------- office key */
.key-card { width: 100%; }
.key-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(23, 35, 65, .22)); }
.address-new { align-items: center; }
.address-new code { flex: 1 1 100%; }
.email-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, #fff, var(--gold-soft)); border: 2px solid #f4dc9c; }
.email-box .h-small { margin: 0; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.sync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: .85rem; color: var(--ink-soft); }
.sync-line[data-status="closed"] { padding: 12px 14px; border-radius: var(--r-md); background: var(--gold-soft); border: 2px solid #f4dc9c; color: var(--ink); font-weight: 700; }
.sync-line .row { flex-basis: 100%; flex-wrap: wrap; }

/* ---------------------------------------------------------------- printing */
.print-root { display: none; }
@media print {
  @page { margin: 14mm; }
  body.printing { background: #fff !important; }
  body.printing > *:not(.print-root) { display: none !important; }
  body.printing .print-root { display: block; }
  .print-root .letter-sheet { box-shadow: none; break-after: page; page-break-after: always; }
  .print-root .letter-sheet:last-child { break-after: auto; page-break-after: auto; }
  .print-root .letter-body { font-size: 13pt; }
  .print-root .letter-blank { min-height: 2.2em; }
  .print-root .key-card svg { width: 160mm; height: auto; margin: 0 auto; filter: none; }
  .print-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- brands */
.santa-card-brand { display: block; margin: 12px 0 0; padding: 8px 12px; background: var(--paper-2); font-size: .78rem; color: var(--ink-soft); text-decoration: none; }
.santa-card-brand strong { color: var(--berry-dark); }
.letter-craft { margin: 0; font-family: var(--font-script); font-weight: 500; font-size: 1.1rem; color: var(--ink-soft); }
.letter-craft a { color: var(--berry-dark); text-decoration: none; }
.bubble-who { margin: 0 0 2px !important; font-size: .74rem; letter-spacing: .02em; color: var(--ink-soft); }
.bubble-who strong { color: var(--berry-dark); }
