/*
 * The seasonal dress (src/lib/theme/season.ts): Noel and Tết, switched on in
 * Cấu hình. GENERATED by scripts/gen-season-css.mjs: change that file and run
 * it, never this one. The root layout links it only while a dress is on (last
 * in the body, so it never holds a paint of the page back), so the everyday
 * site downloads none of it; it is cached for a year under its hash.
 *
 * Built to cost nothing while it runs (the owner, 29/11/2026: "có làm lag",
 * "rà soát kỹ các hiệu ứng và hiệu suất"):
 *   - every animation moves transform or opacity only, which the compositor
 *     runs off the main thread: no script, no layout, no repaint of the page;
 *   - no blur, no shadow, no filter anywhere;
 *   - every piece is an absolutely or fixed positioned box that takes no click
 *     and no room, so nothing shifts when this file lands (no CLS);
 *   - a visitor who asked their device for less motion gets no falling layer
 *     and still lights.
 */
/* ---- The moving layer ---------------------------------------------------- */
/* Over the page, under the header (z 100): pieces pass behind the bar. */
.season-fall {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.season-fall i {
  position: absolute;
  top: -24px;
  left: var(--x);
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
  will-change: transform;
  animation: season-fall var(--d) linear var(--t) infinite;
}

.season-fall i:nth-child(1) { --x: 3%; --s: 5px; --o: .85; --d: 13s; --t: -2s; --w: 3vw; }

.season-fall i:nth-child(2) { --x: 9%; --s: 3px; --o: .55; --d: 17s; --t: -11s; --w: -2vw; }

.season-fall i:nth-child(3) { --x: 14%; --s: 6px; --o: .9; --d: 11s; --t: -6s; --w: 4vw; }

.season-fall i:nth-child(4) { --x: 19%; --s: 4px; --o: .6; --d: 16s; --t: -14s; --w: 1vw; }

.season-fall i:nth-child(5) { --x: 24%; --s: 3px; --o: .5; --d: 19s; --t: -4s; --w: -3vw; }

.season-fall i:nth-child(6) { --x: 29%; --s: 7px; --o: .9; --d: 10s; --t: -8s; --w: 2vw; }

.season-fall i:nth-child(7) { --x: 34%; --s: 4px; --o: .7; --d: 15s; --t: -1s; --w: -1vw; }

.season-fall i:nth-child(8) { --x: 39%; --s: 5px; --o: .8; --d: 12s; --t: -10s; --w: 3vw; }

.season-fall i:nth-child(9) { --x: 44%; --s: 3px; --o: .5; --d: 18s; --t: -7s; --w: -4vw; }

.season-fall i:nth-child(10) { --x: 49%; --s: 6px; --o: .85; --d: 11s; --t: -3s; --w: 1vw; }

.season-fall i:nth-child(11) { --x: 54%; --s: 4px; --o: .65; --d: 16s; --t: -12s; --w: 2vw; }

.season-fall i:nth-child(12) { --x: 59%; --s: 5px; --o: .8; --d: 13s; --t: -5s; --w: -2vw; }

.season-fall i:nth-child(13) { --x: 64%; --s: 3px; --o: .55; --d: 19s; --t: -16s; --w: 3vw; }

.season-fall i:nth-child(14) { --x: 69%; --s: 7px; --o: .9; --d: 10s; --t: -9s; --w: -1vw; }

.season-fall i:nth-child(15) { --x: 74%; --s: 4px; --o: .7; --d: 14s; --t: -2s; --w: 4vw; }

.season-fall i:nth-child(16) { --x: 79%; --s: 5px; --o: .8; --d: 12s; --t: -6s; --w: -3vw; }

.season-fall i:nth-child(17) { --x: 84%; --s: 3px; --o: .5; --d: 18s; --t: -13s; --w: 1vw; }

.season-fall i:nth-child(18) { --x: 89%; --s: 6px; --o: .85; --d: 11s; --t: -4s; --w: -2vw; }

.season-fall i:nth-child(19) { --x: 94%; --s: 4px; --o: .65; --d: 15s; --t: -10s; --w: 2vw; }

.season-fall i:nth-child(20) { --x: 98%; --s: 5px; --o: .75; --d: 13s; --t: -7s; --w: -4vw; }

.season-fall i:nth-child(21) { --x: 6%; --s: 4px; --o: .6; --d: 17s; --t: -15s; --w: 2vw; }

.season-fall i:nth-child(22) { --x: 31%; --s: 3px; --o: .5; --d: 14s; --t: -12s; --w: -2vw; }

.season-fall i:nth-child(23) { --x: 56%; --s: 6px; --o: .85; --d: 12s; --t: -1s; --w: 3vw; }

.season-fall i:nth-child(24) { --x: 81%; --s: 4px; --o: .7; --d: 16s; --t: -9s; --w: -1vw; }

@keyframes season-fall {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--w), calc(100vh + 48px), 0);
  }
}

@keyframes season-fall-turn {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--w), calc(100vh + 48px), 0) rotate(var(--r, 340deg));
  }
}

/* Noel: every third piece is a six-armed snowflake, turning slowly as it
   falls; the rest stay small round flakes further off. */
html[data-season="noel"] .season-fall i:nth-child(3n) {
  width: calc(var(--s) * 3);
  height: calc(var(--s) * 3);
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 12L22.4 12M18.4 12L21 14.7M18.4 12L21 9.3M15.4 12L17.2 13.8M15.4 12L17.2 10.2M12 12L17.2 21M15.2 17.5L14.2 21.1M15.2 17.5L18.8 18.4M13.7 14.9L13 17.4M13.7 14.9L16.2 15.6M12 12L6.8 21M8.8 17.5L5.2 18.4M8.8 17.5L9.8 21.1M10.3 14.9L7.8 15.6M10.3 14.9L11 17.4M12 12L1.6 12M5.6 12L3 9.3M5.6 12L3 14.7M8.6 12L6.8 10.2M8.6 12L6.8 13.8M12 12L6.8 3M8.8 6.5L9.8 2.9M8.8 6.5L5.2 5.6M10.3 9.1L11 6.6M10.3 9.1L7.8 8.4M12 12L17.2 3M15.2 6.5L18.8 5.6M15.2 6.5L14.2 2.9M13.7 9.1L16.2 8.4M13.7 9.1L13 6.6' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation-name: season-fall-turn;
  --r: 150deg;
}

html[data-season="noel"] .season-fall i:nth-child(6n) {
  --r: -190deg;
}

/* A phone: every other piece, twelve in all. */
@media (max-width: 640px) {
  .season-fall i:nth-child(even) {
    display: none;
  }
}

/* The firework bursts of Tết's fuller version; hidden everywhere else. */
.season-fall b {
  display: none;
}

/* The corner piece (Noel's tree); hidden until a rule below shows it. */
.season-corner {
  display: none;
}

/* What hangs under the header (Noel's bell, bauble, star and candy cane, Tết's
   lì xì): the bar's first child holds SEASON_HANG empty boxes, and each
   season's rules below give every box its piece and its place, tile after
   tile, so the strip reads as one picture. A mouse that touches a piece sets
   that piece alone swinging on its string the way the mouse went, out and back
   a few times and at rest in 1.2s (SeasonLayer marks it data-shake="r" or "l";
   the owner, 29/11/2026: "thêm hiệu ứng rê chuột thì mấy cái chuông cái kẹo
   rung theo", "hiệu ứng rê chuột bao lì xì đi", "rê bao mà thì bao đó lắc
   thôi"). Transform alone (a turn the other way round, minus, swings a piece
   to the right), and only where a mouse can hover and motion is welcome.
   Hidden until a season's rule below shows it. */
.season-hang {
  display: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-season="noel"] .season-hang i[data-shake="r"] {
    animation: season-shake-r 1.2s ease-in-out;
  }

  html[data-season="noel"] .season-hang i[data-shake="l"] {
    animation: season-shake-l 1.2s ease-in-out;
  }
}

@keyframes season-shake-r {
  0% {
    transform: rotate(0deg);
  }
  12% {
    transform: rotate(-18deg);
  }
  30% {
    transform: rotate(12deg);
  }
  48% {
    transform: rotate(-7deg);
  }
  66% {
    transform: rotate(4deg);
  }
  82% {
    transform: rotate(-1.5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes season-shake-l {
  0% {
    transform: rotate(0deg);
  }
  12% {
    transform: rotate(18deg);
  }
  30% {
    transform: rotate(-12deg);
  }
  48% {
    transform: rotate(7deg);
  }
  66% {
    transform: rotate(-4deg);
  }
  82% {
    transform: rotate(1.5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ---- Noel ----------------------------------------------------------------- */
/* Under the header: a pine garland with small red bows, warm bulbs, and on
   gold threads a bell, a bauble, a star and a candy cane. One picture holds
   all that stays still; a second, over it, holds four bulbs that fade in and
   out (opacity alone). Under the bar's own menus (z -1 inside the bar's
   layer), over the page. */
html[data-season="noel"] .site-nav::before,
html[data-season="noel"] .site-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 38px;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 288px 38px;
}

html[data-season="noel"] .site-nav::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='288' height='38' viewBox='0 0 288 38'%3E%3Cpath d='M0 4Q72 18 144 4Q216 18 288 4' fill='none' stroke='%23123F24' stroke-width='12' stroke-dasharray='.7 1.1'/%3E%3Cpath d='M0 4Q72 18 144 4Q216 18 288 4' fill='none' stroke='%231B5E35' stroke-width='7.5' stroke-linecap='round'/%3E%3Cpath d='M0 4Q72 18 144 4Q216 18 288 4' fill='none' stroke='%232E8B57' stroke-width='9.5' stroke-dasharray='.8 1.6' stroke-dashoffset='.9'/%3E%3Cpath d='M0 4Q72 18 144 4Q216 18 288 4' fill='none' stroke='%234FB06F' stroke-width='4.5' stroke-dasharray='.7 2.4'/%3E%3Ccircle cx='22' cy='8.1' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='22' cy='8.1' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='92' cy='11' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='92' cy='11' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='166' cy='8.1' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='166' cy='8.1' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='236' cy='11' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='236' cy='11' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Cpath d='M0 5C-7 -0.5 -12 5.5 -9 9C-6 10.6 -2.5 7.5 0 5Z' fill='%23E13D3F'/%3E%3Cpath d='M0 5C7 -0.5 12 5.5 9 9C6 10.6 2.5 7.5 0 5Z' fill='%23E13D3F'/%3E%3Cpath d='M-1.3 6.2L-4 15.5L-2 14.4L-0.8 16.4ZM1.3 6.2L4 15.5L2 14.4L0.8 16.4Z' fill='%23B92E30'/%3E%3Ccircle cx='0' cy='5.7' r='2.1' fill='%23B92E30'/%3E%3Cpath d='M144 5C137 -0.5 132 5.5 135 9C138 10.6 141.5 7.5 144 5Z' fill='%23E13D3F'/%3E%3Cpath d='M144 5C151 -0.5 156 5.5 153 9C150 10.6 146.5 7.5 144 5Z' fill='%23E13D3F'/%3E%3Cpath d='M142.7 6.2L140 15.5L142 14.4L143.2 16.4ZM145.3 6.2L148 15.5L146 14.4L144.8 16.4Z' fill='%23B92E30'/%3E%3Ccircle cx='144' cy='5.7' r='2.1' fill='%23B92E30'/%3E%3Cpath d='M288 5C281 -0.5 276 5.5 279 9C282 10.6 285.5 7.5 288 5Z' fill='%23E13D3F'/%3E%3Cpath d='M288 5C295 -0.5 300 5.5 297 9C294 10.6 290.5 7.5 288 5Z' fill='%23E13D3F'/%3E%3Cpath d='M286.7 6.2L284 15.5L286 14.4L287.2 16.4ZM289.3 6.2L292 15.5L290 14.4L288.8 16.4Z' fill='%23B92E30'/%3E%3Ccircle cx='288' cy='5.7' r='2.1' fill='%23B92E30'/%3E%3C/svg%3E");
}

html[data-season="noel"] .site-nav::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='288' height='38' viewBox='0 0 288 38'%3E%3Ccircle cx='56' cy='11.2' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='56' cy='11.2' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='124' cy='7.8' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='124' cy='7.8' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='200' cy='11.2' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='200' cy='11.2' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3Ccircle cx='270' cy='7.6' r='2' fill='%23FFE27A'/%3E%3Ccircle cx='270' cy='7.6' r='.85' fill='%23FFFFFF' opacity='.85'/%3E%3C/svg%3E");
  will-change: opacity;
  animation: season-twinkle 2.2s ease-in-out infinite alternate;
}

/* The bell, bauble, star and candy cane on their threads, each in its own box
   over the garland (.season-hang, above). A phone draws the boxes as small as
   its garland: one scale for the lot, from the bar's left edge. */
html[data-season="noel"] .season-hang {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 38px;
  pointer-events: none;
}

html[data-season="noel"] .season-hang i {
  position: absolute;
  background: no-repeat center / 100% 100%;
  transform-origin: 50% 0;
}

html[data-season="noel"] .season-hang i:nth-child(4n + 1) {
  top: 12.6px;
  width: 14px;
  height: 17.4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='17.4' viewBox='33 12.6 14 17.4'%3E%3Cpath d='M40 12.6V17' stroke='%23E0A91C' stroke-width='.8'/%3E%3Cpath d='M35.4 24.6Q35.4 16.6 40 16.6Q44.6 16.6 44.6 24.6L46 26.6H34Z' fill='%23FFD23F'/%3E%3Cpath d='M38.4 17.6Q37 21 36.8 24.4' stroke='%23FFFFFF' stroke-width='.9' opacity='.55' fill='none'/%3E%3Ccircle cx='40' cy='27.8' r='1.5' fill='%23F08A24'/%3E%3Cpath d='M37.2 15.6L40 17.2L42.8 15.6V18.6L40 17.2L37.2 18.6Z' fill='%23E13D3F'/%3E%3C/svg%3E");
}

html[data-season="noel"] .season-hang i:nth-child(4n + 2) {
  top: 12.6px;
  width: 12px;
  height: 18.9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18.9' viewBox='98 12.6 12 18.9'%3E%3Cpath d='M104 12.6V19' stroke='%23E0A91C' stroke-width='.8'/%3E%3Crect x='102.4' y='19' width='3.2' height='2.2' rx='.5' fill='%23B8BEC9'/%3E%3Ccircle cx='104' cy='26' r='5' fill='%23E13D3F'/%3E%3Cpath d='M99.6 26H108.4' stroke='%23FFD23F' stroke-width='1.2'/%3E%3Cellipse cx='102.2' cy='24' rx='1.2' ry='1.7' fill='%23FFFFFF' opacity='.5'/%3E%3C/svg%3E");
}

html[data-season="noel"] .season-hang i:nth-child(4n + 3) {
  top: 12.6px;
  width: 12px;
  height: 15.9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='15.9' viewBox='178 12.6 12 15.9'%3E%3Cpath d='M184 12.6V17.4' stroke='%23E0A91C' stroke-width='.8'/%3E%3Cpath d='M184 17L185.4 20.7L189.3 20.9L186.3 23.3L187.3 27.1L184 25L180.7 27.1L181.7 23.3L178.7 20.9L182.6 20.7Z' fill='%23FFD23F'/%3E%3Cpath d='M184 20.2L183 22.6' stroke='%23FFFFFF' stroke-width='.8' opacity='.5'/%3E%3C/svg%3E");
}

html[data-season="noel"] .season-hang i:nth-child(4n + 4) {
  top: 12.6px;
  width: 10px;
  height: 18.4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='18.4' viewBox='241.9 12.6 10 18.4'%3E%3Cpath d='M246.9 12.6V15.7' stroke='%23E0A91C' stroke-width='.8'/%3E%3Cpath d='M249.8 29V18.6A2.9 2.9 0 0 0 244 18.6V20.4' stroke='%23FFFFFF' stroke-width='2.8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M249.8 29V18.6A2.9 2.9 0 0 0 244 18.6V20.4' stroke='%23E13D3F' stroke-width='2.8' fill='none' stroke-dasharray='2 2'/%3E%3C/svg%3E");
}

html[data-season="noel"] .season-hang i:nth-child(1) {
  left: 33px;
}

html[data-season="noel"] .season-hang i:nth-child(2) {
  left: 98px;
}

html[data-season="noel"] .season-hang i:nth-child(3) {
  left: 178px;
}

html[data-season="noel"] .season-hang i:nth-child(4) {
  left: 241.9px;
}

html[data-season="noel"] .season-hang i:nth-child(5) {
  left: 321px;
}

html[data-season="noel"] .season-hang i:nth-child(6) {
  left: 386px;
}

html[data-season="noel"] .season-hang i:nth-child(7) {
  left: 466px;
}

html[data-season="noel"] .season-hang i:nth-child(8) {
  left: 529.9px;
}

html[data-season="noel"] .season-hang i:nth-child(9) {
  left: 609px;
}

html[data-season="noel"] .season-hang i:nth-child(10) {
  left: 674px;
}

html[data-season="noel"] .season-hang i:nth-child(11) {
  left: 754px;
}

html[data-season="noel"] .season-hang i:nth-child(12) {
  left: 817.9px;
}

html[data-season="noel"] .season-hang i:nth-child(13) {
  left: 897px;
}

html[data-season="noel"] .season-hang i:nth-child(14) {
  left: 962px;
}

html[data-season="noel"] .season-hang i:nth-child(15) {
  left: 1042px;
}

html[data-season="noel"] .season-hang i:nth-child(16) {
  left: 1105.9px;
}

html[data-season="noel"] .season-hang i:nth-child(17) {
  left: 1185px;
}

html[data-season="noel"] .season-hang i:nth-child(18) {
  left: 1250px;
}

html[data-season="noel"] .season-hang i:nth-child(19) {
  left: 1330px;
}

html[data-season="noel"] .season-hang i:nth-child(20) {
  left: 1393.9px;
}

html[data-season="noel"] .season-hang i:nth-child(21) {
  left: 1473px;
}

html[data-season="noel"] .season-hang i:nth-child(22) {
  left: 1538px;
}

html[data-season="noel"] .season-hang i:nth-child(23) {
  left: 1618px;
}

html[data-season="noel"] .season-hang i:nth-child(24) {
  left: 1681.9px;
}

html[data-season="noel"] .season-hang i:nth-child(25) {
  left: 1761px;
}

html[data-season="noel"] .season-hang i:nth-child(26) {
  left: 1826px;
}

html[data-season="noel"] .season-hang i:nth-child(27) {
  left: 1906px;
}

html[data-season="noel"] .season-hang i:nth-child(28) {
  left: 1969.9px;
}

html[data-season="noel"] .season-hang i:nth-child(29) {
  left: 2049px;
}

html[data-season="noel"] .season-hang i:nth-child(30) {
  left: 2114px;
}

html[data-season="noel"] .season-hang i:nth-child(31) {
  left: 2194px;
}

html[data-season="noel"] .season-hang i:nth-child(32) {
  left: 2257.9px;
}

html[data-season="noel"] .season-hang i:nth-child(33) {
  left: 2337px;
}

html[data-season="noel"] .season-hang i:nth-child(34) {
  left: 2402px;
}

html[data-season="noel"] .season-hang i:nth-child(35) {
  left: 2482px;
}

html[data-season="noel"] .season-hang i:nth-child(36) {
  left: 2545.9px;
}

html[data-season="noel"] .season-hang i:nth-child(37) {
  left: 2625px;
}

html[data-season="noel"] .season-hang i:nth-child(38) {
  left: 2690px;
}

html[data-season="noel"] .season-hang i:nth-child(39) {
  left: 2770px;
}

html[data-season="noel"] .season-hang i:nth-child(40) {
  left: 2833.9px;
}

html[data-season="noel"] .season-hang i:nth-child(41) {
  left: 2913px;
}

html[data-season="noel"] .season-hang i:nth-child(42) {
  left: 2978px;
}

html[data-season="noel"] .season-hang i:nth-child(43) {
  left: 3058px;
}

html[data-season="noel"] .season-hang i:nth-child(44) {
  left: 3121.9px;
}

html[data-season="noel"] .season-hang i:nth-child(45) {
  left: 3201px;
}

html[data-season="noel"] .season-hang i:nth-child(46) {
  left: 3266px;
}

html[data-season="noel"] .season-hang i:nth-child(47) {
  left: 3346px;
}

html[data-season="noel"] .season-hang i:nth-child(48) {
  left: 3409.9px;
}

@media (max-width: 640px) {
  html[data-season="noel"] .site-nav::before,
  html[data-season="noel"] .site-nav::after {
    height: 30px;
    background-size: 227px 30px;
  }

  html[data-season="noel"] .season-hang {
    right: auto;
    width: calc(100% / 0.788);
    transform: scale(0.788);
    transform-origin: 0 0;
  }
}

/* Snow along the top edge of each game tile, inside its rounded corners, under
   the "Top tháng" pill (z 10). */
html[data-season="noel"] :is(.row-tile, .bento-tile)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 11px;
  z-index: 5;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='13' viewBox='0 0 220 13' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 0H220V5C206 5 201 12 187 12 173 12 170 6 156 6 144 6 140 10 128 10 114 10 112 4 98 4 84 4 81 13 66 13 52 13 50 7 38 7 26 7 22 10 12 10 6 10 3 7 0 5Z'/%3E%3C/svg%3E") repeat-x left top / 186px 11px;
}

/* The same on the product cards of a game's page, under their own corner
   ribbon and pills (z 20). The account card gets a place to hang it from. */
html[data-season="noel"] .acc-card {
  position: relative;
}

html[data-season="noel"] :is(.tool-card, .acc-card)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 19;
  pointer-events: none;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='13' viewBox='0 0 220 13' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 0H220V5C206 5 201 12 187 12 173 12 170 6 156 6 144 6 140 10 128 10 114 10 112 4 98 4 84 4 81 13 66 13 52 13 50 7 38 7 26 7 22 10 12 10 6 10 3 7 0 5Z'/%3E%3C/svg%3E") repeat-x left top / 170px 10px;
}

/* Snow along the top of the footer. */
html[data-season="noel"] .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='13' viewBox='0 0 220 13' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 0H220V5C206 5 201 12 187 12 173 12 170 6 156 6 144 6 140 10 128 10 114 10 112 4 98 4 84 4 81 13 66 13 52 13 50 7 38 7 26 7 22 10 12 10 6 10 3 7 0 5Z'/%3E%3C/svg%3E") repeat-x left top / 220px 13px;
}

/* Snow lying on the phone's bottom bar. */
html[data-season="noel"] .mobile-nav::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='13' viewBox='0 0 220 13' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' transform='translate(0 13) scale(1 -1)' d='M0 0H220V5C206 5 201 12 187 12 173 12 170 6 156 6 144 6 140 10 128 10 114 10 112 4 98 4 84 4 81 13 66 13 52 13 50 7 38 7 26 7 22 10 12 10 6 10 3 7 0 5Z'/%3E%3C/svg%3E") repeat-x left bottom / 150px 8px;
}

/* A Santa hat on the support bubble. */
html[data-season="noel"] .support-bubble {
  position: relative;
}

html[data-season="noel"] .support-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -13px;
  width: 34px;
  height: 26px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='46' viewBox='0 0 60 46'%3E%3Cpath fill='%23E13D3F' d='M52 34C48 16 36 5 22 6C12 7 5 13 4 23C8 17 14 16 19 18C15 23 13 29 13 34Z'/%3E%3Ccircle cx='5' cy='24' r='4.8' fill='%23FFFFFF'/%3E%3Crect x='8' y='30' width='48' height='11' rx='5.5' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-14deg);
}

/* The announcement window (the owner, 29/11/2026: "cái thông báo á trang trí
   luôn", "modal"): snow along its top edge, under its close button (z 10). No
   hat on its round badge: red on the window's red band, it could not be seen. */
html[data-season="noel"] .notice-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 5;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='13' viewBox='0 0 220 13' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 0H220V5C206 5 201 12 187 12 173 12 170 6 156 6 144 6 140 10 128 10 114 10 112 4 98 4 84 4 81 13 66 13 52 13 50 7 38 7 26 7 22 10 12 10 6 10 3 7 0 5Z'/%3E%3C/svg%3E") repeat-x left top / 236px 14px;
}

/* A candy cane in place of the bar before a section's heading. The bar keeps
   its own 3px of room, so the heading does not move. */
html[data-season="noel"] .row-heading-mark {
  position: relative;
  background: transparent;
}

html[data-season="noel"] .row-heading-mark::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 17px;
  height: 26px;
  margin-top: -13px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='30' viewBox='0 0 20 30'%3E%3Cpath d='M5.4 27V9.6a4.6 4.6 0 0 1 9.2 0V12.4' fill='none' stroke='%23FFFFFF' stroke-width='4.4' stroke-linecap='round'/%3E%3Cpath d='M5.4 27V9.6a4.6 4.6 0 0 1 9.2 0V12.4' fill='none' stroke='%23E13D3F' stroke-width='4.4' stroke-dasharray='3.2 3.2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Each section heading its own picture (the owner, 29/11/2026: "mỗi đề mục
   mỗi cái khác", "tết hay noel cũng v"): SeasonLayer numbers a page's
   headings in order, 0 to 5 and round again (data-mark); 0, and a heading
   not numbered yet, keep the first. */
html[data-season="noel"] .row-heading-mark[data-mark="1"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.4L12.4 7.6L18.9 7.9L13.8 12L15.5 18.4L10 14.8L4.5 18.4L6.2 12L1.1 7.9L7.6 7.6Z' fill='%23FFD23F'/%3E%3Cpath d='M10 5.6L8.6 9.4' stroke='%23FFFFFF' stroke-width='1' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}

html[data-season="noel"] .row-heading-mark[data-mark="2"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Crect x='7.6' y='1' width='4.8' height='3.2' rx='.8' fill='%23B8BEC9'/%3E%3Ccircle cx='10' cy='13' r='8' fill='%23E13D3F'/%3E%3Cpath d='M2.6 13H17.4' stroke='%23FFD23F' stroke-width='1.8'/%3E%3Cellipse cx='7' cy='9.6' rx='1.8' ry='2.6' fill='%23FFFFFF' opacity='.5'/%3E%3C/svg%3E");
}

html[data-season="noel"] .row-heading-mark[data-mark="3"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Cpath d='M4.4 15.6Q4.4 4.6 10 4.6Q15.6 4.6 15.6 15.6L17.6 18H2.4Z' fill='%23FFD23F'/%3E%3Ccircle cx='10' cy='19.6' r='1.9' fill='%23F08A24'/%3E%3Cpath d='M7.6 7.4Q6.4 10.6 6.2 14' stroke='%23FFFFFF' stroke-width='1.1' opacity='.55' fill='none'/%3E%3Cpath d='M6.4 3L10 5L13.6 3V6.6L10 5L6.4 6.6Z' fill='%23E13D3F'/%3E%3C/svg%3E");
}

html[data-season="noel"] .row-heading-mark[data-mark="4"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 12L22.4 12M18.4 12L21 14.7M18.4 12L21 9.3M15.4 12L17.2 13.8M15.4 12L17.2 10.2M12 12L17.2 21M15.2 17.5L14.2 21.1M15.2 17.5L18.8 18.4M13.7 14.9L13 17.4M13.7 14.9L16.2 15.6M12 12L6.8 21M8.8 17.5L5.2 18.4M8.8 17.5L9.8 21.1M10.3 14.9L7.8 15.6M10.3 14.9L11 17.4M12 12L1.6 12M5.6 12L3 9.3M5.6 12L3 14.7M8.6 12L6.8 10.2M8.6 12L6.8 13.8M12 12L6.8 3M8.8 6.5L9.8 2.9M8.8 6.5L5.2 5.6M10.3 9.1L11 6.6M10.3 9.1L7.8 8.4M12 12L17.2 3M15.2 6.5L18.8 5.6M15.2 6.5L14.2 2.9M13.7 9.1L16.2 8.4M13.7 9.1L13 6.6' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-season="noel"] .row-heading-mark[data-mark="5"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect x='3' y='11' width='14' height='8' rx='1.6' fill='%23D7353A'/%3E%3Crect x='1.6' y='7' width='16.8' height='5.6' rx='1.3' fill='%23E8484D'/%3E%3Crect x='8.2' y='7' width='3.6' height='12' fill='%23FFD23F'/%3E%3Cpath d='M10 7C5 0 0 2 3 6C4 7.6 8 7 10 7ZM10 7C15 0 20 2 17 6C16 7.6 12 7 10 7Z' fill='%23FFD23F'/%3E%3C/svg%3E");
}

/* A small tree in the bottom left corner, from a wider screen with four
   presents around its foot (the owner, 29/11/2026: "bỏ người tuyết đc k thêm
   hộp quà xung quanh cây thông", in place of the snowman that stood beside
   it). One fixed box the moving layer brings with it (SeasonLayer). Wide
   screens only: from 1420px the page's own margin has room for the tree, from
   1520px for the presents too, so they never sit on content; a phone's bottom
   corners belong to the nav and the support button. Half of the tree's
   ornaments are a second picture that fades slowly in and out (::after); the
   presents are drawn over them (::before, a layer higher).

   While the rewards are open the box is their door ("khách ấn vô nhảy tới đổi
   thưởng"): SeasonLayer makes it a link, which takes the click and lifts a
   little under the pointer or the keyboard's focus. Its name is for screen
   readers only, no words show over it ("khỏi có chữ đổi thưởng trên đầu").
   Closed, it stays a picture no click lands on. */
@media (min-width: 1420px) {
  html[data-season="noel"] .season-corner {
    display: block;
    position: fixed;
    left: 14px;
    bottom: 12px;
    width: 56px;
    height: 79px;
    z-index: 80;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='90' viewBox='0 0 64 90'%3E%3Crect x='27' y='74' width='10' height='11' rx='1.5' fill='%237A4B2A'/%3E%3Cpath d='M32 42L59 76H5Z' fill='%231F8A55'/%3E%3Cpath d='M32 26L52 56H12Z' fill='%2327A061'/%3E%3Cpath d='M32 12L45 37H19Z' fill='%2330B56E'/%3E%3Cpath d='M32 1.5L34 6.7L39.6 7L35.2 10.6L36.7 16L32 12.9L27.3 16L28.8 10.6L24.4 7L30 6.7Z' fill='%23FFD23F'/%3E%3Cg fill='%23E13D3F'%3E%3Ccircle cx='27' cy='30' r='2.8'/%3E%3Ccircle cx='39' cy='48' r='3'/%3E%3Ccircle cx='19' cy='66' r='3.1'/%3E%3Ccircle cx='45' cy='68' r='3.1'/%3E%3C/g%3E%3C/svg%3E") no-repeat left bottom / 56px 79px;
  }

  html[data-season="noel"] .season-corner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 56px;
    height: 79px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='90' viewBox='0 0 64 90'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='37' cy='31' r='2.3'/%3E%3Ccircle cx='24' cy='47' r='2.5'/%3E%3Ccircle cx='33' cy='62' r='2.6'/%3E%3Ccircle cx='51' cy='70' r='2.3'/%3E%3C/g%3E%3Cg fill='%23FFD23F'%3E%3Ccircle cx='31' cy='41' r='2.2'/%3E%3Ccircle cx='12' cy='71' r='2.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    will-change: opacity;
    animation: season-twinkle 2.6s ease-in-out infinite alternate;
  }

  html[data-season="noel"] a.season-corner {
    pointer-events: auto;
    cursor: pointer;
    border-radius: 8px;
  }

  html[data-season="noel"] a.season-corner:is(:hover, :focus-visible) {
    transform: translateY(-3px);
  }
}

@media (min-width: 1520px) {
  html[data-season="noel"] .season-corner {
    width: 104px;
    background-position: 24px bottom;
  }

  html[data-season="noel"] .season-corner::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 104px;
    height: 79px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='79' viewBox='0 0 104 79'%3E%3Crect x='2' y='58' width='25' height='21' rx='1.6' fill='%23D7353A'/%3E%3Crect x='0.6' y='54' width='27.8' height='5.6' rx='1.3' fill='%23E8484D'/%3E%3Crect x='12.7' y='54' width='3.6' height='25' fill='%23FFD23F'/%3E%3Cpath d='M14.5 54C9.5 47 4.5 49 7.5 53C8.5 54.6 12.5 54 14.5 54ZM14.5 54C19.5 47 24.5 49 21.5 53C20.5 54.6 16.5 54 14.5 54Z' fill='%23FFD23F'/%3E%3Crect x='77' y='60' width='24' height='19' rx='1.6' fill='%232E6FD0'/%3E%3Crect x='75.6' y='56' width='26.8' height='5.6' rx='1.3' fill='%233F80E0'/%3E%3Crect x='87.2' y='56' width='3.6' height='23' fill='%23F5F5F7'/%3E%3Cpath d='M89 56C84 49 79 51 82 55C83 56.6 87 56 89 56ZM89 56C94 49 99 51 96 55C95 56.6 91 56 89 56Z' fill='%23F5F5F7'/%3E%3Crect x='20' y='70' width='16' height='9' rx='1.6' fill='%23F4F4F5'/%3E%3Crect x='18.6' y='66' width='18.8' height='5.6' rx='1.3' fill='%23FFFFFF'/%3E%3Crect x='26.2' y='66' width='3.6' height='13' fill='%23E13D3F'/%3E%3Cpath d='M28 66C23 59 18 61 21 65C22 66.6 26 66 28 66ZM28 66C33 59 38 61 35 65C34 66.6 30 66 28 66Z' fill='%23E13D3F'/%3E%3Crect x='66' y='71' width='15' height='8' rx='1.6' fill='%23FFD23F'/%3E%3Crect x='64.6' y='67' width='17.8' height='5.6' rx='1.3' fill='%23FFE070'/%3E%3Crect x='71.7' y='67' width='3.6' height='12' fill='%23E13D3F'/%3E%3Cpath d='M73.5 67C68.5 60 63.5 62 66.5 66C67.5 67.6 71.5 67 73.5 67ZM73.5 67C78.5 60 83.5 62 80.5 66C79.5 67.6 75.5 67 73.5 67Z' fill='%23E13D3F'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  }

  html[data-season="noel"] .season-corner::after {
    left: 24px;
  }
}

/* The door's lift eases in, unless the visitor asked for less motion. */
@media (min-width: 1420px) and (prefers-reduced-motion: no-preference) {
  html[data-season="noel"] a.season-corner {
    transition: transform 0.18s ease;
  }
}

/* ---- Shared ---------------------------------------------------------------- */
@keyframes season-twinkle {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}

/* Asked for less motion: no falling layer at all, and the lights and the
   tree's ornaments stay lit and still. */
@media (prefers-reduced-motion: reduce) {
  .season-fall {
    display: none;
  }

  html[data-season="noel"] .site-nav::before,
  html[data-season="noel"] .season-corner::after {
    animation: none;
  }
}

/* On paper: none of it. */
@media print {
  .season-fall,
  .season-corner,
  .season-hang,
  html[data-season] .site-nav::before,
  html[data-season] .site-nav::after,
  html[data-season] :is(.row-tile, .bento-tile, .tool-card, .acc-card)::after,
  html[data-season] .site-footer::before,
  html[data-season] .site-footer::after,
  html[data-season] .mobile-nav::before,
  html[data-season] .support-bubble::after,
  html[data-season] .notice-card::before,
  html[data-season] .notice-card::after,
  html[data-season] .notice-badge::after,
  html[data-season] .row-heading-mark::before {
    display: none;
  }
}
