/* Piratas do Sol · tinta vermelha sobre papel
   Paleta do jogo (scripts/fx/ink.gd): PAPER, INK, RED, RED_DEEP, RED_PALE. Nenhuma outra cor. */

@font-face {
  font-family: 'Long Cang';
  src: url('/fontes/longcang.woff2') format('woff2');
  font-display: block;
}
@font-face {
  font-family: 'Caveat';
  src: url('/fontes/caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --papel: #f7f2eb;
  --tinta: #1a0d0d;
  --vermelho: #db1f1f;
  --vermelho-fundo: #800a12;
  --vermelho-palido: #f5a399;
  --mao: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --largura: 46rem;
  --mar: cubic-bezier(0.45, 0, 0.55, 1);
  --sai: cubic-bezier(0.22, 1, 0.36, 1);
}

@property --abre {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

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

html {
  overflow-x: clip;
  background: var(--papel);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--tinta);
  font: 400 1.55rem/1.42 var(--mao);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--vermelho-fundo); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--vermelho); }
:focus-visible { outline: 2.5px dashed var(--vermelho); outline-offset: 4px; }
::selection { background: var(--vermelho); color: var(--papel); }

.filtros { position: absolute; width: 0; height: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--papel); padding: 0.4rem 1rem; border: 2px solid var(--tinta);
}
.pular:focus { top: 1rem; }

/* o papel do filtro da Godot por cima de tudo */
.papel {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: url('/arte/papel.webp') 0 0 / 512px repeat;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.cinzas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }

.largura { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }

/* cartão de lugar e data: escrito como se a pena estivesse passando agora */
.cartao {
  margin: 0;
  color: var(--vermelho-fundo);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.escreve {
  clip-path: inset(-0.3em 100% -0.3em 0);
  transition: clip-path 1.6s steps(28, end);
}
.escreve.visto { clip-path: inset(-0.3em -0.5em -0.3em 0); }

.quadros { background-repeat: no-repeat; background-size: auto 100%; }

/* ======================= CAPA ======================= */
.capa {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 3rem 0 0;
  text-align: center;
  overflow: hidden;
}
.capa .cartao { font-size: clamp(1.4rem, 2.6vw, 1.9rem); padding-inline: 1rem; }

.titulo { margin: 0; display: grid; justify-items: center; font-weight: 700; line-height: 0.8; }
.titulo-piratas {
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: -0.01em;
  animation: tinta-chega 1.4s var(--sai) both 0.3s;
}
.titulo-sol {
  width: min(92vw, 56rem);
  height: auto;
  margin-top: -1.2rem;
  overflow: visible;
}
.letra-sol {
  font: 400 400px/1 'Long Cang', var(--mao);
  fill: var(--tinta);
}
.escorre .letra-sol, .escorre .gotas { fill: var(--tinta); }
.titulo-sol .letra-sol { animation: tinta-chega 1.4s var(--sai) both 0.6s; }
.sol { animation: sol-nasce 2.2s var(--sai) both 0.9s; }

@keyframes tinta-chega {
  from { opacity: 0; filter: blur(10px); transform: translateY(0.12em) scale(1.04); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes sol-nasce {
  from { opacity: 0; transform: translate(452px, 260px) scale(0.3); }
  to { opacity: 1; transform: translate(452px, 196px) scale(1); }
}

.mote {
  margin: 0.4rem 0 0;
  color: var(--vermelho-fundo);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 500;
  padding-inline: 1rem;
  animation: tinta-chega 1.4s var(--sai) both 1.6s;
}

.rio-capa {
  position: relative;
  width: 100vw;
  height: clamp(12rem, 26vw, 19rem);
  margin-top: 0.5rem;
}
.aguada { position: absolute; inset: 18% 0 0; width: 100%; height: 82%; }
.ondas path { animation: onda 7s var(--mar) infinite alternate; }
.ondas path:nth-child(2n) { animation-duration: 9s; animation-direction: alternate-reverse; }
@keyframes onda { to { transform: translateX(46px); } }

.canoa-capa {
  position: absolute;
  left: 50%; top: 4%;
  width: clamp(15rem, 30vw, 24rem);
  aspect-ratio: 446 / 240;
  translate: -50% 0;
  animation: deriva 26s var(--mar) infinite alternate, balanca 3.4s var(--mar) infinite;
}
.canoa-lado {
  width: 100%; height: 100%;
  background-image: url('/arte/canoa-lado.webp');
  background-size: 1200% 100%;
  animation: rema 1.15s steps(12) infinite;
}
/* o solzinho pintado no casco, perto da proa, como na arte do jogo */
.sol-proa {
  position: absolute; left: 73%; top: 58%;
  width: 12%; aspect-ratio: 1;
  rotate: -6deg;
  pointer-events: none;
}
@keyframes rema { to { background-position: 109.0909% 0; } }
@keyframes deriva { from { left: 38%; } to { left: 62%; } }
@keyframes balanca { 50% { transform: translateY(5px) rotate(-1.2deg); } }

.voo { position: absolute; pointer-events: none; }
.voo .quadros { width: 100%; height: 100%; background-size: 400% 100%; animation: bate 0.55s steps(4) infinite; }
.voo-arara { top: -42vh; width: 62px; height: 73px; animation: atravessa 19s linear infinite 2s; }
.voo-arara .quadros { background-image: url('/arte/arara-voo.webp'); }
.voo-garca { top: -30vh; width: 50px; height: 72px; animation: atravessa 27s linear infinite 9s; }
.voo-garca .quadros { background-image: url('/arte/garca-voo.webp'); animation-duration: 0.9s; }
@keyframes bate { to { background-position: 133.333% 0; } }
@keyframes atravessa {
  from { transform: translate(-12vw, 0); }
  50% { transform: translate(50vw, -5vh); }
  to { transform: translate(112vw, 2vh); }
}

.rema {
  position: absolute; bottom: 1.2rem; left: 50%; translate: -50% 0;
  color: var(--vermelho-fundo); text-decoration: none; font-size: 1.5rem;
}
.rema span { display: inline-block; animation: desce 1.8s var(--mar) infinite; }
@keyframes desce { 50% { transform: translateY(6px); } }

/* ======================= A FUMAÇA ======================= */
.fumaca { position: relative; height: 330vh; }
.fumaca-palco {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 clamp(1.25rem, 6vw, 6rem);
}
.fumaca-texto { position: relative; z-index: 3; max-width: 30rem; }
.fumaca-texto h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; margin-bottom: 1rem; }
.surge {
  margin: 0 0 0.9rem;
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 0.9s var(--sai), transform 0.9s var(--sai), filter 0.9s var(--sai);
}
.surge.visto { opacity: 1; transform: none; filter: none; }

.foto {
  position: relative;
  margin: 0;
  padding: 0.7rem 0.7rem 2.6rem;
  background: var(--papel);
  box-shadow: 0 1px 0 rgba(26, 13, 13, 0.25), 0 14px 30px -12px rgba(128, 10, 18, 0.45);
  rotate: var(--giro, 0deg);
  transition: rotate 0.6s var(--sai), scale 0.6s var(--sai);
}
.foto::before {
  /* fita adesiva */
  content: ''; position: absolute; top: -0.9rem; left: 50%; translate: -50% 0; rotate: -2deg;
  width: 34%; height: 1.8rem;
  background: var(--vermelho-palido); opacity: 0.65;
  filter: url(#aquarela-fina);
}
.foto img { width: 100%; height: auto; border: 1.5px solid var(--tinta); }
.foto figcaption { position: absolute; bottom: 0.45rem; left: 1rem; font-size: 1.25rem; color: var(--vermelho-fundo); }
.foto:hover { rotate: 0deg; scale: 1.02; }
.foto-fumaca { z-index: 1; --giro: 2.5deg; }

.frente {
  position: absolute; left: -5%; right: -5%; top: 0;
  height: 230svh;
  z-index: 2;
  pointer-events: none;
  transform: translateY(calc(100svh - var(--sobe, 0) * 330svh));
  will-change: transform;
}
.frente-borda {
  position: absolute; inset: -22svh -5% auto; height: 46svh;
  background:
    radial-gradient(closest-side, rgba(219, 31, 31, 0.95), transparent) 4% 78% / 30% 80% no-repeat,
    radial-gradient(closest-side, rgba(219, 31, 31, 0.9), transparent) 26% 60% / 32% 95% no-repeat,
    radial-gradient(closest-side, rgba(128, 10, 18, 0.55), transparent) 50% 74% / 30% 70% no-repeat,
    radial-gradient(closest-side, rgba(219, 31, 31, 0.9), transparent) 72% 56% / 34% 100% no-repeat,
    radial-gradient(closest-side, rgba(219, 31, 31, 0.95), transparent) 96% 72% / 30% 85% no-repeat,
    radial-gradient(closest-side, rgba(245, 163, 153, 0.8), transparent) 40% 26% / 46% 50% no-repeat,
    radial-gradient(closest-side, rgba(245, 163, 153, 0.7), transparent) 84% 20% / 34% 44% no-repeat;
  filter: url(#aquarela) blur(10px);
  animation: fumega 9s var(--mar) infinite alternate;
}
@keyframes fumega {
  to { transform: translateX(2.5%) scaleY(1.12); }
}
.frente-corpo {
  position: absolute; inset: 0 0 256px;
  -webkit-mask-image: linear-gradient(transparent, #000 14svh);
  mask-image: linear-gradient(transparent, #000 14svh);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245, 163, 153, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(128, 10, 18, 0.35), transparent 55%),
    var(--vermelho);
}
.frente-pingos {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px;
  transform-origin: top;
  animation: escorre-borda 5s var(--mar) infinite alternate;
}
@keyframes escorre-borda { to { transform: scaleY(1.35); } }

.pergunta {
  position: absolute; z-index: 4; inset: auto 1rem 16svh;
  margin: 0;
  text-align: center;
  color: var(--papel);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  opacity: var(--pergunta, 0);
  transform: scale(calc(0.94 + var(--pergunta, 0) * 0.06));
  text-shadow: 0 2px 0 var(--vermelho-fundo);
}

/* ======================= TÍTULOS QUE PINGAM ======================= */
h2 { margin: 0; font-weight: 700; line-height: 1; }
.pinga {
  position: relative;
  display: inline-block;
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 3.4rem;
}
.pinga > .pingador {
  position: absolute; left: -2%; top: 88%;
  width: 104%; height: 220px;
  overflow: visible;
  pointer-events: none;
}
.abre { margin: 0 0 1rem; font-size: 1.65rem; }

/* ======================= OS PIRATAS ======================= */
.piratas { padding: 9rem 0 6rem; }
.tripulacao {
  list-style: none; margin: 4rem auto 0; padding: 0 1.25rem;
  width: min(100%, 78rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 3rem 2rem;
}
.pirata { rotate: var(--giro); transition: rotate 0.5s var(--sai); outline: none; }
.pirata:hover, .pirata:focus-visible { rotate: 0deg; }
.retrato {
  position: relative;
  aspect-ratio: 640 / 704;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 var(--abre), transparent calc(var(--abre) + 18%));
  mask-image: radial-gradient(circle at 50% 45%, #000 var(--abre), transparent calc(var(--abre) + 18%));
  transition: --abre 1.8s var(--sai);
}
.pirata.visto .retrato { --abre: 80%; }
.retrato img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.35s var(--sai), transform 0.8s var(--sai);
}
.pirata:hover .retrato img, .pirata:focus-visible .retrato img { transform: translateY(-6px) scale(1.02); }
.retrato .sorriso { opacity: 0; }
.pirata-carmelita:hover .sorriso, .pirata-carmelita:focus-visible .sorriso, .pirata-carmelita.sorri .sorriso { opacity: 1; }

.ficha { margin-top: -1rem; position: relative; }
.ordem { margin: 0; color: var(--vermelho); font-size: 1.2rem; font-weight: 600; }
.ficha h3 { margin: 0; font-size: 3rem; line-height: 1; }
.vulgo { margin: 0.1rem 0 0.7rem; color: var(--vermelho-fundo); font-size: 1.3rem; }
.ficha p { margin-top: 0; }
.ficha > p:not(.ordem):not(.vulgo) { font-size: 1.4rem; line-height: 1.32; }

.fala {
  margin: 1rem 0 0;
  padding: 0.5rem 0.9rem 0.6rem;
  background: rgba(245, 163, 153, 0.35);
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.risco {
  display: inline-block; width: 1.6em; height: 1em; margin-right: 0.35em; vertical-align: -0.12em;
  fill: none; stroke: var(--vermelho); stroke-width: 2.6; stroke-linecap: round;
}
.risco circle { fill: var(--vermelho); stroke: none; }
.fala .risco circle:only-of-type { fill: none; stroke: var(--vermelho); stroke-width: 2.4; }

/* ======================= O RIO ======================= */
.rio { position: relative; padding: 7rem 0 8rem; }
.leito {
  position: relative;
  width: min(100% - 2rem, 76rem);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(6rem, 14vh, 10rem);
  padding-bottom: 4rem;
}
.leito-rio {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  z-index: 0;
}
.leito-rio path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.agua-larga { stroke: var(--vermelho-palido); stroke-width: 120; opacity: 0.32; filter: url(#aquarela); }
.agua { stroke: url(#suja); stroke-width: 70; opacity: 0.55; filter: url(#aquarela); }
.margem { stroke: var(--tinta); stroke-width: 1.8; opacity: 0.7; }
.canoa-desce {
  position: absolute; z-index: 2; left: 0; top: 0;
  width: 80px; height: 210px;
  margin: -105px 0 0 -40px;
  background-image: url('/arte/canoa-desce.webp');
  background-size: 1200% 100%;
  animation: rema 1.05s steps(12) infinite;
  will-change: transform;
  pointer-events: none;
}

.ato {
  position: relative; z-index: 1;
  width: min(100%, 31rem);
  padding: 1.6rem 1.6rem 1.2rem;
}
.ato::before {
  /* a mancha de papel onde o ato é escrito, pra o texto não brigar com o rio */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--papel);
  border-radius: 46% 54% 48% 52% / 8% 10% 6% 9%;
  box-shadow: 0 0 0 1.5px rgba(26, 13, 13, 0.6);
  filter: url(#aquarela-fina);
}
.ato[data-lado='dir'] { justify-self: end; }
.ato h3 { margin: 0.2rem 0 0.5rem; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; }
.ato .num { color: var(--vermelho); margin-right: 0.2em; }
.ato p { margin: 0 0 0.6rem; font-size: 1.45rem; line-height: 1.3; }
.ato .aviso { color: var(--vermelho-fundo); font-weight: 700; }

.cena { position: relative; height: 13rem; margin-top: 0.5rem; }
.cena img { position: absolute; height: auto; }
.c-casa { left: 2%; bottom: 0; width: 46%; }
.c-trapiche { left: 44%; bottom: 0.4rem; width: 34%; }
.c-acai { right: 0; bottom: 0; width: 30%; }

.c-buriti { left: 2%; bottom: 1rem; height: 100% !important; width: auto !important; }
.c-acai-2 { left: 34%; bottom: 1rem; height: 88% !important; width: auto !important; }
.c-aninga { right: 8%; bottom: 0.6rem; width: 16%; }
.c-aninga-2 { right: 26%; width: 12%; bottom: 0.2rem; }
.c-agua {
  position: absolute; left: -4%; right: -4%; bottom: 0; height: 52%; z-index: 1;
  background: linear-gradient(rgba(245, 163, 153, 0.7), rgba(219, 31, 31, 0.35));
  border-radius: 40% 60% 8px 8px / 12% 14% 8px 8px;
  filter: url(#aquarela);
  animation: boia 5s var(--mar) infinite;
}

.c-casa-2 { left: 0; bottom: 0; width: 52%; }
.c-varal { left: 50%; bottom: 0.4rem; width: 34%; animation: venta 4s var(--mar) infinite alternate; transform-origin: 50% 0; }
.c-pupunha { right: 4%; bottom: 0.2rem; width: 9%; }
.c-radio { right: 16%; bottom: 0.2rem; width: 5%; }
@keyframes venta { to { transform: skewX(-4deg); } }

.c-castanheira { left: -4%; bottom: 0; height: 100% !important; width: auto !important; }
.c-lamparina { left: 46%; bottom: 0.2rem; width: 11%; animation: tremula 1.2s steps(3) infinite; }
.c-cachorro { right: 2%; bottom: 0; width: 24%; }
.c-escuro {
  position: absolute; inset: -0.5rem; z-index: -1;
  background: radial-gradient(circle at 51% 86%, rgba(245, 163, 153, 0.45), transparent 22%),
              linear-gradient(rgba(128, 10, 18, 0.1), rgba(26, 13, 13, 0.32));
  border-radius: 1rem;
}
@keyframes boia { 50% { transform: translateY(5px) rotate(-1.5deg); } }
@keyframes tremula { 33% { transform: scaleY(1.08) skewX(2deg); } 66% { transform: scaleY(0.95) skewX(-2deg); } }

/* ======================= O MUNDO ======================= */
.mundo { position: relative; padding: 0 0 7rem; }
.mata { position: relative; height: clamp(18rem, 38vw, 30rem); overflow: hidden; margin-bottom: 3rem; container-type: size; }
.mata::after {
  content: ''; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(transparent, var(--papel));
}
.mata-camada {
  position: absolute; left: -10%; bottom: 0; width: 140%; height: 100%;
  background-repeat: repeat-x;
  background-position-y: bottom;
  will-change: transform;
}
.mata-longe {
  background-image: url('/arte/sumauma.webp'), url('/arte/castanheira.webp'), url('/arte/buriti.webp');
  background-size: auto 92%, auto 78%, auto 70%;
  background-position: 6% 100%, 38% 100%, 70% 100%;
  background-repeat: space no-repeat;
  opacity: 0.38; filter: blur(1.5px);
}
.mata-meio {
  background-image: url('/arte/acai.webp'), url('/arte/pupunheira.webp'), url('/arte/embauba.webp'), url('/arte/acai.webp');
  background-size: auto 70%, auto 74%, auto 56%, auto 66%;
  background-position: 14% 100%, 44% 100%, 64% 100%, 90% 100%;
  background-repeat: no-repeat;
  opacity: 0.75;
}
.mata-perto {
  background-image: url('/arte/bananeira.webp'), url('/arte/heliconia.webp'), url('/arte/aninga.webp'), url('/arte/heliconia.webp'), url('/arte/bananeira.webp');
  background-size: auto 26%, auto 22%, auto 30%, auto 24%, auto 28%;
  background-position: 4% 100%, 28% 100%, 52% 100%, 74% 100%, 98% 100%;
  background-repeat: no-repeat;
}
/* sentada na copa da embaúba (a 3ª imagem da camada do meio: 64%, 56% da altura, 355x546) */
.guariba-galho {
  position: absolute;
  width: 16cqh; aspect-ratio: 114 / 160;
  left: calc((100% - 36.4cqh) * 0.64 + 18.2cqh - 8cqh);
  top: calc(44cqh - 13cqh);
}
.guariba { width: 100%; height: 100%; background-image: url('/arte/guariba.webp'); background-size: 200% 100%; animation: ronca 1.6s steps(2) infinite; }
@keyframes ronca { to { background-position: 200% 0; } }

.galeria {
  width: min(100% - 2.5rem, 76rem);
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 2.5rem;
}
.foto-grande { grid-column: 1 / -1; width: min(100%, 60rem); justify-self: center; }

/* ======================= NO MESMO DIA ======================= */
.realidade {
  position: relative;
  padding: 7rem 0 9rem;
  background: linear-gradient(var(--papel), rgba(245, 163, 153, 0.35) 30%, rgba(245, 163, 153, 0.55));
}
.manchete {
  position: relative;
  width: min(100% - 2.5rem, 50rem);
  margin: 2.5rem auto 4rem;
  padding: 1.8rem 2rem 1.2rem;
  background: var(--papel);
  rotate: -1deg;
  box-shadow: 0 1px 0 rgba(26, 13, 13, 0.25), 0 16px 34px -14px rgba(128, 10, 18, 0.5);
  clip-path: polygon(0 3%, 4% 0, 18% 2%, 33% 0, 50% 1.5%, 66% 0, 82% 2%, 100% 0, 99% 30%, 100% 62%, 98.5% 100%, 80% 98%, 62% 100%, 45% 98.5%, 27% 100%, 10% 98%, 0 100%, 1% 66%, 0 35%);
}
.manchete blockquote { margin: 0; }
.manchete blockquote p {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
}
.manchete figcaption { margin-top: 0.8rem; font-size: 1.25rem; }
.recortes {
  list-style: none; margin: 0 auto; padding: 0 1.25rem;
  width: min(100%, 64rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.2rem 2rem;
}
.recortes li {
  position: relative;
  padding: 1.3rem 1.3rem 1rem;
  background: var(--papel);
  rotate: var(--giro);
  box-shadow: 0 10px 24px -14px rgba(128, 10, 18, 0.55);
  transition: rotate 0.5s var(--sai), translate 0.5s var(--sai);
}
.recortes li::before {
  content: ''; position: absolute; top: -0.7rem; left: 50%; translate: -50% 0; rotate: 3deg;
  width: 38%; height: 1.4rem;
  background: var(--vermelho-palido); opacity: 0.7;
  filter: url(#aquarela-fina);
}
.recortes li:hover { rotate: 0deg; translate: 0 -4px; }
.recortes p { margin: 0 0 0.7rem; font-size: 1.5rem; line-height: 1.25; }
.recortes .fonte { font-size: 1.1rem; color: var(--vermelho-fundo); }
.fecho {
  margin: 5rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--vermelho-fundo);
}
.fontes { margin: 0; font-size: 1.15rem; color: rgba(26, 13, 13, 0.7); }

/* ======================= A CONTA ======================= */
.conta {
  position: relative;
  padding: 7rem 0 8rem;
  background: var(--vermelho-fundo);
  color: var(--papel);
}
.conta::before {
  /* a borda de cima da mancha escorre */
  content: ''; position: absolute; left: 0; right: 0; top: -59px; height: 60px;
  background: var(--vermelho-fundo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 V40 C30 30 50 46 80 36 S140 20 170 34 S230 50 260 30 S330 22 360 38 S390 40 400 34 V60Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 V40 C30 30 50 46 80 36 S140 20 170 34 S230 50 260 30 S330 22 360 38 S390 40 400 34 V60Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.conta .cartao { color: var(--vermelho-palido); }
.conta .pinga { margin-top: 0.6rem; }
.conta a { color: var(--vermelho-palido); }

.embarque { margin-top: 2rem; }
.lugares { display: flex; align-items: center; gap: 0.8rem; font-size: 1.5rem; }
.bolinhas { display: inline-flex; gap: 0.45rem; }
.bolinha {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 2px solid var(--papel);
  transition: background 0.3s var(--sai), transform 0.3s var(--sai);
}
.bolinha.cheia { background: var(--vermelho-palido); transform: scale(1.12); }

.trapiche {
  list-style: none; margin: 1.6rem 0; padding: 1.2rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  border-bottom: 3px solid rgba(247, 242, 235, 0.5);
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(247, 242, 235, 0.12) 46px 48px) bottom / 100% 1.2rem no-repeat;
}
.trapiche button {
  font: inherit; font-size: 1.45rem;
  color: var(--papel);
  background: rgba(247, 242, 235, 0.08);
  border: 1.5px solid rgba(247, 242, 235, 0.55);
  border-radius: 1.2rem 0.9rem 1.3rem 0.8rem;
  padding: 0.2rem 0.9rem 0.3rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.4s var(--sai), opacity 0.6s;
}
.trapiche button:hover:not(:disabled) { background: rgba(247, 242, 235, 0.2); transform: translateY(-3px) rotate(-1deg); }
.trapiche button[aria-pressed='true'] { background: var(--papel); color: var(--vermelho-fundo); border-color: var(--papel); }
.trapiche button:disabled { cursor: default; }
.trapiche .ficou button {
  color: var(--vermelho-palido);
  text-decoration: line-through var(--vermelho) 3px;
  border-style: dashed;
}
.trapiche .foi button { opacity: 0.35; transform: translateX(40px); }

.acoes { display: flex; gap: 1rem; }
.acoes button {
  font: inherit; font-size: 1.6rem; font-weight: 700;
  color: var(--vermelho-fundo); background: var(--papel);
  border: 0; border-radius: 2rem 1.6rem 2.2rem 1.5rem;
  padding: 0.2rem 1.6rem 0.35rem;
  cursor: pointer;
  transition: transform 0.3s var(--sai), opacity 0.3s;
}
.acoes button:hover:not(:disabled) { transform: rotate(-2deg) scale(1.04); }
.acoes button:disabled { opacity: 0.4; cursor: default; }
.saldo { min-height: 4.5em; margin: 1.2rem 0 0; font-size: 1.6rem; }
.saldo strong { color: var(--vermelho-palido); }

/* ======================= FIM ======================= */
.fim {
  position: relative;
  min-height: 90svh;
  display: grid; justify-items: center; align-content: center; gap: 0.8rem;
  padding: 6rem 1rem;
  background: var(--tinta);
  color: var(--papel);
  text-align: center;
  overflow: hidden;
}
.fim-canoa {
  position: relative;
  width: clamp(14rem, 26vw, 20rem); aspect-ratio: 446 / 240;
  animation: balanca 3.4s var(--mar) infinite;
}
.fim-titulo { font-size: clamp(3.5rem, 10vw, 7.5rem); }
.fim-steam { margin: 0; font-size: 2rem; color: var(--vermelho-palido); }
.fim-demo { margin: 0; font-size: 1.5rem; color: rgba(247, 242, 235, 0.8); }

.chamado {
  margin-top: 5rem;
  max-width: 38rem;
  padding-top: 2.5rem;
  border-top: 2px dashed rgba(247, 242, 235, 0.35);
}
.chamado h3 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; color: var(--vermelho-palido); }
.chamado p { margin: 0 auto; font-size: 1.55rem; line-height: 1.3; }
.espalha { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.8rem; }
.espalha a, .espalha button {
  font: inherit; font-size: 1.4rem; font-weight: 700;
  color: var(--tinta); background: var(--papel);
  border: 0; border-radius: 1.6rem 1.2rem 1.7rem 1.1rem;
  padding: 0.15rem 1.1rem 0.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--sai), background 0.3s;
}
.espalha a:hover, .espalha button:hover { transform: rotate(-2deg) scale(1.04); background: var(--vermelho-palido); color: var(--tinta); }
.espalha .espalha-nativo { background: var(--vermelho); color: var(--papel); }
.espalha-aviso { min-height: 1.5em; margin-top: 0.8rem !important; font-size: 1.2rem !important; color: var(--vermelho-palido); }

.rodape {
  padding: 2rem 1.25rem 2.4rem;
  background: var(--tinta);
  color: rgba(247, 242, 235, 0.65);
  text-align: center;
  font-size: 1.2rem;
}
.rodape p { margin: 0.2rem 0; }
.rodape a { color: var(--vermelho-palido); }

/* ======================= SOM ======================= */
.som {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
  display: flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 1.3rem; font-weight: 600;
  color: var(--tinta); background: var(--papel);
  border: 2px solid var(--tinta);
  border-radius: 1.6rem 1.2rem 1.7rem 1.1rem;
  padding: 0.15rem 0.9rem 0.2rem 0.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(128, 10, 18, 0.5);
  transition: transform 0.3s var(--sai), background 0.3s;
}
.som:hover { transform: rotate(-2deg); }
.som svg { width: 2rem; height: 1.6rem; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.som .caixa { fill: var(--vermelho); }
.som .onda { opacity: 0; }
.som .mudo { stroke: var(--vermelho); }
.som[aria-pressed='true'] .mudo { display: none; }
.som[aria-pressed='true'] .onda { opacity: 1; animation: pulsa 1.1s var(--mar) infinite; }
.som[aria-pressed='true'] .o2 { animation-delay: 0.25s; }
@keyframes pulsa { 50% { opacity: 0.25; } }

/* ======================= PINGOS SOLTOS (clique) ======================= */
.mancha {
  position: absolute; z-index: 35; pointer-events: none;
  overflow: visible;
  animation: some 7s ease-in forwards;
}
@keyframes some { 0%, 70% { opacity: 1; } to { opacity: 0; } }

/* ======================= TELAS ESTREITAS ======================= */
@media (max-width: 52rem) {
  body { font-size: 1.4rem; }
  .fumaca-palco { grid-template-columns: 1fr; align-content: center; gap: 1.5rem; }
  .foto-fumaca { width: 80%; justify-self: end; }
  .fumaca-texto h2 { font-size: 1.9rem; }
  .ato, .ato[data-lado='dir'] { justify-self: center; }
  .galeria { grid-template-columns: 1fr; }
  .canoa-desce { display: none; }
  .agua-larga { stroke-width: 70; }
  .agua { stroke-width: 40; }
}

/* ======================= SEM MOVIMENTO ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .escreve { clip-path: none; }
  .surge { opacity: 1; transform: none; filter: none; }
  .retrato { -webkit-mask-image: none; mask-image: none; }
  .voo, .cinzas { display: none; }
}
