/* Christmas seasonal layer — driven only by html.season-christmas (see assets/js/season.js).
   Setting window.ALUO_SEASON = "" removes the class and this entire layer. */

.season-line { display: none; }
.hero-art .hero-christmas { display: none; }
.art-christmas { display: none; }

html.season-christmas .hero-art .hero-default { display: none; }
html.season-christmas .hero-art .hero-christmas { display: block; }
html.season-christmas .art-default { display: none; }
html.season-christmas .art-christmas { display: block; }

html.season-christmas .season-line {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--gold-bright);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(240, 208, 120, 0.28);
}

html.season-christmas .hero {
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: var(--header-h);
}
html.season-christmas .hero-art {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1920 / 822;
  flex: 0 0 auto;
}
html.season-christmas .hero-art img,
html.season-christmas .hero-art .hero-christmas {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
  animation: none !important;
}
html.season-christmas .hero-vignette {
  background: linear-gradient(0deg, rgba(8, 10, 16, 0.58) 0%, transparent 30%);
}
html.season-christmas .hero-content {
  padding: 0.5rem 0 1rem;
  text-align: center;
}
html.season-christmas .hero .kicker { display: none; }
html.season-christmas .hero .launch-note { margin-bottom: 0.7rem; }
html.season-christmas .hero .hero-cta { padding: 0.75rem 1.25rem 0.8rem; }
html.season-christmas .hero .scroll-cue { margin-top: 0.7rem; }
html.season-christmas .season-line { margin-bottom: 0.35rem; }

/* Keep the Christmas banner + greeting + Play Now buttons in view on shorter desktops.
   The image uses contain, so the wordmark, moon, and ULTIMA-ONLINE stay fully visible. */
@media (max-height: 900px) {
  html.season-christmas .hero-art {
    max-height: calc(100dvh - var(--header-h) - 13.5rem);
  }
  html.season-christmas .hero-art img,
  html.season-christmas .hero-art .hero-christmas {
    object-fit: contain;
  }
  html.season-christmas .hero .scroll-cue { margin-top: 0.4rem; }
  html.season-christmas .hero .scroll-cue::after { height: 16px; margin-top: 0.25rem; }
}
html.season-christmas .hero h1,
html.season-christmas .hero .subbrand {
  /* Logo is already in the Christmas banner — do not stack a second wordmark */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
html.season-christmas .hero .tagline { display: none; }

/* Cool moonlight + warm gold wash — very light, whole site, no extra copy */
html.season-christmas body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(186, 214, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(122, 31, 43, 0.07), transparent 48%),
    rgba(16, 24, 40, 0.04);
  mix-blend-mode: soft-light;
}
html.season-christmas {
  --gold: #E4C36A;
  --gold-bright: #F6E2A0;
}

/* Thin festive rule under the header; footer gets a matching gold edge */
html.season-christmas .site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6e1b26 18%, #E8C56B 50%, #1a3a2a 82%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}
html.season-christmas .site-footer {
  box-shadow:
    inset 0 1px 0 rgba(232, 197, 107, 0.30),
    inset 0 0 0 1px rgba(212, 175, 87, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.32);
}

/* Site-wide falling snow — injected by season.js, under the header, over content */
.snow {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}
.snow .snow-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html.season-christmas .snow { display: block; }

.snow .flake {
  position: absolute;
  top: -8%;
  left: var(--x, 10%);
  width: var(--size, 20px);
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: var(--opacity, 0.85);
  pointer-events: none;
  animation: flake-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
  will-change: transform;
}
.snow .flake-sway {
  display: block;
  animation: flake-sway var(--sway-dur, 3.8s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.snow .flake-spin {
  display: block;
  width: var(--size, 20px);
  transform-origin: 50% 50%;
  animation: flake-spin-a var(--spin-dur, 9s) linear var(--delay, 0s) infinite;
  will-change: transform;
  filter:
    drop-shadow(0 0 2px rgba(240, 248, 255, 0.70))
    drop-shadow(0 1px 2px rgba(8, 10, 16, 0.35));
}
.snow .flake[data-spin="b"] .flake-spin { animation-name: flake-spin-b; }
.snow .flake[data-spin="c"] .flake-spin { animation-name: flake-spin-c; }
.snow .flake svg { display: block; width: 100%; height: auto; overflow: visible; }

@keyframes flake-fall {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--drift, 16px), var(--travel, 110vh), 0); }
}
@keyframes flake-sway {
  0%   { transform: translate3d(calc(var(--sway, 18px) * -1), 0, 0); }
  100% { transform: translate3d(var(--sway, 18px), 0, 0); }
}
@keyframes flake-spin-a {
  0%   { transform: rotate(var(--rot, 0deg)); }
  100% { transform: rotate(calc(var(--rot, 0deg) + 360deg)); }
}
@keyframes flake-spin-b {
  0%   { transform: rotate(var(--rot, 0deg)); }
  100% { transform: rotate(calc(var(--rot, 0deg) - 360deg)); }
}
@keyframes flake-spin-c {
  0%   { transform: rotate(var(--rot, 0deg)) scale(1); }
  50%  { transform: rotate(calc(var(--rot, 0deg) + 180deg)) scale(0.92); }
  100% { transform: rotate(calc(var(--rot, 0deg) + 360deg)) scale(1); }
}

@media (max-width: 639px) {
  .snow .flake[data-priority="low"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.season-christmas .snow { display: none !important; }
}
