@font-face {
  font-family: "Source Sans 3";
  src: url("/static/vendor/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf6ea;
  --surface: #fffdf5;
  --ink: #26352a;
  --muted: #5b6055;
  --red: #a23736;
  --deep-red: #792c2d;
  --wash: #f2e8d0;
  --line: #d9cfb9;
  --fir: #2b5c42;
  --gold: #edb740;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden], [x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: 0.65; }
h1, h2 { font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.45rem; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { width: min(1390px, calc(100% - 48px)); margin-inline: auto; }
.main { min-width: 0; margin-block: 0 64px; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 3;
  padding: 12px;
  color: var(--surface);
  background: var(--red);
}
.skip-link:focus { top: 8px; }
.brand { font-size: 1.22rem; font-weight: 700; text-decoration: none; }

.light-string {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 38px;
  pointer-events: none;
}
.light-strand { position: relative; }
.light-strand::before {
  content: "";
  position: absolute;
  inset: -15px 0 16px;
  border-bottom: 2px solid var(--fir);
  border-radius: 50%;
}
.light-strand i {
  position: absolute;
  top: 17px;
  width: 8px;
  height: 11px;
  margin-left: -4px;
  background: var(--bulb);
  border-radius: 45% 45% 60% 60%;
  transform-origin: center top;
}
.light-strand:nth-child(2n) i { --stagger: 0.32s; }
.light-strand i::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 1px;
  width: 6px;
  height: 3px;
  background: var(--fir);
}
.light-strand i:nth-child(1) { --bulb: #cd5352; left: 16%; transform: rotate(23deg); }
.light-strand i:nth-child(2) { --bulb: var(--gold); --pause: 0.16s; top: 21px; left: 38%; transform: rotate(7deg); }
.light-strand i:nth-child(3) { --bulb: #578364; --pause: 0.32s; top: 21px; left: 62%; transform: rotate(-7deg); }
.light-strand i:nth-child(4) { --bulb: #d98b94; --pause: 0.48s; left: 84%; transform: rotate(-23deg); }
@keyframes light-up {
  from { opacity: 0.45; }
  65% { opacity: 1; box-shadow: 0 1px 11px var(--bulb); }
  to { opacity: 1; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button.primary { color: var(--surface); background: var(--red); }
.button.primary:hover { background: var(--deep-red); }
.button.outline, .button.subtle { border-color: #ad9e8f; background: transparent; color: var(--ink); }
.button.outline:hover, .button.subtle:hover { background: var(--wash); }
.text-button {
  min-height: 40px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.text-button { display: inline-flex; align-items: center; padding: 0; }
.text-button:hover { color: var(--red); }
.text-button.danger { color: var(--red); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover, .wish-edit[open] > .icon-button { color: var(--fir); background: var(--wash); border-color: #a8b49d; }
.icon-button:active { background: #e7eddc; }

.confirmation-open { overflow: hidden; }
.wish-confirmation { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-top: 4px solid #bb9551; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 22px 70px #152b2540; }
.wish-confirmation::backdrop { background: #182b2470; backdrop-filter: blur(3px); }
.confirmation-content { padding: 30px 28px 26px; }
.confirmation-content h2 { padding-right: 32px; color: var(--fir); font-size: 1.6rem; }
.confirmation-close { position: absolute; top: 6px; right: 6px; border: 0; background: transparent; }
.confirmation-gift { display: flex; align-items: center; gap: 14px; margin-block: 22px 18px; padding-block: 14px; border-block: 1px dashed var(--line); }
.confirmation-gift svg { width: 44px; height: 48px; flex: 0 0 auto; transform: rotate(-6deg); }
.confirmation-gift strong { min-width: 0; overflow-wrap: anywhere; font-size: 1.1rem; line-height: 1.3; }
.confirmation-content p { line-height: 1.5; }
.confirmation-note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.confirmation-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.confirmation-actions .button { border-radius: 7px; }
.confirmation-keep { flex: 1; }
.duplicate-twins { --bauble-size: 74px; display: flex; justify-content: center; gap: 32px; padding-block: 36px 28px; }
.duplicate-twins .bauble-ball:first-child { transform: rotate(-10deg); }
.duplicate-twins .bauble-ball:last-child { transform: rotate(10deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bauble-studio { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 24px; margin-bottom: 32px; border: 1px dashed #b9b99f; border-radius: 16px; background: #f3efdf; scroll-margin-top: 20px; }
.bauble-studio h2 { color: var(--fir); }
.bauble-studio-content > .help { margin-top: 6px; }
.bauble-display { --bauble-size: 164px; position: sticky; top: 24px; align-self: start; display: grid; justify-items: center; padding-top: 42px; padding-bottom: 24px; }
.studio-cord { position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 23px; background: #a88b5a; }
.bauble-display-shadow { position: absolute; bottom: 3px; width: 100px; height: 12px; border-radius: 50%; background: #53684818; }
.bauble-editor { margin-top: 18px; }
.bauble-editor > summary { border-radius: 8px; }
.bauble-editor[open] > summary { background: var(--wash); }
.bauble-form { display: grid; gap: 22px; margin-top: 22px; }
.bauble-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bauble-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bauble-form legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 0.9rem; font-weight: 650; }
.bauble-swatches { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.bauble-swatch { display: grid; place-items: center; width: 38px; height: 40px; padding: 6px; border: 2px solid transparent; border-radius: 50%; background: transparent; }
.bauble-swatch svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 0 #14281e20); }
.bauble-swatch[aria-pressed="true"] { border-color: var(--fir); background: var(--surface); }
.bauble-swatch:hover { background: #fffdf599; }
.custom-color input[type="color"] { width: 38px; height: 38px; min-height: 38px; padding: 3px; border-radius: 8px; cursor: pointer; }
.bauble-shapes, .bauble-patterns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bauble-patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bauble-patterns .bauble-choice-face { height: 100%; }
.bauble-choice { position: relative; cursor: pointer; font-weight: 400; }
.bauble-choice input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bauble-choice-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf58c; font-size: 0.875rem; text-align: center; }
.bauble-choice-face > svg { width: 36px; height: 36px; overflow: visible; }
.bauble-choice-face .bauble-ball { --bauble-size: 34px; margin-top: 3px; }
.bauble-choice input:checked + .bauble-choice-face { border: 2px solid var(--fir); padding: 11px 5px; background: #e6eddf; }
.bauble-choice input:focus-visible + .bauble-choice-face { outline: 2px solid var(--red); outline-offset: 3px; }
.bauble-save-row { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.bauble-save-row .button { border-radius: 8px; }
.bauble-saved { color: var(--fir); margin-top: 10px; font-weight: 650; font-size: 0.95rem; }
@media (max-width: 600px) {
  .bauble-studio { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .bauble-display { --bauble-size: 142px; position: relative; top: auto; }
  .bauble-studio-content { text-align: center; }
  .bauble-form { text-align: left; }
  .bauble-color-fields { grid-template-columns: minmax(0, 1fr); }
  .bauble-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bauble-save-row { justify-content: center; }
}
@keyframes confirmation-appear { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wish-confirmation[open] { animation: confirmation-appear 160ms ease-out; }
}
@media (max-width: 420px) {
  .confirmation-content { padding: 26px 20px 20px; }
  .confirmation-content h2 { font-size: 1.4rem; }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .button { width: 100%; }
}

.field { display: grid; gap: 6px; width: 100%; min-width: 0; }
label { font-weight: 650; font-size: 0.9rem; }
.field label span { font-weight: 400; color: var(--muted); margin-left: 6px; }
input:not([type=hidden]), textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b4a99a;
  border-radius: 3px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.form-stack { display: grid; justify-items: start; gap: 14px; }
.help, .intro, .empty-state { color: var(--muted); line-height: 1.5; }
.help, .empty-state { font-size: 0.9rem; }
.form-error { padding: 10px 12px; border-left: 2px solid var(--red); background: #f3e6de; color: var(--deep-red); }

.auth-layout { max-width: 400px; margin-inline: auto; }
.auth-body { display: grid; gap: 18px; }
.auth-body .form-stack { margin-block-start: 10px; }
.auth-body .button { width: 100%; justify-content: space-between; }
.password-field { display: flex; position: relative; min-width: 0; }
.password-field input { padding-right: 82px; }
.password-field .reveal { position: absolute; right: 9px; align-self: center; }

.paper-bauble {
  --orb: #c84640;
  --stripe: #ffca83;
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: linear-gradient(156deg, var(--orb) 31%, var(--stripe) 31% 42%, var(--orb) 42% 61%, var(--stripe) 61% 69%, var(--orb) 69%);
  transform-origin: center -0.16em;
}
.paper-bauble::before {
  content: "";
  position: absolute;
  top: -0.14em;
  left: 0.33em;
  width: 0.34em;
  height: 0.18em;
  border-radius: 2px 2px 0 0;
  background: #a17839;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--red);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}
.back-link:hover { text-decoration: underline; }
.person-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-block: 10px 30px;
  padding-block-end: 24px;
  border-bottom: 2px solid var(--fir);
}
.person-heading h1 { color: var(--fir); }
.heading-ornaments { display: flex; align-items: start; gap: 10px; padding: 5px 3px 0 0; }
.heading-ornaments .paper-bauble { font-size: 28px; }
.heading-ornaments .paper-bauble:last-child { --orb: #d18996; --stripe: #f7dda0; font-size: 21px; margin-top: 13px; }
.own-list .person-content { max-width: 735px; }
.section-heading h2 { margin-block-end: 12px; }
.section-heading .help { margin-block-start: -6px; }
.wish-section { min-width: 0; }
.compose { margin-block: 16px; }
.compose-fields { padding: 16px 0 0; max-width: 480px; }
.wish-section > .form-error { margin-block: 14px; }
.wish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  scroll-margin-top: 18px;
}
.wish:target { border-bottom-color: var(--red); }
.wish-text { min-width: 0; overflow-wrap: anywhere; }
.wish-text h3 { font-size: clamp(1.05rem, 2vw, 1.18rem); font-weight: 650; line-height: 1.35; }
.preference { width: fit-content; margin-bottom: 8px; padding: 3px 9px; border-radius: 5px; font-size: 0.875rem; font-weight: 650; }
.wish-note { margin-top: 5px; color: var(--muted); line-height: 1.5; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.external-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--red); font-size: 0.88rem; }
.own-list .wish { position: relative; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
.own-list .wish-order { grid-column: 2; grid-row: 1; margin-right: 48px; min-height: 44px; }
.wish-edit { grid-column: 1 / -1; justify-self: stretch; }
.wish-edit > summary { position: absolute; top: 18px; right: 18px; }
.wish-edit[open] { width: 100%; margin-top: 12px; }
.wish-edit-panel { display: grid; gap: 12px; max-width: 480px; border-top: 1px solid var(--line); padding-top: 12px; }
.reservation { display: grid; justify-items: end; align-content: start; gap: 1px; }
.reservation-name { padding-top: 4px; font-size: 0.88rem; overflow-wrap: anywhere; }
.reservation-name > span { color: var(--red); }
.reservation-name strong { font-weight: 700; }
.reservation .text-button { text-align: right; }
.empty-state { padding-block: 14px; }

.narrow { max-width: 695px; margin-inline: auto; }
.page-heading { margin-block: 10px 28px; }
.page-heading p { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.panel, .invite-result { padding-block: 18px; border-block: 1px solid var(--line); }
.invite-result { margin-bottom: 18px; }
.panel h2, .family-members h2, .invite-result h2 { margin-bottom: 14px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.family-members { margin-block-start: 24px; }
.family-members li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.person { min-width: 0; overflow-wrap: anywhere; }
.status { color: var(--muted); font-size: 0.85rem; }
.invite-copy { display: flex; gap: 8px; margin-block: 6px; }
.invite-copy button { flex: 0 0 auto; }
.error-page { max-width: 530px; margin-inline: auto; display: grid; gap: 20px; justify-items: start; }

@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .brand { min-height: 37px; display: flex; align-items: center; }
  .light-string { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .light-strand:nth-child(n+3) { display: none; }
  .wish { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .wish-edit, .reservation { justify-self: start; justify-items: start; }
  .reservation .text-button { text-align: left; }
  .profile-fields { grid-template-columns: 1fr; }
  .invite-copy { flex-wrap: wrap; }
}

.app-layout { margin-block-start: 20px; }
.app-layout.with-sidebar { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 34px; }
.family-sidebar { position: sticky; top: 20px; align-self: start; min-width: 0; max-height: calc(100dvh - 40px); overflow-y: auto; border-right: 1px solid var(--line); padding-right: 17px; }
.family-sidebar nav { display: grid; gap: 8px; }
.family-sidebar nav ul { display: grid; gap: 5px; }
.sidebar-home { min-height: 44px; display: flex; align-items: center; padding: 9px 11px; border-radius: 7px; color: var(--fir); font-weight: 650; text-decoration: none; }
.sidebar-person { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 7px; text-decoration: none; overflow-wrap: anywhere; }
.sidebar-person small { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar-home:hover, .sidebar-person:hover { background: var(--wash); }
.sidebar-person[aria-current] { background: var(--person-light); }
.sidebar-home[aria-current] { background: #e7eddc; }
.sidebar-bauble { width: 14px; height: 17px; flex: 0 0 14px; border-radius: 50%; background: var(--person-color, var(--fir)); position: relative; }
.sidebar-bauble::before { content: ""; position: absolute; width: 6px; height: 3px; left: 4px; top: -2px; background: #ba914a; }

.family-tree-page { text-align: center; }
.tree-page-heading h1 { color: var(--fir); }
.tree-page-heading p { color: var(--muted); margin-top: 9px; }
.family-tree-stage { position: relative; width: min(100%, 520px); height: var(--tree-height, 594px); margin: 24px auto 0; isolation: isolate; }
.family-tree-motion { position: absolute; inset: 0; transform-origin: 50% 91%; }
.family-tree-art { position: absolute; inset: 0; pointer-events: none; }
.family-tree-trunk { position: absolute; bottom: 19px; left: 47%; width: 8%; height: 115px; border-radius: 5px; background: #8c5838; transform: rotate(-3deg); }
.family-tree-star { position: absolute; top: 14px; left: calc(50% - 31px); width: 62px; height: 64px; background: var(--gold); clip-path: polygon(50% 0, 62% 34%, 100% 39%, 72% 62%, 80% 100%, 50% 79%, 17% 100%, 26% 62%, 0 39%, 37% 34%); transform: rotate(9deg); }
.family-tree-artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.tree-art-mobile { display: none; }
.family-tree-eyes { position: absolute; top: 98px; left: calc(50% - 15px); display: flex; gap: 7px; transform: rotate(-6deg); }
.family-tree-eyes i { display: grid; place-items: center; width: 12px; height: 15px; background: #fff6d8; border-radius: 50%; }
.family-tree-eyes i::after { content: ""; width: 6px; height: 7px; background: var(--ink); border-radius: 50%; transform: translateX(2px); }
.family-tree-eyes i:last-child::after { transform: translate(-2px, 1px); }
.tree-member { position: absolute; width: 100px; transform: translateX(-50%); }
.tree-member:is(:hover, :focus-within, .is-opening) { z-index: 3; }
.member-bauble { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 22px; text-decoration: none; transform-origin: 50% 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bauble-charm { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; transform-origin: 50% -6px; pointer-events: none; }
.bauble-sparkles { position: absolute; top: -12px; left: calc(50% - 43px); width: 86px; height: 66px; fill: #ffe8a3; stroke: #a98037; stroke-width: 0.6px; opacity: 0; transform: scale(0.65); }
.bauble-cord { position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 16px; background: #ad8745; }
.bauble-ball {
  --cap-inset: 0em;
  display: block;
  position: relative;
  flex: 0 0 auto;
  font-size: var(--bauble-size, 46px);
  width: 1em;
  height: calc(1.04em - var(--cap-inset));
}
/* Tuck the glass under the cap while keeping its attachment to the cord fixed. */
.bauble-ball[data-shape="drop"] { --cap-inset: 0.17em; }
.bauble-ball[data-shape="diamond"] { --cap-inset: 0.12em; }
.bauble-ball[data-shape="heart"] { --cap-inset: 0.22em; }
.bauble-ball[data-shape="saboteur"] { --cap-inset: 0.035em; }
.bauble-surface { display: block; width: 100%; height: 1.04em; transform: translateY(calc(0em - var(--cap-inset))); overflow: visible; filter: drop-shadow(0 3px 0 #14281e26); }
.bauble-cap { position: absolute; top: -0.13em; left: 0.35em; width: 0.3em; height: 0.18em; }
.bauble-pattern { display: none; }
.bauble-ball[data-pattern="stripes"] .pattern-stripes,
.bauble-ball[data-pattern="dots"] .pattern-dots,
.bauble-ball[data-pattern="stars"] .pattern-stars,
.bauble-ball[data-pattern="snowflakes"] .pattern-snowflakes,
.bauble-ball[data-pattern="zigzag"] .pattern-zigzag,
.bauble-ball[data-pattern="gomu-gomu"] .pattern-gomu-gomu,
.bauble-ball[data-pattern="dark-side"] .pattern-dark-side,
.bauble-ball[data-pattern="fork"] .pattern-fork,
.bauble-ball[data-pattern="cydonia"] .pattern-cydonia,
.bauble-ball[data-pattern="saboteur"] .pattern-saboteur,
.bauble-ball[data-pattern="humility"] .pattern-humility,
.bauble-ball[data-pattern="swiftie"] .pattern-swiftie,
.bauble-ball[data-pattern="reaping"] .pattern-reaping,
.bauble-ball[data-pattern="deserter"] .pattern-deserter,
.bauble-ball[data-pattern="doctor"] .pattern-doctor,
.bauble-ball[data-pattern="law"] .pattern-law { display: block; }
.bauble-tag { position: relative; margin-top: -5px; padding: 4px 7px; max-width: 100px; background: var(--surface); border: 1px solid var(--person-color); border-radius: 5px; box-shadow: 2px 3px 0 #20342426; color: var(--ink); font-size: 0.875rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.bauble-tag small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; margin-top: 2px; }
.bauble-action { display: grid; grid-template-rows: 0fr; color: var(--fir); font-size: 0.75rem; font-weight: 650; opacity: 0; }
.bauble-action > span { min-height: 0; overflow: hidden; }
.member-bauble:focus-visible { outline: 2px solid #ffdfa0; outline-offset: 5px; border-radius: 12px; box-shadow: 0 0 0 4px #264931; }
.member-bauble:is(:focus-visible, .is-opening) { animation-play-state: paused; }
.member-bauble:is(:focus-visible, .is-opening) .bauble-charm { transform: scale(1.1); }
.member-bauble:is(:focus-visible, .is-opening) .bauble-ball { filter: brightness(1.13) drop-shadow(0 0 8px #ffdc8470); }
.member-bauble:is(:focus-visible, .is-opening) .bauble-tag { background: var(--person-light); box-shadow: 3px 5px 0 #20342440; transform: rotate(-2deg); }
.member-bauble:is(:focus-visible, .is-opening) .bauble-action { grid-template-rows: 1fr; opacity: 1; margin-top: 2px; }
.member-bauble:is(:focus-visible, .is-opening) .bauble-sparkles { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .member-bauble:hover { animation-play-state: paused; }
  .member-bauble:hover .bauble-charm { transform: scale(1.1); }
  .member-bauble:hover .bauble-ball { filter: brightness(1.13) drop-shadow(0 0 8px #ffdc8470); }
  .member-bauble:hover .bauble-tag { background: var(--person-light); box-shadow: 3px 5px 0 #20342440; transform: rotate(-2deg); }
  .member-bauble:hover .bauble-action { grid-template-rows: 1fr; opacity: 1; margin-top: 2px; }
  .member-bauble:hover .bauble-sparkles { opacity: 1; transform: scale(1); }
}
.member-bauble:active .bauble-charm { transform: scale(0.94); }
.member-bauble.is-opening .bauble-charm { transform: scale(1.04); }
.member-bauble.is-opening .bauble-tag { background: #fff0bd; }

.wishes { display: grid; gap: 12px; }
.preference-1 { --preference-ink: #36596e; --preference-fill: #e7f0f6; }
.preference-2 { --preference-ink: #76500f; --preference-fill: #fbefca; }
.preference-3 { --preference-ink: #8e324d; --preference-fill: #fae2e8; }
.preference { color: var(--preference-ink); background: var(--preference-fill); }
.wish { border-left: 4px solid var(--preference-ink); }
.wish-order { display: flex; gap: 4px; align-items: start; flex-wrap: wrap; }
.wish.is-reserved { background: #e2efdd; border-color: #b0c69c; border-left-color: #477143; box-shadow: 0 3px 0 #bdd0b2; }
.wish.is-reserved .reservation-name { color: #294f2d; }
.wish.is-reserved .reservation-name > span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 3px; border-radius: 50%; color: white; background: #44733d; font-weight: 700; }
.wish.is-reserved .preference { background: #ffffffb0; }
.reservation { max-width: 170px; }
.reservation-name { font-size: 0.95rem; }
.wish.celebrate { transform-origin: center; }
.snowfall { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.snowflake { display: block; position: absolute; top: -24px; width: calc(var(--flake-size, 5px) * 2 + 5px); height: calc(var(--flake-size, 5px) * 2 + 5px); color: #4e91bf; opacity: 0; }
.decor-paused .snowflake,
.decor-paused .family-tree-motion,
.decor-paused .member-bauble,
.decor-paused .paper-bauble,
.decor-paused .light-strand i { animation-play-state: paused !important; }

@keyframes evergreen-sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}
@keyframes ornament-sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes snowfall {
  from { transform: translate3d(0, -20px, 0); opacity: 0; }
  8% { opacity: 0.72; }
  90% { opacity: 0.72; }
  to { transform: translate3d(var(--flake-drift), calc(100vh + 30px), 0); opacity: 0; }
}
@keyframes reserved-pop {
  0% { transform: scale(0.98); }
  45% { transform: scale(1.025) rotate(-0.4deg); }
  75% { transform: scale(0.996); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .bauble-charm { transition: transform 180ms cubic-bezier(0.2, 1.5, 0.5, 1); }
  .bauble-ball { transition: filter 160ms, box-shadow 160ms; }
  .bauble-tag { transition: transform 180ms, background 160ms, box-shadow 160ms; }
  .bauble-action { transition: grid-template-rows 160ms, opacity 160ms, margin-top 160ms; }
  .bauble-sparkles { transition: transform 240ms cubic-bezier(0.2, 1.5, 0.5, 1), opacity 160ms; }
  .light-strand i { animation: light-up 3.8s ease-in-out infinite alternate; animation-delay: calc(var(--pause, 0s) + var(--stagger, 0s)); }
  .family-tree-motion { animation: evergreen-sway 5.5s ease-in-out infinite; }
  .member-bauble, .heading-ornaments .paper-bauble { animation: ornament-sway 4.7s ease-in-out infinite; }
  .tree-member:nth-child(2n) .member-bauble { animation-delay: -1.8s; }
  .tree-member:nth-child(3n) .member-bauble { animation-delay: -3.2s; }
  .snowflake { animation: snowfall var(--flake-duration) linear infinite; animation-delay: var(--flake-delay); }
  .wish.celebrate { animation: reserved-pop 0.45s ease-out; }
}
@media (max-width: 600px) {
  .tree-page-heading h1 { font-size: 1.8rem; }
  .tree-page-heading p { font-size: 0.9rem; }
  .family-tree-stage { margin-top: 10px; }
  .tree-member { width: 74px; }
  .tree-member .bauble-ball { --bauble-size: 38px; }
  .member-bauble { padding-top: 20px; }
  .bauble-cord { height: 14px; }
  .tree-art-desktop { display: none; }
  .tree-art-mobile { display: block; }
  .bauble-tag { max-width: 74px; font-size: 0.875rem; padding: 3px 5px; }
  .wish-order { grid-column: 1 / -1; }
  .own-list .wish-text { grid-column: 1 / -1; grid-row: 1; }
  .own-list .wish-order { grid-column: 1 / -1; grid-row: 2; align-self: start; justify-self: end; margin-top: 12px; z-index: 1; }
  .own-list .wish-edit { grid-row: 2; justify-self: stretch; width: 100%; margin-top: 12px; }
  .own-list .wish-edit > summary { position: static; display: flex; margin-left: auto; }
  .own-list .wish-edit-panel { margin-top: 12px; }
  .reservation { max-width: none; }
  .person-heading { margin-block-end: 22px; }
}

.snowflake:nth-child(1) { left: 47%; --flake-size: 6px; --flake-duration: 16s; --flake-delay: -13s; --flake-drift: -18px; }
.snowflake:nth-child(2) { left: 94%; --flake-size: 4px; --flake-duration: 12s; --flake-delay: -3s; --flake-drift: -1px; }
.snowflake:nth-child(3) { left: 40%; --flake-size: 7px; --flake-duration: 19s; --flake-delay: -16s; --flake-drift: 16px; }
.snowflake:nth-child(4) { left: 87%; --flake-size: 5px; --flake-duration: 15s; --flake-delay: -6s; --flake-drift: 33px; }
.snowflake:nth-child(5) { left: 33%; --flake-size: 3px; --flake-duration: 11s; --flake-delay: -19s; --flake-drift: -20px; }
.snowflake:nth-child(6) { left: 80%; --flake-size: 6px; --flake-duration: 18s; --flake-delay: -9s; --flake-drift: -3px; }
.snowflake:nth-child(7) { left: 26%; --flake-size: 4px; --flake-duration: 14s; --flake-delay: -22s; --flake-drift: 14px; }
.snowflake:nth-child(8) { left: 73%; --flake-size: 7px; --flake-duration: 10s; --flake-delay: -12s; --flake-drift: 31px; }
.snowflake:nth-child(9) { left: 19%; --flake-size: 5px; --flake-duration: 17s; --flake-delay: -2s; --flake-drift: -22px; }
.snowflake:nth-child(10) { left: 66%; --flake-size: 3px; --flake-duration: 13s; --flake-delay: -15s; --flake-drift: -5px; }
.snowflake:nth-child(11) { left: 12%; --flake-size: 6px; --flake-duration: 9s; --flake-delay: -5s; --flake-drift: 12px; }
.snowflake:nth-child(12) { left: 59%; --flake-size: 4px; --flake-duration: 16s; --flake-delay: -18s; --flake-drift: 29px; }
.snowflake:nth-child(13) { left: 5%; --flake-size: 7px; --flake-duration: 12s; --flake-delay: -8s; --flake-drift: -24px; }
.snowflake:nth-child(14) { left: 52%; --flake-size: 5px; --flake-duration: 19s; --flake-delay: -21s; --flake-drift: -7px; }
.snowflake:nth-child(15) { left: 99%; --flake-size: 3px; --flake-duration: 15s; --flake-delay: -11s; --flake-drift: 10px; }
.snowflake:nth-child(16) { left: 45%; --flake-size: 6px; --flake-duration: 11s; --flake-delay: -1s; --flake-drift: 27px; }
.snowflake:nth-child(17) { left: 92%; --flake-size: 4px; --flake-duration: 18s; --flake-delay: -14s; --flake-drift: -26px; }
.snowflake:nth-child(18) { left: 38%; --flake-size: 7px; --flake-duration: 14s; --flake-delay: -4s; --flake-drift: -9px; }
.snowflake:nth-child(19) { left: 85%; --flake-size: 5px; --flake-duration: 10s; --flake-delay: -17s; --flake-drift: 8px; }
.snowflake:nth-child(20) { left: 31%; --flake-size: 3px; --flake-duration: 17s; --flake-delay: -7s; --flake-drift: 25px; }
.snowflake:nth-child(21) { left: 78%; --flake-size: 6px; --flake-duration: 13s; --flake-delay: -20s; --flake-drift: -28px; }
.snowflake:nth-child(22) { left: 24%; --flake-size: 4px; --flake-duration: 9s; --flake-delay: -10s; --flake-drift: -11px; }
.snowflake:nth-child(23) { left: 71%; --flake-size: 7px; --flake-duration: 16s; --flake-delay: 0s; --flake-drift: 6px; }
.snowflake:nth-child(24) { left: 17%; --flake-size: 5px; --flake-duration: 12s; --flake-delay: -13s; --flake-drift: 23px; }
.snowflake:nth-child(25) { left: 64%; --flake-size: 3px; --flake-duration: 19s; --flake-delay: -3s; --flake-drift: -30px; }
.snowflake:nth-child(26) { left: 10%; --flake-size: 6px; --flake-duration: 15s; --flake-delay: -16s; --flake-drift: -13px; }
.snowflake:nth-child(27) { left: 57%; --flake-size: 4px; --flake-duration: 11s; --flake-delay: -6s; --flake-drift: 4px; }
.snowflake:nth-child(28) { left: 3%; --flake-size: 7px; --flake-duration: 18s; --flake-delay: -19s; --flake-drift: 21px; }
.snowflake:nth-child(29) { left: 50%; --flake-size: 5px; --flake-duration: 14s; --flake-delay: -9s; --flake-drift: -32px; }
.snowflake:nth-child(30) { left: 97%; --flake-size: 3px; --flake-duration: 10s; --flake-delay: -22s; --flake-drift: -15px; }
.snowflake:nth-child(31) { left: 43%; --flake-size: 6px; --flake-duration: 17s; --flake-delay: -12s; --flake-drift: 2px; }
.snowflake:nth-child(32) { left: 90%; --flake-size: 4px; --flake-duration: 13s; --flake-delay: -2s; --flake-drift: 19px; }

.snow-crystal { display: block; position: relative; width: 100%; height: 100%; }
.snow-crystal i {
  position: absolute;
  top: 0;
  left: calc(50% - 0.65px);
  width: 1.3px;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}
.snow-crystal i:nth-child(2) { transform: rotate(60deg); }
.snow-crystal i:nth-child(3) { transform: rotate(120deg); }
.snow-crystal i::before, .snow-crystal i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
}
.snow-crystal i::before { top: 7%; transform: translateX(-50%) rotate(45deg); }
.snow-crystal i::after { bottom: 7%; transform: translateX(-50%) rotate(225deg); }

.christmas-room {
  position: relative;
  display: grid;
  grid-template-columns: minmax(175px, 0.34fr) minmax(0, 1fr);
  align-items: end;
  isolation: isolate;
  margin-top: 24px;
  padding: 12px 18px 28px;
  border: 1px solid #c5ceb2;
  border-radius: 26px 26px 10px 10px;
  background:
    radial-gradient(ellipse at 18% 78%, #ffcf854d, transparent 48%),
    radial-gradient(circle, #fffef744 1px, transparent 1.5px) 0 0 / 15px 15px,
    #e9eddc;
  overflow: clip;
}
.christmas-room::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 105px;
  border-top: 8px solid #b8b798;
  background:
    repeating-linear-gradient(0deg, transparent 0 33px, #b68c6040 33px 35px),
    repeating-linear-gradient(90deg, #d8b68c 0 130px, #b48c64 130px 132px);
}
.room-corner { --hearth-height: 245px; --hearth-bottom: 47px; align-self: stretch; position: relative; z-index: 0; pointer-events: none; }
.christmas-room .family-tree-stage { margin: 0; z-index: 1; }
.christmas-room .family-tree-motion { z-index: 1; }
.night-window {
  position: absolute;
  z-index: 0;
  top: 34px;
  right: 3%;
  width: clamp(105px, 17%, 158px);
  height: 172px;
  pointer-events: none;
  background:
    radial-gradient(circle at 21% 29%, #d9e9ec 1.2px, transparent 1.7px),
    radial-gradient(circle at 72% 15%, #d9e9ec 1px, transparent 1.6px),
    radial-gradient(circle at 85% 54%, #d9e9ec 1px, transparent 1.7px),
    radial-gradient(circle at 31% 72%, #d9e9ec 1.3px, transparent 1.8px),
    linear-gradient(#1f354c, #466a7a);
  border: 7px solid #f9f2db;
  border-radius: 65px 65px 3px 3px;
  box-shadow: 0 0 0 2px #9baf9a, 4px 5px 0 #526a4e17;
  overflow: hidden;
}
.winter-moon { position: absolute; top: 16px; right: 16%; width: 24px; height: 24px; border-radius: 50%; background: #f5dfa0; box-shadow: 0 0 16px #f6d7903b; }
.winter-moon::after { content: ""; position: absolute; width: 20px; height: 20px; top: -3px; left: 7px; border-radius: 50%; background: #2c465d; }
.winter-hill { position: absolute; left: -10%; right: -30%; bottom: -21px; height: 64px; background: #bed1cb; border-radius: 50%; transform: rotate(-9deg); }
.winter-pine { position: absolute; width: 42px; height: 69px; bottom: 3px; left: 12%; background: #a8c4bc; clip-path: polygon(50% 0, 79% 43%, 67% 42%, 100% 90%, 58% 88%, 58% 100%, 43% 100%, 43% 89%, 0 91%, 32% 43%, 19% 44%); }
.winter-pine.second { left: 64%; bottom: 0; width: 27px; height: 44px; background: #d9e3d8; }
.window-frame { position: absolute; inset: 0; background: linear-gradient(to right, transparent calc(50% - 3px), #f9f2db calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)), linear-gradient(to bottom, transparent 54%, #f9f2db 54% 58%, transparent 58%); }
.window-sill { position: absolute; bottom: 0; left: 0; right: 0; height: 8px; background: #fff6db; }

.fireplace-scene { position: absolute; left: 1%; right: 2%; bottom: var(--hearth-bottom); height: var(--hearth-height); }
.fireplace { position: absolute; inset: 70px 3% 12px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #71453740, transparent 17% 80%, #523b2d50), repeating-linear-gradient(0deg, transparent 0 24px, #d8b798 24px 27px), repeating-conic-gradient(#b87858 0 25%, #a76950 0 50%) 0 0 / 84px 54px; box-shadow: 4px 0 0 #78503b, inset 2px 0 #ebc4a066; }
.fireplace::before { content: ""; position: absolute; inset: 22px 16% 0; border-radius: 65px 65px 0 0; background: repeating-conic-gradient(from -90deg at 50% 62px, #d1b193 0deg 13deg, #b89779 13deg 15deg); box-shadow: 0 -2px 0 #ebcfb0; }
.fireplace-mouth { position: absolute; inset: 38px 25% 0; border-radius: 50px 50px 0 0; background: radial-gradient(ellipse at 50% 100%, #6e452c, #282322 80%); box-shadow: inset 5px 4px 7px #110e0ba6; overflow: hidden; }
.fire-glow { position: absolute; inset: 10% -20% -30%; border-radius: 50%; background: radial-gradient(ellipse, #ef9c417d, transparent 70%); }
.fire-flame { position: absolute; bottom: 9px; left: 30%; width: 37%; height: 68%; background: #e87135; border-radius: 5% 78% 46% 70%; transform: rotate(29deg); transform-origin: 50% 95%; }
.fire-flame.middle { left: 51%; bottom: 8px; width: 28%; height: 54%; background: #f5a33f; transform: rotate(-23deg); }
.fire-flame.front { left: 39%; bottom: 8px; width: 29%; height: 40%; background: #ffe39a; transform: rotate(32deg); }
.fire-log { position: absolute; bottom: 6px; left: 10%; width: 77%; height: 11px; border-radius: 8px; background: #775139; box-shadow: inset 0 -3px #533c2e; transform: rotate(13deg); }
.fire-log.second { left: 17%; bottom: 7px; width: 72%; transform: rotate(-14deg); background: #956644; }
.fire-ember { position: absolute; width: 3px; height: 5px; bottom: 12%; left: 43%; border-radius: 50%; background: #ffc77b; }
.fire-ember.second { left: 68%; }
.mantel-shelf { position: absolute; inset: 60px -3% auto; height: 15px; border-radius: 3px; background: #ecd4b4; border-top: 4px solid #fff1d3; box-shadow: 0 4px 0 #503b2726; }
.mantel-greenery { position: absolute; top: 69px; left: 0; right: 0; height: 25px; border-bottom: 10px solid #476846; border-radius: 50%; transform: rotate(-2deg); }
.mantel-greenery::after { content: ""; position: absolute; left: 25%; right: 12%; bottom: -10px; height: 6px; background: radial-gradient(circle, #bf4440 2.5px, transparent 3px) 0 0 / 24px 6px; }
.hearth-stone { position: absolute; left: -6%; right: -6%; bottom: 0; height: 15px; border-radius: 3px; background: #d7bda0; box-shadow: 0 4px 0 #ad8e7040; }
.mantel-wreath { position: absolute; width: 64px; height: 64px; top: -36px; left: calc(50% - 32px); border: 13px dotted #3d6344; border-radius: 50%; background: radial-gradient(circle, transparent 44%, #486c46 46% 73%, transparent 75%); transform: rotate(-6deg); }
.mantel-wreath::before, .mantel-wreath::after { content: ""; position: absolute; width: 14px; height: 17px; bottom: -21px; background: #b64842; }
.mantel-wreath::before { left: 4px; transform: rotate(17deg); }
.mantel-wreath::after { left: 16px; transform: rotate(-19deg); }
.mantel-wreath i { position: absolute; left: 10px; bottom: -13px; width: 13px; height: 10px; border-radius: 50%; background: #c6574b; }
.mantel-candle { position: absolute; width: 14px; height: 29px; bottom: calc(100% - 60px); left: 9%; background: #fff1c7; border-radius: 2px 2px 0 0; box-shadow: inset -4px 0 #e8d8aa; }
.mantel-candle.second { left: auto; right: 10%; height: 20px; width: 17px; }
.mantel-candle i { position: absolute; left: 4px; bottom: calc(100% + 2px); width: 7px; height: 13px; border-radius: 70% 15% 60% 40%; background: #f3b248; box-shadow: 0 0 12px #f5c26594; transform-origin: 50% 100%; }
.stocking { position: absolute; top: 81px; left: 11%; width: 25px; height: 48px; background: repeating-linear-gradient(0deg, #b84944 0 10px, #f2c5a1 10px 15px); border-radius: 0 0 9px 9px; transform: rotate(12deg); transform-origin: 50% 0; }
.stocking::before { content: ""; position: absolute; top: -3px; left: -3px; width: 31px; height: 10px; border-radius: 2px; background: #fff2d8; }
.stocking::after { content: ""; position: absolute; left: 7px; bottom: -2px; width: 33px; height: 19px; border-radius: 8px 16px 13px 8px; background: #b84944; }
.stocking.second { left: 42%; top: 90px; height: 39px; transform: rotate(-9deg); background: #e7c987; }
.stocking.second::after { background: #e7c987; }
.stocking.third { left: 72%; top: 84px; transform: rotate(15deg); background: #6f8971; width: 21px; height: 43px; }
.stocking.third::before { width: 27px; }
.stocking.third::after { background: #6f8971; width: 27px; }
.sleepy-cat { position: absolute; left: 21%; bottom: 18px; width: 90px; height: 43px; transform: rotate(-4deg); }
.cat-body { position: absolute; z-index: 1; bottom: 0; right: 0; width: 71px; height: 40px; border-radius: 55% 55% 35% 40%; background: #24282c; box-shadow: inset -8px -4px #131619; transform-origin: center bottom; }
.cat-head { position: absolute; z-index: 2; left: 1px; bottom: 1px; width: 34px; height: 29px; border-radius: 50%; background: #2a2f34; }
.cat-head::before, .cat-head::after { content: ""; position: absolute; top: -8px; width: 14px; height: 18px; background: #2a2f34; clip-path: polygon(10% 0, 100% 100%, 0 100%); }
.cat-head::before { left: 0; transform: rotate(-9deg); }
.cat-head::after { right: 0; transform: rotate(35deg); }
.cat-head i { position: absolute; top: 14px; left: 5px; width: 8px; height: 3px; background: #95db73; border-radius: 1px 1px 5px 5px; overflow: hidden; }
.cat-head i::after { content: ""; position: absolute; top: -1px; left: 3px; width: 2px; height: 4px; background: #142019; border-radius: 50%; }
.cat-head i:last-child { left: 20px; }
.cat-tail { position: absolute; z-index: 2; bottom: 1px; right: 4px; width: 43px; height: 18px; border: 6px solid #343b40; border-top-color: transparent; border-radius: 30% 35% 50% 50%; transform: rotate(0); transform-origin: calc(100% - 3px) 5px; }

.christmas-rug { position: absolute; pointer-events: none; z-index: -1; bottom: -3px; left: -3%; right: -2%; height: 86px; border: 8px solid #af7164; border-radius: 50%; background: repeating-linear-gradient(90deg, #b77b6b 0 12px, #d5ac8d 12px 15px, #b77b6b 15px 27px); transform: rotate(-3deg); opacity: 0.8; }
.gift-pile { position: absolute; z-index: 2; left: 0; right: 0; bottom: 4px; height: 110px; pointer-events: none; }
.gift-box { position: absolute; bottom: 0; left: 19%; width: 64px; height: 52px; border-radius: 3px; background: repeating-linear-gradient(45deg, #ba4849 0 11px, #e79374 11px 15px); transform: rotate(-7deg); box-shadow: 2px 3px 0 #3c372220; }
.gift-box::before { content: ""; position: absolute; left: -3px; right: -3px; top: -5px; height: 9px; background: #d36458; border-radius: 2px; box-shadow: 0 2px 0 #8e38312b; }
.gift-box::after { content: ""; position: absolute; left: 43%; top: -5px; bottom: 0; width: 12px; background: #f8df9d; }
.gift-box > i { position: absolute; z-index: 1; left: 40%; top: -15px; width: 22px; height: 12px; border: 4px solid #f8df9d; border-radius: 50%; transform: rotate(-30deg); }
.gift-box > i::after { content: ""; position: absolute; width: 15px; height: 6px; left: -16px; top: -8px; border: 4px solid #f8df9d; border-radius: 50%; transform: rotate(55deg); }
.gift-box.dots { left: 30%; bottom: 2px; width: 58px; height: 42px; background: radial-gradient(circle, #fff0bf 2px, transparent 2.5px) 0 0 / 13px 13px, #6b8c8b; transform: rotate(5deg); }
.gift-box.dots::before { background: #709b97; }
.gift-box.tall { left: auto; right: 14%; width: 47px; height: 79px; background: repeating-linear-gradient(0deg, #d4aa55 0 9px, #efd28a 9px 11px); transform: rotate(7deg); }
.gift-box.tall::before { background: #d6ae5c; }
.gift-box.little { left: auto; right: 21%; bottom: -3px; width: 59px; height: 39px; background: #c28a9d; transform: rotate(-5deg); }
.gift-box.little::before { background: #d09aab; }
.gift-box.wide { left: 11%; bottom: 55px; width: 69px; height: 33px; background: #b8bf8e; transform: rotate(-10deg); }
.gift-box.wide::before { background: #c6cd9d; }
.gift-box.tiny { left: auto; right: 3%; bottom: 0; width: 35px; height: 36px; background: #c56251; transform: rotate(13deg); }
.gift-box.tiny::before { background: #d27967; }

@keyframes fire-dance {
  0%, 100% { transform: rotate(27deg) scale(0.9, 1); }
  35% { transform: rotate(35deg) scale(1.04, 0.87); }
  65% { transform: rotate(22deg) scale(0.86, 1.09); }
}
@keyframes fire-dance-back {
  0%, 100% { transform: rotate(-23deg) scaleY(0.9); }
  50% { transform: rotate(-14deg) scaleY(1.08); }
}
@keyframes ember-rise {
  from { transform: translate(0, 0); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translate(8px, -62px); opacity: 0; }
}
@keyframes hearth-glow { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes candle-flicker { 0%, 100% { transform: rotate(-5deg) scaleY(0.95); } 50% { transform: rotate(8deg) scaleY(1.12); } }
@keyframes stocking-swing { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(15deg); } }
@keyframes cat-breath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.035); } }
@keyframes cat-tail-twitch { 0%, 85%, 100% { transform: rotate(0); } 91% { transform: rotate(1.5deg); } 96% { transform: rotate(-1.5deg); } }
@keyframes crystal-turn { to { transform: rotate(180deg); } }

@media (prefers-reduced-motion: no-preference) {
  .fire-flame { animation: fire-dance 1.6s ease-in-out infinite; }
  .fire-flame.middle { animation: fire-dance-back 1.25s ease-in-out infinite; }
  .fire-flame.front { animation-duration: 1.05s; animation-delay: -0.6s; }
  .fire-ember { animation: ember-rise 2.7s ease-out infinite; }
  .fire-ember.second { animation-delay: -1.3s; }
  .fire-glow { animation: hearth-glow 1.7s ease-in-out infinite alternate; }
  .mantel-candle i { animation: candle-flicker 1.3s ease-in-out infinite; }
  .mantel-candle.second i { animation-delay: -0.7s; }
  .stocking { animation: stocking-swing 5.9s ease-in-out infinite; }
  .stocking.second { animation-direction: alternate-reverse; animation-delay: -2s; }
  .stocking.third { animation-delay: -3.6s; }
  .cat-body { animation: cat-breath 3.6s ease-in-out infinite; }
  .cat-tail { animation: cat-tail-twitch 9s ease-in-out infinite; }
  .snow-crystal { animation: crystal-turn calc(var(--flake-duration) * 1.4) linear infinite; }
}
.decor-paused .snow-crystal,
.decor-paused .room-corner * { animation-play-state: paused !important; }

@media (max-width: 1100px) and (min-width: 801px) {
  .christmas-room { grid-template-columns: minmax(145px, 0.32fr) minmax(0, 1fr); padding-inline: 12px; }
  .night-window { width: 17%; min-width: 98px; height: 154px; }
  .room-corner { --hearth-height: 220px; }
}
@media (max-width: 800px) {
  .christmas-room { display: block; padding: 8px 8px 140px; margin-top: 18px; border-radius: 18px 18px 8px 8px; }
  .chimney-breast, .fireplace-scene { display: none; }
  .christmas-room::before { height: 250px; }
  .room-corner { --hearth-height: 190px; --hearth-bottom: 25px; position: absolute; inset: 0; z-index: auto; }
  .night-window { top: 24px; right: 10px; width: clamp(76px, 21%, 110px); min-width: 0; height: 116px; border-width: 5px; }
  .winter-moon { width: 18px; height: 18px; top: 12px; }
  .winter-moon::after { width: 16px; height: 16px; left: 5px; }
  .winter-pine { width: 26px; height: 46px; }
  .winter-pine.second { width: 19px; height: 31px; }
  .fireplace-scene { z-index: 2; left: 12px; right: auto; width: 132px; }
  .mantel-wreath { width: 46px; height: 46px; top: -4px; left: calc(50% - 23px); border-width: 9px; }
  .christmas-room .family-tree-stage { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .gift-box { width: 49px; height: 43px; }
  .gift-box.dots { width: 41px; height: 32px; left: 31%; }
  .gift-box.tall { width: 35px; height: 64px; right: 13%; }
  .gift-box.little { width: 41px; height: 31px; }
  .gift-box.wide { width: 48px; height: 25px; bottom: 48px; left: 7%; }
  .gift-box.tiny { width: 25px; height: 28px; right: 2%; }
  .gift-box::after { width: 9px; }
  .gift-box > i { width: 17px; height: 10px; border-width: 3px; top: -13px; }
}

.sidebar-heading { display: flex; align-items: center; gap: 10px; margin-block: 6px 22px; }
.sidebar-heading .brand { line-height: 1.15; color: var(--fir); }
.family-sidebar nav h2 { font: 650 0.875rem/1.3 "Source Sans 3", sans-serif; margin: 14px 10px 2px; color: var(--muted); }
.sidebar-own { display: grid; gap: 2px; font-weight: 650; color: var(--fir); }
.sidebar-own small { font-weight: 400; }
.sidebar-own[aria-current] { background: #e7eddc; }
.sidebar-account { display: grid; gap: 5px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.sidebar-account a, .sidebar-account button { display: block; width: 100%; min-height: 44px; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-decoration: none; text-align: left; font-size: 0.875rem; line-height: 1.3; }
.sidebar-account a:hover, .sidebar-account button:hover { background: var(--wash); color: var(--ink); }
.sidebar-account a[aria-current] { color: var(--fir); font-weight: 650; }
.sidebar-open, .sidebar-close { display: none; }
.main > .light-string { margin-block: -20px 22px; }
@media (max-width: 800px) {
  .app-layout.with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .family-sidebar { position: static; max-height: none; border-right: 0; padding-right: 0; }
  .has-sidebar-controls .family-sidebar { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(310px, 87vw); max-height: 100dvh; padding: 22px 18px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; transform: translateX(-105%); visibility: hidden; }
  .has-sidebar-controls.sidebar-visible .family-sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-heading { justify-content: space-between; margin-bottom: 20px; }
  .sidebar-heading .brand { max-width: 150px; }
  .sidebar-close { display: block; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; background: var(--wash); color: var(--ink); font-size: 0.875rem; }
  .sidebar-open { position: fixed; z-index: 25; top: 10px; left: 12px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--fir); background: var(--surface); box-shadow: 0 2px 8px #253c2514; font-size: 0.9rem; font-weight: 650; }
  .menu-bars { width: 13px; height: 2px; background: currentColor; box-shadow: 0 -4px currentColor, 0 4px currentColor; }
  .sidebar-backdrop { position: fixed; z-index: 30; inset: 0; background: #18261c70; }
  .sidebar-visible { overflow: hidden; }
  .app-layout { margin-block-start: 16px; }
  .main > .light-string { margin-block: -16px 42px; }
}

.chimney-breast { position: absolute; top: -12px; bottom: calc(var(--hearth-bottom) + var(--hearth-height) - 60px); left: 3%; right: 2%; }
.chimney-shaft, .chimney-hood {
  position: absolute;
  background:
    linear-gradient(90deg, #6e493e42, transparent 16% 74%, #69443457),
    repeating-linear-gradient(0deg, transparent 0 24px, #d2b99c 24px 27px),
    repeating-conic-gradient(#bd8b6b 0 25%, #b17b5e 0 50%) 0 0 / 86px 54px;
}
.chimney-shaft { inset: 0 17% 56px; box-shadow: 4px 0 0 #987256; border-inline: 1px solid #815e4759; }
.chimney-hood { left: -2%; right: -2%; bottom: 0; height: 95px; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.cat-nook { position: absolute; left: 13%; bottom: 5px; width: 121px; height: 61px; }
.cat-nook .sleepy-cat { left: 12px; bottom: 12px; }
.cat-blanket { position: absolute; inset: auto 0 1px; height: 27px; border-radius: 40% 30% 9px 8px; background: repeating-linear-gradient(0deg, transparent 0 9px, #f1d79d96 9px 12px, transparent 12px 19px), repeating-linear-gradient(90deg, #557668ad 0 12px, transparent 12px 26px), #a45a51; box-shadow: inset 0 -5px #6c45492b, 1px 3px 0 #80614327; transform: rotate(-4deg); }
.cat-blanket::after { content: ""; position: absolute; bottom: -4px; left: 8px; right: 8px; height: 6px; border-bottom: 4px dashed #e3c998; border-radius: 20%; }
.gift-box:nth-child(7) { left: 8%; bottom: 6px; width: 47px; height: 42px; transform: rotate(-12deg); }
.gift-box:nth-child(8) { left: 39%; bottom: 3px; width: 46px; height: 37px; transform: rotate(8deg); }
.gift-box:nth-child(9) { right: 32%; bottom: 4px; width: 43px; height: 57px; transform: rotate(-8deg); }
.gift-box:nth-child(10) { right: 7%; bottom: 32px; width: 44px; height: 34px; transform: rotate(9deg); }
.gift-box:nth-child(11) { left: 25%; bottom: 57px; width: 52px; height: 30px; transform: rotate(5deg); }
.gift-box:nth-child(12) { right: 31%; bottom: 59px; width: 35px; height: 31px; transform: rotate(-11deg); }
.gift-box:nth-child(13) { left: 1%; bottom: -2px; width: 37px; height: 32px; transform: rotate(9deg); }
.gift-box:nth-child(14) { left: 18%; bottom: 7px; width: 34px; height: 33px; transform: rotate(8deg); }
.gift-box:nth-child(15) { right: 13%; bottom: 2px; width: 39px; height: 45px; transform: rotate(-8deg); }
.gift-box:nth-child(16) { right: 42%; bottom: 0; width: 37px; height: 30px; transform: rotate(7deg); }
.gift-box:nth-child(17) { left: 5%; bottom: 45px; width: 47px; height: 26px; transform: rotate(-5deg); }
.gift-box:nth-child(18) { right: 3%; bottom: 0; width: 32px; height: 28px; transform: rotate(-6deg); }

@media (max-width: 800px) {
  .chimney-breast { z-index: 0; top: 0; left: 16px; right: auto; width: 122px; }
  .chimney-shaft { inset-inline: 13%; }
  .chimney-hood { height: 78px; clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%); }
  .cat-nook { z-index: 3; left: auto; right: 16px; bottom: 10px; width: 114px; }
  .cat-nook .sleepy-cat { left: 9px; bottom: 11px; }
}
@media (max-width: 600px) {
  .gift-box:nth-child(n+7) { width: 29px; height: 28px; }
  .gift-box:nth-child(9), .gift-box:nth-child(15) { height: 41px; }
  .gift-box:nth-child(10) { right: 5%; bottom: 36px; }
  .gift-box:nth-child(11) { bottom: 52px; height: 23px; }
  .gift-box:nth-child(12) { bottom: 46px; }
  .gift-box:nth-child(17) { bottom: 35px; height: 22px; }
}
