/* Landing Laurinha Games: visual de jogo (letras gordinhas, botões de
   brinquedo, cartões de fase). Fonte Baloo 2, a mesma do app. */
@font-face { font-family: 'Baloo'; src: url(assets/fonts/Baloo2-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Baloo'; src: url(assets/fonts/Baloo2-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Baloo'; src: url(assets/fonts/Baloo2-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Baloo'; src: url(assets/fonts/Baloo2-ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --pink: #ff3d8b;
  --pink-d: #d81b6a;
  --pink-l: #ffd1e3;
  --purple: #7b2fbe;
  --purple-d: #4f1784;
  --yellow: #ffd23f;
  --yellow-d: #e0a800;
  --green: #5cc23b;
  --green-d: #34901c;
  --blue: #2fa9ff;
  --blue-d: #136fc0;
  --sky1: #ffe7a3;
  --sky2: #fff7df;
  --ink: #3a2346;
  --ink-2: #6b5678;
  --cream: #fffaf0;
  --wood: #a0602d;
  --r: 28px;
  --shadow: 0 18px 40px -18px rgba(80, 30, 90, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Baloo', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
body.lock { overflow: hidden; }

/* ------------------------------------------------------------ botões */
.btn {
  --c: var(--green);
  --cd: var(--green-d);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .78em 1.5em .72em;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff) 0%, var(--c) 55%);
  box-shadow: 0 6px 0 var(--cd), 0 12px 24px -8px color-mix(in srgb, var(--cd) 70%, transparent), inset 0 2px 0 rgba(255, 255, 255, .55);
  transition: transform .15s, box-shadow .15s, filter .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn::after { /* reflexo de brinquedo */
  content: '';
  position: absolute;
  left: 14%; right: 14%; top: 7%;
  height: 32%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--cd), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.btn-pink { --c: var(--pink); --cd: var(--pink-d); }
.btn-blue { --c: var(--blue); --cd: var(--blue-d); }
.btn-small { font-size: .98rem; padding: .55em 1.2em .5em; }
.btn-wide { width: 100%; }
.btn-ghost {
  --c: #fff; --cd: #e6d6ef;
  color: var(--purple);
  text-shadow: none;
  background: #fff;
}
.btn-play { font-size: 1.3rem; }
.play-ico {
  display: inline-grid;
  place-items: center;
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  font-size: .8em;
  padding-left: .12em;
}
.btn-ghost .play-ico { background: var(--pink-l); color: var(--pink); }

/* ------------------------------------------------------------ topo */
.top {
  position: fixed;
  inset: 12px 16px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -14px rgba(80, 30, 90, .35);
  transition: background .3s;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--pink); }
.brand img { width: 48px; height: 48px; padding: 2px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(80, 30, 90, .18); object-fit: contain; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: .95; }
.brand small { font-size: .62em; font-weight: 700; color: var(--purple); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.nav a:hover { color: var(--pink); }
.hud-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 14px 4px 8px;
  border-radius: 999px;
  font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #b8763c, var(--wood));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 3px 0 #6e3d16;
}
.hud-chip { height: 38px; line-height: 1; }
.hud-chip .star { display: block; width: 22px; height: 22px; filter: drop-shadow(0 1px 0 #8a5a00); }
.hud-chip #starCount { display: block; line-height: 1; padding-top: .045em; /* a Baloo desenha os números um pouco acima do centro */ }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 90px) 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 10%, #fff9e8 0%, var(--sky1) 45%, #ffd27a 100%); }
.cloud {
  position: absolute;
  width: 220px; height: 70px;
  border-radius: 999px;
  background: #fff;
  opacity: .9;
  filter: blur(.5px);
  animation: drift 60s linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; left: 30px; top: -50px; }
.cloud::after { width: 80px; height: 80px; left: 110px; top: -32px; }
.c1 { top: 16%; left: -10%; }
.c2 { top: 32%; left: 40%; transform: scale(.7); animation-duration: 80s; animation-delay: -30s; }
.c3 { top: 8%; left: 70%; transform: scale(.55); animation-duration: 70s; animation-delay: -50s; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 120vw 0; } }

#heroScene {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(.2, .8, .2, 1);
}
.hero.live #heroScene { opacity: 1; transform: none; }
.hero-island {
  position: absolute;
  right: 4vw; top: 50%;
  width: min(46vw, 620px);
  translate: 0 -50%;
  animation: bob 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 40px rgba(120, 60, 0, .25));
  transition: opacity 1s;
}
.hero.live .hero-island { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-18px) rotate(-1.5deg); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 223, .95) 0%, rgba(255, 247, 223, .82) 34%, rgba(255, 247, 223, 0) 62%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 620px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--purple);
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(123, 47, 190, .45);
}
.kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 var(--pink); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 139, 0); } }

/* Letras gordinhas com contorno branco, como no logo */
.title-3d {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--purple);
  text-shadow:
    0 3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 -3px 0 #fff,
    2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    0 9px 0 var(--purple-d), 0 16px 22px rgba(79, 23, 132, .3);
}
.title-3d.small { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero-name {
  display: inline-block;
  padding: 0 .08em;
  background: linear-gradient(180deg, #ff8ab8 0%, var(--pink) 45%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 7px 0 var(--pink-d));
  text-shadow: none;
  animation: wiggle 3.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.hero-name.pop { animation: namePop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.03); } }
@keyframes namePop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink-2); margin: 20px 0 26px; max-width: 34em; }

.name-box {
  padding: 18px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow), inset 0 -5px 0 #f1e4f7;
  max-width: 560px;
}
.name-box label { display: block; font-weight: 800; color: var(--purple); margin: 0 0 8px 6px; }
.name-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.name-row input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 18px;
  border: 3px solid #f0d9fb;
  border-radius: 18px;
  font: 800 1.45rem 'Baloo', sans-serif;
  color: var(--pink);
  background: #fff9fc;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.name-row input::placeholder { color: #f2a8c8; }
.name-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 5px rgba(255, 61, 139, .15); }
.kind { display: flex; gap: 6px; padding: 5px; border-radius: 18px; background: #f6eefb; }
.kind-btn {
  border: 0; border-radius: 14px;
  padding: 8px 14px;
  font-weight: 800; font-size: 1rem;
  color: var(--ink-2);
  background: transparent;
  transition: background .2s, color .2s, transform .15s;
}
.kind-btn.on { background: #fff; color: var(--purple); box-shadow: 0 3px 0 #e2d0ee; }
.kind-btn:active { transform: scale(.95); }
.name-box .btn-play { width: 100%; font-size: 1.45rem; padding: .7em 1em; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.hint-small { margin: 12px 0 0; text-align: center; color: var(--ink-2); font-size: .95rem; }
.rec-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; background: #fff4cf; color: #6b4a00; font-size: .95rem; line-height: 1.35; }
.rec-note b { color: var(--purple); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 30px; height: 48px; border: 3px solid var(--purple); border-radius: 20px; opacity: .6; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--purple); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ faixa */
.ticker {
  overflow: hidden;
  padding: 8px 0;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  transform: rotate(-1.2deg);
  margin: -14px -10px 0;
  box-shadow: 0 8px 0 var(--purple-d);
  position: relative; z-index: 2;
}
.ticker-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: tick 55s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker-track img { width: 52px; height: 52px; margin: -6px -4px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ seções */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 90px); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; margin: 0 0 6px; padding: 4px 14px; border-radius: 999px; background: var(--pink-l); color: var(--pink-d); font-weight: 800; }
.h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; font-weight: 800; color: var(--purple); }
.sub { font-size: 1.2rem; color: var(--ink-2); margin: 12px 0 0; }

/* cartões de fase */
.adventures { background: linear-gradient(180deg, #fff3cf 0%, var(--cream) 100%); }
.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1300px;
  margin: 0 auto;
  perspective: 1200px;
}
.level {
  --tx: 0deg; --ty: 0deg;
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 10px 0 #ead7c0, var(--shadow);
  overflow: hidden;
  transform: rotateX(var(--ty)) rotateY(var(--tx));
  transform-style: preserve-3d;
  transition: transform .25s ease-out, box-shadow .25s;
  outline: none;
}
.level[data-demo] { cursor: pointer; }
.level[data-demo]:hover, .level[data-demo]:focus-visible { box-shadow: 0 14px 0 #ead7c0, 0 30px 60px -20px rgba(80, 30, 90, .5); }
.level[data-demo]:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.level-art {
  position: relative;
  height: 240px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 70%, #c9f59a 0%, #8fdc5d 60%, #6cc04a 100%);
  overflow: hidden;
}
.space .level-art { background: radial-gradient(circle at 50% 30%, #6c4fd8 0%, #3a1f8a 60%, #1c0d4a 100%); }
.space-main { width: 50%; animation: launch 4s ease-in-out infinite; }
@keyframes launch { 50% { transform: translateY(-14px) rotate(-4deg); } }
.twinkles i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: twinkle 2.4s ease-in-out infinite; }
.twinkles i:nth-child(1) { left: 12%; top: 62%; } .twinkles i:nth-child(2) { left: 30%; top: 12%; animation-delay: -.5s; }
.twinkles i:nth-child(3) { left: 72%; top: 70%; animation-delay: -1s; } .twinkles i:nth-child(4) { left: 86%; top: 46%; animation-delay: -1.5s; }
.twinkles i:nth-child(5) { left: 50%; top: 86%; animation-delay: -2s; } .twinkles i:nth-child(6) { left: 6%; top: 30%; animation-delay: -.8s; }
.btn-grape { --c: #8e6cf0; --cd: #5b3cc0; }
.sea .level-art { background: radial-gradient(circle at 50% 30%, #8fe3ff 0%, #2fa9ff 55%, #1667b8 100%); }
.locked .level-art { background: repeating-linear-gradient(45deg, #efe6f4 0 18px, #e7dcef 18px 36px); height: 170px; }
.level-main { width: 74%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .25)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.sea-main { width: 56%; animation: swim 5s ease-in-out infinite; }
@keyframes swim { 50% { transform: translate(10px, -10px) rotate(4deg); } }
.level:hover .level-main { transform: scale(1.08) translateY(-6px); }
.float { position: absolute; width: 64px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .2)); animation: bob 4s ease-in-out infinite; }
.float.f1 { left: 8%; top: 14%; }
.float.f2 { right: 8%; top: 22%; animation-delay: -1.3s; }
.float.f3 { right: 18%; bottom: 8%; width: 56px; animation-delay: -2.4s; }
.emoji-art { font-size: 74px; filter: grayscale(.6) opacity(.55); }
.bubbles i { position: absolute; bottom: -20px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: rise 5s linear infinite; }
.bubbles i:nth-child(1) { left: 15%; } .bubbles i:nth-child(2) { left: 35%; animation-delay: -1s; width: 9px; height: 9px; }
.bubbles i:nth-child(3) { left: 62%; animation-delay: -2.2s; } .bubbles i:nth-child(4) { left: 80%; animation-delay: -3.1s; width: 10px; height: 10px; }
.bubbles i:nth-child(5) { left: 48%; animation-delay: -4s; }
@keyframes rise { to { transform: translateY(-280px); opacity: 0; } }
.level-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.level-body h3 { margin: 0; font-size: 1.7rem; line-height: 1; color: var(--purple); font-weight: 800; }
.level-body p { margin: 0; color: var(--ink-2); line-height: 1.4; }
.level-body .btn { margin-top: auto; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border-radius: 999px; background: #f6eefb; color: var(--purple); font-weight: 700; font-size: .92rem; }
.stars-row { display: flex; gap: 4px; font-size: 1.7rem; color: var(--yellow); text-shadow: 0 2px 0 var(--yellow-d); }
.stars-row .off { color: #e8e0ee; text-shadow: 0 2px 0 #d6cbe0; }
.level-badge {
  position: absolute; z-index: 2;
  top: 14px; left: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 800; color: #fff;
  background: var(--purple);
  box-shadow: 0 3px 0 var(--purple-d);
}
.level-badge.new { background: var(--pink); box-shadow: 0 3px 0 var(--pink-d); animation: breathe 1.6s infinite; }
.level-badge.lock { background: #9b8aa8; box-shadow: 0 3px 0 #776783; }
.locked { opacity: .85; }
.shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
.level:hover .shine { transition: transform .9s; transform: translateX(120%); }

/* como funciona */
.how { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
.step { position: relative; text-align: center; }
.phone {
  width: min(100%, 260px);
  aspect-ratio: 502 / 900;
  margin: 0 auto 22px;
  border: 10px solid #2b1c33;
  border-radius: 40px;
  overflow: hidden;
  background: #2b1c33;
  box-shadow: 0 30px 50px -24px rgba(43, 28, 51, .6);
  transform: rotate(-3deg);
  transition: transform .3s;
}
.step:nth-child(2) .phone { transform: rotate(2deg) translateY(-14px); }
.step:nth-child(3) .phone { transform: rotate(-1.5deg); }
.step:hover .phone { transform: rotate(0) translateY(-10px) scale(1.03); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.step-n {
  position: absolute; top: -14px; left: 50%; margin-left: -120px;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-weight: 800; font-size: 1.7rem; color: #fff;
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-d);
  z-index: 2;
}
.step h3 { margin: 0 0 6px; font-size: 1.5rem; color: var(--purple); font-weight: 800; }
.step p { margin: 0 auto; max-width: 22em; color: var(--ink-2); line-height: 1.45; }

/* como funciona no celular/tablet: a seção fica presa e os passos
   passam na horizontal enquanto a página rola (GSAP ScrollTrigger, how.js) */
.how-progress { display: none; }
.how.h-scroll {
  height: 100svh;
  padding: 76px 0 12px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 110%, #ffe7a3 0%, var(--cream) 60%);
}
.how.h-scroll .section-head { margin: 0 auto 10px; padding: 0 20px; }
.how.h-scroll .h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.how.h-scroll .steps {
  display: flex;
  gap: 0;
  width: max-content;
  max-width: none;
  margin: 0;
  will-change: transform;
}
.how.h-scroll .step {
  flex: 0 0 100vw;
  width: 100vw;
  max-width: none;
  padding: 18px 28px 0;
}
.how.h-scroll .phone { width: auto; height: min(44svh, 430px); margin-bottom: 16px; transition: none; transform: none; }
.how.h-scroll .step-n { left: calc(50% - min(46svh, 430px) * .28 - 34px); margin-left: 0; top: 6px; }
.how.h-scroll .step h3 { font-size: 1.45rem; }
.how.h-scroll .how-progress { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.how-dots { display: flex; gap: 8px; }
.how-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ead7f3; transition: background .3s, transform .3s, width .3s; }
.how-dots i.on { width: 30px; border-radius: 99px; background: var(--pink); }
.how-bar { width: min(220px, 60vw); height: 6px; border-radius: 99px; background: #f1e4f7; overflow: hidden; }
.how-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--purple)); transform-origin: 0 50%; transform: scaleX(0); }
.how-hint { margin: 0; font-weight: 700; color: var(--ink-2); font-size: .95rem; transition: opacity .3s; }
.how-hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
/* tablet deitado/em pé: celular e texto lado a lado */
@media (min-width: 640px) and (max-width: 980px) {
  .how.h-scroll .step {
    display: grid;
    grid-template-columns: auto minmax(0, 340px);
    grid-template-rows: 1fr auto auto auto 1fr;
    justify-content: center;
    column-gap: 44px;
    text-align: left;
  }
  .how.h-scroll .step .phone { grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .how.h-scroll .step-n { position: relative; left: auto; top: auto; margin: 0 0 12px; grid-column: 2; grid-row: 2; }
  .how.h-scroll .step h3 { grid-column: 2; grid-row: 3; font-size: 2rem; line-height: 1.05; margin-bottom: 10px; }
  .how.h-scroll .step > p { grid-column: 2; grid-row: 4; margin: 0; font-size: 1.2rem; }
}

/* perguntas frequentes (também viram FAQPage no JSON-LD) */
.faq { background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border-radius: 22px; box-shadow: 0 5px 0 #f3dfe9, 0 18px 36px -28px rgba(80, 30, 90, .45); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 1.15rem; color: var(--purple); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-l); color: var(--pink-d); display: grid; place-items: center; font-size: 1.3rem; transition: rotate .25s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.55; font-size: 1.05rem; }
.faq-a p { margin: 0; }

/* aviso de cookies (consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 40px -10px rgba(60, 20, 80, .45); font-size: .98rem; color: var(--ink-2); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; line-height: 1.4; }
.consent a { color: var(--purple); font-weight: 700; }
.consent-actions { display: flex; gap: 8px; }

/* pais */
.parents { background: linear-gradient(180deg, var(--cream), #ffeef6); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.card-art { margin: -26px -26px 16px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: #fff4cf; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-art img { transform: scale(1.05); }
.card { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r); background: #fff; box-shadow: 0 6px 0 #f3dfe9, 0 20px 40px -26px rgba(80, 30, 90, .4); transition: transform .2s; }
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff4cf; font-size: 32px; margin-bottom: 12px; }
.card h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--purple); font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.card p b { color: var(--pink-d); }
.card-paid { box-shadow: 0 6px 0 #f3dfe9, 0 0 0 3px var(--pink-l), 0 20px 40px -26px rgba(80, 30, 90, .4); }
.card-tag { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 3px 0 var(--green-d); }

/* convite final */
.final {
  /* espaço em cima para o logo, que sai do cartão sem ser cortado */
  padding: 200px 20px clamp(70px, 10vw, 120px);
  background: radial-gradient(circle at 50% 0%, #ff8ab8 0%, var(--pink) 45%, var(--purple) 100%);
  position: relative;
}
.final::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .25) 2px, transparent 2.5px);
  background-size: 34px 34px;
  animation: dots 20s linear infinite;
}
@keyframes dots { to { background-position: 340px 340px; } }
.final-card {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 60px) 46px;
  border-radius: 40px;
  text-align: center;
  background: #fff;
  box-shadow: 0 14px 0 rgba(79, 23, 132, .35), 0 40px 80px -30px rgba(0, 0, 0, .5);
}
/* o desenho inteiro cabe no círculo (fitas e laço não são cortados) */
.final-logo { position: relative; z-index: 2; width: 240px; height: 240px; padding: 22px; margin: -170px auto 4px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 6px rgba(255, 255, 255, .45), 0 14px 34px rgba(79, 23, 132, .35); animation: bob 5s ease-in-out infinite; }
.final .lead { margin: 16px auto 24px; }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.store {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px 10px 16px;
  border-radius: 16px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.25rem; line-height: 1;
  background: #1d1320;
  box-shadow: 0 5px 0 #000;
  transition: transform .15s;
}
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-size: .72rem; font-weight: 600; opacity: .8; margin-bottom: 3px; }
.store-ico { font-size: 1.6rem; }
.foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px; color: var(--ink-2); font-weight: 600; }
.foot { flex-wrap: wrap; text-align: center; }
.foot img { border-radius: 16px; background: #fff; }
.foot-text { display: flex; flex-direction: column; gap: 2px; }
.foot .company { font-size: .9rem; opacity: .8; }

/* ============================================================ modal da demo */
.demo { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.demo[hidden] { display: none; }
.demo-backdrop { position: absolute; inset: 0; background: rgba(40, 14, 52, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.demo-frame {
  position: relative;
  width: min(1120px, 94vw);
  height: min(720px, 88svh);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff3cf, #ffe2a0);
  border: 6px solid #fff;
  box-shadow: 0 0 0 6px var(--pink), 0 40px 100px -20px rgba(0, 0, 0, .6);
  animation: frameIn .6s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes frameIn { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
#demoScene { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s; }
.demo.playing #demoScene { opacity: 1; }

.demo-ctrl { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 6; }
.ctrl {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  font-size: 1.2rem; line-height: 1;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  transition: transform .15s;
}
.ctrl:hover { transform: scale(1.08); }
.ctrl:focus-visible { outline: 3px solid var(--yellow); }
#skipBtn[hidden] { display: none; }
.ctrl .x { display: none; }
.ctrl.muted .x { display: block; }
.ctrl.muted .wave { display: none; }

/* 1. escrevendo o nome */
.writer {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff8e6 0%, #ffe7a3 60%, #ffcf6e 100%);
  transition: clip-path .9s cubic-bezier(.7, 0, .3, 1), opacity .5s;
  clip-path: circle(150% at 50% 50%);
}
.writer.out { clip-path: circle(0% at 50% 50%); pointer-events: none; }
.writer-sky i { position: absolute; color: #fff; font-size: 26px; animation: twinkle 2.6s ease-in-out infinite; }
.writer-sky i::before { content: '✦'; }
.writer-sky i:nth-child(1) { left: 12%; top: 18%; } .writer-sky i:nth-child(2) { left: 82%; top: 14%; animation-delay: -.6s; }
.writer-sky i:nth-child(3) { left: 8%; top: 72%; animation-delay: -1.2s; } .writer-sky i:nth-child(4) { left: 88%; top: 70%; animation-delay: -1.8s; }
.writer-sky i:nth-child(5) { left: 30%; top: 86%; animation-delay: -.3s; } .writer-sky i:nth-child(6) { left: 66%; top: 88%; animation-delay: -2.2s; }
@keyframes twinkle { 50% { transform: scale(1.6) rotate(20deg); opacity: .4; } }
.writer-card { position: relative; width: min(760px, 90%); text-align: center; }
.writer-kicker { margin: 0 0 6px; font-weight: 800; color: var(--pink); font-size: 1.2rem; animation: slideUp .6s both; }
.writer-q { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--purple); animation: slideUp .6s .1s both; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
.writer-line { position: relative; min-height: clamp(110px, 18vw, 170px); display: grid; place-items: center; }
.writer-name {
  font-size: clamp(4rem, 12vw, 8.4rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
}
.writer-name .l {
  display: inline-block;
  background: linear-gradient(180deg, #ff9cc4 0%, var(--pink) 50%, #ff7a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 9px 0 var(--pink-d)) drop-shadow(0 16px 14px rgba(160, 20, 80, .3));
  animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both;
  transform-origin: 50% 90%;
}
.writer-name .l.sp { width: .3em; }
.writer-name.done .l { animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both, jump .6s calc(var(--i) * 60ms) ease-out; }
@keyframes letterIn { 0% { transform: translateY(30px) scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes jump { 40% { transform: translateY(-22px) rotate(-6deg); } }
.pencil {
  position: absolute; left: 50%; top: 0;
  width: 80px; height: 80px;
  pointer-events: none;
  transition: transform .14s ease-out, opacity .3s;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .2));
  opacity: 0;
}
.pencil.on { opacity: 1; animation: scribble .18s infinite alternate; }
@keyframes scribble { to { margin-top: 6px; margin-left: -4px; } }
.swoosh { position: absolute; left: 50%; bottom: -6px; width: var(--sw, 80%); translate: -50% 0; height: 26px; overflow: visible; }
.swoosh path { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; filter: drop-shadow(0 3px 0 var(--yellow-d)); }
.swoosh.on path { transition: stroke-dashoffset .7s ease-out; stroke-dashoffset: 0; }
.writer-avatar { min-height: 50px; margin-top: 16px; }
.writer-avatar .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 999px;
  background: #fff; font-weight: 800; color: var(--purple); font-size: 1.15rem;
  box-shadow: 0 4px 0 #ead7c0;
  animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both;
}
.writer-ready { min-height: 1.6em; margin: 12px 0 0; font-size: 1.3rem; font-weight: 700; color: var(--ink-2); }
.spark { position: absolute; pointer-events: none; font-size: 22px; color: var(--yellow); animation: spark .8s ease-out forwards; text-shadow: 0 2px 0 var(--yellow-d); }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2) rotate(180deg); opacity: 0; } }
.loader { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-weight: 700; color: var(--ink-2); }
.loader[hidden] { display: none; }
.loader .chick { display: inline-block; animation: hopChick .5s ease-in-out infinite alternate; }
@keyframes hopChick { to { transform: translateY(-8px) rotate(8deg); } }

/* recado do nome gravado */
.writer-note { max-width: 520px; margin: 14px auto 0; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .85); color: var(--ink-2); font-size: 1.05rem; line-height: 1.35; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.writer-note.on { opacity: 1; transform: none; }
.writer-note b { color: var(--pink-d); }
.outro-note { margin: -8px auto 22px; max-width: 30em; padding: 10px 16px; border-radius: 16px; background: #fff4cf; color: #6b4a00; line-height: 1.35; }
.outro-note b { color: var(--pink-d); }

/* montando o personagem: o pedestal da cena 3D + painel de escolhas */
.demo.customizing #demoScene { transform: translateX(-17%); }
#demoScene { transition: opacity .8s, transform .8s cubic-bezier(.3, 1, .4, 1); }
.custom { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.custom[hidden] { display: none; }
.custom-panel {
  position: absolute; right: 22px; top: 50%;
  width: min(380px, 42%);
  translate: 0 -50%;
  padding: 22px 22px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 0 #ead7c0, 0 30px 60px -30px rgba(0, 0, 0, .45);
  animation: panelIn .6s cubic-bezier(.3, 1.4, .5, 1) both;
}
@keyframes panelIn { from { transform: translateX(60px) scale(.9); opacity: 0; } }
.custom-kicker { margin: 0; font-weight: 800; color: var(--pink); }
.custom-title { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.05; color: var(--purple); font-weight: 800; }
.c-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.c-label { font-weight: 800; color: var(--ink-2); font-size: .95rem; }
.c-opts { display: flex; gap: 6px; padding: 5px; border-radius: 18px; background: #f6eefb; }
.c-opts button { flex: 1; border: 0; border-radius: 14px; padding: 8px 10px; font-weight: 800; color: var(--ink-2); background: transparent; transition: background .25s, color .25s, transform .2s; }
.c-opts button.on { background: #fff; color: var(--purple); box-shadow: 0 3px 0 #e2d0ee; }
.c-sw { display: flex; gap: 8px; flex-wrap: wrap; }
.c-sw i {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #eadff0, inset 0 -4px 0 rgba(0, 0, 0, .12);
  transition: transform .2s, box-shadow .2s;
}
.c-sw i.on { transform: scale(1.18); box-shadow: 0 0 0 3px var(--pink), inset 0 -4px 0 rgba(0, 0, 0, .12); }
.c-opts button.press, .c-sw i.press { animation: press .35s; }
@keyframes press { 40% { transform: scale(.85); } }
.custom-say { min-height: 2.6em; margin: 6px 0 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.custom-say b { color: var(--pink); }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
.flash.on { opacity: 1; }
.hand { z-index: 7; }

/* 2. HUD da história */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud[hidden] { display: none; }
.hud-top { position: absolute; top: 14px; left: 14px; right: 170px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.story-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 18px 5px 6px;
  border-radius: 999px;
  background: #fff;
  font-weight: 800; font-size: 1.15rem; color: var(--purple);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  animation: slideUp .5s both;
}
.story-pill img { width: 38px; height: 38px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); transition: background .3s, transform .3s; }
.dots i.on { background: var(--yellow); transform: scale(1.25); box-shadow: 0 2px 0 var(--yellow-d); }
.dots i.done { background: var(--green); }
.task-pill {
  position: absolute; top: 74px; left: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: #5b3b00;
  font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 4px 0 var(--yellow-d);
  animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both;
}
.task-pill[hidden] { display: none; }
.task-pill.bump { animation: bumpy .35s; }
@keyframes bumpy { 50% { transform: scale(1.25); } }
.bubble {
  position: absolute;
  left: 50%; bottom: 22px;
  translate: -50% 0;
  width: min(760px, calc(100% - 40px));
  padding: 16px 26px;
  border-radius: 28px;
  background: #fff;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .12), 0 20px 40px -20px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(20px) scale(.95);
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble.on { opacity: 1; transform: none; }
.bubble::after { content: ''; position: absolute; left: 50%; top: -12px; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom-color: #fff; }
.bubble .nm {
  display: inline-block;
  padding: 0 .3em;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #ff7ab0, var(--pink));
  box-shadow: 0 3px 0 var(--pink-d);
  animation: namePulse .9s cubic-bezier(.3, 1.8, .5, 1);
}
@keyframes namePulse { 0% { transform: scale(.4) rotate(-10deg); } 100% { transform: none; } }
.bubble .w { opacity: .25; transition: opacity .2s; }
.bubble .w.r { opacity: 1; }
.hand svg { width: 100%; height: auto; display: block; }
.hand {
  position: absolute; left: 0; top: 0;
  width: 84px;
  margin: -8px 0 0 -34px;
  opacity: 0;
  transform: rotate(-12deg);
  transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3));
}
.hand.on { opacity: 1; }
.hand.tap { animation: tapIt .4s; }
@keyframes tapIt { 50% { transform: rotate(-12deg) scale(.8); } }

/* escolha: cartões grandes como no app */
.choices { position: absolute; left: 50%; bottom: 150px; translate: -50% 0; display: flex; gap: 16px; pointer-events: auto; }
.choices[hidden] { display: none; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 128px; padding: 10px 8px 8px;
  border: 0; border-radius: 26px;
  font-weight: 800; font-size: 1.15rem; color: var(--purple);
  background: linear-gradient(180deg, #fff, #f6eefb);
  box-shadow: 0 6px 0 #d9c4e8, 0 16px 30px -14px rgba(0, 0, 0, .45);
  animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both;
  transition: transform .15s;
}
.choice:nth-child(2) { animation-delay: .08s; } .choice:nth-child(3) { animation-delay: .16s; }
.choice img { width: 84px; height: 84px; object-fit: contain; }
.choice:hover { transform: translateY(-4px) scale(1.04); }
.choice.wrong { animation: shakeNo .5s; background: #ffe1e1; }
.choice.right { background: linear-gradient(180deg, #e7ffd9, #b9f08f); box-shadow: 0 6px 0 var(--green-d), 0 0 0 4px var(--yellow); transform: scale(1.1); }
@keyframes shakeNo { 20%, 60% { transform: translateX(-10px) rotate(-4deg); } 40%, 80% { transform: translateX(10px) rotate(4deg); } }


/* Cidadezinha em destaque: a comidinha sendo montada */
.level.featured { grid-column: 1 / -1; flex-direction: row; min-height: 360px; }
.level.featured .level-art { flex: 0 0 44%; height: auto; min-height: 340px; }
.level.featured .level-body { padding: 34px 36px; justify-content: center; gap: 12px; }
.level.featured h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.level.featured .level-body > p { font-size: 1.12rem; max-width: 34em; }
.level.featured .level-body b { color: #e2662b; }
.level.featured .btn { margin-top: 6px; align-self: flex-start; }
.kicker-sm { margin: 0; font-weight: 800; color: #e2662b !important; letter-spacing: .02em; }
.town .level-art { background: radial-gradient(circle at 50% 75%, #fff1c9 0%, #ffcf7a 55%, #ff9f4a 100%); }
.btn-orange { --c: #ff8a2b; --cd: #d4600c; }
.burger-stack { position: relative; width: 190px; height: 230px; }
.burger-stack .layer {
  position: absolute; left: 50%; width: 170px; translate: -50% 0;
  filter: drop-shadow(0 8px 6px rgba(120, 50, 0, .25));
  animation: stackDrop 7s cubic-bezier(.3, 1.4, .5, 1) infinite both;
}
/* cada camada cai no lugar, uma depois da outra; no fim o lanche pula e recomeça */
.burger-stack .l0 { bottom: 0; animation-delay: 0s; }
.burger-stack .l1 { bottom: 34px; animation-delay: .6s; }
.burger-stack .l2 { bottom: 62px; animation-delay: 1.2s; }
.burger-stack .l3 { bottom: 84px; animation-delay: 1.8s; }
.burger-stack .l4 { bottom: 104px; animation-delay: 2.4s; }
@keyframes stackDrop {
  0% { transform: translateY(-260px); opacity: 0; }
  8% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  84% { transform: translateY(-10px); opacity: 1; }
  92%, 100% { transform: translateY(0); opacity: 0; }
}
.float.food { width: 76px; }
.float.f4 { left: 10%; bottom: 10%; top: auto; animation-delay: -.7s; }
.float.f5 { right: 6%; bottom: 34%; top: auto; width: 60px; animation-delay: -3s; }
.recipe-demo, .recipe-card { display: flex; align-items: center; gap: 4px; }
.recipe-demo .ing, .recipe-card .ing {
  display: grid; place-items: center;
  width: 54px; height: 54px; padding: 4px;
  border-radius: 14px; border: 2px solid #e2d6bf; background: #f4eee2;
}
.recipe-demo .ing img, .recipe-card .ing img { width: 100%; height: 100%; object-fit: contain; }
.recipe-demo .ing { animation: ingGlow 3.5s ease-in-out infinite; }
.recipe-demo .ing:nth-of-type(2) { animation-delay: .7s; } .recipe-demo .ing:nth-of-type(3) { animation-delay: 1.4s; }
.recipe-demo .ing:nth-of-type(4) { animation-delay: 2.1s; } .recipe-demo .ing:nth-of-type(5) { animation-delay: 2.8s; }
@keyframes ingGlow { 0%, 18% { border-color: #ffc928; background: #fff3c2; transform: scale(1.1); } 30%, 100% { transform: none; } }
.arrow { color: #a0602d; font-size: 1.2rem; }
/* cartão da receita dentro da demonstração */
.recipe-card {
  position: absolute; left: 50%; top: 16px; translate: -50% 0;
  padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .95);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12); z-index: 2;
  animation: letterIn .5s cubic-bezier(.3, 1.8, .5, 1) both;
}
.recipe-card[hidden] { display: none; }
.recipe-card .ing.done { border-color: var(--green); background: #ddf3d5; }
.recipe-card .ing.done img { opacity: .55; }
.recipe-card .ing.next { border: 3px solid #ffc928; background: #fff3c2; transform: scale(1.12); animation: breathe 1.2s ease-in-out infinite; }
@media (max-width: 980px) {
  .level.featured { flex-direction: column; }
  .level.featured .level-art { min-height: 280px; }
  .level.featured .level-body { padding: 22px; }
  .level.featured .btn { align-self: stretch; }
}
@media (max-width: 720px) {
  .recipe-demo .ing, .recipe-card .ing { width: 44px; height: 44px; }
  .recipe-card { top: 118px; }
  .burger-stack { transform: scale(.85); }
}

/* 3. convite */
.outro {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 247, 223, .55) 0%, rgba(60, 20, 80, .55) 100%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade .6s;
}
.outro[hidden] { display: none; }
.outro-card {
  position: relative;
  width: min(680px, 92%);
  padding: 30px clamp(18px, 4vw, 44px) 34px;
  border-radius: 36px;
  text-align: center;
  background: #fff;
  box-shadow: 0 12px 0 #ead7c0, 0 40px 80px -30px rgba(0, 0, 0, .55);
  animation: frameIn .7s cubic-bezier(.3, 1.5, .5, 1);
}
.outro-kicker { margin: 0 0 8px; font-weight: 800; color: var(--yellow-d); letter-spacing: .04em; }
.outro-lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; color: var(--ink-2); margin: 16px 0 24px; }
.outro-lead .nm { color: var(--pink); font-weight: 800; }
.outro-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.outro-actions .btn-ghost { font-size: 1.05rem; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* ------------------------------------------------------------ celular */
@media (max-width: 980px) {
  .nav, .hud-chip { display: none; }
  .top .btn { margin-left: auto; }
  .levels { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .step { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; padding: 0 16px 64px; background: #fff7df; }
  .hero-bg { bottom: auto; height: 60svh; }
  .hero-content { padding-top: 46svh; }
  .hero-scrim { background: linear-gradient(180deg, rgba(255, 247, 223, 0) 0%, rgba(255, 247, 223, 0) 62%, #fff7df 100%); }
  .hero-island { width: 74vw; right: 13vw; top: 56%; }
  .kicker { font-size: .92rem; padding: 5px 14px; }
  .levels, .cards { grid-template-columns: 1fr; }
  .brand span { font-size: 1.05rem; }
  .demo-frame { width: 100vw; height: 100svh; border-radius: 0; border: 0; box-shadow: none; }
  .hud-top { right: 14px; top: 68px; }
  .task-pill { top: 124px; }
  .choices { bottom: 170px; gap: 10px; }
  .choice { width: 100px; font-size: 1rem; }
  .choice img { width: 64px; height: 64px; }
  .demo.customizing #demoScene { transform: translateY(-21%); }
  .custom-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; translate: none; padding: 14px 16px 10px; border-radius: 24px; }
  .custom-title { font-size: 1.25rem; margin-bottom: 6px; }
  .c-row { margin-bottom: 8px; }
  .c-sw i { width: 30px; height: 30px; }
  .custom-say { min-height: 2.4em; font-size: 1rem; }
  .writer-note { font-size: .95rem; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================ páginas legais (privacy.html, terms.html) */
.foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 4px; font-size: .95rem; }
.foot-links a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--pink); }
.legal-page .top { position: sticky; top: 12px; margin: 12px 16px 0; }
.legal-page .top .nav a[aria-current="page"] { color: var(--pink); }
.legal { max-width: 820px; margin: 0 auto; padding: 48px clamp(16px, 5vw, 40px) 40px; line-height: 1.6; font-size: 1.08rem; }
.legal-head { text-align: center; margin-bottom: 28px; }
.legal-head .h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.legal-meta { margin: 10px 0 0; color: var(--ink-2); font-weight: 600; }
.lang-switch { display: inline-flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.lang-switch a { padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--purple); font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #e6d6ef; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: var(--pink-l); color: var(--pink-d); }
.legal-card { background: #fff; border-radius: var(--r); padding: clamp(20px, 5vw, 40px); box-shadow: var(--shadow); margin-bottom: 36px; scroll-margin-top: 96px; }
.legal-card > h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; color: var(--purple); font-weight: 800; }
.legal-card h3 { margin: 28px 0 6px; font-size: 1.25rem; line-height: 1.25; color: var(--pink-d); font-weight: 800; }
.legal-card p, .legal-card li { color: var(--ink); overflow-wrap: anywhere; }
.legal-card ul { padding-left: 1.3em; margin: 8px 0; }
.legal-card li { margin: 4px 0; }
.legal-card a { color: var(--purple); font-weight: 700; }
.legal-card .summary { background: var(--sky2); border-radius: 18px; padding: 14px 18px; margin: 14px 0 0; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .98rem; }
.legal-card th, .legal-card td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #f0e4f5; }
.legal-card th { color: var(--purple); font-weight: 800; }
.back-top { display: inline-block; margin-top: 18px; font-weight: 700; }
/* páginas legais dentro do app (app-privacy.html / app-terms.html) */
.in-app { background: #fff; }
.in-app .legal { padding-top: 20px; }
.in-app .legal-head { margin-bottom: 16px; }
.in-app .legal-card { box-shadow: none; padding: 0; margin-bottom: 24px; }
.in-app .legal-card > h2:first-child { display: none; } /* o título já está no topo */
@media (max-width: 720px) {
  .legal { font-size: 1.02rem; padding-top: 32px; }
  .legal-card table, .legal-card thead, .legal-card tbody, .legal-card tr, .legal-card th, .legal-card td { display: block; }
  .legal-card thead { display: none; }
  .legal-card tr { border-bottom: 1px solid #f0e4f5; padding: 6px 0; }
  .legal-card td { border: 0; padding: 2px 0; }
  .legal-card td:first-child { font-weight: 800; color: var(--purple); }
}
