.christmas-only { display: none; }
.christmas .christmas-only { display: block; }
.christmas {
  --christmas-radius: min(30vmin, 180px);
  --christmas-center: 50%;
  --christmas-music-gap: 68px;
}
.christmas body {
  background: #07100d;
  background-image: radial-gradient(ellipse at 50% 45%, #14271e 0, #0c1913 32%, #07100d 72%);
  color: #ece8db;
}
.christmas .stage {
  top: var(--christmas-center);
  width: calc(var(--christmas-radius) * 2);
  height: calc(var(--christmas-radius) * 2);
}
.christmas .circle {
  background: #15251d;
  box-shadow: 0 0 0 1px #dcc69a35, 0 0 48px #cbb7770e, 0 0 110px #77a7820d;
}
.christmas .circle:focus-visible { outline-color: #dac28c; }
.christmas .count { color: #d9c89f; top: calc(var(--christmas-center) + var(--christmas-radius) + 8px); }
.christmas .ring { border-color: #d9c89f66; }
.christmas .pointer { color: #d9c89f; }
.christmas .pointer svg { filter: drop-shadow(0 0 6px #d9c89f44); }
.christmas .help-link { color: #8a9d8e; bottom: 18px; z-index: 4; }
.christmas .help-link:hover, .christmas .help-link:focus-visible { color: #e5d5af; }
.christmas .download-choice { border-color: #6b7356; background: #102017; color: #ece8db; box-shadow: 0 24px 100px #0008; }
.christmas .download-choice::backdrop { background: #030b08c9; }
.christmas .download-options button { border-color: #657352; background: #20392b; color: #ece8db; }
.christmas .download-options button:hover { background: #2b4935; }
.christmas .download-options button:focus-visible, .christmas .acc-head:focus-visible { outline-color: #d9c89f; }
.christmas-scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.christmas-hat {
  position: absolute; z-index: 3; width: 50%; height: auto; right: -4%; top: -14%;
  transform: rotate(12deg); pointer-events: none; filter: drop-shadow(0 5px 9px #0005);
}
.christmas-greeting {
  position: fixed; left: 50%; top: calc(var(--christmas-center) + var(--christmas-radius) + 36px);
  transform: translateX(-50%); margin: 0; color: #9eaa91;
  font: 9px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.2em; white-space: nowrap; pointer-events: none;
}
.christmas-snow {
  position: absolute; left: var(--x); top: -8px; width: var(--size, 3px); height: var(--size, 3px);
  border-radius: 50%; background: #f2eee1; opacity: 0;
  animation: christmas-snowfall var(--duration, 22s) linear var(--delay, 0s) infinite;
}
@keyframes christmas-snowfall {
  0% { transform: translate3d(0, -12px, 0); opacity: 0; }
  10%, 85% { opacity: var(--opacity, 0.3); }
  100% { transform: translate3d(var(--drift, 20px), calc(100svh + 24px), 0); opacity: 0; }
}
@media (max-width: 600px) {
  .christmas { --christmas-radius: min(28vw, 130px); }
}
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: min(17vmin, 95px); --christmas-center: 40%; --christmas-music-gap: 56px; }
  .christmas-greeting { font-size: 8px; }
}
@media (max-height: 400px) { .christmas .help-link { bottom: 8px; } }
@media (max-height: 360px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: 14vmin; --christmas-center: 34%; }
}
@media (prefers-reduced-motion: reduce) { .christmas-snow { animation: none; } }

    .christmas-music {
      position: fixed; left: 50%; top: calc(var(--christmas-center) + var(--christmas-radius) + var(--christmas-music-gap));
      transform: translateX(-50%); width: min(300px, calc(100vw - 36px)); z-index: 6;
      grid-template-columns: 122px minmax(0, 1fr) 26px; align-items: center; gap: 8px 10px;
    }
    .christmas .christmas-music { display: grid; }
    .christmas-music button, .christmas-credit summary {
      display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
      border: 1px solid #cdbd8d38; border-radius: 50%; background: #102017cc;
      color: #a7b69d; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .christmas-music button:hover, .christmas-credit summary:hover { color: #e3d4af; border-color: #a6ad78; }
    .christmas-music button:focus-visible, .christmas-credit summary:focus-visible { outline: 2px solid #d9c89f; outline-offset: 3px; }
    .christmas-music button.is-playing { color: #d9c89f; border-color: #879663; }
    .christmas-music svg { width: 18px; height: 18px; }
    .christmas-music .music-pause, .christmas-music .is-playing .music-play { display: none; }
    .christmas-music .is-playing .music-pause { display: block; }
    .christmas-transport { display: flex; align-items: center; gap: 4px; }
    .christmas-transport button.music-skip, .christmas-transport button.music-shuffle { width: 24px; height: 30px; border-color: transparent; background: transparent; }
    .christmas-transport button.music-skip svg, .christmas-transport button.music-shuffle svg { width: 15px; height: 15px; }
    .christmas-transport button:disabled { opacity: 0.3; cursor: default; }
    .christmas-timeline { min-width: 0; }
    .christmas-music input[type="range"] { display: block; width: 100%; height: 16px; padding: 0; margin: 0; accent-color: #b6c18a; background: transparent; cursor: pointer; }
    .christmas-music input[type="range"]:disabled { opacity: 0.35; cursor: default; }
    .christmas-music input[type="range"]:focus-visible { outline: 1px solid #d9c89f; outline-offset: 3px; border-radius: 3px; }
    .christmas-times { display: flex; justify-content: space-between; margin-top: 2px; color: #91a18b; font-family: "IBM Plex Mono", monospace; font-size: 10px; line-height: 1.2; }
    .christmas-volume { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #91a18b; }
    .christmas-volume svg { width: 14px; height: 14px; }
    .christmas-volume button.music-mute { width: 24px; height: 24px; border-color: transparent; background: transparent; color: inherit; }
    .music-mute .speaker-muted, .music-mute.is-muted .speaker-on { display: none; }
    .music-mute.is-muted .speaker-muted { display: block; }
    .christmas-volume input[type="range"] { width: 106px; }
    .christmas-volume output { min-width: 28px; text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
    .christmas-credit { position: static; }
    .christmas-credit summary { list-style: none; width: 26px; height: 26px; border-color: transparent; background: transparent; }
    .christmas-credit summary::-webkit-details-marker { display: none; }
    .christmas-credit summary svg { width: 15px; height: 15px; }
    .christmas-credit-box {
      position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); width: min(300px, calc(100vw - 36px));
      padding: 16px; border: 1px solid #657352; border-radius: 12px; background: #102017;
      color: #c2ceb7; text-align: left; font-size: 12px; line-height: 1.8; box-shadow: 0 12px 36px #0006;
    }
    .christmas-credit-box a { color: #e3d4af; text-underline-offset: 3px; }
    .christmas-credit-box { overflow-wrap: anywhere; }
    .christmas-credit-box select { display: block; width: 100%; margin-bottom: 10px; padding: 6px 8px; border: 1px solid #657352; border-radius: 6px; background: #182b20; color: #ece8db; font: inherit; }
