/* All decoration stays inside the greeting. No page-wide overlay. */
.christmas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding: 1.8rem 1.5rem 1.1rem;
  border: 1px solid #496b52;
  border-radius: 18px;
  background: linear-gradient(115deg, #1d3b30, #2c5140);
  color: #fff9eb;
}
.christmas__message { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.christmas h2 {
  margin: 0 0 .3rem;
  color: #fff2cf;
  font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.2 Georgia, serif;
}
.christmas p { margin: 0; line-height: 1.5; font-size: .92rem; }
.christmas__sprig { flex: 0 0 62px; width: 62px; height: 72px; color: #9dbb9c; }
.christmas__controls { flex: 0 0 auto; max-width: 100%; }
.christmas__celebration { display: none; flex: 0 0 64px; width: 64px; text-align: center; color: #f2d499; }
.christmas__celebration svg { display: block; width: 64px; height: 48px; }
.christmas__year { font: 700 1.15rem/1.2 Georgia, serif; letter-spacing: .08em; }
.christmas__motif { display: none; flex: 0 0 64px; width: 64px; height: 80px; color: #72926c; }
.christmas[data-effect="petals"] .christmas__spring,
.christmas[data-kind="easter"] .christmas__easter,
.christmas[data-kind="goodfriday"] .christmas__quiet,
.christmas[data-kind="allsaints"] .christmas__quiet,
.christmas[data-kind="unity"] .christmas__unity { display: block; }
.christmas[data-effect="petals"] .christmas__sprig,
.christmas[data-effect="none"] .christmas__sprig,
.christmas[data-effect="petals"] .christmas__lights,
.christmas[data-effect="none"] .christmas__lights,
.christmas[data-kind="easter"] .christmas__spring { display: none; }
.christmas[data-effect="petals"] { background: linear-gradient(115deg, #f8f1db, #e3edd6); color: #294539; border-color: #b6c3a5; }
.christmas[data-effect="petals"] h2 { color: #304d3d; }
.christmas[data-effect="petals"] .christmas__hint,
.christmas[data-effect="petals"] .christmas__preview,
.christmas[data-effect="petals"] .christmas__preview a { color: #40583b; }
.christmas[data-effect="petals"] .christmas__toggle { background: #345f43; border-color: #345f43; color: #fff; }
.christmas[data-effect="petals"] .christmas__toggle:hover { background: #274d35; }
.christmas[data-effect="petals"] .christmas__toggle:focus-visible { outline-color: #294539; }
.christmas[data-kind="pentecost"] { background: linear-gradient(115deg, #f2eaf5, #e5eddf); }
.christmas[data-kind="ascension"] { background: linear-gradient(115deg, #edf5f0, #e1edf5); }
.christmas[data-kind="corpus"] { background: linear-gradient(115deg, #f1f4df, #e0edd9); }
.christmas[data-kind="goodfriday"], .christmas[data-kind="allsaints"] { background: linear-gradient(115deg, #354541, #4a5551); border-color: #7c8a80; }
.christmas[data-effect="none"] .christmas__controls,
.christmas[data-effect="none"] .christmas__snow { display: none; }
.christmas[data-effect="sparkles"] { background: linear-gradient(115deg, #192d48, #34425c); border-color: #60718b; }
.christmas[data-kind="newyear"] { background: linear-gradient(115deg, #183e3c, #28595a); border-color: #5b8580; }
.christmas[data-effect="sparkles"] .christmas__celebration { display: block; }
.christmas[data-effect="sparkles"] .christmas__sprig { display: none; }
.christmas .christmas__preview { margin-top: .45rem; font-size: .78rem; color: #fff2cf; }
.christmas__preview a { color: #fff2cf; text-decoration: underline; }
.christmas__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 11rem;
  max-width: 100%;
  padding: .55rem .9rem;
  border: 1px solid #d5bd85;
  border-radius: 999px;
  background: #fff2cf;
  color: #1d3b30;
  font: 700 .88rem/1.3 Arial, sans-serif;
  cursor: pointer;
}
.christmas__toggle:hover { background: #fff9eb; }
.christmas__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.christmas__toggle:disabled { cursor: default; background: transparent; color: #fff2cf; }
.christmas .christmas__hint { margin-top: .35rem; font-size: .75rem; color: #e0e8d9; }
.christmas [hidden] { display: none; }
.christmas__lights {
  position: absolute;
  top: 0;
  inset-inline: 1.2rem;
  height: 13px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #94aa86;
  pointer-events: none;
}
.christmas__lights span {
  width: 5px;
  height: 8px;
  border-radius: 0 0 50% 50%;
  background: #f2d499;
  box-shadow: 0 2px 8px #efcc8766;
}
.christmas__lights span:nth-child(3n) { background: #b7c9a3; box-shadow: none; }
.christmas__snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.christmas__flake {
  position: absolute;
  top: -10px;
  left: var(--snow-left);
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 50%;
  background: #fff;
  opacity: .4;
  animation: christmas-fall var(--snow-duration) linear var(--snow-delay) infinite paused;
}
.christmas[data-snow-running="true"] .christmas__flake { animation-play-state: running; }
.christmas[data-effect="sparkles"] .christmas__flake {
  background: #f2d499;
  opacity: .5;
  animation-name: christmas-sparkle;
}
.christmas[data-effect="petals"] .christmas__flake {
  width: 7px; height: 4px;
  border-radius: 80% 10% 80% 10%;
  background: #a87585;
  opacity: .4;
  animation-name: christmas-petals;
}
.christmas[data-effect="petals"] .christmas__flake:nth-child(2n) { background: #78936c; }
@keyframes christmas-petals {
  from { transform: translate3d(0, -10px, 0) rotate(-25deg); }
  to { transform: translate3d(24px, var(--snow-distance), 0) rotate(95deg); }
}
@keyframes christmas-fall {
  from { transform: translate3d(0, -10px, 0); }
  to { transform: translate3d(18px, var(--snow-distance), 0); }
}
@keyframes christmas-sparkle {
  from { transform: translate3d(0, var(--snow-distance), 0); }
  to { transform: translate3d(-12px, -10px, 0); }
}
@media (max-width: 700px) {
  .christmas { flex-wrap: wrap; gap: .6rem .8rem; padding: 1.5rem 1rem 1rem; }
  .christmas__sprig { flex-basis: 38px; width: 38px; height: 52px; }
  .christmas__celebration { flex-basis: 38px; width: 38px; }
  .christmas__motif { flex-basis: 38px; width: 38px; height: 55px; }
  .christmas__celebration svg { width: 38px; height: 38px; }
  .christmas__year { font-size: .85rem; }
  .christmas__controls { flex-basis: 100%; }
  .christmas__flake:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .christmas__snow { display: none; }
  .christmas__flake { animation: none; }
}
@media (forced-colors: active) {
  .christmas { border-color: CanvasText; }
  .christmas__snow, .christmas__lights { display: none; }
}
@media print { .christmas { display: none; } }

.season-settings { max-width: 960px; }
.season-settings__form { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.season-settings__form label { display: grid; gap: .35rem; flex: 1 1 260px; max-width: 420px; }
.season-settings__form label { min-width: 0; }
.season-settings__calendar-year { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin: 1rem 0; }
.season-settings__calendar-year label { display: grid; gap: .3rem; width: 110px; }
.season-settings select { width: 100%; min-height: 44px; font: inherit; padding: .55rem; border: 1px solid #79956e; border-radius: 10px; background: #fff; color: #1f2d16; }
.season-settings .christmas { width: 100%; margin: 1rem 0; }
.season-settings__stop { margin-top: .8rem; }
.season-settings__schedule { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.season-settings__schedule dd { margin: 0; }
@media (max-width: 540px) { .season-settings__schedule { grid-template-columns: 1fr; } .season-settings__schedule dd { margin-bottom: .5rem; } }
