/* Seasonal scenery around the original game art. All decoration ignores input. */
.winter-season {
  --snow: #f1fcff;
  --ice: #a6e4ef;
  --frost-line: #b2e9f24d;
  position: relative;
  background:
    radial-gradient(ellipse at 10% 2%, #6bb7c11b, transparent 25%),
    radial-gradient(ellipse at 85% 5%, #53215f45, transparent 30%),
    var(--ink);
}

/* One small, repeating pixel-art asset supplies the snow caps and icicles. */
.winter-season::before,
.winter-season .phone::before,
.winter-season .hero-label::before,
.winter-season .marquee::before,
.winter-season .gameplay-section::before,
.winter-season .sound-section::before,
.winter-season .closing-cta::before,
.winter-season .gameplay-card::before,
.winter-season .boost-card::before,
.winter-season .sound-console::before,
.winter-season .winter-powerup::before,
.winter-season .winter-panorama::before,
.winter-season .footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background: url("neon/winter/snow-edge-v1.svg") repeat-x left top / 640px 48px;
  image-rendering: pixelated;
}
.winter-season::before {
  top: -14px;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 25;
}

/* The control keeps the original header height, including without JavaScript. */
.winter-control { min-height: 60px; display: flex; align-items: center; flex-shrink: 0; }
.winter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #9fd7e433;
  border-radius: 9px;
  background: #14202ba6;
  color: #d9f3f6;
  font: 700 10px/1.5 NeonLabel, var(--ui);
  letter-spacing: .08em;
}
.winter-toggle:hover { border-color: var(--ice); }
.winter-toggle-flake { font-size: 17px; line-height: 1; color: var(--ice); }
.winter-toggle-switch { position: relative; width: 26px; height: 14px; border: 1px solid #a5c9d355; border-radius: 8px; background: #0d1320; }
.winter-toggle-switch::before { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 2px; background: #97a7b5; }
.winter-toggle[aria-pressed="true"] { border-color: #9fd7e466; }
.winter-toggle[aria-pressed="true"] .winter-toggle-switch { background: #a6e4ef22; }
.winter-toggle[aria-pressed="true"] .winter-toggle-switch::before { transform: translateX(12px); background: var(--ice); }
.winter-toggle[hidden], .winter-snow[hidden] { display: none; }

/* Two composited tiles, rather than an animation loop or individual particles. */
.winter-snow { position: fixed; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; contain: strict; }
.winter-snow::before, .winter-snow::after {
  content: "";
  position: absolute;
  inset: -480px -24px 0;
  background: url("neon/winter/snowflakes-v1.svg") repeat left top / 480px 480px;
  opacity: .55;
  will-change: transform;
  animation: winter-snow-fall 25s linear infinite;
}
.winter-snow::after { inset: -640px -24px 0; background-size: 640px 640px; background-position: 160px 0; opacity: .32; animation: winter-snow-near 19s linear infinite; }
@keyframes winter-snow-fall { 0% { transform: translate3d(-9px, 0, 0); } 50% { transform: translate3d(9px, 240px, 0); } 100% { transform: translate3d(-9px, 480px, 0); } }
@keyframes winter-snow-near { 0% { transform: translate3d(9px, 0, 0); } 50% { transform: translate3d(-9px, 320px, 0); } 100% { transform: translate3d(9px, 640px, 0); } }
html[data-snow-paused="true"] .winter-snow::before,
html[data-snow-paused="true"] .winter-snow::after { animation-play-state: paused; }

/* Frosted frames surround the real menu, gameplay and game-over artwork. */
.winter-season .hero-art::after { content: none; animation: none; }
.winter-season .hero-orbit { width: 100%; background: radial-gradient(ellipse, #9ae6ef21 0%, #6a78c91a 38%, transparent 70%); }
.winter-season .phone { border-color: #addbe4b3; background: linear-gradient(145deg, #d2eef4, #598494 17%, #271b39 45%, #6a9cad); box-shadow: 0 0 0 4px #0b1020, 0 0 35px #a8eff513, 20px 30px 70px #0008; }
.winter-season .phone::before { top: -17px; left: 5px; right: 5px; height: 44px; background-size: 480px 44px; border-radius: 20px 20px 0 0; z-index: 5; }
.winter-season .hero-label { border-color: #a8e1ec8f; background: #142131ed; box-shadow: 0 14px 32px #0005, inset 0 1px #e5f9ff35; }
.winter-season .hero-label::before { top: -10px; left: 8px; right: 8px; height: 26px; background-size: 380px 26px; }
.winter-season .secondary, .winter-season .language-switch { border-color: #9fd7e459; }
.winter-season .secondary { box-shadow: inset 0 1px #d6f5fb17; }
.winter-season .winter-entry { border-color: #a6e4ef88; background: #182c38b3; box-shadow: inset 0 1px #e6fbff2b; }

/* The lime ribbon and familiar neon accents remain, with snow along the lip. */
.winter-season .marquee { position: relative; overflow: visible; padding-top: 17px; }
.winter-season .marquee > span { overflow: hidden; }
.winter-season .marquee::before { left: 0; right: 0; top: -13px; height: 32px; background-size: 600px 32px; z-index: 1; }
.winter-season .character-halo { border-color: #a6e4ef40; background: radial-gradient(ellipse, #8bcede19, transparent 65%); box-shadow: 0 0 80px #7ccad014, inset 0 0 70px #708cc022; }
.winter-season .game-stats { border-top-color: var(--frost-line); }

.winter-season .gameplay-section,
.winter-season .sound-section,
.winter-season .closing-cta { position: relative; border-top-color: var(--frost-line); }
.winter-season .gameplay-section { background: linear-gradient(150deg, #182734a6, #171023 70%); }
.winter-season .sound-section { background: radial-gradient(ellipse at 75% 50%, #74246630, transparent 60%), linear-gradient(140deg, #14202e, #181126 70%); }
.winter-season .closing-cta { background: radial-gradient(ellipse at 80% 50%, #93e8ef20, transparent 57%), linear-gradient(125deg, #201830, #101a26); }
.winter-season .gameplay-section::before,
.winter-season .sound-section::before,
.winter-season .closing-cta::before { top: -12px; left: 0; right: 0; height: 48px; z-index: 2; }
.winter-season .closing-cta::before { top: -8px; }

.winter-season .gameplay-card,
.winter-season .boost-card,
.winter-season .winter-powerup,
.winter-season .sound-console { position: relative; border-color: #a9deeb6b; box-shadow: 0 14px 32px #0003, inset 0 1px #e1f9ff40; }
.winter-season .gameplay-card::before,
.winter-season .boost-card::before,
.winter-season .winter-powerup::before { top: -11px; left: 0; right: 0; height: 33px; background-size: 520px 33px; z-index: 3; }
.winter-season .boost-card { background: linear-gradient(150deg, #22303b, #1b142b 58%, #151024); }
.winter-season .boost-visual { background: linear-gradient(180deg, #8ce1e313, transparent 70%); }
.winter-season .cat-card { border-color: #a6e4ef59; box-shadow: inset 0 1px #dffbff26; }
.winter-season .sound-console::before { top: -14px; left: 6px; right: 6px; height: 36px; background-size: 570px 36px; border-radius: 17px 17px 0 0; z-index: 2; }
.winter-season .sound-console { background: linear-gradient(160deg, #28313f, #171023 65%); }
.winter-season .winter-panorama { border-color: #b5edf2a6; box-shadow: 0 0 30px #a1e8ef0d; }
.winter-season .winter-panorama::before { top: -7px; left: 0; right: 0; height: 38px; background-size: 600px 38px; z-index: 2; }
.winter-season .winter-world-tabs > button[aria-selected="true"] { border-color: #b5edf2; box-shadow: inset 0 1px #dffbff4d; }

/* A snowbank under the existing red-hat duck finishes the seasonal frame. */
.winter-season .closing-cta-halo { border-color: #c2f2f366; background: radial-gradient(ellipse, #bbf4f52b, transparent 70%); box-shadow: 0 0 70px #8ad7e114, inset 0 0 45px #b9ebff17; }
.winter-season .closing-cta-art::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 8%;
  width: 84%;
  height: 28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#f1fcff, #9ecddf);
  clip-path: polygon(0 74%, 7% 74%, 7% 48%, 18% 48%, 18% 30%, 28% 30%, 28% 16%, 42% 16%, 42% 0, 63% 0, 63% 18%, 77% 18%, 77% 41%, 88% 41%, 88% 66%, 96% 66%, 96% 80%, 100% 80%, 100% 100%, 0 100%);
}
.winter-season .footer { position: relative; padding-top: 45px; border-top-color: #afe7ef66; }
.winter-season .footer::before { top: -13px; left: 0; right: 0; height: 34px; background-size: 600px 34px; }

@media (max-width: 780px) {
  .winter-season .site-nav { border-color: #a6e4ef66; background: #121d2af7; }
  .winter-season::before { background-size: 500px 38px; height: 38px; top: -12px; }
  .winter-toggle { gap: 8px; }
  .winter-snow::after { display: none; }
  .winter-snow::before { opacity: .42; animation-duration: 30s; }
  .winter-season .gameplay-section::before,
  .winter-season .sound-section::before,
  .winter-season .closing-cta::before { background-size: 510px 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .winter-snow, .winter-toggle { display: none !important; }
}
@media (forced-colors: active) {
  .winter-snow, .winter-season::before { display: none; }
  .winter-toggle-switch::before { background: ButtonText; }
}
@media print {
  .winter-snow, .winter-control, .winter-season::before { display: none !important; }
}
