/* Optional winter art direction. Every visual change is scoped to the saved theme. */
.seasonal-hero-decor { display: none; }
html[data-season="new-year"] {
  --winter-gold: #b68742;
  --winter-ice: #e9f3f4;
  --cream: #faf7f0;
  --surface: #fffdf9;
}
html[data-season="new-year"] body { background: var(--cream); }
html[data-season="new-year"] .hero {
  background:
    radial-gradient(ellipse at 52% 38%, #fffdf6 12%, #fffdf600 58%),
    radial-gradient(ellipse at 5% 55%, #cbe7e9a6, transparent 49%),
    radial-gradient(ellipse at 98% 18%, #e6f1ef, transparent 51%),
    linear-gradient(160deg, #faf7f0 12%, #f1f7f5 63%, #e2eff0);
}
html[data-season="new-year"] .seasonal-hero-decor {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: paint;
}
html[data-season="new-year"] .seasonal-hero-decor::before,
html[data-season="new-year"] .seasonal-hero-decor::after {
  content: '';
  position: absolute;
  top: 118px;
  width: clamp(170px, 20vw, 300px);
  aspect-ratio: 36 / 23;
  background: url('assets/winter-pine-branch.svg') center / contain no-repeat;
  opacity: .95;
}
html[data-season="new-year"] .seasonal-hero-decor::before { left: -72px; transform: rotate(-12deg); }
html[data-season="new-year"] .seasonal-hero-decor::after { right: -72px; transform: scaleX(-1) rotate(-12deg); }
html[data-season="new-year"] .winter-garland {
  position: absolute;
  top: 58px;
  left: 22%;
  width: 56%;
  aspect-ratio: 4;
  height: auto;
  background: url('assets/winter-garland-complete.svg') center top / 100% auto no-repeat;
  opacity: .85;
}
html[data-season="new-year"] .winter-star {
  position: absolute;
  top: 53%;
  left: 27%;
  width: clamp(28px, 3.4vw, 46px);
  aspect-ratio: 1;
  background: url('assets/winter-star.svg') center / contain no-repeat;
  transform: rotate(14deg);
}
html[data-season="new-year"] .winter-snow {
  position: absolute;
  inset: 110px 0 26%;
  opacity: .6;
  background-image: radial-gradient(circle at 12% 20%, #fffdf7 0 2px, transparent 2.6px), radial-gradient(circle at 85% 45%, #fffdf7 0 3px, transparent 3.8px), radial-gradient(circle at 34% 78%, #b4d4d2 0 1.4px, transparent 2px);
  background-size: 277px 193px, 409px 257px, 349px 277px;
}
html[data-season="new-year"] .hero-event {
  background: #fffefaeb;
  border-color: #c5b79450;
  box-shadow: 0 8px 30px #48656308;
}
html[data-season="new-year"] .hero .title-dot { color: var(--winter-gold); }
html[data-season="new-year"] .about {
  background: radial-gradient(ellipse at 100% 0, #47627e 0, transparent 54%), linear-gradient(145deg, #243b67, #1e3857);
}
html[data-season="new-year"] .channel-band { background: linear-gradient(120deg, #d9edeb, #b4e5e8); border: 1px solid #ffffff28; }
html[data-season="new-year"] .impact {
  background: radial-gradient(circle at 91% 15%, #fff3d8 0, transparent 29%), linear-gradient(125deg, #edf5f1, #e0eff0);
}
html[data-season="new-year"] .impact-stats { background: transparent; }
html[data-season="new-year"] .impact-stats-title { color: var(--navy); }
html[data-season="new-year"] .mascot-scene::after {
  content: '';
  position: absolute;
  top: 0;
  right: 3%;
  width: 48px;
  aspect-ratio: 1;
  background: url('assets/winter-star.svg') center / contain no-repeat;
  transform: rotate(12deg);
  pointer-events: none;
}
html[data-season="new-year"] .direction,
html[data-season="new-year"] .place-card,
html[data-season="new-year"] .join-team { border-color: #b6c9c766; }
/* Keep both seasonal illustrations at the same native size and in one slot. */
.place-illustration-winter { display: none; }
html[data-season="new-year"] .place-illustration-classic { display: none; }
html[data-season="new-year"] .place-illustration-winter { display: block; }
html[data-season="new-year"] .direction:nth-child(2),
html[data-season="new-year"] .place-card:nth-child(2) { background: #e7f1f2; }
html[data-season="new-year"] .direction:nth-child(3) { background: #fae9ee; }
html[data-season="new-year"] .trips-section { background: #e6f0f2; }
html[data-season="new-year"] .stories { background: #f3f0e7; }
html[data-season="new-year"] .help-section {
  background: radial-gradient(ellipse at 100% 0, #fff3d8 0, transparent 48%), linear-gradient(135deg, #dcefee, #b4e5e8);
}
html[data-season="new-year"] .footer { position: relative; background: #faf7f0; }
html[data-season="new-year"] .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 44px;
  background: url('assets/winter-garland.svg') center top / 720px 90px repeat-x;
  opacity: .65;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-season="new-year"] .winter-garland { animation: winter-lights 5s ease-in-out infinite alternate; }
  html[data-season="new-year"] .winter-snow { animation: winter-drift 12s ease-in-out infinite alternate; }
}
@keyframes winter-lights { from { opacity: .65; } to { opacity: 1; } }
@keyframes winter-drift { from { transform: translateY(-5px); opacity: .4; } to { transform: translateY(7px); opacity: .7; } }
@media (max-width: 1000px) {
  html[data-season="new-year"] .winter-garland { left: 20%; width: 60%; top: 67px; }
  html[data-season="new-year"] .winter-star { display: none; }
  html[data-season="new-year"] .seasonal-hero-decor::before,
  html[data-season="new-year"] .seasonal-hero-decor::after { top: 106px; width: 170px; opacity: .85; }
}
@media (max-width: 760px) {
  html[data-season="new-year"] .hero:has(.hero-3d) { row-gap: 8px; }
  /* Give decorations their own row: their placement never depends on the
     rotating model's silhouette, phone height or trip-card text wrapping. */
  html[data-season="new-year"] .hero:has(.hero-3d) .seasonal-hero-decor {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4;
    height: auto;
    align-self: start;
  }
  html[data-season="new-year"] .hero:has(.hero-3d) .hero-art {
    grid-row: 3;
    /* Bring the transparent canvas into the empty space below the ornaments.
       Its size and camera framing stay unchanged; later rows move up with it. */
    margin-top: calc(-1 * clamp(12px, 4vw, 22px));
  }
  html[data-season="new-year"] .hero:has(.hero-3d) h1 { grid-row: 4; }
  html[data-season="new-year"] .hero:has(.hero-3d) .hero-event { grid-row: 5; }
  html[data-season="new-year"] .winter-garland { top: 0; left: 0; width: 100%; height: 100%; opacity: 1; }
  html[data-season="new-year"] .seasonal-hero-decor::before,
  html[data-season="new-year"] .seasonal-hero-decor::after,
  html[data-season="new-year"] .winter-snow { display: none; }
  html[data-season="new-year"] .mascot-scene::after { width: 34px; }
  html[data-season="new-year"] .footer::before { height: 32px; background-size: 520px 65px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  html[data-season="new-year"] .winter-garland { top: 49px; }
}
/* Use the measured free space above each side column on shorter laptops. */
@media (max-height: 900px) and (min-width: 1001px) {
  html[data-season="new-year"] .seasonal-hero-decor::before { top: 144px; left: -30px; width: clamp(40px, calc((var(--mission-top, 240px) - 166px) * 1.2), 260px); }
  html[data-season="new-year"] .seasonal-hero-decor::after { top: 144px; right: -30px; width: clamp(40px, calc((var(--event-top, 240px) - 166px) * 1.2), 260px); }
}
@media (max-height: 900px) and (min-width: 761px) and (max-width: 1000px) {
  html[data-season="new-year"] .seasonal-hero-decor::before,
  html[data-season="new-year"] .seasonal-hero-decor::after { top: 100px; width: 90px; }
  html[data-season="new-year"] .seasonal-hero-decor::before { left: -30px; }
  html[data-season="new-year"] .seasonal-hero-decor::after { right: -30px; }
}
@media (forced-colors: active) {
  html[data-season="new-year"] .seasonal-hero-decor,
  html[data-season="new-year"] .mascot-scene::after,
  html[data-season="new-year"] .footer::before { display: none; }
}
