.sw-panel [hidden], .sw-panel[hidden] { display: none !important; }
.sw-panel {
  border-block: 1px solid var(--sw-accent, #b0beb5);
  background: var(--sw-background, #f2f5f2);
  color: var(--sw-foreground, #182820);
}
.sw-inner {
  box-sizing: border-box;
  max-width: 80rem;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.25rem);
  display: grid;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.sw-greeting { border-inline-start: 3px solid var(--sw-accent, #b0beb5); padding-inline-start: 1rem; }
.sw-panel h2 { color: inherit; margin: 0 0 .5rem; line-height: 1.12; }
.sw-panel p { margin: 0; }
.sw-panel p + p { margin-top: .4em; }
.sw-closure { padding: 1rem; border: 1px solid var(--sw-accent, #b0beb5); background: #fff; color: #182820; }
@media (min-width: 800px) { .sw-panel.sw-with-closure .sw-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.sw-positioned { position: relative; }
.sw-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.sw-overlay[data-effect="gold"] { background: radial-gradient(ellipse at 86% 12%, #ce9a4e55, transparent 60%); }
.sw-overlay[data-effect="silver"] { background: radial-gradient(ellipse at 90% 10%, #a8dac766, transparent 58%); }
.sw-flake { position: absolute; width: var(--sw-size); aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: 0; animation: sw-fall 4.5s var(--sw-delay) linear both; }
.sw-sleigh { position: absolute; top: 1.2rem; right: 0; white-space: nowrap; color: #ead4ad; font: 1.1rem/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; filter: brightness(0) invert(87%) sepia(27%) saturate(670%); animation: sw-ride 4.4s .3s linear both; }
@keyframes sw-fall { 0% { opacity: 0; transform: translateY(-.8rem); } 18%, 72% { opacity: .72; } 100% { opacity: 0; transform: translateY(7rem); } }
@keyframes sw-ride { 0% { opacity: 0; transform: translateX(110%); } 12%, 78% { opacity: .65; } 100% { opacity: 0; transform: translateX(calc(0px - var(--sw-cross))); } }
@media (max-width: 590px) { .sw-flake:nth-child(n+13) { display: none; } }
@media (prefers-reduced-motion: reduce) { .sw-flake, .sw-sleigh { display: none; } }

.sw-panel .sw-motto { margin-top: .8rem; font-style: italic; }
.sw-hat-letter { position: relative; font-style: inherit; }
.sw-hat { display: none; }
.sw-hat-letter .sw-hat {
  position: absolute;
  left: .065em;
  top: .39em;
  z-index: 1;
  display: block;
  width: .46em;
  height: .085em;
  border-radius: 999px;
  background: linear-gradient(#fffdf4, #eee4d6);
  box-shadow: 0 1px 2px #49271f40;
  transform: rotate(-9deg);
  pointer-events: none;
}
.sw-hat::before {
  content: "";
  position: absolute;
  inset: auto -.005em calc(100% - .012em) .035em;
  height: .235em;
  background: linear-gradient(120deg, #ad2928, #cc473b 57%, #9f2524);
  clip-path: polygon(0 100%, 9% 59%, 24% 19%, 46% 2%, 65% 4%, 80% 24%, 100% 69%, 82% 77%, 72% 55%, 83% 100%);
}
.sw-hat::after {
  content: "";
  position: absolute;
  top: -.11em;
  right: -.03em;
  width: .085em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 32%, #fffdf4 35%, #eaddcd 90%);
}
.sw-page-snow { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sw-page-snow { display: block; position: fixed; inset: 0; z-index: 4; pointer-events: none; }
  .sw-page-snow-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
  .sw-page-snow[data-paused="true"] .sw-page-snow-scene { visibility: hidden; }
  .sw-page-snow-controls { position: absolute; inset: auto .8rem .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
  .sw-page-snow [hidden], .sw-page-snow[data-paused="true"] .sw-page-snow-globe { display: none !important; }
  .sw-page-snow-toggle {
    min-height: 2.75rem;
    padding: .35rem .65rem;
    border: 1px solid #bdc9be;
    border-radius: .25rem;
    background: #f6f8f5;
    color: #182820;
    font-size: .81rem;
    pointer-events: auto;
    cursor: pointer;
  }
}

.sw-greeting--decorated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3.25rem, 13vw, 8rem);
  align-items: center;
  gap: clamp(.5rem, 2vw, 1rem);
}
.sw-greeting--decorated h2 { overflow-wrap: anywhere; }
.sw-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 91%, #43654d21, transparent 61%);
}
.sw-art--tree::before {
  content: "";
  position: absolute;
  inset: 71% 46% 11%;
  background: #786141;
}
.sw-tree {
  position: absolute;
  inset: 10% 18% 17%;
  background:
    radial-gradient(circle at 49% 30%, #f1c56f 0 3%, transparent 4%),
    radial-gradient(circle at 62% 54%, #d77760 0 3.2%, transparent 4.4%),
    radial-gradient(circle at 38% 59%, #eac582 0 3.5%, transparent 4.6%),
    radial-gradient(circle at 68% 81%, #f4d78f 0 3.4%, transparent 4.5%),
    radial-gradient(circle at 27% 85%, #cf775e 0 3.2%, transparent 4.4%),
    linear-gradient(107deg, #3d7957 3%, #245c40 49%, #17482f 51%, #113923);
  clip-path: polygon(50% 0, 76% 38%, 66% 38%, 87% 66%, 75% 66%, 100% 96%, 80% 100%, 23% 100%, 0 96%, 25% 66%, 13% 66%, 34% 38%, 24% 38%);
}
.sw-tree-star {
  position: absolute;
  inset: 1% 44% auto;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f4d790, #b48536);
  clip-path: polygon(50% 0, 63% 34%, 100% 38%, 72% 63%, 81% 100%, 50% 80%, 19% 100%, 28% 63%, 0 38%, 37% 34%);
}
.sw-gift {
  position: absolute;
  bottom: var(--sw-gift-bottom);
  left: var(--sw-gift-left);
  width: var(--sw-gift-width);
  height: var(--sw-gift-height);
  border-radius: 5% 5% 9% 9%;
  background: linear-gradient(90deg, transparent 44%, var(--sw-gift-ribbon) 44% 56%, transparent 56%), var(--sw-gift-box);
  box-shadow: inset -.13rem -.15rem #33251823;
}
.sw-gift::before {
  content: "";
  position: absolute;
  inset: -6% -5% auto;
  height: 25%;
  border-radius: .15rem;
  background: linear-gradient(90deg, transparent 44%, var(--sw-gift-ribbon) 44% 56%, transparent 56%), var(--sw-gift-lid);
  box-shadow: 0 .11rem #33251821;
}
.sw-gift::after {
  content: "";
  position: absolute;
  inset: -29% 28% auto;
  height: 28%;
  border-radius: 50% 50% 25% 25%;
  background: var(--sw-gift-ribbon);
  clip-path: polygon(0 0, 50% 57%, 100% 0, 94% 77%, 52% 100%, 8% 79%);
}
.sw-gift--red {
  --sw-gift-box: #9f4338;
  --sw-gift-lid: #b95143;
  --sw-gift-ribbon: var(--sw-accent, #e9c78b);
  --sw-gift-left: 7%;
  --sw-gift-bottom: 6%;
  --sw-gift-width: 31%;
  --sw-gift-height: 24%;
}
.sw-gift--gold {
  --sw-gift-box: #b48846;
  --sw-gift-lid: #d4a45c;
  --sw-gift-ribbon: #f6e1ae;
  --sw-gift-left: 66%;
  --sw-gift-bottom: 10%;
  --sw-gift-width: 25%;
  --sw-gift-height: 20%;
}
.sw-gift--green {
  --sw-gift-box: #437a5c;
  --sw-gift-lid: #518e6d;
  --sw-gift-ribbon: #e9d3a0;
  --sw-gift-left: 38%;
  --sw-gift-bottom: 2%;
  --sw-gift-width: 30%;
  --sw-gift-height: 17%;
}

.sw-lights-positioned { position: relative; }
.sw-lights {
  position: absolute;
  inset: auto 0 -10px;
  height: 12px;
  pointer-events: none;
  background-image: radial-gradient(circle at 12px 5px, #ffdc93 2px, #b7814370 3px, transparent 7px),
    radial-gradient(circle at 46px 8px, #eed1aa 1.5px, #b7814355 2.5px, transparent 6px),
    linear-gradient(180deg, #244c37 1px, transparent 2px);
  background-size: 68px 12px, 68px 12px, auto;
}
