.christmas-only { display: none; }
.christmas .christmas-only { display: block; }
.christmas {
  --christmas-radius: min(30vmin, 180px);
  --christmas-center: 50%;
  --christmas-music-gap: 108px;
}
.christmas body {
  background: #050505;
  background-image: radial-gradient(ellipse at 50% 45%, #101010 0, #080808 32%, #050505 72%);
  color: #ece8db;
}
.christmas .stage {
  top: var(--christmas-center);
  width: calc(var(--christmas-radius) * 2);
  height: calc(var(--christmas-radius) * 2);
}
.christmas .circle {
  background: #161616;
  box-shadow: 0 0 0 1px #dcc69a35, 0 0 48px #cbb7770e, 0 0 110px #ffffff04;
}
.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: #999999; bottom: 18px; z-index: 4; }
.christmas .help-link:hover, .christmas .help-link:focus-visible { color: #e5d5af; }
.christmas .download-choice { border-color: #6d6657; background: #151515; color: #ece8db; box-shadow: 0 24px 100px #0008; }
.christmas .download-choice::backdrop { background: #030b08c9; }
.christmas .download-options button { border-color: #5f594c; background: #292724; color: #ece8db; }
.christmas .download-options button:hover { background: #38342c; }
.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: 57%; height: auto; right: -3%; top: -5%;
  transform: rotate(70deg); 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: #aaa397;
  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: 96px; }
  .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: #151515cc;
      color: #b9b4a7; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .christmas-music button:hover, .christmas-credit summary:hover { color: #e3d4af; border-color: #bbaa83; }
    .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: #a99b77; }
    .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: #d0c19b; 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: #9b978e; 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: #9b978e; }
    .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 #5f594c; border-radius: 12px; background: #151515;
      color: #c9c4b7; 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 #5f594c; border-radius: 6px; background: #222222; color: #ece8db; font: inherit; }

.christmas {
  --christmas-radius: min(26vmin, 168px);
  --christmas-center: 44%;
}
.christmas .christmas-hat { display: block; z-index: 4; }
.christmas-tree { position: fixed; bottom: 12px; left: -12px; width: clamp(190px, 22vw, 285px); height: auto; opacity: 0.92; }
.christmas-sleigh {
  position: absolute; left: -340px; top: 0; width: clamp(175px, 20vw, 280px); opacity: 0.85;
  animation: christmas-sleigh-flight 32s linear -10s infinite; will-change: transform;
}
.christmas-sleigh img { display: block; width: 100%; height: auto; transform: scaleX(-1); animation: christmas-sleigh-bob 2.8s ease-in-out infinite alternate; }
@keyframes christmas-sleigh-flight {
  0% { transform: translate3d(-10vw, 16px, 0) scale(0.7); }
  50% { transform: translate3d(calc(50vw + 340px), -14px, 0) scale(0.84); }
  100% { transform: translate3d(calc(100vw + 680px), 8px, 0) scale(0.7); }
}
@keyframes christmas-sleigh-bob { from { transform: translateY(-3px) rotate(-1deg) scaleX(-1); } to { transform: translateY(3px) rotate(1deg) scaleX(-1); } }
@media (max-width: 600px) {
  .christmas { --christmas-radius: min(28vw, 130px); }
  .christmas-tree { left: -24px; bottom: 20px; width: 170px; }
  .christmas-sleigh { width: 190px; top: 0; }
}
@media (max-height: 820px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: min(18vmin, 140px); --christmas-center: 36%; }
}
@media (max-height: 700px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: min(18vmin, 120px); --christmas-center: 37%; --christmas-music-gap: 110px; }
}
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: min(14vmin, 95px); --christmas-center: 27%; --christmas-music-gap: 100px; }
  .christmas-tree { width: 140px; bottom: 12px; left: -18px; }
  .christmas-sleigh { width: 145px; top: -8%; opacity: 0.8; }
}
@media (max-height: 360px) and (min-aspect-ratio: 1/1) {
  .christmas { --christmas-radius: 11vmin; --christmas-center: 26%; --christmas-music-gap: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .christmas-sleigh, .christmas-sleigh img { animation: none; }
  .christmas-sleigh { left: 8%; transform: scale(0.75); }
}
