/* =========================================================
   As Aventuras de Billy — Design System
   Fonte da verdade dos tokens. Ver CLAUDE.md antes de editar.
   ========================================================= */
/* Fontes auto-hospedadas (OFL) — sem Google Fonts: mais rápido e sem envio de dados a terceiros */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sniglet"; src: url("../fonts/sniglet-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
:root {
  /* Verde-monstro (Billy) */
  --green-900: #0b3a33;
  --green-800: #0f5247;
  --green-700: #137a68;
  --green-500: #2bb39a;
  --green-300: #8fe0cf;
  --green-100: #e3f7f1;
  /* Amarelo-sol */
  --sun-600: #f2b01e;
  --sun-500: #ffc93c;
  --sun-300: #ffe08a;
  --sun-100: #fff4d1;
  /* Azul-suave (logo) */
  --sky-700: #2f6e9e;
  --sky-500: #5ba8e0;
  --sky-300: #a9d4f5;
  --sky-100: #e8f3fd;
  /* Arco-íris (mecha do Billy) */
  --rb-red: #e85a4f;
  --rb-orange: #ff9a3c;
  --rb-yellow: #ffc93c;
  --rb-green: #5cbf4a;
  --rb-purple: #9b6bd3;
  /* Neutros */
  --cream: #fff9ef;
  --paper: #ffffff;
  --ink: #1d2e2b;
  --ink-soft: #4a5d59;
  --line: #eadfcd;
  --wood-900: #1e140d;
  --wood-700: #3a2717;
  --yt: #e62117;

  /* Personagens */
  --c-billy: #2bb39a;
  --c-lisa: #7cc04a;
  --c-ddey: #3e9c83;
  --c-nick: #9bbf3b;
  --c-stu: #4f7a4a;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 14px;
  --radius: 24px;
  --radius-l: 36px;
  --shadow-s: 0 2px 0 rgba(29, 46, 43, .06), 0 6px 18px rgba(29, 46, 43, .08);
  --shadow: 0 4px 0 rgba(29, 46, 43, .06), 0 18px 40px rgba(29, 46, 43, .12);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--sun-500); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--green { background: var(--green-100); }
.section--sun { background: var(--sun-100); }
.section--sky { background: var(--sky-100); }
.section--dark { background: var(--green-900); color: #eafff9; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; opacity: .6; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--sun-500); --fg: var(--ink); --sh: var(--sun-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  text-decoration: none; line-height: 1.1;
  box-shadow: 0 5px 0 var(--sh);
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: 0 7px 0 var(--sh); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sh); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--yt { --bg: var(--yt); --fg: #fff; --sh: #a3160f; }
.btn--green { --bg: var(--green-700); --fg: #fff; --sh: var(--green-900); }
.btn--ghost { --bg: transparent; --fg: currentColor; --sh: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255,255,255,.08); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 239, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.has-hero .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-scrolled { background: rgba(255, 249, 239, .94); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px var(--sun-500); }
.brand-text { font-family: var(--font-display); line-height: 1; }
.brand-text small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 3px; }
.brand-text strong { font-size: 1.55rem; font-weight: 700; color: var(--sky-700); }
.has-hero .site-header:not(.is-scrolled) .brand-text strong { color: var(--sky-300); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: inherit; text-decoration: none; transition: background .2s;
}
.nav a:hover { background: rgba(43, 179, 154, .14); }
.nav a[aria-current="page"] { background: var(--green-700); color: #fff; }
.header-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sun-500); color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

.nav .nav-cta-mobile { display: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; margin: 0;
    background: var(--cream); color: var(--ink);
    padding: 16px var(--gutter) 28px;
    box-shadow: 0 20px 30px rgba(0,0,0,.12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 1.3rem; padding: 14px 18px; }
  .nav .nav-cta-mobile { display: flex; margin-top: 10px; }
}

/* ---------- Hero (Home) — inspirado no estilo cinematográfico ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  background: var(--wood-900);
  color: #fff7e6;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 40%, transparent 30%, rgba(30,20,13,.55) 70%),
    linear-gradient(90deg, var(--wood-900) 0%, var(--wood-900) 34%, rgba(30,20,13,.86) 46%, rgba(30,20,13,.2) 66%, transparent 80%),
    linear-gradient(0deg, rgba(30,20,13,.85) 0%, transparent 28%);
}
.hero__inner { padding-block: 140px 110px; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.hero__copy { max-width: 560px; }
.hero .eyebrow { color: var(--sun-300); letter-spacing: .3em; }
.hero h1 { color: var(--sun-500); font-weight: 600; margin-bottom: 22px; }
.hero h1 .h1-kicker { display: block; font-size: .36em; color: #fff7e6; font-weight: 500; letter-spacing: .01em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .16em; z-index: -1; border-radius: 99px;
  background: linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-purple));
  opacity: .75;
}
.hero .lead { color: rgba(255, 247, 230, .86); max-width: 480px; margin-bottom: 30px; }
.hero__rule { border: 0; height: 1px; background: rgba(255, 247, 230, .35); margin: 44px 0 16px; max-width: 470px; }
.hero__meta { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 247, 230, .72); font-weight: 700; margin: 0; }
.hero__num {
  position: absolute; right: var(--gutter); top: 110px;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 7vw, 6rem); line-height: 1;
  color: var(--sun-300); opacity: .9; letter-spacing: -.02em;
}
.hero__num small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .3em; font-weight: 700; text-align: right; opacity: .8; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,247,230,.6); }
.hero__dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__dust span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-300); filter: blur(1px); opacity: 0; animation: float 9s linear infinite; }
@keyframes float {
  0% { transform: translateY(20px) scale(.6); opacity: 0; }
  15% { opacity: .8; }
  100% { transform: translateY(-260px) translateX(30px) scale(1); opacity: 0; }
}
.hero__bubble {
  position: absolute; right: clamp(16px, 4vw, 70px); top: 44%;
  background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  padding: 12px 18px; border-radius: 22px 22px 22px 4px; box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

@media (max-width: 860px) {
  .hero { align-items: flex-end; min-height: auto; }
  .hero__media { width: 100%; height: 72%; inset: 0 0 auto 0; }
  .hero__media img { object-position: 50% 26%; }
  .hero::before { background: linear-gradient(0deg, var(--wood-900) 0%, var(--wood-900) 40%, rgba(30,20,13,.6) 55%, transparent 78%); }
  .hero__inner { padding-block: 58vh 70px; }
  .hero__num { display: none; }
  .hero__bubble { display: none; }
  .hero__foot { display: none; }
}

/* ---------- Page hero (internas) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--green-700); color: #fff; padding-block: clamp(48px, 7vw, 90px) clamp(64px, 8vw, 110px); }
.page-hero--sun { background: var(--sun-500); color: var(--ink); }
.page-hero--sky { background: var(--sky-700); }
.page-hero--dark { background: var(--green-900); }
.page-hero--coral { background: #ff8a6b; color: var(--ink); }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.page-hero .eyebrow { color: inherit; opacity: .85; }
.page-hero .lead { color: inherit; opacity: .9; }
.page-hero__art { justify-self: end; max-width: 380px; }
.page-hero__art img { border-radius: var(--radius-l); box-shadow: 0 30px 60px rgba(0,0,0,.25); transform: rotate(2.5deg); background: #fff; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 0 480 60 720 30 C960 0 1200 50 1440 20 L1440 60 L0 60Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 0 480 60 720 30 C960 0 1200 50 1440 20 L1440 60 L0 60Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
@media (max-width: 760px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero__art { justify-self: center; max-width: 260px; }
}
.breadcrumbs { font-size: .9rem; margin-bottom: 18px; opacity: .9; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumbs a { color: inherit; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-s);
  overflow: hidden; position: relative;
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.card__body { padding: 22px 24px 26px; }
.card__body p { color: var(--ink-soft); margin-bottom: .6em; }
.card h3 { margin-bottom: .35em; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .03em; background: var(--green-100); color: var(--green-800); }
.tag--sun { background: var(--sun-100); color: #7a5300; }
.tag--sky { background: var(--sky-100); color: var(--sky-700); }
.tag--soon { background: var(--ink); color: #fff; }

/* Personagens */
.char-card { --c: var(--c-billy); background: var(--paper); }
.char-card__media { aspect-ratio: 4 / 4.4; background: color-mix(in srgb, var(--c) 22%, #fff); overflow: hidden; position: relative; }
.char-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease-bounce); }
a.char-card:hover .char-card__media img { transform: scale(1.06); }
.char-card__role { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 50%, #000); }
.char-card h3 { color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.char-card h3::after { content: "→"; color: var(--c); transition: transform .3s; }
a.char-card:hover h3::after { transform: translateX(5px); }
.char-card .skill { font-weight: 800; color: color-mix(in srgb, var(--c) 50%, #000); font-size: .95rem; }

/* Faixa da turma (home) */
.cast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cast { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cast { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pilares (pais) ---------- */
.pillar { padding: 28px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-s); }
.pillar__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 14px; background: var(--sun-100); }
.pillar p { color: var(--ink-soft); margin: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split__media img { border-radius: var(--radius-l); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; margin-top: 2px; }

/* ---------- Quarta parede / Moral do Billy ---------- */
.moral {
  position: relative; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--sun-500); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
}
.moral img { border-radius: 28px; box-shadow: var(--shadow); }
.moral blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; font-weight: 600; }
.moral blockquote::before { content: "“"; display: block; font-size: 4em; line-height: .6; color: #fff; }
.moral cite { display: block; margin-top: 18px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #6b4b00; }
@media (max-width: 760px) { .moral { grid-template-columns: 1fr; } .moral img { max-width: 260px; } }

/* ---------- Vídeos ---------- */
.lite-yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  background: var(--green-900) center/cover no-repeat; border-radius: var(--radius); overflow: hidden; color: #fff;
}
.lite-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); }
.lite-yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--yt); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease-bounce); }
.lite-yt__play svg { width: 34px; height: 34px; margin-left: 5px; fill: #fff; }
.lite-yt:hover .lite-yt__play { transform: translate(-50%, -50%) scale(1.1); }
.lite-yt__title { position: absolute; left: 20px; right: 20px; bottom: 16px; text-align: left; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 900px) { .video-feature { grid-template-columns: 1fr; } }
.video-soon { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--green-700); }
.video-soon img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-soon__label { position: absolute; inset: auto 16px 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; }

.ep-card .ep-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--green-100); }
.ep-card .ep-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ep-card .ep-thumb .tag { position: absolute; left: 12px; top: 12px; }
.ep-card .ep-num { font-family: var(--font-display); font-weight: 600; color: var(--green-700); font-size: .95rem; }
.ep-card .ep-moral { font-style: italic; border-left: 4px solid var(--sun-500); padding-left: 12px; color: var(--ink); }
.ep-card details { margin-top: 10px; background: var(--sky-100); border-radius: 14px; padding: 10px 14px; }
.ep-card summary { cursor: pointer; font-weight: 800; color: var(--sky-700); font-size: .92rem; }
.ep-card details p { margin: 8px 0 0; font-size: .95rem; }
.ep-card .ep-play { position: absolute; inset: 0; border: 0; background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { border: 2px solid var(--green-500); background: #fff; color: var(--green-800); border-radius: 999px; padding: 8px 18px; font-weight: 800; min-height: 44px; transition: all .2s; }
.chip[aria-pressed="true"], .chip:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Loja ---------- */
.book { display: flex; flex-direction: column; }
.book__cover {
  --bc: var(--green-500);
  aspect-ratio: 3 / 3.4; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--bc) 55%, #fff), var(--bc));
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 18px;
}
.book__cover img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 62%; width: auto; max-width: 80%; object-fit: cover; object-position: 50% 20%; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); border-radius: 18px 18px 0 0; }
.book__cover .book__title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); max-width: 85%; }
.book__cover .book__series { position: relative; z-index: 1; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: rgba(255,255,255,.9); }
.book__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: rgba(0,0,0,.14); }
.book .card__body { flex: 1; display: flex; flex-direction: column; }
.book .card__body .btn { margin-top: auto; align-self: flex-start; }
.book__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Brincar (área kids) ---------- */
.play-tile {
  --t: var(--green-500);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--t); color: #fff; border-radius: var(--radius-l); padding: 26px; min-height: 280px;
  text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 8px 0 color-mix(in srgb, var(--t) 70%, #000);
  transition: transform .3s var(--ease-bounce);
}
.play-tile:hover { transform: translateY(-6px) rotate(-1deg); color: #fff; }
.play-tile h3 { font-size: 1.9rem; margin: 0; max-width: 70%; }
.play-tile p { max-width: 54%; margin: 0; opacity: .95; font-weight: 700; }
.play-tile img { position: absolute; right: -10px; bottom: -10px; width: 40%; max-width: 220px; border-radius: 26px; transform: rotate(6deg); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.play-tile .tag { background: rgba(255,255,255,.25); color: #fff; }
.speak-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); padding: 8px 16px; font-weight: 800; box-shadow: var(--shadow-s); min-height: 44px; }
.speak-btn[aria-pressed="true"] { background: var(--sun-500); }

.game-shell { background: var(--paper); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.game-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.score { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 16px); max-width: 720px; margin-inline: auto; }
.mem-card { aspect-ratio: 1; border: 0; padding: 0; background: transparent; perspective: 800px; }
.mem-card__inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .5s var(--ease-bounce); transform-style: preserve-3d; }
.mem-card.is-flipped .mem-card__inner, .mem-card.is-matched .mem-card__inner { transform: rotateY(180deg); }
.mem-card__face { display: block; position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.mem-card__back { background: var(--green-500) url("../img/icon-192.png") center/58% no-repeat; box-shadow: inset 0 0 0 5px var(--sun-500), 0 5px 0 var(--green-700); }
.mem-card__front { transform: rotateY(180deg); background: #fff; box-shadow: inset 0 0 0 4px var(--green-300); }
.mem-card__front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.mem-card.is-matched .mem-card__front { box-shadow: inset 0 0 0 5px var(--sun-500); }
.feel-stage { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .feel-stage { grid-template-columns: 1fr; } }
.feel-stage__img { border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: var(--green-100); }
.feel-stage__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.feel-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.feel-opt { border: 0; border-radius: 22px; background: var(--sky-100); padding: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; min-height: 84px; display: flex; align-items: center; gap: 12px; box-shadow: 0 5px 0 var(--sky-300); transition: transform .2s var(--ease-bounce); }
.feel-opt span { font-size: 2rem; }
.feel-opt:hover { transform: translateY(-3px); }
.feel-opt.is-right { background: var(--green-700); color: #fff; box-shadow: 0 5px 0 var(--green-900); }
.feel-opt.is-wrong { background: #ffe3dc; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.feel-tip { background: var(--sun-100); border-radius: 18px; padding: 14px 18px; font-weight: 700; min-height: 56px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: drop 1.6s ease-in forwards; }
@keyframes drop { to { transform: translateY(110vh) rotate(720deg); } }

/* Colorir */
.coloring { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .coloring { grid-template-columns: 1fr; } }
.coloring svg { width: 100%; max-width: 560px; margin-inline: auto; background: #fff; border-radius: 24px; touch-action: manipulation; }
.coloring svg .fill { cursor: pointer; transition: fill .15s; }
.coloring svg .fill:hover { filter: brightness(.96); }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.08); }
.coloring__tools { display: grid; gap: 14px; position: sticky; top: 96px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border-radius: 20px; padding: 4px 22px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--green-500); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); }

/* ---------- Onde assistir ---------- */
.platform { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-s); text-decoration: none; color: inherit; }
.platform__logo { width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; }
.platform__logo svg { width: 36px; height: 36px; }
.platform h3 { margin: 0 0 4px; font-size: 1.25rem; }
.platform p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Newsletter / Clube ---------- */
.club { background: var(--sky-700); color: #fff; border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.club h2 { color: #fff; }
.club form { display: grid; gap: 12px; }
.club input[type="email"], .club input[type="text"] { min-height: 54px; border-radius: 999px; border: 0; padding: 0 22px; font: inherit; font-size: 1.05rem; }
.club label.consent { font-size: .85rem; display: flex; gap: 10px; align-items: flex-start; opacity: .92; }
.club label.consent input { margin-top: 4px; width: 18px; height: 18px; }
.club .form-msg { min-height: 1.4em; font-weight: 700; }
@media (max-width: 820px) { .club { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.note { background: var(--sun-100); border-radius: 18px; padding: 16px 20px; border-left: 6px solid var(--sun-500); }

/* ---------- Perfil de personagem ---------- */
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.fact { background: var(--paper); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-s); }
.fact dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.fact dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-s); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.gallery figcaption { padding: 8px 12px; font-weight: 800; font-size: .85rem; text-align: center; }
.sheet-img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* ---------- Parental gate ---------- */
.gate { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(11, 58, 51, .72); padding: 16px; }
.gate.is-open { display: grid; }
.gate__box { background: var(--cream); border-radius: var(--radius-l); max-width: 440px; width: 100%; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.gate__box img { width: 110px; height: 110px; border-radius: 50%; margin: -86px auto 10px; box-shadow: 0 0 0 6px var(--sun-500); }
.gate__q { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 8px 0 14px; }
.gate input { width: 140px; min-height: 56px; text-align: center; font: inherit; font-size: 1.6rem; border-radius: 18px; border: 3px solid var(--green-300); }
.gate__err { color: var(--rb-red); font-weight: 800; min-height: 1.5em; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfeee6; padding-top: 130px; position: relative; margin-top: 60px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-peek { position: absolute; top: -78px; left: 50%; transform: translateX(-50%); width: 150px; text-align: center; }
.footer-peek img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 0 6px var(--green-900); object-fit: cover; }
.footer-peek span { display: inline-block; margin-top: 10px; background: var(--sun-500); color: var(--ink); font-family: var(--font-display); font-weight: 600; padding: 6px 14px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.footer-grid h2 { font-size: 1.05rem; color: var(--sun-300); letter-spacing: .04em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; opacity: .85; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-bounce); }
.reveal.is-in { opacity: 1; transform: none; }
.wiggle:hover { animation: wiggle .6s; }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

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

/* ---------- Impressão (atividades) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .gate, .page-hero::after { display: none !important; }
  body { background: #fff; }
  .page-hero { background: #fff !important; color: #000 !important; padding: 0; }
  .print-sheet { box-shadow: none !important; }
}
.page-hero--compact { padding-block: 28px 64px !important; }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .25em; }
.page-hero--compact .lead { margin-bottom: .6em; }

/* ---------- Como o Billy nasceu ---------- */
:root { --board: #24302d; --board-edge: #3b2a1e; --chalk: #e9f5ef; }
.page-hero--board { background: var(--board); color: var(--chalk); }
.page-hero--board h1 { color: var(--sun-300); }
.page-hero--board .btn--ghost { color: var(--chalk); }
.board-frame { background: linear-gradient(160deg, #f0b42a, #c88a0c 55%, #a86f05); padding: 16px; border-radius: 30px; box-shadow: 0 0 0 3px #6b4500, 0 24px 50px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18); }
.board-frame--big { padding: 22px 22px 34px; position: relative; }
.board-frame--big::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 56px; height: 12px; margin-left: -28px; border-radius: 99px; background: #6b4500; opacity: .55; }
.board-frame img, .board-frame canvas { display: block; width: 100%; border-radius: 16px; transform: none; box-shadow: none; }
.page-hero__art.board-frame { transform: rotate(-2deg); max-width: 420px; }
.page-hero__art.board-frame img { transform: none; }

.compare { position: relative; max-width: 860px; margin-inline: auto; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 720 / 600; background: var(--board); user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--sun-500); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--sun-500); color: var(--ink); display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + .compare__handle, .compare:focus-within .compare__handle span { outline: 3px solid #fff; }
.compare__tag { position: absolute; top: 16px; z-index: 1; pointer-events: none; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.compare__tag--l { left: 16px; background: var(--board); color: var(--chalk); }
.compare__tag--r { right: 16px; background: #fff; color: var(--green-800); }

.section--board { background: var(--board); color: var(--chalk); }
.section--board h2, .section--board h3 { color: #fff; }
.section--board .eyebrow { color: var(--sun-300); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(18px, 3vw, 32px); counter-reset: s; }
.step { position: relative; background: rgba(255,255,255,.06); border: 2px dashed rgba(233,245,239,.28); border-radius: var(--radius); padding: 18px 18px 22px; }
.step img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: #fff; }
.step p { color: rgba(233,245,239,.85); margin: 0; }
.step__n { position: absolute; top: -18px; left: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--sun-500); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; box-shadow: 0 4px 0 var(--sun-600); z-index: 1; }

.traits { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.traits li { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 12px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-s); }
.traits__from { font-family: "Comic Sans MS", "Chalkboard SE", var(--font-display); color: var(--ink-soft); font-size: .98rem; }
.traits__arrow { color: var(--rb-orange); font-weight: 900; font-size: 1.3rem; }
.traits__to { font-weight: 800; color: var(--green-800); }
@media (max-width: 520px) { .traits li { grid-template-columns: 1fr; gap: 2px; } .traits__arrow { transform: rotate(90deg); justify-self: start; } }
.caption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
.origin-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; background: var(--board); }

.board-app { max-width: 900px; margin-inline: auto; display: grid; gap: 18px; }
.board-frame--big canvas { touch-action: none; cursor: crosshair; aspect-ratio: 3 / 2; height: auto; }
.board-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.chalk { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.chalk[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.1); }

/* Teaser na Home */
.origin-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.origin-teaser__pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.origin-teaser__pair img { border-radius: 20px; box-shadow: var(--shadow); }
.origin-teaser__pair .arrow { font-size: 2rem; color: var(--rb-orange); font-weight: 900; }
@media (max-width: 860px) { .origin-teaser { grid-template-columns: 1fr; } }


/* ---------- Logo, idiomas e acessibilidade ---------- */
.brand { line-height: 0; }
.brand .logo { width: 150px; height: auto; color: var(--sky-700); display: block; }
.has-hero .site-header:not(.is-scrolled) .brand .logo { color: #fff7e6; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; flex: none; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(0,0,0,.06); border-radius: 12px; padding: 3px; }
.has-hero .site-header:not(.is-scrolled) .lang-switch { background: rgba(255,255,255,.14); }
.lang-switch a { min-width: 34px; min-height: 32px; display: grid; place-items: center; padding: 0 6px; border-radius: 9px; font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-decoration: none; color: inherit; }
.lang-switch a:hover { background: rgba(43,179,154,.18); }
.lang-switch a[aria-current="true"] { background: var(--sun-500); color: var(--ink); }
.a11y { position: relative; }
.a11y__btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; }
.a11y__btn svg { width: 24px; height: 24px; }
.a11y__btn[aria-expanded="true"] { background: var(--sun-500); color: var(--ink); border-color: var(--sun-500); }
.a11y__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.22); display: grid; gap: 8px; z-index: 60; }
.a11y__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.a11y-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--cream); cursor: pointer; font-weight: 700; min-height: 48px; }
.a11y-opt input { width: 22px; height: 22px; accent-color: var(--green-700); flex: none; }
.a11y__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 14px; }
.footer-logo .logo { width: 170px; color: #fff7e6; }
.footer-bottom .lang-switch { background: rgba(255,255,255,.1); }
.footer-bottom .lang-switch a { color: #fff; }
.footer-bottom .lang-switch a[aria-current="true"] { color: var(--ink); }
@media (max-width: 1180px) { .header-tools { margin-left: auto; } }
@media (max-width: 520px) {
  .brand .logo { width: 100px; }
  .header-tools { gap: 6px; }
  .lang-switch a { min-width: 30px; padding: 0 4px; }
  .a11y__btn { width: 38px; height: 38px; }
  .nav-toggle { width: 42px; height: 42px; }
}
main:focus { outline: none; }

/* Preferências de acessibilidade (painel no topo) */
html.a11y-big { font-size: 118%; }
html.a11y-readable body { letter-spacing: .035em; word-spacing: .14em; line-height: 1.9; }
html.a11y-readable p, html.a11y-readable li { max-width: 68ch; }
html.a11y-readable em, html.a11y-readable .ep-moral, html.a11y-readable i { font-style: normal; }
html.a11y-readable .hero__meta, html.a11y-readable .eyebrow { letter-spacing: .12em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1; transform: none; }
html.a11y-still .hero__dust { display: none; }
html.a11y-contrast { --ink: #000; --ink-soft: #1a1a1a; --cream: #ffffff; --line: #000; --green-100: #e9fbf5; --sun-100: #fff8de; --sky-100: #eef6ff; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .card, html.a11y-contrast .pillar, html.a11y-contrast .fact, html.a11y-contrast .faq details, html.a11y-contrast .platform, html.a11y-contrast .traits li { box-shadow: none; outline: 2px solid #000; }
html.a11y-contrast a:not(.btn):not(.card):not(.play-tile):not(.platform):not(.brand) { text-decoration: underline; }
html.a11y-contrast .hero::before { background: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.6) 60%, transparent 85%); }
html.a11y-contrast .page-hero, html.a11y-contrast .section--dark, html.a11y-contrast .section--board { background: #000 !important; color: #fff !important; }
html.a11y-contrast .page-hero h1 { color: #fff; }
html.a11y-contrast .btn { outline: 2px solid #000; }
html.a11y-contrast :focus-visible { outline: 4px solid #000; box-shadow: 0 0 0 7px var(--sun-500); }

/* Libras (VLibras) — mantém o botão acima do rodapé */
[vw].enabled { z-index: 90 !important; }
.site-header:has(.nav.is-open) { background: var(--cream) !important; color: var(--ink) !important; }
.site-header:has(.nav.is-open) .brand .logo { color: var(--sky-700) !important; }

/* ---------- Jogo: Números do Stu ---------- */
.stu-stage { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .stu-stage { grid-template-columns: 1fr; } .stu-stage__stu { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; } }
.stu-stage__stu img { border-radius: 22px; background: var(--sky-100); }
.speech { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 12px 16px; font-weight: 800; margin-top: 12px; min-height: 64px; }
.stu-panel { background: #24302d; border-radius: 24px; padding: 18px; color: #c9ffd9; box-shadow: inset 0 0 0 4px #3b4a45, 0 0 24px rgba(92,191,74,.25); }
.stu-eq { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 700; text-align: center; letter-spacing: .04em; color: #9dff9a; text-shadow: 0 0 12px rgba(120,255,120,.45); margin: 0; }
.stu-eq span { color: #ffe08a; }
.stu-eq strong { color: #fff; }
#stu-game.is-happy .stu-panel { box-shadow: inset 0 0 0 4px #5cbf4a, 0 0 40px rgba(92,191,74,.7); }
.stu-blocks { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 18px; min-height: 230px; padding: 18px; margin: 16px 0; background: repeating-linear-gradient(0deg, #f6efe2 0 28px, #efe5d3 28px 29px); border-radius: 24px; border: 3px dashed var(--line); }
.cube-tower { display: flex; flex-direction: column-reverse; gap: 4px; }
.cube { --cube: #2bb39a; width: 54px; height: 54px; border-radius: 12px; border: 0; padding: 0; background: var(--cube); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), inset 0 4px 0 rgba(255,255,255,.35); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease-bounce); }
.cube:hover { transform: scale(1.06); }
.cube__n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.cube.is-counted { outline: 4px solid var(--ink); outline-offset: -4px; }
.cube--arriving { animation: drop-in .6s var(--ease-bounce) both; }
.cube--arriving:nth-child(2) { animation-delay: .12s; } .cube--arriving:nth-child(3) { animation-delay: .24s; } .cube--arriving:nth-child(4) { animation-delay: .36s; }
@keyframes drop-in { from { transform: translateY(-120px); opacity: 0; } }
.cube--leaving { opacity: .35; background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.6) 6px 9px); animation: roll-away 1.1s ease .4s both; cursor: default; }
@keyframes roll-away { from { opacity: 1; transform: none; } 60% { transform: translateX(26px) rotate(90deg); } to { opacity: .35; transform: translateX(26px) rotate(90deg); } }
.stu-stage__stu img { aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; }
.cube-op { font-family: var(--font-display); font-weight: 700; font-size: 3rem; align-self: center; color: var(--ink); }
.cube-gone { align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink-soft); }
.num-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.num-opt { min-width: 92px; min-height: 92px; border-radius: 26px; border: 0; background: var(--sun-500); font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ink); box-shadow: 0 6px 0 var(--sun-600); transition: transform .2s var(--ease-bounce); }
.num-opt:hover { transform: translateY(-3px); }
.num-opt.is-right { background: var(--green-700); color: #fff; box-shadow: 0 6px 0 var(--green-900); }
.num-opt.is-wrong { background: #ffe3dc; animation: shake .4s; }

/* ---------- Jogo: ABC da Lisa ---------- */
.abc-stage { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .abc-stage { grid-template-columns: 1fr; } }
.abc-lisa { display: grid; gap: 10px; }
.abc-lisa img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; }
.abc-card { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin-bottom: 18px; border: 4px solid #7cc04a; }
.abc-card.pop { animation: pop .45s var(--ease-bounce); }
@keyframes pop { from { transform: scale(.9); } }
.abc-card__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); line-height: .9; color: #3d7a22; grid-row: span 2; }
.abc-card__big span { font-size: .55em; color: var(--rb-orange); margin-left: 6px; }
.abc-card__emoji { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; }
.abc-card__word { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; margin: 0; }
.abc-card__word mark { background: var(--sun-300); border-radius: 8px; padding: 0 4px; color: inherit; }
.abc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.abc-key { --k: #2bb39a; min-height: 58px; border-radius: 18px; border: 0; background: #fff; color: color-mix(in srgb, var(--k) 55%, #000); font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; box-shadow: inset 0 0 0 3px var(--k), 0 4px 0 color-mix(in srgb, var(--k) 70%, #000); transition: transform .2s var(--ease-bounce); }
.abc-key:hover, .abc-key[aria-current="true"] { background: var(--k); color: #fff; transform: translateY(-2px); }
.abc-key[aria-current="true"] { color: var(--ink); background: var(--sun-300); }
.abc-key--big { min-height: 100px; font-size: 3rem; }
.abc-key.is-right { background: var(--green-700); color: #fff; }
.abc-key.is-wrong { background: #ffe3dc; animation: shake .4s; }
.abc-find-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
@media (max-width: 420px) { .abc-find-opts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Jogo: Ddey na cidade ---------- */
.car-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: start; justify-content: center; }
@media (max-width: 860px) { .car-wrap { grid-template-columns: 1fr; } }
.car-screen { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 6px var(--ink), var(--shadow); max-width: 420px; width: 100%; margin-inline: auto; background: #8fd17a; }
.car-screen canvas { display: block; width: 100%; aspect-ratio: 360 / 520; height: auto; touch-action: none; cursor: none; }
.car-hud { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.car-hud span { background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: .9rem; }
.car-overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; background: rgba(29,46,43,.72); color: #fff; }
.car-overlay h2 { color: var(--sun-300); margin: 0; }
.car-overlay p { margin: 0 0 8px; }
.car-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.car-controls label { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; min-height: 44px; }
.car-controls input { width: 22px; height: 22px; accent-color: var(--green-700); }

/* ---------- Marca no menu: avatar + escrita fofinha ---------- */
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sun-500); box-shadow: 0 0 0 3px var(--sun-500), 0 4px 10px rgba(0,0,0,.18); transition: transform .3s var(--ease-bounce); }
.brand:hover .brand__avatar { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; font-family: "Sniglet", var(--font-display); font-weight: 800; }
.brand__text small { font-size: .82rem; letter-spacing: .02em; color: var(--green-700); margin-bottom: 1px; }
.brand__text strong { font-size: 2rem; line-height: .95; color: var(--sky-700); letter-spacing: .01em;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 4px 0 rgba(47,110,158,.18); position: relative; }
.brand__text strong::after { content: ""; display: block; height: 4px; width: 92%; margin-top: 3px; border-radius: 4px;
  background: linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-purple)); }
.has-hero .site-header:not(.is-scrolled) .brand__text small { color: var(--sun-300); }
.has-hero .site-header:not(.is-scrolled) .brand__text strong { color: #cfe6fb; text-shadow: 2px 3px 0 rgba(0,0,0,.35); }
html.a11y-contrast .brand__text strong { text-shadow: none; color: #000; }
@media (max-width: 520px) { .brand__avatar { width: 44px; height: 44px; } .brand__text small { font-size: .68rem; } .brand__text strong { font-size: 1.55rem; } }

.coloring canvas { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; background: #fff; border-radius: 24px; touch-action: none; cursor: crosshair; }

.ep-yt { margin: -4px 0 10px; }
.ep-yt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; color: #b3150d; }
.ep-yt svg { width: 20px; height: 20px; }
.lite-yt { background-size: cover, cover; background-position: center, center; }
