/* Pollyfriends Kids: a casa da turminha.
   Gramática "passeio pela casa": cada seção é um cômodo com placa, anfitrião animado, fala curta,
   o que os pais ganham, uma amostra de verdade e as palavrinhas em inglês. Celular primeiro.
   Movimento só com transform e opacity. Estado escondido só vem do site.js (classe .js no html). */

/* ------------------------------------------------------------------ fontes -- */
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens -- */
:root {
  /* marca */
  --roxo: #7c3aed;
  --roxo-escuro: #5b21b6;
  --azul: #3b82f6;
  --rosa: #ec4899;
  --tinta: #1e1b4b;
  --tinta-suave: #433d78;
  --amarelo: #ffc800;
  --amarelo-escuro: #d9a300;
  --noite: #0b1b3f;
  --noite-2: #132a5c;

  /* o dia claro do jardim */
  --ceu-alto: #bfe3ff;
  --ceu: #dcf0ff;
  --ceu-baixo: #f1f9ff;
  --grama: #86d06e;
  --grama-escura: #5cad4a;
  --lilas: #ebdfff;
  --pessego: #ffe5c9;
  --menta: #d4f4dc;
  --rosinha: #ffdcee;
  --limao: #fff2b8;
  --lavanda: #e3e6ff;
  --papel: #fffaf0;
  --madeira: #f6c56b;
  --madeira-escura: #c98a2c;

  /* papéis do motor (scrollcraft.css lê estes) */
  --sc-canvas: var(--ceu-baixo);
  --sc-surface: #ffffff;
  --sc-ink: var(--tinta);
  --sc-ink-soft: var(--tinta-suave);
  --sc-accent: var(--roxo);
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sc-font-text: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* tipo */
  --t-corpo: 1.0625rem;           /* 17 px */
  --t-pequeno: 0.9375rem;
  --t-h1: clamp(2.15rem, 1.5rem + 2.9vw, 4.1rem);
  --t-h2: clamp(1.95rem, 1.45rem + 2.2vw, 3.25rem);
  --t-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);

  /* forma */
  --raio: 28px;
  --raio-m: 20px;
  --raio-p: 14px;
  --pilula: 999px;
  --gutter: clamp(1.1rem, 4.5vw, 4rem);
  --maxw: 74rem;
  --topo-h: 64px;

  /* sombras tingidas da tinta, sempre com deslocamento */
  --sombra-1: 0 1px 2px rgb(30 27 75 / 0.10), 0 6px 14px -6px rgb(30 27 75 / 0.22);
  --sombra-2: 0 2px 4px rgb(30 27 75 / 0.10), 0 14px 30px -10px rgb(30 27 75 / 0.30);
  --sombra-3: 0 4px 8px rgb(30 27 75 / 0.12), 0 26px 60px -18px rgb(30 27 75 / 0.40);

  /* movimento */
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --saida: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ------------------------------------------------------------------- base -- */
html { scroll-padding-top: calc(var(--topo-h) + 24px); }
body {
  font-family: var(--sc-font-text);
  font-size: var(--t-corpo);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--sc-canvas);
  letter-spacing: 0;
}
h1, h2, h3 { font-family: var(--sc-font-display); text-wrap: balance; margin: 0; color: var(--tinta); }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--roxo); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--amarelo); color: var(--tinta); }
.icones { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: currentColor; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.pular {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: var(--pilula);
  font-weight: 800; text-decoration: none;
  transform: translateY(-160%); transition: transform 160ms var(--saida);
}
.pular:focus { transform: none; }

main:focus { outline: none; }

/* --------------------------------------------------------- botão de ação --
   Um estilo só: pílula amarela, texto tinta, 56 px, borda inferior dura que afunda em 80 ms. */
.btn-acao {
  --borda: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px calc(var(--borda) * 0);
  border-radius: var(--pilula);
  background: var(--amarelo);
  color: var(--tinta);
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 var(--borda) 0 var(--amarelo-escuro), 0 10px 22px -10px rgb(30 27 75 / 0.45);
  transform: translateY(0);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn-acao:active {
  transform: translateY(var(--borda));
  box-shadow: 0 0 0 var(--amarelo-escuro), 0 4px 10px -6px rgb(30 27 75 / 0.4);
}
.btn-acao:focus-visible { outline: 3px solid var(--tinta); outline-offset: 4px; border-radius: var(--pilula); }
@media (hover: hover) and (pointer: fine) { .btn-acao:hover { background: #ffd22e; } }
.btn-acao--grande { min-height: 64px; font-size: 1.3rem; padding-inline: 36px; }

/* botões secundários (canal do YouTube) */
.btn-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--pilula);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  transition: transform 80ms ease-out, background-color 140ms ease-out;
}
.btn-sec svg { width: 28px; height: 20px; color: #ff0033; }
.btn-sec:active { transform: translateY(2px); }
.btn-sec--claro { background: #fff; color: var(--tinta); box-shadow: 0 3px 0 #c9cde8; }
.btn-sec--contorno { color: #fff; border: 2px solid rgb(255 255 255 / 0.7); }
@media (hover: hover) and (pointer: fine) {
  .btn-sec--claro:hover { background: #f4f2ff; }
  .btn-sec--contorno:hover { background: rgb(255 255 255 / 0.1); }
}
.btn-sec:focus-visible { outline-color: var(--amarelo); border-radius: var(--pilula); }

.link-suave {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  color: var(--roxo-escuro); font-weight: 800; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}

.redondo {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center;
  background: #fff; color: var(--tinta); box-shadow: 0 3px 0 #d6d0f3, var(--sombra-1);
  cursor: pointer; transition: transform 80ms ease-out;
}
.redondo svg { width: 24px; height: 24px; }
.redondo:active { transform: translateY(3px); box-shadow: 0 0 0 #d6d0f3; }
.redondo:disabled { opacity: 0.4; cursor: default; }

/* ------------------------------------------------------------- cabeçalho -- */
.topo {
  position: fixed; inset: 10px 10px auto; z-index: 90;
  display: flex; justify-content: center; pointer-events: none;
  padding-top: env(safe-area-inset-top);
}
.topo__pilula {
  pointer-events: auto;
  width: 100%; max-width: 76rem; min-height: 60px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: var(--pilula);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, var(--sombra-2);
}
.marca {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-right: 6px;
  color: var(--tinta); text-decoration: none; font-family: var(--sc-font-display); font-weight: 600;
  font-size: 1.12rem; white-space: nowrap; border-radius: var(--pilula);
}
.marca__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--ceu); }
.marca b { color: var(--roxo); font-weight: 700; }
.topo__nav { display: none; margin-left: auto; }
.topo__nav ul { display: flex; gap: 2px; }
.topo__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  border-radius: var(--pilula); color: var(--tinta); text-decoration: none; font-weight: 800; font-size: 0.95rem;
  transition: background-color 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .topo__nav a:hover { background: rgb(124 58 237 / 0.08); } }
.topo__nav a[aria-current="true"] { background: rgb(124 58 237 / 0.12); color: var(--roxo-escuro); }
.topo__nav a[aria-current="true"]::before {
  content: ""; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%;
  background: url("img/marca-mini-polly-96.webp") center / cover, var(--ceu);
}
.topo__entrar {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: var(--pilula); color: var(--tinta); font-weight: 800; text-decoration: none;
}
.btn-acao--topo { display: none; min-height: 48px; font-size: 1.02rem; padding-inline: 20px; }
.topo__menu {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--tinta); color: #fff; flex: none;
}
.topo__menu svg { width: 24px; height: 24px; }
@media (min-width: 700px) {
  .btn-acao--topo { display: inline-flex; }
  .topo__entrar { margin-left: auto; }
}
@media (min-width: 1180px) {
  .topo__nav { display: block; }
  .topo__entrar { margin-left: 0; }
  .topo__menu { display: none; }
}

/* menu do celular: diálogo nativo (foco preso e Esc já vêm do showModal) */
.menu {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: transparent; color: var(--tinta);
}
.menu::backdrop { background: rgb(11 27 63 / 0.45); }
.menu__caixa {
  position: absolute; inset: 10px 10px auto 10px;
  background: #fff; border-radius: var(--raio); padding: 14px 14px 18px;
  box-shadow: var(--sombra-3);
  max-height: calc(100% - 20px); overflow: auto;
}
.menu[open] .menu__caixa { animation: menu-entra 220ms var(--saida); }
@keyframes menu-entra { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.menu__topo { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px 10px; }
.menu__titulo { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.3rem; }
.menu__fechar {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lilas); color: var(--tinta);
  display: grid; place-items: center; cursor: pointer;
}
.menu__fechar svg { width: 22px; height: 22px; }
.menu__lista a {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px;
  border-radius: var(--raio-p); color: var(--tinta); text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 500; font-size: 1.3rem;
}
.menu__lista a[aria-current="true"] { background: var(--lilas); }
.menu__lista a[aria-current="true"]::after {
  content: ""; width: 30px; height: 30px; margin-left: auto; border-radius: 50%;
  background: url("img/marca-mini-polly-96.webp") center / cover, var(--ceu);
}
.menu__acao { display: flex; width: 100%; margin-top: 12px; }
.menu__entrar {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px;
  border-radius: var(--pilula); border: 2px solid var(--lilas); color: var(--tinta); font-weight: 800; text-decoration: none;
}

/* barra de ação do celular */
.barra-acao {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
  transform: translateY(115%); opacity: 0;
  transition: transform 260ms var(--saida), opacity 200ms ease-out;
}
.barra-acao.esta-visivel { transform: none; opacity: 1; }
.barra-acao .btn-acao { width: min(100%, 420px); pointer-events: auto; box-shadow: 0 4px 0 var(--amarelo-escuro), 0 14px 30px -8px rgb(30 27 75 / 0.55); }
.barra-acao .btn-acao:active { box-shadow: 0 0 0 var(--amarelo-escuro), 0 6px 14px -6px rgb(30 27 75 / 0.5); }
@media (min-width: 700px) { .barra-acao { display: none !important; } }

/* -------------------------------------------------------------- comuns -- */
.comodo { position: relative; padding-block: clamp(3.25rem, 7vw, 6rem); scroll-margin-top: 70px; }
.titulo { font-size: var(--t-h2); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; max-width: 18ch; }
.texto { max-width: 34rem; color: var(--tinta-suave); text-wrap: pretty; }
.texto--forte { color: var(--tinta); font-weight: 700; }

/* placa do cômodo: um objeto pendurado, não uma etiqueta de texto */
.placa {
  position: relative; display: inline-flex; align-items: center;
  margin: 34px 0 18px; padding: 10px 18px 10px;
  background: linear-gradient(180deg, #ffd98a, var(--madeira));
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--madeira-escura), var(--sombra-1);
  color: var(--tinta); font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.2;
  transform: rotate(-2.5deg); transform-origin: 50% 0;
}
.placa::before, .placa::after {
  content: ""; position: absolute; top: -26px; width: 2px; height: 30px; background: #a8743a; border-radius: 2px;
}
.placa::before { left: 22px; transform: rotate(14deg); }
.placa::after { right: 22px; transform: rotate(-14deg); }
.placa--noite { background: linear-gradient(180deg, #ffe08a, var(--amarelo)); box-shadow: 0 4px 0 var(--amarelo-escuro), 0 10px 24px -10px rgb(0 0 0 / 0.6); }
.placa--noite::before, .placa--noite::after { background: #ffe9a8; }
.placa--calma { transform: rotate(1.5deg); }

/* o poleiro é onde a Mini Polly pousa (os pés na borda de cima da placa) */
.poleiro { position: absolute; left: 50%; top: 0; width: 1px; height: 1px; pointer-events: none; }
/* Sem JS ou com movimento reduzido, a Mini Polly fica pousada em cada placa (imagem parada). */
.polly-pousada {
  position: absolute; left: 50%; bottom: calc(100% - 6px);
  width: 54px; height: auto; aspect-ratio: 1; object-fit: contain; object-position: bottom;
  transform: translateX(-50%) rotate(2.5deg); pointer-events: none;
}
.placa .polly-pousada { width: 50px; }
html.guia-ativa .polly-pousada { display: none; }

/* fala do bichinho: balão de diálogo */
.fala {
  position: relative; display: inline-block; max-width: 16rem;
  padding: 10px 16px; border-radius: 20px;
  background: #fff; color: var(--tinta);
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.14rem; line-height: 1.2;
  box-shadow: 0 3px 0 rgb(30 27 75 / 0.1), var(--sombra-1);
}
.fala::after {
  content: ""; position: absolute; left: -7px; bottom: 12px; width: 18px; height: 18px;
  background: #fff; border-radius: 3px; transform: rotate(45deg); z-index: -1;
}
.fala--grande { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); padding: 14px 20px; }
.fala--grande b { color: var(--roxo); }

.anfitriao { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 18px; }
.anfitriao .fala { margin-bottom: 70px; }
.anfitriao--direita { justify-content: flex-start; }
.anfitriao--direita .fala::after { left: auto; right: -7px; }

/* palavrinhas: letreiro como nos desenhos (inglês grande, tradução ao lado) */
.palavras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.palavras li, .balao, .letreiro {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px; border-radius: var(--pilula);
  background: #fff; color: var(--tinta-suave); font-weight: 700; font-size: 1rem;
  box-shadow: 0 3px 0 rgb(30 27 75 / 0.12), var(--sombra-1);
}
.palavras b, .balao b, .letreiro b {
  font-family: var(--sc-font-display); font-weight: 700; color: var(--roxo); font-size: 1.15em; letter-spacing: 0.02em;
}
.palavras--centro { justify-content: center; }

/* ------------------------------------------------------------ bichinhos --
   Quadro do recorte: 320 x 384, pés na linha y = 360. O tocador do site.js
   anima por background-position dentro de .bicho__sprite. */
.bicho {
  --l: 140px;
  position: relative; display: block; flex: none;
  width: var(--l); aspect-ratio: 320 / 384;
  padding: 0; margin: 0; border: 0; background: none; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  border-radius: 24px;
}
.bicho:focus-visible { outline: 3px dashed var(--roxo); outline-offset: 2px; }
.bicho__sombra {
  position: absolute; left: 50%; bottom: 3%; width: 58%; height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(30 27 75 / 0.32), rgb(30 27 75 / 0.12) 60%, transparent);
  transform: translateX(-50%);
  transition: transform 260ms var(--saida), opacity 260ms var(--saida);
}
.bicho__pulo { position: absolute; inset: 0; display: block; transform-origin: 50% 94%; }
.bicho__sprite {
  position: absolute; inset: 0; display: block;
  background-repeat: no-repeat;
  transform-origin: 50% 94%;
}
.bicho__img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
/* rosto (busto) como último recurso: encosta embaixo e fica um pouco menor */
.bicho__img.e-rosto { object-fit: contain; padding: 18% 8% 6%; }
.bicho__sprite.tem-folha .bicho__img { opacity: 0; }

/* respirar e pular sem folha (CSS puro, só transform) */
html.movimento .bicho__sprite:not(.tem-folha) { animation: respirar 2.6s ease-in-out infinite; }
html.movimento .bicho:nth-child(2n) .bicho__sprite:not(.tem-folha) { animation-delay: -1.1s; }
html.movimento .amigo:nth-child(3n) .bicho__sprite:not(.tem-folha) { animation-delay: -0.6s; }
@keyframes respirar {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.025, 0.975); }
}
html.movimento .bicho.pulando .bicho__pulo { animation: pulo 620ms var(--saida); }
html.movimento .bicho.pulando .bicho__sombra { animation: sombra-pulo 620ms var(--saida); }
@keyframes pulo {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.08, 0.88); }
  42% { transform: translateY(-26%) scale(0.94, 1.08); }
  70% { transform: translateY(0) scale(1.06, 0.92); }
  84% { transform: translateY(-3%) scale(0.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes sombra-pulo {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  42% { transform: translateX(-50%) scale(0.55); opacity: 0.45; }
}
/* com folha de pulo, o recorte já pula: a sombra acompanha */
html.movimento .bicho.pulando.pulo-folha .bicho__pulo { animation: none; }

/* letreiro que salta no toque, no estilo das legendas dos desenhos */
.letreiro-flutuante {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  padding: 10px 18px; border-radius: 18px;
  background: #fff; color: var(--tinta-suave); font-weight: 800; font-size: 1.05rem; white-space: nowrap;
  box-shadow: 0 4px 0 var(--amarelo), var(--sombra-2);
  opacity: 0; transform: translate(-50%, -100%) scale(0.8);
}
.letreiro-flutuante b { font-family: var(--sc-font-display); color: var(--roxo); font-size: 1.35em; margin-right: 6px; }
.letreiro-flutuante.mostra { animation: letreiro-salta 1500ms var(--saida) forwards; }
@keyframes letreiro-salta {
  0% { opacity: 0; transform: translate(-50%, -80%) scale(0.7); }
  14% { opacity: 1; transform: translate(-50%, -112%) scale(1.08); }
  24% { transform: translate(-50%, -106%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -110%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -128%) scale(0.96); }
}

/* --------------------------------------------- a Mini Polly companheira -- */
.guia {
  position: fixed; left: 0; top: 0; z-index: 85;
  width: var(--guia-l, 70px); aspect-ratio: 320 / 384;
  pointer-events: none; will-change: transform;
}
.guia__corpo { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; transform-origin: 50% 70%; touch-action: manipulation; }
.guia__sprite { position: absolute; inset: 0; }
.guia.voando:not(.tem-voo) .guia__corpo { animation: bater 360ms ease-in-out infinite; }
html.movimento .guia .guia__sprite.acena { animation: pulo 620ms var(--saida); }
@keyframes bater {
  0%, 100% { transform: translateY(0) rotate(-4deg) scaleY(1); }
  50% { transform: translateY(-5px) rotate(3deg) scaleY(0.94); }
}
@media (min-width: 861px) { .guia { --guia-l: 88px; } }

/* --------------------------------------------------------------- 1 JARDIM --
   Celular: texto sobre céu limpo em cima; embaixo, a foto do jardim (casinha e porta lilás)
   dissolvendo no céu por máscara, atrás da turma. Computador: foto em tela cheia, texto à
   esquerda com véu só atrás dele. Camadas em ritmos diferentes: céu, foto, turma, balões. */
.jardim {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--topo-h) + 26px + env(safe-area-inset-top));
  overflow: clip;
  background: linear-gradient(180deg, #8ccfff 0%, #a6d9ff 34%, #c6e6ff 62%, #dcefff 100%);
}
.jardim__ceu { position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; pointer-events: none; }
.nuvem {
  position: absolute; display: block; width: 120px; height: 38px; border-radius: 40px; background: #fff; opacity: 0.85;
  box-shadow: 30px -16px 0 6px #fff, 64px -6px 0 0 #fff;
}
.nuvem--1 { left: 6%; top: 14%; transform: scale(0.8); }
.nuvem--2 { left: 64%; top: 8%; transform: scale(1.05); }
.nuvem--3 { left: 80%; top: 30%; transform: scale(0.6); opacity: 0.7; }
html.movimento .nuvem--1 { animation: nuvem 46s linear infinite alternate; }
html.movimento .nuvem--2 { animation: nuvem 60s linear infinite alternate-reverse; }
html.movimento .nuvem--3 { animation: nuvem 38s linear infinite alternate; }
@keyframes nuvem { to { translate: 40px 0; } }

.jardim__copia { position: relative; z-index: 3; padding-inline: var(--gutter); max-width: 40rem; }
.etiqueta {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
  border-radius: var(--pilula); background: #fff; color: var(--roxo-escuro);
  font-weight: 800; font-size: 0.95rem; box-shadow: var(--sombra-1);
}
.jardim__titulo { margin-top: 12px; font-size: var(--t-h1); font-weight: 600; line-height: 1.02; letter-spacing: -0.015em; }
.destaque {
  font-style: normal; color: var(--roxo); position: relative; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 50 3, 120 3, 197 11' fill='none' stroke='%23ffc800' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left 100% / 100% 0.32em no-repeat;
  padding-bottom: 0.08em;
}
.jardim__texto { margin-top: 10px; max-width: 32rem; color: var(--tinta-suave); font-size: 1.0625rem; line-height: 1.5; }
.jardim__acoes { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.jardim__nota { flex-basis: 100%; font-size: 0.92rem; color: var(--tinta-suave); line-height: 1.35; margin-top: 8px; }
.jardim__acoes .link-suave { margin-top: -4px; }

/* a cena: no celular é a faixa de baixo, com a foto ancorada embaixo */
.jardim__cena { position: relative; z-index: 1; flex: 1 0 auto; min-height: 330px; margin-top: -26px; }
.jardim__moldura {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}
.jardim__foto-camada { position: absolute; inset: -60px 0 0; }
.jardim__foto-camada picture { display: block; width: 100%; height: 100%; }
.jardim__foto { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 58%; }
.jardim__veu { display: none; }

.jardim__turma { position: absolute; inset: 0; z-index: 2; }
.jardim__turma .bicho { position: absolute; bottom: 4px; }
.bicho--manu { --l: min(46vw, 200px); left: -6%; bottom: 14px !important; z-index: 2; }
.bicho--bia  { --l: min(52vw, 230px); left: 22%; z-index: 3; }
.bicho--kiko { --l: min(46vw, 200px); left: 52%; bottom: 10px !important; z-index: 2; }
.casinha { position: absolute; right: 2%; bottom: 22px; width: 42px; z-index: 1; }
html.movimento .casinha .polly-pousada { display: none; }
.casinha__svg { width: 100%; height: auto; }
.casinha .poleiro { top: 8%; }
.casinha .polly-pousada { width: 58px; bottom: 90%; transform: translateX(-50%); }

.baloes { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.balao { position: absolute; font-size: 0.86rem; padding: 6px 12px; white-space: nowrap; }
.balao--1 { left: 3%; top: 26%; transform: rotate(-4deg); }
.balao--2 { right: 4%; top: 22%; transform: rotate(3deg); }
.balao--3 { left: 36%; top: 12%; transform: rotate(2deg); display: none; }
.balao--4 { right: 18%; top: 40%; transform: rotate(-3deg); display: none; }
html.movimento .balao { animation: flutuar 5.5s ease-in-out infinite; }
html.movimento .balao--2 { animation-delay: -1.6s; }
html.movimento .balao--3 { animation-delay: -3s; }
html.movimento .balao--4 { animation-delay: -4.2s; }
@keyframes flutuar { 50% { translate: 0 -8px; } }
@media (min-height: 760px) { .balao--3 { display: inline-flex; } }

@media (min-width: 600px) and (max-width: 860px) {
  .jardim__cena { min-height: 420px; }
  .casinha { width: 60px; right: 4%; }
  .bicho--manu { --l: 220px; left: 6%; }
  .bicho--bia { --l: 250px; left: 30%; }
  .bicho--kiko { --l: 220px; left: 56%; }
  .balao--4 { display: inline-flex; }
}
@media (min-width: 861px) {
  .jardim { padding-top: calc(var(--topo-h) + 40px); justify-content: center; min-height: max(100svh, 640px); background: #e7e4f4; }
  .jardim__ceu { z-index: 0; }
  .jardim__cena { position: absolute; inset: 0; margin: 0; min-height: 0; z-index: 0; }
  .jardim__moldura { -webkit-mask-image: none; mask-image: none; }
  .jardim__foto-camada { inset: -70px 0 0; }
  .jardim__foto { object-position: 50% 100%; }
  /* véu só atrás do texto */
  .jardim__veu {
    display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(52rem 34rem at max(18rem, calc((100vw - var(--maxw)) / 2 + 20rem)) 52%, rgb(236 240 252 / 0.92) 0%, rgb(236 240 252 / 0.84) 42%, rgb(236 240 252 / 0) 72%);
  }
  .jardim { --copia-l: clamp(26rem, 38vw, 36rem); --copia-fim: calc(max(0px, (100vw - var(--maxw)) / 2) + var(--gutter) + var(--copia-l) + 2.5rem); }
  .jardim__copia { margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); padding-left: var(--gutter); max-width: calc(var(--copia-l) + var(--gutter)); margin-block: auto 18vh; }
  .jardim__texto { font-size: 1.15rem; }
  .jardim__turma { inset: auto max(2vw, calc((100vw - 82rem) / 2)) 4vh max(var(--copia-fim), calc(100vw - max(2vw, (100vw - 82rem) / 2) - 780px)); width: auto; height: min(60vh, 540px); }
  .jardim__turma .bicho { bottom: 0; }
  .bicho--manu { --l: clamp(200px, 19vw, 280px); left: 9%; bottom: 16px !important; }
  .bicho--bia  { --l: clamp(230px, 23vw, 330px); left: 30%; }
  .bicho--kiko { --l: clamp(210px, 20vw, 290px); left: 60%; bottom: 10px !important; }
  .casinha { width: clamp(70px, 7vw, 100px); left: 0; right: auto; bottom: 30px; }
  .casinha .polly-pousada { width: 80px; }
  .baloes { inset: auto max(2vw, calc((100vw - 82rem) / 2)) 4vh max(var(--copia-fim), calc(100vw - max(2vw, (100vw - 82rem) / 2) - 780px)); width: auto; height: min(60vh, 540px); }
  .balao { font-size: 1rem; padding: 8px 16px; }
  .balao--1 { left: 4%; top: 12%; }
  .balao--2 { right: 2%; top: 4%; }
  .balao--3 { display: inline-flex; left: 38%; top: 0; }
  .balao--4 { display: inline-flex; right: 4%; top: 32%; }
}

/* ------------------------------------------------------------ 2 TURMINHA -- */
.turminha {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(236 72 153 / 0.10), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgb(59 130 246 / 0.10), transparent 60%),
    var(--lilas);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.turminha__cab { display: grid; gap: 14px; justify-items: start; }
.turminha__cab .placa { margin-bottom: 4px; }

.trilho {
  margin-top: 0;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 14px 18px;
}
.trilho::-webkit-scrollbar { display: none; }
.turma {
  display: flex; gap: 14px; width: max-content;
  padding-inline: var(--gutter);
}
.amigo {
  position: relative; scroll-snap-align: start;
  width: min(74vw, 300px);
  display: grid; justify-items: center; align-content: start; text-align: center;
  padding: 0 16px 20px;
  border-radius: var(--raio);
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in oklab, var(--cor) 26%, white), transparent 70%),
    color-mix(in oklab, var(--cor) 10%, white);
  box-shadow: 0 4px 0 color-mix(in oklab, var(--cor) 30%, white), var(--sombra-1);
}
.amigo .bicho { --l: min(56vw, 214px); margin-top: 0; }
.amigo__nome { margin-top: 2px; font-size: var(--t-h3); font-weight: 600; }
.amigo__quem { color: var(--tinta-suave); font-size: var(--t-pequeno); line-height: 1.35; }
.amigo__valor {
  margin-top: 10px; padding: 4px 12px; border-radius: var(--pilula);
  background: #fff; color: var(--tinta); font-weight: 800; font-size: 0.92rem;
}
.amigo .letreiro { margin-top: 14px; font-size: 1rem; }
.amigo .letreiro.salta { animation: letreiro-pula 700ms var(--mola); }
@keyframes letreiro-pula {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-2deg); }
  100% { transform: scale(1); }
}
.fala--amigo {
  position: absolute; z-index: 2; right: 10px; top: -52px;
  font-size: 1rem; padding: 8px 12px;
  transform: rotate(4deg);
}
.fala--amigo::after { left: 18px; bottom: -6px; }
html.movimento .fala--amigo { animation: chamar 2.4s var(--mola) infinite; }
@keyframes chamar { 0%, 70%, 100% { transform: rotate(4deg) scale(1); } 80% { transform: rotate(-2deg) scale(1.08); } 90% { transform: rotate(5deg) scale(1); } }

.trilho__ctrl { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 18px; }
.trilho__conta { margin-right: auto; font-weight: 800; color: var(--tinta-suave); font-size: 1rem; }
.trilho__conta b { font-family: var(--sc-font-display); color: var(--roxo); font-size: 1.35rem; }
.turminha.tocou .fala--amigo { opacity: 0; visibility: hidden; animation: none; }
html.js .trilho__ctrl[hidden] { display: flex; }

@media (min-width: 861px) {
  .amigo { width: 252px; }
  .amigo .bicho { --l: 196px; }
  .turma { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .trilho { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
}

/* ---------------------------------------------------- 3 QUARTO DAS HISTÓRIAS -- */
.quarto {
  background:
    radial-gradient(40rem 24rem at 100% 10%, rgb(255 200 0 / 0.16), transparent 60%),
    var(--pessego);
}
.quarto__grade { display: grid; gap: 34px; }
.anfitriao .bicho--anfitriao { --l: 132px; margin-left: -12px; }

.quarto__livro { display: grid; justify-items: center; gap: 18px; }
.livro {
  --abre: clamp(0, calc((var(--v, 1) - 0.08) * 2.4), 1);
  position: relative; width: min(100%, 400px);
  perspective: 1400px;
}
.livro__pagina {
  position: relative; display: grid; gap: 14px;
  padding: 18px 18px 22px 26px;
  border-radius: 10px 22px 22px 10px;
  background:
    linear-gradient(90deg, rgb(30 27 75 / 0.10), transparent 12px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgb(124 58 237 / 0.06) 31px 32px),
    var(--papel);
  box-shadow: 4px 6px 0 #ead8bd, var(--sombra-2);
}
.livro__capa {
  position: absolute; inset: 0; transform-origin: 0 50%;
  transform: rotateY(calc(var(--abre) * -104deg));
  opacity: calc(1 - max(0, var(--abre) - 0.3) * 2.6);
  transform-style: preserve-3d; pointer-events: none;
}
.livro__frente, .livro__verso {
  position: absolute; inset: 0; border-radius: 10px 22px 22px 10px; backface-visibility: hidden;
}
.livro__frente {
  display: grid; place-items: center; align-content: center; gap: 14px;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.18), transparent 16px),
    radial-gradient(circle at 70% 20%, rgb(255 255 255 / 0.2), transparent 50%),
    var(--roxo);
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / 0.12);
}
.livro__selo {
  padding: 8px 18px; border-radius: var(--pilula); background: var(--amarelo); color: var(--tinta);
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.1rem;
}
.livro__polly { width: 46%; height: auto; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.livro__verso { background: #f3e7d3; transform: rotateY(180deg); }

.tv { display: grid; gap: 8px; }
.tv__tela {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #c4b5fd, #93c5fd);
  box-shadow: 0 0 0 4px #fff, 0 3px 0 4px #e6dccb;
}
.tv__poster, .tv__tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv__tela video { opacity: 0; transition: opacity 300ms ease-out; }
.tv__tela video.tocando { opacity: 1; }
.tv__legenda { font-size: 0.88rem; color: var(--tinta-suave); text-align: center; line-height: 1.3; }

.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.figurinha {
  --k: clamp(0, calc((var(--abre, 1) - 0.62 - var(--i) * 0.055) * 5), 1);
  aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 0 #eadfcb, 0 0 0 3px #fff;
  transform: scale(calc(0.6 + var(--k) * 0.4)) rotate(calc((1 - var(--k)) * -14deg));
  opacity: var(--k);
  display: grid; place-items: center;
}
.figurinha:nth-child(2n) { rotate: 2deg; }
.figurinha:nth-child(3n) { rotate: -2deg; }
.figurinha img { width: 100%; height: 100%; object-fit: cover; }
.figurinha:empty { background: repeating-linear-gradient(45deg, #fff 0 8px, #fbf3e4 8px 16px); }
.quarto__album { font-weight: 800; color: var(--tinta); text-align: center; max-width: 24rem; text-wrap: balance; }

@media (min-width: 861px) {
  .quarto__grade { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .livro { width: 440px; }
}

/* ------------------------------------------------------- 4 PARQUE DOS JOGOS -- */
.parque {
  background:
    radial-gradient(50rem 26rem at 0% 0%, rgb(255 255 255 / 0.7), transparent 60%),
    linear-gradient(180deg, var(--menta), #d7f2d2);
}
.parque__grade { display: grid; gap: 30px; }
.anfitriao--direita .bicho--anfitriao { --l: 136px; }

.jogos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jogos li { rotate: var(--r); }
.jogo {
  width: 100%; min-height: 64px; height: 100%;
  display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 8px 6px 12px; border: 0; border-radius: 22px;
  background: #fff; color: var(--tinta); text-align: center; cursor: pointer;
  box-shadow: 0 5px 0 #b8e3b0, var(--sombra-1);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.jogo:active { transform: translateY(5px); box-shadow: 0 0 0 #b8e3b0, 0 2px 6px -4px rgb(30 27 75 / 0.3); }
.jogo img { width: 82%; height: auto; aspect-ratio: 1; object-fit: contain; pointer-events: none; }
.jogo__nome { font-family: var(--sc-font-display); font-weight: 600; font-size: min(0.98rem, 3.55vw); line-height: 1.12; text-wrap: balance; }
.inteiro { white-space: nowrap; }
.jogo__frase { font-size: 0.8rem; line-height: 1.25; color: var(--tinta-suave); text-wrap: balance; }
.jogo.balanca img { animation: icone-pula 560ms var(--mola); }
@keyframes icone-pula {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-14%) rotate(-8deg) scale(1.06); }
  70% { transform: translateY(0) rotate(5deg); }
  100% { transform: none; }
}
/* chegada quicando (só quando o site.js arma, e só abaixo da dobra) */
.jogos.quica-armado li { opacity: 0; transform: translateY(40px) scale(0.9); }
.jogos.quica-armado.quicou li { animation: quicar 700ms var(--mola) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes quicar {
  0% { opacity: 0; transform: translateY(40px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@media (min-width: 560px) {
  .jogo__nome { font-size: 1.08rem; }
  .jogo__frase { font-size: 0.88rem; }
  .jogos { gap: 16px; }
}
@media (min-width: 861px) {
  .parque__grade { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .parque__texto { order: 0; }
}

/* ------------------------------------------------------- 5 SALA DE MÚSICA -- */
.musica {
  background:
    radial-gradient(36rem 22rem at 15% 20%, rgb(124 58 237 / 0.10), transparent 60%),
    radial-gradient(36rem 22rem at 85% 70%, rgb(236 72 153 / 0.14), transparent 60%),
    var(--rosinha);
  overflow: clip; text-align: center;
}
.musica__cab { display: grid; justify-items: center; gap: 14px; position: relative; z-index: 1; }
.musica__cab .titulo { max-width: 20ch; }
.musica__notas { position: absolute; inset: 0; pointer-events: none; }
.nota { position: absolute; width: 34px; height: 34px; color: var(--roxo); opacity: 0.35; }
.nota--1 { left: 6%; top: 12%; color: var(--rosa); }
.nota--2 { left: 86%; top: 9%; width: 44px; height: 44px; }
.nota--3 { left: 12%; top: 56%; color: var(--azul); }
.nota--4 { left: 90%; top: 48%; color: var(--rosa); width: 26px; height: 26px; }
.nota--5 { left: 4%; top: 86%; width: 40px; height: 40px; }
.nota--6 { left: 80%; top: 88%; color: var(--azul); }
html.movimento .nota { animation: nota-sobe 7s ease-in-out infinite; }
html.movimento .nota--2 { animation-delay: -2s; }
html.movimento .nota--3 { animation-delay: -3.5s; }
html.movimento .nota--4 { animation-delay: -1s; }
html.movimento .nota--5 { animation-delay: -5s; }
html.movimento .nota--6 { animation-delay: -4s; }
@keyframes nota-sobe {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}
.musica.tocando .nota { opacity: 0.7; animation-duration: 1.6s !important; }

.palco {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "centro centro" "lily pepe";
  gap: 14px 10px; align-items: end; margin-top: 28px;
}
.palco__centro { grid-area: centro; display: grid; gap: 18px; justify-items: center; }
.palco__bicho { display: grid; justify-items: center; gap: 4px; }
.palco__bicho--lily { grid-area: lily; }
.palco__bicho--pepe { grid-area: pepe; }
.palco__bicho .bicho--anfitriao { --l: 128px; }
.palco__bicho .fala::after { left: 50%; bottom: -6px; margin-left: -9px; }
.tv--palco { width: min(100%, 520px); }
.tv--palco .tv__tela { border-radius: 20px; box-shadow: 0 0 0 6px #fff, 0 6px 0 6px #f3c6dc, var(--sombra-2); }
.refroes { display: grid; gap: 10px; width: min(100%, 420px); }
.refrao {
  width: 100%; min-height: 60px;
  display: flex; align-items: center; gap: 14px; padding: 6px 18px 6px 6px;
  border: 0; border-radius: var(--pilula); background: #fff; color: var(--tinta);
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.1rem; text-align: left; cursor: pointer;
  box-shadow: 0 4px 0 #f3c6dc, var(--sombra-1);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.refrao:active { transform: translateY(4px); box-shadow: 0 0 0 #f3c6dc; }
.refrao__icone {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rosa); color: #fff;
}
.refrao__icone svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.refrao__pausa { opacity: 0; }
.refrao[aria-pressed="true"] { box-shadow: 0 4px 0 var(--rosa), var(--sombra-1); }
.refrao[aria-pressed="true"] .refrao__tocar { opacity: 0; }
.refrao[aria-pressed="true"] .refrao__pausa { opacity: 1; }
.refrao[aria-pressed="true"] .refrao__icone { background: var(--roxo); }
html.movimento .musica.tocando .janela__bicho:not(.dancando-folha) .bicho__pulo { animation: danca 520ms ease-in-out infinite; }
html.movimento .musica.tocando .janela__bicho--2 .bicho__pulo { animation-delay: -260ms; }
@keyframes danca {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8%) rotate(3deg); }
}
.musica .palavras { margin-top: 30px; }

@media (min-width: 861px) {
  .palco { grid-template-columns: 1fr minmax(0, 560px) 1fr; grid-template-areas: "lily centro pepe"; gap: 24px; }
  .palco__bicho .bicho--anfitriao { --l: 190px; }
  .refroes { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .refrao { font-size: 1rem; padding-right: 12px; }
}

/* --------------------------------------------------- 6 CANTINHO DO APRENDER -- */
.cantinho { background: linear-gradient(180deg, var(--limao), #ffeaa0); }
.cantinho__grade { display: grid; gap: 28px; }

.brincadeira {
  position: relative; overflow: hidden;
  padding: 18px 16px 20px; border-radius: var(--raio);
  background: #fff; box-shadow: 0 6px 0 #f0e2a6, var(--sombra-2);
  display: grid; gap: 16px;
}
.brincadeira__topo { display: flex; align-items: flex-end; gap: 4px; }
.brincadeira__topo .bicho { --l: 124px; margin-left: -10px; }
.brincadeira__topo .fala { margin-bottom: 40px; background: var(--lilas); }
.brincadeira__topo .fala::after { background: var(--lilas); }
.brincadeira__figuras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.figura {
  aspect-ratio: 1; min-height: 88px; padding: 12%;
  border: 0; border-radius: 22px; cursor: pointer;
  background: var(--ceu-baixo); box-shadow: 0 5px 0 #cfe2f7;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.figura svg { width: 100%; height: 100%; pointer-events: none; }
.figura:active { transform: translateY(5px); box-shadow: 0 0 0 #cfe2f7; }
.figura.certa { background: #dcfce7; box-shadow: 0 5px 0 #86efac; }
.figura.certa svg { animation: icone-pula 600ms var(--mola); }
.figura.quase { animation: balancar 420ms ease-in-out; }
@keyframes balancar {
  20% { transform: translateX(-8px) rotate(-4deg); }
  40% { transform: translateX(7px) rotate(3deg); }
  60% { transform: translateX(-5px) rotate(-2deg); }
  80% { transform: translateX(3px); }
}
.brincadeira__retorno {
  min-height: 1.6em; text-align: center;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.25rem; color: var(--tinta);
}
.brincadeira__retorno b { color: #15803d; }
.brincadeira__retorno.e-quase b { color: var(--roxo); }
.brincadeira__rodadas { display: flex; justify-content: center; gap: 10px; }
.brincadeira__rodadas li { width: 14px; height: 14px; border-radius: 50%; background: #ece6c7; }
.brincadeira__rodadas li.feita { background: var(--amarelo); }
.brincadeira__rodadas li.atual { box-shadow: 0 0 0 3px var(--amarelo); }
.brincadeira__de-novo { justify-self: center; }
.brincadeira__estrelas { position: absolute; inset: 0; pointer-events: none; }
.estrelinha {
  position: absolute; width: 26px; height: 26px; color: var(--amarelo);
  animation: estrela-voa 900ms var(--saida) forwards;
}
@keyframes estrela-voa {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(140deg); }
}

.passos { display: grid; gap: 14px; counter-reset: passo; }
.passos li { display: flex; gap: 14px; align-items: flex-start; }
.passos__icone {
  flex: none; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: #fff; color: var(--roxo); box-shadow: 0 3px 0 #f0e2a6;
}
.passos__icone svg { width: 30px; height: 30px; }
.passos p { padding-top: 12px; color: var(--tinta-suave); }
.passos b { color: var(--tinta); }
.cantinho__texto { display: grid; gap: 18px; align-content: start; }
.trilhas { display: flex; flex-wrap: wrap; gap: 8px; }
.trilhas li {
  padding: 6px 14px; border-radius: var(--pilula); font-weight: 800; font-size: 0.9rem;
  background: #fff; color: var(--tinta); box-shadow: 0 2px 0 #f0e2a6;
}
.trilhas li:nth-child(1) { background: #e0e7ff; }
.trilhas li:nth-child(2) { background: #dcfce7; }
.trilhas li:nth-child(3) { background: #ffe4e6; }
.trilhas li:nth-child(4) { background: #fef3c7; }
.trilhas li:nth-child(5) { background: #e0f2fe; }
.trilhas li:nth-child(6) { background: #f3e8ff; }

@media (min-width: 861px) {
  .cantinho__grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "cab cab" "jogo texto"; gap: 30px 60px; }
  .cantinho__cab { grid-area: cab; }
  .brincadeira { grid-area: jogo; padding: 26px; }
  .cantinho__texto { grid-area: texto; }
  .brincadeira__topo .bicho { --l: 140px; }
}

/* ----------------------------------------------------------- 7 CINEMA -- */
.cinema {
  --sc-ink: #fff;
  color: #fff;
  background:
    radial-gradient(40rem 26rem at 80% 0%, rgb(124 58 237 / 0.35), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgb(59 130 246 / 0.25), transparent 60%),
    var(--noite);
}
.cinema .titulo { color: #fff; }
.cinema .texto { color: #d9def7; }
.cinema__grade { display: grid; gap: 34px; }
.cinema__cab { display: grid; justify-items: start; }
.cinema .anfitriao .fala { background: #fff; }
.cinema__botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.cinema__tela-caixa { display: grid; justify-items: center; }
.telao {
  --abre: clamp(0, calc((var(--v, 1) - 0.12) * 2.2), 1);
  position: relative; width: min(100%, 290px, calc(60svh * 9 / 16)); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #000;
  box-shadow: 0 0 0 8px #24305e, 0 0 0 10px #3a4a85, 0 30px 60px -20px rgb(0 0 0 / 0.8);
}
.telao__tela { position: absolute; inset: 0; }
.telao__tela picture, .telao__poster, .telao__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.telao__video { opacity: 0; background: #000; }
.telao.tocando .telao__video { opacity: 1; }
.telao.tocando .telao__tocar { display: none; }
html:not(.js) .telao__tocar { display: none; }
html:not(.js) .telao__video { opacity: 1; }
.telao__tocar {
  position: absolute; z-index: 3; inset: auto 0 22px; margin-inline: auto; width: max-content;
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 22px 8px 8px;
  border: 0; border-radius: var(--pilula); cursor: pointer;
  background: rgb(255 255 255 / 0.94); color: var(--tinta);
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.08rem;
  box-shadow: 0 4px 0 rgb(0 0 0 / 0.25);
  transition: transform 80ms ease-out;
}
.telao__tocar:active { transform: translateY(3px); }
.telao__bolinha { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--roxo); color: #fff; }
.telao__bolinha svg { width: 24px; height: 24px; margin-left: 3px; }
.cortina {
  position: absolute; z-index: 2; top: 0; bottom: 0; width: 52%;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.0) 0 14px, rgb(0 0 0 / 0.22) 14px 22px, rgb(255 255 255 / 0.06) 22px 28px),
    linear-gradient(180deg, #d0285c, #9f1239);
  pointer-events: none;
}
.cortina--e { left: 0; transform: translateX(calc(var(--abre) * -100%)); border-radius: 0 0 40% 0 / 0 0 6% 0; }
.cortina--d { right: 0; transform: translateX(calc(var(--abre) * 100%)); border-radius: 0 0 0 40% / 0 0 0 6%; }
.telao.tocando .cortina { visibility: hidden; }

.capas-caixa { margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 8px; }
.capas-caixa::-webkit-scrollbar { display: none; }
.capas { display: flex; gap: 14px; width: max-content; padding-inline: var(--gutter); }
.capas li { scroll-snap-align: start; }
.capa {
  display: grid; gap: 10px; width: min(72vw, 300px);
  color: #fff; text-decoration: none; border-radius: 18px;
}
.capa__img {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #312e81, #1d4ed8);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.12);
  transition: transform 160ms var(--saida);
}
.capa__img img { width: 100%; height: 100%; object-fit: cover; }
.capa__tempo {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px;
  background: rgb(11 27 63 / 0.85); color: #fff; font-weight: 800; font-size: 0.82rem;
}
.capa__titulo { font-weight: 800; line-height: 1.3; padding-inline: 2px; }
.capa:active .capa__img { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .capa:hover .capa__img { transform: translateY(-4px); } }
.capa:focus-visible { outline-color: var(--amarelo); }

@media (min-width: 700px) {
  .telao { width: min(100%, 640px); aspect-ratio: 16 / 9; }
}
@media (min-width: 861px) {
  .cinema__grade { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
  .capas { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .capas-caixa { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
}

/* ------------------------------------------------------ 8 VARANDA DOS PAIS -- */
.varanda { background: linear-gradient(180deg, #ffe2c4, #fff0de 40%, #efe5ff); }
.varanda__grade { display: grid; gap: 22px; }
.varanda__tutu { display: grid; justify-items: start; }
.varanda__tutu .janela { width: 100%; }
/* o Tutu cochila: o quadro de olhos fechados da folha "parada" (quadro 11 de 24) */
.cochilo { position: absolute; left: 30%; bottom: 3%; width: 40cqw; aspect-ratio: 320 / 384; }
.cochilo__sprite { position: absolute; inset: 0; display: block; transform-origin: 50% 94%; }
/* a folha só baixa quando a varanda chega perto (classe posta pelo site.js); sem JS, o Tutu parado */
.cochilo.perto .cochilo__sprite { background: url("sprites/tutu-parada.webp") 80% 33.3333% / 600% 400% no-repeat; }
.cochilo.perto .cochilo__sprite .bicho__img { opacity: 0; }
html.movimento .cochilo__sprite { animation: respirar 4.4s ease-in-out infinite; }
.zzz { position: absolute; right: 2%; top: 14%; z-index: 1; display: flex; gap: 2px; font-family: var(--sc-font-display); font-weight: 600; color: var(--azul); }
.zzz span { display: block; font-size: 1.1rem; }
.zzz span:nth-child(2) { font-size: 1.4rem; margin-top: -10px; }
.zzz span:nth-child(3) { font-size: 1.8rem; margin-top: -22px; }
html.movimento .zzz span { animation: zzz 4.2s ease-in-out infinite; }
html.movimento .zzz span:nth-child(2) { animation-delay: 0.7s; }
html.movimento .zzz span:nth-child(3) { animation-delay: 1.4s; }
@keyframes zzz { 0%, 100% { opacity: 0.25; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }

.cuidados { display: grid; gap: 12px; margin-top: 18px; }
.cuidados li { display: flex; gap: 12px; align-items: flex-start; color: var(--tinta); }
.cuidados svg { flex: none; width: 26px; height: 26px; margin-top: 1px; padding: 4px; border-radius: 50%; background: #dcfce7; color: #15803d; }
/* os quatro números reais em destaque */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.numeros div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px;
  padding: 16px 16px 14px; border-radius: var(--raio-m); background: #fff;
  box-shadow: 0 4px 0 var(--borda-num, #e9dcfb), var(--sombra-1);
}
.numeros div:nth-child(1) { --tom: var(--roxo); --borda-num: #e4d6fd; }
.numeros div:nth-child(2) { --tom: #db2777; --borda-num: #fbd1e5; }
.numeros div:nth-child(3) { --tom: #2563eb; --borda-num: #cfe0fd; }
.numeros div:nth-child(4) { --tom: #15803d; --borda-num: #c9efd5; }
.numeros dd { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 0.95; color: var(--tom, var(--roxo)); font-variant-numeric: tabular-nums; }
.numeros dt { font-weight: 800; color: var(--tinta); font-size: 0.98rem; line-height: 1.3; }
@media (min-width: 861px) {
  .varanda__grade { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
  .varanda__tutu { position: sticky; top: 110px; }
  .numeros { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------- 9 PORTA --
   A fachada de verdade (recorte do jardim, a porta lilás no meio) e a turma na frente,
   em duas fileiras desencontradas. A conta do recorte usa cqw: a cena é quadrada. */
.porta {
  position: relative; overflow: clip;
  padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: 30px;
  background: linear-gradient(180deg, #d7ebff 0%, #e6e6f6 46%, #e9f3dc 100%);
  text-align: center;
}
.porta__cab { display: grid; justify-items: center; gap: 12px; }
.porta__titulo { max-width: 16ch; }
.porta .texto { max-width: 26rem; text-align: center; }
.fachada { position: relative; width: min(100%, 640px); margin: 22px auto 0; }
.porta__cena {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%);
}
.porta__cena picture { position: absolute; inset: 0; }
.porta__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.porta__turma { position: absolute; inset: 0; }
.porta__turma .bicho { --l: 26cqw; position: absolute; left: var(--x); transform: translateX(-50%); cursor: default; }
.porta__tras { bottom: 23cqw; z-index: 1; }
.porta__frente { bottom: 2cqw; z-index: 2; }
.capacho { position: relative; display: grid; justify-items: center; gap: 6px; padding: 76px 16px 6px; }
.btn-acao { position: relative; }
.btn-acao .poleiro { left: 76%; top: 3px; }
.missao { margin-top: 22px; font-size: 0.92rem; color: var(--tinta-suave); max-width: 34rem; text-wrap: balance; }
@media (min-width: 700px) {
  .fachada { border-radius: 30px; overflow: hidden; margin-top: 28px; }
  .porta__cena { -webkit-mask-image: none; mask-image: none; }
  .capacho { background: linear-gradient(180deg, #eef7e2, #e4f1d4); padding-bottom: 20px; }
}

/* --------------------------------------------------- janelas dos cômodos --
   Um quadro arredondado com a foto do lugar e o anfitrião animado dentro dela
   (pés no chão, sombra de contato). Proporção fixa: nada pula quando a foto chega. */
.janela {
  position: relative; container-type: inline-size;
  width: 100%; aspect-ratio: 4 / 3; margin: 16px 0 18px;
  border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #efe7f7;
  box-shadow: 0 0 0 5px #fff, 0 7px 0 5px rgb(30 27 75 / 0.07), var(--sombra-2);
}
.janela__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.janela .bicho { position: absolute; --l: 42cqw; left: 6%; bottom: 1%; z-index: 1; }
.janela__fala { position: absolute; z-index: 2; right: 5%; top: 7%; max-width: 54%; }
.janela__fala::after { left: 22px; bottom: -7px; }
.poleiro--janela { left: 82%; top: 95%; }
.janela--quarto .janela__foto { object-position: 50% 70%; }
.janela--bosque .janela__foto { object-position: 50% 60%; }
.janela--musica .janela__foto { object-position: 46% 80%; }
.janela--musica .janela__bicho--1 { left: 2%; }
.janela--musica .janela__bicho--2 { left: auto; right: 4%; --l: 36cqw; }
.janela--musica .janela__fala { right: auto; left: 50%; translate: -50% 0; top: 6%; }
.janela--musica .poleiro--janela { left: 52%; }
.janela--varanda .janela__foto { object-position: 50% 62%; }
.janela--varanda .janela__fala { right: auto; left: 5%; }
@media (min-width: 861px) {
  .janela { aspect-ratio: 16 / 10; }
  .janela .bicho { --l: 34cqw; }
  .janela--musica { max-width: 760px; margin-inline: auto; }
  .janela--musica .janela__bicho--2 { --l: 30cqw; }
  .cochilo { width: 32cqw; }
}

/* ------------------------------------------------------------- rodapé -- */
.rodape { background: var(--tinta); color: #e4e2ff; padding: 30px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.rodape__grade { display: grid; gap: 18px; }
.rodape__marca { display: flex; align-items: center; gap: 10px; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.rodape__marca img { width: 32px; height: 32px; border-radius: 50%; background: var(--ceu); }
.rodape__marca b { color: var(--amarelo); }
.rodape ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.rodape a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; color: #fff; font-weight: 700; text-underline-offset: 0.25em; }
.rodape__mapa a { color: #c4c0f5; font-weight: 600; }
.rodape a:focus-visible { outline-color: var(--amarelo); }
@media (max-width: 699px) { .rodape { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------- abaixo da dobra: peso leve -- */
.comodo, .porta { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.turminha { contain-intrinsic-size: auto 820px; }

/* ------------------------------------------------------ movimento reduzido --
   Nenhuma animação, nenhum vídeo: a página completa e parada. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tv__tela video { display: none; }
}

/* ------------------------------------------------------ rodada 2: ajustes -- */
.palco, .palco { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "centro" !important; margin-top: 22px; }
.musica .janela { margin-top: 6px; }
.musica__cab .texto { text-align: center; }
.telao__poster { object-fit: cover; }

/* ------------------------------------------------------ rodada 3: ajustes -- */
/* letreiro: nunca mais largo que 88% da tela; quebra em duas linhas */
.letreiro-flutuante { max-width: 88vw; white-space: normal; text-align: center; line-height: 1.3; }
.amigo .letreiro { flex-wrap: wrap; justify-content: center; max-width: 100%; text-align: center; row-gap: 0; line-height: 1.3; }
.amigo .letreiro b { font-size: 1.05em; }
/* chips das palavrinhas por cima da capa do livro que abre */
.palavras { position: relative; z-index: 3; }
/* refrão: nome em português numa linha, o inglês embaixo, menor */
.refrao__nome { display: grid; line-height: 1.2; }
.refrao__en { font-family: var(--sc-font-text); font-weight: 700; font-size: 0.84rem; color: var(--tinta-suave); }
/* a companheira some com esmaecimento quando não tem onde pousar */
.guia { transition: opacity 280ms ease-out; }
.guia.sumida { opacity: 0; }
.guia.sumida .guia__corpo { pointer-events: none; }

/* porta que abre: a folha da porta (img/porta-folha.webp) gira para dentro e mostra a luz quente.
   Posição da porta em fração da foto (img/porta.json): celular x .2685 y .1541 l .4241 a .4444;
   computador x .4138 y .1844 l .1575 a .37. */
.porta__luz, .porta__folha { position: absolute; left: 26.85%; top: 15.41%; width: 42.41%; height: 44.44%; }
.porta__luz {
  border-radius: 50% 50% 6% 6% / 56% 56% 5% 5%;
  background: radial-gradient(60% 55% at 50% 62%, #fffbe6 0%, #ffe9a3 45%, #ffc84a 100%);
  transition: box-shadow 900ms ease-out;
}
.porta__cena.aberta .porta__luz, html:not(.movimento) .porta__luz { box-shadow: 0 0 6cqw 2cqw rgb(255 205 90 / 0.7); }
.porta__folha {
  background: url("img/porta-folha.webp") center / 100% 100% no-repeat;
  /* contorno fino da cor do batente para suavizar a borda serrilhada do recorte */
  filter: drop-shadow(0 0 0.6px #e9d3b8) drop-shadow(0 0 0.8px rgb(233 211 184 / 0.8));
  transform-origin: 0 50%;
  transform: perspective(80cqw) rotateY(74deg);
}
html.movimento .porta__cena:not(.aberta) .porta__folha { transform: perspective(80cqw) rotateY(0deg); }
html.movimento .porta__folha { transition: transform 1200ms cubic-bezier(0.3, 1.25, 0.5, 1); transition-delay: 150ms; }
.porta__turma .bicho { --l: 26cqw; }
.porta__tras { bottom: 31cqw; }
.porta__frente { bottom: 3cqw; }
@media (min-width: 700px) {
  .fachada { width: min(100%, 860px); }
  .porta__cena { aspect-ratio: 16 / 9; }
  .porta__luz, .porta__folha { left: 41.38%; top: 18.44%; width: 15.75%; height: 37%; }
  .porta__turma .bicho { --l: 15cqw; }
  .porta__tras { bottom: 10cqw; }
  .porta__frente { bottom: 0; }
}

/* ------------------------------------------------------ rodada 4: a faixa do letreiro --
   No alto de cada cartão, acima da cabeça do bichinho, uma faixa de altura fixa (reservada
   desde o começo: nada empurra o layout). O letreiro do toque aparece nela e nunca cobre o
   bichinho. Frases longas quebram em até 3 linhas e, se precisar, a letra diminui
   (mínimo 16 px no inglês e 14 px na tradução). */
.amigo__faixa {
  width: 100%; height: 92px; margin: 12px 0 2px;
  display: grid; place-items: center; text-align: center;
}
.amigo__faixa .fala--amigo { position: relative; right: auto; top: auto; }
.letreiro-cartao {
  display: inline-block; max-width: 100%;
  padding: 7px 14px; border-radius: 18px;
  background: #fff; color: var(--tinta-suave); font-weight: 800; font-size: 0.95rem; line-height: 1.22;
  box-shadow: 0 4px 0 var(--amarelo), var(--sombra-1);
  text-wrap: balance;
}
.letreiro-cartao b { font-family: var(--sc-font-display); color: var(--roxo); font-size: 1.12rem; margin-right: 4px; }
.letreiro-cartao.apertado { font-size: 0.875rem; padding: 5px 10px; }
.letreiro-cartao.apertado b { font-size: 1rem; }
html.movimento .letreiro-cartao { animation: letreiro-cartao 2600ms var(--saida) forwards; }
@keyframes letreiro-cartao {
  0% { opacity: 0; transform: translateY(10px) scale(0.86); }
  10% { opacity: 1; transform: translateY(-3px) scale(1.06); }
  18% { transform: none; }
  86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}
/* a faixa guarda o letreiro no alto; o pulo de reserva (sem folha) no cartão é baixo,
   para a caixa do bichinho nunca subir até o letreiro */
.amigo__faixa { height: 80px; align-content: start; margin: 12px 0 0; }
.amigo .bicho { margin-top: 22px; }
html.movimento .amigo .bicho.pulando .bicho__pulo { animation-name: pulo-baixo; }
@keyframes pulo-baixo {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.06, 0.9); }
  42% { transform: translateY(-7%) scale(0.95, 1.06); }
  70% { transform: translateY(0) scale(1.05, 0.94); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (min-width: 861px) {
  .amigo { width: 276px; padding-inline: 12px; }
}

/* ------------------------------------------------------ capa: a Mini Polly é a estrela --
   Ela é a maior figura da cena, na frente; Bia, Manu e Kiko ao lado e um pouco atrás.
   Sem véu sobre a foto: o texto fica sobre o céu. */
.destaque { color: #5f21cc; font-weight: 700; }
.jardim__veu { display: none !important; }
.jardim__titulo, .jardim__texto, .jardim__nota { text-shadow: 0 1px 0 rgb(255 255 255 / 0.35); }
.jardim__texto, .jardim__nota { color: #2b2566; }
.casinha { display: none; }
.jardim__turma .bicho--heroi { --l: min(56vw, 220px); left: 50%; translate: -50% 0; bottom: 2px; z-index: 5; }
.jardim__turma .bicho--manu { --l: min(36vw, 150px); left: -4%; bottom: 30px !important; z-index: 2; }
.jardim__turma .bicho--kiko { --l: min(38vw, 158px); left: auto; right: -4%; bottom: 26px !important; z-index: 2; }
.jardim__turma .bicho--bia { display: none; }
@media (min-width: 600px) and (max-width: 860px) {
  .jardim__turma .bicho--heroi { --l: 250px; }
  .jardim__turma .bicho--bia { display: block; --l: 170px; left: 4%; bottom: 40px !important; z-index: 1; }
  .jardim__turma .bicho--manu { --l: 170px; left: 18%; }
  .jardim__turma .bicho--kiko { --l: 180px; right: 6%; }
}
@media (min-width: 861px) {
  .jardim__turma .bicho--heroi { --l: clamp(300px, 26vw, 390px); left: 46%; bottom: -10px; }
  .jardim__turma .bicho--bia { display: block; --l: clamp(170px, 15vw, 230px); left: 6%; bottom: 40px !important; z-index: 2; }
  .jardim__turma .bicho--manu { --l: clamp(160px, 14vw, 215px); left: 22%; bottom: 60px !important; z-index: 1; }
  .jardim__turma .bicho--kiko { --l: clamp(170px, 15vw, 230px); left: auto; right: 0; bottom: 34px !important; z-index: 2; }
  .jardim__turma { height: min(68vh, 600px); }
}
.guia.escondida { transition: none; opacity: 0; }
.guia.escondida .guia__corpo { pointer-events: none; }

/* ------------------------------------------------------ capa nova: a casa da turminha --
   Sem véu sobre a foto. Celular: fundo ampliado 1,38 vez, centrado na porta e ancorado
   pelo telhado logo abaixo do texto; a Mini Polly grande na frente e dois amigos.
   Computador: como a montagem do ATIVOS: casa à direita, a Mini Polly grande à esquerda
   da porta, Bia, Manu e Kiko no caminho de pedrinhas, o texto sobre o céu e as colinas. */
.jardim { background: #5483fd; }
.jardim__ceu { display: none; }
.jardim__moldura { -webkit-mask-image: none !important; mask-image: none !important; }
/* brilho local discreto atrás do bloco de texto (o céu da foto é azul forte) */
.jardim__brilho {
  position: absolute; z-index: 1; pointer-events: none;
  left: -10%; right: -10%; top: 0; height: 640px;
  background: radial-gradient(60% 50% at 42% 44%, rgb(236 245 255 / 0.86) 0%, rgb(236 245 255 / 0.72) 48%, rgb(236 245 255 / 0) 100%);
}
.jardim__titulo, .jardim__texto, .jardim__nota { text-shadow: none; }
.jardim__texto, .jardim__nota { color: #262060; }
@media (max-width: 860px) {
  .jardim { min-height: max(100svh, calc(615px + 86vw)); }
  .jardim__cena { position: absolute; inset: 0; margin: 0; min-height: 0; z-index: 0; }
  .jardim__moldura { overflow: hidden; }
  .jardim__foto-camada {
    inset: auto; left: -40.3vw; width: 138vw; height: 245.4vw;
    top: calc(575px - 110.4vw);
  }
  .jardim__foto { object-fit: fill; }
  .jardim__turma { inset: 0; z-index: 2; }
  .jardim__turma .bicho--heroi { --l: min(58vw, 230px); left: 50%; translate: -56% 0; bottom: 6px; }
  .jardim__turma .bicho--manu { --l: min(34vw, 140px); left: auto; right: 2%; bottom: 14px !important; }
  .jardim__turma .bicho--kiko { --l: min(34vw, 140px); right: auto; left: -2%; bottom: 12px !important; }
  .baloes { inset: auto 0 calc(min(58vw, 230px) * 1.1) 0; height: 120px; }
  .balao--1 { left: 4%; top: auto; bottom: 10px; }
  .balao--2 { right: 4%; top: auto; bottom: 30px; }
  .balao--3, .balao--4 { display: none !important; }
}
@media (min-width: 861px) {
  .jardim { --pl: max(var(--copia-fim), 47vw); --pw: clamp(250px, 25vw, 400px); }
  .jardim__brilho { left: 0; right: auto; width: calc(var(--copia-fim) + 4vw); top: 0; bottom: 0; height: auto;
    background: radial-gradient(62% 52% at 46% 52%, rgb(238 246 255 / 0.85) 0%, rgb(238 246 255 / 0.66) 52%, rgb(238 246 255 / 0) 100%); }
  .jardim__foto { object-position: 62% 100%; }
  .jardim__turma { inset: 0; width: auto; height: auto; }
  .jardim__turma .bicho--heroi { --l: var(--pw); left: var(--pl); translate: 0 0; bottom: 3vh; }
  .jardim__turma .bicho--bia  { --l: calc(var(--pw) * 0.46); left: calc(var(--pl) + var(--pw) * 0.82); right: auto; bottom: 3.5vh !important; }
  .jardim__turma .bicho--manu { --l: calc(var(--pw) * 0.44); left: calc(var(--pl) + var(--pw) * 1.16); right: auto; bottom: 5vh !important; }
  .jardim__turma .bicho--kiko { --l: calc(var(--pw) * 0.46); left: calc(var(--pl) + var(--pw) * 1.5); right: auto; bottom: 3.5vh !important; }
  .baloes { inset: 12vh 3vw auto var(--pl); width: auto; height: 34vh; }
  .balao--1 { left: 0; top: 30%; }
  .balao--2 { right: 0; top: 0; }
  .balao--3 { left: 34%; top: 0; }
  .balao--4 { right: 6%; top: 46%; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .jardim__turma .bicho--kiko { display: none; }
}
/* ajuste da capa: no celular a tela fecha com a Mini Polly na frente da porta */
@media (max-width: 860px) {
  .jardim { min-height: max(100svh, 835px); }
}
@media (min-width: 600px) and (max-width: 860px) {
  .jardim { min-height: max(100svh, 900px); }
  .jardim__foto-camada { left: -21vw; width: 110vw; height: 195.6vw; top: calc(430px - 88vw); }
  .jardim__turma .bicho--heroi { --l: 300px; }
  .jardim__turma .bicho--manu, .jardim__turma .bicho--kiko { --l: 190px; }
  .jardim__turma .bicho--bia { display: none; }
  .baloes { bottom: 360px; }
}
@media (min-width: 861px) {
  .jardim__brilho {
    background: radial-gradient(58% 46% at 44% 47%, rgb(238 246 255 / 0.93) 0%, rgb(238 246 255 / 0.84) 50%, rgb(238 246 255 / 0) 100%);
  }
}
@media (min-width: 861px) {
  /* o brilho acompanha a coluna do texto em qualquer largura */
  .jardim__brilho {
    left: max(0px, calc((100vw - var(--maxw)) / 2 - 8vw)); right: auto;
    width: calc(var(--copia-l) + var(--gutter) + 16vw); top: 0; bottom: 0; height: auto;
    background: radial-gradient(50% 40% at 50% 47%, rgb(238 246 255 / 0.94) 0%, rgb(238 246 255 / 0.86) 55%, rgb(238 246 255 / 0) 100%);
  }
}

/* ------------------------------------------------------ capa: a turma na mesma escala --
   Os quatro com o mesmo quadro (a escala real dos modelos). A Mini Polly no meio e meio
   passo à frente: principal pela posição, não pelo tamanho. */
.jardim__turma .bicho.na-capa { translate: 0 0; }
@media (max-width: 599px) {
  .jardim { --tl: min(46vw, 178px); }
  .jardim__turma .bicho--kiko { --l: var(--tl); left: calc(50% - var(--tl) * 1.06); right: auto; bottom: 14px !important; z-index: 2; }
  .jardim__turma .bicho--heroi { --l: var(--tl); left: calc(50% - var(--tl) * 0.5); bottom: 4px; z-index: 5; }
  .jardim__turma .bicho--manu { --l: var(--tl); left: calc(50% + var(--tl) * 0.06); right: auto; bottom: 14px !important; z-index: 2; }
  .jardim__turma .bicho--bia { display: none; }
  .baloes { inset: auto 0 calc(var(--tl) * 1.2 + 24px) 0; height: 110px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .jardim { --tl: min(220px, 34vw); }
  .jardim__turma .bicho--bia, .jardim__turma .bicho--heroi, .jardim__turma .bicho--manu, .jardim__turma .bicho--kiko { --l: var(--tl); right: auto; display: block; }
  .jardim__turma .bicho--bia { left: calc(50% - var(--tl) * 1.33); bottom: 18px !important; z-index: 2; }
  .jardim__turma .bicho--heroi { left: calc(50% - var(--tl) * 0.78); bottom: 6px; z-index: 5; }
  .jardim__turma .bicho--manu { left: calc(50% - var(--tl) * 0.22); bottom: 18px !important; z-index: 3; }
  .jardim__turma .bicho--kiko { left: calc(50% + var(--tl) * 0.33); bottom: 18px !important; z-index: 2; }
  .baloes { inset: auto 0 calc(var(--tl) * 1.2 + 30px) 0; height: 120px; }
}
@media (min-width: 861px) {
  /* o texto encosta na margem esquerda e a turma ganha o resto da largura */
  .jardim { --copia-fim: calc(var(--gutter) + var(--copia-l) + 2.5rem);
    --tl: min(clamp(200px, 21vw, 460px), calc((100vw - 2vw - var(--copia-fim)) / 2.7));
    --tx: calc(var(--copia-fim) + max(0px, (100vw - 2vw - var(--copia-fim) - var(--tl) * 2.65) / 2)); }
  .jardim__copia { margin-left: 0; }
  .jardim__brilho { left: 0; width: calc(var(--copia-fim) + 8vw); }
  .jardim__turma .bicho--bia, .jardim__turma .bicho--heroi, .jardim__turma .bicho--manu, .jardim__turma .bicho--kiko { --l: var(--tl); right: auto; display: block; }
  .jardim__turma .bicho--bia { left: var(--tx); bottom: 4.5vh !important; z-index: 2; }
  .jardim__turma .bicho--heroi { left: calc(var(--tx) + var(--tl) * 0.55); bottom: 2vh; z-index: 5; }
  .jardim__turma .bicho--manu { left: calc(var(--tx) + var(--tl) * 1.1); bottom: 4.5vh !important; z-index: 3; }
  .jardim__turma .bicho--kiko { left: calc(var(--tx) + var(--tl) * 1.65); bottom: 4.5vh !important; z-index: 2; }
  .baloes { inset: auto 2vw calc(4.5vh + var(--tl) * 1.18) var(--copia-fim); height: min(26vh, 240px); }
  .balao--1 { left: 2%; top: 55%; }
  .balao--2 { right: 0; top: 10%; }
  .balao--3 { left: 36%; top: 0; }
  .balao--4 { right: 14%; top: 62%; }
}
@media (min-width: 861px) {
  .jardim__brilho {
    left: 0; width: calc(var(--copia-fim) + 10vw);
    background: radial-gradient(56% 56% at 46% 50%, rgb(238 246 255 / 0.95) 0%, rgb(238 246 255 / 0.9) 58%, rgb(238 246 255 / 0) 100%);
  }
}

/* ------------------------------------------- chamada das pelúcias (fim da turminha) -- */
.faixa-pelucias {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; margin-top: 30px; padding: 18px 18px 24px;
  border-radius: var(--raio); text-align: center;
  background: radial-gradient(70% 80% at 50% 30%, #ffe27a, transparent 75%), linear-gradient(160deg, #ff8cc6, #8b5cf6);
  box-shadow: 0 5px 0 #6d28d9, var(--sombra-2);
}
.faixa-pelucias__trio { display: flex; align-items: flex-end; justify-content: center; }
.faixa-pelucias__trio li { width: min(30vw, 150px); margin-inline: -4%; }
.faixa-pelucias__trio img { width: 100%; height: auto; filter: drop-shadow(0 6px 5px rgb(30 27 75 / 0.3)); }
.faixa-pelucias__meio { position: relative; z-index: 1; }
.faixa-pelucias__texto { display: grid; justify-items: center; gap: 8px; width: 100%; min-width: 0; }
.faixa-pelucias__titulo, .faixa-pelucias__texto p { max-width: 100%; overflow-wrap: break-word; }
.faixa-pelucias__titulo { color: #fff; font-size: var(--t-h3); font-weight: 600; line-height: 1.15; text-shadow: 0 2px 0 rgb(30 27 75 / 0.25); }
.faixa-pelucias__texto p { color: #fff; font-weight: 700; max-width: 26rem; text-shadow: 0 1px 0 rgb(30 27 75 / 0.25); }
.faixa-pelucias__texto .btn-acao { margin-top: 6px; }
@media (min-width: 861px) {
  .faixa-pelucias { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 30px; padding: 18px 40px; }
  .faixa-pelucias__texto { justify-items: start; }
}

/* ------------------------------------------------ estante dos livros (Kindle) --
   Carrossel no mesmo trilho da turminha (setas e contador do site.js). Livro novo = mais um
   <li class="livro-kindle"> no fim da .livros-lista; o contador conta sozinho. "Em breve": classe --breve. */
.livros {
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem);
  background:
    radial-gradient(36rem 22rem at 0% 0%, rgb(255 200 0 / 0.16), transparent 60%),
    var(--lilas);
}
.livros__cab { display: grid; gap: 12px; justify-items: start; }
.livros .titulo { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.livros .trilho__ctrl { margin-top: 10px; }
.livros-lista {
  display: flex; gap: 16px; width: max-content;
  padding-inline: var(--gutter);
}
.livro-kindle {
  scroll-snap-align: start;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 2px;
  align-content: center; justify-items: start; text-align: left;
  width: min(86vw, 400px); padding: 14px 18px 14px 14px;
  background: var(--papel); border-radius: var(--raio);
  box-shadow: 0 4px 0 rgb(124 58 237 / 0.14), var(--sombra-2);
}
.livro-kindle__capa {
  grid-row: 1 / span 5; align-self: center;
  width: 96px; height: auto; aspect-ratio: 480 / 768;
  border-radius: 3px 8px 8px 3px;
  box-shadow: -3px 0 0 rgb(30 27 75 / 0.18) inset, var(--sombra-2);
  transform: rotate(-2deg);
  transition: transform 260ms var(--mola);
}
@media (hover: hover) and (pointer: fine) {
  .livro-kindle:hover .livro-kindle__capa { transform: rotate(0deg) translateY(-3px); }
}
.livro-kindle__volume {
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--roxo-escuro);
}
.livro-kindle__titulo { font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.livro-kindle__sub { color: var(--tinta-suave); font-weight: 700; font-size: 0.92rem; text-wrap: balance; }
.livro-kindle__botao { margin-top: 8px; }
.livro-kindle--breve .livro-kindle__capa { filter: saturate(0.6); opacity: 0.85; }
.livro-kindle__breve {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 20px;
  border-radius: var(--pilula); background: var(--lavanda); color: var(--roxo-escuro); font-weight: 800;
}
@media (min-width: 861px) {
  .livros-lista { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
}
