/* ============================================================================
   tokkyo leaks* — CHRISTMAS 2026 (seasonal layer, loaded after tl.css and
   the page's own styles). Pairs with assets/xmas.js.

   Pure black & white stays the base: the snow is white, and the only warm
   colour on the site is the light of the bulbs. This season the galaxy is
   off: the background is plain black, with the snow falling over it.

   TO DISMANTLE after the holidays: copy
   Documents\tokkyoleaks.lol\backups\site-antes-de-navidad-2026-11-25 back
   over new\site and run `npx wrangler deploy` from new\ — or roll the Worker
   back to version c1a9ede5-662e-49d2-a97c-80e9257351e0.
============================================================================ */
:root{
  --xm-warm:255,222,168;   /* the light of the bulbs (rgb triplet) */
  /* six-armed snowflake, used as a mask (its colour comes from the element) */
  --xm-flake:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3Cpath transform='rotate(60)' d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3Cpath transform='rotate(120)' d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3Cpath transform='rotate(180)' d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3Cpath transform='rotate(240)' d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3Cpath transform='rotate(300)' d='M0 -4V-45M0 -18l-10 -9M0 -18l10 -9M0 -31l-7 -7M0 -31l7 -7'/%3E%3C/g%3E%3Ccircle r='6' fill='%23000'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- the layers xmas.js draws */
/* with no galaxy painting the page, the black comes from <html> (bodies stay transparent so the layers show) */
html{ background:#000 }
#xm-snow{ position:fixed; left:0; top:0; z-index:-1; width:100vw; height:100vh; pointer-events:none; display:block }
#xm-lights{ position:fixed; left:0; top:0; z-index:49; pointer-events:none; display:block; will-change:transform }
@keyframes xm-turn{ to{ transform:rotate(360deg) } }

/* ---------------------------------------------------------------- the asterisk is a snowflake this season */
.tl-brand span sup, .co-brand sup{ font-size:0; display:inline-block; position:relative; top:-9px; width:9px; height:9px; margin-left:3px; vertical-align:baseline;
  background:#fff; -webkit-mask:var(--xm-flake) center/contain no-repeat; mask:var(--xm-flake) center/contain no-repeat;
  animation:xm-turn 14s linear infinite }
.tl-display .ast{ position:relative; color:transparent !important; -webkit-text-stroke:0 !important; text-shadow:none !important;
  filter:drop-shadow(0 0 12px rgba(255,255,255,.55)) drop-shadow(0 0 34px rgba(255,255,255,.25)) }
.tl-display .ast::before{ content:''; position:absolute; left:50%; top:56%; width:.6em; height:.6em; margin:-.3em 0 0 -.3em;
  background:#fff; -webkit-mask:var(--xm-flake) center/contain no-repeat; mask:var(--xm-flake) center/contain no-repeat }
.marquee span::after{ content:''; width:.6em; height:.6em; flex:none; background:#fff; text-shadow:none;
  -webkit-mask:var(--xm-flake) center/contain no-repeat; mask:var(--xm-flake) center/contain no-repeat }

/* ---------------------------------------------------------------- fresh snow on the header and the cards */
/* xmas.js draws one smooth layer per card (an SVG sized to the card and its corners) */
.xm-cap{ position:absolute; z-index:6; left:0; top:-10px; width:100%; height:0; pointer-events:none; display:block }
.xm-cap svg{ display:block; overflow:visible; filter:drop-shadow(0 1px 1.2px rgba(0,0,0,.55)) }
/* the cards that carry snow can't clip it */
.bento .app, .numbers, .final, #apps > .app{ overflow:visible }
.bento .app .shot{ overflow:hidden; border-radius:var(--r-lg) var(--r-lg) 0 0 }

/* checkout: frosted glass, so the snow behind the card blurs instead of crossing the payment details */
.co-card{ -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px) }

/* the header keeps room above it for its snow once the page scrolls */
.tl-nav.scrolled{ top:12px }
/* the lights hang under the header, so the bars that stick under it sit a little lower */
.jump{ top:128px }
.ptool{ top:126px }
.side{ top:132px }

/* ---------------------------------------------------------------- home: the two pills + the countdown */
.hero-pills{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:16px 0 30px }
.hero .hero-pills .tl-pill{ margin:0 }
.xm-count[hidden]{ display:none }
.xm-count{ gap:8px }
.tl-pill .xm-ico{ width:12px; height:12px; flex:none; border-radius:0; box-shadow:none; background:#fff;
  -webkit-mask:var(--xm-flake) center/contain no-repeat; mask:var(--xm-flake) center/contain no-repeat;
  animation:xm-turn 10s linear infinite }
.xm-count .xm-nums{ display:inline-flex; align-items:baseline; gap:2px; color:#fff }
.xm-count .xm-nums b{ display:inline-block; min-width:2ch; text-align:right }
.xm-count .xm-nums em{ font-style:normal; color:var(--ink-3); margin:0 5px 0 1px }
.xm-count .xm-nums em:last-child{ margin-right:0 }

/* ---------------------------------------------------------------- home: the last card holds a tree of lights */
.final.xm-final{ display:grid; grid-template-columns:minmax(0, 1.08fr) minmax(0, .92fr); align-items:center; gap:0 20px;
  text-align:left; padding:60px 34px 60px clamp(30px, 5.4vw, 80px) }
.xm-final .xm-copy{ position:relative; z-index:2 }
.xm-final h2{ font-size:clamp(40px, 5.6vw, 88px) }
.xm-final p{ margin:22px 0 0 }
.xm-final .cta-row{ justify-content:flex-start }
.xm-tree-wrap{ position:relative; order:2; height:480px; margin:-30px 0 }
.xm-tree-wrap::before{ content:''; position:absolute; left:50%; top:54%; width:110%; aspect-ratio:1; border-radius:50%; transform:translate(-50%,-50%);
  background:radial-gradient(closest-side, rgba(var(--xm-warm),.13), rgba(var(--xm-warm),.04) 55%, transparent); pointer-events:none }
#xm-tree{ position:absolute; inset:0; width:100%; height:100%; display:block }
@media (max-width:860px){
  .final.xm-final{ grid-template-columns:1fr; text-align:center; padding:26px 22px 64px }
  .xm-tree-wrap{ order:-1; height:360px; margin:0 }
  .xm-final p{ margin:22px auto 0 }
  .xm-final .cta-row{ justify-content:center }
}

@media (prefers-reduced-motion:reduce){
  .tl-brand span sup, .tl-pill .xm-ico{ animation:none }
}
