/* LokiOverlay Christmas "Midnight Gala" (2026-11-17). Candy-red buttons and red/gold
   type over the green brand; in the home hero a warm midnight sky, snowfall, a swag of
   bulbs and a 3D ASCII pine that builds itself and lights up (js/loki-xmas.js).
   Decoration only: no text, heading or link changes. Linked only during the season
   (index.php $seasonalTheme). Design: AllWeb/design/loki-christmas. */
:root[data-season="christmas"]{--xm-red:#e11d3f;--xm-red-2:#ff6f7d;--xm-pink:#ff8a96;--xm-gold:#ffd166;--xm-glow:rgba(225,29,63,.36)}

/* Primary buttons, every page: candy red with white text. */
:root[data-season="christmas"] .lk-btn--primary{background:linear-gradient(135deg,var(--xm-red-2),var(--xm-red) 58%,#c3122f);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,111,125,.55),0 12px 32px var(--xm-glow)}
:root[data-season="christmas"] .lk-btn--primary:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,160,170,.85),0 16px 44px rgba(225,29,63,.5)}
:root[data-season="christmas"] .lk-btn--ghost:hover{border-color:rgba(255,111,125,.5);background:rgba(225,29,63,.08)}

/* Wordmark: the green glow turns Christmas red; silver letters stay silver. */
:root[data-season="christmas"] .lk-brand img{filter:hue-rotate(-150deg) saturate(1.15) drop-shadow(0 4px 16px rgba(225,29,63,.32))}
:root[data-season="christmas"] .lk-footer__brand img{filter:hue-rotate(-150deg) saturate(1.15)}

/* Header: thin gold-to-red line, gold active tab. */
:root[data-season="christmas"] .lk-header::after{opacity:1;background:linear-gradient(90deg,transparent,rgba(255,209,102,.75) 30%,rgba(225,29,63,.6) 70%,transparent)}
:root[data-season="christmas"] .lk-nav a.is-active::after{background:var(--xm-gold);box-shadow:0 0 12px var(--xm-gold)}

/* Type accents. */
:root[data-season="christmas"] .lk-eyebrow{color:var(--xm-gold)}
:root[data-season="christmas"] .lk-discord-band .lk-eyebrow{color:#aab3ff}
:root[data-season="christmas"] .lk-hud--price b{background:linear-gradient(90deg,var(--xm-pink),var(--xm-gold));-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-season="christmas"] .lk-ticker__group>span::after{background:var(--xm-red);box-shadow:0 0 10px var(--xm-red)}
:root[data-season="christmas"] .lk-ticker__group>span:nth-child(3n+2)::after{background:var(--xm-gold);box-shadow:0 0 10px var(--xm-gold)}
:root[data-season="christmas"] .lk-ticker__group>span:nth-child(3n)::after{background:var(--green);box-shadow:0 0 10px var(--green)}

/* ---------- Home hero ---------- */
/* Warm midnight: a red glow top-left, gold light around the tree, deep plum-black base. */
:root[data-season="christmas"] .lk-hero{background:radial-gradient(46% 62% at 76% 46%,rgba(255,176,72,.17),transparent 70%),radial-gradient(52% 70% at 4% -6%,rgba(225,29,63,.3),transparent 68%),radial-gradient(40% 50% at 100% 104%,rgba(225,29,63,.16),transparent 70%),linear-gradient(180deg,#0f0a13,#110a0f 62%,#0b0d0c)}
:root[data-season="christmas"] .lk-hero__grid,:root[data-season="christmas"] .lk-hero__beam,:root[data-season="christmas"] .lk-hero__aurora{display:none}
:root[data-season="christmas"] .lk-hero__glow{background:radial-gradient(circle,rgba(255,96,96,.12),transparent 66%);filter:none}
:root[data-season="christmas"] .lk-hero__streak{background:linear-gradient(90deg,transparent,var(--xm-red),var(--xm-gold),var(--green),var(--xm-red),transparent);opacity:.75}
/* Soft out-of-focus lights drifting behind everything. The soft edges are in the
   gradients (12px each side), not a filter: a blurred layer that moves under the snow
   canvas is re-blurred by the GPU on every frame (2026-11-22, home page lag). */
:root[data-season="christmas"] .lk-hero__bg::before{content:"";position:absolute;inset:-6%;background:radial-gradient(circle at 12% 70%,rgba(255,200,90,.16) 0 23px,transparent 47px),radial-gradient(circle at 30% 18%,rgba(255,60,90,.12) 0 11px,transparent 35px),radial-gradient(circle at 46% 84%,rgba(255,120,180,.1) 0 17px,transparent 41px),radial-gradient(circle at 58% 12%,rgba(255,210,120,.12) 0 7px,transparent 31px),radial-gradient(circle at 92% 22%,rgba(255,60,90,.14) 0 29px,transparent 53px),radial-gradient(circle at 86% 78%,rgba(255,200,90,.12) 0 15px,transparent 39px),radial-gradient(circle at 70% 92%,rgba(160,220,255,.08) 0 19px,transparent 43px),radial-gradient(circle at 4% 30%,rgba(255,200,90,.1) 0 9px,transparent 33px);animation:xm-drift 18s ease-in-out infinite alternate}
@keyframes xm-drift{to{transform:translate3d(1.5%,-2%,0)}}
.xm-snow{position:absolute;inset:0;width:100%;height:100%;display:block}

/* Title: white with a slow gold shimmer; tagline in candy red to gold. */
:root[data-season="christmas"] .lk-hero h1{background:linear-gradient(100deg,#fff 0 38%,#ffe1a3 46%,#fff 54%,#efe3d6);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;animation:lk-title-sheen 2.6s .2s var(--ease-out) both,xm-sheen 7s 3s ease-in-out infinite}
@keyframes xm-sheen{0%,70%{background-position:0 0}85%{background-position:100% 0}100%{background-position:0 0}}
:root[data-season="christmas"] .lk-hero h1 span{background:linear-gradient(90deg,#ff4d63,#ff8a7a 42%,var(--xm-gold));-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 18px rgba(225,29,63,.28))}

/* Hero badge above the store chip. */
.xm-badge{display:inline-flex;align-items:center;gap:8px;margin:0 0 -8px;padding:7px 14px 7px 11px;border:1px solid rgba(255,209,102,.5);border-radius:999px;background:linear-gradient(90deg,rgba(225,29,63,.22),rgba(255,209,102,.12));color:#ffe2a0;font:600 12px/1.2 "Cascadia Mono",Consolas,Menlo,monospace;letter-spacing:.05em;box-shadow:0 0 24px rgba(225,29,63,.18)}
.xm-badge svg{flex:none;color:var(--xm-gold);filter:drop-shadow(0 0 6px rgba(255,209,102,.8))}

/* Hero stats: one quiet bar instead of four cards. */
:root[data-season="christmas"] .lk-hero__stats{gap:0;width:auto;max-width:100%;border:1px solid rgba(255,209,102,.16);border-radius:16px;background:rgba(18,11,16,.72);overflow:hidden}
:root[data-season="christmas"] .lk-hero__stats div{padding:12px 20px;border:0;border-radius:0;background:none}
:root[data-season="christmas"] .lk-hero__stats div+div{border-left:1px solid rgba(255,255,255,.07)}
:root[data-season="christmas"] .lk-hero__stats dd{font-size:22px}

/* The pine replaces the logo, rings and the stock card (the stats bar shows stock). */
:root[data-season="christmas"] .lk-hero__halo,:root[data-season="christmas"] .lk-hero__ring,:root[data-season="christmas"] .lk-hud--stock{display:none}
:root[data-season="christmas"] .lk-hero__art::before{width:92%;background:radial-gradient(closest-side,rgba(255,190,90,.24),rgba(225,29,63,.08) 58%,transparent)}
/* The art box shrinks to its content on phones; the canvas has none, so give both a width. */
:root[data-season="christmas"] .lk-hero__art{width:100%}
.xm-tree{position:relative;width:100%;max-width:560px;aspect-ratio:1/1.06}
.xm-tree canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
/* Warm pool of light on the snow under the tree. */
.xm-tree::after{content:"";position:absolute;left:12%;right:12%;bottom:6%;height:16%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,200,110,.22),transparent);pointer-events:none}
:root[data-season="christmas"] .lk-hud{border-color:rgba(255,209,102,.22);background:rgba(20,12,16,.78)}
:root[data-season="christmas"] .lk-hud--price{top:58%}
:root[data-season="christmas"] .lk-hud--auto{bottom:8%}

@media (max-width:920px){
  :root[data-season="christmas"] .lk-hero__art{max-width:330px}
  .xm-tree{aspect-ratio:1/.95}
  :root[data-season="christmas"] .lk-hud--price{right:-6%;top:62%}
}
@media (max-width:600px){
  /* Keep "ดูสินค้าทั้งหมด" on the first screen: smaller pine, no badge (the pine says Christmas). */
  :root[data-season="christmas"] .lk-hero{padding-top:28px}
  :root[data-season="christmas"] .lk-hero__art{max-width:270px}
  .xm-tree{aspect-ratio:1/.9}
  .xm-badge{display:none}
  :root[data-season="christmas"] .lk-hero__stats{width:100%;grid-template-columns:1fr 1fr}
  :root[data-season="christmas"] .lk-hero__stats div:nth-child(3){border-left:0}
  :root[data-season="christmas"] .lk-hero__stats div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.07)}
}
