/* FF Wholesale v2: the Christmas details (the owner, 2026-12-01). */
/* Linked and drawn only while the server marks the page
   <html data-season="xmas">, from 1 December to 6 January, Prague time
   (src/lib/season.ts); out of season the page has neither. A Santa hat on the FF tile's left corner,
   tipped to the left, with one small wiggle when the pointer reaches the
   logo; a string of lights under the header whose glow breathes slowly;
   snow lying on the homepage's order-fact tiles and on the grade cards.
   None of it takes a click or carries text, and it moves only for visitors
   who allow motion. The shadows are drawn in the pictures, so no filter is
   used. To remove it for good, delete this file, src/lib/season.ts and
   withSeason in server/index.ts. A change here needs SEASON_STYLESHEET in
   src/lib/season.ts refreshed (the first 8 hex digits of this file's
   SHA-256). */
/* The hat's box per logo size (v2.css, .v2-header-logo img: 24px, 22px
   below 640px, the 28px tile alone below 430px), its top 1 to 2px under the
   bar's top edge, so the pompom is never cut by the screen's edge in the
   44px bar. */
[data-season="xmas"] .v2 .v2-header-logo {
  position: relative;
  --v2-xmas-w: 20px;
  --v2-xmas-top: calc(50% - 21px);
  --v2-xmas-left: -5px;
}
@media (max-width: 639px) {
  [data-season="xmas"] .v2 .v2-header-logo {
    --v2-xmas-w: 19px;
    --v2-xmas-top: calc(50% - 20px);
    --v2-xmas-left: -4px;
  }
}
@media (max-width: 429.98px) {
  [data-season="xmas"] .v2 .v2-header-logo {
    --v2-xmas-w: 20px;
    --v2-xmas-top: calc(50% - 21px);
    --v2-xmas-left: -5px;
  }
}
[data-season="xmas"] .v2 .v2-header-logo::before {
  content: "";
  position: absolute;
  left: var(--v2-xmas-left);
  top: var(--v2-xmas-top);
  width: var(--v2-xmas-w);
  aspect-ratio: 64 / 56;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2056%22%3E%20%3Cg%20transform%3D%22translate(.8%201.4)%22%20fill%3D%22%23000%22%20opacity%3D%22.22%22%3E%3Cpath%20d%3D%22M55%2043C53%2022%2035%205%2013%2010C17%2015%2020%2025%2017%2043Z%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2239%22%20width%3D%2248%22%20height%3D%2213%22%20rx%3D%226.5%22%2F%3E%3Ccircle%20cx%3D%229.5%22%20cy%3D%2213%22%20r%3D%227.2%22%2F%3E%3C%2Fg%3E%20%3Cpath%20d%3D%22M55%2043C53%2022%2035%205%2013%2010C17%2015%2020%2025%2017%2043Z%22%20fill%3D%22%23c8202f%22%2F%3E%20%3Cpath%20d%3D%22M24%209C18%209%2014%2010%2013%2010C17%2015%2020%2025%2017%2043L23%2043C25%2028%2024%2016%2024%209Z%22%20fill%3D%22%23a3151f%22%20opacity%3D%22.55%22%2F%3E%20%3Crect%20x%3D%2212%22%20y%3D%2239%22%20width%3D%2248%22%20height%3D%2213%22%20rx%3D%226.5%22%20fill%3D%22%23fbfbfd%22%2F%3E%20%3Cpath%20d%3D%22M16%2045h40%22%20stroke%3D%22%23e3e6ec%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%20%3Ccircle%20cx%3D%229.5%22%20cy%3D%2213%22%20r%3D%227.2%22%20fill%3D%22%23fbfbfd%22%2F%3E%20%3Ccircle%20cx%3D%2211.5%22%20cy%3D%2211%22%20r%3D%222.4%22%20fill%3D%22%23fff%22%2F%3E%20%3C%2Fsvg%3E") no-repeat center / contain;
  transform: rotate(-14deg);
  transform-origin: 55% 85%;
  pointer-events: none;
}
[data-season="xmas"] .v2 .v2-header::after,
[data-season="xmas"] .v2 .v2-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
/* The wire and the bulbs. */
[data-season="xmas"] .v2 .v2-header::after {
  bottom: -11px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%2016%22%3E%20%3Cpath%20d%3D%22M0%203Q20%209%2040%203T80%203T120%203T160%203%22%20fill%3D%22none%22%20stroke%3D%22%235d5d63%22%20stroke-width%3D%221.1%22%2F%3E%20%3Cg%20fill%3D%22%233d3d42%22%3E%3Crect%20x%3D%2218.6%22%20y%3D%225.2%22%20width%3D%222.8%22%20height%3D%222.6%22%20rx%3D%22.6%22%2F%3E%3Crect%20x%3D%2258.6%22%20y%3D%225.2%22%20width%3D%222.8%22%20height%3D%222.6%22%20rx%3D%22.6%22%2F%3E%3Crect%20x%3D%2298.6%22%20y%3D%225.2%22%20width%3D%222.8%22%20height%3D%222.6%22%20rx%3D%22.6%22%2F%3E%3Crect%20x%3D%22138.6%22%20y%3D%225.2%22%20width%3D%222.8%22%20height%3D%222.6%22%20rx%3D%22.6%22%2F%3E%3C%2Fg%3E%20%3Cellipse%20cx%3D%2220%22%20cy%3D%2210.6%22%20rx%3D%222.6%22%20ry%3D%223.4%22%20fill%3D%22%23d92b45%22%2F%3E%3Cellipse%20cx%3D%2260%22%20cy%3D%2210.6%22%20rx%3D%222.6%22%20ry%3D%223.4%22%20fill%3D%22%23f2b632%22%2F%3E%3Cellipse%20cx%3D%22100%22%20cy%3D%2210.6%22%20rx%3D%222.6%22%20ry%3D%223.4%22%20fill%3D%22%233aa6d0%22%2F%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2210.6%22%20rx%3D%222.6%22%20ry%3D%223.4%22%20fill%3D%22%23f2b632%22%2F%3E%20%3C%2Fsvg%3E") repeat-x 0 0 / 160px 16px;
}
/* The glow round the bulbs. */
[data-season="xmas"] .v2 .v2-header::before {
  bottom: -14px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%2022%22%3E%20%3Cdefs%3E%3CradialGradient%20id%3D%22r%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23ff5a6e%22%20stop-opacity%3D%22.75%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ff5a6e%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%20%3CradialGradient%20id%3D%22g%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23ffd36a%22%20stop-opacity%3D%22.75%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ffd36a%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%20%3CradialGradient%20id%3D%22b%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236cc8ec%22%20stop-opacity%3D%22.75%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%236cc8ec%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%20%3Ccircle%20cx%3D%2220%22%20cy%3D%2213.6%22%20r%3D%228%22%20fill%3D%22url(%23r)%22%2F%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2213.6%22%20r%3D%228%22%20fill%3D%22url(%23g)%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2213.6%22%20r%3D%228%22%20fill%3D%22url(%23b)%22%2F%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%2213.6%22%20r%3D%228%22%20fill%3D%22url(%23g)%22%2F%3E%20%3C%2Fsvg%3E") repeat-x 0 0 / 160px 22px;
  opacity: 0.6;
}
[data-season="xmas"] .v2 .v2-fact,
[data-season="xmas"] .v2 .v2-grade-card {
  position: relative;
}
[data-season="xmas"] .v2 .v2-fact::before,
[data-season="xmas"] .v2 .v2-grade-card::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -11px;
  z-index: 1;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%2024%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cpath%20transform%3D%22translate(0%201.3)%22%20fill%3D%22%23000%22%20opacity%3D%22.12%22%20d%3D%22M4%2016C2%2012%206%208%2012%208C18%204%2026%205%2032%206C40%203%2052%204%2060%206C70%203%2082%203%2092%206C102%204%20112%203%20122%205C134%202%20146%204%20156%206C166%204%20178%205%20186%208C194%208%20198%2012%20196%2016L196%2017C194%2020%20190%2022%20187%2020C185%2019%20186%2017%20180%2017L130%2017C126%2017%20127%2021%20123%2022C119%2023%20118%2018%20114%2017L60%2017C56%2017%2057%2020%2053%2021C49%2022%2048%2018%2044%2017L10%2017C7%2017%206%2019%204%2018Z%22%2F%3E%20%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23c9ced6%22%20stroke-width%3D%22.8%22%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M4%2016C2%2012%206%208%2012%208C18%204%2026%205%2032%206C40%203%2052%204%2060%206C70%203%2082%203%2092%206C102%204%20112%203%20122%205C134%202%20146%204%20156%206C166%204%20178%205%20186%208C194%208%20198%2012%20196%2016L196%2017C194%2020%20190%2022%20187%2020C185%2019%20186%2017%20180%2017L130%2017C126%2017%20127%2021%20123%2022C119%2023%20118%2018%20114%2017L60%2017C56%2017%2057%2020%2053%2021C49%2022%2048%2018%2044%2017L10%2017C7%2017%206%2019%204%2018Z%22%2F%3E%20%3C%2Fsvg%3E") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
/* On the small phones (v2.css: 639px wide and 580px tall at most) the four
   facts are one panel of four lines with no gap between them, so the snow
   lies once on the panel, not on each line where it would cover the text
   above (Codex review). */
@media (max-width: 639px) and (max-height: 580px) {
  [data-season="xmas"] .v2 .v2-hero .v2-fact::before {
    content: none;
  }
  [data-season="xmas"] .v2 .v2-hero .v2-facts {
    position: relative;
  }
  [data-season="xmas"] .v2 .v2-hero .v2-facts::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: -11px;
    z-index: 1;
    height: 17px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%2024%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cpath%20transform%3D%22translate(0%201.3)%22%20fill%3D%22%23000%22%20opacity%3D%22.12%22%20d%3D%22M4%2016C2%2012%206%208%2012%208C18%204%2026%205%2032%206C40%203%2052%204%2060%206C70%203%2082%203%2092%206C102%204%20112%203%20122%205C134%202%20146%204%20156%206C166%204%20178%205%20186%208C194%208%20198%2012%20196%2016L196%2017C194%2020%20190%2022%20187%2020C185%2019%20186%2017%20180%2017L130%2017C126%2017%20127%2021%20123%2022C119%2023%20118%2018%20114%2017L60%2017C56%2017%2057%2020%2053%2021C49%2022%2048%2018%2044%2017L10%2017C7%2017%206%2019%204%2018Z%22%2F%3E%20%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23c9ced6%22%20stroke-width%3D%22.8%22%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M4%2016C2%2012%206%208%2012%208C18%204%2026%205%2032%206C40%203%2052%204%2060%206C70%203%2082%203%2092%206C102%204%20112%203%20122%205C134%202%20146%204%20156%206C166%204%20178%205%20186%208C194%208%20198%2012%20196%2016L196%2017C194%2020%20190%2022%20187%2020C185%2019%20186%2017%20180%2017L130%2017C126%2017%20127%2021%20123%2022C119%2023%20118%2018%20114%2017L60%2017C56%2017%2057%2020%2053%2021C49%2022%2048%2018%2044%2017L10%2017C7%2017%206%2019%204%2018Z%22%2F%3E%20%3C%2Fsvg%3E") no-repeat 0 0 / 100% 100%;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-season="xmas"] .v2 .v2-header::before {
    animation: v2-xmas-twinkle 3.2s ease-in-out infinite alternate;
  }
  [data-season="xmas"] .v2 .v2-header-logo:hover::before,
  [data-season="xmas"] .v2 .v2-header-logo:focus-visible::before {
    animation: v2-xmas-wiggle 700ms ease-in-out 1;
  }
}
@keyframes v2-xmas-twinkle {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.9;
  }
}
@keyframes v2-xmas-wiggle {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  25% {
    transform: rotate(-24deg);
  }
  55% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(-17deg);
  }
}
