/* ═══════════════════════════════════════════════════════════════════════════
   6900 > 500 — THE COGNISPHERE HUB
   Skin: AeonTerminal "anime" — shonen cel / manga print.
   · Indigo ink (#2B1A4E, never black) outlines every panel.
   · Hard offset shadows, ZERO blur: a cel is printed, not glowing.
   · Sunset ramp pink → orange → violet on all chrome.
   · Halftone screentone on the page, hard bands in the sky.
   · Motion SNAPS into a held pose (impact frame), it never floats.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #2B1A4E;
  --ink-body: #3C2A63;
  --ink-soft: #6B5C8E;
  --ink-faint: #937FBC;
  --a: #FF5E7E;          /* sunset-a */
  --b: #FF9A56;          /* sunset-b */
  --c: #B36BFF;          /* sunset-c */
  --pink: #FF3E8A;
  --sky: #4DC9FF;
  --mint: #35E0A1;
  --lavender: #A876FF;
  --peach: #FF9A56;
  --page: #E9F3FF;
  --pane: #F4F0FF;
  --tint: #FFE1EE;
  --sunset: linear-gradient(100deg, var(--a) 0%, var(--b) 52%, var(--c) 100%);
  --snap: cubic-bezier(0.16, 1.24, 0.3, 1);
  --out: cubic-bezier(0.7, 0, 0.84, 0);
  --font-pop: 'Mochiy Pop One', 'M PLUS Rounded 1c', system-ui, sans-serif;
  --font: 'M PLUS Rounded 1c', 'Quicksand', system-ui, sans-serif;
  --bd: 2.5px solid var(--ink);
  --p: 0;                 /* page scroll progress 0..1 (JS) */
  --hp: 0;                /* hero scroll progress 0..1 (JS) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis smooth scroll (assets/lenis.min.js, MIT, darkroom.engineering).
   Lenis needs native smooth-scroll OFF while it drives the page. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  font-family: var(--font);
  color: var(--ink-body);
  background: var(--page);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.kana { font-family: var(--font); font-weight: 800; letter-spacing: 0.04em; }

::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--page); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

/* ─── THE SKY — hard cel bands, the brand ramp reversed ─────────────────── */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background-color: var(--page);
  background-image:
    linear-gradient(180deg,
      #C7B2F2 0%, #C7B2F2 6%,
      #D2C2F5 6%, #D2C2F5 15%,
      #DCD1F8 15%, #DCD1F8 25%,
      #DFE7FD 34%, #EFE2F7 47%,
      #FFDFC4 58%, #FFCFDD 74%, #FFE2C8 100%);
}
/* Dusk deepens as you scroll down the page: the sun is setting. */
.sky-dusk {
  position: absolute; inset: 0;
  opacity: calc(var(--p) * 0.85);
  background-image:
    linear-gradient(180deg,
      #9C86E0 0%, #9C86E0 9%,
      #B49BEB 9%, #B49BEB 20%,
      #CDB3F0 20%, #CDB3F0 32%,
      #E9BFE6 46%, #FFC2C9 62%, #FFB79A 80%, #FFC8A8 100%);
}
/* Halftone screentone: two offset dot grids, static (print does not move). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(rgba(255, 62, 138, 0.13) 1px, transparent 1.4px),
    radial-gradient(rgba(77, 201, 255, 0.11) 1px, transparent 1.4px);
  background-size: 9px 9px, 14px 14px;
  background-position: 0 0, 4px 6px;
}
.wind { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* ─── TASKBAR NAV ───────────────────────────────────────────────────────── */
.bar {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  width: min(1240px, calc(100% - 28px));
  translate: -50% 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 10px 8px 12px;
  background: var(--pane);
  border: var(--bd); border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: translate .5s var(--snap), padding .3s var(--snap), box-shadow .3s var(--snap);
}
.js .bar { translate: -50% -140%; }
.is-ready .bar { translate: -50% 0; transition-delay: .55s; }
.bar.is-hidden { translate: -50% -140% !important; transition-delay: 0s !important; }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar-logo {
  display: grid; place-items: center; height: 30px; padding: 0 9px;
  background: var(--ink); border-radius: 5px; box-shadow: 2px 2px 0 var(--pink);
}
.bar-logo img { height: 25px; width: auto; }
.bar-hub {
  font-family: var(--font-pop); font-size: 12px; color: #fff; letter-spacing: .08em;
  background: var(--sunset); border: 2px solid var(--ink); border-radius: 5px;
  padding: 3px 8px 2px; box-shadow: 2px 2px 0 var(--ink);
  text-shadow: 0 1.5px 0 rgba(43, 26, 78, .45);
}
.bar-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-pop); font-size: 11px; letter-spacing: .08em; color: var(--ink);
}
.bar-status .kana { color: var(--pink); font-size: 11px; }
.live {
  width: 10px; height: 10px; border-radius: 50%; background: var(--mint);
  border: 2px solid var(--ink); animation: live 1.9s steps(2, jump-none) infinite;
}
@keyframes live { 50% { background: #fff; } }
.bar-right { display: flex; align-items: center; gap: 10px; }
.bar-keys { font-family: var(--font-pop); font-size: 10px; letter-spacing: .08em; color: var(--ink-soft); }
kbd {
  display: inline-block; font-family: var(--font-pop); font-size: 10px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 1px 5px 0;
  box-shadow: 1.5px 1.5px 0 var(--ink); margin: 0 1px;
}
.bar-clock {
  font-family: var(--font-pop); font-size: 12px; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 5px; padding: 4px 9px 3px; box-shadow: 2px 2px 0 var(--ink);
  min-width: 74px; text-align: center;
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px 24px 23vh;
  overflow: hidden;
  isolation: isolate;
}
/* The sun: posterised rings, hard stops, sitting ON the horizon. It sets as you scroll. */
.hero-sun {
  position: absolute; z-index: -2; left: 50%; bottom: 23vh;
  width: min(78vmin, 760px); aspect-ratio: 1; border-radius: 50%;
  translate: -50% calc(50% + var(--hp) * 46%);
  background: radial-gradient(circle,
    #FFF7E2 0 34%, #FFE6B0 34% 46%, #FFC98A 46% 58%,
    #FFAA7E 58% 70%, #FF8E93 70% 82%, rgba(255, 94, 126, .35) 82% 100%);
  transition: translate .1s linear;
}
.js .hero-sun { scale: .2; opacity: 0; }
.is-ready .hero-sun { scale: 1; opacity: 1; transition: scale 1.1s var(--snap) .15s, opacity .2s .15s, translate .1s linear; }

/* Shonen focus lines, animated "on twos": the angle jumps, it never glides. */
.speedlines {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(43, 26, 78, .16) 0deg .55deg, transparent .55deg 3.1deg,
    rgba(43, 26, 78, .09) 3.1deg 3.4deg, transparent 3.4deg 6.3deg);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent 0 24%, #000 62%);
  mask: radial-gradient(circle at 50% 46%, transparent 0 24%, #000 62%);
  animation: twos .36s steps(1) infinite;
  opacity: 0;
}
.is-ready .speedlines { opacity: 1; transition: opacity .15s 1.05s; }
@keyframes twos {
  0% { rotate: 0deg; scale: 1; }
  33% { rotate: 1.3deg; scale: 1.015; }
  66% { rotate: -.9deg; scale: .99; }
}

.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-pop); font-size: 13px; letter-spacing: .12em; color: var(--ink);
  background: #fff; border: var(--bd); border-radius: 6px; padding: 6px 12px 5px 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.kicker .tag { background: var(--ink); color: #fff; padding: 3px 8px 2px; border-radius: 4px; }
.kicker .kana { color: var(--pink); }

.title {
  margin: 22px 0 8px;
  display: flex; align-items: center; justify-content: center; gap: .06em;
  font-family: var(--font-pop); font-weight: 400; line-height: .9;
  font-size: clamp(54px, 17.5vw, 290px);
  letter-spacing: -.02em;
  user-select: none;
}
.t-big, .t-small { white-space: nowrap; display: inline-block; }
.title .ch { display: inline-block; will-change: transform; }
.t-big .ch {
  color: #FFF9EE;
  -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill;
  text-shadow: .035em .035em 0 var(--pink), .07em .07em 0 var(--ink);
}
.t-big .ch:nth-child(2) { color: #FFE9F1; }
.t-big .ch:nth-child(3) { color: #FFF2DA; }
.t-big .ch:nth-child(4) { color: #F1E8FF; }
.t-small { font-size: .5em; align-self: flex-end; margin-bottom: .12em; }
.t-small .ch {
  color: transparent;
  -webkit-text-stroke: .045em var(--ink);
  text-shadow: none;
}
/* the ">" — a pink burst stamped between them */
.t-gt {
  display: grid; place-items: center; position: relative;
  width: .82em; height: .82em; font-size: .62em; margin: 0 .02em;
}
.t-gt::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  clip-path: polygon(50% 0, 61% 20%, 83% 9%, 80% 33%, 100% 40%, 84% 56%, 98% 76%, 74% 76%, 70% 100%, 52% 84%, 33% 100%, 27% 78%, 3% 80%, 15% 58%, 0 40%, 20% 32%, 15% 9%, 38% 20%);
  translate: .05em .05em;
}
.t-gt::after {
  content: ''; position: absolute; inset: 0; background: var(--pink);
  clip-path: polygon(50% 0, 61% 20%, 83% 9%, 80% 33%, 100% 40%, 84% 56%, 98% 76%, 74% 76%, 70% 100%, 52% 84%, 33% 100%, 27% 78%, 3% 80%, 15% 58%, 0 40%, 20% 32%, 15% 9%, 38% 20%);
}
.t-gt span { position: relative; z-index: 1; color: #fff; font-size: .62em; -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill; translate: 0 -.04em; }

/* Entrance: the impact frame. Each glyph slams from huge into its held pose. */
.js .title .ch, .js .t-gt { opacity: 0; transform: scale(2.6) rotate(-14deg); }
.is-ready .title .ch, .is-ready .t-gt {
  opacity: 1; transform: none;
  transition: transform .42s var(--snap), opacity .06s;
  transition-delay: calc(.55s + var(--i, 0) * .085s);
}
.is-ready .t-gt { transition-delay: .9s; animation: gtspin 6.9s steps(1) 2s infinite; }
@keyframes gtspin { 0%, 90% { rotate: 0deg; } 92% { rotate: 14deg; scale: 1.12; } 95% { rotate: -6deg; } 97% { rotate: 0deg; scale: 1; } }
/* held pose breathes on twos */
.is-ready .t-big .ch { animation: bob 2.4s steps(4) calc(1.6s + var(--i) * .3s) infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 25% { translate: 0 -.02em; } 50% { translate: 0 -.035em; } 75% { translate: 0 -.015em; } }

.ribbon {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 10px; padding: 10px 22px 8px;
  font-family: var(--font-pop); font-size: clamp(13px, 1.6vw, 20px); letter-spacing: .12em; color: #fff;
  background: var(--ink); rotate: -2.5deg;
  box-shadow: 5px 5px 0 var(--pink);
  clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
  padding-inline: 36px;
}
.ribbon b { color: #FFD66B; }
.js .ribbon { scale: 0 1; }
.is-ready .ribbon { scale: 1; transition: scale .45s var(--snap) 1.15s; }

.lede {
  margin-top: 26px; font-size: clamp(15px, 1.35vw, 19px); font-weight: 700; color: var(--ink);
  line-height: 1.55; background: rgba(255, 255, 255, .72); padding: 8px 16px; border-radius: 6px;
}
.cta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--font-pop); font-size: 15px; letter-spacing: .1em; color: #fff;
  background: var(--sunset); border: 3px solid var(--ink); border-radius: 8px;
  padding: 14px 22px 12px; box-shadow: 5px 5px 0 var(--ink);
  text-shadow: 0 2px 0 rgba(43, 26, 78, .45);
  transition: transform .14s var(--snap), box-shadow .14s var(--snap);
}
.cta i { font-style: normal; display: inline-block; animation: nudge 1.2s steps(2) infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.js .lede, .js .cta, .js .kicker { opacity: 0; translate: 0 24px; }
.is-ready .kicker { opacity: 1; translate: 0 0; transition: .5s var(--snap) .4s; }
.is-ready .lede { opacity: 1; translate: 0 0; transition: .5s var(--snap) 1.3s; }
.is-ready .cta { opacity: 1; translate: 0 0; transition: opacity .5s var(--snap) 1.4s, translate .5s var(--snap) 1.4s, transform .14s var(--snap), box-shadow .14s var(--snap); }

/* the coin + speech bubble */
.coin-wrap { position: absolute; right: max(5vw, 20px); bottom: calc(23vh + 28px); width: clamp(100px, 10.5vw, 170px); z-index: 1; }
.coin {
  width: 100%; height: auto;
  filter: drop-shadow(6px 6px 0 var(--ink));
  animation: coinflip 6.09s var(--snap) 2.4s infinite;
}
@keyframes coinflip { 0%, 80% { transform: rotateY(0) translateY(0); } 88% { transform: rotateY(180deg) translateY(-18px); } 96%, 100% { transform: rotateY(360deg) translateY(0); } }
.bubble {
  position: absolute; left: -62%; top: -18%; z-index: 2;
  font-family: var(--font-pop); font-size: clamp(11px, 1vw, 14px); line-height: 1.15; color: var(--ink); text-align: center;
  background: #fff; border: var(--bd); border-radius: 18px; padding: 10px 14px 8px;
  box-shadow: 3px 3px 0 var(--ink); rotate: -8deg;
}
.bubble::after {
  content: ''; position: absolute; right: 8px; bottom: -13px; width: 18px; height: 14px;
  background: #fff; border-right: var(--bd); border-bottom: var(--bd);
  clip-path: polygon(0 0, 100% 0, 100% 100%); transform: skewX(-25deg);
}
.js .coin-wrap { opacity: 0; scale: .3; rotate: 40deg; }
.is-ready .coin-wrap { opacity: 1; scale: 1; rotate: 0deg; transition: .6s var(--snap) 1.5s; }

/* The sea: posterised bands, a hard indigo ink line at the horizon. */
.sea {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 23vh;
  border-top: 3px solid var(--ink);
  background: linear-gradient(180deg,
    #FFC09A 0 9%, #FFAD8B 9% 20%, #FF9A8E 20% 34%, #F08A9E 34% 51%,
    #D57FB2 51% 70%, #B176C4 70% 100%);
}
.glitter { position: absolute; inset: 0; }
.glitter i {
  position: absolute; height: 3px; background: #FFF6E4; border-radius: 2px;
  box-shadow: 1px 1px 0 rgba(43, 26, 78, .35);
  opacity: .25; animation: glint 1.9s steps(1) infinite;
}
@keyframes glint { 0%, 100% { opacity: .2; } 10%, 22% { opacity: 1; } 30% { opacity: .2; } }

/* ─── TAPES ─────────────────────────────────────────────────────────────── */
.tapes { position: relative; height: 210px; margin-top: -40px; z-index: 2; pointer-events: none; }
.tape {
  position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden;
  border-block: 3px solid var(--ink); padding: 12px 0 10px;
}
.tape-a { background: var(--pink); rotate: -4deg; translate: 0 -64%; box-shadow: 0 6px 0 var(--ink); }
.tape-b { background: var(--ink); rotate: 3deg; translate: 0 -10%; box-shadow: 0 6px 0 rgba(43,26,78,.25); }
.tape-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.tape-track span {
  font-family: var(--font-pop); font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .04em; padding-right: .6em;
}
.tape-a span { color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.tape-b span { color: #FFD66B; }
.tape-track b { color: var(--sky); padding-right: .6em; font-weight: 400; }
.tape-a .tape-track b { color: #FFE58A; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }

/* ─── PORTALS ───────────────────────────────────────────────────────────── */
.portals { position: relative; z-index: 3; width: min(1280px, calc(100% - 40px)); margin: 40px auto 0; }
.sec-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 44px; }
.sec-num {
  font-family: var(--font-pop); font-size: clamp(70px, 9vw, 130px); line-height: .8;
  color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--pink);
}
.sec-kicker { font-family: var(--font-pop); font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 8px; }
.sec-kicker .kana { color: var(--pink); }
.sec-head h2 {
  font-family: var(--font-pop); font-weight: 400; color: var(--ink);
  font-size: clamp(34px, 5.2vw, 72px); line-height: .95; letter-spacing: -.01em;
}
.sec-head h2 em {
  font-style: normal; color: #fff; padding: 0 .18em .02em; display: inline-block;
  background: var(--sunset); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  text-shadow: 0 3px 0 rgba(43, 26, 78, .4); rotate: -2deg;
}
.js .sec-head > * { opacity: 0; translate: -40px 0; }
.sec-head.in > * { opacity: 1; translate: 0 0; transition: .55s var(--snap); }
.sec-head.in > *:nth-child(2) { transition-delay: .1s; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px 30px; }
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-7 { grid-column: span 7; } .c-12 { grid-column: span 12; }
.h-md { --h: clamp(200px, 19vw, 270px); }
.h-xl { --h: clamp(260px, 27vw, 400px); }
.h-wide { --h: clamp(300px, 36vw, 560px); }

/* A card is an AeonTerminal window, stamped in cel ink. */
.card {
  --rx: 0; --ry: 0; --mx: .5; --my: .5; --lift: 0;
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink-body);
  background: #fff; border: var(--bd); border-radius: 7px;
  box-shadow: calc(6px + var(--lift) * 4px - var(--ry) * .6px) calc(6px + var(--lift) * 4px + var(--rx) * .6px) 0 var(--ink);
  transform: perspective(1400px) translate(calc(var(--lift) * -4px), calc(var(--lift) * -4px)) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  transform-style: preserve-3d;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
  cursor: pointer;
  isolation: isolate;
}
.card:hover { --lift: 1; }
.card:active { --lift: -1; transition-duration: .08s; }

.win-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 36px; padding: 0 8px 0 12px;
  background:
    linear-gradient(225deg, var(--page) 0 13px, transparent 13px) top right / 100% 100% no-repeat,
    var(--sunset);
  border-bottom: var(--bd); border-radius: 4px 4px 0 0;
}
.win-title {
  font-family: var(--font-pop); font-size: 12px; letter-spacing: .1em; color: #fff;
  text-shadow: 0 1.5px 0 rgba(43, 26, 78, .45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-btns { display: flex; gap: 5px; margin-right: 12px; }
.win-btns i {
  display: grid; place-items: center; width: 20px; height: 18px;
  font-style: normal; font-size: 11px; font-weight: 900; line-height: 1; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 1.5px 1.5px 0 var(--ink);
}
.card:hover .win-btns i:last-child { background: #FF4D6D; color: #fff; }

.media {
  position: relative; height: var(--h); overflow: hidden;
  border-bottom: var(--bd); background: var(--pane);
}
.media img, .media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media img { object-position: var(--focus, 50% 30%); transition: transform .9s var(--snap), opacity .2s; }
.card:hover .media img { transform: scale(1.05); }
.media canvas { opacity: 0; }
.card.gl-on .media canvas { opacity: 1; }
.card.gl-on .media img { opacity: 0; }

/* Holographic foil + specular glare, steered by the pointer. */
.foil, .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.foil {
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(115deg,
      rgba(255, 94, 126, 0) 0%, rgba(255, 94, 126, .55) 4%, rgba(255, 214, 107, .5) 8%,
      rgba(53, 224, 161, .45) 12%, rgba(77, 201, 255, .5) 16%, rgba(179, 107, 255, .55) 20%, rgba(255, 94, 126, 0) 26%);
  background-size: 260% 260%;
  background-position: calc(var(--mx) * 100%) calc(var(--my) * 100%);
  -webkit-mask: radial-gradient(circle at calc(var(--mx) * 100%) calc(var(--my) * 100%), #000 0, rgba(0,0,0,.35) 35%, transparent 70%);
  mask: radial-gradient(circle at calc(var(--mx) * 100%) calc(var(--my) * 100%), #000 0, rgba(0,0,0,.35) 35%, transparent 70%);
}
.glare {
  mix-blend-mode: soft-light;
  background: radial-gradient(circle at calc(var(--mx) * 100%) calc(var(--my) * 100%), rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .25) 30%, rgba(43, 26, 78, .35) 85%);
}
.card:hover .foil { opacity: .32; }
.card:hover .glare { opacity: .8; }

.meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px 15px 16px; background: #fff; border-radius: 0 0 5px 5px;
}
.num {
  font-family: var(--font-pop); font-size: 38px; line-height: 1;
  color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--acc, var(--pink));
}
.txt { min-width: 0; }
.txt h3 {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font); font-weight: 900; font-size: clamp(17px, 1.55vw, 22px);
  color: var(--ink); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15;
}
.txt h3 .kana {
  font-size: 11px; font-weight: 800; color: #fff; background: var(--acc, var(--pink));
  border: 2px solid var(--ink); border-radius: 4px; padding: 2px 6px 1px; text-transform: none;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.txt p { margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.url {
  display: inline-block; margin-top: 7px; max-width: 100%;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.url::before { content: '⌁ '; color: var(--pink); }

.open {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pop); font-size: 13px; letter-spacing: .08em; color: var(--ink);
  background: #fff; border: var(--bd); border-radius: 999px; padding: 10px 14px 9px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .25s var(--snap), background .14s, color .14s, box-shadow .14s;
}
.open i {
  font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; transition: rotate .3s var(--snap);
}
.card:hover .open { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.card:hover .open i { rotate: 45deg; background: #fff; color: var(--ink); }

/* Reveal: a sunset panel sweeps across, the window is stamped in behind it. */
.card::after {
  content: ''; position: absolute; inset: -3px; z-index: 5; pointer-events: none; border-radius: 7px;
  background: var(--sunset); border: 3px solid var(--ink);
  transform: scaleX(0); transform-origin: left;
}
.js .card > * { opacity: 0; }
.js .card { box-shadow: 0 0 0 var(--ink); }
.card.in > * { opacity: 1; transition: opacity 0s .36s; }
.card.in { animation: stampShadow .4s var(--snap) .38s backwards; }
.js .card.in { box-shadow: calc(6px + var(--lift) * 4px - var(--ry) * .6px) calc(6px + var(--lift) * 4px + var(--rx) * .6px) 0 var(--ink); }
.card.in::after { animation: panel .8s cubic-bezier(.77, 0, .18, 1) forwards; }
@keyframes panel {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  46% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes stampShadow { from { box-shadow: 0 0 0 var(--ink); } }

/* Keyboard hint: the shortcut number in the corner. */
.card[data-key]::before {
  content: attr(data-key); position: absolute; z-index: 6; top: -14px; left: -14px;
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--font-pop); font-size: 13px; color: #fff; background: var(--ink);
  border: 2.5px solid #fff; border-radius: 50%; box-shadow: 2px 2px 0 var(--pink);
  scale: 0; transition: scale .3s var(--snap);
}
.card.in[data-key]::before { scale: 1; transition-delay: .7s; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.foot { position: relative; z-index: 3; width: min(1280px, calc(100% - 40px)); margin: 120px auto 0; padding-bottom: 50px; }
.foot-stamp {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3em;
  font-family: var(--font-pop); font-size: clamp(54px, 11vw, 170px); line-height: .95; text-align: center;
}
.foot-stamp > span:first-child .ch { color: #fff; -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; text-shadow: .04em .04em 0 var(--pink); }
.foot-stamp > span:last-child .ch { color: transparent; -webkit-text-stroke: .03em var(--ink); }
.foot-stamp .ch { display: inline-block; }
.js .foot-stamp .ch { opacity: 0; transform: translateY(.5em) rotate(12deg) scale(1.4); }
.foot-stamp.in .ch { opacity: 1; transform: none; transition: transform .45s var(--snap), opacity .05s; transition-delay: calc(var(--i) * .05s); }
.foot-row {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #fff; border: var(--bd); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 18px;
}
.foot-coin { width: 46px; height: 46px; filter: drop-shadow(3px 3px 0 var(--ink)); animation: spin 6.9s steps(23) infinite; }
@keyframes spin { to { transform: rotateY(360deg); } }
.foot-line { flex: 1; font-weight: 700; color: var(--ink-soft); }
.foot-line b { font-family: var(--font-pop); font-weight: 400; color: var(--ink); }
.foot-top {
  text-decoration: none; font-family: var(--font-pop); font-size: 12px; letter-spacing: .1em; color: #fff;
  background: var(--ink); border-radius: 6px; padding: 10px 14px 8px; box-shadow: 3px 3px 0 var(--pink);
  transition: transform .14s var(--snap), box-shadow .14s;
}
.foot-top:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pink); }

/* ─── CURSOR ────────────────────────────────────────────────────────────── */
.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor .card { cursor: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.cur-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center;
}
.cur-ring::before, .cur-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink);
  transition: background .2s, scale .35s var(--snap), opacity .15s;
}
.cur-ring::after { display: none; }
/* ── The portal disc: on cards (and stickers), the ring becomes an inked
   white disc with the destination orbiting it in the display face and a
   sunset core carrying the arrow. It squashes along the direction of travel
   (JS) so it feels like a physical object trailing the pointer. */
.cur-disc {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(255, 255, 255, .96);
  border: 2px solid var(--ink); box-shadow: 2.5px 3px 0 var(--ink);
  opacity: 0; scale: .2;
  transition: scale .45s var(--snap), opacity .12s;
}
.cur-disc::before {                       /* hairline inner track */
  content: ''; position: absolute; inset: 12.5px; border-radius: 50%;
  border: 1px dashed rgba(43, 26, 78, .3);
}
.cur-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: orbit 10s linear infinite; }
.cur-orbit text { font-family: var(--font-pop); font-size: 15px; letter-spacing: .04em; fill: var(--ink); }
.cur-orbit .o-star { fill: var(--pink); }
@keyframes orbit { to { rotate: 360deg; } }
.cur-core {
  position: absolute; left: 50%; top: 50%; width: 21px; height: 21px; margin: -10.5px 0 0 -10.5px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sunset); border: 1.8px solid var(--ink);
  box-shadow: inset 0 -1.5px 0 rgba(43, 26, 78, .22);
  transition: scale .3s var(--snap);
}
.cur-core svg {
  width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(43, 26, 78, .5));
}
.cursor.on-card .cur-disc { opacity: 1; scale: 1; }
.cursor.on-card .cur-ring::before { opacity: 0; scale: .3; }
.cursor.on-card .cur-core svg { animation: nudge45 1.9s var(--snap) infinite; }
@keyframes nudge45 { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 1.5px -1.5px; } }
.cursor.on-desk .cur-core svg { animation: none; }
.cursor.is-down .cur-disc .cur-core { scale: .82; }
.cursor.is-down .cur-disc { scale: .94; }
.cursor.on-card .cur-dot { scale: 0; }
.cursor.on-link .cur-ring::before { scale: 1.5; background: rgba(255, 62, 138, .18); }
.cursor.is-down .cur-ring { scale: .8; }
.spark {
  position: fixed; z-index: 91; pointer-events: none; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: var(--c1, #FFD66B); border-radius: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  filter: drop-shadow(1.5px 1.5px 0 var(--ink));
}

/* ─── THE CUT — preloader + page transition ─────────────────────────────── */
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.wipe > i {
  position: absolute; left: -15%; width: 130%; height: 20.5%; top: calc(var(--k) * 20%);
  transform: translateX(-112%) skewX(-16deg);
  border-block: 3px solid var(--ink);
}
.wipe > i:nth-child(1) { background: var(--c); }
.wipe > i:nth-child(2) { background: var(--a); }
.wipe > i:nth-child(3) { background: var(--ink); }
.wipe > i:nth-child(4) { background: var(--b); }
.wipe > i:nth-child(5) { background: var(--pink); }
.wipe.is-cover { pointer-events: all; }
.wipe.is-cover > i { transform: translateX(0) skewX(-16deg); transition: transform .5s cubic-bezier(.77, 0, .18, 1) calc(var(--k) * .045s); }
.wipe.is-out > i { transform: translateX(112%) skewX(-16deg); transition: transform .6s cubic-bezier(.77, 0, .18, 1) calc(var(--k) * .05s); }
.wipe.no-anim > i, .wipe.no-anim .wipe-label, .wipe.no-anim .wipe-lines { transition: none !important; }
.wipe-lines {
  position: absolute; inset: -30%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0deg .7deg, transparent .7deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 55%); mask: radial-gradient(circle, transparent 0 18%, #000 55%);
  opacity: 0; animation: twos .3s steps(1) infinite;
}
.wipe.is-cover .wipe-lines { opacity: 1; transition: opacity .1s .4s; }
.wipe-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; opacity: 0; scale: 1.6;
}
.wipe.is-cover .wipe-label { opacity: 1; scale: 1; transition: scale .35s var(--snap) .35s, opacity .05s .35s; }
.wipe.is-out .wipe-label { opacity: 0; scale: .9; transition: .15s; }
.wipe-kana { font-weight: 900; font-size: 18px; color: #FFD66B; letter-spacing: .2em; text-shadow: 2px 2px 0 var(--ink); }
.wipe-title {
  font-family: var(--font-pop); font-size: clamp(44px, 9vw, 130px); line-height: 1; color: #fff;
  -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill; text-shadow: .05em .05em 0 var(--pink), .09em .09em 0 var(--ink);
  padding: 0 .3em;
}
.wipe-sub {
  font-family: var(--font-pop); font-size: 13px; letter-spacing: .16em; color: #fff;
  background: var(--ink); padding: 7px 14px 5px; border-radius: 4px; box-shadow: 3px 3px 0 var(--pink);
}
.wipe-count { color: #FFD66B; display: inline-block; min-width: 3ch; text-align: right; }

/* The impact flash: one white frame when the title lands. */
.flash { position: fixed; inset: 0; z-index: 99; background: #fff; pointer-events: none; animation: flash .22s steps(2) forwards; }
@keyframes flash { 0% { opacity: .9; } 50% { opacity: .35; } 100% { opacity: 0; } }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .c-4, .c-5, .c-7 { grid-column: span 3; }
  .c-4:nth-of-type(5) { grid-column: span 6; }
  .h-md, .h-xl { --h: clamp(200px, 30vw, 320px); }
  .bar-keys { display: none; }
  .card[data-key]::before { display: none; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .c-4, .c-5, .c-7, .c-12, .c-4:nth-of-type(5) { grid-column: auto; }
  .h-md, .h-xl, .h-wide { --h: 56vw; }
  .bar-status .kana, .bar-status span:not(.kana) { display: none; }
  .bar-status::after { content: '8 ONLINE'; }
  .coin-wrap { display: none; }
  .title { font-size: 18.5vw; margin-top: 18px; }
  .kicker { font-size: 11px; gap: 8px; }
  .kicker .kana { display: none; }
  .hero { padding-bottom: 26vh; }
  .ribbon { font-size: 11px; padding: 8px 26px 6px; gap: 8px; }
  .meta { grid-template-columns: auto 1fr; }
  .open { grid-column: 1 / -1; justify-self: start; }
  .num { font-size: 30px; }
  .tapes { height: 160px; }
  .sec-head { gap: 14px; }
  .sec-num { -webkit-text-stroke-width: 4px; }
  .win-btns { margin-right: 10px; }
}
@media (hover: none) {
  .foil, .glare { display: none; }
}

/* ─── REDUCED MOTION — every pose is held, nothing travels ──────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .speedlines, .wipe-lines { animation: none !important; }
  .card { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPX6900 KIT — zine stickers, peeking Aeons, the reel, the sticker desk.
   Assets from AeonTerminal (public/stickers/packs/spx-zine, mascot, images).
   ═══════════════════════════════════════════════════════════════════════════ */

.bar-sp { height: 30px; width: auto; filter: drop-shadow(2px 2px 0 var(--pink)); }
.foot-sp { height: 34px; width: auto; }

/* ── Glitch sticker field (AeonTerminal boot screen, in cel) ─────────────── */
.stickerfield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.zs { position: absolute; width: var(--w); rotate: var(--tilt); }
.zs img { display: block; width: 100%; height: auto; }
.zs .z-main { position: relative; filter: drop-shadow(4px 4px 0 var(--ink)); }
.zs .z-g1, .zs .z-g2 { position: absolute; inset: 0; opacity: 0; }
.zs .z-g1 { filter: sepia(1) saturate(9) hue-rotate(290deg) brightness(1.1); }
.zs .z-g2 { filter: sepia(1) saturate(9) hue-rotate(150deg) brightness(1.15); }
.zs.in { animation: zsIn .5s steps(1, end) both; }
.zs.in .z-g1 { animation: zsG1 .5s steps(1, end); }
.zs.in .z-g2 { animation: zsG2 .5s steps(1, end); }
.zs.out { animation: zsOut .4s steps(1, end) both; }
.zs.out .z-g1 { animation: zsG1 .4s steps(1, end) reverse; }
.zs.out .z-g2 { animation: zsG2 .4s steps(1, end) reverse; }
.zs.idle { animation: zsBob 3.2s steps(4) infinite; }
@keyframes zsIn {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(-14px, 0) scale(1.18); }
  12% { opacity: 1; clip-path: inset(8% 0 62% 0); transform: translate(12px, -3px) scale(1.1); }
  26% { clip-path: inset(52% 0 18% 0); transform: translate(-9px, 3px) skewX(-10deg); }
  40% { clip-path: inset(0 0 44% 0); transform: translate(7px, 0) scale(1.05); }
  54% { clip-path: inset(30% 0 0 0); transform: translate(-5px, 1px) skewX(6deg); }
  70% { clip-path: inset(0 0 12% 0); transform: translate(3px, 0); }
  85%, 100% { opacity: 1; clip-path: inset(-20% -20% -20% -20%); transform: none; }
}
@keyframes zsOut {
  0% { opacity: 1; clip-path: inset(-20%); transform: none; }
  20% { clip-path: inset(0 0 30% 0); transform: translate(8px, 0) skewX(-8deg); }
  40% { clip-path: inset(40% 0 10% 0); transform: translate(-10px, 2px); }
  60% { clip-path: inset(10% 0 55% 0); transform: translate(12px, -2px) scale(1.08); }
  80% { opacity: 1; clip-path: inset(70% 0 5% 0); transform: translate(-6px, 0) scale(1.14); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); }
}
@keyframes zsG1 { 0% { opacity: .8; transform: translate(-9px, 2px); } 30% { opacity: .7; transform: translate(6px, -2px); } 60% { opacity: .6; transform: translate(-4px, 0); } 85%, 100% { opacity: 0; transform: none; } }
@keyframes zsG2 { 0% { opacity: .8; transform: translate(9px, -2px); } 30% { opacity: .7; transform: translate(-6px, 2px); } 60% { opacity: .6; transform: translate(4px, 0); } 85%, 100% { opacity: 0; transform: none; } }
@keyframes zsBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

/* ── Card stickers: slapped on as you hover, with the peeking Aeon ───────────
   Hidden at rest. On hover the Aeon rises on the LEFT of the top border and
   the sticker slaps onto the window's RIGHT edge, just under the title bar,
   hanging off the frame — so the two never meet and the window buttons stay
   clear. The hovered card is lifted above its neighbours so the overhang is
   never covered. */
.card:hover { z-index: 5; }
.card-sticker {
  position: absolute; z-index: 7; top: 30px; right: -28px; width: 118px; height: auto;
  rotate: var(--st, 8deg); pointer-events: none;
  filter: drop-shadow(4px 4px 0 var(--ink));
}
.card:nth-child(even) .card-sticker { --st: -7deg; }
.card:nth-child(3n) .card-sticker { --st: 12deg; }
.c-4 .card-sticker { width: 96px; top: 28px; right: -24px; }
.c-12 .card-sticker { width: 150px; top: 34px; right: -36px; }
.card.in > .card-sticker {
  opacity: 0; transform: scale(1.9) rotate(-22deg);
  transition: opacity .12s, transform .2s cubic-bezier(.4, 0, 1, 1);
}
.card.in:hover > .card-sticker {
  opacity: 1; transform: none;
  transition: opacity .06s .14s, transform .42s var(--snap) .14s;
}
@keyframes slap { from { opacity: 0; transform: scale(2.4) rotate(-24deg); } }

/* ── Peeking Aeon: rises over the window edge on hover ────────────────────── */
/* The clip box's bottom edge IS the window's outer border line (the card is
   the containing block, so 100% = inner border edge; + the 2.5px ink border).
   The picture's flat bottom sits exactly on that line, so she rises from
   behind the window frame. No overshoot easing here: an overshoot would lift
   her flat edge off the line for a few frames and show a gap. */
.peek {
  position: absolute; z-index: 8; left: 24%; bottom: calc(100% + 2.5px);
  width: 168px; height: 112px; overflow: hidden; pointer-events: none;
}
.peek img {
  display: block; width: 100%; height: auto; position: absolute; left: 0; bottom: 0;
  transform: translateY(101%); transition: transform .32s cubic-bezier(.4, 0, 1, 1);
}
.card:hover .peek img { transform: translateY(0); transition: transform .5s cubic-bezier(.22, 1, .36, 1) .08s; }
.c-4 .peek { width: 140px; height: 94px; left: 14%; }

/* ── The Aeons reel ───────────────────────────────────────────────────────── */
.reel { position: relative; z-index: 3; margin-top: 120px; }
.reel-head { width: min(1280px, calc(100% - 40px)); margin: 0 auto 30px; display: flex; align-items: center; gap: 22px; }
.reel-head h2 { font-family: var(--font-pop); font-weight: 400; color: var(--ink); font-size: clamp(30px, 4.6vw, 64px); line-height: .95; }
.reel-head h2 em {
  font-style: normal; color: #fff; padding: 0 .18em .02em; display: inline-block;
  background: var(--sunset); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  text-shadow: 0 3px 0 rgba(43, 26, 78, .4); rotate: 2deg;
}
.reel-pa { width: clamp(70px, 8vw, 110px); height: auto; filter: drop-shadow(4px 4px 0 var(--ink)); animation: paSpin 6.9s steps(1) infinite; }
@keyframes paSpin { 0%, 88% { rotate: 0deg; } 90% { rotate: -14deg; scale: 1.1; } 94% { rotate: 8deg; } 97%, 100% { rotate: 0deg; scale: 1; } }
.reel-logo { margin-left: auto; width: clamp(140px, 16vw, 230px); height: auto; rotate: 4deg; filter: drop-shadow(3px 3px 0 var(--ink)); }
.reel-row { overflow: hidden; padding: 16px 0 18px; }
.reel-track { display: flex; gap: 22px; width: max-content; will-change: transform; padding-left: 22px; }
.reel-track figure {
  position: relative; flex: none; width: 150px; margin: 0;
  background: #fff; border: var(--bd); border-radius: 6px; padding: 7px 7px 28px;
  box-shadow: 4px 4px 0 var(--ink); rotate: var(--r, 0deg);
  transition: transform .25s var(--snap), box-shadow .25s var(--snap);
}
.reel-track figure:hover { transform: translate(-3px, -10px) scale(1.07); box-shadow: 8px 10px 0 var(--pink); z-index: 2; }
.reel-track img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 3px; }
.reel-track figcaption {
  position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-family: var(--font-pop); font-size: 10px; letter-spacing: .08em; color: var(--ink);
}
.reel-track figcaption b { color: var(--pink); font-weight: 400; }
.reel-row:nth-child(odd) .reel-track figure:nth-child(4n+2) { --r: 3deg; }
.reel-track figure:nth-child(3n) { --r: -3deg; }

/* ── Sticker desk: drag them anywhere ─────────────────────────────────────── */
.desk { position: absolute; inset: -40px 0 100px; z-index: 4; pointer-events: none; }
.desk-item {
  position: absolute; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-drag: none;
  width: var(--w, 130px); height: auto; cursor: grab;
  rotate: var(--r, 0deg);
  filter: drop-shadow(4px 4px 0 var(--ink));
  transition: filter .15s, scale .2s var(--snap), rotate .3s var(--snap);
}
.desk-item.dragging { cursor: grabbing; scale: 1.1; rotate: calc(var(--r, 0deg) * .4); filter: drop-shadow(10px 12px 0 var(--ink)); }
.desk-item.dropped { animation: drop .3s var(--snap); }
@keyframes drop { 0% { scale: 1.1; } 40% { scale: .94; } 100% { scale: 1; } }
.js .desk-item { opacity: 0; }
.desk.in .desk-item { opacity: 1; animation: slap .45s var(--snap) backwards; animation-delay: calc(var(--k) * .07s); }
.desk-hint {
  position: absolute; right: 2%; top: 4%; font-family: var(--font-pop); font-size: 12px; letter-spacing: .1em; color: #fff;
  background: var(--ink); padding: 6px 10px 4px; border-radius: 4px; rotate: 6deg; box-shadow: 3px 3px 0 var(--pink);
}

/* ── Stickers slapped onto the cut ────────────────────────────────────────── */
.wipe-stickers img {
  position: absolute; width: clamp(110px, 13vw, 190px); height: auto;
  filter: drop-shadow(5px 5px 0 var(--ink)); opacity: 0; scale: 2.4; rotate: -20deg;
}
.wipe-stickers img:nth-child(1) { left: 9%; top: 14%; --r: -8deg; --k: 0; }
.wipe-stickers img:nth-child(2) { right: 8%; top: 20%; --r: 7deg; --k: 1; }
.wipe-stickers img:nth-child(3) { left: 16%; bottom: 10%; width: clamp(90px, 10vw, 150px); --r: 5deg; --k: 2; }
.wipe.is-cover .wipe-stickers img { opacity: 1; scale: 1; rotate: var(--r); transition: scale .32s var(--snap) calc(.45s + var(--k) * .16s), rotate .32s var(--snap) calc(.45s + var(--k) * .16s), opacity .01s calc(.45s + var(--k) * .16s); }
.wipe.is-out .wipe-stickers img { opacity: 0; transition: opacity .12s; }

/* ── Coins in the tapes ───────────────────────────────────────────────────── */
.tcoin {
  display: inline-block; width: .95em; height: .95em; margin-right: .6em; vertical-align: -.1em;
  background: url(coin.webp) center / contain no-repeat;
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: tcoin 1.9s steps(8) infinite;
}
@keyframes tcoin { to { transform: rotateY(360deg); } }

@media (max-width: 1080px) {
  .zs { --w: 96px !important; }
}
@media (max-width: 720px) {
  .stickerfield .zs:nth-child(n+3) { display: none; }
  .peek { display: none; }
  .card-sticker, .c-4 .card-sticker, .c-12 .card-sticker { width: 80px; top: 26px; right: -12px; }
  .reel-logo { display: none; }
  .reel-track figure { width: 118px; }
  .desk-item { --w: 92px !important; }
  .desk-hint { display: none; }
}
@media (hover: none) {
  .peek { display: none; }
  /* no hover on touch screens: the stickers simply stay on */
  .card.in > .card-sticker { opacity: 1; transform: none; animation: slap .5s var(--snap) .62s backwards; }
}

/* ── Card video loops ─────────────────────────────────────────────────────── */
.media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 30%);
  opacity: 0; transition: opacity .35s;
}
.card.playing:not(.gl-on) .media video { opacity: 1; }
.card.gl-on .media video { opacity: 0; }

/* ═══ CREDIT — "made with love by MikeFlipTheStocks" ══════════════════════════
   Small on purpose; the drama is all in the timing:
   1. the heart slams in from above, squashes on impact, a starburst flashes;
   2. the pill unfurls out of the heart (grid 0fr → 1fr), pushing it left;
   3. the name stamps in letter by letter, then a sunset sheen runs through it;
   4. idle: the heart beats on the 1.9s house beat (lub-dub, on twos), and
      every ~7s the letters do a wave while three kirakira fire.
   Hover lifts the plate and doubles the heartbeat; a click sprays hearts. */
.credit {
  position: fixed; z-index: 60; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 6px; height: 34px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink); text-decoration: none; cursor: pointer; user-select: none;
  transition: transform .2s var(--snap), box-shadow .2s var(--snap);
  isolation: isolate;
}
.credit:hover { transform: translate(-2px, -3px) rotate(-2deg); box-shadow: 5px 6px 0 var(--pink); }
/* scrolling: it drops below the edge (fast, ease-in); it comes back with the
   house snap once the page has been still for a moment */
.credit.go { transition: transform .2s var(--snap), box-shadow .2s var(--snap), translate .5s var(--snap), opacity .25s; }
.credit.go.scroll-hide {
  translate: 0 calc(100% + 26px); opacity: 0; pointer-events: none;
  transition: transform .2s var(--snap), box-shadow .2s var(--snap), translate .24s cubic-bezier(.4, 0, 1, 1), opacity .18s .06s;
}
.credit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.cr-heart { position: relative; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.cr-heart svg { width: 20px; height: 18px; overflow: visible; }
.cr-heart path { fill: var(--pink); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }

.cr-burst {
  position: absolute; z-index: 1; left: -10px; top: 50%; width: 52px; height: 52px; margin-top: -26px;
  background: #FFD66B;
  clip-path: polygon(50% 0, 61% 20%, 83% 9%, 80% 33%, 100% 40%, 84% 56%, 98% 76%, 74% 76%, 70% 100%, 52% 84%, 33% 100%, 27% 78%, 3% 80%, 15% 58%, 0 40%, 20% 32%, 15% 9%, 38% 20%);
  opacity: 0; scale: 0; pointer-events: none;
}

.cr-text { display: grid; grid-template-columns: 0fr; overflow: hidden; white-space: nowrap; }
.cr-text > * { min-width: 0; }
.cr-text { grid-auto-flow: column; align-items: baseline; }
.cr-inner { display: flex; align-items: baseline; gap: 5px; overflow: hidden; }
.cr-made { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); letter-spacing: .02em; }
.cr-name { font-family: var(--font-pop); font-size: 12px; letter-spacing: .01em; color: var(--ink); }
.cr-name .ch { display: inline-block; }

.cr-spark {
  position: absolute; z-index: 3; width: 12px; height: 12px; pointer-events: none;
  background: #fff; filter: drop-shadow(1.2px 1.2px 0 var(--ink));
  border-radius: 50%; width: 8px; height: 8px;
  opacity: 0;
}
.cr-spark.s1 { left: -6px; top: -8px; }
.cr-spark.s2 { left: 42%; top: -9px; width: 6px; height: 6px; background: #FFD66B; }
.cr-spark.s3 { right: -6px; bottom: -8px; background: var(--sky); }

/* ── the entrance ── */
.js .credit { opacity: 0; pointer-events: none; }
.credit.go { opacity: 1; pointer-events: auto; animation: crPlate .5s var(--snap) .32s backwards; }
@keyframes crPlate { from { box-shadow: 0 0 0 var(--ink); background: transparent; border-color: transparent; } }
.credit.go .cr-heart { animation: crDrop .62s cubic-bezier(.3, 0, .5, 1) both; }
@keyframes crDrop {
  0% { transform: translateY(-70px) scale(.6) rotate(-30deg); opacity: 0; }
  45% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
  55% { transform: scale(1.5, .6); }        /* impact squash */
  68% { transform: scale(.8, 1.3) translateY(-6px); }
  82% { transform: scale(1.12, .92); }
  100% { transform: none; }
}
.credit.go .cr-burst { animation: crBurst .5s steps(5) .26s; }
@keyframes crBurst {
  0% { opacity: 1; scale: .2; rotate: 0deg; }
  40% { opacity: 1; scale: 1.25; rotate: 25deg; }
  100% { opacity: 0; scale: 1.7; rotate: 50deg; }
}
.credit.go .cr-text { grid-template-columns: 1fr; transition: grid-template-columns .55s cubic-bezier(.77, 0, .18, 1) .42s; }
.js .cr-made, .js .credit:not(.go) .cr-name .ch { opacity: 0; }
.credit.go .cr-made { opacity: 1; transition: opacity .2s .75s; }
@keyframes crStamp { 0% { opacity: 0; transform: translateY(-9px) scale(1.9) rotate(-18deg); } 100% { opacity: 1; transform: none; } }
.credit.go .cr-name .ch { animation: crStamp .34s var(--snap) both calc(.85s + var(--i) * .035s), crSheen .5s steps(1) calc(1.7s + var(--i) * .045s); }
@keyframes crSheen { 0% { color: var(--a); } 33% { color: var(--b); } 66% { color: var(--c); } 100% { color: var(--ink); } }

/* ── idle: the heartbeat, on the house beat, on twos ── */
.credit.idle .cr-heart svg { animation: crBeat 1.9s steps(1) infinite; }
@keyframes crBeat { 0% { scale: 1; } 6% { scale: 1.28; } 12% { scale: 1; } 18% { scale: 1.18; } 24%, 100% { scale: 1; } }
.credit.idle:hover .cr-heart svg { animation-duration: .95s; }
.credit.wave .cr-name .ch { animation: crWave .5s var(--snap) both calc(var(--i) * .03s), crSheen .5s steps(1) calc(var(--i) * .045s); }
@keyframes crWave { 0%, 100% { transform: none; } 40% { transform: translateY(-5px) rotate(-6deg); } }
.credit.wave .cr-spark { animation: crKira .62s steps(4) both; }
.credit.wave .cr-spark.s2 { animation-delay: .09s; }
.credit.wave .cr-spark.s3 { animation-delay: .18s; }
.credit.go .cr-spark { animation: crKira .62s steps(4) 1.5s both; }
.credit.go .cr-spark.s2 { animation-delay: 1.59s; }
.credit.go .cr-spark.s3 { animation-delay: 1.68s; }
@keyframes crKira { 0% { opacity: 0; scale: 0; rotate: 0deg; } 40% { opacity: 1; scale: 1.3; rotate: 45deg; } 100% { opacity: 0; scale: 0; rotate: 90deg; } }
.credit.idle:hover .cr-name .ch { animation: crWave .5s var(--snap) both calc(var(--i) * .025s), crSheen .5s steps(1) calc(var(--i) * .035s); }

.cr-pop {
  position: fixed; z-index: 92; pointer-events: none; width: 14px; height: 13px; margin: -6px 0 0 -7px;
  background: var(--pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath d='M16 28.5S1.5 19.6 1.5 9.4A7.9 7.9 0 0 1 16 5a7.9 7.9 0 0 1 14.5 4.4C30.5 19.6 16 28.5 16 28.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath d='M16 28.5S1.5 19.6 1.5 9.4A7.9 7.9 0 0 1 16 5a7.9 7.9 0 0 1 14.5 4.4C30.5 19.6 16 28.5 16 28.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* keep the footer clear of the badge */
.foot { padding-bottom: 84px; }
@media (max-width: 720px) {
  .credit { right: 10px; bottom: 10px; height: 30px; padding: 4px 10px 4px 5px; gap: 5px; }
  .cr-made { font-size: 9.5px; }
  .cr-name { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cr-made, .js .cr-name .ch { opacity: 1; }
  .cr-text { grid-template-columns: 1fr; }
}

/* While a sticker is held, the sticker IS the cursor: the GRAB burst hides
   and pops back on drop. */
.has-cursor .desk-item { cursor: none; }
.cursor .cur-ring, .cursor .cur-dot { transition: opacity .1s; }
.is-grabbing .cursor .cur-ring, .is-grabbing .cursor .cur-dot { opacity: 0; }
.cursor.regrab .cur-ring { animation: regrab .38s var(--snap); }
@keyframes regrab { 0% { scale: .2; } 100% { scale: 1; } }
@media (max-width: 720px) {
  /* phones: stickers live in the band above the title — cap the height so tall die-cuts never reach the text */
  .zs { width: auto !important; }
  .zs .z-main { width: auto; max-width: 96px; max-height: 62px; }
  .zs .z-g1, .zs .z-g2 { width: 100%; height: 100%; object-fit: contain; }
}
