/* FizzySums site: winter and New Year over the summer look every page has by itself. The season is the game's
   (assets/season-pick.js sets <html data-season>), the colours are the game's winter theme (Theme_Winter.tss) and the
   pictures beside this file are the game's own, made smaller: the logos from Meta/Paywall/Art/PaywallLogo_<Season>.png,
   the icons from Icons/Seasons/<Season>/AppIcon-1024.png, frost-card and frost-pill from SeasonFrostCard.png and
   OnboardingFrostPill.png (half size — the slices below are half the game's), the icicles from
   SeasonCardCorners_Winter.png (its left and right groups), the sprig from OnboardingSprig_NewYear.png.
   New Year is winter plus its own logo, icon, frames and the sprig. */
html:is([data-season="winter"],[data-season="newyear"]) { --shade:31,84,150; }
html:is([data-season="winter"],[data-season="newyear"]),
html:is([data-season="winter"],[data-season="newyear"]) body { background:#81d5fb; }
/* the winter sky, then the snow field */
html:is([data-season="winter"],[data-season="newyear"]) .page {
  background:linear-gradient(180deg,#81d5fb 0%,#a6ddf4 16%,#d6f0fc 30%,#edf7fc 44%,#e6f0f6 64%,#d6dee3 100%);
}
/* on snow a see-through card loses its edge: the cards are solid */
html:is([data-season="winter"],[data-season="newyear"]) :is(.feature,.rm-card,.follow) { position:relative; background:#fff; }
/* the roadmap's white trail vanishes on snow: navy, as the game's trail does */
html:is([data-season="winter"],[data-season="newyear"]) .rm-path path { stroke:rgba(31,84,150,.3); }
/* frost in the four corners of the feature cards (the onboarding's tiles) */
html:is([data-season="winter"],[data-season="newyear"]) :is(.feature,.lost-card) > :not(.lost-slime) { position:relative; }
html:is([data-season="winter"],[data-season="newyear"]) :is(.feature,.lost-card)::before {
  content:''; position:absolute; inset:0; pointer-events:none; border-style:solid; border-color:transparent;
  border-width:45px 64px 48px 64px; border-image:url(frost-card.webp) 90 128 96 128 stretch;
}
/* frost on two corners of the pills under the store buttons (the onboarding's facts) */
html:is([data-season="winter"],[data-season="newyear"]) .badge-pill { position:relative; background:#fff; }
html:is([data-season="winter"],[data-season="newyear"]) .badge-pill > * { position:relative; }
html:is([data-season="winter"],[data-season="newyear"]) .badge-pill::before {
  content:''; position:absolute; inset:0; pointer-events:none; border-style:solid; border-color:transparent;
  border-width:0 45px; border-image:url(frost-pill.webp) 0 90 0 90 stretch;
}
/* icicles on the bottom corners of the roadmap's cards and of «Be the first to know» (the popups' cards): they hug
   the card's sides and hang under its bottom edge */
html:is([data-season="winter"],[data-season="newyear"]) :is(.rm-card,.follow)::after {
  content:''; position:absolute; left:-6px; right:-6px; bottom:-22.5px; height:46.5px; pointer-events:none;
  background:url(icicles-left.webp) left top / auto 100% no-repeat, url(icicles-right.webp) right top / auto 100% no-repeat;
}
/* New Year: a sprig with a bauble on the corner of the feature cards (the onboarding's tiles) and of the 404 card */
html[data-season="newyear"] :is(.feature,.lost-card)::after {
  content:''; position:absolute; top:-5px; right:-4px; width:58px; height:58px; pointer-events:none;
  background:url(sprig-newyear.webp) center / contain no-repeat;
}
/* snow instead of the bubbles (render.js): a flake falls most of a screen with a sway of its own and melts */
@keyframes snow {
  0% { transform:translate(0,-12vh); opacity:0 }
  10% { opacity:.95 }
  80% { opacity:.85 }
  100% { transform:translate(var(--sway,20px),72vh); opacity:0 }
}
@media (prefers-reduced-motion:reduce) {
  html:is([data-season="winter"],[data-season="newyear"]) #fizz span { animation:none !important; }
}
