@charset "UTF-8";
/* ==========================================================================
   Haikyuu!! – Partida de Vôlei
   Estrutura de camadas (de trás para frente):
     1. #sceneBack → quadra + sombras no piso
     2. .overlay   → véu escuro sobre o fundo
     3. .logo      → logo fixo, semi transparente
     4. #scene     → Kageyama, bola, Hinata e linhas de velocidade
     5. .hint      → aviso de rolagem
   ========================================================================== */

/* ---------- Base ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #0b0b0f;
}

/* Altura da rolagem = duração da animação */
.scroll {
  height: 500vh;
}

/* Tela fixa enquanto a página rola */
.viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Cena ----------
   Mantém a proporção real da quadra (1536x1024) e sempre COBRE a tela
   (equivalente a background-size: cover). Os elementos internos usam % da
   cena, então mantêm proporção e alinhamento com o fundo. */

.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 150vh);
  aspect-ratio: 1536 / 1024;
  transform: translate(-50%, -50%);
  transform-origin: 65% 60%;
  will-change: transform;
  isolation: isolate;
}

.layer {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---------- Fundo ---------- */

.court {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* ---------- Sombras no piso ---------- */

.shadow {
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 20, 0, 0.55) 0%, rgba(40, 20, 0, 0) 70%);
  transform: translateX(-50%);
}

.shadow.kageyama { left: 40%; top: 94.5%; width: 15%;  height: 3.4%; }
.shadow.hinata   {            top: 94.8%; width: 11%;  height: 2.6%; }
.shadow.ball     {            top: 95%;   width: 3.5%; height: 1.2%; }

/* ---------- Personagens e bola ---------- */

.kageyama { z-index: 2; left: 30%;   bottom: 3.7%;  height: 40.9%; }
.ball     { z-index: 3;                             height: 8.2%; }
.hinata   { z-index: 4; left: 65.2%; bottom: 19.9%; height: 37.8%; }

/* Cópias usadas como rastro de movimento */
.ghost {
  opacity: 0;
}

/* ---------- Linhas de velocidade ---------- */

.speed {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    -28deg,
    transparent 0 46px,
    rgba(255, 255, 255, 0.35) 46px 48px,
    transparent 48px 120px
  );
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, transparent 25%, #000 85%);
          mask-image: radial-gradient(ellipse at 70% 45%, transparent 25%, #000 85%);
}

/* ---------- Logo ---------- */

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(min(60vw, 720px) - 15px);
  transform: translate(calc(-50% + 9px), calc(-50% + 14px));
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

/* ---------- Aviso de rolagem ---------- */

.hint {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  z-index: 10;
  color: #fff;
  font: 600 14px/1 system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
  transition: opacity 0.3s;
}

.hint::after {
  content: "↓";
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 20px;
  animation: bob 1.2s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Seção "Sobre" – paleta do uniforme do Karasuno (preto e laranja)
   ========================================================================== */

.about {
  --black: #0d0d0f;
  --black-soft: #17171b;
  --orange: #f47a1f;
  --orange-dark: #c95a0a;
  --text: #e9e6e1;
  --corner-size: clamp(140px, 18vw, 280px);

  position: relative;
  padding: clamp(96px, 14vw, 180px) 24px;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--orange) 0 6px, transparent 6px),
    radial-gradient(ellipse at 50% 0%, rgba(244, 122, 31, 0.14), transparent 60%),
    var(--black);
  overflow: hidden;
}

/* ---------- Conteúdo ---------- */

.about__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.about__eyebrow {
  color: var(--orange);
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.about__block {
  padding: 32px 36px;
  background: var(--black-soft);
  border-left: 6px solid var(--orange);
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(244, 122, 31, 0.18);
}

.about__title {
  margin-bottom: 16px;
  font: 800 clamp(26px, 4vw, 38px)/1.1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about__title span {
  color: var(--orange);
}

.about__block p {
  font: 400 17px/1.7 system-ui, sans-serif;
}

.about__block p + p {
  margin-top: 12px;
}

/* ---------- Cantos para imagens e elementos da série ---------- */

.corner {
  position: absolute;
  z-index: 0;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  transition: opacity 1.6s ease-in-out;
}

.corner--tl { top: 24px;    left: 24px; }
.corner--tr { top: 250px;   right: 24px; }
.corner--bl { bottom: 250px; left: 24px; }
.corner--br { bottom: 24px; right: 24px; }

/* Fade-in ao entrar na tela e fade-out ao sair (classe aplicada via JS) */
.about.has-reveal .corner {
  opacity: 0;
}

.about.has-reveal.is-visible .corner {
  opacity: 1;
}

.about.has-reveal.is-visible .corner--tl { transition-delay: 0.4s; }
.about.has-reveal.is-visible .corner--tr { transition-delay: 0.7s; }
.about.has-reveal.is-visible .corner--bl { transition-delay: 1s; }
.about.has-reveal.is-visible .corner--br { transition-delay: 1.3s; }

/* Espaço reservado: substitua o texto por <img> (ou remova o contorno) */
.corner__slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--orange-dark);
  border-radius: 8px;
  color: var(--orange-dark);
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.corner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  animation: bounce 2.4s infinite;
}

/* Quique de bola: sobe desacelerando e cai acelerando, com pequena pausa no chão */
@keyframes bounce {
  0%   { transform: translateY(0);     animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  40%  { transform: translateY(-14px); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  80%, 100% { transform: translateY(0); }
}

/* Cada figurinha quica em um ritmo defasado */
.corner--tr img { animation-delay: -0.6s; }
.corner--bl img { animation-delay: -1.2s; }
.corner--br img { animation-delay: -1.8s; }

@media (prefers-reduced-motion: reduce) {
  .corner img { animation: none; }
  .corner { transition: none; }
}

/* Sem espaço lateral: figurinhas em duas linhas (topo e rodapé) e o texto desce para não cobri-las */
@media (max-width: 1300px) {
  .about {
    padding-block: calc(var(--corner-size) + 56px);
  }

  .corner--tl { top: 24px;    left: 24px; }
  .corner--tr { top: 24px;    right: 24px; }
  .corner--bl { bottom: 24px; left: 24px; }
  .corner--br { bottom: 24px; right: 24px; }
}

/* Celulares: figurinhas menores */
@media (max-width: 600px) {
  .about {
    --corner-size: clamp(96px, 30vw, 140px);
    padding-inline: 16px;
  }

  .about__block {
    padding: 24px 20px;
  }
}

/* ---------- Lista de motivos ---------- */

.about__reasons {
  display: grid;
  gap: 20px;
  list-style: none;
  counter-reset: reason;
}

.about__reasons li {
  position: relative;
  padding-left: 52px;
  counter-increment: reason;
}

.about__reasons li::before {
  content: counter(reason);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  font: 800 18px/1 system-ui, sans-serif;
}

.about__reasons h3 {
  margin-bottom: 6px;
  color: var(--orange);
  font: 700 18px/1.3 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.about__reasons p {
  font: 400 16px/1.65 system-ui, sans-serif;
}

/* ==========================================================================
   Seção "Elenco" – seletor de escolas/personagens + conteúdo
   ========================================================================== */

.cast {
  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 24px);
  color: #0b0b0d;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.13) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    #f6f2e8;
  border-top: 8px solid #0b0b0d;
}

.cast__inner { max-width: 1040px; margin: 0 auto; }

.cast__eyebrow {
  margin-bottom: 12px;
  color: #c95a0a;
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.cast__title {
  margin-bottom: 12px;
  font: 800 clamp(30px, 6vw, 56px)/1.05 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.cast__title span { color: #c95a0a; }

.cast__hint {
  margin-bottom: clamp(24px, 4vw, 44px);
  text-align: center;
  font: 500 14px/1.4 system-ui, sans-serif;
  opacity: 0.65;
}

.cast__layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.cast__nav,
.cast__stage {
  background: #fffdf6;
  border: 3px solid #0b0b0d;
  border-radius: 0;
  box-shadow: 8px 8px 0 #f47a1f;
}

.cast__nav { padding: 10px; }

.cast__item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: inherit;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  font: 700 16px/1.2 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cast__item--school { text-transform: uppercase; letter-spacing: 0.08em; }
.cast__item--char { padding-left: 28px; font-weight: 600; }

.cast__item:hover,
.cast__item:focus-visible {
  background: rgba(244, 122, 31, 0.18);
  border-left-color: rgba(244, 122, 31, 0.7);
  outline: none;
}

.cast__item.is-active {
  background: #f47a1f;
  border-left-color: #0b0b0d;
  color: #0b0b0d;
}

.cast__chevron { transition: transform 0.25s ease; }
.cast__school.is-open .cast__chevron { transform: rotate(180deg); }

.cast__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
}

.cast__school.is-open .cast__list { display: block; }

.cast__stage {
  position: sticky;
  top: 24px;
  min-height: 360px;
  padding: clamp(20px, 3vw, 36px);
}

.cast__panel {
  display: none;
  grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 3vw, 32px);
  align-content: center;
  align-items: center;
  font: 400 16px/1.6 system-ui, sans-serif;
}

.cast__panel.is-visible {
  display: grid;
  animation: castIn 0.3s ease;
}

/* Texto sempre na coluna da direita, agrupado e centralizado ao lado da imagem */
.cast__panel > :not(.cast__img) {
  grid-column: 2;
  min-width: 0;
}

.cast__panel.is-visible:has(.cast__img) {
  grid-template-rows: 1fr auto auto auto 1fr;
}

.cast__name { grid-row: 2; }
.cast__role { grid-row: 3; }
.cast__panel > p:not(.cast__role) { grid-row: 4; }

/* Caixa fixa: imagens altas e estreitas não esticam o painel */
.cast__img {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  width: clamp(140px, 20vw, 240px);
  height: clamp(280px, 40vw, 420px);
  object-fit: contain;
  object-position: center bottom;
}

.cast__name {
  font: 800 clamp(26px, 4vw, 40px)/1.1 system-ui, sans-serif;
  text-transform: uppercase;
}

.cast__role {
  margin-bottom: 12px;
  color: #c95a0a;
  font: 700 13px/1.2 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cast__panel > p:not(.cast__role) { margin: 0; }
.cast__panel:not(:has(.cast__img)) { display: none; }
.cast__panel:not(:has(.cast__img)).is-visible { display: block; }

@keyframes castIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .cast__layout { grid-template-columns: 1fr; }
  .cast__panel.is-visible,
  .cast__panel.is-visible:has(.cast__img) { grid-template-columns: 1fr; grid-template-rows: none; justify-items: start; }
  .cast__panel > :not(.cast__img) { grid-column: 1; grid-row: auto; }
  .cast__panel > p:not(.cast__role) { grid-row: auto; }
  .cast__img { grid-row: auto; margin-bottom: 12px; height: 320px; }
  .cast__stage { min-height: 0; position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cast__panel.is-visible { animation: none; }
}

/* ==========================================================================
   Seção "Cena" – trecho do anime em moldura de câmera
   ========================================================================== */

.clip {
  --orange: #f47a1f;
  --orange-dark: #c95a0a;

  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 24px);
  color: #e9e6e1;
  background:
    linear-gradient(180deg, var(--orange) 0 6px, transparent 6px),
    radial-gradient(ellipse at 50% 100%, rgba(244, 122, 31, 0.22), transparent 65%),
    repeating-linear-gradient(-28deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 46px 48px, transparent 48px 120px),
    #0d0d0f;
  overflow: hidden;
}

.clip__inner {
  max-width: 960px;
  margin: 0 auto;
}

.clip__eyebrow {
  margin-bottom: 12px;
  color: var(--orange);
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.clip__title {
  margin-bottom: clamp(28px, 5vw, 48px);
  font: 800 clamp(30px, 6vw, 56px)/1.05 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.clip__title span {
  color: var(--orange);
}

.clip__frame {
  position: relative;
  padding: clamp(8px, 1.4vw, 14px);
  background: #17171b;
  border: 3px solid var(--orange);
  border-radius: 6px;
  box-shadow:
    clamp(8px, 1.6vw, 16px) clamp(8px, 1.6vw, 16px) 0 rgba(244, 122, 31, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clip__frame:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    clamp(11px, 2vw, 19px) clamp(11px, 2vw, 19px) 0 rgba(244, 122, 31, 0.32),
    0 36px 90px rgba(0, 0, 0, 0.65);
}

/* Cantos de enquadramento, como no visor de uma câmera */
.clip__bracket {
  position: absolute;
  z-index: 2;
  width: clamp(18px, 3vw, 30px);
  height: clamp(18px, 3vw, 30px);
  border: 0 solid #fff;
  pointer-events: none;
}

.clip__bracket--tl { top: -12px;    left: -12px;  border-width: 4px 0 0 4px; }
.clip__bracket--tr { top: -12px;    right: -12px; border-width: 4px 4px 0 0; }
.clip__bracket--bl { bottom: -12px; left: -12px;  border-width: 0 0 4px 4px; }
.clip__bracket--br { bottom: -12px; right: -12px; border-width: 0 4px 4px 0; }

.clip__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.clip__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.8);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.clip__player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  pointer-events: none;
}

.clip__player.is-playing::after {
  display: none;
}

.clip__player:hover .clip__thumb {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(0.95);
}

.clip__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 11vw, 104px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #0d0d0f;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(244, 122, 31, 0.6);
  animation: pulse 2s ease-out infinite;
  transition: background 0.2s, scale 0.2s;
}

.clip__play svg {
  width: 46%;
  fill: currentColor;
  transform: translateX(8%);
}

.clip__play:hover,
.clip__play:focus-visible {
  background: #fff;
  scale: 1.1;
  outline: none;
}

.clip__play:focus-visible {
  box-shadow: 0 0 0 4px var(--orange);
}

@keyframes pulse {
  to { box-shadow: 0 0 0 28px rgba(244, 122, 31, 0); }
}

.clip__tag {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px #000;
}

.clip__caption {
  margin-top: clamp(28px, 4vw, 40px);
  font: 400 16px/1.6 system-ui, sans-serif;
  text-align: center;
  opacity: 0.85;
}

.clip__caption a {
  display: inline-block;
  margin-left: 8px;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.clip__caption a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .clip__play { animation: none; }
  .clip__frame,
  .clip__thumb { transition: none; }
}

/* ==========================================================================
   Seção "Mangá" – página de mangá: papel, tinta preta e retícula de pontos
   ========================================================================== */

.manga {
  --ink: #0b0b0d;
  --paper: #f6f2e8;
  --orange: #f47a1f;

  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 24px);
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.13) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    var(--paper);
  border-top: 8px solid var(--ink);
  overflow: hidden;
}

.manga__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Onomatopeias decorativas */
.manga__sfx {
  position: absolute;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(11, 11, 13, 0.22);
  font: 900 clamp(90px, 16vw, 220px)/1 system-ui, sans-serif;
  pointer-events: none;
  user-select: none;
}

.manga__sfx--1 { top: 2%;     right: 3%; transform: rotate(8deg); }
.manga__sfx--2 { bottom: 3%;  left: 2%;  transform: rotate(-9deg); }

.manga__eyebrow {
  margin-bottom: 14px;
  font: 800 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.manga__title {
  position: relative;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px 28px 12px;
  background: var(--ink);
  color: var(--paper);
  font: 900 clamp(36px, 8vw, 76px)/1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: skew(-6deg) rotate(-1.5deg);
  box-shadow: 8px 8px 0 var(--orange);
}

.manga__title span {
  color: var(--orange);
}

.manga__lead {
  max-width: 640px;
  margin: 28px auto 36px;
  font: 500 18px/1.6 system-ui, sans-serif;
  text-align: center;
}

/* ---------- Alerta de spoiler ---------- */

.spoiler {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
  background-image: repeating-linear-gradient(-45deg, #fff 0 14px, #ffd9b8 14px 28px);
  background-size: 100% 12px;
  background-repeat: repeat-x;
  background-position: top;
}

.spoiler > * + * { margin-top: 12px; }

.spoiler > :first-child { margin-top: 6px; }

.spoiler__icon {
  font-size: 42px;
  line-height: 1;
}

.spoiler__title {
  font: 900 28px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spoiler p {
  font: 500 16px/1.6 system-ui, sans-serif;
}

.spoiler__button {
  margin-top: 20px;
  padding: 14px 28px;
  border: 3px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font: 900 15px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.spoiler__button:hover,
.spoiler__button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
  outline: none;
}

.spoiler__button:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.spoiler__button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- Quadros ---------- */

.manga__story > * + * {
  margin-top: clamp(28px, 4vw, 44px);
}

.manga__story {
  animation: pageIn 0.7s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(24px); }
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
}

.panels--three {
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translate(-3px, -3px) rotate(-0.4deg);
  box-shadow: 11px 11px 0 var(--ink);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.panel--dark:hover {
  box-shadow: 11px 11px 0 var(--orange);
}

.panel--accent {
  background: var(--orange);
  background-image: repeating-linear-gradient(-28deg, transparent 0 26px, rgba(0, 0, 0, 0.12) 26px 28px);
}

.panel__no {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font: 900 14px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
}

.panel--dark .panel__no {
  background: var(--orange);
  color: var(--ink);
}

.panel__title {
  margin-bottom: 10px;
  font: 900 clamp(20px, 3vw, 26px)/1.15 system-ui, sans-serif;
  text-transform: uppercase;
}

.panel p {
  font: 500 16px/1.65 system-ui, sans-serif;
}

.panel p + p {
  margin-top: 10px;
}

.panel .panel__source {
  font: 700 12px/1.4 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.panel__list {
  margin-top: 14px;
  padding-left: 20px;
  font: 500 15px/1.6 system-ui, sans-serif;
}

.panel__list li + li { margin-top: 6px; }

.panel__list li::marker { color: var(--orange); }

/* ---------- Subtítulos ---------- */

.manga__subtitle {
  font: 900 clamp(26px, 5vw, 44px)/1.1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.manga__subtitle span {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
}

/* ---------- Quadra × Praia ---------- */

.versus {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 3vw, 32px);
}

.versus__col {
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.versus__col--sand {
  background: #ffe9c7;
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
}

.versus__col h4 {
  margin-bottom: 12px;
  font: 900 22px/1.1 system-ui, sans-serif;
  text-transform: uppercase;
}

.versus__col ul {
  padding-left: 20px;
  font: 500 15px/1.6 system-ui, sans-serif;
}

.versus__col li + li { margin-top: 8px; }

.versus__vs {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(48px, 7vw, 72px);
  aspect-ratio: 1;
  background: var(--orange);
  border: 4px solid var(--ink);
  border-radius: 50%;
  font: 900 clamp(18px, 3vw, 26px)/1 system-ui, sans-serif;
  transform: translate(-50%, -50%) rotate(-8deg);
}

/* ---------- Destaque final ---------- */

.manga__why {
  padding: clamp(22px, 4vw, 36px);
  background: var(--ink);
  color: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--orange);
  background-image: repeating-linear-gradient(-28deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px);
}

.manga__why h3 {
  margin-bottom: 14px;
  color: var(--orange);
  font: 900 clamp(24px, 4vw, 34px)/1.1 system-ui, sans-serif;
  text-transform: uppercase;
}

.manga__why p {
  font: 500 17px/1.7 system-ui, sans-serif;
}

.manga__why .manga__final {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed rgba(246, 242, 232, 0.4);
  font-weight: 800;
}

.manga__source {
  font: 600 12px/1.5 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.65;
}

/* ---------- Rivalidade: Black Jackals × Adlers ---------- */

.rival {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 3vw, 32px);
}

.rival__team {
  padding: clamp(22px, 4vw, 36px) clamp(16px, 3vw, 28px);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.rival__team--jackals {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--orange);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.rival__team--adlers {
  background: #fff;
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
}

.rival__who {
  margin-bottom: 8px;
  font: 800 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}

.rival__team--adlers .rival__who {
  color: var(--ink);
}

.rival__team h4 {
  font: 900 clamp(22px, 4vw, 34px)/1.1 system-ui, sans-serif;
  text-transform: uppercase;
}

.rival__text {
  max-width: 720px;
  margin-inline: auto;
  font: 500 17px/1.7 system-ui, sans-serif;
  text-align: center;
}

/* ---------- Menu ---------- */

.menu {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 86px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-140%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu__list {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  background: #0b0b0d;
  border: 3px solid #f47a1f;
  box-shadow: 4px 4px 0 #0b0b0d;
}

.menu__list::-webkit-scrollbar { display: none; }

.menu__link {
  display: block;
  padding: 11px 16px;
  color: #f6f2e8;
  font: 800 13px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.menu__link:hover,
.menu__link:focus-visible,
.menu__link[aria-current] {
  background: #f47a1f;
  color: #0b0b0d;
  outline: none;
}

html { scroll-behavior: smooth; }

.menu__toggle { display: none; }

/* Celular: botão "Menu" abre uma lista suspensa */
@media (max-width: 760px) {
  .menu { right: auto; }

  .menu__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 52px;
    padding: 10px 14px;
    border: 3px solid #f47a1f;
    background: #0b0b0d;
    color: #f6f2e8;
    font: 900 14px/1 system-ui, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0 #0b0b0d;
  }

  .menu__toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .menu__bars,
  .menu__bars::before,
  .menu__bars::after {
    display: block;
    width: 18px;
    height: 3px;
    background: #f47a1f;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .menu__bars { position: relative; }
  .menu__bars::before,
  .menu__bars::after { content: ''; position: absolute; left: 0; }
  .menu__bars::before { top: -6px; }
  .menu__bars::after { top: 6px; }

  .menu.is-open .menu__bars { background: transparent; }
  .menu.is-open .menu__bars::before { top: 0; transform: rotate(45deg); }
  .menu.is-open .menu__bars::after { top: 0; transform: rotate(-45deg); }

  .menu__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    flex-direction: column;
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 28px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 6px 6px 0 rgba(244, 122, 31, 0.35);
  }

  .menu.is-open .menu__list {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu__link {
    padding: 15px 18px;
    border-left: 5px solid transparent;
  }

  .menu__link + .menu__link,
  .menu__list li + li .menu__link { border-top: 1px solid rgba(246, 242, 232, 0.12); }

  .menu__link[aria-current] { border-left-color: #0b0b0d; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu { transition: none; }
  .menu__list, .menu__bars, .menu__bars::before, .menu__bars::after { transition: none; }
}

/* ---------- Botão de idioma ---------- */

.lang-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  min-width: 52px;
  padding: 10px 14px;
  border: 3px solid #0b0b0d;
  background: #f47a1f;
  color: #0b0b0d;
  font: 900 14px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0b0b0d;
  transition: transform 0.15s, box-shadow 0.15s;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0b0b0d;
  outline: none;
}

.lang-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lang-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0b0b0d;
}

@media (max-width: 760px) {
  .panels,
  .panels--three,
  .versus,
  .rival {
    grid-template-columns: 1fr;
  }

  /* No celular o “VS” fica entre as colunas empilhadas */
  .versus__vs {
    position: relative;
    left: auto;
    top: 4px;
    transform: rotate(-8deg);
    justify-self: center;
    width: 56px;
    margin-block: -28px;
  }

  .versus__col,
  .versus__col--sand,
  .rival__team--jackals,
  .rival__team--adlers {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manga__story { animation: none; }
  .panel,
  .spoiler__button,
  .lang-toggle { transition: none; }
}
