/* Página de personagem: fundo flutuante + comparação antes/depois */

body.personagem-pagina {
  min-height: 100vh;
  position: relative;
}

.camada-fundo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.camada-fundo .flutua {
  position: absolute;
  opacity: 0.26;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  animation-name: op-flutuar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: var(--dur, 12s);
  animation-delay: var(--delay, 0s);
  transform-origin: center center;
}

.camada-fundo .flutua img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes op-flutuar {
  0%,
  100% {
    transform: translate(0, 0) rotate(-3deg);
  }
  50% {
    transform: translate(14px, -22px) rotate(4deg);
  }
}

body.personagem--luffy {
  background: radial-gradient(ellipse at 20% 20%, #3b1a5c 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, #5c2a1a 0%, transparent 40%), #0b0f14;
}

body.personagem--zoro {
  background: radial-gradient(ellipse at 20% 25%, #22c55e 0%, transparent 48%),
    radial-gradient(ellipse at 80% 75%, #15803d 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #166534 0%, transparent 55%), #052e16;
}

body.personagem--nami {
  background: radial-gradient(ellipse at 20% 70%, #7c2d12 0%, transparent 40%),
    radial-gradient(ellipse at 75% 25%, #0f766e 0%, transparent 38%), #0b0f14;
}

body.personagem--usopp {
  background: radial-gradient(ellipse at 30% 20%, #713f12 0%, transparent 42%),
    radial-gradient(ellipse at 70% 80%, #365314 0%, transparent 40%), #0b0f14;
}

body.personagem--sanji {
  background: radial-gradient(ellipse at 22% 28%, #8b7314 0%, transparent 46%),
    radial-gradient(ellipse at 78% 72%, #6b5a0a 0%, transparent 48%),
    radial-gradient(ellipse at 50% 50%, #5c4d08 0%, transparent 52%), #2a2408;
}

body.personagem--franky {
  background: radial-gradient(ellipse at 20% 40%, #1d4ed8 0%, transparent 45%),
    radial-gradient(ellipse at 85% 60%, #a21caf 0%, transparent 40%), #0b0f14;
}

body.personagem--brook {
  background: radial-gradient(ellipse at 50% 20%, #312e81 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, #0f172a 0%, transparent 45%), #0b0f14;
}

body.personagem--robin {
  background: radial-gradient(ellipse at 25% 30%, #4c1d95 0%, transparent 45%),
    radial-gradient(ellipse at 75% 70%, #831843 0%, transparent 42%), #0b0f14;
}

body.personagem--chopper {
  background: radial-gradient(ellipse at 20% 60%, #9d174d 0%, transparent 40%),
    radial-gradient(ellipse at 80% 35%, #0d9488 0%, transparent 38%), #0b0f14;
}

body.personagem--jinbe {
  background: radial-gradient(ellipse at 40% 40%, #0369a1 0%, transparent 45%),
    radial-gradient(ellipse at 70% 75%, #164e63 0%, transparent 42%), #0b0f14;
}

/* Fichas do bando do Shanks (sobrepõe fundo escuro neutro) */
body.personagem-bando--shanks {
  background: radial-gradient(ellipse at 28% 32%, #991b1b 0%, transparent 44%),
    radial-gradient(ellipse at 72% 68%, #7f1d1d 0%, transparent 46%),
    radial-gradient(ellipse at 50% 8%, #450a0a 0%, transparent 50%), #120404;
}

main.ficha {
  position: relative;
  z-index: 1;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(30, 41, 59, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ficha-comparacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(18, 26, 36, 0.92);
  border: 1px solid #1e293b;
}

.ficha-comparacao h2 {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--accent, #c9a227);
}

.ficha-comparacao .coluna {
  text-align: center;
}

.ficha-comparacao .rotulo {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.ficha-comparacao img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  border: 2px solid #334155;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.ficha-frutas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(18, 26, 36, 0.92);
  border: 1px solid #1e293b;
}

.ficha-frutas h2 {
  flex: 1 0 100%;
  margin: 0;
  font-size: 1rem;
  color: var(--accent, #c9a227);
}

.ficha-frutas .item-fruta {
  text-align: center;
  max-width: 140px;
}

.ficha-frutas .item-fruta span {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.ficha-frutas .item-fruta img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@media (max-width: 640px) {
  .ficha-comparacao {
    grid-template-columns: 1fr;
  }
}
