/* ESAGAMES Christmas 2026 layer. Sits on top of the existing theme and uses its tokens (--em-stage, --em-brand,
   --em-font-*). Owner rules: no glows, flat red accents, sparse crisp snow, nothing that reacts playfully to the cursor.
   Everything that moves stops with the site's own "Pause animations" (html[data-em-motion="off"]) and with
   prefers-reduced-motion. */

.xm-vh{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- garland under the header ---------- */
.v3h{ --xm-gh:clamp(58px, 3.2vw + 46px, 84px); }
.xm-garland{ position:absolute; left:0; right:0; top:-6px; height:var(--xm-gh); z-index:3; pointer-events:none; overflow:hidden; display:flex; }
.xm-gtile{ position:relative; flex:0 0 auto; height:100%; background:url(/promo/craciun-2026/kit/garland.webp) 0 0 / 100% 100% no-repeat; }
/* the bulbs are already lit in the photo: the overlay only dims one now and then, it never adds light */
.xm-bulb{ position:absolute; width:1.5%; aspect-ratio:3 / 4; transform:translate(-50%,-50%); border-radius:50% 50% 45% 45%; background:#000;
  mix-blend-mode:multiply; opacity:0; animation:xm-dim var(--d,7s) linear var(--o,0s) infinite; }
@keyframes xm-dim{ 0%,72%,100%{ opacity:0; } 76%,88%{ opacity:.55; } }

/* ---------- Santa hat on the logo (the header changes layout at 1100px) ---------- */
.hd-logo{ position:relative; }
/* worn by the orange ESA box: the brim rests on its top edge over the left corner, the tip falls to the right */
/* the hat sits ON the top-left corner of the logo's box: fur brim along the box's top edge, tilted a little */
.xm-hat{ position:absolute; left:-5px; top:-6px; width:34px; height:auto; transform:rotate(-12deg); transform-origin:20% 75%; pointer-events:none; z-index:2; }
@media (min-width:1100px){ .xm-hat{ left:-6px; top:-10px; width:40px; } }

/* ---------- snow ---------- */
/* a canvas has an intrinsic 300x150 size: it must be given the viewport's size explicitly, inset alone does not stretch it */
.xm-snow{ position:fixed; left:0; top:0; width:100%; height:100%; z-index:55; pointer-events:none; }

/* ---------- the deals band: starts in the hero's dark, a snowy forest rises out of it, green under the trees ---------- */
section.xm.em-stage{ --xm-fh:0px; --em-stage-surface:rgba(12,14,18,.9); --em-stage-line:rgba(255,255,255,.1);
  position:relative; overflow:hidden; overflow:clip; color:#f4f1eb; padding:clamp(80px,8vw,120px) 0 0; min-height:clamp(640px,50vw,820px);
  /* its own colour, a very dark cold teal taken from the swamp scene, so it never melts into the sections around it */
  --xm-band:#0b181d; background:var(--xm-band); box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.06); }
.xm-forest{ position:absolute; left:0; right:0; top:28px; height:var(--xm-fh); z-index:0; pointer-events:none;
  background:url(/promo/craciun-2026/kit/forest.webp) 0 100% / auto 100% repeat-x;
  -webkit-mask-image:linear-gradient(180deg,#000 0,#000 72%,transparent 100%); mask-image:linear-gradient(180deg,#000 0,#000 72%,transparent 100%); }
/* real snow (a photographic snow bank, Codex render) closes the band and melts into the next section's own colour: no hard line */
.xm-in{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:clamp(24px,4vw,56px); align-items:stretch; }
.xm-copy{ padding-bottom:clamp(64px,7vw,104px); }
.xm-kick{ display:inline-flex; align-items:center; gap:8px; margin:0 0 20px; padding:7px 12px; border-radius:999px; background:#c8202f; font:500 13.5px/1 var(--em-font-text,Inter,sans-serif); color:#fff; }
.xm-dot{ width:6px; height:6px; border-radius:50%; background:#fff; }
section.xm.em-stage h2.xm-h{ margin:0 0 18px; font:600 clamp(40px,4.4vw,60px)/1.04 var(--em-font-display,Geist,sans-serif); letter-spacing:-.035em; color:#f4f1eb; text-wrap:balance; }
.xm-h span{ display:block; color:var(--em-brand,#f89044); white-space:nowrap; }
.xm-lead{ margin:0 0 30px; max-width:540px; font:400 17px/1.6 var(--em-font-text,Inter,sans-serif); color:#cfc9bf; }
.xm-lead b{ color:#f4f1eb; font-weight:600; }
.xm-cards{ display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:620px; }
.xm-card{ position:relative; display:flex; flex-direction:column; align-items:flex-start; padding:22px 20px 20px; border-radius:16px; background:var(--em-stage-surface); border:1px solid var(--em-stage-line); }
.xm-bow{ position:absolute; top:-28px; right:-8px; width:clamp(72px,6.2vw,92px); height:auto; transform:rotate(8deg); z-index:3; pointer-events:none; }
.xm-tag{ display:inline-block; margin:0 0 14px; padding:5px 9px; border-radius:6px; background:rgba(200,32,47,.16); font:500 12px/1 var(--em-font-text,Inter,sans-serif); color:#ff9aa2; }
.xm-card h3{ margin:0 0 6px; font:600 19px/1.2 var(--em-font-display,Geist,sans-serif); letter-spacing:-.02em; color:#f4f1eb; }
.xm-desc{ margin:0; font:400 13.5px/1.5 var(--em-font-text,Inter,sans-serif); color:#aaa49a; min-height:40px; }
.xm-price{ display:flex; align-items:baseline; gap:10px; margin:16px 0 16px; }
.xm-price b{ font:600 42px/1 var(--em-font-display,Geist,sans-serif); letter-spacing:-.04em; color:#f4f1eb; }
.xm-price > span{ font:400 14px/1 var(--em-font-text,Inter,sans-serif); color:#aaa49a; }
/* the theme strips every text-decoration, so the old price gets its own line through it */
.xm-price s{ position:relative; text-decoration:none; font:500 16px/1 var(--em-font-text,Inter,sans-serif); color:#aaa49a; }
.xm-price s::after{ content:""; position:absolute; left:-2px; right:-2px; top:52%; height:1.5px; background:currentColor; }
.xm-btn{ width:100%; margin-top:auto; }
.xm-count{ display:flex; align-items:center; gap:12px; margin-top:24px; }
.xm-count-l{ font:400 14px/1 var(--em-font-text,Inter,sans-serif); color:#aaa49a; }
.xm-count ol{ display:flex; gap:8px; margin:0; padding:0; list-style:none; }
.xm-count li{ min-width:58px; padding:9px 6px 7px; text-align:center; border-radius:10px; background:var(--em-stage-surface); border:1px solid var(--em-stage-line); }
.xm-count b{ display:block; font:600 22px/1 var(--em-font-display,Geist,sans-serif); color:#f4f1eb; font-variant-numeric:tabular-nums; }
.xm-count li span{ font:400 12px/1.4 var(--em-font-text,Inter,sans-serif); color:#aaa49a; }

/* stage: reindeer behind, Santa in front, presents on the snow in front of their feet */
.xm-stage{ position:relative; min-height:clamp(440px,46vw,620px); }
.xm-deer{ position:absolute; left:0; bottom:8%; width:56%; aspect-ratio:760 / 533; transform-origin:50% 100%; animation:xm-breathe 4.2s ease-in-out infinite; }
.xm-deer img{ display:block; width:100%; height:100%; }
.xm-santa{ position:absolute; right:0; bottom:5%; width:54%; max-width:330px; aspect-ratio:640 / 960; padding:0; border:0; background:none; cursor:pointer; transform-origin:50% 100%; animation:xm-breathe 3.6s ease-in-out infinite; -webkit-tap-highlight-color:transparent; }
.xm-santa:focus{ outline:none; } .xm-santa:focus-visible{ outline:2px solid var(--em-brand,#f89044); outline-offset:6px; border-radius:12px; }
.xm-santa img, .xm-shine{ position:absolute; display:block; }
.xm-body{ inset:0; width:100%; height:100%; z-index:1; }
.xm-hand{ left:2.93%; top:0; width:17.87%; height:19.6%; z-index:0; transform-origin:46.4% 79.7%; animation:xm-wave 1.9s ease-in-out infinite; }
.xm-santa.is-talking .xm-hand{ animation-duration:.6s; }
@keyframes xm-wave{ 0%,100%{ transform:rotate(-9deg); } 50%{ transform:rotate(12deg); } }
@keyframes xm-breathe{ 0%,100%{ transform:scale(1,1); } 50%{ transform:scale(1.006,1.014); } }
.xm-shine{ inset:0; width:100%; height:100%; z-index:2; pointer-events:none; }
.xm-glare{ animation:xm-glare 5.5s ease-in-out infinite; }
@keyframes xm-glare{ 0%,70%{ transform:skewX(-22deg) translateX(0); opacity:0; } 72%{ opacity:1; } 86%{ transform:skewX(-22deg) translateX(260px); opacity:1; } 88%,100%{ transform:skewX(-22deg) translateX(260px); opacity:0; } }
.xm-bling{ transform-box:fill-box; transform-origin:50% 50%; animation:xm-bling 3.2s ease-in-out infinite; }
.xm-bling.is-2{ animation-delay:1.6s; }
@keyframes xm-bling{ 0%,80%,100%{ transform:scale(0) rotate(0); opacity:0; } 88%{ transform:scale(1) rotate(45deg); opacity:1; } }
.xm-drift{ position:absolute; left:15%; bottom:3%; width:58%; height:auto; z-index:4; pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%); }
.xm-ground{ display:none; }

/* Santa's speech bubble: placed from his position by JS, so its tail points at him */
.xm-bubble{ position:absolute; z-index:8; left:0; bottom:0; max-width:260px; padding:12px 15px; border-radius:14px; background:#fff; color:#1a1612;
  font:500 15px/1.4 var(--em-font-text,Inter,sans-serif); box-shadow:0 10px 28px rgba(0,0,0,.28); opacity:0; transform:translateY(6px); transition:opacity .2s ease, transform .2s ease; pointer-events:none; }
.xm-bubble::after{ content:""; position:absolute; left:var(--tail,70%); bottom:-10px; border:11px solid transparent; border-top-color:#fff; border-bottom:0; transform:translateX(-50%); }
.xm-bubble.is-on{ opacity:1; transform:none; }

/* the flying elf: decoration only, follows a fixed path, never reacts to the pointer */
.xm-elf{ position:absolute; left:0; top:0; width:clamp(74px,7vw,108px); height:auto; z-index:7; pointer-events:none; opacity:0; transition:opacity .4s ease; will-change:transform; }
.xm-elf.is-ready{ opacity:1; }

/* ---------- Santa's sleigh over the hero globe ---------- */
.xm-sleigh{ position:absolute; left:0; top:0; width:clamp(150px,19vw,320px); height:auto; z-index:2; pointer-events:none; opacity:0; transform-origin:0 50%; will-change:transform,opacity; }

/* ---------- the tree standing on the footer's top edge ---------- */
.xm-foot{ position:relative; height:0; z-index:5; pointer-events:none; overflow-x:clip; overflow-y:visible; }
.xm-foot-tree{ position:absolute; right:clamp(10px, 2.2vw, 44px); bottom:-6px; width:clamp(74px,7vw,112px); height:auto; }
.xm-foot::after{ content:""; position:absolute; right:calc(clamp(10px, 2.2vw, 44px) - 18px); bottom:-8px; width:calc(clamp(74px,7vw,112px) + 36px); height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C 10 8 24 4 44 4 C 60 4 70 1 86 2 C 110 3 128 8 140 16 Z' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
html[data-theme="light"] .xm-foot::after{ filter:drop-shadow(0 1px 0 rgba(30,21,16,.10)); }

/* ---------- the gift in the corner: opens the two deals ---------- */
.xm-gift{ position:fixed; left:18px; bottom:calc(18px + env(safe-area-inset-bottom)); z-index:70; width:56px; height:64px; padding:0; border:0; background:none; cursor:pointer;
  transition:opacity .25s ease, visibility .25s; -webkit-tap-highlight-color:transparent; }
.xm-gift, .xm-gift:focus{ outline:none; box-shadow:none; }
.xm-gift:focus-visible{ outline:2px solid var(--em-brand,#f89044); outline-offset:4px; border-radius:12px; }
.xm-gift img{ display:block; width:100%; height:100%; object-fit:contain; transform-origin:50% 90%; }
.xm-gift.xm-hello img{ animation:xm-jiggle 6s ease-in-out 2s 2; }
.xm-gift .xm-new{ position:absolute; top:2px; right:2px; width:10px; height:10px; border-radius:50%; background:#c8202f; box-shadow:0 0 0 2px #fff; }
.xm-gift.is-tucked{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes xm-jiggle{ 0%,82%,100%{ transform:rotate(0); } 85%{ transform:rotate(-8deg); } 88%{ transform:rotate(7deg); } 91%{ transform:rotate(-5deg); } 94%{ transform:rotate(3deg); } }
.xm-pop{ position:fixed; left:18px; bottom:calc(92px + env(safe-area-inset-bottom)); z-index:71; width:min(350px, calc(100vw - 36px)); padding:20px 18px 18px; border-radius:16px; overflow:hidden;
  background:#141414; border:1px solid #262626; color:#f4f1eb; box-shadow:0 18px 48px rgba(0,0,0,.4);
  transform:translateY(10px); opacity:0; visibility:hidden; transition:transform .2s ease, opacity .2s ease, visibility 0s .2s; }
.xm-pop::before{ content:""; position:absolute; left:0; right:0; top:0; height:4px; background:#c8202f; }
.xm-pop.is-on{ transform:none; opacity:1; visibility:visible; transition:transform .2s ease, opacity .2s ease; }
.xm-pop .xm-pop-h{ margin:0 0 4px; font:600 18px/1.25 var(--em-font-display,Geist,sans-serif); letter-spacing:-.02em; color:inherit; }
.xm-pop > p{ margin:0 0 14px; color:#a39c92; font:400 13.5px/1.5 var(--em-font-text,Inter,sans-serif); }
.xm-pop ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.xm-pop li a{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid #262626; color:inherit; text-decoration:none; font:500 14px/1.3 var(--em-font-text,Inter,sans-serif); }
.xm-pop li small{ display:block; margin-top:2px; color:#a39c92; font-size:12px; font-weight:400; }
.xm-pop li b{ color:var(--em-brand,#f89044); font-weight:600; white-space:nowrap; }
.xm-pop-all{ display:inline-block; margin-top:12px; color:var(--em-brand,#f89044); font:500 13.5px/1 var(--em-font-text,Inter,sans-serif); text-decoration:none; }
.xm-pop-x{ position:absolute; top:8px; right:8px; width:36px; height:36px; border:0; border-radius:8px; background:transparent; color:#a39c92; font-size:22px; line-height:1; cursor:pointer; }
html[data-theme="light"] .xm-pop{ background:#FFFEFC; border-color:#E6DED7; color:#1E1510; box-shadow:0 1px 2px rgba(30,21,16,.06), 0 18px 44px -14px rgba(30,21,16,.24); }
html[data-theme="light"] .xm-pop li a{ background:#FCF8F4; border-color:#E6DED7; }
html[data-theme="light"] .xm-pop li b, html[data-theme="light"] .xm-pop-all{ color:#A54B0E; }
html[data-theme="light"] :is(.xm-pop > p, .xm-pop li small, .xm-pop-x){ color:#58483F; }
/* never on top of the language-suggestion bar or the cookie banner */
body:has(> .esa-langbar) :is(.xm-gift,.xm-pop), html[data-consent-open] :is(.xm-gift,.xm-pop){ display:none; }

/* ---------- tablets and phones ---------- */
@media (max-width:1023.98px){
  .xm-in{ grid-template-columns:1fr; }
  .xm-copy{ display:contents; }
  .xm-kick{ order:1; justify-self:start; }
  section.xm.em-stage h2.xm-h{ order:2; }
  .xm-stage{ order:3; min-height:0; height:clamp(280px,66vw,420px); margin:0 0 20px; width:100%; max-width:620px; justify-self:center; }
  .xm-lead{ order:4; }
  .xm-cards{ order:5; }
  .xm-count{ order:6; margin-bottom:72px; }
  .xm-santa{ width:46%; }
  .xm-bubble{ max-width:min(200px,50%); padding:9px 11px; font-size:13.5px; }
}
@media (max-width:599.98px){
  section.xm.em-stage{ --xm-fh:132px; }
  .xm-cards{ grid-template-columns:1fr; gap:30px; }
  .xm-bow{ right:-6px; top:-24px; width:70px; }
  .xm-count li{ min-width:52px; }
  .xm-gift{ width:46px; height:52px; left:10px; bottom:calc(10px + env(safe-area-inset-bottom)); }
  .xm-pop{ left:12px; right:12px; width:auto; bottom:calc(70px + env(safe-area-inset-bottom)); }
  .xm-pop-x{ width:44px; height:44px; }
}

/* ---------- motion off: the OS setting or the site's own Pause animations button ---------- */
html[data-em-motion="off"] :is(.xm-bulb,.xm-santa,.xm-deer,.xm-hand,.xm-glare,.xm-bling,.xm-gift img){ animation:none !important; }
html[data-em-motion="off"] .xm-sleigh{ display:none; }
@media (prefers-reduced-motion:reduce){
  :is(.xm-bulb,.xm-santa,.xm-deer,.xm-hand,.xm-glare,.xm-bling,.xm-gift img){ animation:none !important; }
  .xm-sleigh{ display:none; }
}

/* ---------- the hero scene: epic RPG winter key art (Codex render) behind the hero, in place of the globe ---------- */
/* the WebGL globe (and its stars and traffic lanes) is drawn in .v3-gl, not in the globe slot: the season's scene replaces both */
.v3h.has-xm-art .v3h-globe, .v3h.has-xm-art .v3-gl{ visibility:hidden !important; }
.v3h.has-xm-art .v3-gl{ display:none !important; }
.xm-hero-art{ position:absolute; top:0; right:0; bottom:0; width:min(100%, 1240px); z-index:-1;   /* the hero isolates its stacking, so -1 = behind all of its content */ pointer-events:none;
  background:url(/promo/craciun-2026/kit/hero-rpg.webp) 70% 30% / cover no-repeat;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 18%, #000 42%); mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 18%, #000 42%); }
/* settles into the hero's own dark at the bottom, where the proof row and the forest of the deals band follow */
.xm-hero-art::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.25) 0, transparent 22%, transparent 62%, var(--em-stage,#0d0d0d) 100%); }
@media (max-width:1023.98px){
  .xm-hero-art{ left:0; width:auto; top:auto; height:46%; background-size:auto 100%; background-position:58% 0;
    -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 10%); mask-image:linear-gradient(180deg, transparent 0, #000 10%); }
}



/* horror-comedy art: a darker grade and a heavy dark vignette (a shadow, not a glow) so the whole top of the page turns gloomy */
.xm-hero-art.is-horror{ filter:brightness(.86) saturate(.82) contrast(1.06); }
.xm-hero-art.is-horror::after{ background:radial-gradient(120% 95% at 70% 45%, transparent 38%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.85) 100%),
  linear-gradient(180deg, rgba(0,0,0,.4) 0, transparent 24%, transparent 58%, var(--em-stage,#0d0d0d) 100%); }

/* ---------- the deals band: the frozen-swamp scene (Codex, horror-comedy) on the right, the offers on its dark left side ---------- */
.xm-forest{ display:none; }
.xm-art{ position:absolute; top:0; right:0; bottom:0; width:min(100%, 1420px); z-index:0; pointer-events:none;
  background:url(/promo/craciun-2026/kit/deals-swamp.webp) 72% 40% / cover no-repeat; filter:brightness(.9) saturate(.9);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, transparent 22%, rgba(0,0,0,.4) 38%, #000 60%); mask-image:linear-gradient(90deg, transparent 0, transparent 22%, rgba(0,0,0,.4) 38%, #000 60%); }
.xm-art::after{ content:""; position:absolute; inset:0;
  background:radial-gradient(120% 95% at 72% 45%, transparent 40%, rgba(0,0,0,.5) 80%, rgba(0,0,0,.8) 100%),
             linear-gradient(180deg, var(--xm-band,#0b181d) 0, transparent 16%, transparent 62%, var(--xm-band,#0b181d) 100%); }
@media (min-width:1024px){ section.xm.em-stage .xm-stage{ display:none; } }
.xm-scene-m{ display:block; width:100%; height:auto; border-radius:14px; }
@media (max-width:1023.98px){
  .xm-art{ display:none; }
  section.xm.em-stage{ min-height:0; padding-top:56px; }
  section.xm.em-stage .xm-stage{ height:auto; }
}


/* ---------- scene bands (store pages, Anti-DDoS): the same look as the homepage deals band ---------- */
section.xm-band.em-stage{ --xm-band:#0b181d; position:relative; overflow:hidden; overflow:clip; isolation:isolate; background:var(--xm-band); color:#f4f1eb;
  min-height:clamp(260px,24vw,380px); display:flex; align-items:center; box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.06); }
.xm-band-art{ position:absolute; top:0; right:0; bottom:0; width:min(100%, 1100px); z-index:-1; background:center 40% / cover no-repeat; filter:brightness(.92) saturate(.9);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 22%, #000 48%); mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 22%, #000 48%); }
.xm-band-art::after{ content:""; position:absolute; inset:0; background:radial-gradient(120% 95% at 70% 45%, transparent 40%, rgba(0,0,0,.5) 82%, rgba(0,0,0,.8) 100%); }
.xm-band-in{ position:relative; box-sizing:border-box; width:100%; max-width:1248px; margin:0 auto; padding:40px 24px 44px; }
.xm-band-in > *{ max-width:520px; }
section.xm-band.em-stage .xm-band-h{ margin:0 0 10px; font:600 clamp(28px,3vw,42px)/1.08 var(--em-font-display,Geist,sans-serif); letter-spacing:-.03em; color:#f4f1eb; }
.xm-band-p{ margin:0 0 20px; font:400 16px/1.6 var(--em-font-text,Inter,sans-serif); color:#cfc9bf; }
/* own button: store pages don't load the homepage's .em-btn styles */
a.xm-band-btn{ display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 22px; border-radius:10px; background:var(--em-brand,#f89044); color:#1e1510 !important; font:600 15px/1 var(--em-font-text,Inter,sans-serif); text-decoration:none !important; }
@media (max-width:767.98px){
  section.xm-band.em-stage{ display:block; min-height:0; }
  .xm-band-art{ position:relative; display:block; width:100%; height:56vw; -webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%); mask-image:linear-gradient(180deg,#000 70%,transparent 100%); }
  .xm-band-in{ padding-top:8px; }
}

/* ---------- 404: the lost gremlin behind the page's own message ---------- */
.xm-404{ position:relative; isolation:isolate; overflow:hidden; }
.xm-404 .cx-gl{ display:none !important; }
.xm-404-art{ position:absolute; inset:0; z-index:-1; background:url(/promo/craciun-2026/kit/e404.webp) 72% 40% / cover no-repeat; filter:brightness(.8) saturate(.85);
  -webkit-mask-image:linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.55) 30%, #000 60%); mask-image:linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.55) 30%, #000 60%); }
.xm-404-note{ margin:12px 0 0; max-width:520px; font:400 16px/1.6 var(--em-font-text,Inter,sans-serif); color:#cfc9bf; }
.xm-404-note a{ color:var(--em-brand,#f89044); }

/* ---------- thank-you card after an order ---------- */
.xm-thanks{ display:flex; align-items:center; gap:22px; margin:24px 0; padding:18px 22px; border-radius:16px; background:#0b181d; border:1px solid rgba(255,255,255,.1); color:#f4f1eb; }
.xm-thanks img{ width:120px; height:auto; flex:0 0 auto; }
.xm-thanks h2{ margin:0 0 6px; font:600 24px/1.15 var(--em-font-display,Geist,sans-serif); letter-spacing:-.02em; color:#f4f1eb; }
.xm-thanks p{ margin:0; color:#cfc9bf; font:400 15px/1.55 var(--em-font-text,Inter,sans-serif); }
.xm-thanks .xm-kick{ margin:0 0 10px; }
@media (max-width:599.98px){ .xm-thanks{ flex-direction:column; text-align:center; } }

/* ---------- the hidden gremlins ---------- */
.xm-has-gremlin{ position:relative; }
.xm-gremlin{ position:absolute; z-index:6; width:64px; height:64px; padding:0; border:0; background:none; cursor:pointer; transition:transform .45s ease, opacity .45s ease; }
.xm-gremlin img{ display:block; width:100%; height:100%; object-fit:contain; }
.xm-gremlin:focus-visible{ outline:2px solid var(--em-brand,#f89044); outline-offset:3px; border-radius:10px; }
.xm-gremlin.is-side{ right:-4px; top:38%; width:56px; height:72px; transform:translateX(30%); }
.xm-gremlin.is-hang{ left:clamp(16px,6vw,120px); top:0; width:40px; height:60px; transform-origin:50% 0; animation:xm-swing 3.4s ease-in-out infinite; }
.xm-gremlin.is-bottom{ left:clamp(16px,8vw,140px); bottom:-6px; width:70px; height:70px; }
.xm-gremlin.is-eyes{ right:8%; bottom:14%; width:54px; height:54px; }
.xm-gremlin.is-caught{ transform:scale(.2) rotate(180deg); opacity:0; }
@keyframes xm-swing{ 0%,100%{ transform:rotate(-6deg); } 50%{ transform:rotate(6deg); } }
html[data-em-motion="off"] .xm-gremlin.is-hang{ animation:none; }
@media (prefers-reduced-motion:reduce){ .xm-gremlin.is-hang{ animation:none; } }
.xm-toast{ position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); z-index:80; max-width:min(440px, calc(100vw - 32px)); padding:12px 16px; border-radius:12px;
  background:#0b181d; border:1px solid rgba(255,255,255,.12); color:#f4f1eb; font:400 14.5px/1.45 var(--em-font-text,Inter,sans-serif); box-shadow:0 14px 36px rgba(0,0,0,.4);
  transform:translate(-50%, 16px); opacity:0; visibility:hidden; transition:transform .25s ease, opacity .25s ease, visibility 0s .25s; }
.xm-toast.is-on{ transform:translate(-50%, 0); opacity:1; visibility:visible; transition:transform .25s ease, opacity .25s ease; }
.xm-toast code{ padding:2px 6px; border-radius:6px; background:rgba(248,144,68,.15); color:var(--em-brand,#f89044); }
.xm-pop-hint{ margin:12px 0 0; color:#a39c92; font:400 12.5px/1.45 var(--em-font-text,Inter,sans-serif); }
@media (max-width:767.98px){ .xm-gremlin.is-bottom{ left:auto; right:12px; bottom:auto; top:calc(56vw - 64px); } }

/* ---------- six deals: copy top-left over the scene, the cards in one full-width row under it ---------- */
section.xm.em-stage .xm-copy{ padding-bottom:28px; }
section.xm.em-stage .xm-cards{ grid-column:1 / -1; grid-template-columns:repeat(3, minmax(0,1fr)); max-width:none; gap:28px 22px; margin-top:8px; }
section.xm.em-stage .xm-card h3{ font-size:18px; }
.xm-foot-row{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 32px; padding:26px 0 72px; }
.xm-foot-row .xm-count{ margin:0; }
.xm-terms{ margin:0; max-width:620px; font:400 13px/1.55 var(--em-font-text,Inter,sans-serif); color:#8f9a9c; }
.xm-desc b{ color:#f4f1eb; font-weight:600; }
@media (max-width:1023.98px){
  section.xm.em-stage .xm-cards{ order:5; grid-template-columns:repeat(2, minmax(0,1fr)); }
  .xm-foot-row{ order:6; padding-bottom:56px; }
  section.xm.em-stage .xm-count{ margin-bottom:0; }
}
@media (max-width:599.98px){ section.xm.em-stage .xm-cards{ grid-template-columns:1fr; } }

/* desktop: the whole swamp scene sits top-right next to the headline (like a hero) and the six cards start UNDER it,
   so nothing covers Santa, the elf, the reindeer or the frozen gremlin */
@media (min-width:1024px){
  section.xm.em-stage{ --xm-art-w:min(max(min(60vw, 1120px), calc(50vw + 100px)), 1600px); }
  .xm-art{ top:0; bottom:auto; right:0; width:var(--xm-art-w); aspect-ratio:3 / 2; background-size:cover; background-position:center;
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
    -webkit-mask-composite:source-in; mask-image:linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%); mask-composite:intersect; }
  .xm-art::after{ background:linear-gradient(180deg, var(--xm-band,#0b181d) 0, transparent 10%); }
  section.xm.em-stage .xm-in{ grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr); }   /* the copy may run into the scene's faded left edge */
  section.xm.em-stage .xm-copy{ min-height:calc(var(--xm-art-w) * 2 / 3 - clamp(80px,8vw,120px) - 8px); display:flex; flex-direction:column; justify-content:center; padding-bottom:0; }
  section.xm.em-stage .xm-cards{ margin-top:0; }
  section.xm.em-stage .xm-kick{ align-self:flex-start; }   /* the flex column would stretch the pill across */
}

/* ---------- the one code, shown big ---------- */
.xm-code{ margin:6px 0 0; max-width:520px; padding:16px 18px 14px; border-radius:14px; border:2px dashed rgba(248,144,68,.55); background:rgba(248,144,68,.07); }
.xm-code-l{ margin:0 0 6px; font:500 13px/1.3 var(--em-font-text,Inter,sans-serif); color:#cfc9bf; letter-spacing:.02em; }
.xm-code-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.xm-code-v{ font:700 clamp(40px,4.2vw,56px)/1 var(--em-font-display,Geist,sans-serif); letter-spacing:.06em; color:var(--em-brand,#f89044); }
.xm-code-copy{ height:40px; padding:0 16px; border:1px solid rgba(255,255,255,.22); border-radius:10px; background:transparent; color:#f4f1eb; font:600 14px/1 var(--em-font-text,Inter,sans-serif); cursor:pointer; }
.xm-code-copy.is-done{ border-color:var(--em-brand,#f89044); color:var(--em-brand,#f89044); }
.xm-code-s{ margin:8px 0 0; font:400 13.5px/1.5 var(--em-font-text,Inter,sans-serif); color:#aaa49a; }
.xm-band-act{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.xm-band-code{ font:500 15px/1 var(--em-font-text,Inter,sans-serif); color:#cfc9bf; }
.xm-band-code b{ margin-left:6px; padding:6px 10px; border:2px dashed rgba(248,144,68,.6); border-radius:8px; font:700 22px/1 var(--em-font-display,Geist,sans-serif); letter-spacing:.06em; color:var(--em-brand,#f89044); }
.xm-pop-code{ display:flex; align-items:center; gap:10px; margin:0 0 12px !important; padding:10px 12px; border:2px dashed rgba(248,144,68,.55); border-radius:10px; font:500 13.5px/1 var(--em-font-text,Inter,sans-serif); }
.xm-pop-code b{ font:700 24px/1 var(--em-font-display,Geist,sans-serif); letter-spacing:.06em; color:var(--em-brand,#f89044); }
.xm-pop-code .xm-code-copy{ margin-left:auto; height:32px; padding:0 12px; font-size:13px; }
html[data-theme="light"] .xm-pop-code .xm-code-copy{ color:#1E1510; border-color:#E6DED7; }
@media (max-width:1023.98px){ section.xm.em-stage .xm-code{ order:4; margin:0 0 22px; max-width:none; } section.xm.em-stage .xm-lead{ margin-bottom:18px; } }
/* Turkish: "Reddedemeyeceğiniz" is one very long word, so the headline is a little smaller and never breaks inside a word */
html[lang="tr"] section.xm.em-stage h2.xm-h{ font-size:clamp(30px, 3.5vw, 50px); overflow-wrap:normal; word-break:normal; }
