/* ==========================================================================
   theluck3y.com — luck3yApps showcase
   ========================================================================== */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #0b0a12; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #f6f1e7; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #a49fb3; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #f5c86b; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,.12); }

:root {
  --bg: #0b0a12; --fg: #f6f1e7; --muted: #a49fb3; --accent: #f5c86b; --line: rgba(255,255,255,.12);
  --gold-1: #ffe7a3; --gold-2: #f5b94a; --gold-3: #d98f2b;
  --foil: linear-gradient(100deg, #ffe7a3 0%, #f5b94a 22%, #fff3c9 40%, #f0a93a 58%, #ffd98a 78%, #e39a35 100%);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body[data-theme="hero"],
body[data-theme="studio"] { --bg: #0b0a12; --fg: #f6f1e7; --muted: #a49fb3; --accent: #f5c86b; --line: rgba(255,255,255,.12); }
body[data-theme="sfs"]    { --bg: #fbf6ea; --fg: #1d1b2e; --muted: #5c5870; --accent: #f0564a; --line: rgba(29,27,46,.14); }
body[data-theme="alc"]    { --bg: #0d0a17; --fg: #f3ead6; --muted: #b3a88f; --accent: #f2b84b; --line: rgba(242,184,75,.2); }
body[data-theme="blob"]   { --bg: #0f1140; --fg: #ecf7ff; --muted: #a9b4e6; --accent: #2ff3e0; --line: rgba(47,243,224,.2); }
body[data-theme="tt"]     { --bg: #fbf8f1; --fg: #1f2430; --muted: #5d6372; --accent: #ff5a5f; --line: rgba(31,36,48,.14); }
body[data-theme="party"]  { --bg: #ffc93c; --fg: #1c1033; --muted: #4b3a63; --accent: #7b4dff; --line: rgba(28,16,51,.18); }
body[data-theme="af"]     { --bg: #07090f; --fg: #eef1f7; --muted: #8b95a9; --accent: #2de2c4; --line: rgba(45,226,196,.18); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: --bg .9s var(--ease), --fg .9s var(--ease), --muted .9s var(--ease), --accent .9s var(--ease), --line .9s var(--ease);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.anchor { position: relative; top: -10px; }
[hidden] { display: none !important; }

/* ---------- ambient layers ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.spot {
  position: fixed; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
  opacity: .55; transform: translate3d(50vw, 40vh, 0); transition: opacity .8s;
  mix-blend-mode: screen;
}
body[data-theme="sfs"] .spot, body[data-theme="party"] .spot, body[data-theme="tt"] .spot { opacity: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-6%,4%)} 40%{transform:translate(4%,-8%)} 60%{transform:translate(-9%,2%)} 80%{transform:translate(7%,7%)} 100%{transform:translate(0,0)} }
main, .foot { position: relative; z-index: 1; overflow-x: clip; }

/* ---------- intro (slot reel) ---------- */
.intro { display: none; }
html.js .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: #0b0a12; color: #f6f1e7;
}
html.no-anim .intro, html.intro-done .intro { display: none; }
.intro__word { display: flex; align-items: center; font-weight: 800; font-size: clamp(3.4rem, 13vw, 11rem); line-height: 1; letter-spacing: -.05em; }
.intro__word > span { display: inline-block; }
.reel { height: 1em; overflow: hidden; position: relative; padding: 0 .02em; }
.reel__strip { display: flex; flex-direction: column; will-change: transform; }
.reel__strip span { height: 1em; line-height: 1; text-align: center; }
.reel__strip span:last-child { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__bar { position: absolute; bottom: 12vh; left: 50%; width: 160px; height: 2px; margin-left: -80px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--foil); transform-origin: left; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); color: #fff; mix-blend-mode: difference;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 1.2rem; }
.brand__mark { width: 30px; height: 30px; color: #fff; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg) scale(1.1); }
.brand__word b { font-weight: 800; font-style: normal; }
.brand__word span { font-weight: 400; opacity: .6; margin-left: 1px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-weight: 500; font-size: .98rem; }
.nav__links a { position: relative; padding: 6px 0; display: inline-block; }
.nav__links a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 18px !important; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__progress i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- shared type ---------- */
.eyebrow { display: flex; width: fit-content; align-items: center; gap: 10px; margin: 0 0 22px; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } }
.foil {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 6s linear infinite; padding-right: .08em;
}
@keyframes foil { to { background-position: -220% 0; } }

/* split-text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; white-space: nowrap; }
.split .c { display: inline-block; will-change: transform; }
.split.is-done .w, html.no-anim .split .w { overflow: visible; }
.split.is-done .c { will-change: auto; }
html.js:not(.no-anim) .split .c { transform: translateY(115%); }
html.js:not(.no-anim) .split:not([data-split]) { visibility: hidden; }
html.js:not(.no-anim) .hand:not(.is-dealt) .card { opacity: 0; }
html.js:not(.no-anim) .reveal { opacity: 0; transform: translateY(34px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 0; position: relative; isolation: isolate; white-space: nowrap;
  transition: box-shadow .4s var(--ease), background-color .4s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--foil); background-size: 200% 100%; color: #1c1206; box-shadow: 0 10px 40px -10px rgba(245,185,74,.6), inset 0 1px 0 rgba(255,255,255,.5); animation: foil 7s linear infinite; }
.btn--gold:hover { box-shadow: 0 14px 50px -8px rgba(245,185,74,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn--ink { background: #1c1033; color: #ffc93c; }
.btn--neon { background: linear-gradient(90deg, #2de2c4, #8b7bff); color: #07090f; box-shadow: 0 10px 50px -10px rgba(45,226,196,.6); }
.btn--neon:hover { box-shadow: 0 16px 60px -8px rgba(139,123,255,.8); }

.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 16px; border-radius: 16px;
  background: var(--fg); color: var(--bg); line-height: 1.1; font-weight: 700; font-size: 1.05rem;
  transition: box-shadow .4s;
}
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: .66rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store:hover { box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--fg) 60%, transparent); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid var(--line); padding: 4px 0; transition: border-color .3s; }
.textlink svg { width: 16px; height: 16px; }
.textlink:hover { border-color: var(--fg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: 130px var(--pad) 90px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px;
}
.hero::before {
  content: ''; position: absolute; right: -10%; top: 8%; width: min(900px, 70vw); aspect-ratio: 1; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(245,185,74,.18), transparent 70%), conic-gradient(from 0deg, rgba(138,92,255,.0), rgba(138,92,255,.22), rgba(47,243,224,.12), rgba(240,86,74,.16), rgba(245,185,74,.2), rgba(138,92,255,.0));
  border-radius: 50%; filter: blur(60px); animation: spin 30s linear infinite;
}
.hero__title { margin: 0; font-size: clamp(3.1rem, 6.7vw, 7.6rem); line-height: .9; letter-spacing: -.055em; font-weight: 800; }
.hero__title .line { display: block; }
.hero__title .foil { font-size: 1.08em; }
.hero__sub { max-width: 34rem; margin: 30px 0 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* the hand of cards */
.hand { --cw: clamp(128px, 12vw, 176px); position: relative; height: clamp(380px, 44vw, 580px); }
.card {
  --spread: 7.5deg; --gap: 34px; --lift: 0px;
  position: absolute; left: 50%; bottom: 12%; width: var(--cw); margin-left: calc(var(--cw) / -2); aspect-ratio: 5 / 7.2;
  transform-origin: 50% 165%;
  transform: translateX(calc((var(--i) - 2.5) * var(--gap))) rotate(calc((var(--i) - 2.5) * var(--spread))) translateY(var(--lift));
  transition: transform .7s var(--ease);
  z-index: calc(1 + var(--i));
}
.hand.is-dealing .card { transition: none; }
@media (hover: hover) {
  .hand:hover .card { --spread: 8.5deg; --gap: 42px; }
  .card:hover { --lift: -56px; z-index: 20; }
}
.card__in {
  --rx: 0deg; --ry: 0deg; --mx: 50; --my: 50; --hov: 0;
  position: absolute; inset: 0; border-radius: 18px; padding: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c1) 38%, transparent), transparent 70%),
    linear-gradient(165deg, #1d1a2b, #110f1a 70%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s;
  color: #f6f1e7;
}
.card__in::before { content: ''; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--c1) 55%, transparent); pointer-events: none; }
.card:hover .card__in { box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 50px -10px var(--c1); }
.card__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; padding: 2px 4px 8px; }
.card__top span:last-child { color: var(--c1); }
.card__art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--art); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.card__art .af-mark { width: 62%; height: 62%; filter: drop-shadow(0 8px 30px rgba(45,226,196,.5)); }
.card h3 { margin: 10px 4px 2px; font-size: calc(var(--cw) * .085); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.card p { margin: 0 4px; font-size: calc(var(--cw) * .058); color: #b9b3c7; line-height: 1.3; }
.card__foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 0 4px 2px; color: #f6f1e7; }
.card__foot svg { width: 16px; height: 16px; }
.tag { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c1) 22%, transparent); color: var(--c1); }
.card__foil, .card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.card__foil {
  background:
    repeating-linear-gradient(115deg, #ff77c8 0%, #ffe37a 7%, #79f2ff 14%, #b58cff 21%, #ff77c8 28%),
    repeating-linear-gradient(25deg, rgba(255,255,255,.0) 0 6px, rgba(255,255,255,.25) 6px 7px);
  background-size: 400% 400%, 100% 100%;
  background-position: calc(var(--mx) * 1%) calc(var(--my) * 1%), 0 0;
  mix-blend-mode: color-dodge; opacity: calc(.10 + var(--hov) * .38); filter: brightness(.75) contrast(1.6) saturate(1.2);
  transition: opacity .4s;
}
.card__glare { background: radial-gradient(circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgba(255,255,255,.55), rgba(255,255,255,0) 48%); mix-blend-mode: overlay; opacity: var(--hov); transition: opacity .4s; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; will-change: transform; }
.marquee__track span { font-size: clamp(2.6rem, 7vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--fg); transition: color .4s; }
.marquee__track span:nth-of-type(odd) { color: var(--fg); -webkit-text-stroke: 0; }
.marquee__track svg { width: clamp(28px, 4vw, 54px); height: clamp(28px, 4vw, 54px); color: var(--accent); flex: none; animation: spin 10s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   CHAPTERS (shared)
   ========================================================================== */
.chapter { position: relative; min-height: 100svh; padding: clamp(110px, 16vh, 190px) var(--pad); overflow: clip; }
.chapter__num {
  position: absolute; top: clamp(40px, 8vh, 90px); right: calc(var(--pad) - .06em);
  font-size: clamp(8rem, 26vw, 24rem); font-weight: 800; line-height: .8; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; user-select: none;
}
.chapter__grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.chapter__grid--flip > :first-child { order: 2; }
.chapter__grid--wide { grid-template-columns: .85fr 1.15fr; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker img, .kicker__svg { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(0,0,0,.5); }
.chapter__title { margin: 0 0 26px; font-size: clamp(3rem, 7.2vw, 6.8rem); line-height: .92; letter-spacing: -.05em; font-weight: 800; }
.chapter__title > .split { display: inline-block; }
.lede { max-width: 36rem; margin: 0 0 26px; font-size: clamp(1.05rem, 1.35vw, 1.24rem); color: var(--muted); }
.feats { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; max-width: 36rem; }
.feats li { position: relative; padding-left: 30px; }
.feats li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); transform: rotate(45deg) scale(.7); }
.feats b { font-weight: 800; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.phone { position: relative; width: clamp(220px, 23vw, 310px); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 9px; background: #14121c; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone > video, .phone > img, .phone .slides { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; overflow: hidden; background: #000; }

/* ==========================================================================
   01 STICK FIGURE STORYTIME
   ========================================================================== */
.sfs .paper-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(29,27,46,.22) 1.3px, transparent 1.6px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  opacity: 0; transition: opacity 1s var(--ease);
}
body[data-theme="sfs"] .sfs .paper-grid { opacity: 1; }
.sfs .chapter__title { font-weight: 800; }
.marker { position: relative; color: #f0564a; }
.scribble { position: absolute; left: 0; right: 0; bottom: -.06em; width: 100%; height: .28em; overflow: visible; }
.scribble path { fill: none; stroke: #2a8cf0; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s .5s var(--ease); }
.is-in .scribble path, html.no-anim .scribble path { stroke-dashoffset: 0; }
.sfs .feats li::before { background: none; border: 3px solid #1d1b2e; border-radius: 50%; width: 13px; height: 13px; transform: none; top: .42em; }
.sfs .feats li:nth-child(2)::before { border-color: #f0564a; }
.sfs .feats li:nth-child(3)::before { border-color: #2a8cf0; }
.sfs .feats li:nth-child(4)::before { border-color: #ffb020; }
.sfs .store { border-radius: 14px; box-shadow: 4px 4px 0 #f0564a; }
.sfs .store:hover { box-shadow: 7px 7px 0 #f0564a; }

.sfs__stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone--light { background: #1d1b2e; box-shadow: 14px 14px 0 #1d1b2e, 0 40px 80px -30px rgba(29,27,46,.4); transform: rotate(2deg); }
.bubble {
  position: absolute; top: 9%; left: -2%; z-index: 3; max-width: 250px; padding: 14px 18px; border-radius: 22px;
  background: #fff; color: #1d1b2e; border: 3px solid #1d1b2e; box-shadow: 6px 6px 0 #1d1b2e;
  font-weight: 700; font-size: 1.05rem; line-height: 1.3; transform: rotate(-4deg);
}
.bubble::after { content: ''; position: absolute; right: 34px; bottom: -16px; width: 22px; height: 22px; background: #fff; border-right: 3px solid #1d1b2e; border-bottom: 3px solid #1d1b2e; transform: skewY(30deg) rotate(30deg); }
.caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: #f0564a; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle--jack { right: 0; bottom: 14%; width: clamp(90px, 9vw, 130px); animation: hop .9s var(--ease) infinite; }
.sf__arm, .sf__leg { transform-box: view-box; }
.sf__arm--l { transform-origin: 60px 60px; animation: armL .9s ease-in-out infinite; }
.sf__arm--r { transform-origin: 60px 60px; animation: armR .9s ease-in-out infinite; }
.sf__leg--l { transform-origin: 60px 99px; animation: legL .9s ease-in-out infinite; }
.sf__leg--r { transform-origin: 60px 99px; animation: legR .9s ease-in-out infinite; }
@keyframes armL { 50% { transform: rotate(80deg); } }
@keyframes armR { 50% { transform: rotate(-80deg); } }
@keyframes legL { 50% { transform: rotate(-18deg); } }
@keyframes legR { 50% { transform: rotate(18deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.doodle--pow { left: -4%; bottom: 6%; width: clamp(120px, 13vw, 180px); animation: pow 3.2s var(--ease) infinite; transform-origin: 50% 50%; }
@keyframes pow { 0%, 8% { transform: scale(0) rotate(-30deg); } 18% { transform: scale(1.15) rotate(6deg); } 24%, 70% { transform: scale(1) rotate(-4deg); } 80%, 100% { transform: scale(0) rotate(20deg); } }
.doodle--stars { right: 6%; top: 6%; width: 90px; animation: wig 1.6s ease-in-out infinite; }
@keyframes wig { 50% { transform: rotate(8deg) scale(1.08); } }

.filmstrip { position: relative; margin-top: clamp(60px, 10vh, 120px); }
.filmstrip__track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding: 20px var(--pad); will-change: transform; }
.filmstrip figure { margin: 0; width: clamp(160px, 17vw, 236px); border-radius: 26px; overflow: hidden; border: 3px solid #1d1b2e; box-shadow: 8px 8px 0 #1d1b2e; background: #fff; transition: transform .5s var(--ease); }
.filmstrip figure:nth-child(odd) { transform: rotate(-2deg); }
.filmstrip figure:nth-child(even) { transform: rotate(2deg) translateY(24px); }
.filmstrip figure:hover { transform: rotate(0) translateY(-10px) scale(1.03); }
.filmstrip img { width: 100%; height: auto; aspect-ratio: 640 / 1391; object-fit: cover; }

/* ==========================================================================
   02 ALCHEMONS
   ========================================================================== */
.alc::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 70% 40%, rgba(242,184,75,.14), transparent 70%), radial-gradient(40% 40% at 20% 80%, rgba(138,92,255,.16), transparent 70%); }
.alc__logo { width: min(520px, 100%); height: auto; filter: drop-shadow(0 0 30px rgba(242,184,75,.35)); }
.alc__tag { margin: -6px 0 18px; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: #f2b84b; line-height: 1.1; }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8a5cff; box-shadow: 0 0 12px #8a5cff; animation: pulse 2s infinite; }

.alc__altar { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; color: #f2b84b; }
.circle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(242,184,75,.6)); }
.circle--outer { opacity: .55; animation: spin 80s linear infinite; }
.circle--inner { inset: 18%; width: 64%; height: 64%; opacity: .7; animation: spin 50s linear infinite reverse; }
.runes text { font-size: 22px; }
.altar__glow { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.55), rgba(242,184,75,.15) 45%, transparent 70%); filter: blur(10px); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.altar__mons { position: absolute; inset: 0; }
.mon { --size: clamp(84px, 9vw, 128px); position: absolute; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); padding: 0; border: 0; background: none; animation: float 3.6s ease-in-out var(--d) infinite; }
.mon:nth-child(1) { left: 50%; top: 20%; }
.mon:nth-child(2) { left: 81%; top: 52%; }
.mon:nth-child(3) { left: 50%; top: 80%; }
.mon:nth-child(4) { left: 19%; top: 52%; }
.mon::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 2%; height: 10%; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(4px); z-index: -1; animation: shadow 3.6s ease-in-out var(--d) infinite; }
.sprite { display: block; width: 100%; height: 100%; background: var(--sheet) 0 0 / 400% 100% no-repeat; animation: sprite .72s steps(4) infinite; filter: drop-shadow(0 0 14px rgba(255,220,150,.35)); transition: transform .5s var(--ease); }
.mon:hover .sprite { transform: translateY(-16px) scale(1.12); }
@keyframes sprite { to { background-position: 133.333% 0; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow { 50% { transform: scaleX(.75); opacity: .6; } }

.realms { position: relative; margin-top: clamp(60px, 10vh, 120px); }
.realms__label { max-width: var(--max); margin: 0 auto 22px; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.realms__ring { display: flex; gap: clamp(16px, 2vw, 26px); width: max-content; padding: 10px var(--pad); will-change: transform; }
.realms figure { position: relative; margin: 0; width: clamp(190px, 21vw, 290px); aspect-ratio: 608 / 760; border-radius: 22px; overflow: hidden; border: 1px solid rgba(242,184,75,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transition: transform .6s var(--ease), border-color .4s; }
.realms figure:hover { transform: translateY(-12px) rotate(-1deg); border-color: #f2b84b; }
.realms img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.realms figure:hover img { transform: scale(1.06); }
.realms figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(8,6,14,.85)); font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: #f3ead6; }

/* ==========================================================================
   03 COZY BLOB BREEDER
   ========================================================================== */
.blob::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 55% at 25% 50%, rgba(255,111,200,.22), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(47,243,224,.12), transparent 70%); }
.glow { color: #2ff3e0; }
.glow .c { transition: text-shadow 1.2s var(--ease); }
.glow.is-done .c, html.no-anim .glow .c { text-shadow: 0 0 22px rgba(47,243,224,.55), 0 0 60px rgba(47,243,224,.35); }
.rarities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.rarities span { padding: 7px 14px; border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--r); background: color-mix(in srgb, var(--r) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 45%, transparent); }
.rarities .mythic { background: linear-gradient(90deg, #ff6fd8, #8a5cff, #2ff3e0, #ff6fd8); background-size: 300% 100%; color: #10123d; box-shadow: 0 0 24px rgba(255,111,216,.45); animation: foil 4s linear infinite; font-weight: 600; }
.blob .store { background: #ecf7ff; color: #0f1140; }

.blob__stage { position: relative; display: grid; grid-template-columns: auto auto; grid-template-areas: "lamp phone" "hatch hatch"; justify-content: center; align-items: end; gap: 28px clamp(20px, 3vw, 44px); }
.lamp { --lava: #ff6fc8; grid-area: lamp; position: relative; width: clamp(150px, 15vw, 210px); display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 0 60px color-mix(in srgb, var(--lava) 45%, transparent)); transition: filter 1s; }
.lamp__cap { width: 46%; height: 52px; background: linear-gradient(90deg, #1b1d3c, #4b4f8a 45%, #1b1d3c); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); border-radius: 10px 10px 0 0; }
.lamp__glass {
  position: relative; width: 100%; height: clamp(300px, 30vw, 420px); overflow: hidden;
  clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, var(--lava) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--lava) 18%, #170d45), color-mix(in srgb, var(--lava) 34%, #2a0f50));
  transition: background 1s;
}
.lamp__goo { position: absolute; inset: 0; filter: url(#goo); }
.lamp__goo i { position: absolute; bottom: 0; left: var(--x); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; background: color-mix(in srgb, var(--lava) 80%, #fff); animation: lava var(--t) ease-in-out var(--d) infinite; transition: background 1s; }
.lamp__goo .pool { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 90px; border-radius: 50%; background: var(--lava); transition: background 1s; }
.lamp__goo .pool--top { top: -60px; bottom: auto; height: 80px; }
@keyframes lava { 0% { transform: translateY(30px) scale(1); } 25% { transform: translateY(-120px) scale(.85, 1.2); } 50% { transform: translateY(-330px) scale(1.1, .95); } 75% { transform: translateY(-150px) scale(.9, 1.15); } 100% { transform: translateY(30px) scale(1); } }
.lamp__shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 18%, rgba(255,255,255,.22) 26%, transparent 34%, transparent 70%, rgba(255,255,255,.08) 76%, transparent 82%); }
.lamp__base { width: 100%; height: 86px; background: linear-gradient(90deg, #15173a, #50548f 45%, #15173a); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.phone--dark { grid-area: phone; margin-bottom: 30px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(47,243,224,.18), 0 0 70px -20px rgba(47,243,224,.4); }
.slides { position: relative; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 3s var(--ease); }
.slides img.is-on { opacity: 1; transform: scale(1); }

.hatch { grid-area: hatch; justify-self: stretch; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 20px; padding: 18px 22px; border-radius: 26px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-height: 150px; }
.egg { grid-row: 1 / 3; position: relative; width: 96px; height: 120px; padding: 0; border: 0; background: none; animation: eggIdle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.egg svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(185,140,255,.45)); }
.egg__crack { stroke-dasharray: 1; stroke-dashoffset: 1; }
.egg.is-cracking { animation: eggShake .12s linear infinite; }
.egg.is-cracking .egg__crack { stroke-dashoffset: 0; transition: stroke-dashoffset .6s; }
.egg.is-open { animation: none; transform: scale(0); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
@keyframes eggIdle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-3deg); } }
@keyframes eggShake { 0% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } 100% { transform: rotate(-6deg); } }
.baby { grid-row: 1 / 3; grid-column: 1; width: 96px; height: 96px; display: none; place-items: center; }
.baby.is-on { display: grid; }
.baby__body { position: relative; width: 86px; height: 80px; border-radius: 52% 48% 46% 54% / 58% 56% 44% 42%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.75), transparent 28%), var(--hue); box-shadow: 0 0 34px var(--hue), inset 0 -10px 18px rgba(0,0,0,.18); animation: wobble 2.2s ease-in-out infinite, pop .6s var(--ease); }
.baby__body::before, .baby__body::after { content: ''; position: absolute; top: 34%; width: 15px; height: 17px; border-radius: 50%; background: #fff; box-shadow: inset 4px 3px 0 1px #0f1140; }
.baby__body::before { left: 26%; }
.baby__body::after { right: 26%; }
.baby__mouth { position: absolute; left: 50%; top: 62%; width: 16px; height: 8px; margin-left: -8px; border-bottom: 3px solid #0f1140; border-radius: 0 0 12px 12px; }
@keyframes wobble { 0%, 100% { border-radius: 52% 48% 46% 54% / 58% 56% 44% 42%; transform: translateY(0) scale(1, 1); } 50% { border-radius: 46% 54% 52% 48% / 52% 60% 40% 48%; transform: translateY(-6px) scale(.96, 1.05); } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.hatch__hint { grid-column: 2; margin: 0; font-weight: 600; font-size: 1.05rem; }
.hatch__res { grid-column: 2; margin: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hatch__res b { color: var(--r); text-shadow: 0 0 14px var(--r); }

/* ==========================================================================
   04 PARTY AI
   ========================================================================== */
.party .chapter__num { -webkit-text-stroke-color: rgba(28,16,51,.16); }
.chunky { font-size: clamp(4rem, 10vw, 9.6rem); color: #1c1033; text-shadow: 3px 3px 0 #ffc93c, 7px 7px 0 #7b4dff, 10px 10px 0 #1c1033; }
.chunky .c { transition: transform .3s var(--ease); }
.chunky .c:hover { transform: translateY(-10px) rotate(-6deg) !important; }
.party .feats li::before { background: #7b4dff; border-radius: 50%; transform: none; width: 12px; height: 12px; box-shadow: 2px 2px 0 #1c1033; }
.party .store { background: #1c1033; color: #fff4dd; box-shadow: 5px 5px 0 #7b4dff; }
.party .store:hover { box-shadow: 8px 8px 0 #7b4dff; }

.party__stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.bot { width: clamp(170px, 18vw, 250px); margin-bottom: -26px; position: relative; z-index: 2; overflow: visible; animation: botBob 3s ease-in-out infinite; }
@keyframes botBob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.bot__antenna { transform-origin: 152px 70px; transform-box: view-box; }
.bot__head { transform-box: view-box; transform-origin: 150px 270px; }
.game { position: relative; width: min(520px, 100%); padding: 40px 24px 24px; border-radius: 28px; background: #fff4dd; color: #1c1033; border: 4px solid #1c1033; box-shadow: 12px 12px 0 #1c1033; }
.game__head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.game__prompt { margin: 10px 0 2px; font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.game__ask { margin: 0 0 16px; color: #4b3a63; font-size: .95rem; }
.game__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ans { position: relative; text-align: left; padding: 14px 14px 16px; min-height: 96px; border-radius: 16px; border: 3px solid #1c1033; background: var(--note); font-size: .95rem; font-weight: 600; line-height: 1.3; box-shadow: 4px 4px 0 #1c1033; transition: transform .25s var(--ease), box-shadow .25s; }
.ans:nth-child(1) { --note: #c3f0ff; transform: rotate(-1deg); }
.ans:nth-child(2) { --note: #ffd1e1; transform: rotate(1deg); }
.ans:nth-child(3) { --note: #d9ccff; transform: rotate(1.2deg); }
.ans:nth-child(4) { --note: #c9f7d6; transform: rotate(-1.4deg); }
.ans:hover:not(:disabled) { transform: translateY(-4px) rotate(0); box-shadow: 7px 7px 0 #1c1033; }
.ans:disabled { cursor: default; }
.ans.is-dim { opacity: .45; }
.ans .stamp { position: absolute; right: -8px; top: -12px; padding: 4px 10px; border-radius: 8px; border: 2.5px solid #1c1033; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transform: rotate(8deg) scale(0); animation: stamp .45s var(--ease) forwards; }
.stamp--ai { background: #7b4dff; color: #fff; }
.stamp--human { background: #fff; color: #1c1033; }
@keyframes stamp { to { transform: rotate(8deg) scale(1); } }
.game__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-top: 16px; }
.game__foot p { margin: 0; font-weight: 700; }
.game__foot .btn { padding: 11px 18px; font-size: .92rem; }

/* ==========================================================================
   05 TAPTHAT
   ========================================================================== */
.tt {
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ccircle cx='18' cy='18' r='9' fill='%23ffd84d' stroke='%231f2430' stroke-width='3'/%3E%3Ccircle cx='18' cy='18' r='15' fill='none' stroke='%231f2430' stroke-width='2' stroke-dasharray='4 4'/%3E%3C/svg%3E") 18 18, pointer;
}
.tt a, .tt button { cursor: pointer; }
.tt__paper {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease);
  background-image:
    linear-gradient(90deg, transparent calc(var(--pad) * .6), rgba(255,90,95,.5) calc(var(--pad) * .6), rgba(255,90,95,.5) calc(var(--pad) * .6 + 2px), transparent calc(var(--pad) * .6 + 2px)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(90,140,210,.24) 35px 36px);
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
body[data-theme="tt"] .tt__paper { opacity: 1; }
.tt__fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.tt .chapter__grid { z-index: 2; }
.tt__title { font-family: 'Gochi Hand', var(--display); font-weight: 400; letter-spacing: 0; font-size: clamp(4.4rem, 11vw, 10.5rem); line-height: .9; }
.tt__tap { position: relative; display: inline-block; color: #1fbfa9; -webkit-text-stroke: 2px #1f2430; paint-order: stroke fill; }
.tt__tap .c { -webkit-text-stroke: inherit; }
.squiggle { position: absolute; left: 2%; width: 96%; bottom: -.02em; height: .16em; overflow: visible; }
.squiggle path { fill: none; stroke: #ff5a5f; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s .4s var(--ease); }
.is-in .squiggle path, html.no-anim .squiggle path { stroke-dashoffset: 0; }
.tt__tag { margin: -4px 0 18px; font-family: 'Gochi Hand', var(--display); font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.1; }
.tt__tag mark { background: linear-gradient(transparent 55%, #ffd84d 55%, #ffd84d 92%, transparent 92%); color: #ff5a5f; padding: 0 .1em; }
.tt .feats li::before { width: 16px; height: 16px; top: .32em; transform: none; border-radius: 0; background: #ffd84d; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(1.5px 1.5px 0 #1f2430); }
.tt .store { background: #1f2430; color: #fbf8f1; box-shadow: 4px 4px 0 #ffd84d; border: 2px solid #1f2430; }
.tt .store:hover { box-shadow: 7px 7px 0 #ffd84d; }

.tt__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tt__hud { display: flex; gap: 4px; padding: 8px 10px; border-radius: 20px; background: #fff; border: 3px solid #1f2430; box-shadow: 5px 5px 0 #1f2430; transform: rotate(-1.5deg); position: relative; z-index: 3; }
.tt__hud div { min-width: 86px; padding: 2px 12px; text-align: center; }
.tt__hud div + div { border-left: 2px dashed rgba(31,36,48,.25); }
.tt__hud small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #5d6372; }
.tt__hud b { display: inline-block; font-family: 'Patrick Hand', var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1.05; color: #1f2430; }
.tt__hud b.bump { animation: bump .25s var(--ease); }
.tt__hud div:nth-child(2) b { color: #ff5a5f; }
@keyframes bump { 40% { transform: scale(1.35) rotate(-6deg); } }
.phone--sketch { background: #1f2430; box-shadow: -12px 12px 0 #ff5a5f, 0 40px 80px -30px rgba(31,36,48,.4); transform: rotate(-2deg); }
.tt__hint { margin: 0; font-family: 'Gochi Hand', var(--display); font-size: 1.5rem; color: #ff5a5f; transform: rotate(-3deg); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(-3deg) translateY(-5px); } }

/* tap effects */
.tfx { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.tfx svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tfx--ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #1f2430; background: var(--c); animation: tRing .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes tRing { from { transform: var(--p) scale(.3); opacity: 1; } to { transform: var(--p) scale(3.6); opacity: 0; } }
.tfx--pop { width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); animation: tPop .95s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes tPop {
  0% { transform: var(--p) scale(0) rotate(var(--r0)); opacity: 1; }
  25% { transform: var(--p) scale(1.15) rotate(var(--r1)); opacity: 1; }
  45% { transform: var(--p) scale(1) rotate(var(--r1)); }
  100% { transform: var(--p) translateY(-46px) scale(.85) rotate(var(--r1)); opacity: 0; }
}

/* ==========================================================================
   06 AUTOFILL.GG
   ========================================================================== */
.af__grid-bg {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(45,226,196,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(139,123,255,.35) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%);
  animation: gridMove 3s linear infinite;
}
@keyframes gridMove { to { background-position: 0 60px, 0 0; } }
.af__gg { background: linear-gradient(90deg, #2de2c4, #8b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.af__gg .c { background: linear-gradient(90deg, #2de2c4, #8b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feats--grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.feats--grid li { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; color: var(--muted); }
.feats--grid li::before { display: none; }
.feats--grid b { display: block; color: var(--fg); font-size: 1.1rem; }
.af__stage { position: relative; }
.browser { position: relative; border-radius: 16px; overflow: hidden; background: #0c1019; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 60px 140px -30px rgba(45,226,196,.3), 0 30px 60px -30px rgba(0,0,0,.9); transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .8s var(--ease); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #121826; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3142; }
.browser__bar i:nth-child(1) { background: #ff5c6c; } .browser__bar i:nth-child(2) { background: #ffbf4d; } .browser__bar i:nth-child(3) { background: #36e08f; }
.browser__bar span { margin: 0 auto; padding: 4px 40px; border-radius: 8px; background: #0c1019; font-family: var(--mono); font-size: .72rem; color: #8b95a9; }
.browser__view { position: relative; }
.browser__view img { width: 100%; height: auto; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(transparent, rgba(45,226,196,.12) 80%, rgba(45,226,196,.5) 99%, transparent); mix-blend-mode: screen; animation: scan 4.5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }
.winbar { position: absolute; left: -6%; bottom: -10%; width: min(320px, 70%); padding: 16px 18px; border-radius: 18px; background: rgba(12,16,25,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.8); }
.winbar > span { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #8b95a9; }
.winbar__track { height: 10px; margin: 10px 0 8px; border-radius: 6px; background: #ff5c7a; overflow: hidden; }
.winbar__track i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #4aa8ff, #2de2c4); border-radius: 6px 0 0 6px; box-shadow: 0 0 20px #2de2c4; }
.winbar__nums { display: flex; align-items: baseline; gap: 8px; }
.winbar__nums b { font-size: 1.5rem; letter-spacing: -.03em; }
.winbar__nums em { font-style: normal; font-size: .75rem; color: #4aa8ff; }
.winbar__nums em.r { margin-left: auto; color: #ff5c7a; }
.fineprint { position: relative; max-width: var(--max); margin: clamp(80px, 12vh, 140px) auto 0; font-size: .74rem; color: var(--muted); opacity: .7; }

/* ==========================================================================
   STUDIO + FOOTER
   ========================================================================== */
.studio { position: relative; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(120px, 18vh, 200px) var(--pad) clamp(80px, 12vh, 140px); }
.studio__title { margin: 0; font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: .95; letter-spacing: -.05em; font-weight: 800; max-width: 14ch; }
.studio__title > .split { display: block; }
.studio__lede { max-width: 44rem; margin: 34px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(50px, 8vh, 90px); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat b { display: block; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.foot { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--pad) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__mail { display: inline-block; font-size: clamp(1.7rem, 5.6vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; position: relative; word-break: break-all; }
.foot__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 4px; background: var(--foil); transform: scaleX(.12); transform-origin: left; transition: transform .7s var(--ease); }
.foot__mail:hover::after { transform: scaleX(1); }
.foot__note { margin: 22px 0 0; color: var(--muted); max-width: 32rem; }
.foot__big { display: flex; justify-content: space-between; margin: clamp(40px, 8vh, 90px) 0 10px; padding-bottom: .16em; font-size: clamp(5rem, 25.5vw, 22rem); font-weight: 800; letter-spacing: -.06em; line-height: .78; user-select: none; }
.foot__big span { display: inline-block; transform-origin: 50% 100%; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 35%, transparent); will-change: transform; }
.foot__big .g { background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; animation: foil 6s linear infinite; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot__row nav { display: flex; gap: 22px; }
.foot__row a:hover { color: var(--fg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hand { --cw: clamp(100px, 25vw, 150px); height: calc(var(--cw) * 1.44 + 110px); margin-top: 0; }
  .hand .card, .hand:hover .card { --spread: 6deg; --gap: 18px; }
  .chapter__grid, .chapter__grid--wide { grid-template-columns: 1fr; }
  .chapter__grid--flip > :first-child { order: 0; }
  .sfs__stage { min-height: 560px; }
  .alc__altar { width: min(440px, 100%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .winbar { left: 4%; bottom: -16%; }
  .af__stage { margin-bottom: 60px; }
  .browser { --ry: 0deg; --rx: 0deg; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .card h3 { font-size: .8rem; }
  .card p { display: none; }
  .bubble { left: 0; top: 2%; max-width: 200px; font-size: .92rem; }
  .doodle--pow { left: -2%; width: 110px; }
  .doodle--jack { right: -2%; width: 80px; }
  .blob__stage { grid-template-columns: auto auto; gap: 18px 14px; }
  .lamp { width: 120px; }
  .lamp__glass { height: 280px; }
  .phone--dark { width: 170px; border-radius: 30px; padding: 6px; }
  .phone--dark .slides { border-radius: 25px; }
  .game { padding: 34px 16px 18px; box-shadow: 8px 8px 0 #1c1033; }
  .game__answers { grid-template-columns: 1fr; }
  .ans { min-height: 0; }
  .feats--grid { grid-template-columns: 1fr 1fr; }
  .foot__row { flex-direction: column; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .intro { display: none !important; }
  html.js .split .c, html.js .reveal { transform: none !important; opacity: 1 !important; }
  .scribble path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Document pages (privacy, support, 404)
   ========================================================================== */
.doc { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 140px var(--pad) 80px; }
.doc h1 { margin: 0 0 14px; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.05em; font-weight: 800; }
.doc h2 { margin: 56px 0 12px; font-size: 1.6rem; letter-spacing: -.03em; }
.doc p, .doc li { color: var(--muted); }
.doc a:not(.btn) { color: var(--fg); border-bottom: 1.5px solid var(--accent); }
.doc .updated { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.policy ul, .policy ol { padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy li::marker { color: var(--accent); }
.policy b { color: var(--fg); }
.policy h2[id] { scroll-margin-top: 90px; }
.tldr { margin: 34px 0 10px; padding: 6px 26px 18px; border-radius: 22px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
.tldr h2 { margin-top: 20px; font-size: 1.2rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tldr li { color: var(--fg); }
.applist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.applist li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.02); color: var(--fg); }
.applist img, .applist svg { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.applist div { flex: 1; min-width: 0; }
.applist b { display: block; font-size: 1.08rem; }
.applist span { font-size: .9rem; color: var(--muted); }
.applist .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
.applist .links a { font-size: .9rem; }
.doc-foot { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 24px var(--pad) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.doc-foot nav { display: flex; gap: 20px; }
.doc-foot a:hover { color: var(--fg); }
