:root {
  --color-blue-universe: #010C53;
  --color-deep-blue: #011676;
  --color-tech-blue: #0429BC;
  --color-dev-blue: #1F53E5;
  --color-new-black: #0D0D0D;
  --color-white-snow: #F4F5F6;
}


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

body {
  background-color: var(--color-new-black);
  background-image: radial-gradient(circle at center, var(--color-deep-blue) 0%, var(--color-blue-universe) 60%, var(--color-new-black) 100%);
  color: var(--color-new-black);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Sound & Control UI */
.sound-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(31, 83, 229, 0.15);
  border: 1px solid rgba(31, 83, 229, 0.4);
  color: var(--color-white-snow);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-btn:hover {
  background: var(--color-dev-blue);
  border-color: var(--color-white-snow);
  box-shadow: 0 0 15px rgba(31, 83, 229, 0.6);
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* Navigation UI */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(1, 12, 83, 0.4);
  border: 1px solid rgba(31, 83, 229, 0.3);
  color: var(--color-white-snow);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.nav-btn:hover {
  opacity: 1;
  background: var(--color-deep-blue);
  border-color: var(--color-dev-blue);
  box-shadow: 0 0 20px rgba(31, 83, 229, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.nav-btn-left {
  left: 30px;
}

.nav-btn-right {
  right: 30px;
}

/* Album Layout Container */

.album-viewport {
  position: relative;
  width: 1100px;
  height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.flip-book {
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  overflow: hidden;
  background-color: transparent;
  display: none;
  /* Shown after initialization */
}

/* Individual Pages */
.page {
  width: 550px;
  height: 800px;
  background-color: var(--color-white-snow);
  overflow: hidden;
  cursor: grab;
  /* Mão aberta indicando que a página pode ser "agarrada" */
  user-select: none;
  /* Impede seleção de texto ao arrastar a página */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.page:active {
  cursor: grabbing;
  /* Mão fechada durante o clique na página */
}

/* Global dragging cursor override */
body.dragging,
body.dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.page-content {
  width: 100%;
  height: 100%;
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Page Lombada Crease Shadows */
.page:nth-child(even):not(:last-child) .page-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
  z-index: 10;
}


.page:nth-child(odd):not(:first-child) .page-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Page Header & Badge */
.page-header {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 2px solid rgba(4, 41, 188, 0.1);
  padding-bottom: 12px;
}


.tech-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white-snow);
  letter-spacing: 1.5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.badge-ia {
  background-color: var(--color-tech-blue);
}

.badge-python {
  background-color: var(--color-dev-blue);
}

.badge-db {
  background-color: var(--color-deep-blue);
}

.badge-os {
  background-color: var(--color-blue-universe);
}

.badge-brasil {
  background-color: var(--color-dev-blue);
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-deep-blue);
}

/* Stickers Grid Layout */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  flex: 1;
}

/* Individual Sticker Slots */
.sticker-slot {
  background-color: rgba(1, 22, 118, 0.03);
  border: 2px dashed rgba(4, 41, 188, 0.35);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 155px;
}

.sticker-slot:hover {
  background-color: rgba(31, 83, 229, 0.05);
  border-color: var(--color-dev-blue);
  box-shadow: inset 0 0 10px rgba(31, 83, 229, 0.1);
}

.special-slot {
  grid-column: span 2;
  justify-self: center;
  width: 65%;
  min-height: 165px;
  border-color: var(--color-dev-blue);
  background-color: rgba(31, 83, 229, 0.02);
}

.slot-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-tech-blue);
  background: rgba(4, 41, 188, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.sticker-slot:hover .slot-number {
  background: var(--color-dev-blue);
  color: var(--color-white-snow);
  box-shadow: 0 0 10px rgba(31, 83, 229, 0.3);
}

.slot-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-new-black);
  margin-bottom: 2px;
}

.slot-role {
  font-size: 0.72rem;
  color: #626C84;
  font-family: 'Outfit', sans-serif;
}

/* ===================================================
   FIGURINHAS PREENCHIDAS (adicionado no Dia 3)
   Estilos para as imagens inseridas via JavaScript
   =================================================== */

.sticker-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  opacity: 0;
  animation: sticker-aparecer 0.5s ease-out forwards;
}

/* Slot com imagem: remove padding e corta o overflow */
.sticker-slot:has(.sticker-img) {
  padding: 0;
  overflow: hidden;
}

/* Esconde número e role quando há imagem no slot */
.sticker-slot:has(.sticker-img) .slot-number,
.sticker-slot:has(.sticker-img) .slot-role {
  display: none;
}

/* Nome como overlay centralizado na base da imagem */
.sticker-slot:has(.sticker-img) .slot-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 18px 8px 7px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Animação de "colar" a figurinha */
@keyframes sticker-aparecer {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Slot quando a figurinha está colada (imagem carregou com sucesso) */
.slot-preenchido {
  border-style: solid !important;
  border-color: var(--color-dev-blue) !important;
}

.slot-preenchido:hover {
  border-color: var(--color-tech-blue) !important;
  box-shadow: 0 4px 16px rgba(31, 83, 229, 0.2) !important;
}

/* Page Footer */
.page-footer {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #8C98B0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 8px;
}

/* CAPA (Cover) CSS */

.page-cover {
  background-color: #070709;
  background-image: radial-gradient(circle at center, #0e1220 0%, #060608 100%);
  color: var(--color-white-snow);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.12);
}


.cover-content {
  position: relative;
  width: 100;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

/*IMPORTANTE ASS GILBERTO*/
.cover-seal {
  background: rgba(0, 240, 255, 0.04);
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 6px 18px;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  display: inline-block;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.cover-seal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.25), transparent);
  transform: skewX(-30deg);
  animation: sealShine 6s infinite linear;
}

@keyframes sealShine {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

.cover-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


/* Glitch Typography Effect */
.glitch {
  position: relative;
  color: var(--color-white-snow);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  left: 2px;
  text-shadow: -1.5px 0 #ff0055;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 6s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1.5px 0 #00f0ff, 0 1px #00f0ff;
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 6s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }

  10% {
    clip: rect(112px, 9999px, 76px, 0);
  }

  20% {
    clip: rect(85px, 9999px, 5px, 0);
  }

  30% {
    clip: rect(27px, 9999px, 115px, 0);
  }

  40% {
    clip: rect(73px, 9999px, 29px, 0);
  }

  50% {
    clip: rect(118px, 9999px, 141px, 0);
  }

  60% {
    clip: rect(9px, 9999px, 52px, 0);
  }

  70% {
    clip: rect(104px, 9999px, 120px, 0);
  }

  80% {
    clip: rect(62px, 9999px, 83px, 0);
  }

  90% {
    clip: rect(43px, 9999px, 110px, 0);
  }

  100% {
    clip: rect(135px, 9999px, 18px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(76px, 9999px, 116px, 0);
  }

  11% {
    clip: rect(3px, 9999px, 42px, 0);
  }

  22% {
    clip: rect(122px, 9999px, 88px, 0);
  }

  33% {
    clip: rect(94px, 9999px, 149px, 0);
  }

  44% {
    clip: rect(18px, 9999px, 64px, 0);
  }

  55% {
    clip: rect(108px, 9999px, 5px, 0);
  }

  66% {
    clip: rect(31px, 9999px, 92px, 0);
  }

  77% {
    clip: rect(83px, 9999px, 137px, 0);
  }

  88% {
    clip: rect(144px, 9999px, 22px, 0);
  }

  100% {
    clip: rect(52px, 9999px, 110px, 0);
  }
}

.cover-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--color-white-snow);
  margin: 0;
  line-height: 1;
}

.cover-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 10px;
  color: #00f0ff;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cover-art {
  position: relative;
  width: 250px;
  height: 290px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 8, 14, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 240, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.art-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
}



/* Floating Mini Cards Collage */
.mini-card {
  position: absolute;
  width: 50px;
  height: 68px;
  background: rgba(7, 8, 14, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(0, 240, 255, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.mini-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: scale(1.1) translateY(-5px) !important;
  z-index: 6;
}

.mc-avatar {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-num {
  font-family: monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
}

.mc-jujutsu {
  top: 25px;
  left: 25px;
  transform: rotate(-12deg);
  animation: floatCard1 6s infinite ease-in-out;
}

.mc-naruto {
  bottom: 25px;
  left: 20px;
  transform: rotate(8deg);
  animation: floatCard2 7s infinite ease-in-out;
}

.mc-luffy {
  top: 85px;
  right: 20px;
  transform: rotate(15deg);
  animation: floatCard3 6.5s infinite ease-in-out;
}

@keyframes floatCard1 {

  0%,
  100% {
    transform: rotate(-12deg) translateY(0);
  }

  50% {
    transform: rotate(-10deg) translateY(-6px);
  }
}

@keyframes floatCard2 {

  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(6deg) translateY(-4px);
  }
}

@keyframes floatCard3 {

  0%,
  100% {
    transform: rotate(15deg) translateY(0);
  }

  50% {
    transform: rotate(18deg) translateY(-5px);
  }
}

/* Central Glowing 3D Tech Sphere */
.tech-sphere {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.sphere-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #00f0ff 0%, #1f53e5 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.75), inset 0 0 10px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: spherePulse 4s infinite ease-in-out;
}

.art-logo {
  width: 32px;
  height: 32px;
  stroke: var(--color-white-snow);
  stroke-width: 2;
  fill: none;
}

.sphere-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
}

.sphere-ring.ring-1 {
  transform: rotateX(70deg) rotateY(15deg);
  animation: spinRing1 8s infinite linear;
  border-top-color: transparent;
}

.sphere-ring.ring-2 {
  transform: rotateX(15deg) rotateY(70deg);
  animation: spinRing2 8s infinite linear;
  border-bottom-color: transparent;
}

@keyframes spherePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.9);
  }
}

@keyframes spinRing1 {
  0% {
    transform: rotateX(70deg) rotateY(15deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(70deg) rotateY(15deg) rotateZ(360deg);
  }
}

@keyframes spinRing2 {
  0% {
    transform: rotateX(15deg) rotateY(70deg) rotateZ(360deg);
  }

  100% {
    transform: rotateX(15deg) rotateY(70deg) rotateZ(0deg);
  }
}


.cover-footer {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-white-snow);
  opacity: 0.5;
}

/* Reverted cover layout modifications */


/* CREDITS PAGE CSS */
.credits-content {
  background-color: var(--color-white-snow);
}

.credits-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.info-box {
  background: rgba(4, 41, 188, 0.05);
  border-left: 4px solid var(--color-tech-blue);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-box h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-deep-blue);
  font-size: 1.1rem;
}

.info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-box li {
  position: relative;
  padding-left: 20px;
}

.info-box li::before {
  content: "•";
  color: var(--color-dev-blue);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.credits-dedication {
  font-style: italic;
  color: var(--color-deep-blue);
  text-align: center;
  margin-top: 15px;
}

/* CONTRACAPA (Back Cover) CSS */
.page-cover-back {
  background-color: var(--color-blue-universe);
  background-image: linear-gradient(225deg, var(--color-blue-universe) 0%, var(--color-new-black) 100%);
  color: var(--color-white-snow);
  border: 3px solid var(--color-dev-blue);
  box-shadow: inset 0 0 50px rgba(31, 83, 229, 0.35);
}

.cover-back-content {
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
}

.cover-back-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 4px;
  background: linear-gradient(to right, #FFFFFF, var(--color-dev-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-back-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.tech-logo-collage {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

.summary-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 85%;
}

.barcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.barcode {
  display: flex;
  align-items: flex-end;
  height: 40px;
  gap: 2px;
}

.bar {
  width: 3px;
  height: 100%;
  background: #000;
}

.bar.thin {
  width: 1.5px;
}

.bar.thick {
  width: 5px;
}

.barcode-number {
  font-family: monospace;
  font-size: 0.75rem;
  color: #000;
}

.cover-back-footer {
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* Responsiveness & Mobile Adaptations */
@media (max-width: 1200px) {
  .album-viewport {
    width: 900px;
    height: 650px;
  }

  .page {
    width: 450px;
    height: 650px;
  }

  .page-content {
    padding: 30px;
  }

  .sticker-slot {
    min-height: 120px;
  }

  .special-slot {
    min-height: 130px;
  }

  .slot-number {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .cover-title {
    font-size: 3rem;
  }

  .cover-subtitle {
    font-size: 1.4rem;
  }

  .cover-art {
    width: 170px;
    height: 220px;
  }

  .tech-sphere {
    transform: scale(0.75);
  }

  .mini-card {
    width: 38px;
    height: 52px;
    padding: 4px 2px;
  }

  .mc-avatar {
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
  }

  .mc-num {
    font-size: 0.5rem;
  }

  .mc-jujutsu {
    top: 15px;
    left: 15px;
  }

  .mc-naruto {
    bottom: 15px;
    left: 10px;
  }

  .mc-luffy {
    top: 55px;
    right: 10px;
  }
}

@media (max-width: 768px) {

  /* In portrait/mobile mode, StPageFlip will show single pages */
  .album-viewport {
    width: 100%;
    max-width: 480px;
    height: 100%;
    min-height: 580px;
    padding: 10px;
  }

  .page {
    width: 100%;
    height: 580px;
  }

  .page-content {
    padding: 25px 20px;
  }

  .page-header {
    margin-bottom: 15px;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .stickers-grid {
    gap: 10px;
  }

  .sticker-slot {
    min-height: 100px;
    padding: 6px;
  }

  .special-slot {
    min-height: 110px;
    width: 90%;
  }

  .slot-number {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .slot-name {
    font-size: 0.8rem;
  }

  .slot-role {
    font-size: 0.65rem;
  }

  .cover-content {
    padding: 30px 15px;
  }

  .cover-title {
    font-size: 2.5rem;
  }

  .cover-art {
    width: 130px;
    height: 180px;
  }

  .tech-sphere {
    transform: scale(0.65);
  }

  .mini-card {
    display: none !important;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    opacity: 0.4;
  }

  .nav-btn-left {
    left: 10px;
  }

  .nav-btn-right {
    right: 10px;
  }

  .sound-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* Correções isoladas para smartphones. As páginas mantêm 550 x 800;
   o PageFlip em modo stretch faz apenas o ajuste visual proporcional. */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    min-height: 100dvh;
  }

  body {
    height: 100dvh;
    overflow: clip;
    padding: max(8px, env(safe-area-inset-top)) 62px max(58px, env(safe-area-inset-bottom));
  }

  .album-viewport {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .page {
    width: 550px;
    height: 800px;
    touch-action: pan-y;
  }

  .deck-card,
  .deck-sticker,
  .sticker-img {
    touch-action: none;
  }

  .deck-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(42dvh, 390px);
    border-right: 0;
    border-top: 1.5px solid rgba(231, 185, 91, 0.4);
    transform: translateY(100%);
    z-index: 300;
  }

  .deck-panel.open {
    transform: translateY(0);
  }

  .deck-toggle-btn {
    top: -46px;
    right: max(12px, env(safe-area-inset-right));
    width: auto;
    min-width: 112px;
    height: 46px;
    padding: 6px 12px;
    border: 1.5px solid rgba(231, 185, 91, 0.5);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transform: none;
    flex-direction: row;
  }

  .deck-content,
  .deck-grid {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .deck-header {
    padding: 10px 14px 8px;
  }

  .deck-grid {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 8px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  }

  .nav-btn {
    width: 42px;
    height: 42px;
    opacity: 0.85;
    z-index: 310;
  }

  .nav-btn-left {
    left: max(8px, env(safe-area-inset-left));
  }

  .nav-btn-right {
    right: max(8px, env(safe-area-inset-right));
  }

  .sound-btn {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }

  .sticker-viewer-card {
    max-width: 90vw;
    max-height: 85dvh;
  }

  .sticker-viewer-card img {
    max-width: 90vw;
    max-height: calc(85dvh - 58px);
    object-fit: contain;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    overflow: clip;
    padding: max(4px, env(safe-area-inset-top)) 58px max(42px, env(safe-area-inset-bottom));
  }

  .album-viewport {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .page {
    width: 550px;
    height: 800px;
  }

  .deck-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(35dvh, 230px);
    border-right: 0;
    border-top: 1.5px solid rgba(231, 185, 91, 0.4);
    transform: translateY(100%);
  }

  .deck-panel.open {
    transform: translateY(0);
  }

  .deck-toggle-btn {
    top: -38px;
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    min-width: 104px;
    height: 38px;
    padding: 4px 10px;
    border: 1.5px solid rgba(231, 185, 91, 0.5);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: none;
    flex-direction: row;
  }

  .deck-header {
    padding: 6px 12px;
  }

  .deck-header-title h2 {
    font-size: 1.25rem;
  }

  .deck-grid {
    grid-template-columns: repeat(8, minmax(58px, 1fr));
    gap: 7px;
    padding: 7px 12px max(7px, env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    opacity: 0.9;
    z-index: 310;
  }

  .nav-btn-left {
    left: max(6px, env(safe-area-inset-left));
  }

  .nav-btn-right {
    right: max(6px, env(safe-area-inset-right));
  }

  .sticker-viewer-card,
  .sticker-viewer-card img {
    max-height: 85dvh;
    max-width: 90vw;
    object-fit: contain;
  }
}

/* ===================================================
   TEMAS E ANIMAÇÕES PARA ASCENSÃO DOS LENDÁRIOS
   =================================================== */

/* Container de partículas e efeitos */
.page-effects-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Efeito de scale + glow nas figurinhas preenchidas */
.sticker-slot {
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease,
    background-color 0.3s ease !important;
}

.sticker-slot.slot-preenchido:hover {
  transform: scale(1.08) translateY(-4px);
  z-index: 10;
}

/* 1. Tema Lendas (🥇 Lendas Absolutas) */
.theme-lendas {
  background-color: #0c0b0a !important;
  background-image: radial-gradient(circle at center, #271f0c 0%, #0c0b0a 100%) !important;
  border: 1px solid rgba(229, 193, 88, 0.2) !important;
}

.theme-lendas .page-title {
  color: #e5c158 !important;
  text-shadow: 0 0 10px rgba(229, 193, 88, 0.3);
}

.theme-lendas .tech-badge {
  background-color: #e5c158 !important;
  color: #0c0b0a !important;
}

.theme-lendas .sticker-slot {
  background-color: rgba(229, 193, 88, 0.02) !important;
  border-color: rgba(229, 193, 88, 0.3) !important;
}

.theme-lendas .sticker-slot:hover {
  background-color: rgba(229, 193, 88, 0.08) !important;
  border-color: #e5c158 !important;
}

.theme-lendas .slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(229, 193, 88, 0.3) !important;
}

.theme-lendas .slot-number {
  color: #e5c158 !important;
  background: rgba(229, 193, 88, 0.08) !important;
}

.theme-lendas .slot-name {
  color: #f4f5f6 !important;
}

.theme-lendas .slot-role {
  color: #a8b0c0 !important;
}

/* 2. Tema Guerreiros (🥈 Guerreiros Supremos) */
.theme-guerreiros {
  background-color: #0f0a0a !important;
  background-image: radial-gradient(circle at center, #351307 0%, #0f0a0a 100%) !important;
  border: 1px solid rgba(255, 85, 0, 0.2) !important;
}

.theme-guerreiros .page-title {
  color: #ff5500 !important;
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

.theme-guerreiros .tech-badge {
  background-color: #ff5500 !important;
  color: #ffffff !important;
}

.theme-guerreiros .sticker-slot {
  background-color: rgba(255, 85, 0, 0.02) !important;
  border-color: rgba(255, 85, 0, 0.3) !important;
}

.theme-guerreiros .sticker-slot:hover {
  background-color: rgba(255, 85, 0, 0.08) !important;
  border-color: #ff5500 !important;
}

.theme-guerreiros .slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35) !important;
}

.theme-guerreiros .slot-number {
  color: #ff5500 !important;
  background: rgba(255, 85, 0, 0.08) !important;
}

.theme-guerreiros .slot-name {
  color: #f4f5f6 !important;
}

.theme-guerreiros .slot-role {
  color: #a8b0c0 !important;
}

/* 3. Tema Sistema (🥉 Mestres do Sistema) */
.theme-sistema {
  background-color: #060913 !important;
  background-image: radial-gradient(circle at center, #111b41 0%, #060913 100%) !important;
  border: 1px solid rgba(160, 78, 246, 0.2) !important;
}

.theme-sistema .page-title {
  color: #a04ef6 !important;
  text-shadow: 0 0 10px rgba(160, 78, 246, 0.3);
}

.theme-sistema .tech-badge {
  background-color: #a04ef6 !important;
  color: #ffffff !important;
}

.theme-sistema .sticker-slot {
  background-color: rgba(160, 78, 246, 0.02) !important;
  border-color: rgba(160, 78, 246, 0.3) !important;
}

.theme-sistema .sticker-slot:hover {
  background-color: rgba(160, 78, 246, 0.08) !important;
  border-color: #a04ef6 !important;
}

.theme-sistema .slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(160, 78, 246, 0.3) !important;
}

.theme-sistema .slot-number {
  color: #a04ef6 !important;
  background: rgba(160, 78, 246, 0.08) !important;
}

.theme-sistema .slot-name {
  color: #f4f5f6 !important;
}

.theme-sistema .slot-role {
  color: #a8b0c0 !important;
}

/* 4. Tema Mentes & Aventura */
.theme-mentes-aventura {
  background-color: #060c08 !important;
  background-image: linear-gradient(135deg, #091c10 0%, #15091a 100%) !important;
  border: 1px solid rgba(46, 204, 113, 0.2) !important;
}

.theme-mentes-aventura .page-title {
  background: linear-gradient(to right, #2ecc71, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-mentes-aventura .badge-mentes {
  background-color: #2ecc71 !important;
  color: #ffffff !important;
}

.theme-mentes-aventura .badge-aventura {
  background-color: #e74c3c !important;
  color: #ffffff !important;
}

.theme-mentes-aventura .slot-mentes {
  background-color: rgba(46, 204, 113, 0.02) !important;
  border-color: rgba(46, 204, 113, 0.3) !important;
}

.theme-mentes-aventura .slot-mentes:hover {
  background-color: rgba(46, 204, 113, 0.08) !important;
  border-color: #2ecc71 !important;
}

.theme-mentes-aventura .slot-mentes.slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3) !important;
}

.theme-mentes-aventura .slot-mentes .slot-number {
  color: #2ecc71 !important;
  background: rgba(46, 204, 113, 0.08) !important;
}

.theme-mentes-aventura .slot-aventura {
  background-color: rgba(231, 76, 60, 0.02) !important;
  border-color: rgba(231, 76, 60, 0.3) !important;
}

.theme-mentes-aventura .slot-aventura:hover {
  background-color: rgba(231, 76, 60, 0.08) !important;
  border-color: #e74c3c !important;
}

.theme-mentes-aventura .slot-aventura.slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3) !important;
}

.theme-mentes-aventura .slot-aventura .slot-number {
  color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.08) !important;
}

.theme-mentes-aventura .slot-name {
  color: #f4f5f6 !important;
}

.theme-mentes-aventura .slot-role {
  color: #a8b0c0 !important;
}

/* 5. Tema Nova Era, Sombrio e Lenda Infinita */
.theme-nova-sombrio-lenda {
  background-color: #06060c !important;
  background-image: linear-gradient(135deg, #070a16 0%, #170707 50%, #001224 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.theme-nova-sombrio-lenda .page-title {
  background: linear-gradient(to right, #00ffff, #ff0055, #0088ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-nova-sombrio-lenda .badge-nova {
  background-color: #00ffff !important;
  color: #000000 !important;
}

.theme-nova-sombrio-lenda .badge-sombrio {
  background-color: #ff0055 !important;
  color: #ffffff !important;
}

.theme-nova-sombrio-lenda .badge-lenda {
  background-color: #0088ff !important;
  color: #ffffff !important;
}

.theme-nova-sombrio-lenda .slot-nova {
  background-color: rgba(0, 240, 255, 0.02) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
}

.theme-nova-sombrio-lenda .slot-nova:hover {
  background-color: rgba(0, 240, 255, 0.08) !important;
  border-color: #00ffff !important;
}

.theme-nova-sombrio-lenda .slot-nova.slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3) !important;
}

.theme-nova-sombrio-lenda .slot-nova .slot-number {
  color: #00ffff !important;
  background: rgba(0, 240, 255, 0.08) !important;
}

.theme-nova-sombrio-lenda .slot-sombrio {
  background-color: rgba(255, 0, 85, 0.02) !important;
  border-color: rgba(255, 0, 85, 0.3) !important;
}

.theme-nova-sombrio-lenda .slot-sombrio:hover {
  background-color: rgba(255, 0, 85, 0.08) !important;
  border-color: #ff0055 !important;
}

.theme-nova-sombrio-lenda .slot-sombrio.slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 85, 0.35) !important;
}

.theme-nova-sombrio-lenda .slot-sombrio .slot-number {
  color: #ff0055 !important;
  background: rgba(255, 0, 85, 0.08) !important;
}

.theme-nova-sombrio-lenda .slot-ocean {
  background-color: rgba(0, 136, 255, 0.02) !important;
  border-color: rgba(0, 136, 255, 0.3) !important;
}

.theme-nova-sombrio-lenda .slot-ocean:hover {
  background-color: rgba(0, 136, 255, 0.08) !important;
  border-color: #0088ff !important;
}

.theme-nova-sombrio-lenda .slot-ocean.slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.35) !important;
}

.theme-nova-sombrio-lenda .slot-ocean .slot-number {
  color: #0088ff !important;
  background: rgba(0, 136, 255, 0.08) !important;
}

.theme-nova-sombrio-lenda .slot-name {
  color: #f4f5f6 !important;
}

.theme-nova-sombrio-lenda .slot-role {
  color: #a8b0c0 !important;
}

/* 6. Tema Filmes (🎬 Filmes - Crônicas da Alma) */
.theme-filmes {
  background-color: #070b16 !important;
  background-image: linear-gradient(180deg, #111a35 0%, #060810 100%) !important;
  border: 1px solid rgba(200, 215, 255, 0.15) !important;
}

.theme-filmes .page-title {
  color: #ccd7ff !important;
  text-shadow: 0 0 12px rgba(204, 215, 255, 0.3);
}

.theme-filmes .tech-badge {
  background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(255, 126, 95, 0.3);
}

.theme-filmes .sticker-slot {
  background-color: rgba(200, 215, 255, 0.02) !important;
  border-color: rgba(200, 215, 255, 0.2) !important;
}

.theme-filmes .sticker-slot:hover {
  background-color: rgba(200, 215, 255, 0.06) !important;
  border-color: rgba(200, 215, 255, 0.5) !important;
}

.theme-filmes .slot-preenchido:hover {
  box-shadow: 0 8px 24px rgba(200, 215, 255, 0.2) !important;
}

.theme-filmes .slot-number {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.theme-filmes .slot-name {
  color: #f4f5f6 !important;
}

.theme-filmes .slot-role {
  color: #cbd4e6 !important;
}

/* ===================================================
   SISTEMA DE ATRIBUTOS (STATS OVERLAY)
   =================================================== */
.slot-stats {
  display: none;
  /* Escondido por padrão */
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 12, 0.95);
  backdrop-filter: blur(4px);
  padding: 12px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  border-radius: 4px;
}

/* ETAPA 9: revela os status somente após clique. */
.sticker-slot.slot-preenchido.stats-visible .slot-stats {
  display: flex;
  opacity: 1;
}

.sticker-slot.slot-placement-animating {
  pointer-events: none !important;
}

.sticker-slot.slot-placement-animating .sticker-img {
  opacity: 0 !important;
  animation: none !important;
}

.sticker-slot.slot-placement-animating .slot-stats {
  display: none !important;
  opacity: 0 !important;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stat-label {
  font-family: 'Outfit', sans-serif;
  width: 52px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.52rem;
  color: #a0aab8;
  letter-spacing: 0.5px;
}

.stat-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 6px;
  overflow: hidden;
}

.stat-value {
  height: 100%;
  border-radius: 3px;
  background: #3498db;
  transition: width 0.4s ease-out;
}

.stat-num {
  font-family: monospace;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.65rem;
  width: 15px;
  text-align: right;
}

/* Cores das barras de acordo com o tema */
.theme-lendas .stat-value {
  background: #e5c158;
}

.theme-guerreiros .stat-value {
  background: #ff5500;
}

.theme-sistema .stat-value {
  background: #a04ef6;
}

.theme-mentes-aventura .slot-mentes .stat-value {
  background: #2ecc71;
}

.theme-mentes-aventura .slot-aventura .stat-value {
  background: #e74c3c;
}

.theme-nova-sombrio-lenda .slot-nova .stat-value {
  background: #00ffff;
}

.theme-nova-sombrio-lenda .slot-sombrio .stat-value {
  background: #ff0055;
}

.theme-nova-sombrio-lenda .slot-ocean .stat-value {
  background: #0088ff;
}

.theme-filmes .stat-value {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

/* ===================================================
   CAPA ANIME — ASCENSÃO DOS LENDÁRIOS
   Este bloco sobrescreve apenas a capa e preserva as
   demais páginas, os slots e o efeito de flipbook.
   =================================================== */

.page-cover.anime-cover {
  --cover-blue: #4ec8ff;
  --cover-violet: #8c5cff;
  --cover-gold: #f4c15d;
  --cover-orange: #ff7a35;
  --cover-ink: #05060d;

  position: relative;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(244, 193, 93, 0.34);
  background:
    radial-gradient(circle at 50% 38%, rgba(78, 200, 255, 0.15), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(255, 122, 53, 0.14), transparent 31%),
    linear-gradient(160deg, #101126 0%, #080913 48%, #03040a 100%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.72),
    inset 0 0 0 2px rgba(244, 193, 93, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.65);
}

.page-cover.anime-cover::before,
.page-cover.anime-cover::after {
  content: "";
  position: absolute;
  z-index: 8;
  pointer-events: none;
  inset: 14px;
}

.page-cover.anime-cover::before {
  border: 1px solid rgba(244, 193, 93, 0.42);
  box-shadow: inset 0 0 24px rgba(244, 193, 93, 0.08);
}

.page-cover.anime-cover::after {
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-cover .anime-style {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 42px 34px 34px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.energy-bg {
  position: absolute;
  z-index: -5;
  width: 170%;
  height: 170%;
  top: -35%;
  left: -35%;
  opacity: 0.72;
  filter: blur(46px) saturate(125%);
  background:
    radial-gradient(circle at 30% 35%, rgba(78, 200, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 62%, rgba(255, 122, 53, 0.21), transparent 31%),
    radial-gradient(circle at 52% 45%, rgba(140, 92, 255, 0.15), transparent 38%);
  animation: cover-energy-drift 12s ease-in-out infinite alternate;
  transform-origin: center;
}

.cover-stars {
  position: absolute;
  z-index: -4;
  inset: 0;
  opacity: 0.36;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .92) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(78, 200, 255, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(244, 193, 93, .7) 0 1px, transparent 1.6px);
  background-size: 43px 43px, 71px 71px, 97px 97px;
  background-position: 5px 13px, 31px 18px, 15px 42px;
  animation: cover-stars-float 18s linear infinite;
}

.cover-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .3), transparent 24%, transparent 72%, rgba(0, 0, 0, .72)),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, .72) 100%);
  pointer-events: none;
}




.cover-hero {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(88%, 430px);
  height: 390px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 4px;
  pointer-events: none;
}

.main-character {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translate3d(var(--cover-shift-x, 0px), var(--cover-shift-y, 0px), 0) scale(1.02);
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 18px rgba(78, 200, 255, 0.45)) drop-shadow(0 0 34px rgba(140, 92, 255, 0.26)) drop-shadow(0 20px 24px rgba(0, 0, 0, 0.75));
  transition: transform 180ms ease-out, filter 300ms ease;
  user-select: none;
}

.main-character.is-missing {
  opacity: 0;
}

.hero-aura {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  width: 210px;
  height: 310px;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(22px);
  opacity: 0.33;
  mix-blend-mode: screen;
  animation: cover-aura-pulse 4.8s ease-in-out infinite;
}

.aura-blue {
  background: radial-gradient(ellipse, rgba(78, 200, 255, 0.8), rgba(140, 92, 255, 0.12) 58%, transparent 74%);
}

.aura-gold {
  width: 155px;
  height: 230px;
  bottom: 8px;
  opacity: 0.25;
  animation-delay: -2.1s;
  background: radial-gradient(ellipse, rgba(244, 193, 93, 0.86), rgba(255, 122, 53, 0.1) 56%, transparent 73%);
}

.title-box {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: -30px;
  text-align: center;
  text-transform: uppercase;
}

.cover-kicker {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 3.1px;
}

.title-main,
.title-sub {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.title-main {
  color: #fff;
  font-size: clamp(3.1rem, 8.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.6),
    0 0 16px rgba(78, 200, 255, 0.26);
}

.title-sub {
  margin-top: 4px;
  color: var(--cover-gold);
  font-size: clamp(1.75rem, 4.7vw, 2.55rem);
  font-weight: 800;
  letter-spacing: 7px;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 18px rgba(244, 193, 93, 0.28);
}

.title-divider {
  width: 150px;
  height: 1px;
  margin: 16px auto 12px;
  background: linear-gradient(90deg, transparent, var(--cover-gold), transparent);
  box-shadow: 0 0 10px rgba(244, 193, 93, 0.45);
}

.subtitle {
  max-width: 380px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 2.1px;
  line-height: 1.45;
}

.anime-cover-footer {
  position: relative;
  z-index: 5;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cinzel', serif;
  gap: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.61rem;
  letter-spacing: 1.35px;
  line-height: 1.35;
}

.anime-cover-footer strong {
  color: rgba(244, 193, 93, 0.9);
  font-size: 0.59rem;
  font-weight: 700;
}

.anime-cover-footer small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.55rem;
  letter-spacing: 2px;
}

@keyframes cover-energy-drift {
  0% {
    transform: rotate(-8deg) scale(0.96) translate(-1%, 1%);
  }

  50% {
    transform: rotate(4deg) scale(1.06) translate(2%, -1%);
  }

  100% {
    transform: rotate(10deg) scale(1.01) translate(-1%, -2%);
  }
}

@keyframes cover-stars-float {
  from {
    background-position: 5px 13px, 31px 18px, 15px 42px;
  }

  to {
    background-position: 5px 86px, 31px 126px, 15px 164px;
  }
}

@keyframes cover-aura-pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(0.92);
    opacity: 0.22;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.42;
  }
}

@media (max-width: 700px) {
  .page-cover .anime-style {
    padding: 34px 25px 28px;
  }

  .cover-hero {
    height: 340px;
    width: 92%;
  }

  .title-box {
    margin-top: -22px;
  }

  .title-main {
    letter-spacing: 2px;
  }

  .title-sub {
    letter-spacing: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .energy-bg,
  .cover-stars,
  .hero-aura {
    animation: none !important;
  }

  .main-character {
    transition: none;
  }
}



/* ===================================================
   AJUSTE V2 — CAPA E CONTRACAPA
   Paleta anime, cards interativos e título animado.
   =================================================== */
body {
  background-color: #07060d;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(118, 62, 199, .20), transparent 30%),
    radial-gradient(circle at 82% 75%, rgba(224, 109, 45, .18), transparent 34%),
    linear-gradient(135deg, #07060d 0%, #0d0a18 45%, #120b18 100%);
}

.page-cover.anime-cover,
.page-cover-back {
  --cover-gold: #e7b95b;
  --cover-violet: #7d4fd1;
  --cover-magenta: #b43d78;
  --cover-fire: #d95c32;
  --cover-ink: #08070d;
  border-color: rgba(231, 185, 91, .55);
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 79, 209, .23), transparent 28%),
    radial-gradient(circle at 76% 70%, rgba(217, 92, 50, .16), transparent 32%),
    linear-gradient(160deg, #161020 0%, #0c0911 46%, #050409 100%);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, .78),
    inset 0 0 0 2px rgba(231, 185, 91, .08),
    0 26px 70px rgba(0, 0, 0, .72);
}

.page-cover .anime-style {
  padding: 34px 34px 28px;
  grid-template-rows: auto auto minmax(300px, 1fr) auto;
  gap: 10px;
}

.page-cover .cover-seal {
  font-family: 'Cinzel', serif;
  color: var(--cover-gold);
  border-color: rgba(231, 185, 91, .68);
  background: rgba(10, 7, 14, .62);
}

.title-box {
  margin-top: 0;
}

.cover-kicker {
  font-family: 'Cinzel', serif;
  color: rgba(255, 255, 255, .62);
  letter-spacing: 2.6px;
}

.title-main,
.title-sub {
  font-family: 'Bangers', 'Outfit', sans-serif;
  font-style: normal;
  transform: skewX(-4deg);
  position: relative;
  display: inline-block;
  overflow: visible;
}

.title-main {
  font-size: clamp(3.7rem, 9vw, 5.4rem);
  letter-spacing: 4px;
  color: #fff7e7;
  text-shadow:
    3px 3px 0 #2a1023,
    -2px -1px 0 rgba(125, 79, 209, .8),
    0 0 22px rgba(231, 185, 91, .28);
  animation: anime-title-pulse 3.8s ease-in-out infinite;
}

.title-sub {
  display: block;
  margin-top: -2px;
  color: var(--cover-gold);
  font-size: clamp(2rem, 5.4vw, 3rem);
  letter-spacing: 7px;
  text-shadow:
    2px 2px 0 #34131d,
    0 0 18px rgba(217, 92, 50, .36);
  animation: anime-title-pulse 3.8s ease-in-out infinite reverse;
}

.anime-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .88) 50%, transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: anime-title-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

.title-divider {
  margin: 11px auto 8px;
}

.subtitle {
  font-family: 'Cinzel', serif;
  max-width: 410px;
  color: rgba(255, 244, 226, .78);
  font-size: .72rem;
  letter-spacing: 1.8px;
}



.anime-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .30), transparent 18%),
    radial-gradient(circle, #8d54df 0%, #3b225f 58%, #130b1e 100%);
  border: 2px solid rgba(231, 185, 91, .72);
  box-shadow:
    0 0 20px rgba(125, 79, 209, .72),
    0 0 48px rgba(217, 92, 50, .24),
    inset 0 0 18px rgba(255, 255, 255, .13);
  animation: anime-core-float 4.2s ease-in-out infinite;
  z-index: 2;
}

.core-kanji {
  font-family: 'Cinzel', serif;
  color: #fff4db;
  font-size: 2.7rem;
  line-height: 1;
}

.core-label {
  font-family: 'Cinzel', serif;
  color: var(--cover-gold);
  font-size: .55rem;
  letter-spacing: 2px;
}

.cover-card {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  width: 82px;
  height: 112px;
  padding: 10px 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(231, 185, 91, .42);
  background: linear-gradient(155deg, rgba(31, 20, 42, .96), rgba(8, 7, 13, .97));
  color: #fff7e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotate(var(--r, 0deg)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .32s cubic-bezier(.2, .75, .25, 1), box-shadow .32s ease, border-color .32s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .52), inset 0 0 14px rgba(125, 79, 209, .08);
  z-index: 3;
}

.cover-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(231, 185, 91, .14);
  border-radius: 7px;
  pointer-events: none;
}

.cover-card:hover,
.cover-card:focus-visible {
  --r: 0deg;
  transform: translateY(-10px) scale(1.12) rotateX(var(--rx)) rotateY(var(--ry));
  border-color: var(--cover-gold);
  box-shadow: 0 0 18px rgba(231, 185, 91, .42), 0 18px 28px rgba(0, 0, 0, .58), inset 0 0 18px rgba(125, 79, 209, .18);
  outline: none;
  z-index: 8;
}

.card-symbol {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  color: var(--cover-gold);
  text-shadow: 0 0 12px rgba(231, 185, 91, .4);
}

.cover-card strong {
  font-family: 'Cinzel', serif;
  font-size: .54rem;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.cover-card small {
  color: rgba(255, 255, 255, .45);
  font-size: .55rem;
}

.page-cover-back {
  position: relative;
  overflow: hidden;
}

.page-cover-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(125, 79, 209, .22), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(217, 92, 50, .12), transparent 30%);
  pointer-events: none;
}

.cover-back-content {
  position: relative;
  z-index: 1;
  padding: 52px 42px 40px;
}

.cover-back-header h2 {
  font-family: 'Bangers', 'Outfit', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 3px;
  color: #fff4de;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 3px 3px 0 #2d1023, 0 0 18px rgba(231, 185, 91, .22);
}

.tech-logo-collage {
  font-family: 'Cinzel', serif;
  color: var(--cover-gold);
  opacity: .82;
}

.summary-text {
  font-family: 'Cinzel', serif;
  color: rgba(255, 244, 226, .78);
  opacity: 1;
}

.cover-back-footer {
  font-family: 'Cinzel', serif;
  color: rgba(231, 185, 91, .7);
  opacity: 1;
}

.barcode-container {
  border: 1px solid rgba(231, 185, 91, .55);
  box-shadow: 0 0 22px rgba(125, 79, 209, .18), 0 8px 20px rgba(0, 0, 0, .45);
}

@keyframes anime-title-pulse {

  0%,
  100% {
    transform: skewX(-4deg) translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: skewX(-4deg) translateY(-2px);
    filter: brightness(1.12);
  }
}

@keyframes anime-title-shine {

  0%,
  18% {
    transform: translateX(-120%);
    opacity: 0;
  }

  34% {
    opacity: 1;
  }

  54%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes anime-core-float {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(.96);
  }

  50% {
    transform: translate(-50%, -54%) scale(1.04);
  }
}

@media (max-width:700px) {
  .page-cover .anime-style {
    padding: 28px 24px 24px;
    grid-template-rows: auto auto minmax(270px, 1fr) auto;
  }


  .cover-card {
    width: 72px;
    height: 98px;
  }

  .title-main {
    font-size: 3.9rem;
  }

  .title-sub {
    font-size: 2.1rem;
    letter-spacing: 4px;
  }
}

.cover-card.is-dimmed {
  opacity: .45;
  filter: saturate(.55);
  transform: rotate(var(--r, 0deg)) scale(.94);
}


/* ===================================================
   CORREÇÃO: IMAGEM DE FUNDO DA CAPA
   Mantém título, cards e efeitos interativos acima da arte.
   =================================================== */
.anime-cover {
  isolation: isolate;
}

.cover-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.58;
  filter: saturate(0.92) contrast(1.06) brightness(0.68);
  transform: scale(1.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: cover-image-breathe 12s ease-in-out infinite alternate;
}

.cover-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(8, 5, 17, 0.66) 0%,
      rgba(11, 6, 20, 0.28) 26%,
      rgba(11, 6, 20, 0.38) 89%,
      rgba(7, 4, 12, 0.88) 100%);
}

/* Garante que todo o conteúdo da capa fique acima da imagem. */


.anime-cover .title-box,
.anime-cover .anime-cover-art,
.anime-cover .energy-bg,

.anime-cover .cover-vignette {
  position: relative;
  z-index: 3;
}

/* ===================================================
ESTREMAMENTE IMPORTANTE!  ASS GILBERTO 
AJUSTE SOLICITADO — CAPA 
   - personagens preservados
   - remoção do kicker e subtítulo
   - cards em formação 1 / 2 / 2
   - bloco principal centralizado, mais alto e levemente à esquerda
   =================================================== */

/* Área dos cards sem círculo, anéis ou núcleo central. */
.anime-cover .anime-cover-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 285px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  perspective: 900px;
}

.page-cover .anime-style {
  grid-template-rows: auto auto minmax(20px, 1fr) auto;
  padding: 10px 34px 22px;
  gap: 2px;
}

.page-cover .title-box {
  align-self: start;
  margin-top: 2px;
}

.page-cover .anime-cover-art {
  width: min(90%, 400px);
  height: 400px;
  min-height: 400px;
  margin: auto 0;
  transform: translateX(-18px);
}


.page-cover .anime-cover-footer {
  margin-top: 43px;
  transform: translate(-18px, -38px);
}

/* Formação solicitada:
              Naruto
   Jujutsu             Demon
        Solo       One Piece
*/
.page-cover .anime-cover-art .card-naruto {
  left: 50%;
  right: auto;
  top: 0;
  bottom: auto;
  margin-left: -38px;
  --r: 0deg;
}

.page-cover .anime-cover-art .card-jujutsu {
  left: 2%;
  right: auto;
  top: 35%;
  bottom: auto;
  --r: -7deg;
}

.page-cover .anime-cover-art .card-onepiece {
  right: 2%;
  left: auto;
  top: 35%;
  bottom: auto;
  --r: 7deg;
}

.page-cover .anime-cover-art .card-solo {
  left: 19%;
  right: auto;
  top: auto;
  bottom: 0;
  --r: -4deg;
}

.page-cover .anime-cover-art .card-demon {
  right: 19%;
  left: auto;
  top: auto;
  bottom: 0;
  margin-left: 0;
  --r: 4deg;
}

/* ===================================================
   DECK DE FIGURINHAS LATERAL (ETAPA 2)
   =================================================== */

.deck-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 290px;
  background: rgba(12, 10, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1.5px solid rgba(231, 185, 91, 0.4);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.7);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-panel.open {
  transform: translateX(0);
}

/* Botão Retrátil de Toggle */
.deck-toggle-btn {
  position: absolute;
  top: 50%;
  right: -52px;
  transform: translateY(-50%);
  width: 52px;
  background: rgba(16, 12, 28, 0.92);
  border: 1.5px solid rgba(231, 185, 91, 0.5);
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #e7b95b;
  padding: 14px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 301;
}

.deck-toggle-btn:hover {
  background: rgba(31, 20, 50, 0.95);
  border-color: #e7b95b;
  box-shadow: 0 0 15px rgba(231, 185, 91, 0.4);
}

.deck-toggle-icon {
  font-size: 1.4rem;
}

.deck-toggle-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.deck-badge-count {
  background: #e7b95b;
  color: #0c0a16;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Conteúdo do Deck */
.deck-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.deck-header {
  padding: 20px 18px 15px;
  border-bottom: 1px solid rgba(231, 185, 91, 0.2);
  background: linear-gradient(180deg, rgba(231, 185, 91, 0.08) 0%, transparent 100%);
}

.deck-header-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.deck-header-title h2 {
  font-family: 'Bangers', 'Outfit', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #fff7e7;
  text-shadow: 0 0 10px rgba(231, 185, 91, 0.3);
}

.deck-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  color: rgba(231, 185, 91, 0.8);
}

.deck-count-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Grid com Scroll */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar customizada elegante */
.deck-grid::-webkit-scrollbar {
  width: 6px;
}

.deck-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.deck-grid::-webkit-scrollbar-thumb {
  background: rgba(231, 185, 91, 0.3);
  border-radius: 3px;
}

.deck-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(231, 185, 91, 0.6);
}

/* Card de Miniatura no Deck */
.deck-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  border: 1.5px solid rgba(231, 185, 91, 0.35);
  background: rgba(20, 16, 34, 0.8);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.deck-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #e7b95b;
  box-shadow: 0 0 14px rgba(231, 185, 91, 0.4);
}

.deck-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.deck-card-number {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(12, 10, 22, 0.85);
  color: #e7b95b;
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(231, 185, 91, 0.3);
  z-index: 2;
}

.deck-card-name {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 4px 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-empty-msg {
  grid-column: span 2;
  text-align: center;
  padding: 30px 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-style: italic;
}

/* ===================================================
   SISTEMA DE DRAG DE FIGURINHAS (ETAPA 3)
   =================================================== */

.deck-card.dragging-source {
  opacity: 0.35;
  transform: scale(0.94);
  border-style: dashed;
  transition-duration: 0.55s;
}

.dragging-sticker-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 120px;
  pointer-events: none !important;
  z-index: 9999;
  border-radius: 6px;
  border: 2px solid #e7b95b;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(231, 185, 91, 0.5);
  transform: translate(-50%, -50%) scale(1.05) rotate(3deg);
  overflow: hidden;
  background: rgba(20, 16, 34, 0.95);
  will-change: left, top, transform;
}

.dragging-sticker-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.dragging-sticker-ghost .ghost-number {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(12, 10, 22, 0.9);
  color: #e7b95b;
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(231, 185, 91, 0.4);
  z-index: 2;
}

/* ===================================================
   DESTAQUE DE DROP EM SLOTS (ETAPA 4)
   =================================================== */

/* Slot Correto (Válido) */
.sticker-slot.slot-target-valid {
  border-color: #e7b95b !important;
  border-style: solid !important;
  background-color: rgba(231, 185, 91, 0.2) !important;
  box-shadow: 0 0 25px rgba(231, 185, 91, 0.7), inset 0 0 15px rgba(231, 185, 91, 0.35) !important;
  animation: slot-pulse-valid 0.7s infinite alternate ease-in-out !important;
  z-index: 20;
}

@keyframes slot-pulse-valid {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(231, 185, 91, 0.4), inset 0 0 10px rgba(231, 185, 91, 0.2);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(231, 185, 91, 0.85), inset 0 0 20px rgba(231, 185, 91, 0.45);
  }
}

/* Slot Errado (Inválido) */
.sticker-slot.slot-target-invalid {
  border-color: #ff3344 !important;
  border-style: solid !important;
  background-color: rgba(255, 51, 68, 0.14) !important;
  box-shadow: 0 0 16px rgba(255, 51, 68, 0.4), inset 0 0 10px rgba(255, 51, 68, 0.2) !important;
  transition: all 0.2s ease;
}

/* ===================================================
   EFEITO DE PARTÍCULAS NA COLAGEM DA FIGURINHA (ETAPA 5)
   =================================================== */
.sticker-drop-particle {
  position: fixed;
  pointer-events: none !important;
  z-index: 10000;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7e7 0%, #e7b95b 60%, rgba(231, 185, 91, 0) 100%);
  box-shadow: 0 0 8px #e7b95b, 0 0 12px rgba(255, 255, 255, 0.8);
}

/* ===================================================
   BOTÃO E ANIMAÇÃO DE DEVOLVER TODAS (ETAPA 6)
   =================================================== */

.deck-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.deck-return-btn {
  background: rgba(231, 185, 91, 0.12);
  border: 1px solid rgba(231, 185, 91, 0.4);
  color: #e7b95b;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.deck-return-btn:hover:not(:disabled) {
  background: rgba(231, 185, 91, 0.25);
  border-color: #e7b95b;
  box-shadow: 0 0 10px rgba(231, 185, 91, 0.3);
}

.deck-return-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}

.returning-sticker-ghost {
  position: fixed;
  pointer-events: none !important;
  z-index: 9999;
  border-radius: 6px;
  border: 1.5px solid #e7b95b;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(231, 185, 91, 0.4);
  overflow: hidden;
  background: rgba(20, 16, 34, 0.95);
  will-change: transform, left, top, opacity;
}

.returning-sticker-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===================================================
   VISUALIZADOR DE FIGURINHA / VIEWER OVERLAY (ETAPA 7)
   =================================================== */

.sticker-viewer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 4, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.sticker-viewer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sticker-viewer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.sticker-viewer-card {
  position: relative;
  max-width: 80vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 2px solid #e7b95b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(231, 185, 91, 0.45);
  overflow: hidden;
  background: #0d0a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center center;
  will-change: transform, opacity;
}

.sticker-viewer-card img {
  max-width: 80vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sticker-viewer-info {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(13, 10, 26, 0.8) 0%, rgba(20, 16, 36, 0.95) 100%);
  border-top: 1px solid rgba(231, 185, 91, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticker-viewer-number {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e7b95b;
  background: rgba(231, 185, 91, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(231, 185, 91, 0.4);
}

.sticker-viewer-title {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.sticker-viewer-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 10, 22, 0.85);
  border: 1px solid #e7b95b;
  color: #e7b95b;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.sticker-viewer-close-btn:hover {
  background: #e7b95b;
  color: #0d0a1a;
  box-shadow: 0 0 12px rgba(231, 185, 91, 0.6);
  transform: scale(1.1);
}

/* Mantido no fim do arquivo para prevalecer sobre os componentes desktop. */
@media (max-width: 768px) {
  .deck-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(42dvh, 390px);
    border-right: 0;
    border-top: 1.5px solid rgba(231, 185, 91, 0.4);
    transform: translateY(100%);
  }

  .deck-panel.open { transform: translateY(0); }

  .deck-toggle-btn {
    top: -46px;
    right: max(12px, env(safe-area-inset-right));
    width: auto;
    min-width: 112px;
    height: 46px;
    padding: 6px 12px;
    border: 1.5px solid rgba(231, 185, 91, 0.5);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transform: none;
    flex-direction: row;
  }

  .deck-grid {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 8px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .sticker-viewer-card {
    max-width: 90vw;
    max-height: 85dvh;
  }

  .sticker-viewer-card img {
    max-width: 90vw;
    max-height: calc(85dvh - 58px);
    object-fit: contain;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .deck-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(35dvh, 230px);
    border-right: 0;
    border-top: 1.5px solid rgba(231, 185, 91, 0.4);
    transform: translateY(100%);
  }

  .deck-panel.open { transform: translateY(0); }

  .deck-toggle-btn {
    top: -38px;
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    min-width: 104px;
    height: 38px;
    padding: 4px 10px;
    border: 1.5px solid rgba(231, 185, 91, 0.5);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: none;
    flex-direction: row;
  }

  .deck-grid {
    grid-template-columns: repeat(8, minmax(58px, 1fr));
    gap: 7px;
    padding: 7px 12px max(7px, env(safe-area-inset-bottom));
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .sticker-viewer-card,
  .sticker-viewer-card img {
    max-width: 90vw;
    max-height: 85dvh;
    object-fit: contain;
  }
}
