* {
  box-sizing: border-box;
}

:root {
  --pink: #dc6c52;
  --pink-dark: #a94e3b;

  --nav: #e88772;
  --nav-dark: #b95f4d;

  --cream: #f3e4cf;
  --cream-light: #fff8ee;

  --purple: #9fb58a;
  --purple-dark: #76895f;

  --blue: #3f8790;
  --blue-dark: #2d6269;

  --yellow: #f2cf72;
  --yellow-dark: #c49b3f;

  --text: #352315;
  --shadow: rgba(52, 35, 21, 0.18);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(242, 207, 114, 0.25) 0, transparent 30%),
    linear-gradient(135deg, #fff8ee, #f3e4cf);
}

body {
  display: grid;
  place-items: center;
  padding: 10px;
}

.book-shell {
  width: min(1280px, 100%);
  min-height: 620px;
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 72px;
  gap: 12px;
  padding: 16px;
  border-radius: 30px;
  background: rgba(255, 248, 238, 0.82);
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px var(--shadow);
}

/* TOPO */

.book-topbar {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 24px;
  background: var(--cream);
}

.top-btn,
.logo-pill,
.nav-btn,
.sound-btn {
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    box-shadow 0.14s ease;
}

.top-btn,
.logo-pill {
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 16px;
  color: white;
  text-align: center;
  background: var(--nav);
  box-shadow: 0 5px 0 var(--nav-dark);
}

.top-btn:focus,
.logo-pill:focus,
.nav-btn:focus,
.sound-btn:focus,
.top-btn:focus-visible,
.logo-pill:focus-visible,
.nav-btn:focus-visible,
.sound-btn:focus-visible {
  border: none;
  outline: none;
}

.page-status {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 18px;
}

.progress-track {
  width: min(420px, 100%);
  height: 14px;
  background: #ead9f7;
  border: 2px solid white;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

/* MEIO */

.book-main {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 16px;
  min-height: 0;
}

.stage-area,
.text-panel {
  border-radius: 28px;
  border: 5px solid white;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(97, 44, 89, 0.18);
}

.stage-area {
  position: relative;
  background: #f9d6ef;
}

.stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* MARCAÇÃO TEMPORÁRIA DOS PERSONAGENS */

.character-placeholder {
  position: absolute;
  bottom: 12%;
  width: 18%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 22px;
  border: 3px dashed rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.42);
  font-size: clamp(12px, 1.1vw, 17px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.character-placeholder.left {
  left: 13%;
}

.character-placeholder.center {
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 21%;
  background: rgba(255, 247, 170, 0.65);
  border-style: solid;
}

.character-placeholder.right {
  right: 13%;
}

/* PAINEL DIREITO */

.text-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, var(--cream-light), #f5e6d0);
}

.story-card {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 3px solid rgba(255, 255, 255, 0.85);
  min-height: 0;
}

.story-card p {
  margin: 0;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 1.42vw, 25px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* BOTÕES DO PAINEL */

.sound-buttons {
  display: grid;
  gap: 10px;
}

.sound-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 17px;
  padding: 10px 12px;
  font-size: 16px;
  color: white;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.story-btn {
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-dark);
}

.music-btn {
  background: var(--yellow);
  color: #5b3b17;
  box-shadow: 0 5px 0 var(--yellow-dark);
}

.play-btn {
  background: var(--purple);
  box-shadow: 0 5px 0 var(--purple-dark);
}

/* RODAPÉ */

.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 24px;
  background: var(--cream);
}

.nav-btn {
  min-width: 230px;
  min-height: 50px;
  border-radius: 18px;
  padding: 12px 20px;
  font-size: 17px;
  color: white;
  background: var(--nav);
  box-shadow: 0 5px 0 var(--nav-dark);
}

/* ANIMAÇÃO FOFA DOS BOTÕES */

.sound-btn::after,
.nav-btn::after,
.top-btn::after,
.logo-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.sound-btn:hover,
.nav-btn:hover,
.top-btn:hover,
.logo-pill:hover {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.07);
}

.sound-btn:hover::after,
.nav-btn:hover::after,
.top-btn:hover::after,
.logo-pill:hover::after {
  animation: brilhoBotao 0.7s ease;
}

.sound-btn:active,
.nav-btn:active,
.top-btn:active,
.logo-pill:active {
  transform: translateY(4px) scale(0.96);
  filter: brightness(0.95);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.sound-btn.is-playing {
  animation: botaoTocando 0.9s ease-in-out infinite;
}

.sound-btn.is-playing::after {
  animation: brilhoBotao 1.4s ease-in-out infinite;
}

@keyframes botaoTocando {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.045);
    filter: brightness(1.12);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes brilhoBotao {
  0% {
    left: -80%;
  }

  100% {
    left: 130%;
  }
}

/* RESPONSIVO */

@media (max-width: 900px) {
  body {
    padding: 10px;
  }

  .book-shell {
    aspect-ratio: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
    padding: 12px;
    border-radius: 24px;
  }

  .book-topbar {
    grid-template-columns: 1fr;
  }

  .book-main {
    grid-template-columns: 1fr;
  }

  .stage-area {
    aspect-ratio: 4 / 3;
  }

  .text-panel {
    min-height: 380px;
  }

  .book-footer {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
  }
}
.personagem {
  position: absolute;
  z-index: 5;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Personagens da Página 1 */
.personagem-biscoito {
  left: 8%;
  bottom: 15%;
  width: 14%;
}

.personagem-cururu {
  left: 25%;
  bottom: 15%;
  width: 15%;
}

/* POSIÇÃO FINAL DA PULGA NO PALCO */
.personagem-pulga {
  left: 44%;
  bottom: 42%;
  width: 12.5%;
  transform: translateX(-50%);
  z-index: 30;
}

.personagem-rato {
  right: 24%;
  bottom: 15%;
  width: 16%;
}

.personagem-sapo {
  right: 8%;
  bottom: 15%;
  width: 15%;
}
.stage-area {
  position: relative;
  overflow: hidden;
}

.stage-bg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.personagem {
  position: absolute;
  z-index: 10;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Personagens da Página 1 */
.personagem-biscoito {
  left: 8%;
  bottom: 14%;
  width: 14%;
}

.personagem-cururu {
  left: 25%;
  bottom: 14%;
  width: 15%;
}

.personagem-pulga {
  left: 50%;
  bottom: 16%;
  width: 18%;
  transform: translateX(-50%);
}

.personagem-rato {
  right: 24%;
  bottom: 14%;
  width: 16%;
}

.personagem-sapo {
  right: 8%;
  bottom: 14%;
  width: 15%;
}
/* AJUSTE PULGA — MAIS EM CIMA NO PALCO */
.personagem-pulga {
  left: 44% !important;
  bottom: 42% !important;
  width: 12.5% !important;
  transform: translateX(-50%) !important;
  z-index: 30 !important;
}
.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.nav-btn {
  text-decoration: none !important;
}

.nav-btn:hover,
.nav-btn:focus,
.nav-btn:visited {
  text-decoration: none !important;
}
/* ===============================
   BRINCAR — SHOW DA PULGA EM SEQUÊNCIA
================================ */

.personagem-biscoito.brincando {
  animation: biscoitoSusto 0.75s ease-in-out;
}

.personagem-cururu.brincando {
  animation: cururuPulo 0.75s ease-in-out;
}

.personagem-pulga.brincando {
  animation: pulgaShow 0.8s ease-in-out;
}

.personagem-rato.brincando {
  animation: ratoBalanca 0.75s ease-in-out;
}

.personagem-sapo.brincando {
  animation: sapoComemora 0.75s ease-in-out;
}

@keyframes biscoitoSusto {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-8px) rotate(-4deg);
  }

  60% {
    transform: translateY(3px) rotate(3deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes cururuPulo {
  0% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-16px) scale(1.04);
  }

  70% {
    transform: translateY(3px) scale(0.98);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes ratoBalanca {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  35% {
    transform: translateY(-6px) rotate(3deg);
  }

  70% {
    transform: translateY(2px) rotate(-2deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes sapoComemora {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-12px) rotate(4deg);
  }

  65% {
    transform: translateY(3px) rotate(-3deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* A Pulga mantém translateX(-50%) para não sair do palquinho */
@keyframes pulgaShow {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  30% {
    transform: translateX(-50%) translateY(-10px) rotate(-3deg);
  }

  60% {
    transform: translateX(-50%) translateY(2px) rotate(2deg);
  }

  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
}
/* ===============================
   PÁGINA 2 — NAVIO NO MAR
================================ */

.pag2-progress {
  width: 20%;
}

.pag2-stage {
  position: relative;
  overflow: hidden;
  background: #26aee4;
}

.pag2-stage .stage-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pag2-layer {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Gaivota no céu */
.pag2-gaivota {
  z-index: 4;
  left: 12%;
  top: 18%;
  width: 16%;
  animation: gaivotaBalanca 3.4s ease-in-out infinite;
}

/* Navio com os personagens */
.pag2-navio {
  z-index: 5;
  right: -2%;
  bottom: 9%;
  width: 78%;
  animation: navioBalanca 4s ease-in-out infinite;
}

/* Tubarão atrás das ondas */
.pag2-tubarao {
  z-index: 6;
  left: 42%;
  bottom: 9%;
  width: 24%;
  animation: tubaraoEspia 3.8s ease-in-out infinite;
}

/* Ondas na frente escondendo o tubarão */
.pag2-onda1 {
  z-index: 8;
  left: -8%;
  bottom: -2%;
  width: 70%;
  animation: ondaVaiVem 3.6s ease-in-out infinite;
}

.pag2-onda2 {
  z-index: 9;
  right: -10%;
  bottom: -4%;
  width: 78%;
  animation: ondaVaiVem2 4.2s ease-in-out infinite;
}

@keyframes navioBalanca {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(-1deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes ondaVaiVem {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(12px) translateY(-4px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes ondaVaiVem2 {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-14px) translateY(-5px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes tubaraoEspia {
  0% {
    transform: translateY(8px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }

  100% {
    transform: translateY(8px) rotate(0deg);
  }
}

@keyframes gaivotaBalanca {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}
/* ===============================
   BRINCAR — PÁGINA 2
   Tubarão sobe entre as ondas
================================ */

.pag2-tubarao.brincando {
  animation: tubaraoSurpresa 1.2s ease-in-out;
}

@keyframes tubaraoSurpresa {
  0% {
    transform: translateY(8px) rotate(0deg);
  }

  35% {
    transform: translateY(-42px) rotate(2deg);
  }

  65% {
    transform: translateY(-35px) rotate(-1deg);
  }

  100% {
    transform: translateY(8px) rotate(0deg);
  }
}
/* ===============================
   PÁGINA 3 — FAZENDINHA
================================ */

.pag3-progress {
  width: 30%;
}

.pag3-stage {
  position: relative;
  overflow: hidden;
  background: #8fd7f7;
}

.pag3-layer {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Fundo */
.pag3-ceu {
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Montanha */
.pag3-montanha {
  z-index: 2;
  left: 0;
  bottom: 24%;
  width: 100%;
}

/* Grama principal */
.pag3-grama {
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
}

/* Graminha da frente */
.pag3-graminha {
  z-index: 9;
  left: 0;
  bottom: 0;
  width: 100%;
}

/* Casinha */
.pag3-casinha {
  z-index: 5;
  left: 8%;
  bottom: 26%;
  width: 20%;
}

/* Cerca */
.pag3-cerca {
  z-index: 7;
  left: 3%;
  bottom: 18%;
  width: 42%;
}

/* Carroça */
.pag3-carroca {
  z-index: 6;
  right: 10%;
  bottom: 20%;
  width: 28%;
  animation: carrocaBalanca 4s ease-in-out infinite;
}

/* Nuvem */
.pag3-nuvem {
  z-index: 4;
  left: 62%;
  top: 10%;
  width: 18%;
  animation: nuvemFlutua 5s ease-in-out infinite;
}

/* Vaca */
.pag3-vaca {
  z-index: 8;
  left: 44%;
  bottom: 16%;
  width: 23%;
  animation: vacaRespira 3.5s ease-in-out infinite;
}

@keyframes nuvemFlutua {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(18px) translateY(-5px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes vacaRespira {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes carrocaBalanca {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}
/* ===============================
   PÁGINA 3 — FAZENDINHA FINAL
================================ */

.pag3-progress {
  width: 30%;
}

.pag3-stage {
  position: relative;
  overflow: hidden;
  background: #a6ddeb;
}

.pag3-layer {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Céu */
.pag3-ceu {
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Montanhas */
.pag3-montanha {
  z-index: 2;
  left: 0;
  bottom: 34%;
  width: 100%;
}

/* Grama/base */
.pag3-grama {
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
}

/* Casinha no morro */
.pag3-casinha {
  z-index: 5;
  right: 18%;
  bottom: 68%;
  width: 7%;
}

/* Nuvem */
.pag3-nuvem {
  z-index: 4;
  left: 34%;
  top: 5%;
  width: 22%;
  animation: nuvemFlutua 5s ease-in-out infinite;
}

/* Cerca longa */
.pag3-cerca {
  z-index: 6;
  left: -2%;
  bottom: 25%;
  width: 55%;
}

.pag3-cerca2 {
  left: 43%;
  bottom: 25%;
  width: 55%;
}

/* Vaca no fundo à direita */
.pag3-vaca {
  z-index: 7;
  right: 5%;
  bottom: 28%;
  width: 18%;
  animation: vacaRespira 3.5s ease-in-out infinite;
}

/* Carroça principal */
.pag3-carroca {
  z-index: 8;
  left: 15%;
  bottom: 16%;
  width: 58%;
  animation: carrocaBalanca 4s ease-in-out infinite;
}

/* Graminha na frente escondendo a base */
.pag3-graminha {
  z-index: 12;
  left: 0;
  bottom: -3%;
  width: 100%;
}

/* Animações suaves */
@keyframes nuvemFlutua {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(18px) translateY(-5px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes vacaRespira {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes carrocaBalanca {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}
/* ===============================
   AJUSTES FINAIS — PÁGINA 3
================================ */

/* Casinha no topo da montanha da direita */
.pag3-casinha {
  z-index: 5 !important;
  left: auto !important;
  right: 22% !important;
  bottom: 72% !important;
  width: 6.5% !important;
}

/* Brincadeira da vaca */
.pag3-vaca.brincando {
  animation: vacaMuuu 0.9s ease-in-out;
}

@keyframes vacaMuuu {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-8px) rotate(-2deg) scale(1.03);
  }

  50% {
    transform: translateY(0) rotate(2deg) scale(1.02);
  }

  75% {
    transform: translateY(-5px) rotate(-1deg) scale(1.03);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}
/* =========================
   PÁGINA 4
========================= */

.pag4-progress {
  width: 40%;
}

.pag4-stage {
  position: relative;
  overflow: hidden;
}

.pag4-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag4-pulga {
  position: absolute;
  width: 8%;
  left: 18%;
  top: 43%;
  z-index: 5;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.pag4-pulga:hover {
  transform: scale(1.05) rotate(-4deg);
}

.pag4-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag4-pulga.pulga-dance {
  animation: pulgaDance 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaDance {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-10px) rotate(6deg);
  }
}
/* =========================
   PÁGINA 5
========================= */

.pag5-progress {
  width: 50%;
}

.pag5-stage {
  position: relative;
  overflow: hidden;
}

.pag5-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag5-sara {
  position: absolute;
  width: 16%;
  left: 6.8%;
  top: 75%;
  z-index: 4;
  user-select: none;
  pointer-events: none;
}
.pag5-pulga {
  position: absolute;
  width: 4.2%;
  left: 9.6%;
  top: 70.5%;
  z-index: 6;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.pag5-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag5-pulga.pulga-hop {
  animation: pulgaHopPag5 0.55s ease-in-out infinite alternate;
}

.pag5-sara.sara-happy {
  animation: saraHappyPag5 0.7s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag5 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}

@keyframes saraHappyPag5 {
  from {
    transform: rotate(-1deg);
  }

  to {
    transform: rotate(1.5deg);
  }
}
/* =========================
   PÁGINA 6
========================= */

.pag6-progress {
  width: 60%;
}

.pag6-stage {
  position: relative;
  overflow: hidden;
}

.pag6-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag6-pulga {
  position: absolute;
  width: 5%;
  left: 42%;
  top: 57%;
  z-index: 6;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.pag6-pulga:hover {
  transform: scale(1.05);
}

.pag6-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag6-pulga.pulga-hop {
  animation: pulgaHopPag6 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag6 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}
/* =========================
   PÁGINA 7
========================= */

.pag7-progress {
  width: 70%;
}

.pag7-stage {
  position: relative;
  overflow: hidden;
}

.pag7-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag7-pulga {
  position: absolute;
  width: 4.2%;
  left: 76%;
  top: 80%;
  z-index: 6;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.pag7-pulga:hover {
  transform: scale(1.05);
}

.pag7-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag7-pulga.pulga-hop {
  animation: pulgaHopPag7 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag7 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}
/* =========================
   PÁGINA 8
========================= */

.pag8-progress {
  width: 80%;
}

.pag8-stage {
  position: relative;
  overflow: hidden;
}

.pag8-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag8-pulga {
  position: absolute;
  width: 4.2%;
  left: 52%;
  top: 83%;
  z-index: 6;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.pag8-pulga:hover {
  transform: scale(1.05);
}

.pag8-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag8-pulga.pulga-hop {
  animation: pulgaHopPag8 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag8 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}
/* =========================
   PÁGINA 9
========================= */

.pag9-progress {
  width: 90%;
}

.pag9-stage {
  position: relative;
  overflow: hidden;
}

.pag9-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag9-pulga {
  position: absolute;
  width: 4.8%;
  left: 50.5%;
  top: 50.5%;
  z-index: 10;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
}

.pag9-pulga:hover {
  transform: scale(1.05);
}

.pag9-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag9-pulga.pulga-hop {
  animation: pulgaHopPag9 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag9 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}
/* =========================
   PÁGINA 10
========================= */

.pag10-progress {
  width: 100%;
}

.pag10-stage {
  position: relative;
  overflow: hidden;
}

.pag10-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.pag10-pulga {
  position: absolute;
  width: 4.4%;
  left: 25%;
  top: 60%;
  z-index: 10;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}

.pag10-pulga:hover {
  transform: scale(1.05);
}

.pag10-pulga.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(5deg);
}

.pag10-pulga.pulga-hop {
  animation: pulgaHopPag10 0.55s ease-in-out infinite alternate;
}

@keyframes pulgaHopPag10 {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-12px) rotate(6deg);
  }
}
/* ===============================
   PÁGINA 11 — VÍDEO COMPLETO
================================ */

.pag11-progress {
  width: 100% !important;
}

.pag11-stage {
  position: relative !important;
  overflow: hidden !important;
  background: #111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}

.video-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #000 !important;
  transform: none !important;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translateX(-50%);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  background: #dd765e;
  color: white;
  font-family: "Nunito", Arial, sans-serif;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

.video-play-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.03);
  filter: brightness(1.06);
}

.video-play-btn:active {
  transform: translateX(-50%) translateY(3px) scale(0.97);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}