/* 1kamas — NOËL OVERLAY, "LE GRAND CADEAU" version, second take (the hero as a present box). Scenes added by 1k-noel.js (aria-hidden, never clickable,
   under the content, no layout change), in both themes. Speed: what moves all the time moves on the graphics
   card (transform / opacity of its own elements), and scenes out of sight are paused (.k1nl-zz).
   Reduced motion: everything stands still. Printing and high-contrast mode: none. Not on checkout pages. */
html:not([data-k1nl]) .k1nl, html:not([data-k1nl]) .k1nl-hdr, html:not([data-k1nl]) .k1nl-hback, html:not([data-k1nl]) .k1nl-sec, html:not([data-k1nl]) .k1nl-pagesnow, html:not([data-k1nl]) .k1nl-burst { display: none !important; }
/* The page's own background, light theme: a pale winter blue */
html:not([data-theme="dark"]) { --canvas: 236 239 250; }

/* ---------- Scene boxes ---------- */
.k1nl-host { position: relative; isolation: isolate; }
.k1nl { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; contain: layout paint; }
.k1nl i { position: absolute; display: block; font-style: normal; }
.k1nl svg, .k1nl-hdr svg { display: block; width: 100%; height: 100%; }
/* Homepage hero: between its picture and its content */
.hp-hero > .k1nl--hero { z-index: auto; isolation: isolate; }
/* FAQ and loyalty heads: their plum is a grid item (::before), put under the scene */
body > .min-h-\[60vh\] > main.py-12 > div.max-w-content.k1nl-host:has(> .eyebrow + h1)::before { position: relative; z-index: -2; }
.k1nl--faq { inset: auto; grid-area: 1 / 1 / 4 / 2; position: relative; }
/* Out of sight: paused (one rule per moving piece: a rule ending in * would be tried on every element of the page) */
.k1nl-zz .k1nl-ba, .k1nl-zz .k1nl-bb, .k1nl-zz .k1nl-st, .k1nl-zz .k1nl-arm, .k1nl-zz .k1nl-tofu, .k1nl-zz .k1nl-tofubody,
.k1nl-zz .k1nl-wl, .k1nl-zz .k1nl-wr, .k1nl-zz .k1nl-bow, .k1nl-zz .k1nl-hop { animation-play-state: paused !important; }

/* (the keyframes of the short movements hold several cycles each: see the end of this file) */
/* Fir tree: baubles blink in turn, the star twinkles (each its own layer over the tree) */
.k1nl-tree { aspect-ratio: 50 / 64; }
.k1nl-tree > i { inset: 0; }
.k1nl-ba { animation: k1nl-blink 12.8s steps(1, end) infinite; }
.k1nl-bb { animation: k1nl-blink 12.8s steps(1, end) -.8s infinite; }
.k1nl-st { transform-origin: 50% 5.5%; animation: k1nl-twinkle 19.2s ease-in-out infinite; }
.k1nl-gifts { aspect-ratio: 60 / 34; }
.k1nl-snowman { aspect-ratio: 36 / 50; }
.k1nl-snowman > i { inset: 0; }
.k1nl-arm { transform-origin: 27.8% 48%; animation: k1nl-wave 10.4s ease-in-out infinite; }
.k1nl-cane { aspect-ratio: 10 / 26; }
/* The Tofu flutters in loops around the gifts, flapping its wings */
.k1nl-tofu { width: 24px; height: 24px; animation: k1nl-tofu 6s ease-in-out infinite; }
.k1nl-tofubody { inset: 0; animation: k1nl-hover 13.2s ease-in-out infinite; }
.k1nl-wl, .k1nl-wr, .k1nl-tb { inset: 0; }
.k1nl-wl { transform-origin: 25.3% 58.7%; animation: k1nl-flapl 3.2s ease-in-out infinite; }
.k1nl-wr { transform-origin: 74.7% 58.7%; animation: k1nl-flapr 3.2s ease-in-out infinite; }
@keyframes k1nl-tofu { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(46px, -18px) scaleX(-1); } 50% { transform: translate(90px, -4px) scaleX(-1); } 75% { transform: translate(40px, -26px); } }

/* Snowy ground: soft white banks along the bottom of the scene */
.k1nl-snowbank { left: 0; right: 0; bottom: -4px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9Q25 3 50 8T100 7T150 9T200 8V16Z' fill='%23f2f5ff'/%3E%3Cpath d='M0 16V13Q50 10 100 13T200 12V16Z' fill='%23cdd5f0' fill-opacity='.7'/%3E%3C/svg%3E") 0 100% / 200px 16px repeat-x; }

/* ---------- The present: wrapping paper, red ribbons, the big bow ---------- */
.k1nl-paper { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 96 96%27%3E%3Cg fill=%27%23f2c14e%27 fill-opacity=%27.34%27%3E%3Cpath d=%27M18.0 10.5L20.0 15.3L25.1 15.7L21.2 19.0L22.4 24.1L18.0 21.4L13.6 24.1L14.8 19.0L10.9 15.7L16.0 15.3Z%27/%3E%3Cpath d=%27M66.0 58.5L68.0 63.3L73.1 63.7L69.2 67.0L70.4 72.1L66.0 69.4L61.6 72.1L62.8 67.0L58.9 63.7L64.0 63.3Z%27/%3E%3C/g%3E%3Cg fill=%27none%27 stroke=%27%23fff%27 stroke-opacity=%27.2%27 stroke-width=%271.3%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M60.0 20.0L72.0 20.0M63.0 14.8L69.0 25.2M69.0 14.8L63.0 25.2%27/%3E%3Cpath d=%27M14.0 72.0L26.0 72.0M17.0 66.8L23.0 77.2M23.0 66.8L17.0 77.2%27/%3E%3C/g%3E%3Cg fill=%27%23f2c14e%27 fill-opacity=%27.28%27%3E%3Ccircle cx=%2748%27 cy=%2710%27 r=%271.6%27/%3E%3Ccircle cx=%2788%27 cy=%2754%27 r=%271.6%27/%3E%3Ccircle cx=%2710%27 cy=%2752%27 r=%271.4%27/%3E%3C/g%3E%3Cg fill=%27%2343b05c%27 fill-opacity=%27.42%27%3E%3Cg transform=%27translate%2830.5 45%29 rotate%28-10%29%27%3E%3Cpath d=%27M0 0Q5 -4 10 -1Q8 1 11 3Q6 5 0 0Z%27 transform=%27rotate%28-24%29%27/%3E%3Cpath d=%27M0 0Q5 -4 10 -1Q8 1 11 3Q6 5 0 0Z%27 transform=%27scale%28-1 1%29 rotate%28-24%29%27/%3E%3C/g%3E%3Cg transform=%27translate%2880.5 93%29 rotate%2815%29%27%3E%3Cpath d=%27M0 0Q5 -4 10 -1Q8 1 11 3Q6 5 0 0Z%27 transform=%27rotate%28-24%29%27/%3E%3Cpath d=%27M0 0Q5 -4 10 -1Q8 1 11 3Q6 5 0 0Z%27 transform=%27scale%28-1 1%29 rotate%28-24%29%27/%3E%3C/g%3E%3C/g%3E%3Cg fill=%27%23ff5b6e%27 fill-opacity=%27.5%27%3E%3Ccircle cx=%2729%27 cy=%2744.5%27 r=%271.6%27/%3E%3Ccircle cx=%2732%27 cy=%2745.5%27 r=%271.6%27/%3E%3Ccircle cx=%2730.5%27 cy=%2742.2%27 r=%271.6%27/%3E%3Ccircle cx=%2779%27 cy=%2792.5%27 r=%271.6%27/%3E%3Ccircle cx=%2782%27 cy=%2793.5%27 r=%271.6%27/%3E%3Ccircle cx=%2780.5%27 cy=%2790.2%27 r=%271.6%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 96px repeat; }
.k1nl-rv { top: 0; bottom: 0; background: linear-gradient(90deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
.k1nl-rh { left: 0; right: 0; background: linear-gradient(180deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
.k1nl-bow { aspect-ratio: 120 / 72; transform-origin: 50% 48%; animation: k1nl-bowwig 19.2s ease-in-out infinite; }

/* ---------- Homepage hero (variables measured by 1k-noel.js, px from the hero's top-left corner) ---------- */
.k1nl--hero .k1nl-rv { left: calc(var(--rx) - var(--rw) / 2); width: var(--rw); bottom: auto; height: calc(var(--rhT) + var(--rhH)); }
.k1nl--hero .k1nl-rh { top: var(--rhT); height: var(--rhH); }
.k1nl--hero .k1nl-bow { left: calc(var(--bx) - var(--bw) / 2); top: 2px; width: var(--bw); }
.k1nl--hero .k1nl-ground { left: 0; right: 0; top: auto; bottom: calc(var(--H) - var(--g)); height: calc(var(--g) - var(--textB) - 14px); }
.k1nl--hero .k1nl-ground > i { bottom: 0; }
.k1nl--hero .k1nl-ground > .k1nl-snowbank { bottom: -4px; }
.k1nl--hero .k1nl-g1 { left: 14px; height: min(34px, 100%); }
.k1nl--hero .k1nl-cane { left: 82px; height: min(22px, 100%); }
.k1nl--hero .k1nl-snowman { left: 104px; height: min(50px, 100%); }
.k1nl--hero .k1nl-g2 { left: 152px; height: min(30px, 100%); }
.k1nl--hero .k1nl-tofu { left: 20px; bottom: min(36px, calc(100% - 22px)); }
/* The fir tree stands between the text column and the tiles when there is room */
.k1nl--hero .k1nl-tree { left: calc(var(--textR) + 12px); width: clamp(0px, calc(var(--tL) - var(--textR) - 24px), 66px); }
.k1nl--hero[data-stack] .k1nl-ground { height: calc(var(--g) - var(--qB) - 4px); }
.k1nl--hero[data-stack] .k1nl-snowman { left: auto; right: 12px; }
.k1nl--hero[data-stack] .k1nl-g2 { left: 120px; }
.k1nl--hero[data-stack] .k1nl-tree, .k1nl--hero[data-stack] .k1nl-tofu { display: none; }

/* the wrapping paper only on the hero's lid band: the rest of the page stays clear */
.k1nl .k1nl-paper { display: none; }
.k1nl--hero .k1nl-paper { display: block; bottom: auto; height: 30px; }
@media (max-width: 639px) { .k1nl--hero .k1nl-paper { height: 22px; } }
/* the present box: a lid band across the top, satin ribbons with gold edges */
.k1nl--hero .k1nl-lid { left: 0; right: 0; top: 0; height: 30px; background: rgb(255 255 255 / .07); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .28), inset 0 1px 0 rgb(255 255 255 / .1); }
@media (max-width: 639px) { .k1nl--hero .k1nl-lid { height: 22px; } }
.k1nl--hero .k1nl-rv { background: linear-gradient(90deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
.k1nl--hero .k1nl-rh { background: linear-gradient(180deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
/* the product banner without a picture: the ribbons placed by the script (with a picture: only its bow and tag) */
.k1nl--banner.k1nl--prod .k1nl-rv { left: calc(var(--rx) - var(--rw) / 2); right: auto; width: var(--rw); top: 0; bottom: auto; height: calc(var(--rhT) + var(--rhH)); background: linear-gradient(90deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
.k1nl--banner.k1nl--prod .k1nl-rh { top: var(--rhT); height: var(--rhH); background: linear-gradient(180deg, #2e8b4a 0 3px, #e8b54a 3px 4px, #d82a3f 4px 30%, #ef6476 30% 40%, #d82a3f 40% calc(50% - 1px), #a8172b calc(50% - 1px) calc(50% + 1px), #c42438 calc(50% + 1px) calc(100% - 4px), #e8b54a calc(100% - 4px) calc(100% - 3px), #2e8b4a calc(100% - 3px)); }
.k1nl--prod:not([data-ready]) .k1nl-rv, .k1nl--prod:not([data-ready]) .k1nl-rh { display: none; }
/* in front, on the hero's parent: the wide bow sitting on the lid, its tag hanging in the gap */
.k1nl-fronthost { position: relative; }
.k1nl-front { position: absolute; z-index: 2; pointer-events: none; }
.k1nl-front i { position: absolute; display: block; }
.k1nl-front svg { display: block; width: 100%; height: 100%; }
.k1nl-front:not([data-ready]), .k1nl-front:not([data-tag]) .k1nl-tag { display: none; }
.k1nl-bigbow { left: calc(var(--bx) - var(--bw) / 2); top: calc(12px - var(--bw) * .2); width: var(--bw); aspect-ratio: 200 / 90; transform-origin: 50% 44%; animation: k1nl-bowwig 19.2s ease-in-out infinite; }
.k1nl-front[data-low] .k1nl-bigbow { top: calc(var(--ky) - var(--bw) * .2); }
/* product page, logo style: the product's picture is the present, no ribbon over it (the logo stays whole);
   the bow on its top edge in the game's colour (Dofus and Unity green, Touch purple, Retro and Temporis
   orange, Wakfu turquoise), the tag hanging to its left */
.k1nl-front--prod[data-game="dofus"] { --k1nlb0: #2f5212; --k1nlb1: #44731c; --k1nlb2: #4f8222; --k1nlb3: #5f9a2a; --k1nlb4: #79b23c; --k1nlb5: #a3d468; }
.k1nl-front--prod[data-game="touch"] { --k1nlb0: #3b1760; --k1nlb1: #542283; --k1nlb2: #5f2794; --k1nlb3: #7634b3; --k1nlb4: #8f4bcc; --k1nlb5: #b98ae8; }
.k1nl-front--prod[data-game="retro"] { --k1nlb0: #7a3a0e; --k1nlb1: #a64f16; --k1nlb2: #bb5c1b; --k1nlb3: #dc7424; --k1nlb4: #e98c3a; --k1nlb5: #f8b26a; }
.k1nl-front--prod[data-game="wakfu"] { --k1nlb0: #0f4a52; --k1nlb1: #176470; --k1nlb2: #1b717e; --k1nlb3: #23899a; --k1nlb4: #36a3b2; --k1nlb5: #6ccad6; }
.k1nl-front .k1nl-tagl { display: none; }
.k1nl-front[data-tagl] .k1nl-tagl { display: block; left: calc(var(--px) - 66px); top: var(--ky); width: 70px; height: 100px; transform-origin: 66px 0; animation: k1nl-tag 16s ease-in-out -3s infinite; }
.k1nl-zz .k1nl-tagl { animation-play-state: paused !important; }
.k1nl-tag { left: calc(var(--rx) - 6px); top: 14px; width: 30px; height: 88px; transform-origin: 6px 0; animation: k1nl-tag 16s ease-in-out infinite; }
.k1nl-zz .k1nl-bigbow, .k1nl-zz .k1nl-tag { animation-play-state: paused !important; }
html:not([data-k1nl]) .k1nl-front { display: none !important; }
@media (prefers-reduced-motion: reduce) { .k1nl-front i { animation: none !important; } }
@media print, (forced-colors: active) { .k1nl-front { display: none !important; } }
/* presents and the Tofu standing on the ribbon, when there is room under the payment logos */
.k1nl--hero .k1nl-ground, .k1nl--hero[data-stack] .k1nl-ground { left: 0; right: 0; top: auto; bottom: calc(var(--H) - var(--rhT) - 1px); height: var(--gH); }
.k1nl--hero[data-noground] .k1nl-ground { display: none; }
.k1nl--hero:not([data-ready]) .k1nl-rv, .k1nl--hero:not([data-ready]) .k1nl-rh, .k1nl--hero:not([data-ready]) .k1nl-bow { display: none; }
.k1nl--hero .k1nl-g1 { height: min(40px, 100%); }
.k1nl--hero .k1nl-cane { left: 92px; }
/* ---------- Plum page heads: paper, a ribbon and its bow at the right, presents ---------- */
.k1nl--head .k1nl-rv { right: 74px; width: 22px; }
.k1nl--head .k1nl-bow { right: 40px; top: 0; width: 90px; }
.k1nl--head .k1nl-ground .k1nl-g1 { right: 112px; height: 28px; }
@media (max-width: 767px) {
  .k1nl--head .k1nl-rv { right: 18px; width: 10px; }
  .k1nl--head .k1nl-bow { right: -3px; width: 52px; }
}
.k1nl--head .k1nl-ground { left: 0; right: 0; bottom: 0; height: 40px; }
.k1nl--head .k1nl-ground > i { bottom: 0; }
.k1nl--head .k1nl-tree { right: 24px; height: 52px; }
.k1nl--head .k1nl-g1 { right: 74px; height: 26px; }
@media (max-width: 767px) {
  .k1nl--head .k1nl-ground > :not(.k1nl-snowbank) { display: none; }
}

/* ---------- Kamas, items and accounts banners: a ribbon and its bow at the right ---------- */
.k1nl--banner .k1nl-rv { right: 44px; width: 16px; }
.k1nl--banner .k1nl-bow { right: 20px; top: 0; width: 64px; }
.k1nl--prod .k1nl-rv { right: 88px; }
.k1nl--prod .k1nl-bow { right: 64px; }
@media (max-width: 1199px) { .k1nl--prod .k1nl-rv { right: 30px; width: 12px; } .k1nl--prod .k1nl-bow { right: 8px; width: 56px; } }
/* (the village's own rules, unused here) */
.k1nl--banner .k1nl-ground { left: 0; right: 0; bottom: 0; height: 26px; }
.k1nl--banner .k1nl-ground > i { bottom: 0; }
.k1nl--banner .k1nl-g1 { left: 176px; height: 22px; }
.k1nl--banner .k1nl-tree { left: 222px; height: 30px; }
@media (min-width: 1200px) { .k1nl--prod { top: 6px; right: -48px; border-radius: 12px 0 0 12px; } }
@media (max-width: 1199px) { .k1nl--prod .k1nl-ground { display: none; } }
.k1nl--market .k1nl-g1 { left: auto; right: 22px; }
.k1nl--market .k1nl-tree { left: auto; right: 72px; }
@media (max-width: 1279px) { .k1nl--market .k1nl-ground { display: none; } }

/* ---------- Footer: a snowy skyline on its top edge, standing in the space above it ---------- */
.k1nl--foot { inset: auto 0 auto 0; top: -56px; height: 76px; z-index: -1; border-radius: 0; }
body > footer.k1nl-host { overflow: visible; }
.k1nl--foot .k1nl-ground { left: 0; right: 0; height: 56px; bottom: 20px; }
.k1nl--foot .k1nl-ground > i { bottom: 0; }
.k1nl--foot .k1nl-ground > .k1nl-snowbank { bottom: 0; }
.k1nl--foot .k1nl-t1 { left: calc(max(24px, 50% - 700px) + 30px); height: 54px; }
.k1nl--foot .k1nl-t2 { left: calc(max(24px, 50% - 700px) + 300px); height: 42px; }
.k1nl--foot .k1nl-t3 { right: calc(max(24px, 50% - 700px) + 60px); height: 50px; }
.k1nl--foot .k1nl-g1 { left: calc(max(24px, 50% - 700px) + 82px); height: 30px; }
.k1nl--foot .k1nl-g2 { right: calc(max(24px, 50% - 700px) + 130px); height: 28px; }
.k1nl--foot .k1nl-snowman { right: calc(max(24px, 50% - 700px) + 230px); height: 48px; }
.k1nl--foot .k1nl-c1 { left: calc(max(24px, 50% - 700px) + 150px); height: 22px; }
.k1nl--foot .k1nl-c2 { right: calc(max(24px, 50% - 700px) + 104px); height: 20px; }
.k1nl--foot .k1nl-tofu { left: calc(50% + 140px); bottom: 20px; }
@media (max-width: 639px) {
  .k1nl--foot .k1nl-t2, .k1nl--foot .k1nl-g2, .k1nl--foot .k1nl-c2, .k1nl--foot .k1nl-tofu { display: none; }
  .k1nl--foot .k1nl-snowman { right: 20px; }
}

/* ---------- Header ---------- */
/* Behind its items: the bars' own colours (measured places), then the snow falling on the graphics card;
   the bars themselves are see-through while this layer is there */
.k1nl-hback { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.k1nl-hback i { position: absolute; display: block; }
.k1nl-hb1 { left: 0; right: 0; top: var(--b1t, 0); height: var(--b1h, 0); background: var(--b1c); }
.k1nl-hb2 { left: 0; right: 0; top: var(--b2t, 0); height: var(--b2h, 0); background: var(--b2c); }
@media screen and (forced-colors: none) { body > header.sticky:has(> .k1nl-hback) > div.bg-header-plum, body > header.sticky:has(> .k1nl-hback) > nav { background-color: transparent !important; } }

/* In front: the hat on the logo tile, the cart's sack */
.k1nl-hdr { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.k1nl-hdr i { position: absolute; display: block; }
.k1nl-hat { left: calc(var(--lx, -200px) + var(--ls, 44px) * .42); top: calc(var(--ly, 0px) - 9px); width: calc(var(--ls, 44px) * .66); aspect-ratio: 30 / 24; transform: rotate(14deg); transform-origin: 30% 90%; }

/* ---------- The empty band above the sections: village, forest with Tofus, gate, gifts ---------- */
.k1nl-shost { position: relative; }
.k1nl-sec, .k1nl-sec[hidden] { display: block !important; position: absolute; left: 24px; right: 24px; top: 0; margin: 0; pointer-events: none; }
.k1nl-sec.k1nl-secm { left: 0; right: 0; }
@media (max-width: 639px) { .k1nl-sec { left: 16px; right: 16px; } .k1nl-sec.k1nl-secm { left: 0; right: 0; } }
.k1nl-sec i { position: absolute; display: block; }
.k1nl-sec svg { display: block; width: 100%; height: 100%; }
.k1nl-giftscene { left: 0; bottom: 0; height: min(46px, 100%); aspect-ratio: 220 / 46; }
/* a ribbon garland hanging in the middle of the band; a row of presents with one hopping */
.k1nl-swag { left: 50%; top: 2px; width: min(300px, 70%); aspect-ratio: 300 / 50; max-height: calc(100% - 2px); transform: translateX(-50%); }
.k1nl-giftrow { right: 0; bottom: 0; height: min(46px, 100%); aspect-ratio: 200 / 46; }
.k1nl-sec .k1nl-giftrow > svg { position: absolute; inset: 0; }
.k1nl-hop { left: 39.5%; top: 0; width: 20%; height: 100%; transform-origin: 50% 100%; animation: k1nl-hop 12s ease-in-out infinite; }

/* light theme: the snow is nearly the page's colour, so it gets a thin blue-grey outline */
html:not([data-theme="dark"]) .k1nl-sec .k1nl-sn { stroke: #c3cbe6; stroke-width: .8px; stroke-linejoin: round; }
html:not([data-theme="dark"]) .k1nl-sec .k1nl-edge { stroke: #c3cbe6; stroke-width: .8px; }

/* ---------- Page background: snow drops falling on the page and turning into crystals, staying there ---------- */
.k1nl-pagesnow { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; }
.k1nl-land, .k1nl-land > i { position: absolute; display: block; }
.k1nl-cr { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg stroke='%238fa2d6' stroke-opacity='0.75' stroke-width='1.9' stroke-linecap='round' fill='none'%3E%3Cpath d='M15.0 15.0l0.0 -13.0M15.0 9.1l2.8 -3.1M15.0 9.1l-2.8 -3.1M15.0 5.6l2.1 -2.3M15.0 5.6l-2.1 -2.3M15.0 15.0l-11.3 -6.5M9.9 12.1l-1.3 -4.0M9.9 12.1l-4.1 0.9M6.9 10.3l-1.0 -3.0M6.9 10.3l-3.1 0.6M15.0 15.0l-11.3 6.5M9.9 17.9l-4.1 -0.9M9.9 17.9l-1.3 4.0M6.9 19.7l-3.1 -0.6M6.9 19.7l-1.0 3.0M15.0 15.0l-0.0 13.0M15.0 20.9l-2.8 3.1M15.0 20.9l2.8 3.1M15.0 24.4l-2.1 2.3M15.0 24.4l2.1 2.3M15.0 15.0l11.3 6.5M20.1 17.9l1.3 4.0M20.1 17.9l4.1 -0.9M23.1 19.7l1.0 3.0M23.1 19.7l3.1 -0.6M15.0 15.0l11.3 -6.5M20.1 12.1l4.1 0.9M20.1 12.1l1.3 -4.0M23.1 10.3l3.1 0.6M23.1 10.3l1.0 -3.0'/%3E%3C/g%3E%3C/svg%3E") 50% 50% / 100% 100% no-repeat; }
html[data-theme="dark"] .k1nl-cr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.32' stroke-width='1.9' stroke-linecap='round' fill='none'%3E%3Cpath d='M15.0 15.0l0.0 -13.0M15.0 9.1l2.8 -3.1M15.0 9.1l-2.8 -3.1M15.0 5.6l2.1 -2.3M15.0 5.6l-2.1 -2.3M15.0 15.0l-11.3 -6.5M9.9 12.1l-1.3 -4.0M9.9 12.1l-4.1 0.9M6.9 10.3l-1.0 -3.0M6.9 10.3l-3.1 0.6M15.0 15.0l-11.3 6.5M9.9 17.9l-4.1 -0.9M9.9 17.9l-1.3 4.0M6.9 19.7l-3.1 -0.6M6.9 19.7l-1.0 3.0M15.0 15.0l-0.0 13.0M15.0 20.9l-2.8 3.1M15.0 20.9l2.8 3.1M15.0 24.4l-2.1 2.3M15.0 24.4l2.1 2.3M15.0 15.0l11.3 6.5M20.1 17.9l1.3 4.0M20.1 17.9l4.1 -0.9M23.1 19.7l1.0 3.0M23.1 19.7l3.1 -0.6M15.0 15.0l11.3 -6.5M20.1 12.1l4.1 0.9M20.1 12.1l1.3 -4.0M23.1 10.3l3.1 0.6M23.1 10.3l1.0 -3.0'/%3E%3C/g%3E%3C/svg%3E"); }
.k1nl-dot { left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(143 162 214 / .6); opacity: 0; }
html[data-theme="dark"] .k1nl-dot { box-shadow: none; background: rgb(255 255 255 / .8); }
/* ---------- Papa Nowel (symbols in #k1nl-defs; colours from variables, the dark theme gives Pere Fwetar) ---------- */
.k1nl-pnc { display: block; position: absolute; aspect-ratio: 100 / 120; }
.k1nl-pnc svg, .k1nl-walk svg, .k1nl-fly svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.k1nl-pnc > .k1nl-pna { position: absolute; inset: 0; display: block; transform-origin: 80% 50%; }
.k1nl-pnwave > .k1nl-pna { animation: k1nl-pnwave 9.6s ease-in-out infinite; }
@keyframes k1nl-pnwave { 0%, 26%, 100% { transform: rotate(0deg); } 4%, 12%, 20% { transform: rotate(-26deg); } 8%, 16% { transform: rotate(6deg); } }
.k1nl-pnbrow { display: none; }
html[data-theme="dark"] .k1nl-pnc, html[data-theme="dark"] .k1nl-fly, html[data-theme="dark"] .k1nl-walk {
  --suit: #4b3a66; --suit-d: #33264a; --fur: #b9b5c8; --fur2: #9591a6; --patch: #6a5590; --seam: #0f0b16; --nose: #8f84a8;
  --skin: #cdb79c; --belt: #1c1528; --gold: #8d8a99; --eye: #e5484d; --straw: #8d7a4a; --boot: #3a2f2a; --boot-d: #231c18; --sleigh: #4b3a66; }
html[data-theme="dark"] .k1nl-pnbrow { display: inline; }
/* the hero: on the bottom ribbon, beside the vertical one */
.k1nl--hero .k1nl-pnspot { display: none; left: var(--pnL); top: var(--pnT); height: var(--pnH); aspect-ratio: 100 / 120; }
.k1nl--hero[data-ready][data-pn] .k1nl-pnspot { display: block; }
.k1nl-pnspot > .k1nl-pnc { inset: 0; height: 100%; }
/* the gift's details: stitches along the ribbons, a stitched patch on the lid, straw out of the corners */
.k1nl-rv::before, .k1nl-rv::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgb(255 255 255 / .6); }
.k1nl-rv::before { left: 26%; } .k1nl-rv::after { right: 26%; }
.k1nl-rh::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgb(255 255 255 / .6); }
.k1nl-patch { top: 7px; left: 64px; width: 30px; height: 15px; background: #2e8b4a; border: 1px dashed #f4e7c4; border-radius: 2px; box-shadow: inset 0 0 0 2px #2e8b4a; }
@media (max-width: 639px) { .k1nl--hero .k1nl-patch { top: 4px; height: 12px; width: 24px; left: 44px; } }
.k1nl-straw { width: 26px; height: 20px; }
.k1nl-st1 { left: 0; top: 0; }
.k1nl-st2 { right: 0; bottom: calc(var(--H) - var(--rhT) - var(--rhH)); transform: scale(-1, -1); }
.k1nl--hero:not([data-ready]) .k1nl-straw, .k1nl--hero:not([data-ready]) .k1nl-patch { display: none; }
/* the section bands: Papa Nowel by a pile of presents, at the right */
.k1nl-pnband { right: 0; bottom: 0; width: min(170px, 46%); height: min(88px, 100%); }
.k1nl-pnground { left: 0; right: 0; bottom: 0; height: 7px; border-radius: 50% 50% 0 0; background: #f2f5ff; }
html:not([data-theme="dark"]) .k1nl-pnground { box-shadow: inset 0 1px 0 #c3cbe6; }
.k1nl-pnpile { left: 6%; bottom: 3px; height: 54%; aspect-ratio: 60 / 34; }
.k1nl-pnsw { right: 6%; bottom: 1px; height: 96%; aspect-ratio: 100 / 120; transform-origin: 50% 100%; animation: k1nl-pnsway 9.6s ease-in-out infinite; }
.k1nl-pnsw > .k1nl-pnc { inset: 0; height: 100%; }
/* 404: dazed, cross-stitched eyes, stars turning above his head */
.k1nl--e404 { overflow: visible; }
.k1nl-dazed { left: calc(50% + 280px); top: 50%; height: 150px; aspect-ratio: 100 / 120; transform: translateY(-50%) rotate(10deg); }
.k1nl-dazed > .k1nl-pnc { inset: 0; height: 100%; }
.k1nl-dz { left: 22%; top: -14%; width: 56%; aspect-ratio: 2; animation: k1nl-dz 9.6s linear infinite; }
.k1nl-dz svg { display: block; width: 100%; height: 100%; }
@keyframes k1nl-dz { to { transform: rotate(1440deg); } }
@media (max-width: 899px) { .k1nl-dazed { left: calc(50% - 36px); top: 2px; height: 76px; transform: rotate(10deg); } }
/* the header: the cart is his sack (straw out of it, a stitched patch); the sleigh crosses the top bar now and then */
.k1nl-csack { left: calc(var(--cx, -200px) - 13px); top: calc(var(--cy, 0px) - 22px); width: 26px; height: 34px; transform-origin: 50% 80%; }
.k1nl-cstraw { left: 3px; top: 0; width: 20px; height: 13px; transform: rotate(-90deg) scale(.8); }
.k1nl-cpatch { left: 15px; top: 23px; width: 6px; height: 6px; background: #ee5c64; border: 1px dashed #7a1018; }
.k1nl-fly { left: 0; top: calc(var(--b1t, 0px) + var(--b1h, 64px) / 2 - 22px); width: 116px; height: 45px; transform: translateX(-160px); }
.k1nl-flyb { inset: 0; animation: k1nl-flybob 9.6s ease-in-out infinite; }
@media (max-width: 767px) { .k1nl-fly { width: 86px; height: 33px; top: calc(var(--b1t, 0px) + var(--b1h, 64px) / 2 - 16px); } }
/* after a purchase: Papa Nowel walks by at the bottom of the window with his sack */
.k1nl-walk { position: fixed; left: 0; bottom: 6px; width: 96px; height: 93px; z-index: 2147482990; pointer-events: none; }
.k1nl-walkb { position: absolute; inset: 0; display: block; animation: k1nl-step 6s ease-in-out infinite; }
@media (max-width: 639px) { .k1nl-walk { width: 70px; height: 68px; } }
.k1nl-zz .k1nl-pna, .k1nl-zz .k1nl-pnsw, .k1nl-zz .k1nl-dz { animation-play-state: paused !important; }
html:not([data-k1nl]) .k1nl-walk { display: none !important; }
@media (prefers-reduced-motion: reduce) { .k1nl-pna, .k1nl-pnsw, .k1nl-dz, .k1nl-fly, .k1nl-flyb, .k1nl-walkb { animation: none !important; } .k1nl-fly { display: none; } }
@media print, (forced-colors: active) { .k1nl-walk { display: none !important; } }
/* ---------- Confetti from a purchase button (moved by the script, on the graphics card) ---------- */
.k1nl-burst { position: fixed; width: 0; height: 0; z-index: 2147483000; pointer-events: none; }
.k1nl-burst i { position: absolute; display: block; left: -3.5px; top: -5px; width: 7px; height: 10px; border-radius: 1.5px; }
.k1nl-burst i.k1nl-strawbit { left: -1px; top: -7px; width: 2.4px; height: 14px; border-radius: 1px; background: #e9b949; }
/* ---------- Short movements, several cycles per iteration (generated by build_css.py) ---------- */
@keyframes k1nl-tag{0%{transform:rotate(-5deg)}12.5%{transform:rotate(5deg)}25%{transform:rotate(-5deg)}37.5%{transform:rotate(5deg)}50%{transform:rotate(-5deg)}62.5%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}87.5%{transform:rotate(5deg)}100%{transform:rotate(-5deg)}}
@keyframes k1nl-bowwig{0%{transform:rotate(-3deg) scale(1)}3.125%{transform:rotate(0deg) scale(1.05)}6.25%{transform:rotate(3deg) scale(1)}9.375%{transform:rotate(0deg) scale(1.03)}12.5%{transform:rotate(-3deg) scale(1)}15.625%{transform:rotate(0deg) scale(1.05)}18.75%{transform:rotate(3deg) scale(1)}21.875%{transform:rotate(0deg) scale(1.03)}25%{transform:rotate(-3deg) scale(1)}28.125%{transform:rotate(0deg) scale(1.05)}31.25%{transform:rotate(3deg) scale(1)}34.375%{transform:rotate(0deg) scale(1.03)}37.5%{transform:rotate(-3deg) scale(1)}40.625%{transform:rotate(0deg) scale(1.05)}43.75%{transform:rotate(3deg) scale(1)}46.875%{transform:rotate(0deg) scale(1.03)}50%{transform:rotate(-3deg) scale(1)}53.125%{transform:rotate(0deg) scale(1.05)}56.25%{transform:rotate(3deg) scale(1)}59.375%{transform:rotate(0deg) scale(1.03)}62.5%{transform:rotate(-3deg) scale(1)}65.625%{transform:rotate(0deg) scale(1.05)}68.75%{transform:rotate(3deg) scale(1)}71.875%{transform:rotate(0deg) scale(1.03)}75%{transform:rotate(-3deg) scale(1)}78.125%{transform:rotate(0deg) scale(1.05)}81.25%{transform:rotate(3deg) scale(1)}84.375%{transform:rotate(0deg) scale(1.03)}87.5%{transform:rotate(-3deg) scale(1)}90.625%{transform:rotate(0deg) scale(1.05)}93.75%{transform:rotate(3deg) scale(1)}96.875%{transform:rotate(0deg) scale(1.03)}100%{transform:rotate(-3deg) scale(1)}}
@keyframes k1nl-hop{0%{transform:translateY(0) scale(1)}15.5%{transform:translateY(0) scale(1)}17.5%{transform:translateY(1px) scale(1.08, .9)}20%{transform:translateY(-14px) scale(.96, 1.06) rotate(-6deg)}22.5%{transform:translateY(0) scale(1.06, .92)}23.75%{transform:translateY(0) scale(1)}25%{transform:translateY(0) scale(1)}40.5%{transform:translateY(0) scale(1)}42.5%{transform:translateY(1px) scale(1.08, .9)}45%{transform:translateY(-14px) scale(.96, 1.06) rotate(-6deg)}47.5%{transform:translateY(0) scale(1.06, .92)}48.75%{transform:translateY(0) scale(1)}50%{transform:translateY(0) scale(1)}65.5%{transform:translateY(0) scale(1)}67.5%{transform:translateY(1px) scale(1.08, .9)}70%{transform:translateY(-14px) scale(.96, 1.06) rotate(-6deg)}72.5%{transform:translateY(0) scale(1.06, .92)}73.75%{transform:translateY(0) scale(1)}75%{transform:translateY(0) scale(1)}90.5%{transform:translateY(0) scale(1)}92.5%{transform:translateY(1px) scale(1.08, .9)}95%{transform:translateY(-14px) scale(.96, 1.06) rotate(-6deg)}97.5%{transform:translateY(0) scale(1.06, .92)}98.75%{transform:translateY(0) scale(1)}100%{transform:translateY(0) scale(1)}}

@keyframes k1nl-blink{0.0%{opacity:1}6.25%{opacity:.35}12.5%{opacity:1}18.75%{opacity:.35}25.0%{opacity:1}31.25%{opacity:.35}37.5%{opacity:1}43.75%{opacity:.35}50.0%{opacity:1}56.25%{opacity:.35}62.5%{opacity:1}68.75%{opacity:.35}75.0%{opacity:1}81.25%{opacity:.35}87.5%{opacity:1}93.75%{opacity:.35}100.0%{opacity:1}}
@keyframes k1nl-twinkle{0.0%{transform:scale(.88) rotate(-6deg)}12.5%{transform:scale(1.12) rotate(6deg)}25.0%{transform:scale(.88) rotate(-6deg)}37.5%{transform:scale(1.12) rotate(6deg)}50.0%{transform:scale(.88) rotate(-6deg)}62.5%{transform:scale(1.12) rotate(6deg)}75.0%{transform:scale(.88) rotate(-6deg)}87.5%{transform:scale(1.12) rotate(6deg)}100.0%{transform:scale(.88) rotate(-6deg)}}
@keyframes k1nl-wave{0.0%{transform:rotate(0deg)}13.75%{transform:rotate(0deg)}16.0%{transform:rotate(18deg)}18.0%{transform:rotate(-8deg)}20.0%{transform:rotate(18deg)}22.0%{transform:rotate(-8deg)}25.0%{transform:rotate(0deg)}38.75%{transform:rotate(0deg)}41.0%{transform:rotate(18deg)}43.0%{transform:rotate(-8deg)}45.0%{transform:rotate(18deg)}47.0%{transform:rotate(-8deg)}50.0%{transform:rotate(0deg)}63.75%{transform:rotate(0deg)}66.0%{transform:rotate(18deg)}68.0%{transform:rotate(-8deg)}70.0%{transform:rotate(18deg)}72.0%{transform:rotate(-8deg)}75.0%{transform:rotate(0deg)}88.75%{transform:rotate(0deg)}91.0%{transform:rotate(18deg)}93.0%{transform:rotate(-8deg)}95.0%{transform:rotate(18deg)}97.0%{transform:rotate(-8deg)}100.0%{transform:rotate(0deg)}}
@keyframes k1nl-flapl{0.0%{transform:rotate(0deg)}5.0%{transform:rotate(30deg)}10.0%{transform:rotate(0deg)}15.0%{transform:rotate(30deg)}20.0%{transform:rotate(0deg)}25.0%{transform:rotate(30deg)}30.0%{transform:rotate(0deg)}35.0%{transform:rotate(30deg)}40.0%{transform:rotate(0deg)}45.0%{transform:rotate(30deg)}50.0%{transform:rotate(0deg)}55.0%{transform:rotate(30deg)}60.0%{transform:rotate(0deg)}65.0%{transform:rotate(30deg)}70.0%{transform:rotate(0deg)}75.0%{transform:rotate(30deg)}80.0%{transform:rotate(0deg)}85.0%{transform:rotate(30deg)}90.0%{transform:rotate(0deg)}95.0%{transform:rotate(30deg)}100.0%{transform:rotate(0deg)}}
@keyframes k1nl-flapr{0.0%{transform:rotate(0deg)}5.0%{transform:rotate(-30deg)}10.0%{transform:rotate(0deg)}15.0%{transform:rotate(-30deg)}20.0%{transform:rotate(0deg)}25.0%{transform:rotate(-30deg)}30.0%{transform:rotate(0deg)}35.0%{transform:rotate(-30deg)}40.0%{transform:rotate(0deg)}45.0%{transform:rotate(-30deg)}50.0%{transform:rotate(0deg)}55.0%{transform:rotate(-30deg)}60.0%{transform:rotate(0deg)}65.0%{transform:rotate(-30deg)}70.0%{transform:rotate(0deg)}75.0%{transform:rotate(-30deg)}80.0%{transform:rotate(0deg)}85.0%{transform:rotate(-30deg)}90.0%{transform:rotate(0deg)}95.0%{transform:rotate(-30deg)}100.0%{transform:rotate(0deg)}}
@keyframes k1nl-hover{0.0%{transform:translateY(-3px) rotate(-6deg)}8.333%{transform:translateY(3px) rotate(6deg)}16.667%{transform:translateY(-3px) rotate(-6deg)}25.0%{transform:translateY(3px) rotate(6deg)}33.333%{transform:translateY(-3px) rotate(-6deg)}41.667%{transform:translateY(3px) rotate(6deg)}50.0%{transform:translateY(-3px) rotate(-6deg)}58.333%{transform:translateY(3px) rotate(6deg)}66.667%{transform:translateY(-3px) rotate(-6deg)}75.0%{transform:translateY(3px) rotate(6deg)}83.333%{transform:translateY(-3px) rotate(-6deg)}91.667%{transform:translateY(3px) rotate(6deg)}100.0%{transform:translateY(-3px) rotate(-6deg)}}

/* ---------- Reduced motion: still pictures (no crossing sleigh) ---------- */
@media (prefers-reduced-motion: reduce) {
  .k1nl i, .k1nl-hdr i, .k1nl-hback i, .k1nl-sec i { animation: none !important; }
}
/* ---------- Printing and Windows high-contrast mode: none ---------- */
@media print, (forced-colors: active) {
  .k1nl, .k1nl-hdr, .k1nl-hback, .k1nl-sec, .k1nl-sec[hidden], .k1nl-pagesnow { display: none !important; }
}

@keyframes k1nl-pnsway{0%{transform:rotate(-2.5deg)}12.5%{transform:rotate(2.5deg)}25%{transform:rotate(-2.5deg)}37.5%{transform:rotate(2.5deg)}50%{transform:rotate(-2.5deg)}62.5%{transform:rotate(2.5deg)}75%{transform:rotate(-2.5deg)}87.5%{transform:rotate(2.5deg)}100%{transform:rotate(-2.5deg)}}
@keyframes k1nl-flybob{0%{transform:translateY(0)}6.25%{transform:translateY(-4px)}12.5%{transform:translateY(0)}18.75%{transform:translateY(-4px)}25%{transform:translateY(0)}31.25%{transform:translateY(-4px)}37.5%{transform:translateY(0)}43.75%{transform:translateY(-4px)}50%{transform:translateY(0)}56.25%{transform:translateY(-4px)}62.5%{transform:translateY(0)}68.75%{transform:translateY(-4px)}75%{transform:translateY(0)}81.25%{transform:translateY(-4px)}87.5%{transform:translateY(0)}93.75%{transform:translateY(-4px)}100%{transform:translateY(0)}}
@keyframes k1nl-step{0%{transform:translateY(0) rotate(-2deg)}5%{transform:translateY(-3px) rotate(2deg)}10%{transform:translateY(0) rotate(-2deg)}15%{transform:translateY(-3px) rotate(2deg)}20%{transform:translateY(0) rotate(-2deg)}25%{transform:translateY(-3px) rotate(2deg)}30%{transform:translateY(0) rotate(-2deg)}35%{transform:translateY(-3px) rotate(2deg)}40%{transform:translateY(0) rotate(-2deg)}45%{transform:translateY(-3px) rotate(2deg)}50%{transform:translateY(0) rotate(-2deg)}55%{transform:translateY(-3px) rotate(2deg)}60%{transform:translateY(0) rotate(-2deg)}65%{transform:translateY(-3px) rotate(2deg)}70%{transform:translateY(0) rotate(-2deg)}75%{transform:translateY(-3px) rotate(2deg)}80%{transform:translateY(0) rotate(-2deg)}85%{transform:translateY(-3px) rotate(2deg)}90%{transform:translateY(0) rotate(-2deg)}95%{transform:translateY(-3px) rotate(2deg)}100%{transform:translateY(0) rotate(-2deg)}}
