*, *::before, *::after { box-sizing: border-box; }
:root { font-family: Avenir Next, Avenir, system-ui, sans-serif; color-scheme: light; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus, #bd3e31); outline-offset: 3px;
}
a { color: inherit; }
[hidden] { display: none !important; }
.theme {
  --bg:#fbf4ea; --ink:#3e2023; --muted:#705754; --accent:#992b35; --on-accent:#fff8ef;
  --panel:#fffaf0; --line:#dfcdba; --focus:#b34436; --display:Baskerville, Georgia, serif;
  color:var(--ink); background:var(--bg); min-height:100svh; padding-bottom:100px;
}
.topbar {
  max-width:1264px; margin:auto; padding:19px clamp(20px,5vw,64px); display:flex;
  align-items:center; justify-content:space-between; gap:12px; position:relative; z-index:2;
}
.brand-link {
  display:inline-flex; color:inherit; align-items:center; gap:9px; font-size:15px; font-weight:700;
  letter-spacing:-.045em; text-decoration:none; min-width:0;
}
.brand-mark {
  width:27px; height:27px; flex:none; display:grid; place-items:center; border:1px solid var(--line);
  border-radius:50%; font-family:Georgia,serif; font-size:16px; line-height:1;
}
.language-pick {
  appearance:auto; max-width:132px; border:1px solid var(--line); color:var(--ink);
  background:var(--panel); font-size:11px; padding:6px 7px; border-radius:6px; min-height:32px;
}
.hero {
  display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:center; position:relative;
  max-width:1140px; margin:auto; padding:25px clamp(20px,5vw,60px) 28px;
}
.hero-copy { position:relative; z-index:1; }
.season-label, .section-kicker, .feature-kicker {
  font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
}
.hero h1 {
  font:500 clamp(48px,7.4vw,104px)/.90 var(--display); letter-spacing:-.059em;
  margin:.21em 0 .21em; text-wrap:balance;
}
.hero-blurb { color:var(--muted); font-size:14px; line-height:1.52; max-width:31ch; margin:0 0 19px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:8px; }
.action {
  min-height:40px; padding:9px 14px; border:1px solid transparent; border-radius:6px; color:var(--on-accent);
  background:var(--accent); font-size:12px; font-weight:700; text-decoration:none; display:inline-flex;
  align-items:center; justify-content:center; gap:7px; line-height:1.2; text-align:center;
}
.action:hover { filter:brightness(1.08); }
.action.secondary { color:var(--ink); border-color:var(--line); background:var(--panel); }
.text-button {
  color:inherit; text-decoration:underline; text-underline-offset:3px; background:none;
  border:0; padding:5px 0; font-size:12px;
}
.hero-art { min-height:240px; position:relative; isolation:isolate; pointer-events:none; }
.art-piece { position:absolute; display:block; }
.calendar {
  width:min(100% - 36px,1008px); margin:16px auto 0; padding:clamp(16px,3.6vw,33px);
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
}
.calendar-heading {display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:11px;}
.calendar-heading h2 {
  font:500 clamp(26px,4vw,43px)/.98 var(--display); letter-spacing:-.04em; margin:4px 0 0;
}
.section-kicker { color:var(--muted); }
.calendar-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:end; }
.count-badge, .today-button {
  padding:5px 7px; border-radius:4px; font-size:10px; line-height:1.15; white-space:nowrap; font-weight:700;
}
.count-badge { color:var(--muted); }
.today-button { border:1px solid var(--line); color:var(--ink); background:transparent; min-height:28px; }
.today-button:hover { background:var(--bg); }
.legend { display:flex; flex-wrap:wrap; gap:8px 14px; margin:0 0 13px; color:var(--muted); font-size:10px; }
.legend-item { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.legend-dot { width:7px; height:7px; border-radius:100%; border:1px solid currentColor; }
.legend-dot.sealed {background:var(--muted); }
.legend-dot.ready {background:var(--accent); border-color:var(--accent); }
.legend-dot.read {background:transparent; box-shadow:0 0 0 1px var(--accent); border-color:var(--panel); }
.doors { display:grid; gap:9px; }
.door-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
.week-label {font-size:10px; font-weight:700; margin:0 0 7px; color:var(--muted);}
.door {
  color:inherit; position:relative; text-align:left; padding:4px; display:grid; place-items:center;
  min-width:0; min-height:48px; background:transparent; border:1px solid var(--line); border-radius:6px;
  touch-action:manipulation; scroll-margin-top:78px; transition: transform 160ms ease-out;
}
.door:hover { transform:translateY(-2px); }
.door:active { transform:translateY(0) scale(.97); }
.door[data-state=expired] { opacity:.56; }
.door[data-state=read] { opacity:.79; }
.door[data-state=ready] { outline:1px solid var(--accent); }
.door-date {
  position:absolute; left:5px; top:4px; z-index:3; font-size:10px; font-weight:700; line-height:1;
  font-variant-numeric:tabular-nums;
}
.door-object { position:relative; display:block; min-width:0; min-height:0; }
.door-object > *, .hero-art .art-piece > * { position:absolute; display:block; }
.door-state { display:none; }
.gift-feature { display:none; }
.page-footer {
  max-width:1008px; width:calc(100% - 40px); margin:17px auto 0; display:flex;
  align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:var(--muted);
}
.page-footer-actions { display:flex; gap:14px; flex-wrap:wrap; }
.demo-label { letter-spacing:.08em; text-transform:uppercase; }
dialog {
  --ink:#342227; --panel:#fff9ed; --muted:#705854; --accent:#a72935; --on-accent:#fff9f0;
  --line:#e5d2bd; width:min(90vw,420px); max-height:calc(100svh - 34px);
  border:1px solid var(--line); background:var(--panel); color:var(--ink); border-radius:15px;
  padding:24px; box-shadow:0 24px 85px #1f111855; overflow:auto;
}
dialog[data-skin=stockings] { --ink:#1e392f; --accent:#215346; --muted:#486052; --line:#d4d9c7; --panel:#f6f2e6; }
dialog[data-skin=gifts] { --ink:#242f49; --accent:#304c8c; --muted:#55607a; --line:#d4d6e4; --panel:#f7f5fc; }
dialog::backdrop { background:#13152377; backdrop-filter:blur(4px); }
dialog[open] { animation:sheet-in 250ms cubic-bezier(.22,.9,.35,1) both; }
@keyframes sheet-in { from { opacity:0; transform:translateY(13px) scale(.986); } to {opacity:1; transform:none;} }
.modal-close {
  position:absolute; top:10px; right:10px; min-width:33px; height:33px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%; background:transparent; color:inherit; font-size:21px;
}
.modal-eyebrow {margin:0 30px 4px 0; color:var(--muted); letter-spacing:.11em; text-transform:uppercase; font-size:10px; font-weight:750;}
dialog h2 {font:500 37px/.94 Baskerville,Georgia,serif; margin:5px 22px 12px 0; letter-spacing:-.042em;}
.modal-help {font-size:13px; color:var(--muted); line-height:1.57; margin:0 0 14px;}
.modal-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:15px; }
.modal-form { display:grid; gap:10px; }
.field { display:grid; gap:4px; font-size:12px; font-weight:700; }
.field input, .field textarea, .field select, .invite-input {
  width:100%; min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:6px;
  background:#fffefa; color:#34252a; font-size:16px; line-height:1.25;
}
.field textarea {min-height:97px; resize:vertical;}
.field-heading {display:flex; align-items:baseline; justify-content:space-between;}
.field-counter, .small-message {color:var(--muted); font-size:11px; font-weight:500;}
.template-list {display:grid; gap:5px;}
.template {
  text-align:left; border:1px dashed var(--line); border-radius:5px; padding:7px 9px;
  color:var(--ink); background:transparent; font-size:11px; line-height:1.35;
}
.template:hover {border-style:solid;background:#fffaf9;}
.checkbox {display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted);}
.modal-form .action {justify-self:start;}
.letter-sheet {
  border:1px solid var(--line); border-radius:3px; padding:20px 17px; background:#fffdf7;
  box-shadow:0 5px 16px #4b2b1c12; transform-origin:50% 92%;
  animation:unseal 285ms cubic-bezier(.2,.85,.36,1) both;
}
@keyframes unseal { from {opacity:0;transform:translateY(20px) rotate(-3deg) scale(.96);} to {opacity:1;transform:none;} }
.letter-sheet blockquote {
  margin:0 0 10px; font:500 22px/1.3 Baskerville,Georgia,serif; overflow-wrap:anywhere;
}
.letter-sheet figcaption {font-size:12px;color:var(--muted);}
.share-card {
  display:grid; gap:4px; text-align:center; padding:16px 9px; color:var(--on-accent); border-radius:8px;
  background:var(--accent); box-shadow:0 0 0 5px #ffffff15 inset;
}
.share-card strong {font:500 27px/1.05 Baskerville,Georgia,serif; overflow-wrap:anywhere;}
.share-card .small-message { color: inherit; }
.invite-image {
  display:block; width:100%; height:auto; aspect-ratio:5 / 3;
  border-radius:8px; box-shadow:0 4px 12px #2215141f;
}
.invite-image[hidden], .share-card[hidden] { display:none; }
.invite-image-actions, .invite-shortcuts {
  display:grid; gap:6px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:8px;
}
.invite-shortcut {
  display:flex; align-items:center; justify-content:center; gap:7px;
  padding:6px 8px; min-height:44px; border:1px solid var(--line); border-radius:7px;
  background:transparent; color:var(--ink); text-decoration:none; text-align:left;
  font:650 12px/1.25 system-ui,sans-serif; cursor:pointer;
}
.invite-shortcut svg { width:17px; height:17px; flex:0 0 17px; }
.invite-shortcut span { min-width:0; overflow-wrap:anywhere; }
.invite-shortcut:hover { background:color-mix(in srgb,var(--accent) 8%,var(--panel)); }
.invite-shortcut:disabled { opacity:.5; cursor:default; }
.invite-image-actions .invite-shortcut:first-child { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.invite-image-actions .invite-shortcut:first-child:not(:disabled):hover { filter:brightness(1.12); }
.invite-link-row {display:flex; align-items:center; gap:8px; margin-top:12px;}
.invite-link-row .invite-input {margin-top:0;}
.invite-link-row code { flex:none; font:650 11px/1.2 monospace; letter-spacing:.05em; }
.invite-more { margin-top:10px; }
.invite-more summary { cursor:pointer; width:fit-content; font-size:12px; font-weight:700; }
.invite-input {margin-top:10px; font-size:12px;}
.notice {
  position:fixed; z-index:25; bottom:72px; left:50%; transform:translateX(-50%); max-width:calc(100% - 28px);
  width:max-content; border-radius:6px; padding:9px 13px; background:#28252e; color:white; font-size:12px;
  box-shadow:0 5px 13px #18162544;
}
.modal-status {font-size:12px;color:var(--muted);min-height:1em;margin:8px 0 0;}
@media (max-width:600px) {
  .topbar {padding:12px 18px;}
  .brand-link {font-size:14px;}
  .hero {padding:17px 20px 13px; gap:7px; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);}
  .hero h1 {font-size:clamp(36px,10vw,53px); }
  .hero-blurb {font-size:12px; margin-bottom:12px;}
  .hero-art {min-height:135px;}
  .calendar {margin-top:5px;width:calc(100% - 24px);padding:13px 12px 14px;}
  .calendar-heading {gap:4px; margin-bottom:9px;}
  .calendar-actions {gap:3px;}
  .calendar-heading h2 {font-size:clamp(22px,6.5vw,32px);}
  .legend {gap:6px 9px; margin-bottom:10px;}
  .door-grid {gap:5px;}
  dialog {padding:20px;}
  .page-footer {align-items:flex-start;}
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important;}
}


/* Envelopes · Christmas stationery */
.theme-envelopes {
  --paper: #f8efe1;
  --ink: #4d211d;
  --muted: #755249;
  --accent: #9a2b39;
  --rule: #e0cbb8;
  --envelope-serif: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  color-scheme: light;
  background:
    radial-gradient(ellipse at 88% 7%, #fff9ea 0, transparent 34%),
    repeating-linear-gradient(0deg, #af726503 0 1px, transparent 1px 5px),
    var(--paper);
}

.theme-envelopes .topbar {
  color: #682c2d;
  border-bottom: 1px solid var(--rule);
  background: #f8efe1;
}

.theme-envelopes .brand-link {
  gap: 8px;
  color: inherit;
  font-family: var(--envelope-serif);
  font-weight: 700;
}

.theme-envelopes .brand-mark {
  display: inline-grid;
  place-items: center;
  border: 1px solid #96414b;
  border-radius: 5px;
  color: #fff0df;
  background: #a23340;
  box-shadow: inset 0 0 0 2px #f9d2c544;
}

.theme-envelopes .language-pick {
  color: inherit;
  border-color: #cda896;
  background: #fff8ec;
}

.theme-envelopes .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  min-height: 0;
  padding: clamp(25px, 5vw, 58px) clamp(14px, 5vw, 58px) clamp(24px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 45%, #f2dbca 0%, transparent 57%),
    #fff7e9;
  border: 1px solid #d8b7a5;
  border-radius: 4px;
  box-shadow: inset 0 0 0 5px #fff7e9, inset 0 0 0 6px #ddbfab;
}

.theme-envelopes .hero::after {
  position: absolute;
  z-index: -1;
  inset: 9px;
  pointer-events: none;
  content: '';
  border: 1px dotted #cb9b89;
}

.theme-envelopes .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  text-align: left;
}

.theme-envelopes .season-label,
.theme-envelopes .section-kicker {
  color: #963844;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.theme-envelopes .season-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.theme-envelopes .season-label::before {
  width: 10px;
  height: 10px;
  content: '';
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.theme-envelopes .hero h1 {
  margin: .17em 0 .18em;
  color: #6c2630;
  font: 400 clamp(2.8rem, 6.65vw, 6.2rem)/.88 var(--envelope-serif);
  letter-spacing: -.077em;
}

.theme-envelopes .hero h1 em,
.theme-envelopes .hero h1 span {
  color: #9a3340;
  font-style: italic;
}

.theme-envelopes .hero-blurb {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.82rem, 1.38vw, 1.06rem);
  line-height: 1.45;
}

.theme-envelopes .hero .hero-actions {
  justify-content: flex-start;
  margin-top: 17px;
}

.theme-envelopes .hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 440px;
  aspect-ratio: 1.16;
  margin-inline: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.theme-envelopes .hero-art::before {
  position: absolute;
  inset: 6% 10% 4% 5%;
  content: '';
  background-image:
    radial-gradient(circle, #c17e69 1.2px, transparent 2px),
    radial-gradient(circle, #c17e6960 1.2px, transparent 2px);
  background-position: 3px 1px, 18px 16px;
  background-size: 39px 47px, 57px 49px;
  transform: rotate(-14deg);
}

.theme-envelopes .hero-art::after {
  position: absolute;
  z-index: 7;
  right: 2%;
  bottom: 6%;
  width: 23%;
  aspect-ratio: 1;
  content: '';
  opacity: .72;
  border: 1px dashed #9b3943;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 27%, #ab505660 28% 30%, transparent 31%),
    repeating-linear-gradient(0deg, #ab505675 0 1px, transparent 1px 5px) center / 57% 44% no-repeat;
  box-shadow: inset 0 0 0 3px #f3d7c7, inset 0 0 0 4px #9b3943;
  transform: rotate(-19deg);
}

.theme-envelopes .hero-art .art-piece {
  position: absolute;
  display: block;
  width: 73%;
  height: 47%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #53212988;
  border-radius: 4% 4% 7% 7%;
  box-shadow: 0 10px 22px #77372a31, inset 0 1px #fff4dc70;
}

.theme-envelopes .hero-art .art-one {
  z-index: 2;
  top: 16%;
  left: 10%;
  color: #792d3a;
  background: #bd5460;
  transform: rotate(-18deg);
}

.theme-envelopes .hero-art .art-two {
  z-index: 3;
  top: 31%;
  left: 12%;
  color: #b47b60;
  background: #f2d5ac;
  transform: rotate(12deg);
}

.theme-envelopes .hero-art .art-three {
  z-index: 5;
  top: 45%;
  left: 10%;
  color: #61212b;
  background: #a53846;
  transform: rotate(-9deg);
}

.theme-envelopes .art-piece::before,
.theme-envelopes .art-piece::after {
  position: absolute;
  inset: 0;
  content: '';
}

.theme-envelopes .art-piece::before {
  z-index: -1;
  background: linear-gradient(138deg, #fff5db76 0%, transparent 45%), linear-gradient(222deg, #fff5db59 0%, transparent 45%);
  clip-path: polygon(0 0, 50% 49%, 100% 0, 100% 100%, 0 100%);
}

.theme-envelopes .art-piece::after {
  z-index: 1;
  background: linear-gradient(170deg, #fff2cf50, transparent 56%), currentColor;
  clip-path: polygon(0 0, 100% 0, 55% 58%, 50% 62%, 45% 58%);
}

.theme-envelopes .art-piece i {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 45%;
  width: 10%;
  aspect-ratio: 1;
  background: #d69b61;
  border: 1px solid #70412b;
  border-radius: 46% 54% 47% 53%;
  box-shadow: inset 0 0 0 2px #f7d99185, 0 2px 3px #4a19244f;
}

.theme-envelopes .art-piece b {
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 8%;
  width: 13%;
  height: 27%;
  border: 1px dashed #9b4952;
  background:
    conic-gradient(from 45deg, #ae4655 25%, transparent 0 50%, #ae4655 0 75%, transparent 0) center / 45% 40% no-repeat,
    #f3d7b7;
  transform: rotate(8deg);
}

.theme-envelopes .art-piece em {
  position: absolute;
  z-index: 3;
  bottom: 11%;
  left: 8%;
  width: 24%;
  height: 18%;
  background: repeating-linear-gradient(0deg, #ffecd092 0 1px, transparent 1px 4px);
  opacity: .63;
}

.theme-envelopes .calendar {
  color: var(--ink);
  margin-top: clamp(20px, 4vw, 42px);
}

.theme-envelopes .calendar-heading {
  align-items: end;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
}

.theme-envelopes .calendar-heading h2 {
  margin: .13em 0 0;
  color: #66272d;
  font: 400 clamp(1.8rem, 4.8vw, 4rem)/.96 var(--envelope-serif);
  letter-spacing: -.06em;
}

.theme-envelopes .calendar-actions {
  color: var(--accent);
}

.theme-envelopes .count-badge,
.theme-envelopes .today-button {
  color: #7c3340;
  border: 1px solid #ddbeab;
  background: #fff6e8;
}

.theme-envelopes .today-button {
  border-color: #a44950;
  color: #752632;
}

.theme-envelopes .legend {
  color: var(--muted);
  border-color: #dfcab5;
}

.theme-envelopes .gift-feature,
.theme-envelopes .week-label {
  display: none;
}

.theme-envelopes .doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.3vw, 14px);
}

.theme-envelopes .door-week,
.theme-envelopes .door-grid {
  display: contents;
}

.theme-envelopes .door {
  --env-face: #b75359;
  --env-fold: #863741;
  --env-line: #fff1d677;
  --env-seal: #e1a976;
  --env-pattern: repeating-linear-gradient(48deg, transparent 0 6px, #f9dfab4d 6px 7px, transparent 7px 11px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.16;
  padding: 17px 4px 5px;
  color: #70333a;
  border: 1px solid #d9c1ad;
  border-radius: 4px;
  background: #fff7ec;
  box-shadow: inset 0 0 0 2px #fffbf286;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.theme-envelopes .door:hover,
.theme-envelopes .door:focus-visible {
  color: #6a2431;
  border-color: #9a404b;
  background: #fff2e2;
}

.theme-envelopes .door:focus-visible {
  outline: 2px solid #9a404b;
  outline-offset: 2px;
}

.theme-envelopes .door[data-style='1'] {
  --env-face: #b78d66;
  --env-fold: #96704c;
  --env-line: #ffe8b78e;
  --env-seal: #8c2c39;
  --env-pattern: radial-gradient(circle, #fff0c67d 0 1px, transparent 1.5px) 0 0 / 7px 7px;
}

.theme-envelopes .door[data-style='2'] {
  --env-face: #617e60;
  --env-fold: #3e5b45;
  --env-line: #f3e2b27a;
  --env-seal: #d19668;
  --env-pattern: repeating-linear-gradient(140deg, #dbcd8d50 0 1px, transparent 1px 5px), repeating-linear-gradient(40deg, #dbcd8d50 0 1px, transparent 1px 8px);
}

.theme-envelopes .door[data-style='3'] {
  --env-face: #d5a383;
  --env-fold: #aa6d5a;
  --env-line: #ffefcd9e;
  --env-seal: #9b3a45;
  --env-pattern: repeating-linear-gradient(0deg, #ffecd972 0 1px, transparent 1px 4px);
}

.theme-envelopes .door[data-style='4'] {
  --env-face: #8b4c5f;
  --env-fold: #673849;
  --env-line: #f8d0ab77;
  --env-seal: #d6a16d;
  --env-pattern: radial-gradient(ellipse at center, #f7d79e80 10%, transparent 24%) 0 0 / 9px 5px;
}

.theme-envelopes .door[data-style='5'] {
  --env-face: #e0c597;
  --env-fold: #b88461;
  --env-line: #fff3d38f;
  --env-seal: #9d3746;
  --env-pattern: repeating-linear-gradient(-45deg, #ac424940 0 1px, transparent 1px 6px), radial-gradient(circle, #ac42495c 0 1px, transparent 1.5px) 0 0 / 11px 11px;
}

.theme-envelopes .door-date {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 6px;
  color: #67363b;
  font: 700 clamp(.68rem, 1.5vw, 1.05rem)/1.1 var(--envelope-serif);
}

.theme-envelopes .door-object {
  position: relative;
  isolation: isolate;
  display: block;
  width: 76%;
  height: auto;
  max-width: 130px;
  max-height: 100%;
  aspect-ratio: 1.53;
  overflow: hidden;
  color: var(--env-fold);
  border: 1px solid var(--env-fold);
  border-radius: 3px;
  background: var(--env-pattern), var(--env-face);
  box-shadow: 0 2px 4px #75413829, inset 0 1px var(--env-line);
  transform: rotate(-3deg);
}

.theme-envelopes .door:nth-child(even) .door-object {
  transform: rotate(3deg);
}

.theme-envelopes .door-object::before,
.theme-envelopes .door-object::after {
  position: absolute;
  inset: 0;
  content: '';
}

.theme-envelopes .door-object::before {
  z-index: -1;
  background: linear-gradient(138deg, var(--env-line), transparent 48%), linear-gradient(-138deg, var(--env-line), transparent 48%);
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}

.theme-envelopes .door-object::after {
  background: linear-gradient(178deg, var(--env-line), transparent 58%), var(--env-fold);
  clip-path: polygon(0 0, 100% 0, 56% 55%, 50% 59%, 44% 55%);
}

.theme-envelopes .door-object .detail-a {
  position: absolute;
  z-index: 1;
  top: 42%;
  left: 40%;
  width: 20%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--env-fold);
  border-radius: 46% 54% 49% 51%;
  background: var(--env-seal);
  box-shadow: inset 0 0 0 1px var(--env-line), 0 1px 2px #58292460;
}

.theme-envelopes .door-object .detail-b {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 46%;
  width: 8%;
  aspect-ratio: 1;
  background: var(--env-line);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.theme-envelopes .door-object .detail-c {
  display: none;
}

.theme-envelopes .door-state {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #745249;
  font-size: clamp(.54rem, 1.28vw, .76rem);
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-envelopes .door[data-state='empty'] .door-object,
.theme-envelopes .door[data-state='expired'] .door-object {
  --env-face: #f1ddc2;
  --env-fold: #c9a68a;
  --env-seal: #e5c8a9;
  --env-pattern: none;
}

.theme-envelopes .door[data-state='expired'] {
  background: #f0e5d6;
}

.theme-envelopes .door[data-state='expired'] .door-object {
  opacity: .67;
}

.theme-envelopes .door[data-state='ready'],
.theme-envelopes .door.is-today {
  border-color: #a13440;
  background: #fbe1d8;
  box-shadow: inset 0 0 0 1px #a13440, 0 1px 7px #b144472c;
}

.theme-envelopes .door[data-state='ready'] .door-state,
.theme-envelopes .door.is-today .door-date {
  color: #8e2635;
}

.theme-envelopes .door[data-state='read'] .door-object {
  overflow: visible;
}

.theme-envelopes .door[data-state='read'] .door-object::after {
  top: -37%;
  bottom: 67%;
  transform: rotate(180deg);
}

.theme-envelopes .door[data-state='read'] .door-object .detail-a,
.theme-envelopes .door[data-state='read'] .door-object .detail-b {
  display: none;
}

.theme-envelopes .door[data-state='read'] .door-object .detail-c {
  position: absolute;
  z-index: -1;
  top: -18%;
  left: 13%;
  display: block;
  width: 74%;
  height: 61%;
  background: repeating-linear-gradient(0deg, #c98b7066 0 1px, transparent 1px 4px) center / 62% 48% no-repeat, #ffefda;
  border: 1px solid #bd927d;
  transform: rotate(6deg);
}

@media (max-width: 540px) {
  .theme-envelopes .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    gap: 4px;
    padding: 28px 13px 23px;
  }

  .theme-envelopes .hero h1 {
    font-size: clamp(2.1rem, 9.65vw, 3.45rem);
  }

  .theme-envelopes .hero-art {
    width: 124%;
    margin-left: -13%;
    align-self: start;
    margin-top: 24px;
  }

  .theme-envelopes .hero .hero-actions {
    margin-top: 12px;
  }

  .theme-envelopes .calendar-heading {
    padding-bottom: 8px;
  }

  .theme-envelopes .door {
    padding: 13px 3px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-envelopes .door {
    transition: none;
  }
}


.theme-stockings {
  --stock-ink: #f7eed5;
  --stock-muted: #c0c6ab;
  --stock-gold: #efd286;
  --stock-line: #64775b;
  --bg: #17281e;
  --ink: var(--stock-ink);
  --muted: var(--stock-muted);
  --accent: var(--stock-gold);
  --on-accent: #223526;
  --panel: #223529;
  --line: var(--stock-line);
  --focus: #ffe6a7;
  --display: Georgia, "Times New Roman", serif;
  --stock-face: #b24635;
  --stock-shade: #7a302b;
  --stock-toe: #dd7770;
  min-height: 100%;
  color: var(--stock-ink);
  background: radial-gradient(ellipse at 60% 0%, #293c29 0%, transparent 42%), #17281e;
}

.theme-stockings .topbar {
  color: var(--stock-ink);
  background: #18291f;
  border-color: #44563e;
}

.theme-stockings .brand-link { color: var(--stock-ink); }
.theme-stockings .brand-mark { color: #263d2c; background: #ead193; }
.theme-stockings .language-pick {
  color: var(--stock-ink);
  background: #283b2c;
  border-color: #59684d;
}

.theme-stockings .hero {
  box-sizing: border-box;
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  overflow: hidden;
  width: min(100% - 36px, 1140px);
  min-height: 360px;
  padding: clamp(25px, 5vw, 66px);
  color: var(--stock-ink);
  border: 1px solid #657254;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 78% 85%, #9f623a48 0%, transparent 44%),
    radial-gradient(ellipse at 21% 0%, #71825c3d, transparent 56%),
    linear-gradient(127deg, #304934 0%, #263c2b 40%, #192b21 91%);
  box-shadow: inset 0 0 0 5px #10221929, 0 14px 36px #101e1969;
}

.theme-stockings .hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .29;
  pointer-events: none;
  background:
    radial-gradient(circle at 49% 18%, #ffde92 0 1px, transparent 2px),
    radial-gradient(circle at 92% 27%, #ffde92 0 1px, transparent 2px),
    radial-gradient(circle at 48% 81%, #ffde92 0 1px, transparent 2px),
    radial-gradient(circle at 68% 8%, #ffde92 0 1px, transparent 2px),
    repeating-linear-gradient(115deg, transparent 0 6px, #09190b1a 7px 8px, transparent 9px 14px);
}

.theme-stockings .hero-copy { position: relative; z-index: 2; min-width: 0; }
.theme-stockings .season-label,
.theme-stockings .section-kicker {
  color: var(--stock-gold);
  font: 700 10px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.theme-stockings .hero .season-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  margin: 0 0 14px;
  border: 1px solid #dfc97d68;
  border-radius: 20px;
  background: #15291b5e;
}

.theme-stockings .hero .season-label::before { content: "✦"; font-size: 9px; }

.theme-stockings .hero h1 {
  max-width: 9.8em;
  margin: 0;
  color: #fff0c7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.6vw, 85px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.057em;
  text-wrap: balance;
  text-shadow: 0 4px 19px #14291cc2;
}

.theme-stockings .hero-blurb {
  max-width: 25em;
  margin: 17px 0 0;
  color: #eee7ce;
  font-size: .96rem;
  line-height: 1.55;
}

.theme-stockings .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
}

.theme-stockings .hero-actions > :first-child,
.theme-stockings .today-button {
  color: #223526;
  background: #edcf86;
  border-color: #edcf86;
}

.theme-stockings .hero-actions > :not(:first-child) {
  color: #ffebbc;
  background: #233a2b;
  border-color: #9e9560;
}

.theme-stockings .hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  height: min(25vw, 297px);
  min-height: 232px;
  align-self: end;
  color: #dbc294;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 51% 77%, #d37d465f 0%, transparent 56%),
    linear-gradient(176deg, transparent 81%, #101d12 81.5% 82.6%, #5a4935 83% 84%, #302d20 84.5% 95%, transparent 96%);
}

.theme-stockings .hero-art::before {
  position: absolute;
  z-index: -1;
  top: 25%;
  bottom: 13%;
  left: 15%;
  right: 13%;
  content: "";
  border: 10px solid #68503b;
  border-top: 12px solid #987052;
  border-radius: 49% 49% 10% 10% / 34% 34% 9% 9%;
  background:
    radial-gradient(ellipse at 48% 91%, #b74629 0%, #6b331f 18%, transparent 46%),
    repeating-linear-gradient(0deg, #3e322b 0 2px, transparent 2px 15px),
    repeating-linear-gradient(90deg, #2e3024 0 14px, #493a2d 15px 16px, #2c2b21 17px 34px);
  box-shadow: inset 0 0 0 4px #332b20, inset 0 0 27px #161914, 0 5px 0 #201f17, 0 0 0 1px #b49162;
}

.theme-stockings .hero-art::after {
  position: absolute;
  z-index: 0;
  left: 36%;
  right: 34%;
  bottom: 15%;
  height: 24%;
  content: "";
  opacity: .82;
  background:
    radial-gradient(ellipse at 50% 100%, #ffed93 0 15%, #f3a24a 28%, #e16237 49%, transparent 70%),
    radial-gradient(ellipse at 38% 94%, #e87940 0 25%, transparent 67%);
  clip-path: polygon(0 100%, 7% 67%, 23% 48%, 22% 70%, 41% 41%, 46% 2%, 60% 33%, 67% 59%, 76% 44%, 90% 66%, 97% 100%);
  filter: drop-shadow(0 2px 13px #ef8c4c);
}

.theme-stockings .hero-art .art-piece,
.theme-stockings .door-object {
  --sock-scale: 1;
  isolation: isolate;
  position: relative;
  display: block;
  flex: none;
  width: calc(55px * var(--sock-scale));
  height: calc(64px * var(--sock-scale));
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  color: #f4dca6;
}

.theme-stockings .hero-art .art-piece {
  --sock-scale: 1.65;
  position: absolute;
  z-index: 2;
  top: 23%;
  left: 22%;
  transform: rotate(-11deg);
  filter: drop-shadow(3px 5px 4px #101c14b3);
}

.theme-stockings .hero-art .art-two {
  --stock-face: #b8934c;
  --stock-shade: #785533;
  --stock-toe: #dcba72;
  left: 43%;
  top: 18%;
  z-index: 3;
  transform: rotate(7deg) scale(1.06);
}

.theme-stockings .hero-art .art-three {
  --stock-face: #788ab1;
  --stock-shade: #4a5874;
  --stock-toe: #aebed0;
  left: 64%;
  top: 25%;
  transform: rotate(15deg) scale(.93);
}

.theme-stockings .hero-art .art-piece::before,
.theme-stockings .door-object::before {
  position: absolute;
  z-index: 1;
  inset: 19% auto 18% 23%;
  width: 50%;
  content: "";
  border-radius: 11% 14% 20% 24%;
  background: repeating-linear-gradient(135deg, #fff4d914 0 1px, transparent 1px 4px),
    linear-gradient(90deg, var(--stock-shade), var(--stock-face) 28% 76%, var(--stock-shade));
  transform: rotate(7deg);
}

.theme-stockings .hero-art .art-piece::after,
.theme-stockings .door-object::after {
  position: absolute;
  z-index: 2;
  left: 21%;
  bottom: 10%;
  width: 71%;
  height: 31%;
  content: "";
  border-radius: 17% 81% 62% 52% / 44% 57% 84% 66%;
  background:
    repeating-linear-gradient(69deg, #fff1cd0f 0 1px, transparent 1px 4px),
    linear-gradient(10deg, var(--stock-shade), var(--stock-face) 60%, var(--stock-face));
  transform: rotate(-10deg);
}

.theme-stockings .hero-art .art-piece i,
.theme-stockings .door-object .detail-a {
  position: absolute;
  z-index: 5;
  inset: 13% auto auto 17%;
  width: 61%;
  height: 19%;
  border: 1px solid #f9e7bc;
  border-radius: 21% / 25%;
  background:
    repeating-linear-gradient(93deg, #9b784832 0 1px, transparent 1px 3px),
    linear-gradient(#fff3d2, #d5b887);
  box-shadow: 0 2px 2px #171b1d63;
  transform: rotate(7deg);
}

.theme-stockings .hero-art .art-piece i::before,
.theme-stockings .door-object .detail-a::before {
  position: absolute;
  z-index: -1;
  top: -61%;
  left: 13%;
  width: 21%;
  height: 71%;
  content: "";
  border: 2px solid #c5a66d;
  border-bottom: 0;
  border-radius: 60% 61% 0 0;
  transform: rotate(-14deg);
}

.theme-stockings .hero-art .art-piece b,
.theme-stockings .door-object .detail-b {
  position: absolute;
  z-index: 3;
  left: 23%;
  bottom: 14%;
  width: 23%;
  height: 24%;
  border-radius: 20% 70% 22% 48%;
  border-top: 1px dashed #fff0bd8f;
  background: var(--stock-toe);
  opacity: .69;
  transform: rotate(-4deg);
}

.theme-stockings .hero-art .art-piece em,
.theme-stockings .door-object .detail-c {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 13%;
  width: 24%;
  height: 25%;
  border-radius: 48% 65% 66% 24%;
  border-left: 1px dashed #fff0bd9f;
  background: var(--stock-toe);
  transform: rotate(-7deg);
}

.theme-stockings .calendar {
  color: var(--stock-ink);
  background: linear-gradient(180deg, #2e4331, #223529 229px);
  border-color: #5a6a4e;
  border-radius: 19px;
}

.theme-stockings .today-button:hover {
  color: #223526;
  background-color: #f4dd9e;
}
.theme-stockings .calendar-heading { gap: 10px; }
.theme-stockings .calendar-heading h2 {
  margin-top: 3px;
  color: #f5e3b8;
  font: 500 clamp(30px, 4vw, 49px)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.theme-stockings .count-badge {
  color: #f1dfaa;
  background: #364b31;
  border-color: #657551;
}

.theme-stockings .legend { color: var(--stock-muted); }
.theme-stockings .gift-feature { display: none; }

.theme-stockings .doors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.theme-stockings .door-week {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 13px 21px 15px;
  overflow: hidden;
  border: 1px solid #617054;
  border-radius: 18px;
  background: linear-gradient(165deg, #52624626, transparent 45%),
    radial-gradient(ellipse at 50% 104%, #a772442d, transparent 85%),
    #263c2d;
}

.theme-stockings .door-week:nth-child(even) { background-color: #293d2d; }
.theme-stockings .week-label {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 7px;
  color: #e8d5a0;
  font: 700 10px/1.35 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .17em;
}

.theme-stockings .door-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.theme-stockings .door-grid::before,
.theme-stockings .door-grid::after {
  position: absolute;
  z-index: -1;
  left: -24px;
  right: -24px;
  top: 31px;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(100deg, #816f4f 0 3px, #c4ac74 3px 5px, #8b7452 6px 8px);
  opacity: .83;
  box-shadow: 0 2px 5px #0f2218;
}

.theme-stockings .door-grid::after { display: none; }

.theme-stockings .door {
  appearance: none;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  grid-template-rows: 19px 64px minmax(16px, auto);
  min-width: 0;
  min-height: 110px;
  padding: 3px 2px 5px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--stock-ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.theme-stockings .door[data-style="1"] { --stock-face: #8c9e6b; --stock-shade: #4c644f; --stock-toe: #b5bf82; }
.theme-stockings .door[data-style="2"] { --stock-face: #7d91af; --stock-shade: #4b5777; --stock-toe: #afbad2; }
.theme-stockings .door[data-style="3"] { --stock-face: #b7924e; --stock-shade: #7a5838; --stock-toe: #e3bf6a; }
.theme-stockings .door[data-style="4"] { --stock-face: #b86b75; --stock-shade: #80505d; --stock-toe: #e6a699; }
.theme-stockings .door[data-style="5"] { --stock-face: #668f80; --stock-shade: #385c51; --stock-toe: #9bc0a1; }

.theme-stockings .door:nth-child(even) .door-object { transform: rotate(6deg); }
.theme-stockings .door:nth-child(odd) .door-object { transform: rotate(-5deg); }

.theme-stockings .door-date {
  position: static;
  display: block;
  align-self: center;
  color: #fff0c4;
  font: 700 15px/1 Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums;
}

.theme-stockings .door-state {
  position: static;
  display: block;
  align-self: center;
  max-width: 100%;
  color: #e6d9b8;
  font: 600 10px/1.18 ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}

.theme-stockings .door[data-state="empty"] .door-object,
.theme-stockings .door[data-state="expired"] .door-object { filter: saturate(.57); opacity: .6; }
.theme-stockings .door[data-state="expired"],
.theme-stockings .door[data-state="read"] { opacity: 1; }
.theme-stockings .door[data-state="ready"] { outline-color: #ead193a3; }
.theme-stockings .door[data-state="expired"] .door-state { color: #bec4aa; }
.theme-stockings .door[data-state="ready"] .door-state,
.theme-stockings .door[data-state="author"] .door-state { color: #ffdf95; }

.theme-stockings .door.is-today {
  border-color: #d2b369;
  background: #e5c67817;
  box-shadow: inset 0 0 0 2px #1c2e22;
}

.theme-stockings .door.is-today .door-date { color: #ffe093; }
.theme-stockings .door:focus-visible { outline: 2px solid #ffe6a7; outline-offset: 2px; }
.theme-stockings .door:active .door-object { transform: rotate(1deg) scale(.95); }

@media (hover: hover) and (pointer: fine) {
  .theme-stockings .door:hover {
    border-color: #ceb8798a;
    background-color: #edcf8611;
  }
  .theme-stockings .door:hover .door-object { transform: rotate(0) translateY(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-stockings .door-object { transition: transform 180ms ease-out, opacity 180ms ease-out; }
}

@media (max-width: 760px) {
  .theme-stockings .hero {
    display: block;
    width: calc(100% - 24px);
    min-height: 289px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .theme-stockings .hero h1 { font-size: clamp(42px, 11vw, 67px); }
  .theme-stockings .hero-blurb { max-width: 19em; font-size: .88rem; }
  .theme-stockings .hero-art {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -7px;
    width: min(50%, 280px);
    height: 65%;
    min-height: 149px;
    opacity: .77;
  }

  .theme-stockings .hero-art::before { border-width: 5px; border-top-width: 8px; }
  .theme-stockings .hero-art .art-piece { --sock-scale: .87; left: 17%; }
  .theme-stockings .hero-art .art-two { left: 39%; }
  .theme-stockings .hero-art .art-three { left: 61%; }
}

@media (max-width: 520px) {
  .theme-stockings .hero { min-height: 271px; }
  .theme-stockings .calendar { margin-top: 13px; }
  .theme-stockings .hero h1 { max-width: 10em; }
  .theme-stockings .hero-blurb { max-width: 17em; }
  .theme-stockings .hero-actions { margin-top: 15px; }
  .theme-stockings .hero-art { right: -15px; width: min(48%, 190px); height: 59%; opacity: .56; }
  .theme-stockings .door-week { padding: 12px 11px; border-radius: 15px; }
  .theme-stockings .door-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 7px; }
  .theme-stockings .door-grid::before,
  .theme-stockings .door-grid::after { left: -14px; right: -14px; top: 26px; }
  .theme-stockings .door-grid::after { display: block; top: calc(50% + 27px); }
  .theme-stockings .door { grid-template-rows: 17px 53px minmax(13px, auto); min-height: 94px; }
  .theme-stockings .door-object { --sock-scale: .87; }
}


.theme-gifts {
  --background: #0d1824;
  --foreground: #f7ead0;
  --surface: #172739;
  --muted: #a8b9c4;
  --accent: #ebc78e;
  --border: #ffffff22;
  --gold: #eec58b;
  --cream: #f8ecd3;
  --ink: #14232f;
  --mist: #a5b6c3;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 64% 10%, #274151 0, transparent 32rem),
    radial-gradient(ellipse at 5% 65%, #1e3040 0, transparent 35rem),
    #101b28;
  min-height: 100vh;
  padding-bottom: 3rem;
}

.theme-gifts .topbar {
  max-width: 1090px;
  margin-inline: auto;
  padding: 22px clamp(17px, 4vw, 42px) 15px;
  border-bottom: 1px solid #ede5ce29;
}
.theme-gifts .brand-link {
  color: var(--cream);
  letter-spacing: .025em;
  font-family: Georgia, serif;
}
.theme-gifts .brand-mark {
  color: var(--gold);
  background: #d0a86c13;
  border: 1px solid #e5bd7d46;
  border-radius: 9px;
}
.theme-gifts .language-pick {
  color: var(--cream);
  border: 1px solid #f8ecd33d;
  border-radius: 6px;
  background: #101c29;
  padding: 8px 10px;
}

.theme-gifts .hero,
.theme-gifts .calendar {
  width: min(100% - clamp(34px, 8vw, 84px), 1006px);
  margin-inline: auto;
}
.theme-gifts .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .88fr);
  align-items: center;
  min-height: 344px;
  gap: clamp(14px, 4vw, 52px);
  padding-block: 27px 21px;
}
.theme-gifts .hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
  inset: 25px 0 30px;
  background:
    radial-gradient(circle at 8% 77%, #f9d2a2a0 0 1px, transparent 1.8px),
    radial-gradient(circle at 45% 13%, #fff6ce80 0 1px, transparent 1.8px),
    radial-gradient(circle at 50% 70%, #fff6ce75 0 1px, transparent 1.7px),
    radial-gradient(circle at 83% 9%, #fff6ce90 0 1px, transparent 1.8px),
    radial-gradient(circle at 94% 51%, #fff6ce65 0 1px, transparent 1.7px);
}
.theme-gifts .hero-copy { position: relative; z-index: 1; max-width: 520px; }
.theme-gifts .season-label,
.theme-gifts .section-kicker,
.theme-gifts .feature-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.theme-gifts .season-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.theme-gifts .season-label::before {
  content: "✧";
  color: #ffe4a9;
  font-size: 17px;
  line-height: 12px;
}
.theme-gifts .hero h1,
.theme-gifts .calendar h2,
.theme-gifts .feature-copy h3 {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.theme-gifts .hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 91px);
  line-height: .98;
  letter-spacing: -.057em;
  text-wrap: balance;
}
.theme-gifts .hero h1 em { color: var(--gold); font-style: normal; }
.theme-gifts .hero-blurb {
  color: #c0ccd2;
  max-width: 340px;
  margin: 14px 0 0;
  font-size: clamp(13px, 1.9vw, 16px);
  line-height: 1.5;
  text-wrap: pretty;
}
.theme-gifts .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.theme-gifts .hero-actions > :first-child,
.theme-gifts .feature-action {
  border: 1px solid #ffe0ad;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8dca8, #e5b77c);
  color: #202a34;
  font-weight: 750;
  box-shadow: 0 5px 15px #0003;
}
.theme-gifts .hero-actions > :first-child { min-height: 40px; padding: 0 13px; }
.theme-gifts .hero-actions > :not(:first-child),
.theme-gifts .today-button {
  border: 1px solid #e1c79d58;
  border-radius: 6px;
  color: var(--cream);
  background: #223547;
}
.theme-gifts .hero-actions > :not(:first-child) { min-height: 40px; padding: 0 10px; }
.theme-gifts .hero-actions > *:hover,
.theme-gifts .feature-action:hover,
.theme-gifts .today-button:hover { filter: brightness(1.12); }

.theme-gifts .hero-art {
  position: relative;
  min-width: 0;
  display: block;
  width: 100%;
  height: 292px;
  isolation: isolate;
  pointer-events: none;
}
.theme-gifts .hero-art::before,
.theme-gifts .hero-art::after {
  content: "";
  position: absolute;
}
.theme-gifts .hero-art::before {
  z-index: -2;
  inset: 0 4% 0;
  border-radius: 47% 47% 9% 9% / 55% 55% 8% 8%;
  border: 1px solid #f1c38350;
  background:
    radial-gradient(circle at 30% 25%, #fbe2aa80 0 1px, transparent 2px),
    radial-gradient(circle at 72% 29%, #fbe2aa90 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 61%, #fff4db65 0 1px, transparent 2.1px),
    radial-gradient(circle at 16% 68%, #fff4db85 0 1px, transparent 2.1px),
    linear-gradient(112deg, transparent 27%, #ffffff0c 27.1% 47%, transparent 47.1% 51%, #ffffff06 51.1% 56%, transparent 56.1%),
    radial-gradient(ellipse at 49% 22%, #a8885c58, transparent 78%),
    #192d3e;
  box-shadow: inset 0 0 0 6px #09192555, inset 0 -9px 19px #090f1799, 0 9px 24px #060d1640;
}
.theme-gifts .hero-art::after {
  z-index: -1;
  bottom: 8%;
  left: 11%;
  right: 11%;
  height: 9%;
  background: #070f1a99;
  filter: blur(9px);
  border-radius: 50%;
}
.theme-gifts .art-piece {
  position: absolute;
  display: block;
  border: 1px solid #f5d9b76d;
  border-radius: 4px;
  box-shadow: inset 5px 0 #ffffff15, inset -7px -5px #0002, 3px 11px 17px #070e1a80;
  background: var(--print, linear-gradient(136deg, var(--paper-light), var(--paper)));
  transform: rotate(var(--turn));
  transform-origin: 50% 95%;
}
.theme-gifts .art-one {
  --paper: #791f3a; --paper-light: #c95f70; --ribbon: #e9ab76; --ribbon-hi: #fae0ab;
  --print: repeating-linear-gradient(128deg, #fcd5a922 0 2px, transparent 2px 13px), linear-gradient(138deg, #d16f7a, #761d3c 85%);
  --turn: -12deg;
  width: 34%; height: 43%; left: 16%; bottom: 14%;
}
.theme-gifts .art-two {
  --paper: #225e5e; --paper-light: #81ad96; --ribbon: #ddad6e; --ribbon-hi: #fbdf9b;
  --print: radial-gradient(circle at 3px 3px, #f4d9a57a 0 1px, transparent 1.4px) 0 0 / 13px 13px, linear-gradient(134deg, #7c9f81, #255856 85%);
  --turn: 9deg;
  width: 34%; height: 54%; left: 49%; bottom: 17%;
}
.theme-gifts .art-three {
  --paper: #8a553b; --paper-light: #ecd2a1; --ribbon: #8f3244; --ribbon-hi: #b84d5d;
  --turn: -1deg;
  z-index: 2;
  width: 30%; height: 29%; left: 42%; bottom: 9%;
}

.theme-gifts .art-piece > i,
.theme-gifts .art-piece > b,
.theme-gifts .art-piece > em,
.theme-gifts .door-object > i,
.theme-gifts .door-object > b,
.theme-gifts .door-object > em {
  position: absolute;
  display: block;
  font-style: normal;
  pointer-events: none;
}
.theme-gifts .art-piece > i,
.theme-gifts .door-object > .detail-a {
  inset: 0 auto 0 44%;
  width: 16%;
  background: linear-gradient(90deg, var(--ribbon), var(--ribbon-hi) 45%, var(--ribbon));
  box-shadow: 1px 0 #0002, -1px 0 #ffeac750;
}
.theme-gifts .art-piece > b,
.theme-gifts .door-object > .detail-b {
  left: -3%;
  right: -3%;
  top: 0;
  height: 22%;
  background:
    linear-gradient(90deg, transparent 44%, var(--ribbon-hi) 44.3% 60.7%, transparent 61%),
    linear-gradient(180deg, #ffe7c456, #20191b30);
  border-radius: 3px 3px 0 0;
  border: 1px solid #f6dbb241;
  box-shadow: 0 2px 1px #22131c57;
}
.theme-gifts .art-piece > em,
.theme-gifts .door-object > .detail-c {
  left: 44%;
  top: -6%;
  width: 17%;
  height: 14%;
  z-index: 1;
  background: linear-gradient(135deg, var(--ribbon-hi), var(--ribbon));
  border-radius: 40%;
  box-shadow: 0 1px #0003;
}
.theme-gifts .art-piece > em::before,
.theme-gifts .art-piece > em::after,
.theme-gifts .door-object > .detail-c::before,
.theme-gifts .door-object > .detail-c::after {
  position: absolute;
  content: "";
  width: 169%;
  height: 86%;
  top: -42%;
  border: .105em solid var(--ribbon-hi);
  background: linear-gradient(140deg, #fff1c5a0, var(--ribbon) 70%);
  z-index: -1;
}
.theme-gifts .art-piece > em::before,
.theme-gifts .door-object > .detail-c::before {
  right: 56%;
  border-radius: 61% 71% 25% 60%;
  transform: rotate(26deg);
}
.theme-gifts .art-piece > em::after,
.theme-gifts .door-object > .detail-c::after {
  left: 62%;
  border-radius: 71% 61% 60% 25%;
  transform: rotate(-26deg);
}

.theme-gifts .calendar {
  position: relative;
  border: 1px solid #f7dbab36;
  border-radius: 11px;
  padding: clamp(12px, 2.6vw, 27px);
  background: radial-gradient(ellipse at 50% -20%, #355064, #142434 65%);
  box-shadow: 0 8px 27px #060c1555, inset 0 0 0 3px #0c19268f;
}
.theme-gifts .calendar-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  align-items: end;
  justify-content: space-between;
}
.theme-gifts .calendar h2 {
  font-size: clamp(25px, 4vw, 45px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 2px 0 0;
}
.theme-gifts .section-kicker { margin: 0; }
.theme-gifts .calendar-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}
.theme-gifts .count-badge {
  color: var(--gold);
  background: #d8ac6830;
  border: 1px solid #f1bc6941;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.theme-gifts .today-button {
  min-height: 30px;
  padding: 4px 8px;
  white-space: nowrap;
}
.theme-gifts .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 9px 0 11px;
  color: #b3c2ce;
  font-size: 10px;
}

.theme-gifts .gift-feature {
  display: grid;
  grid-template-columns: minmax(120px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(13px, 3vw, 32px);
  border: 1px solid #b9976570;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 15px;
  min-height: 161px;
  background:
    linear-gradient(109deg, transparent 23%, #fff8de0a 23.5% 40%, transparent 40.5% 47%, #fff8de0a 47.5% 51%, transparent 51.5%),
    radial-gradient(ellipse at 24% 5%, #af8a5861, transparent 63%),
    #1b2e3e;
  box-shadow: inset 0 0 0 3px #0d1c2975;
}
.theme-gifts .gift-feature[hidden] { display: none; }
.theme-gifts .feature-copy { padding: 14px 16px 14px 0; }
.theme-gifts .feature-kicker { margin: 0 0 4px; }
.theme-gifts .feature-copy h3 { font-size: clamp(21px, 3.2vw, 41px); line-height: 1.04; margin: 0; letter-spacing: -.035em; }
.theme-gifts .feature-copy p { color: #c2ced4; margin: 5px 0 9px; font-size: 12px; line-height: 1.35; }
.theme-gifts .feature-action { min-height: 32px; padding: 5px 10px; font-size: 11px; }

.theme-gifts .doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.theme-gifts .door-week {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid #a4bdcb2a;
  border-radius: 6px;
  background: #0b1926a9;
}
.theme-gifts .week-label {
  color: #c5bdab;
  margin: 0 0 6px;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.theme-gifts .door-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.theme-gifts .door {
  --paper: #853851;
  --paper-light: #d0838c;
  --ribbon: #c59259;
  --ribbon-hi: #f8dca2;
  --turn: -5deg;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(26px, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 77px;
  padding: 4px 2px;
  border: 1px solid #e4dcbb30;
  border-radius: 4px;
  background: linear-gradient(150deg, #325063, #152637 75%);
  color: var(--cream);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.theme-gifts .door[data-style="1"] {
  --paper: #41746a; --paper-light: #9bc0a0; --ribbon: #b18a56; --ribbon-hi: #f2d39d;
  --print: radial-gradient(circle at 2px 2px, #f9e9a96a 0 .65px, transparent 1.2px) 0 0 / 6px 6px, linear-gradient(133deg, #a0be9f, #3f736d);
  --turn: 5deg; --gift-width: 58%; --gift-ratio: .91;
}
.theme-gifts .door[data-style="2"] {
  --paper: #65527d; --paper-light: #b3a3cf; --ribbon: #92a3c4; --ribbon-hi: #e9e2fb;
  --turn: -6deg; --gift-width: 75%; --gift-ratio: 1.43;
}
.theme-gifts .door[data-style="3"] {
  --paper: #936d46; --paper-light: #e9cc9c; --ribbon: #88465c; --ribbon-hi: #ca7280;
  --print: repeating-linear-gradient(129deg, #f4dca95c 0 1.25px, transparent 1.25px 5px), linear-gradient(145deg, #e2c295, #8d6152 100%);
  --turn: 4deg; --gift-width: 55%; --gift-ratio: .79;
}
.theme-gifts .door[data-style="4"] {
  --paper: #48667f; --paper-light: #a0bdce; --ribbon: #b98d58; --ribbon-hi: #f2d39a;
  --print: radial-gradient(circle at 4px 3px, #fbdba988 0 1px, transparent 1.6px) 0 0 / 9px 7px, linear-gradient(130deg, #96bbce, #42647f);
  --turn: -4deg; --gift-width: 68%; --gift-ratio: 1.22;
}
.theme-gifts .door[data-style="5"] {
  --paper: #8e3136; --paper-light: #e38476; --ribbon: #bbc298; --ribbon-hi: #ece8b8;
  --turn: 8deg; --gift-width: 60%; --gift-ratio: 1.2;
}
.theme-gifts .door-date {
  color: #f3deba;
  font-size: 10px;
  line-height: 1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.theme-gifts .door-object {
  position: relative;
  display: block;
  width: var(--gift-width, 64%);
  max-width: 52px;
  aspect-ratio: var(--gift-ratio, 1.16);
  background: var(--print, linear-gradient(135deg, var(--paper-light), var(--paper)));
  border: 1px solid #f7dfb66b;
  border-radius: 3px;
  box-shadow: inset 2px 0 #ffffff1c, inset -3px -2px #0002, 0 4px 6px #0005;
  transform: rotate(var(--turn)) translateY(1px);
  transform-origin: 50% 89%;
  transition: transform .2s;
}
.theme-gifts .door-state {
  color: #d3dbe0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  line-height: 1;
}
.theme-gifts .door[data-state="empty"] .door-object { opacity: .78; }
.theme-gifts .door[data-state="expired"] { background: #142433; }
.theme-gifts .door[data-state="expired"] .door-object { opacity: .58; filter: saturate(.65); }
.theme-gifts .door[data-state="read"] .door-object { filter: saturate(.8); }
.theme-gifts .door[data-state="ready"] { border-color: #efd0978c; }
.theme-gifts .door[data-state="author"] { border-color: #abd7b18c; }
.theme-gifts .door.is-today {
  border-color: #efc68c;
  background: radial-gradient(ellipse at 50% 15%, #7460449c, transparent 80%), #1c3245;
  box-shadow: inset 0 0 0 1px #f4d2a22f, 0 0 11px #f7ca8936;
}
.theme-gifts .door:focus-visible { outline: 2px solid #ffe2aa; outline-offset: 2px; }
.theme-gifts .door:hover .door-object { transform: rotate(0) translateY(-2px); }
.theme-gifts .door:hover { border-color: #ffd88fc7; }
.theme-gifts .feature-door {
  min-height: 159px;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 50% 77%, #f3c77c25, transparent 67%);
}
.theme-gifts .feature-door.is-today {
  background: radial-gradient(ellipse at 50% 67%, #fde5b833, transparent 67%);
  box-shadow: none;
}
.theme-gifts .feature-door .door-date,
.theme-gifts .feature-door .door-state {
  position: absolute;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 4px;
  background: #142332dc;
  color: #f8dfb0;
}
.theme-gifts .feature-door .door-date { top: 11%; left: 9%; font-size: 10px; }
.theme-gifts .feature-door .door-state { right: 8%; bottom: 9%; font-size: 9px; }
.theme-gifts .feature-door .door-object {
  grid-row: 2;
  width: 48%;
  max-width: 115px;
  max-height: 102px;
  rotate: -2deg;
  box-shadow: inset 3px 0 #fff3, inset -6px -3px #0003, 1px 9px 12px #0b1220ad;
}

@media (max-width: 700px) {
  .theme-gifts .topbar { padding-block: 14px 11px; }
  .theme-gifts .hero { min-height: 250px; grid-template-columns: minmax(0, 1fr) minmax(108px, .6fr); gap: 8px; padding-block: 18px 12px; }
  .theme-gifts .hero h1 { font-size: clamp(32px, 8.8vw, 52px); }
  .theme-gifts .hero-art { height: 196px; }
  .theme-gifts .doors { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 430px) {
  .theme-gifts .hero { min-height: 224px; grid-template-columns: minmax(0, 1fr) 32%; }
  .theme-gifts .hero-art { height: 156px; }
  .theme-gifts .hero-art::before { inset-inline: -1%; }
  .theme-gifts .hero h1 { font-size: clamp(30px, 8.9vw, 38px); }
  .theme-gifts .hero-blurb { margin-top: 8px; font-size: 12px; }
  .theme-gifts .season-label { margin-bottom: 8px; font-size: 9px; }
  .theme-gifts .hero-actions { margin-top: 9px; gap: 5px; }
  .theme-gifts .hero-actions > :first-child,
  .theme-gifts .hero-actions > :not(:first-child) { min-height: 34px; padding-inline: 7px; font-size: 11px; }
  .theme-gifts .calendar { padding: 10px; }
  .theme-gifts .calendar-actions { gap: 4px; }
  .theme-gifts .count-badge, .theme-gifts .today-button { padding-inline: 6px; }
  .theme-gifts .gift-feature { min-height: 123px; grid-template-columns: minmax(104px, .76fr) minmax(0, 1.24fr); gap: 8px; }
  .theme-gifts .feature-copy { padding: 9px 8px 9px 0; }
  .theme-gifts .feature-copy p { font-size: 11px; }
  .theme-gifts .feature-door .door-object { width: 56%; }
  .theme-gifts .door-week { padding: 6px; }
  .theme-gifts .door-grid { gap: 4px; }
  .theme-gifts .door { min-height: 70px; }
  .theme-gifts .feature-door { min-height: 121px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-gifts .door, .theme-gifts .door-object { transition: none; }
}


.theme-gifts .doors .door { grid-template-rows:1fr; }
.theme-gifts .doors .door-object { margin-top:7px; }
.theme-gifts .doors .door::after {
  position:absolute; right:5px; bottom:5px; width:5px; height:5px;
  border:1px solid #acb9c4; border-radius:50%; content:"";
}
.theme-gifts .doors .door[data-state=sealed]::after {background:#acb9c4;}
.theme-gifts .doors .door[data-state=ready]::after {border-color:#ffda9b;background:#ffda9b;}
.theme-gifts .doors .door[data-state=read]::after {border-color:#ffda9b;}
.theme-gifts .doors .door[data-state=expired]::after {opacity:.3;}
@media (max-width:430px) {
  .theme-envelopes .hero .hero-actions {width:min(320px, calc(100vw - 44px));}
  .theme-stockings .hero {min-height:0;padding-block:18px 16px;}
  .theme-stockings .hero-blurb {margin-block:12px 0;}
  .theme-stockings .door {grid-template-rows:16px 45px minmax(12px, auto);min-height:82px;}
  .theme-stockings .door-object {--sock-scale:.77;}
  .theme-gifts .hero h1 {font-size:clamp(28px,8.4vw,36px);}
  .theme-gifts .doors .door {min-height:62px;}
}

.reveal {
  position:relative; width:104px; height:65px; margin:10px auto 14px; isolation:isolate;
  perspective:220px;
}
.reveal > i,.reveal > b,.reveal > em {
  display:block; position:absolute; transform-origin:50% 88%;
}
.reveal .reveal-paper {
  z-index:2; width:45px; height:34px; top:20px; left:30px;
  border:1px solid #e0c9ae; border-radius:3px;
  background:repeating-linear-gradient(0deg,#d7a583 0 1px,transparent 1px 6px) center / 55% 50% no-repeat,#fff6de;
  box-shadow:0 2px 5px #63372222;
  animation:extract-note 270ms 25ms cubic-bezier(.22,.85,.33,1) both;
}
@keyframes extract-note {
  from {transform:translateY(9px) rotate(-3deg); opacity:.15;}
  to {transform:translateY(-20px) rotate(-7deg); opacity:1;}
}
.reveal-envelopes .reveal-shell {
  z-index:3; top:21px; left:11px; width:82px; height:38px;
  border:1px solid #9c2c40; border-radius:4px;
  background:linear-gradient(34deg,#ffffff25 47%,transparent 48%),
    linear-gradient(-34deg,#ffffff19 47%,transparent 48%),#b54457;
  clip-path:polygon(0 0,50% 42%,100% 0,100% 100%,0 100%);
}
.reveal-envelopes .reveal-cap {
  z-index:1; top:21px; left:11px; width:82px; height:32px;
  background:linear-gradient(#b64455,#8b263e);
  border:1px solid #862a41; border-radius:4px;
  clip-path:polygon(0 0,100% 0,50% 92%);
  transform-origin:50% 0;
  animation:lift-flap 240ms cubic-bezier(.22,.85,.33,1) both;
}
@keyframes lift-flap {from{transform:rotateX(0);}to{transform:rotateX(-156deg);}}

.reveal-stockings .reveal-shell {
  z-index:3; top:20px; left:31px; width:44px; height:42px;
  background:repeating-linear-gradient(135deg,#ffffff14 0 1px,transparent 1px 5px),#a2403c;
  border-radius:4px 4px 16px 15px; transform:rotate(-8deg);
}
.reveal-stockings .reveal-shell::after {
  content:""; position:absolute; bottom:0; right:-16px; width:31px; height:20px;
  background:linear-gradient(90deg,#a2403c,#cb7464);border-radius:5px 13px 12px 5px;
}
.reveal-stockings .reveal-cap {
  z-index:4; top:18px; left:28px; width:48px; height:11px;
  border:1px solid #b7a787; border-radius:3px;
  background:repeating-linear-gradient(90deg,#ecdfbb 0 2px,#dacba9 2px 4px);
  animation:tip-cuff 220ms ease-out both;
}
@keyframes tip-cuff {
  from {transform:rotate(-8deg);}
  48% {transform:rotate(-15deg) translateY(-2px);}
  to {transform:rotate(-8deg);}
}

.reveal-gifts .reveal-shell {
  z-index:3; left:26px; top:25px; width:53px; height:36px;
  border:1px solid #788db2; border-radius:4px;
  background:linear-gradient(90deg,transparent 43%,#e6bf83 44% 57%,transparent 58%),
    radial-gradient(circle,#9eb8d3 0 1px,transparent 1.5px) 0 0 / 8px 8px,#405e9d;
}
.reveal-gifts .reveal-cap {
  z-index:4; left:24px; top:20px; width:58px; height:12px;
  border:1px solid #9aafd1; border-radius:4px;
  background:linear-gradient(90deg,transparent 42%,#ebc58a 43% 57%,transparent 58%),#627db4;
  animation:lift-lid 280ms cubic-bezier(.22,.85,.33,1) both;
}
@keyframes lift-lid {
  from {transform:translateY(0) rotate(0);}
  to {transform:translate(19px,-19px) rotate(19deg);}
}


/* Shared date layout. Each calendar week keeps its six dates on one row. */
:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(5px, 1vw, 10px);
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .door-week {
  display: block;
  min-width: 0;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .week-label {
  display: none;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door {
  --print-glint: #fff3cf94;
  --print-soft: #fff4d348;
  --print-red: #8b223cba;
  --print-green: #26523b9e;
  --motif: none;
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  height: clamp(60px, 10vw, 105px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  padding: 9px 2px 4px;
  border-radius: 6px;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door-date {
  position: absolute;
  z-index: 3;
  inset: 5px auto auto 6px;
  color: inherit;
  font: 750 clamp(10px, 1.35vw, 14px)/1 Georgia, serif;
  font-variant-numeric: tabular-nums;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door-state {
  display: none;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door::after {
  position: absolute;
  z-index: 3;
  inset: auto 5px 5px auto;
  width: 5px;
  height: 5px;
  content: '';
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  opacity: .65;
  pointer-events: none;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-state='sealed']::after {
  background: currentColor;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door:is([data-state='ready'], [data-state='read'], [data-state='author'])::after {
  color: var(--accent);
  opacity: 1;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-state='ready']::after {
  background: currentColor;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 38%, transparent);
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-state='author']::after {
  border-style: dashed;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-state='expired']::after {
  opacity: .28;
}

/* Cut-paper snow, candy stripes, baubles, holly, foil stars and woven plaid. */
:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='0'] {
  --motif:
    linear-gradient(0deg, transparent 43%, var(--print-soft) 46% 54%, transparent 57%) 0 0 / 11px 11px,
    linear-gradient(60deg, transparent 45%, var(--print-soft) 46% 54%, transparent 55%) 0 0 / 11px 11px,
    linear-gradient(-60deg, transparent 45%, var(--print-soft) 46% 54%, transparent 55%) 0 0 / 11px 11px,
    radial-gradient(circle, var(--print-glint) 0 1.3px, transparent 1.7px) 0 0 / 11px 11px;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='1'] {
  --motif: repeating-linear-gradient(132deg, transparent 0 5px, var(--print-glint) 5.5px 7px, transparent 7.5px 9px, var(--print-soft) 9.5px 10px, transparent 10.5px 14px);
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='2'] {
  --motif:
    radial-gradient(circle at 5px 7px, var(--print-glint) 0 1.7px, var(--print-soft) 2px 2.6px, transparent 3px) 0 0 / 11px 12px,
    radial-gradient(circle at 4.5px 6.3px, #f9e6c5b0 0 .5px, transparent .8px) 0 0 / 11px 12px,
    radial-gradient(ellipse at 5px 2.5px, var(--print-glint) 0 .7px, transparent 1px) 0 0 / 11px 12px;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='3'] {
  --motif:
    radial-gradient(circle at 6px 6px, var(--print-red) 0 1px, transparent 1.4px) 0 0 / 13px 10px,
    radial-gradient(circle at 7px 7.5px, var(--print-red) 0 1px, transparent 1.4px) 0 0 / 13px 10px,
    radial-gradient(ellipse at 3.5px 4.6px, var(--print-green) 0 2px, transparent 2.4px) 0 0 / 13px 10px,
    radial-gradient(ellipse at 9.8px 5.4px, var(--print-green) 0 2.2px, transparent 2.6px) 0 0 / 13px 10px;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='4'] {
  --motif:
    radial-gradient(ellipse at 50% 50%, var(--print-glint) 0 12%, transparent 16%) 0 0 / 13px 10px,
    repeating-conic-gradient(from 0deg, transparent 0 40deg, var(--print-soft) 42deg 48deg, transparent 50deg 90deg) 0 0 / 13px 10px,
    radial-gradient(circle, var(--print-glint) 0 .7px, transparent 1.3px) 5px 4px / 13px 10px;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door[data-style='5'] {
  --motif:
    repeating-linear-gradient(90deg, transparent 0 3px, var(--print-glint) 3px 4px, transparent 4px 9px, var(--print-red) 9px 11px, transparent 11px 13px),
    repeating-linear-gradient(0deg, transparent 0 4px, var(--print-soft) 4px 6px, transparent 6px 9px, var(--print-glint) 9px 10px, transparent 10px 13px);
}

.theme-envelopes .doors .door {
  color: #78333b;
}

.theme-envelopes .doors .door-object {
  width: 78%;
  height: auto;
  max-width: 105px;
  background: var(--motif), linear-gradient(155deg, #ffe8bc34, transparent 52%), var(--env-face);
  box-shadow: 0 4px 5px #75413832, inset 0 1px var(--env-line);
}

.theme-envelopes .doors .door-object::after {
  background: linear-gradient(145deg, #fff2cd62, transparent 43%), var(--env-fold);
  clip-path: polygon(0 0, 100% 0, 67% 48%, 59% 56%, 50% 60%, 41% 56%, 33% 48%);
}

.theme-envelopes .doors .door-object .detail-a {
  background: radial-gradient(ellipse at 34% 22%, #fff5cf85, transparent 57%), var(--env-seal);
  box-shadow: inset 0 0 0 1px var(--env-line), 0 1px 2px #58292475;
}

.theme-envelopes .doors .door:is([data-state='empty'], [data-state='expired']) .door-object {
  --print-glint: #b286745e;
  --print-soft: #c2a08035;
  --print-red: #a67b7259;
  --print-green: #687c5f61;
}

.theme-stockings .door-week {
  padding: 3px 4px;
  border-radius: 9px;
}

.theme-stockings .door-grid::before {
  inset: 24px 0 auto;
}

.theme-stockings .door-grid::after {
  display: none;
}

.theme-stockings .doors .door {
  color: #fff0c4;
}

.theme-stockings .doors .door-date {
  color: #fff0c4;
}

.theme-stockings .doors .door-object {
  --sock-scale: .92;
  filter: drop-shadow(1px 3px 2px #09170e90);
}

.theme-stockings .doors .door-object::before {
  background: var(--motif), linear-gradient(90deg, var(--stock-shade), var(--stock-face) 28% 76%, var(--stock-shade));
}

.theme-stockings .doors .door-object::after {
  background: var(--motif), linear-gradient(10deg, var(--stock-shade), var(--stock-face) 60%);
}

.theme-stockings .doors .door-object .detail-a {
  border-radius: 18% 18% 25% 22%;
  background:
    radial-gradient(ellipse at 50% 100%, #f8e8c9 0 25%, transparent 33%) 0 100% / 5px 72% repeat-x,
    repeating-linear-gradient(93deg, #a172453a 0 1px, transparent 1px 3px),
    linear-gradient(#fff3d2, #d5b887);
}

.theme-gifts .door-week {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.theme-gifts .doors .door {
  color: #f3deba;
}

.theme-gifts .doors .door-object {
  width: var(--gift-width, 66%);
  max-width: 58px;
  margin-top: 6px;
  background: var(--motif), linear-gradient(138deg, var(--paper-light), var(--paper) 77%);
  box-shadow: inset 1px 1px #ffffff55, inset -3px -2px #0002, 0 4px 7px #0006;
}

.theme-gifts .doors .door-object .detail-b {
  box-shadow: inset 0 1px #fff7cc95, 0 2px 2px #0004;
}

.theme-gifts .gift-feature {
  min-height: 114px;
}

.theme-gifts .gift-feature .feature-door {
  min-height: 106px;
}

/* Premium wraps add a small foil stamp without consuming a date or state label. */
.door[data-wrap='gold'] { --wrap-foil: #e7b967; --wrap-mark: '✦'; }
.door[data-wrap='snow'] { --wrap-foil: #d9f1f3; --wrap-mark: '❄'; }
.door[data-wrap='aurora'] { --wrap-foil: #b1e9d1; --wrap-mark: '≈'; }
.door[data-wrap='santa'] { --wrap-foil: #ea9c9d; --wrap-mark: '★'; }
.door[data-wrap='sleigh'] { --wrap-foil: #d3c0ef; --wrap-mark: '➶'; }
.door[data-wrap='cocoa'] { --wrap-foil: #e3b995; --wrap-mark: '♨'; }

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .door:is([data-wrap='gold'], [data-wrap='snow'], [data-wrap='aurora'], [data-wrap='santa'], [data-wrap='sleigh'], [data-wrap='cocoa'])::before {
  position: absolute;
  z-index: 4;
  inset: 4px 4px auto auto;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  content: var(--wrap-mark);
  color: #422d32;
  font: 750 9px/1 Georgia, serif;
  border: 1px solid #ffefd4b0;
  border-radius: 50%;
  background: linear-gradient(150deg, #fff9e1be, transparent 45%), var(--wrap-foil);
  box-shadow: 0 1px 4px #2b131a5e, inset 0 0 0 1px #70553c45;
  pointer-events: none;
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door:is([data-wrap='gold'], [data-wrap='snow'], [data-wrap='aurora'], [data-wrap='santa'], [data-wrap='sleigh'], [data-wrap='cocoa']) {
  border-color: color-mix(in srgb, var(--wrap-foil) 65%, #865e3f);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wrap-foil) 50%, transparent), 0 0 10px color-mix(in srgb, var(--wrap-foil) 16%, transparent);
}

:is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door.is-today {
  outline-offset: 1px;
}

@media (max-width: 620px) {
  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .topbar {
    padding: 9px 13px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero {
    width: calc(100% - 20px);
    min-height: 0;
    padding: 16px 13px 14px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero h1 {
    font-size: clamp(28px, 9.15vw, 49px);
    overflow-wrap: anywhere;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero-blurb {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero .hero-actions {
    gap: 5px;
    margin-top: 9px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero-actions .action {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .theme-envelopes .hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }

  .theme-envelopes .hero-art {
    align-self: center;
    margin-block: 0;
  }

  .theme-stockings .hero .season-label,
  .theme-gifts .hero .season-label {
    margin-bottom: 7px;
  }

  .theme-stockings .hero .season-label {
    padding: 4px 6px;
    font-size: 8px;
  }

  .theme-stockings .hero h1 {
    max-width: 9em;
  }

  .theme-stockings .hero-blurb {
    max-width: 21ch;
  }

  .theme-stockings .hero-art {
    min-height: 120px;
    opacity: .71;
  }

  .theme-gifts .hero {
    grid-template-columns: minmax(0, 1.58fr) minmax(0, .92fr);
    gap: 4px;
  }

  .theme-gifts .hero .hero-actions {
    width: min(285px, calc(100vw - 46px));
  }

  .theme-gifts .hero-art {
    min-height: 0;
    height: 126px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .calendar {
    width: calc(100% - 20px);
    margin-top: 9px;
    padding: 8px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .calendar-heading {
    gap: 4px;
    margin-bottom: 6px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .calendar-heading h2 {
    font-size: clamp(21px, 6.35vw, 35px);
    overflow-wrap: anywhere;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .calendar-actions {
    flex: 0 0 auto;
    gap: 3px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .count-badge,
  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .today-button {
    padding-inline: 5px;
    font-size: 9px;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .legend {
    gap: 3px 8px;
    margin: 0 0 6px;
    font-size: 9px;
  }

  .theme-gifts .gift-feature {
    display: none;
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .doors .door {
    height: clamp(50px, 14.8vw, 78px);
  }

  .theme-stockings .doors .door-object {
    --sock-scale: .63;
  }

  .theme-stockings .door-grid::before {
    inset-block-start: 20px;
  }
}

@media (max-width: 350px) {
  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .hero .hero-actions {
    width: min(280px, 88vw);
  }

  :is(.theme-envelopes, .theme-stockings, .theme-gifts) .calendar-actions {
    flex-wrap: wrap;
    max-width: 47%;
  }

  .theme-stockings .doors .door-object {
    --sock-scale: .55;
  }
}

/* Empty dates remain inviting while their dashed edges signal that they can be filled. */
.theme-envelopes .doors .door[data-state='empty'] {
  border-style: dashed;
}

.theme-envelopes .doors .door[data-style='0'] { --empty-paper: #e4b2a8; --empty-flap: #c38380; }
.theme-envelopes .doors .door[data-style='1'] { --empty-paper: #ead3a5; --empty-flap: #c6a575; }
.theme-envelopes .doors .door[data-style='2'] { --empty-paper: #bfd2b5; --empty-flap: #8da285; }
.theme-envelopes .doors .door[data-style='3'] { --empty-paper: #e4bc9f; --empty-flap: #be9074; }
.theme-envelopes .doors .door[data-style='4'] { --empty-paper: #d9b3bd; --empty-flap: #b4869c; }
.theme-envelopes .doors .door[data-style='5'] { --empty-paper: #cbd5de; --empty-flap: #9cabbf; }

.theme-envelopes .doors .door[data-state='empty'] .door-object {
  --env-face: var(--empty-paper);
  --env-fold: var(--empty-flap);
  --env-seal: #e8c49c;
}

.theme-stockings .doors .door[data-state='empty'] .door-object {
  filter: saturate(.82) drop-shadow(1px 3px 2px #09170e90);
  opacity: .78;
}


.wrap-scene {
  --ws-ease: var(--ease-out, cubic-bezier(.23, 1, .32, 1));
  box-sizing: border-box;
  isolation: isolate;
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, 370px);
  height: clamp(104px, 33vw, 140px);
  margin-inline: auto;
  border: 1px solid #ffffff32;
  border-radius: 15px;
  pointer-events: none;
}

.wrap-scene *,
.wrap-scene *::before,
.wrap-scene *::after { box-sizing: border-box; }
.wrap-scene span, .wrap-scene i, .wrap-scene b, .wrap-scene em { position: absolute; display: block; }

.wrap-scene .ws-stars { inset: 0; }
.wrap-scene .ws-stars i {
  top: var(--y);
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ws-star, #fff5cf);
  opacity: .72;
}
.wrap-scene .ws-stars i:nth-child(3n) {
  width: 8px;
  height: 8px;
  border-radius: 0;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.wrap-scene[data-effect="classic"] {
  background: radial-gradient(ellipse at 52% 87%, #f6d6b5, transparent 65%), #faead8;
  border-color: #e4c4a9;
}
.wrap-scene .ws-paper {
  bottom: 32%;
  left: calc(50% - 31px);
  width: 62px;
  height: 53px;
  border: 1px solid #debca7;
  border-radius: 4px;
  transform: rotate(8deg);
  background: repeating-linear-gradient(#fff8e8 0 8px, #d8ac9135 8px 9px);
  box-shadow: 0 4px 10px #82573924;
}
.wrap-scene .ws-paper i {
  top: 8px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d96d62;
  opacity: .75;
}
.wrap-scene .ws-envelope {
  left: calc(50% - 47px);
  bottom: 19%;
  width: 94px;
  height: 53px;
  overflow: hidden;
  border: 1px solid #d49e83;
  border-radius: 5px;
  background: #e5b698;
  transform: rotate(-5deg);
  box-shadow: 0 8px 16px #986a4f54;
}
.wrap-scene .ws-envelope i {
  inset: 0;
  background: #f8ddbc;
  clip-path: polygon(0 100%, 0 19%, 50% 64%, 100% 19%, 100% 100%);
}
.wrap-scene .ws-envelope b {
  top: 45%;
  left: 45%;
  width: 15px;
  height: 15px;
  border: 2px solid #de9a8f;
  border-radius: 50%;
  background: #b85453;
  box-shadow: inset 0 0 0 2px #a84045, 0 2px 4px #85433c54;
}

.wrap-scene[data-effect="gold"] {
  --ws-star: #fbe7a2;
  background:
    radial-gradient(ellipse at 50% 110%, #b27122, transparent 70%),
    linear-gradient(127deg, #242016, #483417 55%, #19170f);
}
.wrap-scene .ws-gold-halo {
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffd67772, transparent 65%);
}
.wrap-scene .ws-gold-gift {
  left: calc(50% - 37px);
  bottom: 17%;
  height: 58px;
  width: 74px;
  transform: rotate(-6deg);
  filter: drop-shadow(4px 8px 7px #422608a6);
}
.wrap-scene .ws-gold-gift i {
  inset: 17% 0 0;
  border: 1px solid #ffe7a6;
  border-radius: 5px;
  background: repeating-linear-gradient(130deg, #fff0a8b0 0 1px, transparent 1px 4px),
    linear-gradient(106deg, #8c5d18, #edbc5a 29%, #ffe99d 51%, #bb7e25 65%, #efce72 79%, #aa6e1e);
}
.wrap-scene .ws-gold-gift b {
  inset: 15% 42% -1%;
  border-inline: 1px solid #fcdda9;
  background: linear-gradient(93deg, #b0792b, #ffe3a0 50%, #a9742f);
}
.wrap-scene .ws-gold-gift em {
  top: -2px;
  left: 26%;
  width: 49%;
  height: 23%;
  border: 3px solid #ffe3a0;
  border-radius: 58% 53% 35% 42%;
  background: #b68139;
  box-shadow: inset 0 0 0 1px #805222;
  transform: rotate(9deg);
}
.wrap-scene .ws-foil-shine {
  inset: -40% 0;
  opacity: .21;
  background: linear-gradient(114deg, transparent 41%, #ffe0972a 46%, #fff0ba8c 50%, #ffdd8d19 55%, transparent 59%);
  transform: translateX(9%);
}

.wrap-scene[data-effect="snow"] {
  --ws-star: #f0fdff;
  background: radial-gradient(ellipse at 46% 78%, #a6d3e0 4%, #4385a7 60%, #204e72 93%);
}
.wrap-scene .ws-hills {
  inset: 46% -5% 0;
  background:
    radial-gradient(ellipse at 61% 112%, #e3f4f8 0 59%, transparent 60%),
    radial-gradient(ellipse at 28% 142%, #8fb9ce 0 65%, transparent 66%);
}
.wrap-scene .ws-pines { inset: 0; }
.wrap-scene .ws-pines i {
  bottom: 13%;
  left: 12%;
  width: 35px;
  height: 52px;
  background: linear-gradient(#85a5ad, #406d83);
  clip-path: polygon(49% 0, 63% 27%, 57% 27%, 74% 54%, 66% 54%, 98% 91%, 56% 91%, 56% 100%, 43% 100%, 43% 91%, 0 91%, 31% 54%, 24% 54%, 42% 27%, 35% 27%);
}
.wrap-scene .ws-pines i:nth-child(2) { left: 21%; bottom: 11%; transform: scale(.69); }
.wrap-scene .ws-pines i:nth-child(3) { left: 77%; bottom: 15%; transform: scale(.85); }
.wrap-scene .ws-pines i:nth-child(4) { left: 69%; bottom: 11%; transform: scale(.52); }
.wrap-scene .ws-pines i:nth-child(5) { left: 88%; bottom: 9%; transform: scale(.62); }
.wrap-scene .ws-snowflake {
  top: calc(46% - 29px);
  left: calc(50% - 29px);
  width: 58px;
  height: 58px;
  background:
    linear-gradient(90deg, transparent 47%, #e6f9ff 48% 52%, transparent 53%),
    linear-gradient(30deg, transparent 47%, #f4fbff 48% 52%, transparent 53%),
    linear-gradient(150deg, transparent 47%, #f4fbff 48% 52%, transparent 53%);
  clip-path: polygon(50% 0, 62% 29%, 95% 24%, 75% 50%, 95% 76%, 62% 71%, 50% 100%, 38% 71%, 5% 76%, 25% 50%, 5% 24%, 38% 29%);
}

.wrap-scene[data-effect="aurora"] {
  --ws-star: #d9f5f4;
  background: radial-gradient(ellipse at 15% 96%, #214a67, #12283b 58%, #17182d);
}
.wrap-scene .ws-aurora-ribbons { inset: -11% -5% 20%; overflow: hidden; }
.wrap-scene .ws-aurora-ribbons i {
  top: 3%;
  left: -2%;
  width: 109%;
  height: 57%;
  border-radius: 48% 45% 41% 47%;
  border-bottom: 8px solid #79e4c0;
  transform: rotate(-11deg) skewX(-21deg);
  filter: blur(4px);
  box-shadow: 0 6px 13px #25dbb7, 0 15px 25px #54c3cb5e;
}
.wrap-scene .ws-aurora-ribbons i:nth-child(2) {
  top: 21%;
  left: 11%;
  transform: rotate(4deg) skewX(15deg);
  border-color: #b4b7ff;
  box-shadow: 0 5px 13px #9c7df2a6;
  opacity: .79;
}
.wrap-scene .ws-aurora-ribbons i:nth-child(3) {
  top: -10%;
  left: 11%;
  transform: rotate(-19deg) skewX(9deg);
  border-color: #c282d8;
  box-shadow: 0 5px 12px #cc80d782;
  opacity: .65;
}
.wrap-scene .ws-mountains {
  inset: 47% -2% 13%;
  background: linear-gradient(178deg, #536482, #121d30 81%);
  clip-path: polygon(0 76%, 14% 38%, 20% 56%, 32% 19%, 37% 28%, 41% 47%, 46% 28%, 53% 67%, 68% 23%, 75% 7%, 83% 42%, 86% 38%, 100% 75%, 100% 100%, 0 100%);
}
.wrap-scene .ws-aurora-lake {
  inset: 81% 0 0;
  background: radial-gradient(ellipse at 44% 18%, #55a9927d, #111d34d9 66%);
}

.wrap-scene[data-effect="santa"] {
  --ws-star: #fddab4;
  background: radial-gradient(ellipse at 50% 112%, #af4d46, #662b3a 66%, #49283a);
}
.wrap-scene .ws-santa-glow {
  inset: 10% 20% -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ff96384a, transparent 70%);
}
.wrap-scene .ws-santa {
  left: calc(50% - 49px);
  bottom: 6%;
  width: 98px;
  height: 108px;
  transform-origin: 50% 100%;
  filter: drop-shadow(2px 4px 7px #3c1a29ae);
}
.wrap-scene .ws-santa-coat {
  bottom: 0;
  inset-inline: 4%;
  height: 39%;
  border: 2px solid #f4d2b9;
  border-radius: 46% 46% 12% 12%;
  background: linear-gradient(90deg, #9f3545, #e26755 55%, #a33041);
}
.wrap-scene .ws-santa-beard {
  bottom: 7%;
  inset-inline: 12%;
  height: 54%;
  border-radius: 31% 39% 54% 50%;
  background: radial-gradient(ellipse at 42% 37%, #fffdf1, #ebd5c5 88%);
}
.wrap-scene .ws-santa-face {
  bottom: 35%;
  inset-inline: 22%;
  height: 34%;
  border-radius: 39% 41% 46% 48%;
  background: radial-gradient(ellipse at 23% 69%, #d97976 1%, transparent 22%),
    radial-gradient(ellipse at 77% 69%, #d97976 1%, transparent 22%), #f6b68d;
}
.wrap-scene .ws-santa-eyes {
  left: 36%;
  bottom: 54%;
  width: 5px;
  height: 6px;
  border-radius: 50%;
  background: #563547;
  box-shadow: 23px 0 #563547;
}
.wrap-scene .ws-santa-nose {
  left: 45%;
  bottom: 43%;
  width: 12px;
  height: 9px;
  border-radius: 50%;
  background: #e4847c;
  box-shadow: 0 2px #b66064;
}
.wrap-scene .ws-santa-mustache {
  bottom: 34%;
  left: 25%;
  width: 50%;
  height: 13%;
  border-radius: 49% 55% 48% 50%;
  border-bottom: 2px solid #dfbfae;
  background: linear-gradient(8deg, #f6e6d3, #fff8ec);
}
.wrap-scene .ws-santa-hat {
  top: 3%;
  left: 13%;
  width: 74%;
  height: 38%;
  border-radius: 64% 50% 4% 8% / 87% 56% 9% 14%;
  transform: rotate(-15deg);
  background: linear-gradient(113deg, #a53141, #d94f50 64%, #ea7868);
}
.wrap-scene .ws-santa-brim {
  top: 33%;
  left: 14%;
  width: 68%;
  height: 11%;
  border-radius: 28% / 55%;
  transform: rotate(-6deg);
  background: linear-gradient(#fff8ee, #ead2c5);
}
.wrap-scene .ws-santa-pom {
  top: 5%;
  left: 77%;
  width: 18%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 37%, #fff8ed, #e8c7b8 89%);
}

.wrap-scene[data-effect="sleigh"] {
  --ws-star: #fff2ba;
  background: radial-gradient(ellipse at 44% 104%, #684871, #322d55 62%, #20263f);
}
.wrap-scene .ws-moon {
  top: 11%;
  right: 17%;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 38%, #fff4bc, #ddac76);
  box-shadow: 0 0 13px #efc38275;
}
.wrap-scene .ws-rooftops {
  inset: 71% -1% 0;
  background: #232439;
  clip-path: polygon(0 34%, 7% 12%, 14% 41%, 23% 31%, 23% 19%, 26% 19%, 27% 34%, 37% 58%, 45% 46%, 54% 60%, 68% 33%, 71% 33%, 71% 12%, 76% 12%, 76% 35%, 87% 60%, 95% 39%, 100% 56%, 100% 100%, 0 100%);
}
.wrap-scene .ws-sleigh-team {
  top: 29%;
  left: calc(50% - 106px);
  width: 212px;
  height: 58px;
  transform: rotate(-9deg);
}
.wrap-scene .ws-reins {
  top: 57%;
  left: 34%;
  width: 58%;
  border-top: 1px solid #f8d3a2;
  transform: rotate(-11deg);
}
.wrap-scene .ws-sleigh { left: 3%; bottom: 0; width: 73px; height: 41px; }
.wrap-scene .ws-sleigh-bucket {
  inset: 30% 3% 19% 3%;
  border: 2px solid #e7af70;
  border-top-color: #ffe3ad;
  border-radius: 11% 34% 47% 42% / 14% 42% 65% 70%;
  background: linear-gradient(#b9585f, #963a52 80%);
}
.wrap-scene .ws-sleigh-presents {
  inset: 0 38% 42% 10%;
  border-radius: 6% 6% 30% 11%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent 37%, #f7d08c 38% 49%, transparent 50%), #c9776c;
  box-shadow: 10px 4px 0 -2px #779481;
}
.wrap-scene .ws-sleigh-runner {
  inset: 69% -3% 6%;
  border: 2px solid #f0c28b;
  border-top: none;
  border-radius: 0 0 68% 37%;
}
.wrap-scene .ws-deer {
  --ws-deer: #d4a581;
  top: 4%;
  left: 46%;
  width: 56px;
  height: 46px;
  transform: rotate(-3deg);
}
.wrap-scene .ws-deer:last-child { top: -9%; left: 73%; transform: rotate(2deg) scale(.96); }
.wrap-scene .ws-deer-body {
  inset: 42% 24% 27% 10%;
  border-radius: 49% 40% 42% 49%;
  background: var(--ws-deer);
}
.wrap-scene .ws-deer-body::before {
  position: absolute;
  top: 17%;
  left: -10%;
  width: 20%;
  height: 26%;
  content: "";
  border-radius: 50%;
  background: #f0c6a0;
  transform: rotate(22deg);
}
.wrap-scene .ws-deer-neck {
  left: 59%;
  top: 28%;
  width: 21%;
  height: 41%;
  border-radius: 40%;
  background: var(--ws-deer);
  transform: rotate(29deg);
}
.wrap-scene .ws-deer-head {
  top: 20%;
  left: 65%;
  width: 33%;
  height: 23%;
  border-radius: 50% 66% 50% 39%;
  background: var(--ws-deer);
  transform: rotate(10deg);
}
.wrap-scene .ws-deer-head::after {
  position: absolute;
  inset: 21% -7% 19% auto;
  width: 25%;
  content: "";
  border-radius: 50%;
  background: #9c645d;
}
.wrap-scene .ws-deer-antlers {
  top: -9%;
  left: 62%;
  width: 31%;
  height: 43%;
  background: #efd1a4;
  clip-path: polygon(57% 100%, 45% 63%, 17% 44%, 0 12%, 9% 8%, 27% 34%, 41% 45%, 37% 7%, 49% 2%, 56% 47%, 75% 25%, 83% 0, 93% 5%, 87% 34%, 62% 62%, 72% 100%);
}
.wrap-scene .ws-deer-foreleg, .wrap-scene .ws-deer-hindleg {
  top: 60%;
  left: 63%;
  width: 23%;
  height: 34%;
  background: var(--ws-deer);
  clip-path: polygon(0 0, 29% 0, 56% 45%, 97% 31%, 100% 51%, 39% 67%);
}
.wrap-scene .ws-deer-hindleg { left: 13%; transform: rotate(45deg); }

.wrap-scene[data-effect="cocoa"] {
  background: radial-gradient(ellipse at 50% 102%, #ac6548, #664142 61%, #49363d);
}
.wrap-scene .ws-cocoa-glow {
  inset: -5% 8% -12%;
  background: radial-gradient(ellipse, #deb08457, transparent 65%);
}
.wrap-scene .ws-cocoa-table {
  inset: 73% 0 0;
  background: repeating-linear-gradient(1deg, #633d3d 0 7px, #563638 8px 9px, #794941 10px 14px);
  opacity: .73;
}
.wrap-scene .ws-mug {
  left: calc(50% - 46px);
  bottom: 16%;
  width: 84px;
  height: 59px;
  filter: drop-shadow(4px 9px 6px #36202996);
}
.wrap-scene .ws-mug i {
  left: 62%;
  top: 19%;
  width: 35%;
  height: 46%;
  border: 6px solid #dfb391;
  border-radius: 27% 54% 44% 21%;
  transform: rotate(-6deg);
}
.wrap-scene .ws-mug b {
  inset: 8% 25% 0 0;
  border-radius: 17% 17% 27% 27%;
  border: 1px solid #edc3a3;
  background: repeating-linear-gradient(135deg, #fff4cc00 0 8px, #f8cfaf37 8px 11px, #fff4cc00 11px 21px),
    linear-gradient(92deg, #a14949, #e07e68 53%, #b85954);
}
.wrap-scene .ws-mug em {
  inset: 0 25% auto 0;
  height: 23%;
  border: 3px solid #f4d1aa;
  border-radius: 50%;
  background: radial-gradient(circle at 63% 44%, #ebcc9b 0 8%, transparent 10%),
    radial-gradient(circle at 43% 62%, #e4c393 0 9%, transparent 11%), #784039;
}
.wrap-scene .ws-cookie {
  left: calc(50% + 23px);
  bottom: 13%;
  width: 45px;
  height: 37px;
  border: 2px solid #a8633f;
  border-radius: 45% 51% 52% 51%;
  transform: rotate(-16deg);
  background: radial-gradient(ellipse at 37% 37%, #efbe82, #bd784e 83%);
  box-shadow: 3px 4px 4px #3a262e96;
}
.wrap-scene .ws-cookie i {
  inset: 0;
  background: radial-gradient(circle at 23% 25%, #844d40 0 7%, transparent 9%),
    radial-gradient(circle at 63% 21%, #75423a 0 8%, transparent 10%),
    radial-gradient(circle at 77% 58%, #794439 0 8%, transparent 10%),
    radial-gradient(circle at 42% 68%, #874b3c 0 10%, transparent 12%),
    radial-gradient(circle at 18% 66%, #81473c 0 7%, transparent 9%),
    radial-gradient(circle at 57% 42%, #a66247 0 6%, transparent 8%);
}
.wrap-scene .ws-steam { left: calc(50% - 35px); bottom: 62%; width: 46px; height: 38px; }
.wrap-scene .ws-steam i {
  left: 7px;
  bottom: 0;
  width: 10px;
  height: 24px;
  border-left: 2px solid #f2cdb1;
  border-radius: 50%;
  transform: rotate(-14deg);
  opacity: .53;
}
.wrap-scene .ws-steam i:nth-child(2) { left: 20px; bottom: 3px; height: 30px; transform: rotate(13deg); }
.wrap-scene .ws-steam i:nth-child(3) { left: 30px; bottom: -2px; height: 20px; transform: rotate(-16deg); }

@media (prefers-reduced-motion: no-preference) {
  .wrap-scene[data-animate="true"] .ws-stars i { animation: ws-twinkle .8s var(--ws-ease) var(--d) both; }
  .wrap-scene[data-animate="true"] .ws-paper { animation: ws-letter .59s var(--ws-ease) both; }
  .wrap-scene[data-animate="true"] .ws-foil-shine { animation: ws-foil 1.14s var(--ws-ease) both; }
  .wrap-scene[data-effect="snow"][data-animate="true"] .ws-stars i { animation: ws-snow 1.35s var(--ws-ease) var(--d) both; }
  .wrap-scene[data-animate="true"] .ws-aurora-ribbons { animation: ws-aurora 1.46s ease-in-out both; }
  .wrap-scene[data-animate="true"] .ws-santa { animation: ws-santa .69s var(--ws-ease) both; }
  .wrap-scene[data-animate="true"] .ws-sleigh-team { animation: ws-sleigh 1.37s var(--ws-ease) both; }
  .wrap-scene[data-animate="true"] .ws-steam { animation: ws-steam 1.44s var(--ws-ease) both; }
}

@keyframes ws-twinkle {
  0% { opacity: .34; transform: scale(.92); }
  39% { opacity: 1; transform: scale(1.24); }
  100% { opacity: .72; transform: none; }
}
@keyframes ws-letter {
  0% { opacity: .25; transform: translateY(47%) rotate(2deg); }
  100% { opacity: 1; transform: rotate(8deg); }
}
@keyframes ws-foil {
  0% { opacity: 0; transform: translateX(-60%); }
  54% { opacity: .88; }
  100% { opacity: .21; transform: translateX(9%); }
}
@keyframes ws-snow {
  0% { opacity: 0; transform: translate(-9px, -31px); }
  31% { opacity: .88; }
  100% { opacity: .72; transform: none; }
}
@keyframes ws-aurora {
  0% { opacity: .36; transform: translateX(-12%) skewX(8deg); }
  56% { opacity: 1; transform: translateX(2%) skewX(-3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes ws-santa {
  0% { opacity: 0; transform: translateY(24%) rotate(-9deg) scale(.91); }
  68% { opacity: 1; transform: translateY(-3%) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes ws-sleigh {
  0% { opacity: .15; transform: translate(-28px, 12px) rotate(-3deg); }
  100% { opacity: 1; transform: rotate(-9deg); }
}
@keyframes ws-steam {
  0% { opacity: 0; transform: translateY(35%); }
  60% { opacity: .68; }
  100% { opacity: 1; transform: none; }
}


.wrap-tools {
  display:flex; gap:8px; flex-wrap:wrap; justify-content:space-between; align-items:center;
  margin:0 0 9px; padding:0 0 7px; border-bottom:1px solid var(--line);
}
.wrap-launch {
  color:var(--ink); background:var(--panel); border:1px solid var(--line); border-radius:5px;
  padding:5px 8px; min-height:30px; font-size:11px; font-weight:700; text-align:left;
}
.wrap-launch::before {content:"✦";color:var(--accent);margin-right:6px;}
.snow-balance {
  display:inline-flex; align-items:center; gap:5px; color:inherit;
  font-size:11px; font-weight:700;
}
.snow-balance > span:first-child { color:var(--accent); font-size:14px; line-height:1; }
.theme-stockings .wrap-launch {background:#203429;color:#fff0c4;border-color:#8b845a;}
.theme-gifts .wrap-launch {background:#172a3c;color:#f5e3c3;border-color:#7a7c76;}
.theme-stockings .wrap-tools {border-color:#6c7857;color:#ede4bf;}
.theme-gifts .wrap-tools {border-color:#595e61;color:#f0dfbe;}
.theme-stockings .wrap-launch::before, .theme-stockings .snow-balance > span:first-child,
.theme-gifts .wrap-launch::before, .theme-gifts .snow-balance > span:first-child { color:#efc987; }

.wrap-lab {display:grid;gap:11px;}
.wrap-lab .modal-help {margin:0;}
.wrap-lab-preview {min-width:0;}
.wrap-preview-stage {min-width:0;}
.wrap-preview-caption {
  display:flex;justify-content:space-between;align-items:center;gap:7px;
  padding:2px 0 0;color:var(--muted);font-size:11px;
}
.wrap-preview-caption > span:first-child {font-weight:700;}
.wrap-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.wrap-option {
  display:grid;align-content:center;justify-items:center;gap:3px;
  min-height:63px;min-width:0;padding:4px 3px;background:#fffefa;text-align:center;
  border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:10px;line-height:1.1;
}
.wrap-option[aria-pressed=true] {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
.wrap-option .wrap-glyph {font-size:17px;line-height:1.1;color:var(--accent);}
.wrap-option small {color:var(--muted);font-size:10px;}
.wrap-packs, .wrap-compose { border:1px solid var(--line);border-radius:7px;padding:6px 8px; }
.wrap-packs > summary, .wrap-compose > summary {font-size:12px;font-weight:700;cursor:pointer;padding:3px 0;}
.wrap-packs p {margin:5px 0 7px;line-height:1.35;}
.pack-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
.pack-options .action {padding:5px 3px;font-size:10px;display:grid;gap:0;line-height:1.2;}
.wrap-compose-meta {margin:5px 0;}
.wrap-compose > .text-button {margin:4px 0;}
.wrap-compose .wrap-scene {max-height:106px;}
.wrap-compose .wrap-packs {padding:4px 5px;}
.earned-snowflake {color:var(--muted);font-size:12px;margin:8px 0 0;}
.earned-snowflake::before {content:"❄";color:var(--accent);padding-right:5px;}
.premium-opening + .letter-sheet {animation-delay:330ms;}


/* The maker pairs a quiet form with the live calendar it controls. */
.theme button.brand-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.builder-shell {
  --builder-surface: #fcf3e7;
  --builder-preview: #fffbf2;
  --builder-ink: #55222a;
  --builder-muted: #72534d;
  --builder-accent: #92283c;
  --builder-on-accent: #fff9ed;
  --builder-rule: #d7bfae;
  --builder-field: #fffaf1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(16px, 2.7vw, 42px);
  width: min(calc(100% - 56px), 1260px);
  margin: clamp(18px, 4vw, 60px) auto 0;
}

.theme-stockings .builder-shell {
  --builder-surface: #263a2c;
  --builder-preview: #26382c;
  --builder-ink: #fff0cd;
  --builder-muted: #d2c9a9;
  --builder-accent: #eccb80;
  --builder-on-accent: #263420;
  --builder-rule: #768160;
  --builder-field: #1e3126;
}

.theme-gifts .builder-shell {
  --builder-surface: #1c3040;
  --builder-preview: #1c3040;
  --builder-ink: #fff0d4;
  --builder-muted: #c8cbd0;
  --builder-accent: #efc88d;
  --builder-on-accent: #202b38;
  --builder-rule: #647581;
  --builder-field: #132737;
}

.builder-panel {
  min-width: 0;
  color: var(--builder-ink);
  background: var(--builder-surface);
  border-top: 3px solid var(--builder-accent);
  border-radius: 3px 3px 10px 10px;
  padding: clamp(18px, 3vw, 42px);
  box-shadow: 0 8px 34px #2918200e;
}

.builder-heading {
  margin-bottom: clamp(21px, 3vw, 34px);
}

.builder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--builder-accent);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.builder-kicker::before {
  width: 17px;
  height: 1px;
  content: '';
  background: currentColor;
}

.builder-heading h1 {
  max-width: 13ch;
  margin: .18em 0 .26em;
  color: var(--builder-ink);
  font: 500 clamp(36px, 4.8vw, 75px)/.95 Georgia, serif;
  letter-spacing: -.071em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.builder-intro {
  max-width: 38ch;
  margin: 0;
  color: var(--builder-muted);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.5;
}

.builder-form {
  display: grid;
  gap: 19px;
  min-width: 0;
}

.builder-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.builder-field label,
.builder-field span,
.builder-themes legend {
  color: var(--builder-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
}

.builder-field label {
  display: grid;
  gap: 7px;
}

.builder-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 12px;
  color: var(--builder-ink);
  border: 1px solid var(--builder-rule);
  border-radius: 6px;
  background: var(--builder-field);
  font-size: 16px;
  line-height: 1.3;
  outline-offset: 2px;
}

.builder-field input::placeholder {
  color: var(--builder-muted);
  opacity: .78;
}

.builder-field input:focus-visible,
.builder-theme:focus-visible,
.builder-submit:focus-visible,
.builder-code:focus-visible {
  outline: 2px solid var(--builder-accent);
  outline-offset: 2px;
}

.builder-themes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-themes legend {
  margin: 0 0 9px;
  padding: 0;
}

.builder-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.builder-theme {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding: 4px 4px 7px;
  border: 1px solid var(--builder-rule);
  border-radius: 7px;
  color: var(--builder-ink);
  background: var(--builder-field);
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.builder-theme[aria-pressed='true'] {
  border-color: var(--builder-accent);
  background: color-mix(in srgb, var(--builder-accent) 9%, var(--builder-field));
  box-shadow: inset 0 0 0 1px var(--builder-accent);
}

.builder-theme[aria-pressed='true']::after {
  position: absolute;
  z-index: 4;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--builder-on-accent);
  background: var(--builder-accent);
  content: '✓';
  font: 750 10px/1 system-ui, sans-serif;
  pointer-events: none;
}

.builder-theme-label {
  align-self: center;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 740;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.builder-swatch {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: clamp(43px, 5vw, 68px);
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
}

.builder-swatch .swatch-piece {
  position: absolute;
  inset: 0;
}

.builder-swatch .swatch-piece > :is(b, i) {
  position: absolute;
  display: block;
  transition: translate 180ms ease;
}

.builder-swatch[data-theme='envelopes'] {
  background:
    radial-gradient(circle at 17% 23%, #c48876 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 71%, #c48876 0 1px, transparent 1.5px),
    linear-gradient(150deg, #f8e9d3, #ebc8b7);
}

.builder-swatch[data-theme='envelopes'] .swatch-piece > :is(b, i) {
  width: 43%;
  height: 47%;
  border: 1px solid #7c3442;
  border-radius: 2px;
  background: linear-gradient(31deg, #ffffff39 0 44%, transparent 45%), #bf6873;
  box-shadow: 0 3px 4px #712c3c30;
}

.builder-swatch[data-theme='envelopes'] .swatch-piece > :is(b, i)::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(#f1b9ae71, transparent 50%), #86283e;
  clip-path: polygon(0 0, 100% 0, 50% 61%);
}

.builder-swatch[data-theme='envelopes'] .swatch-piece > b {
  left: 17%;
  top: 21%;
  transform: rotate(-22deg);
}

.builder-swatch[data-theme='envelopes'] .swatch-piece > i {
  left: 40%;
  top: 26%;
  background-color: #d59184;
  transform: rotate(17deg);
}

.builder-swatch[data-theme='stockings'] {
  background: radial-gradient(ellipse at 50% 100%, #d28d4d42, transparent 62%), #273e2e;
}

.builder-swatch[data-theme='stockings'] .swatch-piece > :is(b, i) {
  --sock-swatch: #b9574b;
  width: 21%;
  height: 50%;
  top: 26%;
  left: 22%;
  border-radius: 4px 4px 7px 7px;
  background: repeating-linear-gradient(45deg, #fdf0d82d 0 1px, transparent 1px 3px), var(--sock-swatch);
  box-shadow: 0 3px 3px #071d1269;
  transform: rotate(-13deg);
}

.builder-swatch[data-theme='stockings'] .swatch-piece > :is(b, i)::before,
.builder-swatch[data-theme='stockings'] .swatch-piece > :is(b, i)::after {
  position: absolute;
  content: '';
}

.builder-swatch[data-theme='stockings'] .swatch-piece > :is(b, i)::before {
  z-index: 1;
  inset: 0 -7% auto;
  height: 25%;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #caaf7e 0 1px, #f9edbe 1px 3px);
}

.builder-swatch[data-theme='stockings'] .swatch-piece > :is(b, i)::after {
  right: -51%;
  bottom: 0;
  width: 111%;
  height: 40%;
  border-radius: 0 9px 8px 3px;
  background: repeating-linear-gradient(45deg, #fdf0d82d 0 1px, transparent 1px 3px), var(--sock-swatch);
}

.builder-swatch[data-theme='stockings'] .swatch-piece > i {
  --sock-swatch: #9d895a;
  top: 20%;
  left: 40%;
  transform: rotate(-1deg);
}

.builder-swatch[data-theme='gifts'] {
  background:
    radial-gradient(circle at 16% 76%, #f2d3a4 0 .7px, transparent 1.4px),
    radial-gradient(circle at 80% 15%, #f2d3a4 0 .7px, transparent 1.4px),
    radial-gradient(ellipse at 52% 76%, #65758a, #20394c 73%);
}

.builder-swatch[data-theme='gifts'] .swatch-piece > :is(b, i) {
  --gift-swatch: #a54b66;
  top: 40%;
  left: 18%;
  width: 31%;
  height: 42%;
  border: 1px solid #f7dbac67;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 42%, #edc688 44% 59%, transparent 61%),
    linear-gradient(0deg, transparent 57%, #ebc082 59% 71%, transparent 73%),
    repeating-linear-gradient(133deg, #ffebcb36 0 1px, transparent 1px 5px),
    var(--gift-swatch);
  box-shadow: 2px 3px 5px #142130ad, inset 0 1px #fff1ce68;
  transform: rotate(-15deg);
}

.builder-swatch[data-theme='gifts'] .swatch-piece > :is(b, i)::before {
  position: absolute;
  left: 36%;
  top: -24%;
  width: 32%;
  height: 26%;
  content: '';
  border: 2px solid #edc688;
  border-radius: 55% 43% 30% 42%;
  transform: rotate(-12deg);
}

.builder-swatch[data-theme='gifts'] .swatch-piece > i {
  --gift-swatch: #548077;
  top: 28%;
  left: 45%;
  transform: rotate(13deg);
}

@media (hover: hover) and (pointer: fine) {
  .builder-theme:hover {
    border-color: var(--builder-accent);
  }

  .builder-theme:hover .builder-swatch .swatch-piece > :is(b, i) {
    translate: 0 -2px;
  }
}

.builder-submit {
  width: 100%;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid var(--builder-accent);
  border-radius: 6px;
  color: var(--builder-on-accent);
  background: var(--builder-accent);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
  transition: filter 150ms ease, transform 150ms ease;
}

.builder-submit:hover { filter: brightness(1.07); }
.builder-submit:active { transform: translateY(1px); }

.builder-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 7px;
  padding: 1px 0;
  border: 0;
  color: var(--builder-accent);
  background: none;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.builder-foot {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--builder-rule);
  color: var(--builder-muted);
  font-size: 12px;
  line-height: 1.42;
}

.theme .builder-shell .builder-calendar {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: clamp(13px, 2.1vw, 28px);
  border: 1px solid var(--builder-rule);
  border-radius: 12px;
  box-shadow: 0 13px 42px #26182017;
}

.theme-envelopes .builder-shell .builder-calendar {
  background: linear-gradient(148deg, #fffdf5, var(--builder-preview) 58%);
}

.builder-calendar .calendar-heading {
  align-items: baseline;
  margin-bottom: 9px;
}

.theme .builder-calendar .builder-month {
  margin: 0;
  color: var(--builder-ink);
  font: 500 clamp(29px, 3.3vw, 51px)/1 Georgia, serif;
  letter-spacing: -.063em;
  overflow-wrap: anywhere;
}

.builder-preview-label {
  flex: 0 1 auto;
  color: var(--builder-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}

.builder-preview-label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: var(--builder-accent);
  content: '';
  vertical-align: 1px;
}

.builder-calendar .wrap-tools {
  margin-block: 0 10px;
  border-color: var(--builder-rule);
}

.theme .builder-calendar .door-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .theme .builder-calendar .doors .door {
    height: clamp(65px, 7.4vw, 100px);
  }

  .theme-envelopes .builder-calendar .doors .door-object {
    width: 79%;
    max-width: 110px;
  }

  .theme-stockings .builder-calendar .doors .door-object {
    --sock-scale: 1.02;
  }

  .theme-gifts .builder-calendar .doors .door-object {
    max-width: 80px;
  }
}

@media (max-width: 759px) {
  .builder-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 24px);
    max-width: 590px;
    margin-top: 10px;
  }

  .builder-panel {
    padding: 12px 14px 15px;
  }

  .builder-heading {
    margin-bottom: 13px;
  }

  .builder-heading h1 {
    max-width: 20ch;
    margin-bottom: .21em;
    font-size: clamp(32px, 8.3vw, 51px);
    text-wrap: pretty;
  }

  .builder-intro {
    font-size: 12px;
  }

  .builder-form {
    gap: 11px;
  }

  .builder-field,
  .builder-field label {
    gap: 4px;
  }

  .builder-field input {
    min-height: 39px;
    padding-block: 6px;
  }

  .builder-themes legend {
    margin-bottom: 6px;
  }

  .builder-theme {
    gap: 4px;
    padding-bottom: 5px;
  }

  .builder-submit {
    min-height: 40px;
  }

  .builder-foot {
    padding-top: 8px;
  }

  .theme .builder-shell .builder-calendar {
    padding: 8px;
  }

  .theme .builder-calendar .doors .door {
    height: clamp(48px, 13.4vw, 72px);
  }

  .builder-calendar .calendar-heading {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-theme,
  .builder-swatch .swatch-piece > :is(b, i),
  .builder-submit {
    transition: none;
  }
}


.theme[data-view=builder] .brand-link, .theme[data-view=calendar] .brand-link {
  border:0; padding:0; background:transparent;
}
.builder-field > span { font-size:13px; font-weight:750; }
.theme-envelopes .doors .door-object:has(.door-ornament) { overflow:visible; }
.theme-envelopes .door-object:has(.door-ornament) .detail-a,
.theme-envelopes .door-object:has(.door-ornament) .detail-b { opacity:.16; }
:is(.theme-envelopes, .theme-gifts) .door-object .door-ornament {
  position:absolute; z-index:4; top:55%; left:50%; width:57%; max-width:49px;
  aspect-ratio:1; transform:translate(-50%,-33%) rotate(3deg);
  background-image:var(--door-ornament-image);
  background-size:400% 400%; background-position:var(--ornament-x) var(--ornament-y);
  background-repeat:no-repeat; filter:drop-shadow(0 1px 1px #632a2044);
  pointer-events:none;
}
/* Charms sit on the box front, below the lid and bow. */
.theme-gifts .door-object .door-ornament {
  top:50%; left:56%; width:70%; max-width:38px;
  filter:drop-shadow(0 1px 1px #101a23a8);
}
.theme-gifts .door:nth-child(even) .door-ornament {
  left:46%; transform:translate(-50%,-33%) rotate(-4deg);
}
.theme-envelopes .door:nth-child(even) .door-ornament { transform:translate(-50%,-33%) rotate(-3deg); }
.theme-envelopes .door[data-state=expired] .door-ornament { opacity:.68; }
.theme-envelopes .builder-calendar .door .door-object {
  width:90%; max-width:124px;
  box-shadow:0 4px 5px #7b493234, inset 0 1px var(--env-line);
}
.theme-envelopes .builder-calendar .doors .door-date {
  top:4px; left:50%; transform:translateX(-50%); color:#61393c; z-index:5;
}
.theme-envelopes .builder-calendar .doors .door {padding-top:12px;}
.theme-envelopes .builder-calendar .door-object::after {
  background:linear-gradient(165deg,#ffffff7a,#fff3d91a 68%),var(--env-fold);
}
@media (max-width:490px) {
  .theme-envelopes .builder-calendar .doors .door-date {top:3px;font-size:9px;}
  .theme-envelopes .builder-calendar .door .door-object {width:94%;}
  .theme-envelopes .door-object .door-ornament {width:64%;max-width:36px;}
}


.door-pop {
  --door-pop-ease: var(--ease-out, cubic-bezier(.23, 1, .32, 1));
  --door-pop-palette: #f2c5a6;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff7e8;
  background: transparent;
  box-shadow: none;
}
.door-pop[open] { display: grid; place-items: center; animation: none; }
.door-pop[data-effect="gold"] { --door-pop-palette: #ffdb86; }
.door-pop[data-effect="snow"] { --door-pop-palette: #b6e9f8; }
.door-pop[data-effect="aurora"] { --door-pop-palette: #97e9cd; }
.door-pop[data-effect="santa"] { --door-pop-palette: #f0a58c; }
.door-pop[data-effect="sleigh"] { --door-pop-palette: #e2c4ff; }
.door-pop[data-effect="cocoa"] { --door-pop-palette: #ebbb91; }
.door-pop::backdrop {
  background: #141222a8;
  backdrop-filter: none;
  animation: door-pop-backdrop .32s ease-out both;
}
.door-pop .door-pop-glow {
  position: absolute;
  z-index: 0;
  width: min(90vw, 530px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--door-pop-palette), transparent 70%);
  opacity: .32;
  animation: door-pop-glow .93s var(--door-pop-ease) both;
}
.door-pop .door-pop-stage {
  position: relative;
  z-index: 2;
  width: min(84vw, 480px);
  border: 1px solid var(--door-pop-palette);
  border-radius: 22px;
  box-shadow: 0 16px 60px #0906169c;
  transform-origin: 50% 50%;
  animation: door-pop-stage .56s var(--door-pop-ease) .21s both;
}
.door-pop .door-pop-stage .wrap-scene {
  width: 100%;
  height: clamp(146px, 45vw, 188px);
  border: 0;
  border-radius: 21px;
}
.door-pop .door-pop-package {
  position: absolute;
  z-index: 3;
  top: calc(50% - 36px);
  left: calc(50% - 52px);
  width: 104px;
  height: 72px;
  filter: drop-shadow(0 9px 13px #190f216b);
  animation: door-pop-package .7s var(--door-pop-ease) both;
}
.door-pop .door-pop-package i,
.door-pop .door-pop-package b,
.door-pop .door-pop-package em { position: absolute; display: block; }

.door-pop[data-theme="envelopes"] .door-pop-package {
  overflow: hidden;
  border: 1px solid #dca382;
  border-radius: 8px;
  background: linear-gradient(#f0c79f, #dca281);
}
.door-pop[data-theme="envelopes"] .door-pop-package i {
  inset: 0;
  background: linear-gradient(158deg, #ffe6bf, #ecc697);
  clip-path: polygon(0 100%, 0 15%, 50% 59%, 100% 15%, 100% 100%);
}
.door-pop[data-theme="envelopes"] .door-pop-package b {
  inset: 0 0 25%;
  background: linear-gradient(170deg, #f9cfaa, #e3ab85);
  clip-path: polygon(0 0, 100% 0, 98% 24%, 50% 84%, 2% 24%);
}
.door-pop[data-theme="envelopes"] .door-pop-package em {
  top: calc(57% - 10px);
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid #d5897b;
  border-radius: 50%;
  background: linear-gradient(130deg, #bf6764, #923d50);
}

.door-pop[data-theme="stockings"] .door-pop-package i {
  inset: 15% 37% 13% 23%;
  border-radius: 13% 9% 21% 35%;
  background: repeating-linear-gradient(120deg, #f8cba71a 0 1px, transparent 1px 4px),
    linear-gradient(98deg, #9a3c45, #c96764 61%, #8c3449);
  transform: rotate(12deg);
}
.door-pop[data-theme="stockings"] .door-pop-package b {
  inset: 62% 18% 8% 23%;
  border-radius: 20% 63% 57% 32%;
  background: linear-gradient(100deg, #91374b, #c76e6b 61%, #e1a18d 63%);
  transform: rotate(-14deg);
}
.door-pop[data-theme="stockings"] .door-pop-package em {
  inset: 14% 30% 63% 19%;
  border: 1px solid #f9dec0;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, #f4d3af 0 2px, #e8bd97 2px 3px);
  transform: rotate(9deg);
}

.door-pop[data-theme="gifts"] .door-pop-package i {
  inset: 32% 6% 0;
  border: 1px solid #dc9185;
  border-radius: 5px;
  background: repeating-linear-gradient(133deg, #f9c09926 0 1px, transparent 1px 4px),
    linear-gradient(132deg, #bd5160, #a64057);
}
.door-pop[data-theme="gifts"] .door-pop-package b {
  inset: 28% 0 auto;
  height: 19%;
  border: 1px solid #e6a294;
  border-radius: 5px;
  background: #cb666b;
}
.door-pop[data-theme="gifts"] .door-pop-package em {
  inset: 27% 43% 0;
  border-inline: 1px solid #f9dd9d;
  background: linear-gradient(90deg, #eebd70, #ffe3a4 52%, #d99a61);
}
.door-pop[data-theme="gifts"] .door-pop-package em::before,
.door-pop[data-theme="gifts"] .door-pop-package em::after {
  position: absolute;
  top: -12px;
  left: -13px;
  width: 21px;
  height: 11px;
  border: 3px solid #f9d28c;
  border-radius: 57% 50% 40% 55%;
  transform: rotate(20deg);
  content: "";
}
.door-pop[data-theme="gifts"] .door-pop-package em::after { left: 3px; transform: rotate(-22deg); }

.door-pop .door-pop-sparks {
  position: absolute;
  z-index: 4;
  width: 0;
  height: 0;
  pointer-events: none;
}
.door-pop .door-pop-sparks i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--door-pop-palette);
  opacity: 0;
  animation: door-pop-star .58s var(--door-pop-ease) calc(.24s + var(--door-pop-delay)) both;
}
.door-pop .door-pop-sparks i:nth-child(3n) {
  width: 13px;
  height: 13px;
  border-radius: 0;
  clip-path: polygon(50% 0, 64% 34%, 100% 50%, 64% 64%, 50% 100%, 35% 64%, 0 50%, 35% 34%);
}

.door-pop .door-pop-skip {
  position: absolute;
  z-index: 5;
  inset: auto auto max(22px, env(safe-area-inset-bottom)) 50%;
  min-height: 44px;
  min-width: 44px;
  padding: 9px 17px;
  border: 1px solid #fff4e594;
  border-radius: 24px;
  color: #fff7eb;
  background: #231d2eea;
  font: 700 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
  transform: translateX(-50%);
}
.door-pop .door-pop-skip:focus-visible { outline: 2px solid #fff6e2; outline-offset: 3px; }

@keyframes door-pop-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes door-pop-glow {
  0% { opacity: 0; transform: scale(.82); }
  41% { opacity: .68; transform: scale(.98); }
  100% { opacity: .32; transform: scale(1.13); }
}
@keyframes door-pop-package {
  0% { opacity: 1; transform: translate(var(--door-pop-x), var(--door-pop-y)) scale(var(--door-pop-scale)); }
  38% { opacity: 1; transform: translateY(0) scale(1) rotate(-8deg); }
  60% { opacity: .86; transform: translateY(-13%) scale(1.18) rotate(7deg); }
  100% { opacity: 0; transform: translateY(-49%) scale(1.22) rotate(-8deg); }
}
@keyframes door-pop-stage {
  0% { opacity: 0; transform: translateY(13%) scale(.91); }
  63% { opacity: 1; transform: translateY(-2%) scale(1.026); }
  100% { opacity: 1; transform: none; }
}
@keyframes door-pop-star {
  0% { opacity: 0; transform: translate(calc(var(--door-pop-sx) * .3), calc(var(--door-pop-sy) * .3)) scale(.9); }
  28% { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--door-pop-sx), var(--door-pop-sy)) rotate(35deg); }
}

@media (prefers-reduced-motion: reduce) {
  .door-pop::backdrop,
  .door-pop .door-pop-glow,
  .door-pop .door-pop-package,
  .door-pop .door-pop-stage,
  .door-pop .door-pop-sparks i { animation: none; }
  .door-pop .door-pop-package { display: none; }
}


.door-pop[data-mode="film"]::backdrop {
  background: #080e20f0;
  animation-duration: .22s;
}

.door-pop-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  animation:
    christmas-film-enter .32s var(--door-pop-ease) both,
    christmas-film-exit .2s ease-out calc(var(--film-lifetime) - 200ms) forwards;
}

.christmas-film {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.door-pop[data-mode="film"] .door-pop-package {
  z-index: 4;
  animation-duration: .55s;
}

.door-pop[data-mode="film"] .door-pop-skip {
  z-index: 6;
  inset-block-end: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  color: #fff9ec;
  background: #071020c9;
  border-color: #fff5e27a;
  box-shadow: 0 4px 28px #06081742;
}

.door-pop-film-title {
  position: absolute;
  z-index: 5;
  max-width: calc(100% - 42px);
  inset: max(18px, calc(env(safe-area-inset-top) + 12px)) auto auto 50%;
  margin: 0;
  transform: translateX(-50%);
  padding: 8px 14px;
  color: #fff9ec;
  background: #10152085;
  border: 1px solid #fff5e25c;
  border-radius: 22px;
  font: 650 12px/1.3 ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  animation: christmas-film-enter .25s var(--door-pop-ease) .23s both;
  pointer-events: none;
}

.christmas-film:is([data-film="gold"], [data-film="aurora"], [data-film="cocoa"]) > .wrap-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.christmas-film[data-film="gold"] .ws-gold-gift,
.christmas-film[data-film="gold"] .ws-gold-halo { scale: 2.65; }

.christmas-film[data-film="cocoa"] .ws-mug,
.christmas-film[data-film="cocoa"] .ws-cookie,
.christmas-film[data-film="cocoa"] .ws-steam { scale: 1.9; }
.christmas-film[data-film="cocoa"] .ws-mug {left:calc(50% - 65px);}
.christmas-film[data-film="cocoa"] .ws-cookie {left:calc(50% + 49px);}
.christmas-film[data-film="cocoa"] .ws-steam {left:calc(50% - 59px);}

@keyframes christmas-film-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes christmas-film-exit { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .door-pop-fullscreen, .door-pop-film-title { animation: none; }
}

html[data-film-sleigh-art] .film-sleigh-flight {
  aspect-ratio: 2.53;
  margin-top: calc(var(--sleigh-width) * -.195);
}

.wrap-preview-caption [data-action="replay-wrap"]:not([data-wrap="classic"]) {
  padding: 6px 10px;
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.wrap-preview-caption [data-action="replay-wrap"]:not([data-wrap="classic"])::before {
  content: '▶';
  margin-inline-end: 6px;
  font-size: 8px;
}


.christmas-film .film-snow-scene,
.christmas-film .film-flurries {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.christmas-film .film-snow-scene {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 72%, #b1deef61 0%, #638eb36b 29%, transparent 60%),
    radial-gradient(ellipse at 72% 34%, #4e8ab34d 0%, transparent 35%),
    linear-gradient(169deg, #060d24 4%, #102749 52%, #326689 87%, #81a8be);
}

.christmas-film .film-snow-moon {
  position: absolute;
  top: 18%;
  left: 67%;
  width: clamp(46px, 11vmin, 117px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 32% 29%, #fff 0%, #dfecf7 35%, #bfd4df 79%, #8fbbd4);
  opacity: .86;
  box-shadow: 0 0 24px #b4e5f985, 0 0 80px #8fd1f477, 0 0 160px #70add951;
}

.christmas-film .film-snow-forest {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.christmas-film .film-snow-pine {
  position: absolute;
  left: var(--pine-x);
  bottom: calc(var(--pine-ground) - 5%);
  width: calc(var(--pine-width) * var(--pine-spread));
  height: var(--pine-height);
  transform: translateX(-50%);
  clip-path: polygon(50% 0%, 55% 13%, 61% 23%, 57% 22%, 70% 41%, 64% 39%, 80% 58%, 73% 56%, 88% 75%, 80% 71%, 100% 91%, 54% 91%, 53% 100%, 47% 100%, 46% 91%, 0 91%, 20% 71%, 12% 75%, 27% 56%, 20% 58%, 36% 39%, 30% 41%, 43% 22%, 39% 23%, 45% 13%);
  background:
    linear-gradient(109deg, #ecfdff4d 0%, transparent 38%),
    repeating-linear-gradient(165deg, transparent 0 10px, #fbffff38 11px 12px, transparent 14px 23px),
    linear-gradient(162deg, var(--pine-light), var(--pine-dark) 85%);
}

.christmas-film .film-snow-pine-horizon {
  --pine-spread: 13vw;
  --pine-ground: 15%;
  --pine-light: #789eb7;
  --pine-dark: #577f9b;
  opacity: .58;
}

.christmas-film .film-snow-pine-middle {
  --pine-spread: 21vw;
  --pine-ground: 8%;
  --pine-light: #4f7e96;
  --pine-dark: #183957;
  opacity: .9;
}

.christmas-film .film-snow-pine-near {
  --pine-spread: 29vw;
  --pine-ground: 3%;
  --pine-light: #2a5573;
  --pine-dark: #0c253f;
}

.christmas-film .film-snow-ridge {
  position: absolute;
  width: 141%;
  height: 25%;
  border-radius: 50% 58% 0 0;
  background:
    linear-gradient(169deg, #d7ebf7 0%, #85adca 52%, #5485ad 95%);
}

.christmas-film .film-snow-ridge-back {
  z-index: 1;
  bottom: -6%;
  left: -34%;
  opacity: .65;
  transform: rotate(-6deg);
}

.christmas-film .film-snow-ridge-front {
  z-index: 3;
  bottom: -16%;
  right: -31%;
  opacity: .77;
  transform: rotate(7deg);
  box-shadow: inset 0 4px 13px #e6f6ff96;
}

.christmas-film .film-snow-frost {
  position: absolute;
  z-index: 6;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, #ccecf57d, transparent 28%),
    radial-gradient(ellipse at 100% 100%, #b5e5f485, transparent 30%),
    radial-gradient(ellipse at 100% 0%, #d3f2fe4a, transparent 20%),
    radial-gradient(ellipse at 0% 100%, #d4f3fc61, transparent 24%);
  box-shadow: inset 0 0 clamp(20px, 7vmin, 95px) #a3d8ed91, inset 0 0 0 1px #d3f4ff71;
}

.christmas-film .film-snow-letter {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 48%;
  width: clamp(126px, 31vmin, 281px);
  aspect-ratio: 1.67;
  opacity: 0;
  perspective: 550px;
  animation: film-snow-letter-arrive 2800ms cubic-bezier(.16, .7, .27, 1) both;
}

.christmas-film .film-snow-letter::before {
  position: absolute;
  inset: -90%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #fff0b76b 0%, #ffc9751c 44%, transparent 68%);
  content: '';
}

.christmas-film .film-snow-envelope {
  position: absolute;
  inset: 0;
  border: 1px solid #a66858;
  border-radius: 6px;
  background: linear-gradient(145deg, #f6d5a1, #dfac78 74%);
  box-shadow: 0 25px 47px #03112265, 0 0 36px #ffe5ae4e;
}

.christmas-film .film-snow-envelope::after {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  left: 42%;
  top: 43%;
  border: 1px solid #963c4f;
  border-radius: 48% 52% 48% 51%;
  background: radial-gradient(circle at 30% 28%, #f5a49c, #af515d 51%, #993b4f 73%);
  box-shadow: inset 0 0 0 2px #f4a7a480, 0 2px 4px #784d4980;
  content: '';
}

.christmas-film .film-snow-envelope i {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(151deg, #ffecc0 0%, #efc690 61%, #d9a671 90%);
  clip-path: polygon(0 0, 100% 0, 61% 53%, 50% 61%, 39% 53%);
}

.christmas-film .film-snow-envelope b {
  position: absolute;
  inset: 0;
  background: linear-gradient(156deg, #fff1c26b, transparent 79%);
  clip-path: polygon(0 91%, 50% 58%, 100% 91%, 100% 100%, 0 100%);
}

.christmas-film .film-snow-card {
  position: absolute;
  z-index: 0;
  left: 9%;
  top: -10%;
  width: 82%;
  height: 74%;
  background:
    repeating-linear-gradient(0deg, #c2906a70 0 1px, transparent 1px 7px) center / 64% 49% no-repeat,
    linear-gradient(151deg, #fff5d8, #fae4b9);
  border: 1px solid #e5c68f;
  border-radius: 4px;
  box-shadow: 0 4px 9px #2f1b2b53;
  transform: translateY(35%) rotate(-2deg);
  animation: film-snow-card-arrive 2800ms cubic-bezier(.16, .7, .27, 1) both;
}

@keyframes film-snow-letter-arrive {
  0%, 35% { opacity: 0; transform: translate(-50%, 18%) rotate(-12deg) scale(.68); }
  54% { opacity: .83; transform: translate(-50%, -33%) rotate(4deg) scale(.98); }
  74%, 100% { opacity: 1; transform: translate(-50%, -45%) rotate(-4deg) scale(1); }
}

@keyframes film-snow-card-arrive {
  0%, 63% { transform: translateY(35%) rotate(-2deg); }
  87%, 100% { transform: translateY(-33%) rotate(5deg); }
}

.christmas-film .film-flurries {
  z-index: 8;
}

.christmas-film .film-flake {
  position: absolute;
  top: -24px;
  left: var(--flake-x);
  width: var(--flake-size);
  height: var(--flake-size);
  color: #f6fcff;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: film-snow-fall var(--flake-ms) var(--flake-delay) linear 4 both;
}

.christmas-film .film-flake-0 {
  background: radial-gradient(circle, #fff 0 40%, #ddf3ff8f 64%, transparent 75%);
}

.christmas-film .film-flake-1 {
  background: radial-gradient(circle at 41% 36%, #fff 0 36%, #ddf3ff9e 59%, transparent 72%);
}

.christmas-film .film-flake-2 {
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 44%, currentColor 45% 55%, transparent 56%),
    linear-gradient(30deg, transparent 44%, currentColor 45% 55%, transparent 56%),
    linear-gradient(-30deg, transparent 44%, currentColor 45% 55%, transparent 56%),
    radial-gradient(circle, currentColor 0 23%, transparent 25%);
  clip-path: polygon(48% 3%, 52% 3%, 52% 31%, 67% 22%, 71% 26%, 56% 37%, 55% 45%, 68% 44%, 84% 32%, 89% 36%, 78% 45%, 99% 45%, 99% 54%, 77% 54%, 89% 64%, 84% 68%, 68% 57%, 55% 56%, 56% 64%, 71% 75%, 67% 79%, 52% 69%, 52% 97%, 48% 97%, 48% 69%, 33% 79%, 29% 75%, 44% 64%, 45% 56%, 32% 57%, 16% 68%, 11% 64%, 23% 54%, 1% 54%, 1% 45%, 22% 45%, 11% 36%, 16% 32%, 32% 44%, 45% 45%, 44% 37%, 29% 26%, 33% 22%, 48% 31%);
}

.christmas-film .film-flurries:not(.film-flurries-dense) .film-flake {
  color: #f1f7fac4;
  scale: .7;
}

@keyframes film-snow-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  5%, 91% { opacity: var(--flake-opacity); }
  44% { transform: translate3d(calc(var(--flake-drift) * -.34), 47vh, 0) rotate(calc(var(--flake-angle) * .5)); }
  100% { opacity: 0; transform: translate3d(var(--flake-drift), calc(100vh + 62px), 0) rotate(var(--flake-angle)); }
}

@media (max-width: 599px) {
  .christmas-film .film-snow-moon {
    top: 21%;
    left: 71%;
  }

  .christmas-film .film-snow-pine-middle { --pine-spread: 36vw; }
  .christmas-film .film-snow-pine-near { --pine-spread: 40vw; }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-film .film-flake {
    top: var(--flake-y);
    opacity: var(--flake-opacity);
    animation: none;
  }

  .christmas-film .film-snow-letter {
    opacity: 1;
    transform: translate(-50%, -45%);
    animation: none;
  }

  .christmas-film .film-snow-card {
    transform: translateY(-24%) rotate(3deg);
    animation: none;
  }
}


.christmas-film[data-film="santa"] .film-santa-scene {
  --fs-ease: var(--door-pop-ease, cubic-bezier(.23, 1, .32, 1));
  position: absolute;
  z-index: 1;
  isolation: isolate;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 69%, #e79b4c9c 0%, #a9534b81 22%, transparent 55%),
    linear-gradient(163deg, #211426 0%, #381b34 39%, #662f43 79%, #754044);
}

.film-santa-scene *,
.film-santa-scene *::before,
.film-santa-scene *::after { box-sizing: border-box; }
.film-santa-scene > div { position: absolute; }

.film-santa-scene::after {
  position: absolute;
  z-index: 7;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 50% 48%, transparent 36%, #180e224f 76%, #140b217a 100%);
}

.film-santa-scene .fs-sky {
  inset: 0 0 26% 0;
  opacity: .76;
  background:
    radial-gradient(circle at 13% 43%, #f9d8a9 0 1px, transparent 2px),
    radial-gradient(circle at 84% 14%, #f9d8a9 0 1px, transparent 2px),
    radial-gradient(circle at 31% 27%, #ffe9c6 0 1px, transparent 2px),
    radial-gradient(circle at 74% 42%, #ffe9c6 0 1px, transparent 2px),
    radial-gradient(circle at 56% 11%, #fff0bb 0 1px, transparent 2px),
    radial-gradient(circle at 92% 62%, #f9d8a9 0 1px, transparent 2px),
    radial-gradient(circle at 18% 72%, #f9d8a9 0 1px, transparent 2px),
    radial-gradient(circle at 41% 51%, #f9d8a9 0 1px, transparent 2px),
    radial-gradient(circle at 68% 67%, #f9d8a9 0 1px, transparent 2px);
}

.film-santa-scene .fs-moon {
  top: 13%;
  right: 16%;
  width: clamp(34px, 8vw, 77px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 36% 32%, #fff3c5 0%, #e9bd8c 85%),
    #f8d7a3;
  box-shadow: 0 0 34px 6px #efba7d57, 0 0 62px 14px #ffb7752e;
  opacity: .88;
}

.film-santa-scene .fs-hill {
  inset: 57% -10% -2%;
  opacity: .81;
  background: linear-gradient(140deg, #744858, #55334e 54%, #332641);
  clip-path: polygon(0 42%, 12% 19%, 25% 29%, 33% 20%, 50% 42%, 62% 32%, 76% 41%, 87% 15%, 100% 29%, 100% 100%, 0 100%);
}

.film-santa-scene .fs-snowbank {
  inset: 78% -28% -8%;
  border-radius: 50% 48% 0 0 / 43% 56% 0 0;
  background:
    radial-gradient(ellipse at 53% 0%, #d49c817d 0%, transparent 48%),
    linear-gradient(173deg, #9d777e, #785872 47%, #422f4e 79%);
  box-shadow: inset 0 1px #ffc7a46b, 0 -13px 30px #d5925729;
  opacity: .88;
}

.film-santa-scene .fs-village {
  z-index: 1;
  top: 59%;
  bottom: 19%;
  left: -2%;
  right: -2%;
  opacity: .93;
}

.film-santa-scene .fs-village i {
  position: absolute;
  left: var(--film-house-x);
  bottom: 3%;
  width: clamp(34px, 6vw, 66px);
  height: clamp(47px, 8vw, 86px);
  border-radius: 1px 1px 4px 2px;
  background:
    radial-gradient(ellipse at 57% 81%, #bd785b9e, transparent 51%),
    linear-gradient(115deg, #3c293a, #4e2e41 66%, #332339);
  box-shadow: inset -1px 0 #f1a46e44, 0 6px 10px #301d32a6;
  transform: translateX(-50%) scale(var(--film-house-scale));
  transform-origin: bottom center;
}

.film-santa-scene .fs-village i::before {
  position: absolute;
  inset: -45% -13% 86%;
  content: "";
  background: linear-gradient(#bc928d 0%, #b08a88 47%, #76535e 65%, #4b3346 68%);
  clip-path: polygon(51% 5%, 97% 94%, 3% 94%);
}

.film-santa-scene .fs-village i::after {
  position: absolute;
  top: 27%;
  left: 22%;
  width: 21%;
  height: 21%;
  border: 1px solid #f7bc77;
  background: #e69b56;
  box-shadow: 0 0 9px #ffaa58, clamp(9px, 1.95vw, 24px) 0 #d38c4e;
  content: "";
}

.film-santa-scene .fs-village i:nth-child(even) { bottom: 0; }
.film-santa-scene .fs-village i:nth-child(3n) { bottom: 8%; }

.film-santa-scene .fs-halo {
  z-index: 2;
  left: 50%;
  bottom: 13%;
  width: min(112vw, 750px);
  height: min(78vh, 680px);
  opacity: .67;
  background: radial-gradient(ellipse at 50% 65%, #ffc0786e 0%, #c054432e 33%, transparent 67%);
  transform: translateX(-50%);
}

.film-santa-scene .fs-santa {
  z-index: 3;
  left: 50%;
  bottom: 12%;
  width: min(95vw, 630px);
  height: min(75vh, 700px);
  height: min(75dvh, 700px);
  transform: translateX(-50%);
  transform-origin: 50% 64%;
  animation: fullscreen-santa-arrive 1.28s var(--fs-ease) both;
}

.film-santa-scene .fs-santa-image {
  position: absolute;
  inset: 0;
  display: none;
  background: center bottom / contain no-repeat var(--film-santa-image, none);
  filter: drop-shadow(0 12px 37px #392037a6) drop-shadow(0 2px 13px #ff9c4d61);
}

html[data-film-santa-art] .film-santa-scene .fs-santa-image { display: block; }
html[data-film-santa-art] .film-santa-scene .fs-santa-cartoon { display: none; }

.film-santa-scene .fs-santa-cartoon {
  position: absolute;
  inset: auto auto 0 50%;
  width: min(87%, 420px);
  aspect-ratio: 0.83;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 23px #291828af);
}

.film-santa-scene .fs-santa-cartoon i,
.film-santa-scene .fs-letter i,
.film-santa-scene .fs-letter b,
.film-santa-scene .fs-letter em { position: absolute; display: block; }

.film-santa-scene .fs-coat {
  inset: 48% 7% 0;
  border: 2px solid #ed9b80;
  border-radius: 38% 41% 24% 24% / 43% 47% 15% 20%;
  background:
    linear-gradient(90deg, #b23d49 0 44%, #f7d4ae 45% 53%, #a33546 54%, #9b3144),
    #b6404a;
  box-shadow: inset 0 0 26px #7f273e, inset 0 13px 17px #e15f55;
}
.film-santa-scene .fs-belt {
  inset: 79% 8% 8%;
  border-radius: 28% 34% 22% 23% / 18% 21% 26% 28%;
  background: linear-gradient(168deg, #57323d, #331d2b 78%);
}
.film-santa-scene .fs-belt::after {
  position: absolute;
  inset: 2% 42% 4%;
  border: 4px solid #e8b46d;
  border-radius: 22%;
  content: "";
  box-shadow: 0 1px 0 #b8794b;
}
.film-santa-scene .fs-arm {
  top: 51%;
  width: 27%;
  height: 28%;
  border: 1px solid #d47a69;
  border-radius: 41% 50% 36% 38%;
  background: linear-gradient(125deg, #8e344a, #cf5a58);
}
.film-santa-scene .fs-arm-left { left: 7%; transform: rotate(-44deg); }
.film-santa-scene .fs-arm-right { right: 7%; transform: rotate(46deg); }
.film-santa-scene .fs-arm::after {
  position: absolute;
  left: 14%;
  right: 11%;
  bottom: -12%;
  height: 43%;
  border-top: 8px solid #e6c5a5;
  border-radius: 39% 50% 43% 64%;
  background: #ad4b54;
  content: "";
}
.film-santa-scene .fs-beard {
  inset: 22% 19% 36%;
  border-radius: 42% 44% 59% 56% / 34% 42% 72% 72%;
  background: radial-gradient(ellipse at 50% 31%, #fff7dc 0%, #eed2b6 57%, #c79c8e 96%);
  box-shadow: inset 0 9px 10px #fff4d8b3;
}
.film-santa-scene .fs-face {
  inset: 23% 26% 49%;
  border-radius: 45% 46% 50% 55%;
  background:
    radial-gradient(ellipse at 20% 63%, #cf716d 0%, transparent 28%),
    radial-gradient(ellipse at 80% 64%, #cf716d 0%, transparent 29%),
    linear-gradient(155deg, #ffd1a4, #ea9c7d);
}
.film-santa-scene .fs-eyes { inset: 34% 31% 60%; }
.film-santa-scene .fs-eyes::before,
.film-santa-scene .fs-eyes::after {
  position: absolute;
  top: 0;
  left: 15%;
  width: 9%;
  height: 59%;
  border-radius: 50%;
  background: #694251;
  content: "";
}
.film-santa-scene .fs-eyes::after { left: auto; right: 15%; }
.film-santa-scene .fs-nose {
  inset: 39% 44% 54%;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef9c83, #cd6d6c);
}
.film-santa-scene .fs-mustache {
  inset: 44% 27% 48%;
  border-radius: 55% 48% 47% 49%;
  background: linear-gradient(163deg, #fff7db, #e8c6aa);
  box-shadow: 0 3px 0 #bd918a66;
}
.film-santa-scene .fs-hat {
  inset: 3% 23% 67%;
  border-radius: 69% 48% 9% 12% / 88% 54% 14% 19%;
  background: linear-gradient(131deg, #9f3645, #d75957 68%, #e8856a);
  transform: rotate(-12deg);
}
.film-santa-scene .fs-brim {
  inset: 23% 19% 70%;
  border-radius: 38% 44% 28% 26% / 48% 53% 39% 42%;
  background: linear-gradient(#fff0d0, #dbb49e);
  transform: rotate(-5deg);
}
.film-santa-scene .fs-pom {
  top: 7%;
  right: 16%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 28%, #fff3d3, #e3bfa5 85%);
}

.film-santa-scene .fs-letter-light {
  z-index: 4;
  top: 58%;
  left: 50%;
  width: min(91vw, 540px);
  height: min(42vh, 328px);
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffe3ae75, #e9a26643 29%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: fullscreen-santa-light 1.37s var(--fs-ease) 1.06s both;
}

.film-santa-scene .fs-letter {
  z-index: 5;
  top: 62%;
  left: 50%;
  width: clamp(124px, 44vw, 230px);
  aspect-ratio: 1.54;
  overflow: hidden;
  border: 2px solid #f5dfa8;
  border-radius: 10px;
  background:
    repeating-linear-gradient(128deg, #fff6cb11 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #f8dba4 0%, #e0a96f 81%);
  box-shadow: 0 13px 32px #381a36b9, inset 0 0 0 3px #d5a16878;
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: fullscreen-santa-deliver 1.19s var(--fs-ease) 1.11s both;
}

.film-santa-scene .fs-letter i {
  inset: 0;
  background: linear-gradient(135deg, #ffe8b8 0%, #d7a06b 95%);
  clip-path: polygon(0 100%, 0 11%, 50% 63%, 100% 11%, 100% 100%);
}
.film-santa-scene .fs-letter b {
  inset: 0 0 21%;
  background: linear-gradient(145deg, #ffecc2, #e5b274 83%);
  clip-path: polygon(0 0, 100% 0, 98% 21%, 50% 85%, 2% 21%);
}
.film-santa-scene .fs-letter em {
  left: 50%;
  top: 58%;
  width: 21%;
  aspect-ratio: 1;
  border: 2px solid #d88974;
  border-radius: 46% 52% 51% 48%;
  background: radial-gradient(circle at 36% 28%, #d68471, #a54d54 63%, #89364a 90%);
  box-shadow: inset 0 0 0 3px #a351557a, 0 2px 6px #7a3b4873;
  transform: translate(-50%, -50%);
}
.film-santa-scene .fs-letter em::before {
  position: absolute;
  inset: 22%;
  background: #f1bb92b5;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  content: "";
}

@keyframes fullscreen-santa-arrive {
  0% { opacity: 0; transform: translate(-50%, 18%) scale(.22); }
  22% { opacity: 1; }
  65% { transform: translate(-50%, -1.5%) scale(1.057); }
  83% { transform: translate(-50%, .8%) scale(.983); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes fullscreen-santa-deliver {
  0% { opacity: 0; transform: translate(calc(-50% - min(26vw, 210px)), calc(-50% - min(11vh, 116px))) rotate(9deg) scale(.19); }
  27% { opacity: 1; transform: translate(calc(-50% - min(14vw, 108px)), calc(-50% - 5vh)) rotate(2deg) scale(.56); }
  69% { transform: translate(-50%, -59%) rotate(-8deg) scale(1.09); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
}

@keyframes fullscreen-santa-light {
  0% { opacity: 0; transform: translate(-50%, -43%) scale(.68); }
  48% { opacity: .90; }
  100% { opacity: .78; transform: translate(-50%, -50%) scale(1.07); }
}

@media (max-width: 550px) {
  .film-santa-scene .fs-santa { bottom: 17%; }
  .film-santa-scene .fs-moon { top: 18%; }
  .film-santa-scene .fs-village { top: 65%; bottom: 20%; }
  .film-santa-scene .fs-letter { top: 64%; }
}

@media (prefers-reduced-motion: reduce) {
  .film-santa-scene .fs-santa,
  .film-santa-scene .fs-letter,
  .film-santa-scene .fs-letter-light { animation: none; }
}


.christmas-film[data-film="sleigh"] {
  background: #11182b;
}
.film-sleigh-scene {
  --sleigh-width: min(80vw, 800px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 82%, #c0807b80, transparent 52%),
    radial-gradient(ellipse at 76% 31%, #5f577c, transparent 55%),
    linear-gradient(#10192d 0%, #232943 42%, #5c4f6d 72%, #8a687c 100%);
}
.film-sleigh-sky,
.film-sleigh-stars,
.film-sleigh-clouds,
.film-sleigh-ridge,
.film-sleigh-hills,
.film-sleigh-village {
  position: absolute;
  inset: 0;
}
.film-sleigh-star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  width: calc(var(--star-size) * 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8dfb5;
  box-shadow: 0 0 9px #fceeb38a;
  opacity: .72;
}
.film-sleigh-star:nth-child(4n) {
  opacity: .38;
}
.film-sleigh-star:nth-child(6n) {
  border-radius: 0;
  clip-path: polygon(50% 0, 60% 37%, 100% 50%, 60% 62%, 50% 100%, 39% 62%, 0 50%, 39% 37%);
}
.film-sleigh-moon {
  position: absolute;
  width: clamp(76px, 15vw, 180px);
  aspect-ratio: 1;
  top: 13%;
  right: 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 31%, #ffeece 0 7%, transparent 7.6%),
    radial-gradient(ellipse at 67% 64%, #e1ab9469 0 12%, transparent 12.8%),
    radial-gradient(circle at 36% 55%, #e8bb9c83 0 11%, transparent 11.8%),
    radial-gradient(circle at 64% 38%, #efc29c6c 0 15%, transparent 15.8%),
    radial-gradient(circle at 45% 7%, #fff3d6, #ffd9a8 80%);
  box-shadow: 0 0 0 11px #f6c59e0b, 0 0 0 24px #f6c59e0b, 0 0 73px #f2bf7483;
}
.film-sleigh-clouds {
  background:
    radial-gradient(ellipse 36% 4% at 21% 62%, #80708555, transparent 95%),
    radial-gradient(ellipse 43% 3% at 80% 50%, #b9858650, transparent 95%),
    radial-gradient(ellipse 56% 4% at 37% 71%, #ac858651, transparent 95%);
}
.film-sleigh-ridge {
  top: 43%;
  background: linear-gradient(#81708a, #4b4767);
  opacity: .73;
  clip-path: polygon(0 41%, 9% 23%, 18% 38%, 26% 26%, 37% 51%, 45% 40%, 55% 53%, 63% 28%, 70% 48%, 78% 35%, 84% 40%, 91% 18%, 100% 40%, 100% 100%, 0 100%);
}
.film-sleigh-hills {
  top: 62%;
  background: linear-gradient(#5f546e, #3a3a58);
  clip-path: polygon(0 44%, 7% 22%, 13% 31%, 21% 26%, 31% 48%, 37% 53%, 44% 43%, 54% 57%, 64% 46%, 72% 26%, 79% 29%, 88% 47%, 100% 21%, 100% 100%, 0 100%);
}
.film-sleigh-village {
  top: auto;
  height: 100%;
  bottom: 0;
}
.film-sleigh-village::after {
  position: absolute;
  inset: auto 0 0;
  height: 3.3vh;
  height: 3.3dvh;
  content: "";
  background: #22243c;
  clip-path: polygon(0 27%, 10% 8%, 22% 24%, 32% 18%, 45% 31%, 62% 5%, 74% 17%, 90% 3%, 100% 18%, 100% 100%, 0 100%);
}
.film-sleigh-house {
  position: absolute;
  left: var(--house-x);
  bottom: 1.8%;
  width: var(--house-width);
  height: calc(var(--house-height) * 1vh);
  height: calc(var(--house-height) * 1dvh);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #23273e, #30324b);
  clip-path: polygon(0 46%, 28% 29%, 28% 12%, 39% 12%, 39% 23%, 53% 8%, 100% 45%, 91% 45%, 91% 100%, 9% 100%, 9% 47%);
}
.film-sleigh-house:nth-child(2n) {
  transform: translateX(-50%) scaleX(-1);
  background: linear-gradient(90deg, #22273d, #3a3851);
}
.film-sleigh-house > b {
  position: absolute;
  top: 64%;
  left: 26%;
  width: 14%;
  height: 13%;
  min-width: 2px;
  background: #e9ae79;
  box-shadow: 0 0 8px #f5b9877a;
  opacity: .63;
}
.film-sleigh-house > b:last-child { left: 65%; }
.film-sleigh-house:nth-child(3n) > b:first-child { opacity: .26; }
.film-sleigh-house-destination > b {
  background: #ffe0a1;
  box-shadow: 0 0 15px #f9c583d4;
  opacity: 1;
}
.film-sleigh-flight {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 40%;
  width: var(--sleigh-width);
  aspect-ratio: 3.05;
  margin-left: calc(var(--sleigh-width) * -.5);
  margin-top: calc(var(--sleigh-width) * -.16);
  transform: translate3d(calc(-50vw - 64%), 24vh, 0) rotate(-10deg) scale(.79);
  will-change: transform;
  animation: film-sleigh-cross 3460ms linear both;
}
.film-sleigh-foreground,
.film-sleigh-fallback {
  position: absolute;
  inset: 0;
}
.film-sleigh-foreground {
  display: none;
  background-image: var(--film-sleigh-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 9px 17px #2515308a);
}
html[data-film-sleigh-art] .film-sleigh-foreground {
  display: block;
}
html[data-film-sleigh-art] .film-sleigh-fallback {
  display: none;
}
.film-sleigh-fallback > .wrap-scene[data-effect="sleigh"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.film-sleigh-fallback .ws-stars,
.film-sleigh-fallback .ws-moon,
.film-sleigh-fallback .ws-rooftops {
  display: none;
}
.film-sleigh-fallback .ws-sleigh-team {
  top: 15%;
  left: 0;
  width: 100%;
  height: 80%;
  transform: none;
  filter: drop-shadow(0 6px 8px #201730a0);
}
.film-sleigh-fallback .ws-deer {
  left: 45%;
  top: 10%;
  width: 24%;
  height: 80%;
}
.film-sleigh-fallback .ws-deer:last-child {
  top: 0;
  left: 72%;
}
.film-sleigh-fallback .ws-sleigh {
  left: 6%;
  bottom: 3%;
  width: 33%;
  height: 79%;
}
.film-sleigh-fallback .ws-reins {
  top: 62%;
  left: 33%;
  width: 56%;
}
.film-sleigh-fallback .ws-sleigh-bucket {
  z-index: 2;
  border-width: clamp(2px, .38vw, 5px);
  background: linear-gradient(#cf6c6f, #983a52 75%);
}
.film-sleigh-fallback .ws-sleigh-presents {
  top: 3%;
  z-index: 1;
  box-shadow: 11px -2px 0 -3px #82ab96;
}
.film-sleigh-fallback .ws-sleigh-runner {
  z-index: 1;
  border-width: clamp(2px, .29vw, 4px);
  border-top: 0;
}
.film-sleigh-fallback .ws-sleigh::before {
  position: absolute;
  z-index: 1;
  content: "";
  inset: -22% 12% 63% 53%;
  background: linear-gradient(#eea5a0 18%, #d77479 19% 69%, #fae0ad 70% 81%, #933c52 82%);
  clip-path: polygon(15% 45%, 68% 2%, 91% 61%, 100% 61%, 97% 78%, 65% 80%, 78% 100%, 11% 100%, 28% 80%, 9% 72%);
}
.film-sleigh-fallback .ws-sleigh::after {
  position: absolute;
  z-index: 1;
  content: "";
  inset: 10% 11% 55% 58%;
  border-radius: 50% 60% 58% 48%;
  background: radial-gradient(ellipse at 46% 22%, #f9c59d 0 33%, #fff0d1 36% 70%, #c98a7a 74%);
}
.film-sleigh-fallback .ws-deer:last-child .ws-deer-head::after {
  background: #e87979;
  box-shadow: 0 0 7px #ffbcaa;
}

.film-sleigh-delivery {
  position: absolute;
  z-index: 1;
  left: 48%;
  top: 40%;
  width: clamp(23px, 5.5vw, 61px);
  aspect-ratio: 1.45;
  opacity: 0;
  animation: film-sleigh-deliver 1275ms 2030ms var(--door-pop-ease, cubic-bezier(.25, .8, .35, 1)) both;
}
.film-sleigh-delivery > i {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  border: 1px solid #ffc687;
  background: linear-gradient(145deg, #fff0cd, #f7c996);
  box-shadow: 0 0 19px #ffc27c;
  overflow: hidden;
}
.film-sleigh-delivery > i::before {
  content: "";
  position: absolute;
  top: -58%;
  left: 14%;
  width: 69%;
  aspect-ratio: 1;
  border: 1px solid #d79272;
  border-radius: 4px;
  transform: rotate(45deg);
  background: #fff2d8;
}
.film-sleigh-delivery > b {
  position: absolute;
  top: -24%;
  left: -21%;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe1ae;
  box-shadow: 0 0 8px #ffca62;
}
.film-sleigh-delivery > b:nth-child(3) { top: 20%; left: 120%; }
.film-sleigh-delivery > b:nth-child(4) { top: 85%; left: -35%; }

@keyframes film-sleigh-cross {
  0% { transform: translate3d(calc(-50vw - 64%), 24vh, 0) rotate(-14deg) scale(.79); }
  22% { transform: translate3d(-36vw, 8vh, 0) rotate(-10deg) scale(.92); }
  43% { transform: translate3d(-12vw, -3vh, 0) rotate(-6deg) scale(1.02); }
  56% { transform: translate3d(6vw, -4vh, 0) rotate(-3deg) scale(1.04); }
  73% { transform: translate3d(26vw, -4vh, 0) rotate(-5deg) scale(.97); }
  100% { transform: translate3d(calc(50vw + 66%), -25vh, 0) rotate(-13deg) scale(.83); }
}
@keyframes film-sleigh-deliver {
  0% { opacity: 0; transform: translate3d(-12vw, 2vh, 0) rotate(24deg) scale(.45); }
  21% { opacity: 1; transform: translate3d(-7vw, 9vh, 0) rotate(-12deg) scale(.96); }
  70% { opacity: .95; transform: translate3d(1vw, 26vh, 0) rotate(9deg) scale(.81); }
  100% { opacity: 0; transform: translate3d(1vw, 48vh, 0) rotate(-14deg) scale(.3); }
}
@media (max-width: 550px) {
  .film-sleigh-scene { --sleigh-width: 91vw; }
  .film-sleigh-moon { top: 14%; right: 12%; }
  .film-sleigh-flight { top: 44%; }
  .film-sleigh-delivery { top: 45%; }
  .film-sleigh-house { width: calc(var(--house-width) * 1.45); }
}
@media (prefers-reduced-motion: reduce) {
  .film-sleigh-flight {
    animation: none;
    will-change: auto;
    transform: translate3d(0, -2vh, 0) rotate(-5deg);
  }
  .film-sleigh-delivery { animation: none; opacity: 1; transform: translate3d(0, 25vh, 0); }
}


.advent-landing { color-scheme:light; background:#f4e9d7; min-height:100svh; }
.advent-landing .theme {padding-bottom:32px;min-height:0;}
.advent-landing .builder-shell {margin-bottom:16px;}

#sheet[data-composer] {
  width:min(94vw, 545px);
  scrollbar-gutter:stable;
  padding-bottom:0;
}
.letter-composer { gap:15px; }
.composer-door-warning {
  background:#f3e3bc;
  color:#553c27;
  border:1px solid #dcc398;
  border-radius:9px;
  padding:10px 12px;
  font-size:12px;
}
.composer-door-warning p, .composer-reciprocity { margin:0; }
.composer-door-warning .text-button {margin-top:5px;}
.composer-sender {display:grid; gap:7px;}
.letter-composer .wrap-compose {padding:11px;}
.composer-funding {margin-top:9px;}
.composer-funding > summary {font-size:12px;cursor:pointer;}
.composer-submit {
  display:grid;
  gap:6px;
  position:sticky;
  z-index:2;
  bottom:0;
  padding:10px 0 max(14px, env(safe-area-inset-bottom));
  background:var(--panel);
  border-top:1px solid var(--line);
}
.composer-submit .action {min-height:44px;text-align:center;}
.composer-submit .modal-status {margin:0;min-height:0;}
.composer-submit [hidden] {display:none;}
.composer-reciprocity {margin-top:10px;}
.opened-letter-stack {display:grid;gap:13px;}
.opened-letter-stack .letter-sheet {margin:0;}
.opened-letter-stack figcaption {margin-top:7px;}
.letter-voice {width:100%;max-width:100%;margin:6px 0;}
.letter-peek blockquote {
  margin:8px 0 14px;padding:14px 16px;border:1px solid #dac8a4;border-radius:8px;
  background:repeating-linear-gradient(#fffae8 0 26px, #eaddbf 26px 27px);
  font:500 19px/27px Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;
}
.letter-peek-clock {margin:0;color:var(--accent);font-size:12px;font-weight:700;}
.door .door-letter-count {
  position:absolute;right: 6px;bottom:6px;z-index:5;
  display:grid;place-items:center;min-width:16px;min-height:16px;padding:1px 4px;
  background:#fff0c3;color:#573717;border:1px solid #bb915e;border-radius:12px;
  font:700 9px/1 system-ui,sans-serif;
}
@media (min-width:960px) {
  html[data-advent-composing] #stage {width:calc(100% - min(42vw, 512px));}
  html[data-advent-composing] #stage .hero {display:none;}
  #sheet[data-mode=dock] {
    inset:16px 16px auto auto;
    position:fixed;
    z-index:30;
    margin:0;
    width:min(40vw, 480px);
    max-height:calc(100dvh - 32px);
  }
  .composer-submit {grid-template-columns:repeat(2,minmax(0,1fr));}
  .composer-submit .modal-status {grid-column:1/-1;}
  .composer-submit [data-send-letter]:has(+ [hidden]), .composer-submit [data-send-letter]:last-child {grid-column:1/-1;}
}
@media (max-width:600px) {
  #sheet[data-composer] {max-height:calc(100dvh - 14px);padding-inline:16px;}
  .letter-composer {gap:12px;}
}
.advent-header-actions {display:flex;justify-content:end;align-items:center;gap:8px;}
.advent-auth-link,.advent-guide-link {font-size:12px;font-weight:700;white-space:nowrap;}
.advent-auth-link {border:1px solid currentColor;border-radius:6px;padding:7px 10px;text-decoration:none;}
.advent-auth-link:hover,.advent-guide-link:hover {text-decoration:underline;}
.advent-guide-link {margin-inline-end:6px;}
[data-advent-calendar] .advent-tutorial,[data-advent-calendar] .advent-guide-link {display:none;}
.advent-intro-fallback {max-width:760px;margin:auto;padding:40px 24px;color:#55222a;}
.advent-intro-fallback h1 {font:600 clamp(2rem,7vw,4.5rem)/.98 Georgia,serif;margin:0 0 12px;}
.advent-tutorial {
  max-width:1260px;margin:0 auto;padding:clamp(26px,5vw,60px) clamp(18px,3vw,42px);
  color:#322723;scroll-margin-top:12px;
}
.advent-tutorial h2 {font:600 clamp(36px,5vw,62px)/1 Georgia,serif;letter-spacing:-.05em;text-align:center;margin:0 0 30px;}
.advent-tutorial-grid {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,32px);}
.advent-tutorial-grid img {display:block;width:100%;height:auto;border-radius:20px;border:3px solid #57323d;background:#fbf3e6;box-shadow:0 10px 24px #32272311;}
.advent-tutorial-grid h3 {font:600 21px/1.1 Georgia,serif;margin:16px 0 6px;}
.advent-tutorial-grid p {font-size:14px;line-height:1.53;margin:0;}
.advent-tutorial-resource {margin:1.5rem 0 0;text-align:center;}
.advent-tutorial-resource a {text-decoration:underline;text-underline-offset:.2em;}
.advent-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#634c41;padding:14px 24px;border-top:1px solid #9a796a38;font-size:12px;}
.advent-footer nav {display:flex;gap:12px;flex-wrap:wrap;}
.advent-footer a {text-underline-offset:3px;}
@media (max-width:750px) {
  .advent-tutorial-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .advent-guide-link {display:none;}
}
@media (max-width:360px) {
  .advent-header-actions {gap:4px;}
  .advent-auth-link {font-size:10px;padding:6px;}
  .advent-tutorial-grid {grid-template-columns:minmax(0,1fr);}
}

:root {
  --door-ornament-image: url("/advent/door-ornaments.png");
  --film-santa-image: url("/advent/film-santa.webp");
  --film-sleigh-image: url("/advent/film-sleigh.webp");
}
.advent-builder-links {display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;}
.advent-builder-links a {font-size:12px;font-weight:700;color:var(--builder-accent);text-decoration:underline;text-underline-offset:3px;}
#sheet {position:fixed;inset:0;margin:auto;}
.quick-title {font-size:13px;font-weight:750;margin:0 0 2px;}
.template-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:stretch;}
.template-row .template {display:grid;gap:4px;text-align:left;font-size:12px;}
.template-row .template small {color:var(--accent);font-weight:740;font-size:10px;}
.template-send {border:1px solid var(--accent);border-radius:5px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:750;padding:5px 7px;max-width:104px;}
.template-send:disabled {opacity:.5;}
.keepsake-actions {display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;}
.keepsake-files {display:flex;gap:6px;flex-wrap:wrap;}
