/* ═══════════════════════════════════════════════════════════
   Moody Bloops microsite
   Light, colourful, casual. Dark purple is kept for the game
   boards only, so the bloops pop the way they do in-game.
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream:   #fff8ef;
  --lav:     #efe6ff;
  --sky:     #ddf4ff;
  --butter:  #fff2b3;
  --white:   #ffffff;

  --ink:      #2b1052;
  --ink-soft: #5a4880;

  --red:     #ff2a55;
  --red-deep:#c9204a;
  --yellow:  #ffd60a;
  --yellow-deep:#d6a800;
  --cyan:    #1ec8ff;
  --magenta: #d024f0;
  --blue:    #4630f0;
  --green:   #1fd47c;
  --orange:  #ff8a1f;
  --purple:  #b48cff;
  --plum:    #3a1466;
  --night:   #241046;

  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body:    'Nunito', ui-rounded, system-ui, sans-serif;

  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.wrap { max-width: 1120px; margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  box-shadow: 0 6px 0 var(--red-deep), 0 14px 26px rgba(255, 42, 85, .28);
  transition: transform .18s var(--pop), box-shadow .18s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 9px 0 var(--red-deep), 0 18px 30px rgba(255, 42, 85, .3); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep); }
.btn:focus-visible, .nav-link:focus-visible, .footer-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }
.btn-small { font-size: 16px; padding: 11px 22px; box-shadow: 0 4px 0 var(--red-deep); }
.btn-small:hover { box-shadow: 0 6px 0 var(--red-deep); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep), 0 14px 26px rgba(0, 0, 0, .2); }
.btn-yellow:hover { box-shadow: 0 9px 0 var(--yellow-deep), 0 18px 30px rgba(0, 0, 0, .22); }
.btn-yellow:active { box-shadow: 0 2px 0 var(--yellow-deep); }

/* ── Nav ─────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 32px;
  background: rgba(255, 248, 239, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid rgba(43, 16, 82, .06);
}
#nav-logo { display: block; line-height: 0; }
#nav-logo img { height: 52px; width: auto; transition: transform .25s var(--pop); }
#nav-logo:hover img { transform: rotate(-4deg) scale(1.06); }
#nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: var(--magenta); }
#nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(43, 16, 82, .14);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
#nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--ink); }

/* ── Sections ────────────────────────────────────────────── */
.section { position: relative; padding: 104px 32px; background: var(--bgc, var(--cream)); }
.section.wavy::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -39px;
  height: 40px;
  background: var(--bgc, var(--cream));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C140 -2 260 -2 400 16S640 40 780 24 1040 -4 1180 10s180 18 260 6V40Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C140 -2 260 -2 400 16S640 40 780 24 1040 -4 1180 10s180 18 260 6V40Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bg-lav    { --bgc: var(--lav); }
.bg-sky    { --bgc: var(--sky); }
.bg-butter { --bgc: var(--butter); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2, .split-copy h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 22px; }
.section-head p, .split-copy p { font-size: 19px; color: var(--ink-soft); }
.section-head p + p, .split-copy p + p { margin-top: 16px; }

.kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: #b012d0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 0 rgba(43, 16, 82, .1);
}

/* ── Bloops ──────────────────────────────────────────────── */
.bloop {
  --c: var(--red);
  --s: 60px;
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--s);
  height: var(--s);
  font-size: var(--s);
  border-radius: 50% 50% 47% 47% / 52% 52% 48% 48%;
  background-color: var(--c);
  transition: background-color .45s;
}
.bloop.two { background-image: linear-gradient(180deg, var(--c2) 0 50%, transparent 50%); }
.bloop::before {                       /* gloss */
  content: "";
  position: absolute;
  left: 17%; top: 9%;
  width: 36%; height: 19%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  transform: rotate(-24deg);
  z-index: 2;
}
.bloop::after {                        /* volume */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset -.07em -.1em .2em rgba(0, 0, 0, .22), inset .05em .05em .12em rgba(255, 255, 255, .38);
  pointer-events: none;
}
.bloop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.bloop .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.4s infinite; animation-delay: var(--blink, 0s); }
.bloop .zz { font-family: var(--display); font-weight: 700; fill: var(--ink); opacity: 0; animation: zzz 2.8s ease-in-out infinite; }
.bloop .zz.z2 { animation-delay: 1.1s; }
.bloop .sweat { animation: sweat 2.2s ease-in infinite; }

.bloop.squish { animation: squish .5s var(--pop); }
.bloop.land   { animation: land .5s var(--pop); }
.bloop.nope   { animation: nope .5s ease-in-out; }
.bob { animation: bob 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
[data-spec] { cursor: pointer; }

/* finishes */
.bloop.f-glassy {
  background-color: color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: 0 0 0 .035em rgba(255, 255, 255, .7) inset, 0 .05em .12em rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
}
.bloop.f-glassy::before { background: rgba(255, 255, 255, .9); }
.bloop.f-gummy {
  background-image: radial-gradient(circle at 50% 88%, color-mix(in srgb, var(--c) 55%, #fff) 0, transparent 62%);
}
.bloop.f-gummy::before { background: rgba(255, 255, 255, .5); filter: blur(.02em); }
.bloop.f-chrome {
  background-image: linear-gradient(165deg, #fff 0%, color-mix(in srgb, var(--c) 65%, #fff) 16%, color-mix(in srgb, var(--c) 45%, #1c1030) 46%, color-mix(in srgb, var(--c) 85%, #fff) 72%, #fff 100%);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero { position: relative; padding: 64px 32px 120px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(208, 36, 240, .22), transparent 68%); }
.blob-2 { width: 460px; height: 460px; bottom: -120px; left: -140px; background: radial-gradient(circle, rgba(30, 200, 255, .3), transparent 68%); }
.blob-3 { width: 340px; height: 340px; top: 30%; left: 38%; background: radial-gradient(circle, rgba(255, 214, 10, .28), transparent 68%); }

#hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}
#hero-eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: #b012d0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 26px;
  box-shadow: 0 4px 0 rgba(43, 16, 82, .1);
}
#hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .98; margin-bottom: 28px; }
#hero h1 .line { display: block; }
#hero h1 .grad {
  background: linear-gradient(95deg, var(--red) 0%, var(--magenta) 48%, var(--blue) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .08em;
}
#hero-sub { font-size: 20px; color: var(--ink-soft); max-width: 34em; margin-bottom: 38px; }
#hero-note { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }

#hero-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative;
  width: clamp(240px, 28vw, 310px);
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: var(--night);
  box-shadow: 0 30px 60px rgba(70, 48, 240, .28), 0 8px 0 rgba(43, 16, 82, .14);
  transform: rotate(3deg);
  overflow: hidden;
}
.phone img { width: 100%; height: auto; }
.float { position: absolute; z-index: 3; }
.float .bloop { box-shadow: 0 14px 22px rgba(43, 16, 82, .22); }
.f1 { top: 2%;  left: 2%;  --s: 78px; }
.f2 { top: 34%; right: -1%; --s: 66px; }
.f3 { bottom: 8%; left: -2%; --s: 88px; }
.f4 { bottom: -1%; right: 6%; --s: 58px; }
.f5 { top: -3%; right: 14%; --s: 46px; }

/* ── How it plays ────────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1120px; margin: 0 auto; }
.demo-card {
  background: #fff;
  border-radius: 32px;
  padding: 18px 18px 26px;
  box-shadow: 0 8px 0 rgba(43, 16, 82, .08), 0 24px 40px rgba(70, 48, 240, .08);
  text-align: center;
}
.demo-card .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff;
  background: var(--magenta);
  margin: 18px 0 10px;
}
.demo-card:nth-child(2) .step { background: var(--orange); }
.demo-card:nth-child(3) .step { background: var(--green); }
.demo-card h3 { font-size: 24px; margin-bottom: 6px; }
.demo-card p { font-size: 16px; color: var(--ink-soft); padding: 0 8px; }

.stage {
  position: relative;
  padding: 12px 12px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3d1b72, var(--night));
  overflow: hidden;
}
.stage::before {              /* soft floating dots, like the game backdrop */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 78%, rgba(255,255,255,.07) 0 14px, transparent 15px),
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.06) 0 20px, transparent 21px),
    radial-gradient(circle at 70% 88%, rgba(255,255,255,.05) 0 10px, transparent 11px);
}

/* board: tubes + bloops are positioned from --ti / --si set by moody.js */
.board {
  --bs: 38px;
  --stride: calc(var(--bs) + 28px);
  --tw: calc(var(--bs) + 12px);
  --cap: 4;
  --head: 2.8;
  --n: 3;
  position: relative;
  width: calc(var(--n) * var(--stride));
  height: calc((var(--cap) + var(--head)) * var(--bs) + 14px + 40px);
  margin: 0 auto;
}
.tube {
  position: absolute;
  bottom: 0;
  left: calc(var(--ti) * var(--stride) + (var(--stride) - var(--tw)) / 2);
  width: var(--tw);
  height: calc(var(--cap) * var(--bs) + 14px);
  border: 3px solid rgba(255, 255, 255, .38);
  border-radius: 16px 16px calc(var(--tw) / 2) calc(var(--tw) / 2);
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 40%, rgba(255,255,255,.1));
}
.board .bloop {
  --s: calc(var(--bs) - 3px);
  position: absolute;
  left: calc(var(--ti) * var(--stride) + (var(--stride) - var(--s)) / 2);
  bottom: calc(var(--si) * var(--bs) + 7px);
  transition: left .5s cubic-bezier(.3, 1.25, .5, 1), bottom .42s cubic-bezier(.3, 1.45, .5, 1), background-color .45s, opacity .3s;
  z-index: 2;
}
.board .bloop.notrans { transition: none !important; }
.board.fade .bloop { opacity: 0; }
.bubble {
  position: absolute;
  top: 0; left: 50%;
  z-index: 5;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.6);
  transition: opacity .2s, transform .35s var(--pop);
  pointer-events: none;
}
.bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#twotone .board { --bs: 46px; --head: 2.4; }
#twotone .bubble { font-size: 16px; }

/* ── Moods ───────────────────────────────────────────────── */
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.mood {
  position: relative;
  border-radius: 32px;
  padding: 34px 22px 30px;
  text-align: center;
  background: var(--tint);
  box-shadow: 0 8px 0 var(--edge);
  transition: transform .25s var(--pop);
}
.mood:hover { transform: translateY(-6px) rotate(-1deg); }
.mood:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.mood-grumpy { --tint: #ffdfe7; --edge: #f7b5c6; }
.mood-nervous{ --tint: #d5f8e6; --edge: #a5e6c6; }
.mood-sleepy { --tint: #f6dcfd; --edge: #e0aaf0; }
.mood-silly  { --tint: #fff2b0; --edge: #f0d968; }
.mood .bloop { --s: 118px; margin: 0 auto 22px; box-shadow: 0 16px 24px rgba(43, 16, 82, .18); }
.mood h3 { font-size: 27px; margin-bottom: 8px; }
.mood p { font-size: 16px; color: var(--ink-soft); }
.silly-btn { display: block; margin: 0 auto; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.silly-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.silly-btn .bloop { margin-bottom: 22px; }
.reveal-tag {
  display: block;
  max-height: 0; opacity: 0; overflow: hidden;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: #b012d0;
  transition: max-height .3s, opacity .3s, margin .3s;
}
.mood-silly.revealed .reveal-tag { max-height: 40px; opacity: 1; margin-top: 12px; }
.mood-hint { display: block; margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 14px; color: #9a7f00; }
.mood-silly.revealed .mood-hint { display: none; }
.mood-note { text-align: center; max-width: 640px; margin: 48px auto 0; font-size: 19px; color: var(--ink-soft); }

/* ── Split sections (two-tone, feel) ─────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; max-width: 1080px; margin: 0 auto; }
.split-copy p { max-width: 32em; }
.split .stage { padding: 20px 16px 26px; box-shadow: 0 12px 0 rgba(43, 16, 82, .12), 0 30px 50px rgba(70, 48, 240, .16); border-radius: 30px; }

/* the "feels good" finished tube */
.celebrate { --bs: 54px; position: relative; height: calc(4 * var(--bs) + 90px); display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.mini { position: relative; width: calc(var(--bs) + 14px); height: calc(4 * var(--bs) + 14px); border: 3px solid rgba(255, 255, 255, .38); border-radius: 16px 16px 36px 36px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column-reverse; align-items: center; padding: 4px 0; }
.mini .bloop { --s: calc(var(--bs) - 4px); }
.mini.done { animation: glow 2.4s ease-in-out infinite; border-color: rgba(255, 255, 255, .8); }
.mini.done .bloop { animation: cheer 2.4s ease-in-out infinite; }
.mini.done .bloop:nth-child(2) { animation-delay: .12s; }
.mini.done .bloop:nth-child(3) { animation-delay: .24s; }
.mini.done .bloop:nth-child(4) { animation-delay: .36s; }
.spark { position: absolute; width: 16px; height: 16px; color: var(--yellow); animation: twinkle 2.4s ease-in-out infinite; }
.spark.s1 { top: 6px; left: 22%; }
.spark.s2 { top: 32px; right: 20%; animation-delay: .8s; color: #fff; }
.spark.s3 { top: 0; right: 42%; animation-delay: 1.5s; color: var(--cyan); width: 12px; height: 12px; }

/* ── Explore ─────────────────────────────────────────────── */
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 auto 44px; }
.perk {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  background: #fff; border-radius: 999px; padding: 10px 22px 10px 14px;
  box-shadow: 0 4px 0 rgba(43, 16, 82, .1);
}
.perk svg { width: 28px; height: 28px; }
.finish-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.finish { text-align: center; }
.finish .plate {
  display: flex; align-items: center; justify-content: center;
  height: 150px; border-radius: 28px; margin-bottom: 12px;
  background: linear-gradient(180deg, #3d1b72, var(--night));
  box-shadow: 0 6px 0 rgba(43, 16, 82, .16);
}
.finish .bloop { --s: 88px; }
.finish b { font-family: var(--display); font-weight: 600; font-size: 19px; }

/* ── Closing CTA ─────────────────────────────────────────── */
#cta {
  --bgc: var(--magenta);
  background: linear-gradient(135deg, var(--blue) 0%, var(--magenta) 62%, var(--red) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
#cta.wavy::before { background: linear-gradient(90deg, var(--blue), var(--magenta) 70%, var(--red)); }
#cta-inner { position: relative; max-width: 640px; margin: 0 auto; z-index: 2; }
#cta-icon { width: 132px; height: 132px; margin: 0 auto 30px; border-radius: 30px; box-shadow: 0 18px 34px rgba(0, 0, 0, .3), 0 0 0 6px rgba(255, 255, 255, .35); transform: rotate(-5deg); }
#cta h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 18px; text-shadow: 0 4px 0 rgba(43, 16, 82, .25); }
#cta p { font-size: 21px; margin-bottom: 36px; opacity: .95; }
#cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 20px; }
#cta .float .bloop { box-shadow: 0 14px 22px rgba(0, 0, 0, .25); }
.c1 { top: 12%; left: 6%; --s: 76px; }
.c2 { bottom: 14%; left: 14%; --s: 54px; }
.c3 { top: 18%; right: 8%; --s: 64px; }
.c4 { bottom: 12%; right: 12%; --s: 84px; }

/* ── Footer ──────────────────────────────────────────────── */
#footer { background: var(--cream); padding: 44px 32px 36px; }
#footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
#footer-logo { display: flex; align-items: center; gap: 16px; }
#footer-logo > img { height: 46px; width: auto; }
#footer-by { font-size: 15px; color: var(--ink-soft); }
.footer-deko-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); vertical-align: middle; }
.footer-deko-link:hover { color: var(--magenta); }
.footer-deko-icon { width: 1.3em; height: 1.3em; object-fit: contain; border-radius: 5px; }
#footer-copy { font-size: 14px; color: var(--ink-soft); }
#footer-links { display: flex; gap: 24px; }
.footer-link { font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink-soft); }
.footer-link:hover { color: var(--magenta); }

/* ── Privacy / doc page ──────────────────────────────────── */
#doc-hero { position: relative; padding: 72px 32px 56px; text-align: center; background: var(--lav); overflow: hidden; }
#doc-hero h1 { position: relative; font-size: clamp(40px, 6vw, 68px); margin-bottom: 10px; }
#doc-meta { position: relative; font-size: 15px; color: var(--ink-soft); }
#doc-hero .bloop { position: absolute; --s: 64px; }
.dh1 { left: 9%; top: 26%; }
.dh2 { right: 10%; bottom: 20%; --s: 52px !important; }
#doc { max-width: 760px; margin: 0 auto; padding: 64px 32px 100px; }
#doc-lede {
  font-size: 21px; line-height: 1.6; color: var(--ink);
  background: #fff; border-radius: 28px; padding: 26px 30px; margin-bottom: 48px;
  box-shadow: 0 6px 0 rgba(43, 16, 82, .08);
}
.doc-section { margin-bottom: 40px; }
.doc-section h2 { font-size: 28px; margin-bottom: 12px; }
.doc-section p, .doc-section li { font-size: 17px; color: var(--ink-soft); }
.doc-section p + p { margin-top: 12px; }
.doc-section ul { margin: 12px 0 12px 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-section a { color: #b012d0; font-weight: 700; }
#doc-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--magenta); text-decoration: none; }
#doc-back:hover { text-decoration: underline; }

/* ── Scroll reveal ───────────────────────────────────────── */
.js .aos { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s var(--pop); }
.js .aos.visible { opacity: 1; transform: none; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.22, .72); } 60% { transform: scale(.88, 1.14); } 100% { transform: scale(1); } }
@keyframes land { 0% { transform: scale(.9, 1.15); } 40% { transform: scale(1.18, .8); } 100% { transform: scale(1); } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: .85; } 100% { opacity: 0; transform: translate(6px, -12px); } }
@keyframes sweat { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); } 50% { box-shadow: 0 0 34px 6px rgba(255, 255, 255, .55), inset 0 0 22px rgba(255, 255, 255, .25); } }
@keyframes cheer { 0%, 60%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-16px) scale(1.06, .96); } 40% { transform: translateY(0) scale(1.12, .86); } }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; max-width: 420px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-copy { text-align: center; }
  .split-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 880px) {
  #nav { padding: 8px 20px; }
  #nav-toggle { display: flex; }
  #nav-links {
    position: absolute; top: calc(100% + 8px); left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: stretch; gap: 6px; text-align: center;
    background: #fff; border-radius: 26px; padding: 18px;
    box-shadow: 0 20px 40px rgba(43, 16, 82, .2);
  }
  #nav-links.open { display: flex; }
  #nav-links .nav-link { padding: 10px; font-size: 19px; }
  #nav-links .btn { justify-content: center; margin-top: 4px; }

  #hero { padding: 40px 20px 96px; }
  #hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  #hero-sub { margin-left: auto; margin-right: auto; }
  #hero-art { padding: 28px 0 8px; }
  .section { padding: 84px 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .mood-grid { grid-template-columns: 1fr; max-width: 360px; }
  .finish-row { grid-template-columns: repeat(2, 1fr); }
  .f1 { --s: 60px; left: 0; } .f2 { --s: 52px; } .f3 { --s: 66px; } .f4 { --s: 46px; } .f5 { display: none; }
  .c1, .c3 { --s: 44px; } .c2, .c4 { --s: 46px; }
  .c1 { left: 3%; top: 5%; } .c3 { right: 3%; top: 5%; } .c2 { left: 4%; bottom: 4%; } .c4 { right: 4%; bottom: 4%; }
  #footer-inner { justify-content: center; text-align: center; }
  #footer-logo { flex-direction: column; gap: 8px; }
  #doc { padding: 44px 20px 72px; }
  #doc-hero .bloop { display: none; }
  .btn { font-size: 18px; padding: 15px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .aos { opacity: 1; transform: none; }
}
