/* =========================================================
   Puddle & Blue ($PNB) — coming soon
   Sage reels · yellow meme captions · sticker cutouts · grid paper
   ========================================================= */

:root {
  /* brand palette (from the reels + shop poster) */
  --sage: #B9C6B0;
  --sage-deep: #8FA487;
  --yellow: #FFD15C;
  --cream: #FFF8EA;
  --red: #E2463F;
  --navy: #2E3A66;
  --ink: #2A2220;
  --blush: #F7B9B2;
  --sky: #A9C4F0;

  /* semantic (light) */
  --bg: #FFF8EA;
  --bg-sage: #B9C6B0;
  --bg-yellow: #FFD15C;
  --surface: #FFFFFF;
  --surface-2: #FFFDF6;
  --text: #2A2220;
  --muted: #54473F;
  --line: #2A2220;
  --shadow: #2A2220;
  --grid: rgba(42, 34, 32, .07);
  --nav-bg: rgba(255, 248, 234, .86);
  --tint-red: #FDE6E1;
  --tint-red-2: #FBD3CC;
  --tint-navy: #E0E6F5;
  --tint-navy-2: #CDD6F0;
  --focus: #2E3A66;
  --doodle: 226, 70, 63;

  --r-lg: 26px;
  --r-md: 18px;
  --bw: 3px;
  --sh: 6px 6px 0 var(--shadow);
  --sh-sm: 4px 4px 0 var(--shadow);
  --o: .055em;
  --outline:
    calc(var(--o) * -1) 0 0 var(--ink), var(--o) 0 0 var(--ink),
    0 calc(var(--o) * -1) 0 var(--ink), 0 var(--o) 0 var(--ink),
    calc(var(--o) * -.72) calc(var(--o) * -.72) 0 var(--ink), calc(var(--o) * .72) calc(var(--o) * -.72) 0 var(--ink),
    calc(var(--o) * -.72) calc(var(--o) * .72) 0 var(--ink), calc(var(--o) * .72) calc(var(--o) * .72) 0 var(--ink),
    0 calc(var(--o) * 2) 0 var(--ink);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

/* cozy night */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E2443;
    --bg-sage: #1F2B3F;
    --bg-yellow: #2A2950;
    --surface: #2A3260;
    --surface-2: #313A6C;
    --text: #FFF4E0;
    --muted: #D5D0E4;
    --line: #0E1124;
    --shadow: #0E1124;
    --grid: rgba(255, 244, 224, .055);
    --nav-bg: rgba(30, 36, 67, .86);
    --tint-red: #46304B;
    --tint-red-2: #523553;
    --tint-navy: #2E3A6E;
    --tint-navy-2: #36437A;
    --focus: #FFD15C;
    --doodle: 255, 209, 92;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .ico-moon { display: none; }
  :root:not([data-theme="light"]) .ico-sun { display: block; }
}
:root[data-theme="dark"] {
  --bg: #1E2443;
  --bg-sage: #1F2B3F;
  --bg-yellow: #2A2950;
  --surface: #2A3260;
  --surface-2: #313A6C;
  --text: #FFF4E0;
  --muted: #D5D0E4;
  --line: #0E1124;
  --shadow: #0E1124;
  --grid: rgba(255, 244, 224, .055);
  --nav-bg: rgba(30, 36, 67, .86);
  --tint-red: #46304B;
  --tint-red-2: #523553;
  --tint-navy: #2E3A6E;
  --tint-navy-2: #36437A;
  --focus: #FFD15C;
  --doodle: 255, 209, 92;
  color-scheme: dark;
}
:root[data-theme="dark"] .ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 .8em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

/* section surfaces */
.section { position: relative; padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 100px; } }
.paper, .hero, .sage {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.paper { background-color: var(--bg); }
.sage { background-color: var(--bg-sage); }
.yellow { background-color: var(--bg-yellow); }
.sage, .yellow { border-block: var(--bw) solid var(--line); }

/* meme caption — yellow text, thick dark outline (like the reels) */
.meme { color: var(--yellow); text-shadow: var(--outline); letter-spacing: .005em; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px;
  box-shadow: 2px 2px 0 var(--ink); transform: rotate(-1.5deg);
}
.section-title { font-size: clamp(2.1rem, 6.2vw, 3.6rem); font-weight: 700; text-wrap: balance; }
.section-sub { color: var(--muted); font-size: 1.1rem; font-weight: 600; margin: 18px auto 0; max-width: 580px; }

/* ---------- card + buttons ---------- */
.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; text-decoration: none;
  color: var(--ink); background: #fff;
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; user-select: none;
  transition: transform .18s var(--ease-spring), box-shadow .18s ease, background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.btn-ghost { background: #fff; }
.btn-ink { background: var(--navy); color: var(--cream); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn.is-disabled { opacity: .62; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.squish:active { transform: translate(3px, 3px) scale(.96, .93) !important; box-shadow: 1px 1px 0 var(--ink) !important; transition-duration: .06s; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform .18s var(--ease-spring);
}
.icon-btn:hover { transform: rotate(-10deg) scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.ico-sun { display: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--nav-bg); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 3px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-pfp {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--ink), 3px 3px 0 2.5px var(--ink);
  transition: transform .4s var(--ease-spring);
}
.logo:hover .logo-pfp { transform: rotate(-12deg) scale(1.08); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--yellow); text-shadow: var(--outline); --o: .07em; }
.nav-links { display: none; margin-left: auto; gap: 2px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; transition: background-color .2s, transform .2s var(--ease-spring);
}
.nav-links a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px) rotate(-2deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--yellow);
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease-spring);
}
.pill-btn:hover { transform: translate(-1px, -2px) rotate(-2deg); }
.pill-long { display: none; }
@media (min-width: 520px) { .pill-long { display: inline; } .pill-short { display: none; } }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(226, 70, 63, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(226, 70, 63, 0); } }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1023px) {
  .nav-links.is-open {
    display: grid; position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 6px);
    background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh);
    padding: 10px; animation: popIn .28s var(--ease-spring);
  }
  .nav-links.is-open a { padding: 12px 16px; font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 6px; }
  .menu-btn { display: none; }
}
@media (max-width: 419px) {
  .nav-inner { gap: 8px; } .nav-actions { gap: 6px; }
  .logo-word { font-size: 1.3rem; } .logo-pfp { width: 36px; height: 36px; }
  .pill-btn { padding: 8px 12px; }
}
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - var(--nav-h)), 960px);
  padding: 36px 0 84px; display: flex; flex-direction: column; justify-content: center;
  background-color: var(--bg-sage); border-bottom: var(--bw) solid var(--line);
}
.doodle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; } }

.profile-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 4px 6px 4px 4px;
  font-size: .95rem; text-decoration: none; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease-spring);
}
.profile-chip:hover { transform: translateY(-2px) rotate(-1deg); }
.profile-chip img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); }
.profile-chip > span:nth-of-type(1) { display: inline-flex; align-items: center; gap: 4px; }
.verified { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; }
.chip-count { font-family: var(--font-display); font-weight: 600; font-size: .85rem; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 10px; }

.hero-title { font-size: clamp(2.5rem, 7.4vw, 4.6rem); font-weight: 700; line-height: 1.04; margin-bottom: 22px; --o: .05em; }
.pov { display: block; }
.hero-lead { font-size: 1.15rem; font-weight: 600; color: var(--text); max-width: 540px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 16px; font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg); transition: transform .2s var(--ease-spring);
}
.badge:hover { transform: rotate(0) translateY(-2px); }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #3BCB7F; border: 2px solid var(--ink); }
.badge-arrow { transition: transform .2s; }
.badge:hover .badge-arrow { transform: translateX(3px); }

.ticker {
  display: flex; width: fit-content; flex-direction: column; gap: 6px; padding: 14px 20px 10px; margin-bottom: 26px;
  background: var(--cream); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: 4px 4px 0 var(--ink);
}
.ticker-units { display: flex; align-items: flex-start; gap: 6px; }
.unit { display: grid; justify-items: center; }
.digits {
  display: inline-block; min-width: 2.1ch; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
  background: linear-gradient(180deg, #FFE6A0 0 50%, var(--yellow) 50% 100%);
  border: 2.5px solid var(--ink); border-radius: 12px; padding: 6px 8px;
}
.digits.tick { animation: flipTick .3s ease; }
@keyframes flipTick { 40% { transform: scaleY(.82) translateY(-2px); } }
.unit small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #54473F; margin-top: 4px; }
.colon { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.3; color: #54473F; animation: blinkColon 1s steps(2) infinite; }
@keyframes blinkColon { 50% { opacity: .25; } }
.ticker-label { margin: 0; font-weight: 700; font-size: .92rem; color: #54473F; }
.soon-tm { font-family: var(--font-display); color: var(--red); font-weight: 700; margin-right: 4px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero stage: a reel-style panel */
.hero-stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; padding: 18px 10px 26px; }
.reel-panel {
  position: relative; aspect-ratio: 1 / 1.02; overflow: hidden;
  background: #C7D2BF; border: 8px solid #fff; border-radius: 30px;
  box-shadow: 0 0 0 3px var(--ink), 8px 10px 0 3px var(--ink);
  transform: rotate(1.6deg);
}
.panel-cap { position: absolute; top: 7%; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 4.4vw, 1.8rem); line-height: 1.15; z-index: 3; --o: .06em; }
.panel-credit { position: absolute; bottom: 3%; left: 0; right: 0; margin: 0; text-align: center; font-size: .75rem; color: rgba(42, 34, 32, .55); font-weight: 700; z-index: 3; }
.stage-chars { position: absolute; inset: 0; }
.parallax { position: absolute; will-change: transform; }
.p-blue { left: 0; bottom: 6%; width: 56%; z-index: 1; }
.p-puddle { right: -1%; bottom: 6%; width: 56%; z-index: 2; }
.char { display: block; line-height: 0; }
.char svg { width: 100%; height: auto; overflow: hidden; }
.float-a { animation: floatA 5.5s ease-in-out infinite; }
.float-b { animation: floatB 6.5s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes floatB { 50% { transform: translateY(-6px) rotate(1.5deg); } }

.bubble {
  position: absolute; z-index: 4; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.9rem, 3vw, 1.1rem); color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink);
  animation: bubbleBob 4s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; bottom: -11px; width: 16px; height: 16px; background: #fff;
  border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
}
.bubble-1 { left: -2%; top: 40%; transform: rotate(-4deg); }
.bubble-1::after { left: 30px; transform: rotate(45deg); }
.bubble-2 { right: -2%; top: 30%; transform: rotate(5deg); animation-delay: -2s; background: var(--yellow); }
.bubble-2::after { right: 34px; transform: rotate(45deg); background: var(--yellow); }
@keyframes bubbleBob { 50% { translate: 0 -6px; } }
.sticker-tag {
  position: absolute; z-index: 4; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.85rem, 2.6vw, 1rem); color: #fff;
  background: var(--red); padding: 6px 14px; border-radius: 12px;
  border: 4px solid #fff; box-shadow: 0 0 0 2.5px var(--ink), 3px 4px 0 2.5px var(--ink);
}
.tag-1 { left: 4%; top: 2%; transform: rotate(-8deg); }
.tag-2 { right: 6%; bottom: 0; transform: rotate(3deg); background: var(--navy); }
.doodle { position: absolute; z-index: 4; pointer-events: none; animation: twinkle 2.4s ease-in-out infinite; }
.d-heart { width: 34px; height: 34px; fill: var(--red); right: 2%; top: 4%; transform: rotate(14deg); }
.d-spark { width: 30px; height: 30px; fill: #fff; left: 46%; top: -2%; animation-delay: -.8s; }
.d-spark2 { width: 22px; height: 22px; fill: var(--yellow); left: -3%; bottom: 22%; animation-delay: -1.6s; }
@keyframes twinkle { 50% { opacity: .55; scale: .82; } }

.tap-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(-1deg); margin: 0;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--text); opacity: .75; white-space: nowrap;
}

/* ---------- CONTRACT ---------- */
.ca-card {
  position: relative; display: grid; gap: 20px; align-items: center;
  padding: 28px 20px; max-width: 920px; margin-inline: auto; background: var(--surface);
}
@media (min-width: 720px) { .ca-card { grid-template-columns: auto 1fr; padding: 34px 40px; gap: 32px; } }
.ca-sticker {
  width: 132px; margin-inline: auto; padding: 6px; background: var(--sage); border-radius: 50%;
  border: 6px solid #fff; box-shadow: 0 0 0 3px var(--ink), 4px 5px 0 3px var(--ink); transform: rotate(-6deg); overflow: hidden;
}
.ca-title { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 16px; }
#ca-status { color: var(--red); }
.ca-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 10px 10px 18px; margin-bottom: 14px;
  background: var(--surface-2); border: var(--bw) dashed var(--line); border-radius: var(--r-md);
}
.ca-text { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.ca-text.is-placeholder {
  color: transparent;
  background: linear-gradient(100deg, var(--muted) 20%, var(--red) 40%, #E3A21A 55%, var(--muted) 75%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.ca-note { color: var(--muted); font-size: .95rem; font-weight: 600; margin-bottom: 14px; }

/* ---------- STORY ---------- */
.story-layout { display: grid; gap: 28px; }
.story-stage { display: none; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.chapter { position: relative; padding: 24px 22px 22px; transition: transform .4s var(--ease-spring), opacity .4s, box-shadow .3s; }
.chapter h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 10px 0 12px; }
.chapter p { color: var(--muted); font-weight: 600; }
.chapter p strong, .chapter p em { color: var(--text); }
.chapter-num {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  padding: 3px 12px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; transform: rotate(-2deg);
}
.chapter:nth-child(2) .chapter-num { background: var(--blush); }
.chapter:nth-child(3) .chapter-num { background: var(--sage); }
.chapter:nth-child(4) .chapter-num { background: var(--sky); }
.chapter:nth-child(5) .chapter-num { background: var(--red); color: #fff; }
.chapter-moral { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--red) !important; margin-bottom: 0; }
.chapter-art {
  display: flex; justify-content: center; align-items: flex-end; margin: -6px -6px 14px; padding: 16px 8px 0;
  border-radius: var(--r-md); border: 2.5px solid var(--ink); background: #C7D2BF; overflow: hidden;
}
.chapter-art .char { width: 44%; max-width: 170px; }
.chapter-art .char + .char { margin-left: -4%; }

@media (min-width: 960px) {
  .story-layout { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
  .story-stage { display: block; position: sticky; top: calc(var(--nav-h) + 28px); }
  .chapter-art { display: none; }
  .chapters { gap: min(30vh, 300px); padding-block: min(8vh, 80px) min(18vh, 180px); }
}

.story-stage-card {
  position: relative; aspect-ratio: 1 / 1.05; overflow: hidden;
  border: 8px solid #fff; border-radius: 30px; box-shadow: 0 0 0 3px var(--ink), 8px 10px 0 3px var(--ink);
  background: #E9D3B5; transition: background-color .8s ease;
}
.story-stage-card::before { content: ""; position: absolute; inset: 0; transition: opacity .8s; opacity: 0; }
.story-stage-card[data-scene="0"] { background-color: #EBD6B8; }
.story-stage-card[data-scene="0"]::before { opacity: 1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 26px, transparent 26px 52px); }
.story-stage-card[data-scene="1"] { background-color: #FFF8EA; }
.story-stage-card[data-scene="1"]::before { opacity: 1; background-image: linear-gradient(rgba(46, 58, 102, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 58, 102, .12) 1px, transparent 1px); background-size: 24px 24px; }
.story-stage-card[data-scene="2"] { background-color: #C7D2BF; }
.story-stage-card[data-scene="3"] { background-color: #FFD15C; }
.story-stage-card[data-scene="3"]::before { opacity: 1; background: radial-gradient(circle, rgba(255, 255, 255, .45) 2px, transparent 3px) 0 0 / 22px 22px; }
.story-stage-card[data-scene="4"] { background-color: #2E3A66; }
.story-stage-card[data-scene="4"]::before { opacity: 1; background: radial-gradient(circle at 20% 20%, #fff 0 1.5px, transparent 2px) 0 0 / 60px 60px, radial-gradient(circle at 70% 60%, #FFD15C 0 1.5px, transparent 2px) 0 0 / 80px 80px; }
.stage-cap { position: absolute; top: 9%; left: 6%; right: 6%; z-index: 3; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.15; --o: .06em; transition: opacity .3s; }
.stage-cap.swap { animation: capIn .5s var(--ease-spring); }
@keyframes capIn { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
.stage-props { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage-props span { position: absolute; font-size: 2rem; animation: propFloat 4s ease-in-out infinite; }
@keyframes propFloat { 50% { transform: translateY(-10px) rotate(8deg); } }
.story-chars { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; z-index: 2; }
.story-chars .char { width: 50%; }
.story-chars .char + .char { margin-left: -6%; }
.story-chars .char.pop { animation: charPop .6s var(--ease-spring); }
@keyframes charPop { 0% { transform: scale(.88) translateY(12px); } 60% { transform: scale(1.04) translateY(-6px); } }
.story-progress { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.story-progress span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 2px solid var(--ink); transition: background .3s, transform .3s var(--ease-spring); }
.story-progress span.on { background: var(--yellow); }
.story-progress span.cur { background: var(--red); transform: scale(1.3); }
@media (min-width: 960px) {
  .js .chapter.reveal.is-visible { opacity: .5; transform: scale(.97); }
  .js .chapter.reveal.is-visible.is-active { opacity: 1; transform: rotate(-.6deg); box-shadow: 9px 9px 0 var(--shadow); }
}

/* ---------- COUPLE (flip cards) ---------- */
.flip-grid { display: grid; gap: 32px; max-width: 900px; margin-inline: auto; }
@media (min-width: 760px) { .flip-grid { grid-template-columns: 1fr 1fr; } }
.flip { perspective: 1400px; }
.flip:nth-child(1) { rotate: -1deg; }
.flip:nth-child(2) { rotate: 1deg; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform .8s var(--ease-spring); }
.flip-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; cursor: pointer; }
.flip-back { transform: rotateY(180deg); align-items: stretch; text-align: left; }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:not(.is-flipped):hover .flip-inner { transform: rotateY(-9deg) rotateX(3deg); } }
.tint-red { background: linear-gradient(170deg, var(--tint-red), var(--surface) 85%); }
.tint-red-2 { background: var(--tint-red); }
.tint-navy { background: linear-gradient(170deg, var(--tint-navy), var(--surface) 85%); }
.tint-navy-2 { background: var(--tint-navy); }
.char-mood {
  width: min(250px, 72%); padding: 8px 8px 0; cursor: pointer; overflow: hidden;
  background: #C7D2BF; border: 6px solid #fff; border-radius: 28px; box-shadow: 0 0 0 3px var(--ink), 4px 5px 0 3px var(--ink);
  transition: transform .25s var(--ease-spring);
}
.char-mood:hover { transform: scale(1.03) rotate(-2deg); }
.char-mood.boing { animation: boing .5s var(--ease-spring); }
@keyframes boing { 30% { transform: scale(1.08, .92); } 60% { transform: scale(.96, 1.04); } }
.mood-chip { margin-top: 14px; font-size: .85rem; font-weight: 700; padding: 3px 12px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; }
.flip-name { font-size: 2.2rem; margin: 10px 0 2px; }
.flip-front .flip-name { color: var(--yellow); text-shadow: var(--outline); --o: .06em; }
.flip-back .flip-name { margin: 0 0 14px; }
.flip-role { color: var(--muted); font-weight: 700; font-size: .95rem; margin: 6px 0 10px; }
.catchphrase { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 18px; }
[data-who="puddle"] .catchphrase { color: var(--red); }
.flip-btn {
  margin-top: auto; align-self: center; font-family: var(--font-display); font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 8px 18px; min-height: 44px; color: var(--ink); background: #fff;
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); transition: transform .18s var(--ease-spring);
}
.flip-btn:hover { transform: translate(-1px, -2px); }
.stats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.stats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-weight: 700; }
.stats b { font-family: var(--font-display); font-weight: 600; }
.stats i { grid-column: 1 / -1; height: 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); position: relative; overflow: hidden; }
.stats i::after {
  content: ""; position: absolute; inset: 0; width: var(--v); border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #F06B5F 8px 16px);
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-spring) .25s;
}
[data-who="blue"] .stats i::after { background: repeating-linear-gradient(-45deg, var(--navy) 0 8px, #4A5A94 8px 16px); }
.flip.is-flipped .stats i::after { transform: scaleX(1); }
.faves { font-size: .98rem; font-weight: 600; margin-bottom: 18px; }

/* ---------- GRAM ---------- */
.gram .section-sub, .gram .eyebrow { color: var(--ink); }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; max-width: 760px; margin: 0 auto 36px; }
.profile-pfp { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.profile-info { flex: 1 1 220px; min-width: 0; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.profile-handle { margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }

.reel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
@media (min-width: 820px) { .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; } }
@media (min-width: 1100px) { .reel-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; } }
.reel-grid li { display: flex; flex-direction: column; align-items: center; }
.reel-grid li:nth-child(odd) .reel { rotate: -1.5deg; }
.reel-grid li:nth-child(even) .reel { rotate: 1.5deg; }
.reel {
  position: relative; display: block; width: 100%; aspect-ratio: 240 / 426; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #C7D2BF; border: 6px solid #fff; border-radius: 22px; box-shadow: 0 0 0 3px var(--ink), 5px 6px 0 3px var(--ink);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.reel:hover, .reel:focus-visible { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 3px var(--ink), 8px 10px 0 3px var(--ink); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 52px; height: 52px;
  background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); border-radius: 50%; transition: transform .3s var(--ease-spring);
}
.reel-play svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.reel:hover .reel-play { transform: scale(1.15); }
.reel-scene-tile .reel-play { top: auto; bottom: 10px; left: auto; right: 10px; translate: none; width: 40px; height: 40px; }
.reel-scene-tile .reel-play svg { width: 16px; height: 16px; }
.reel-caption {
  margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-align: center; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; box-shadow: 2px 2px 0 var(--ink);
}
.s-sage { background: #C7D2BF; }
.s-sage2 { background: #B3C2AA; }
.s-cream { background: #F3E9D4; }
.s-pop { background: #FFD15C; }
.pop-dots { position: absolute; inset: 0; background: radial-gradient(circle, rgba(226, 70, 63, .35) 2.5px, transparent 3px) 0 0 / 14px 14px; }
.tile-cap { position: absolute; top: 12%; left: 6%; right: 6%; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.25rem); line-height: 1.15; z-index: 2; --o: .07em; }
.tile-scene { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; justify-content: center; align-items: flex-end; }
.tile-scene .char { width: 58%; transition: transform .4s var(--ease-spring); }
.tile-scene .char + .char { margin-left: -14%; }
.reel:hover .tile-scene .char { transform: translateY(-4px); }

.merch { display: grid; gap: 26px; align-items: center; padding: 22px; margin-top: 56px; }
@media (min-width: 860px) { .merch { grid-template-columns: .9fr 1.1fr; gap: 44px; padding: 34px 40px; } }
.merch-img {
  display: block; max-width: 420px; width: 100%; margin-inline: auto; border-radius: 20px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 0 0 3px var(--ink), 7px 8px 0 3px var(--ink); transform: rotate(-2.5deg);
  transition: transform .35s var(--ease-spring);
}
.merch-img:hover { transform: rotate(0) scale(1.02); }
.merch-img img { width: 100%; height: auto; }
.merch-title { font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; margin-bottom: 14px; --o: .06em; }
.merch-copy p { font-weight: 600; color: var(--muted); }
.merch-copy p strong { color: var(--text); }
.chips { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-weight: 800; font-size: .88rem; padding: 4px 12px; background: var(--tint-navy); border: 2px solid var(--line); border-radius: 999px; }
.chips li:nth-child(3n+2) { background: var(--tint-red); }
.chips li:nth-child(3n) { background: #FFF1C7; color: var(--ink); }
.merch-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- TOKENOMICS ---------- */
.tok-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .tok-grid { grid-template-columns: .9fr 1.1fr; gap: 44px; } }
.donut-wrap { position: relative; padding: 18px; max-width: 440px; width: 100%; margin-inline: auto; aspect-ratio: 1; background: radial-gradient(circle, #FFF1C7, var(--surface) 70%); }
:root[data-theme="dark"] .donut-wrap { background: radial-gradient(circle, #3A3A6E, var(--surface) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .donut-wrap { background: radial-gradient(circle, #3A3A6E, var(--surface) 70%); } }
.donut { width: 100%; height: 100%; overflow: visible; }
.donut .d { fill: rgba(226, 70, 63, .12); stroke: var(--ink); stroke-width: 2.2; transition: fill .35s ease, transform .5s var(--ease-spring); transform-box: fill-box; transform-origin: center; transform: scale(.7); }
.donut .d.on { fill: var(--red); transform: scale(1); }
.donut .d.on.alt { fill: var(--yellow); }
.donut .d.on.nv { fill: var(--navy); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-pct { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1; color: var(--yellow); text-shadow: var(--outline); }
.donut-cap { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.tok-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .tok-list { grid-template-columns: 1fr 1fr; } .tok-list .tok:last-child { grid-column: 1 / -1; } }
.tok { padding: 18px 20px; display: grid; gap: 2px; transition: transform .25s var(--ease-spring); }
.tok:hover { transform: translate(-2px, -3px) rotate(-.6deg); }
.tok:nth-child(1) { background: var(--tint-navy); }
.tok:nth-child(2) { background: var(--tint-red); }
.tok-k { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tok-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.tok-d { color: var(--muted); font-size: .95rem; font-weight: 600; }
.tag-soon { display: inline-block; font-weight: 800; color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; transform: rotate(-1deg); }

/* ---------- ROADMAP ---------- */
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .phases { grid-template-columns: repeat(4, 1fr); } }
.phase { position: relative; padding: 52px 20px 22px; margin-top: 34px; text-align: center; }
.phase:nth-child(odd) { rotate: -1deg; } .phase:nth-child(even) { rotate: 1deg; }
.phase h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.phase p { color: var(--muted); font-weight: 600; margin: 0; }
.phase-n { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.phase-icon {
  position: absolute; left: 50%; top: -36px; translate: -50% 0; display: grid; place-items: center;
  width: 72px; height: 72px; font-size: 2rem; background: var(--c); border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 3px var(--ink), 3px 4px 0 3px var(--ink);
}
.phase.is-visible .phase-icon { animation: stickIn .8s var(--ease-spring) both; }
.phases .phase:nth-child(2).is-visible .phase-icon { animation-delay: .12s; }
.phases .phase:nth-child(3).is-visible .phase-icon { animation-delay: .24s; }
.phases .phase:nth-child(4).is-visible .phase-icon { animation-delay: .36s; }
@keyframes stickIn { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 48px; font-family: var(--font-display); font-weight: 600; }
.status-label { font-size: 1.1rem; }
.status-bar { position: relative; flex: 1 1 260px; max-width: 520px; height: 22px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; }
.status-fill { position: absolute; inset: 0; width: var(--fill, 10%); border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #F06B5F 10px 20px); transition: width 1.2s var(--ease-spring); }
.status-heart { position: absolute; top: 50%; left: var(--fill, 10%); translate: -50% -50%; font-size: 2rem; line-height: 1; color: var(--red); text-shadow: var(--outline); --o: .05em; transition: left 1.2s var(--ease-spring); }
.status-text { min-width: 9em; padding: 4px 12px; color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; text-align: center; }

/* ---------- HOW TO BUY ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.step { padding: 22px 20px 20px; transition: transform .25s var(--ease-spring); }
.step:hover { transform: translateY(-4px) rotate(-.8deg); }
.step-n {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink);
  background: var(--yellow); border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink);
}
.step:nth-child(even) .step-n { background: var(--blush); }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-weight: 600; margin: 0; font-size: .98rem; }
.step-ca { font-weight: 800; color: var(--text); overflow-wrap: anywhere; }

/* ---------- GAME ---------- */
.game-shell { max-width: 880px; margin-inline: auto; padding: 14px; background: var(--surface); }
@media (min-width: 640px) { .game-shell { padding: 20px; } }
.game-hud { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.hud-pill { font-weight: 800; font-size: .95rem; padding: 6px 14px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.hud-pill b { font-family: var(--font-display); font-size: 1.15rem; margin-left: 4px; }
.hud-lives b { color: var(--red); letter-spacing: .1em; margin: 0; }
.hud-best { background: var(--yellow); }
.game-stage { position: relative; border: var(--bw) solid var(--ink); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 4.3; background: #C7D2BF; }
@media (min-width: 640px) { .game-stage { aspect-ratio: 16 / 10; } }
#game-canvas { width: 100%; height: 100%; touch-action: none; cursor: none; }
#game-canvas:focus-visible { outline: none; }
.game-stage:has(#game-canvas:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(42, 34, 32, .25); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay-card { text-align: center; max-width: 380px; padding: 22px 20px; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: 5px 5px 0 var(--ink); animation: popIn .35s var(--ease-spring); }
.overlay-card h3 { font-size: 2rem; margin-bottom: 8px; color: var(--yellow); text-shadow: var(--outline); }
.overlay-card p { font-weight: 700; color: #54473F; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; transition: background-color .25s; }
.faq-item[open] { background: var(--tint-navy); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-size: 1.4rem; line-height: 1;
  color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 50%; transition: transform .35s var(--ease-spring);
}
.faq-item[open] summary::after { transform: rotate(135deg); background: var(--blush); }
.faq-item summary:focus-visible { outline-offset: -4px; }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-weight: 600; animation: faqIn .35s ease; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--text); font-weight: 800; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- FOOTER ---------- */
.footer { background: #2E3A66; color: #FFF8EA; padding: 56px 0 40px; border-top: var(--bw) solid var(--ink); }
.footer-inner { display: grid; gap: 28px; }
.footer-brand p { margin: 10px 0 0; color: #DCE2F3; font-weight: 700; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease-spring), background-color .2s;
}
.social:hover { transform: translate(-1px, -3px) rotate(-2deg); background: var(--yellow); }
.social svg { width: 20px; height: 20px; }
.disclaimer { padding: 18px 20px; background: rgba(255, 255, 255, .06); border: 2px dashed rgba(255, 248, 234, .4); border-radius: var(--r-md); font-size: .95rem; color: #ECEFF8; }
.disclaimer p:last-child { margin: 0; }
#affiliation-note { color: var(--yellow); font-weight: 800; }
.copyright { margin: 0; font-size: .88rem; color: #BFC7E3; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .disclaimer, .copyright { grid-column: 1 / -1; } }

/* ---------- FX + TOASTS ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 180; display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 800; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); animation: toastIn .45s var(--ease-spring); }
.toast::before { content: "♥"; flex: none; color: var(--red); font-size: 1.2rem; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .7s ease, transform .8s var(--ease-spring); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reel-grid li.reveal:nth-child(3n+2) { transition-delay: .08s; }
.reel-grid li.reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.yellow .meme { color: #fff; }
:root[data-theme="dark"] .yellow .meme { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yellow .meme { color: var(--yellow); } }
