@font-face {
  font-family: Newsreader;
  src: url(/fonts/newsreader.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url(/fonts/newsreader-italic.woff2) format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(/fonts/dm-sans.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --serif: Newsreader, 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 22% 10%, #fffbf2 0, transparent 55%),
    radial-gradient(ellipse at 96% 88%, #e7ecde 0, transparent 44%),
    var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button:disabled:hover {
  transform: none;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100% - clamp(40px, 7vw, 128px), 1740px);
  min-height: calc(100svh - 5px);
  margin: auto;
  display: flex;
  flex-direction: column;
}
footer,
.identity,
.caption,
.actions,
.modal-top,
.row,
.options,
.step-head {
  display: flex;
  align-items: center;
}
.mast {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-bottom: 1px solid var(--edge);
  min-height: 88px;
  gap: 1.4rem;
}
.mast .identity { justify-self: start; }
.identity {
  gap: 0.55rem;
  font: 400 clamp(1.5rem, 2.2vw, 2.1rem)/1 var(--serif);
  text-decoration: none;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.identity em {
  color: var(--berry);
}
.star-logo,
.modal-mark {
  font-size: 37px;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
}
.star-logo {
  color: var(--berry);
}
.eyebrow,
.caption,
.step,
.counter-note {
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.09em;
}
.eyebrow,
.step {
  text-transform: uppercase;
}
.countdown { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
.countdown-page {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.45rem;
  padding: .28rem .18rem 0;
  border: 1px solid #c6b697;
  border-top: .42rem solid var(--berry);
  border-radius: 4px;
  background: #fffcf4;
  box-shadow: 0 2px 0 #dfd5c1;
  font: 600 1.25rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  transform: rotate(-4deg);
}
.countdown-page::before, .countdown-page::after {
  content: '';
  position: absolute;
  top: -.59rem;
  left: 18%;
  width: 3px;
  height: .38rem;
  border-radius: 2px;
  background: var(--gold);
}
.countdown-page::after { left: auto; right: 18%; }
.countdown-copy { font: 500 .78rem/1.25 var(--sans); }
.countdown-copy em { display: block; color: var(--berry); font: italic 1.24rem/1.05 var(--serif); }
.outline,
.primary,
.minor,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  padding: 0.6rem 1rem;
}
.outline,
.chip {
  border: 1px solid #a3ab96;
  background: #fffdf68c;
}
.outline:hover,
.chip:hover {
  background: var(--sage);
}
.small {
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.82fr);
  align-items: center;
  gap: clamp(28px, 3vw, 72px);
  padding: clamp(32px, 5.6vh, 80px) 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.14em;
}
.eyebrow b {
  width: 28px;
  height: 3px;
  border-block: 1px solid var(--gilt);
}
h1 {
  font: 400 clamp(40px, 3.65vw, 66px)/1.02 var(--serif);
  letter-spacing: -0.048em;
  text-wrap: balance;
  margin: 1.1rem 0 1.3rem;
}
h1 em {
  font-weight: 400;
  color: var(--berry);
}
.card-steps {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  line-height: 1.4;
}
.card-steps li {
  display: grid;
  grid-template-columns: 2.65rem 1fr;
  align-items: baseline;
  gap: .7rem;
}
.card-steps li > span {
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--berry);
}
.actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.45rem 0;
}
.primary {
  color: #fffaf0;
  background: var(--evergreen);
  box-shadow: 0 3px 9px #28443124;
  border: 1px solid #194434;
  padding: 0.74rem 1.25rem;
}
.primary:hover {
  background: #163f30;
}
.spark {
  color: #f3d68d;
  font-size: 1.15em;
}
.text-button {
  padding: 0.35rem 0;
  color: var(--berry);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #b58b86;
}
.text-button:hover,
footer button:hover,
footer a:hover {
  color: var(--gold);
}
.campaign-goal {
  border-top: 1px solid var(--edge);
  padding-top: 1rem;
  color: var(--evergreen);
}
.campaign-goal h2 {
  font: 400 clamp(1.45rem, 1.8vw, 1.85rem)/1.08 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.campaign-goal p {
  margin: .45rem 0 .75rem;
  color: var(--dim);
  font-size: .88rem;
}
.goal-tally {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  font: 600 .8rem/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
}
.campaign-goal progress {
  flex: 1 1 5rem;
  min-width: 5rem;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--edge);
}
.campaign-goal progress::-webkit-progress-bar { background: var(--edge); }
.campaign-goal progress::-webkit-progress-value { background: var(--berry); }
.campaign-goal progress::-moz-progress-bar { background: var(--berry); }
.observatory {
  min-width: 0;
  position: relative;
  padding: clamp(6px, .75vw, 12px);
  background: var(--card);
  border: 1px solid #d4c6a9;
  border-radius: 5px;
  box-shadow: 0 16px 38px -18px #4c4c354d, 0 2px 5px #55503d12;
}
.observatory::after {
  content: '';
  position: absolute;
  top: clamp(-34px, -2vw, -18px);
  right: -10px;
  width: clamp(84px, 10vw, 145px);
  height: clamp(58px, 7.4vw, 106px);
  background: url('/holly.webp') center / contain no-repeat;
  pointer-events: none;
}

.plate {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  isolation: isolate;
  background: #14202a;
  border-radius: 2px;
  touch-action: pan-y;
}
.plate.zoomed {
  touch-action: none;
  cursor: grab;
}
.plate.dragging {
  cursor: grabbing;
}
.view {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.open-spot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--inverse-zoom, 1));
  color: #fff3cc;
  font: 600 14px/1 var(--sans);
}
.open-spot::before, .open-spot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #ffe5aa;
  border-radius: 50%;
  pointer-events: none;
}
.open-spot::before { z-index: -1; background: #1c342e; }
.open-spot::after { opacity: .35; }
.open-spot:hover::before, .open-spot:focus-visible::before { background: var(--berry); }
.open-spot:focus-visible { outline: 2px solid white; outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .open-spot::after { animation: open-branch-glow 3.8s ease-in-out var(--pulse-delay) infinite; }
  @keyframes open-branch-glow {
    0%, 100% { transform: scale(1); opacity: .25; }
    50% { transform: scale(1.35); opacity: .65; }
  }
}
.view img,
.picker img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}
.view canvas,
.picker canvas,
.corners,
.snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #efd8ab;
  border-style: solid;
  opacity: 0.65;
}
.corners i:nth-child(1) {
  left: 10px;
  top: 10px;
  border-width: 1px 0 0 1px;
}
.corners i:nth-child(2) {
  right: 10px;
  top: 10px;
  border-width: 1px 1px 0 0;
}
.corners i:nth-child(3) {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}
.corners i:nth-child(4) {
  left: 10px;
  bottom: 10px;
  border-width: 0 0 1px 1px;
}
.zoom {
  color: #fff8e6;
  color-scheme: dark;
  display: flex;
  position: absolute;
  right: 19px;
  bottom: 19px;
  align-items: center;
  gap: 1px;
  background: #0b131cda;
  border: 1px solid #89969866;
  border-radius: 5px;
  padding: 2px;
}
.zoom button {
  font: 500 1.1rem var(--mono);
  min-width: 35px;
  height: 35px;
}
.zoom #reset {
  font-size: 0.8rem;
  color: #dfd4be;
}
.zoom button:hover {
  background: #ffffff12;
}
.caption {
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 4px 2px;
  color: var(--dim);
  letter-spacing: .015em;
  font-size: .77rem;
}
.tree-status { display: inline-flex; align-items: center; gap: 8px; }
#spot-hint { margin-left: auto; font: 500 .84rem/1.4 var(--sans); }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9d7739;
}
.status-dot.live {
  background: #3e7957;
}
.snow i {
  position: absolute;
  top: -2%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff8ed;
  opacity: 0;
  animation: fall 14s linear infinite;
}
@keyframes fall {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.22;
  }
  100% {
    transform: translate(19px, 40vh);
    opacity: 0;
  }
}
#flare {
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -22px;
  padding: 0;
  border-radius: 50%;
}
.flare-bulb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fff 12%, var(--bulb-colour) 35%, transparent 75%);
  box-shadow: 0 0 10px 3px var(--bulb-colour);
  animation: light-pulse 1.35s ease-in-out 5;
}
.flare-bulb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--bulb-colour);
  border-radius: 50%;
  box-shadow: 0 1px 4px #14291f;
  animation: light-ring 1.35s ease-out 5;
}
@keyframes light-pulse {
  0%, 100% { transform: scale(.86); opacity: .8; }
  50% { transform: scale(1.28); opacity: 1; }
}
@keyframes light-ring {
  from { transform: scale(.75); opacity: 1; }
  to { transform: scale(1.65); opacity: .15; }
}
.celebration-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.celebration-snow i {
  position: absolute;
  top: -1.6rem;
  color: #fffaf0;
  font-style: normal;
  opacity: 0;
  text-shadow: 0 0 4px #fff8;
  animation: christmas-fall ease-in both;
}
@keyframes christmas-fall {
  10%, 70% { opacity: .95; }
  to { top: 104%; transform: translateX(var(--drift)) rotate(80deg); opacity: 0; }
}
#lit-greeting {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  padding: .32em .85em;
  border: 1px solid #d5b46d;
  border-radius: 1.5em;
  color: #fff8dc;
  background: #682638ed;
  font: italic 400 clamp(18px, 2.5vw, 30px)/1.2 var(--serif);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
#after-card {
  padding: clamp(1rem, 2.3vw, 1.75rem);
  margin-top: .65rem;
  border: 1px solid #c2ad83;
  border-radius: 5px;
  background: var(--ribbon) top / 100% 5px no-repeat, #fbefdf;
  animation: invitation-in .4s ease-out both;
}
#after-card h2 { font-size: clamp(27px, 2.5vw, 38px); margin: 0 0 .45rem; }
#after-card p { color: var(--ink); font-size: .96rem; max-width: 60ch; }
.cheer-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
#share-saved {
  background: #aa2336;
  border-color: #891c2b;
  box-shadow: 0 3px 8px #8a25332e;
}
#share-saved:hover { background: #8b1c2d; }
.cheer-arrow {
  position: relative;
  width: clamp(2.8rem, 6vw, 4.2rem);
  height: 1.65rem;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #79333255);
  animation: cheer-point 1.1s ease-in-out 4 alternate;
}
.cheer-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #a92235 32%, transparent 32%),
    repeating-linear-gradient(115deg, #a92235 0 8px, #fff8e9 8px 12px);
  clip-path: polygon(0 50%, 33% 0, 33% 33%, 100% 33%, 100% 67%, 33% 67%, 33% 100%);
}
.cheer-arrow::after {
  content: '✦';
  position: absolute;
  right: -3px;
  top: -.5rem;
  font: 1rem/1 Georgia, serif;
  color: var(--gold);
}
@keyframes cheer-point { from { transform: translateX(4px); } to { transform: translateX(-7px); } }
@keyframes invitation-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; } }
.written-card {
  border-block: 1px solid var(--edge);
  padding: 1rem .25rem;
  overflow-wrap: anywhere;
}
.written-card .card-salutation { color: var(--berry); font: italic 1.3rem var(--serif); }
.written-card .card-signature { color: var(--evergreen); font-weight: 600; }
.card-answer { margin: 1rem 0 0; color: var(--dim); font-size: .94rem; }
.card-answer strong { display: block; color: var(--ink); }
#plate:focus:not(:focus-visible) { outline: none; }
footer {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--edge);
  color: var(--dim);
  font-size: 0.78rem;
  padding: 0.85rem 0;
}
footer > div {
  display: flex;
  gap: 1rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
footer button, footer a {
  font-size: 0.82rem;
  min-height: 35px;
  padding: 0.2rem;
}
dialog {
  background: var(--card);
  color: var(--ink);
  padding: 1.4rem clamp(18px, 3vw, 32px) 1.65rem;
  width: min(520px, calc(100% - 24px));
  border: 1px solid #c6bfaa;
  border-radius: 12px;
  max-height: min(90svh, 900px);
  overflow: auto;
  box-shadow: 0 20px 80px #17302445;
}
dialog::backdrop {
  background: #152a23a6;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog.wide {
  width: min(690px, calc(100% - 24px));
  max-height: min(95svh, 900px);
}
.modal-top {
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.modal-mark {
  width: 56px;
  height: 34px;
  background: url('/holly.webp') center / contain no-repeat;
}
.close {
  background: #f2efe2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  font: 1.65rem/1 var(--sans);
  color: var(--ink);
}
h2 {
  font: 400 clamp(34px, 4vw, 49px)/1.04 var(--serif);
  letter-spacing: -0.042em;
  margin: 0.3rem 0 0.75rem;
}
h3 {
  font: 400 1.5rem/1.15 var(--serif);
  margin: 1.1rem 0 0.45rem;
}
.step {
  color: var(--berry);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
}
.sub,
.hint,
.subtle,
dialog p {
  color: var(--dim);
}
.hint,
.subtle {
  font-size: 0.86rem;
}
.sub {
  margin-bottom: 1rem;
}
.field {
  display: grid;
  gap: 0.3rem;
  margin: 0.8rem 0;
}
.field > span,
legend {
  font-weight: 550;
}
.field small,
.updates-choice small {
  font-weight: 400;
  color: var(--dim);
}
input:not([type='checkbox']):not([type='radio']),
textarea,
select {
  width: 100%;
  padding: 0.68rem 0.78rem;
  border: 1px solid #929c8d;
  border-radius: 4px;
  background: #fffef9;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 88px;
}
.form-tail,
.step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}
.form-tail {
  margin-top: 1.15rem;
  flex-wrap: wrap;
}
.card-check-notice { padding: .75rem 1rem; margin: .8rem 0; border-left: 3px solid var(--berry); background: var(--card); }
.card-check-notice p { margin: 0 0 .6rem; }
.step-head .counter-note { white-space: nowrap; }
.row,
.options {
  gap: 0.6rem;
  flex-wrap: wrap;
}
.row {
  margin: 0.8rem 0;
}
.hint {
  margin: 0.55rem 0;
}
.age-choice, .updates-choice {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.age-choice legend, .updates-choice legend { padding: 0; }
.updates-options { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.updates-options label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  cursor: pointer;
}
.updates-options input, .card-declaration input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--evergreen);
}
.card-extras-fields {
  margin-bottom: 1.2rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--edge);
}
.card-extras-fields input:not([type]) {
  border: 0;
  border-bottom: 1px solid #bcb399;
  border-radius: 0;
  padding: .35rem .1rem;
  background: transparent;
  font: 1.2rem/1.35 var(--serif);
}
.card-declaration { margin: .55rem 0; }
.card-declaration .hint { margin: 0 0 .4rem; }
.card-declaration label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: baseline;
  gap: .65rem;
  min-height: 44px;
  padding-block: .6rem;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}
.card-declaration input { align-self: start; margin-top: .17em; }
.card-emails { margin: .55rem 0; border-top: 1px solid var(--edge); padding-top: .75rem; }
.card-emails h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.card-emails h3 small { color: var(--dim); font: 400 .8rem var(--sans); }
.card-emails legend { color: var(--dim); font-size: .875rem; font-weight: 400; }
.card-emails .updates-options {
  display: grid;
  grid-template-columns: 1fr 1.35fr .85fr;
  gap: 0;
  margin-top: .45rem;
  border: 1px solid var(--edge);
  border-radius: 5px;
}
.card-emails .updates-options label {
  position: relative;
  justify-content: center;
  padding: .35rem .25rem;
  font-size: .85rem;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.card-emails .updates-options label + label { border-left: 1px solid var(--edge); }
.card-emails .updates-options label:first-child { border-radius: 4px 0 0 4px; }
.card-emails .updates-options label:last-child { border-radius: 0 4px 4px 0; }
.card-emails .updates-options label:has(:checked) { background: var(--evergreen); color: white; }
.card-emails .updates-options label:has(:focus-visible) { outline: 2px solid var(--gold); outline-offset: -3px; }
.card-emails .updates-options input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
@media (forced-colors: active) {
  .card-emails .updates-options label:has(:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
}
.minor {
  background: var(--sage);
  color: var(--evergreen);
  border: 1px solid #abb8a4;
}
.minor:hover {
  background: #dce7d6;
}
.chip {
  font-size: 0.9rem;
}
.chip:has(:checked) {
  border-color: var(--gold);
  background: #f4e7c8;
}
.chip input {
  accent-color: var(--gold);
  margin: 0;
}
.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}
.swatches label {
  justify-content: flex-start;
  cursor: pointer;
  position: relative;
}
.swatches input {
  position: absolute;
  opacity: 0;
}
.swatches label:has(:focus-visible) {
  outline: 2px solid var(--gold);
}
.swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px #9d997f, 0 0 7px var(--c);
}
.gold {
  --c: #ffd496;
}
.red {
  --c: #ff6e70;
}
.blue {
  --c: #8bceff;
}
.white {
  --c: #f1f7ff;
}
.picker {
  width: min(100%, max(270px, calc((95svh - 342px) * 1.5)));
  margin-inline: auto;
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #101c24;
  border: 1px solid #57636a;
  border-radius: 5px;
  cursor: crosshair;
}
.picker + .row { column-gap: 1.3rem; }
.branch-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.branch-spot:focus-visible {
  outline: 2px dashed white;
  outline-offset: -2px;
}
.notice {
  border-left: 2px solid #b59b6b;
  background: #f6ecd5;
  padding: 0.65rem 0.85rem;
  margin: 0.85rem 0;
  font-size: 0.9rem;
}
.notice p {
  margin: 0.12rem 0;
}
.note-button {
  color: var(--gold);
  padding: 0.35rem 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
.wish-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--edge);
  text-align: left;
  border-radius: 6px;
  background: #fcf8ed;
}
.wish-item:hover {
  background: #f4edda;
}
.wish-item span,
.wish-item small {
  display: block;
}
.wish-item span {
  overflow-wrap: anywhere;
}
.wish-item small {
  color: var(--dim);
  margin-top: 5px;
}
.wish-word {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 clamp(26px, 3.5vw, 37px)/1.25 var(--serif);
  color: var(--ink);
  margin: 1rem 0;
}
.dedication {
  overflow-wrap: anywhere;
}
.rule {
  border: none;
  border-top: 1px solid var(--edge);
  margin: 1.2rem 0;
}
.progress-lights {
  display: flex;
  gap: 6px;
  margin: 0.55rem 0;
}
.progress-lights i {
  height: 4px;
  flex: 1;
  background: var(--edge);
  border-radius: 3px;
}
.progress-lights .earned {
  background: var(--gold);
}
details {
  margin: 1rem 0;
  color: var(--dim);
}
summary {
  cursor: pointer;
}
code {
  overflow-wrap: anywhere;
}
.share-symbols { position: absolute; pointer-events: none; }
.share-reward {
  border-left: 2px solid var(--gold);
  padding-left: .85rem;
  line-height: 1.5;
}
.share-reward strong { color: var(--ink); }
.share-tip {
  padding: .7rem .9rem;
  border-radius: 5px;
  background: var(--sage);
  color: var(--ink);
  font-size: .9rem;
}
.share-write {
  color: var(--gold);
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.share-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 1.15rem 0;
}
.share-service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 48px;
  padding: .6rem .35rem;
  border-radius: 5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.share-service svg { flex: none; width: 21px; height: 21px; fill: currentColor; }
.share-service.whatsapp { background: #25d366; color: #072e18; }
.share-service.facebook { background: #0866ff; color: white; }
.share-service.snapchat { background: #fffc00; color: #111; }
.share-service.tiktok { background: #171717; color: white; font-family: inherit; font-size: inherit; }
.share-service:hover { filter: brightness(.94); }
.tiktok-photo:not([hidden]) { display: flex; align-items: center; gap: 1rem; margin-block: 1rem; }
.tiktok-photo img { border-radius: 4px; }
.tiktok-photo p { margin: 0 0 .5rem; }
.tiktok-photo button { margin: 0 .6rem .4rem 0; }
.tiktok-photo a { font-weight: 650; text-underline-offset: 3px; }
.nojs {
  padding: 1rem;
}
.error,
#feedback {
  color: #823345;
  font-size: 0.9rem;
}
#feedback:not(:empty) {
  margin-top: 0.7rem;
  padding: 0.5rem 0;
}
#toast {
  position: fixed;
  z-index: 4;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #244a3c;
  color: #f4e7cd;
  border-radius: 5px;
  box-shadow: 0 4px 30px #0005;
  text-align: center;
}
#toast:not(:empty) {
  padding: 0.7rem 1rem;
}
.hidden-label {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 950px) {
  .hero {
    grid-template-columns: minmax(225px, 0.74fr) minmax(0, 1.5fr);
    gap: 24px;
  }
  .mast {
    min-height: 70px;
  }
  .actions {
    margin: 1.15rem 0;
  }
  .shell {
    width: calc(100% - 44px);
  }
  .hero {
    padding: 2rem 0;
  }
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 36px);
  }
  .mast {
    min-height: 60px;
    column-gap: .65rem;
  }
  .identity {
    font-size: 1.45rem;
    gap: 0.36rem;
  }
  .star-logo {
    font-size: 27px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }
  .intro {
    display: contents;
  }
  .eyebrow {
    order: 0;
    font-size: 0.66rem;
  }
  .hero h1 {
    order: 1;
    font-size: clamp(39px, 8.5vw, 58px);
    margin: -0.5rem 0 -0.6rem;
    line-height: 1.01;
  }
  .card-steps {
    order: 2;
    font-size: .96rem;
  }
  .observatory {
    order: 3;
  }
  #spot-hint { margin-left: 0; }
  .actions {
    order: 4;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin: 0;
  }
  .text-button {
    font-size: 0.9rem;
  }
  .campaign-goal {
    order: 5;
    margin: 0;
  }
  .zoom {
    right: 10px;
    bottom: 10px;
  }
  .zoom button {
    min-width: 29px;
    height: 29px;
  }
  .observatory::after { top: -14px; right: -6px; width: 78px; height: 53px; }
  .caption {
    font-size: .76rem;
    gap: 5px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.15rem 0.8rem;
  }
  .year {
    white-space: nowrap;
  }
  .mast .small {
    min-height: 36px;
    padding: 0.3rem 0.56rem;
    font-size: 0.78rem;
  }
  .zoom {
    gap: 0;
  }
}
@media (max-width: 520px) {
  .mast { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .5rem; }
  .identity { min-width: 0; gap: .25rem; font-size: clamp(1rem, 5vw, 1.45rem); white-space: normal; }
  .star-logo { font-size: 1.35rem; }
  .countdown { gap: .3rem; }
  .countdown-page { min-width: 1.72rem; height: 1.75rem; padding-top: .12rem; font-size: .92rem; }
  .countdown-copy { font-size: .72rem; }
  .countdown-copy em { font-size: 1rem; }
}
@media (max-width: 350px) {
  .mast { column-gap: .35rem; }
  .mast .star-logo { display: none; }
}
@media (max-width: 390px) {
  .shell {
    width: calc(100% - 28px);
  }
  .actions {
    gap: 0.4rem 0.7rem;
  }
  .actions .primary {
    padding: 0.64rem 0.8rem;
  }
  .actions .text-button {
    font-size: 0.83rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .flare-bulb, .flare-bulb::after, #after-card, .cheer-arrow { animation: none; }
  .snow, .celebration-snow {
    display: none;
  }
}
@media (min-width: 951px) and (max-height: 950px) {
  .hero {
    padding-block: clamp(16px, 2.5vh, 26px);
  }
  .observatory {
    max-width: min(100%, calc((100svh - 245px) * 1.5));
    width: 100%;
    justify-self: end;
  }
}
