/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 21px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: "Orbitron", sans-serif;
  background: #000;
  color: white;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

/* Vídeo de fundo */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -10;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -5;
}

/* ========== TELA PRINCIPAL ========== */
.game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Logo superior esquerdo */
.logo-top-left {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 10;
}

.logo-top-left img {
  height: 289px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

/* Painel de Players Online */
.players-online-panel {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(30, 30, 30, 0.5));
  border: 2px solid rgba(135, 206, 235, 0.5);
  border-radius: 15px;
  padding: 12px 25px;
  box-shadow: 0 4px 20px rgba(135, 206, 235, 0.3);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.players-icon {
  font-size: 28px;
  animation: pulse 2s ease-in-out infinite;
}

.players-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.players-label {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(135, 206, 235, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.players-count {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
  }
}

/* Botões sociais superior direito */
.social-buttons-top {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.social-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  position: relative;
}

.social-btn-circle:hover {
  transform: scale(1.1);
}

.social-btn-circle img {
  width: 60px;
  height: 60px;
}

/* Tooltip flutuante para o botão account */
#accountBtn .floating-tooltip {
    position: absolute;
    top: 70px;
    right: 6px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    color: #000;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 11;
    animation: floatingTooltip 2s 
ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    pointer-events: none;
}

#accountBtn .floating-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 215, 0, 0.95);
}

@keyframes floatingTooltip {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Recompensas (inferior esquerdo) */
.rewards-info {
  position: absolute;
  bottom: 120px;
  left: 30px;
  z-index: 10;
}

.rewards-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: white;
  font-size: 14px;
  background: url("./assets/images/barrarecompensas.png");
  background-size: cover;
  padding: 10px;
  border-radius: 10px;
}

.loading-icon {
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rewards-icon {
  height: 20px;
}

.countdown {
  color: #87ceeb;
  font-weight: bold;
}

.rewards-cards {
  display: flex;
  gap: 8px;
}

.btnMidias {
  background: url("./assets/images/midias.png");
  background-size: cover;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

.btnMidias button {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 100;
}

.btnMidias button:nth-child(1) {
  margin-top: 10px;
}

.btnMidias button:nth-child(2) {
  margin-top: 70px;
}

.btnMidias button:nth-child(3) {
  margin-top: 130px;
}

.btnMidias:hover button {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.reward-card {
  width: 96px;
  height: 129px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.reward-card:hover {
  transform: translateY(-5px);
}

.reward-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-text {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Botão Jogar Central */
.play-btn-container {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.play-button {
  border: none;
  border-radius: 25px;
  padding: 15px 107px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: url(./assets/images/btnPlay.png);
  background-size: cover;
  background-position: center;
  width: 272px;
  height: 63px;
}

.play-button:hover {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 5px 15px rgba(255, 102, 0, 0.5));
}

.play-wing1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./assets/images/wing1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
}
.play-wing2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url(./assets/images/wing2.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
}

/* Seta indicativa de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  cursor: pointer;
}

.scroll-arrow {
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  animation: float-bounce 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  transform: scale(1.2);
}

@keyframes float-bounce {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Personagens flutuantes */
.character-float {
  position: absolute;
  bottom: 30px;
  z-index: 5;
}

.character-float.left {
  left: 30px;
  animation: float-left 3s ease-in-out infinite;
}

.character-float.right {
  right: 30px;
  animation: float-right 3s ease-in-out infinite;
}

.character-float img {
  height: 120px;
  filter: drop-shadow(0 0 10px rgba(147, 112, 219, 0.5));
  bottom: 131px;
  position: relative;
}

@keyframes float-left {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Discord inferior direito */
.discord-bottom {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
}

.discord-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.discord-btn:hover {
  transform: scale(1.1);
}

.discord-btn img {
  width: 60px;
  height: 60px;
}

/* ========== SEÇÃO DE DESTAQUES ========== */
.highlights-container {
  position: relative;
  width: 100vw;
  min-height: 105vh;
  z-index: 1;
  padding: 40px 0;
  background: url(./assets/images/fundosecundario.png);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow-x: hidden;
}

.highlights-container.fade-in {
  opacity: 1;
}

/* Logo highlights */
.logo-highlights {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.logo-highlights img {
  height: 199px;
  opacity: 0.8;
}

/* Header Destaques */
.highlights-header {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.highlights-badge {
  color: white;
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  background: url(./assets/images/barradestaques.png);
  background-size: cover;
  background-position: center;
  width: 308px;
}

.decorative-line {
  width: 100px;
  height: 2px;
  margin: 10px auto;
}

.arrow-down {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  background: url(./assets/images/barrasuperior.png);
  background-size: cover;
  background-position: center;
  width: 147px;
  height: 41px;
  position: relative;
  transform: translate(-50%, -50%);
  left: 50%;
}

/* ========== ROTATING PHRASES STYLES ========== */
.rotating-phrases {
  position: relative;
  bottom: -101px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1050px;
  text-align: center;
  z-index: 10;
}

.phrase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(135, 206, 235, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in-out;
  line-height: 1.4;
  padding: 15px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3),
    rgba(135, 206, 235, 0.1)
  );
  border-radius: 10px;
  border: 1px solid rgba(135, 206, 235, 0.3);
}

.phrase.active {
  opacity: 1;
  transform: translateY(0);
}

.phrase.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

@media (max-width: 768px) {
  .rotating-phrases {
    top: 12%;
    width: 90%;
  }

  .phrase {
    font-size: 16px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .phrase {
    font-size: 14px;
    padding: 10px;
  }
}

/* Galeria de Personagens */
.characters-gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 55px auto;
  justify-content: center;
  transform: translate(0%, 25%);
}

.arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0px 21px 0px 6px;
}

.arrow-btn img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.arrow-btn:hover {
  transform: scale(1.15);
}

.arrow-btn:hover img {
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

img.imgCard {
  width: 78%;
  height: 60%;
  position: relative;
  bottom: 110px;
  left: 8px;
}

/* ========== CARROSSEL NOVO ========== */

/* Background do carrossel como elemento independente */
.carousel-background {
  position: relative;
  width: 1206px;
  height: 508px;
  margin: 0 auto;
  background: url(./assets/images/backbanner.png);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  z-index: 1;
}

/* Container principal - agora posicionado sobre o background */
.carousel-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1092px;
  height: 518px;
  overflow: hidden;
  z-index: 2;
  contain: layout style paint;
  transform: translate(-50%, -15%);
}

/* Track do carrossel */
.carousel-track {
  display: flex;
  width: calc(164px * 14);
  height: 86%;
  align-items: flex-end;
  gap: 147px;
  left: 74px;
  top: 44px;
  position: relative;
  z-index: 3;
  animation-fill-mode: none;
}

/* Animação contínua mais rápida */
.carousel-track.sliding-right {
  animation: slideRightInfinite 1.5s linear infinite;
}

.carousel-track.sliding-left {
  animation: slideLeftInfinite 1.5s linear infinite;
}

/* Loop infinito perfeito */
@keyframes slideRightInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-164px * 7)); /* Move exatamente 7 banners */
  }
}

@keyframes slideLeftInfinite {
  0% {
    transform: translateX(calc(-164px * 7));
  }
  100% {
    transform: translateX(0);
  }
}

/* ========== MODAL PLAY GAME ========== */
.play-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 10001;
}

.modal-background {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-bg-image {
  width: 600px;
  height: auto;
  object-fit: contain;
}

.modal-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sorry-image {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.modal-text {
  text-align: center;
  color: #000000;
  font-family: "Orbitron", sans-serif;
  font-size: 35px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 404px;
  line-height: 1.4;
}

.modal-close-btn {
  position: absolute;
  top: -200px;
  right: -250px;
  background: rgba(255, 0, 0, 0.8);
  border: none;
  color: white;
  font-size: 30px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-close-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

/* ========== MODAL CADASTRO ========== */
.register-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-modal.hidden {
  display: none;
}

.register-modal-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.register-title {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.register-form {
  width: 71%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-background img {
  height: 105%;
  width: 114%;
}

.input-group {
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-bg {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.input-wrapper input {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  background: transparent;
  border: none;
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  padding: 8px;
  outline: none;
  text-align: center;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-wrapper input[type="date"] {
  color-scheme: dark;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.register-btn-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.register-btn-bg {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.register-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.register-btn:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.05);
}

.register-success {
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 15px;
  color: #00ff00;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  text-align: center;
  animation: successGlow 2s ease-in-out infinite alternate;
}

.register-success.hidden {
  display: none;
}

@keyframes successGlow {
  from {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  }
}

/* Banner individual */
.banner-slide {
  width: 144px;
  height: 213px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  will-change: transform;
  margin: 6px;
}

.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.banner-slide:hover {
  transform: translateY(-15px) scale(1.02);
  z-index: 10;
}

.banner-slide:hover .banner-content {
  transform: rotateY(180deg);
}

.banner-front,
.banner-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
}

.banner-front {
  background: transparent;
}

.banner-back {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.9),
    rgba(255, 140, 0, 0.8)
  );
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  height: 168%;
  width: 170%;
  top: -103px;
  left: -64px;
}

.banner-back h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.banner-back p {
  font-size: 10px;
  color: #333;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.banner-front img {
  width: 165%;
  height: 176%;
  object-fit: cover;
  position: relative;
  bottom: 131px;
  left: -47px;
  border-radius: 10px;
}

.characters-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 112px;
  padding: 79px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  background: url(./assets/images/backbanner.png);
  background-size: cover;
  background-position: center;
  position: relative;
  height: 588px;
  box-sizing: border-box;
  overflow: visible;
}

.char-item {
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid transparent;
  position: relative;
  bottom: 29px;
  z-index: 1;
  width: 144px;
  height: 213px;
  flex-shrink: 0;
  perspective: 1000px;
  opacity: 1;
}

.char-item.hidden {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Rotação contínua para char-items */
.char-item.rotating-right {
  animation: charRotateRight 0.8s linear infinite !important;
  animation-fill-mode: both !important;
  transform-origin: center center !important;
}

.char-item.rotating-left {
  animation: charRotateLeft 0.8s linear infinite !important;
  animation-fill-mode: both !important;
  transform-origin: center center !important;
}

/* Teste de animação simples */
.char-item.test-rotate {
  animation: testSpin 2s linear infinite !important;
}

@keyframes testSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes charRotateRight {
  0% {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
  }
  20% {
    transform: translateX(8px) scale(1.03) rotateY(3deg);
    opacity: 0.95;
  }
  40% {
    transform: translateX(15px) scale(0.97) rotateY(6deg);
    opacity: 0.85;
  }
  60% {
    transform: translateX(8px) scale(1.03) rotateY(3deg);
    opacity: 0.95;
  }
  80% {
    transform: translateX(-5px) scale(1.01) rotateY(-2deg);
    opacity: 0.98;
  }
  100% {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes charRotateLeft {
  0% {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
  }
  20% {
    transform: translateX(-8px) scale(1.03) rotateY(-3deg);
    opacity: 0.95;
  }
  40% {
    transform: translateX(-15px) scale(0.97) rotateY(-6deg);
    opacity: 0.85;
  }
  60% {
    transform: translateX(-8px) scale(1.03) rotateY(-3deg);
    opacity: 0.95;
  }
  80% {
    transform: translateX(5px) scale(1.01) rotateY(2deg);
    opacity: 0.98;
  }
  100% {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
  }
}

.char-item.small {
  width: 144px;
  height: 213px;
}

/* Container interno para o flip */
.char-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

/* Efeito de hover - saltadinha e flip */
.char-item:hover {
  transform: translateY(-20px) scale(1.05);
  z-index: 10;
}

.char-item:hover .char-item-inner {
  transform: rotateY(180deg);
}

/* Frente e verso do card */
.char-item-front,
.char-item-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.char-item-front {
  background: transparent;
}

.char-item-back {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.9),
    rgba(255, 140, 0, 0.8)
  );
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  width: 159%;
  height: 163%;
  bottom: -37px;
  left: -40px;
}

.char-item-back h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.char-item-back p {
  font-size: 10px;
  color: #333;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.char-item-front img {
  width: 165%;
  height: 176%;
  object-fit: cover;
  bottom: 131px;
  position: relative;
  border-radius: 10px;
  left: -47px;
}

/* Barra de progresso */
.progress-container {
  position: relative;
  margin: 20px auto;
  width: 70%;
  max-width: 500px;
  transform: translate(0%, 200%);
}

.progress-bar {
  width: 213%;
  height: 46px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  right: 283px;
}
.progress-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(
    90deg,
    #ff69b4 0%,
    #da70d6 25%,
    #9370db 50%,
    #6495ed 75%,
    #87ceeb 100%
  );
  border-radius: 8px;
  animation: progress-shine 3s linear infinite;
}

@keyframes progress-shine {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

/* Poring no canto */
.poring-corner {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 5;
  animation: poring-bounce 4s ease-in-out infinite;
}

.poring-corner img {
  height: 100px;
  filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.5));
}

@keyframes poring-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

/* Responsividade */

/* Tablets e telas médias */
@media (max-width: 1024px) {
  .logo-top-left img {
    height: 120px;
  }

  .characters-row {
    padding: 40px;
    gap: 10px;
  }

  .char-item {
    width: 120px;
    height: 180px;
  }

  .play-button {
    width: 180px;
    height: 40px;
    font-size: 14px;
  }
}

/* Responsividade para carousel mobile */
@media (max-width: 768px) {
  .highlights-container {
    min-height: auto;
    padding: 20px 0;
  }

  .carousel-background {
    width: 95%;
    max-width: 400px;
    height: 300px;
    margin: 20px auto;
  }

  .carousel-container {
    width: 71%;
    max-width: 400px;
    height: 300px;
    transform: translate(-50%, 0);
  }

  .carousel-track {
    width: calc(120px * 14);
    gap: 80px;
    left: 20px;
    top: 20px;
    height: 80%;
  }

  .banner-slide {
    width: 100px;
    height: 150px;
    margin: 3px;
  }

  .rotating-phrases {
    top: 8%;
    width: 95%;
    padding: 0 10px;
  }

  .phrase {
    font-size: 14px;
    padding: 10px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .carousel-background {
    height: 250px;
    max-width: 350px;
  }

  .carousel-container {
    height: 440px;
    max-width: 400px;
  }

  .banner-slide {
    width: 80px;
    height: 120px;
  }

  .carousel-track {
    width: calc(90px * 14);
    gap: 60px;
  }

  .phrase {
    font-size: 12px;
    padding: 8px;
  }
}

/* Smartphones em modo paisagem */
@media (max-width: 768px) {
  /* Layout smartphone */
  .game-container {
    padding: 10px;
  }

  .logo-top-left {
    top: 10px;
    left: 10px;
  }

  .logo-top-left img {
    height: 70px;
  }

  /* Botões sociais responsivos */
  .social-buttons-top {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .social-btn-circle {
    width: 46px;
    height: 46px;
    min-height: 46px;
    min-width: 46px;
  }

  .social-btn-circle img {
    width: 36px;
    height: 36px;
  }

  /* Recompensas otimizadas */
  .rewards-info {
    bottom: 120px;
    left: 10px;
    right: 10px;
  }

  .rewards-cards {
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .reward-card {
    width: 55px;
    height: 75px;
    min-height: 44px;
  }

  .reward-text {
    font-size: 8px;
    bottom: 2px;
    padding: 2px 4px;
  }

  .play-button {
    width: 180px;
    height: 44px;
    font-size: 14px;
    padding: 12px 30px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .character-float {
    display: none;
  }

  .discord-btn {
    width: 60px;
    height: 60px;
    min-height: 60px;
    min-width: 60px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .discord-btn img {
    width: 60px;
    height: 60px;
    pointer-events: none;
  }

  .highlights-badge {
    font-size: 14px;
    padding: 6px 15px;
  }

  /* Layout mobile redesenhado */
  .characters-gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: 82px;
    margin: 55px auto;
    justify-content: center;
    transform: translate(0%, 25%);
  }

  .characters-carousel {
    width: 90%;
    max-width: 350px;
  }

  .characters-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 25px;
    height: auto;
    min-height: unset;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .char-item {
    width: 140px;
    height: 180px;
    position: relative;
    bottom: 0;
    margin: 12px 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.6s ease;
  }

  .char-item-front img {
    width: 103%;
    height: 98%;
    object-fit: cover;
    bottom: -3px;
    position: relative;
    border-radius: 10px;
    left: 0px;
  }

  .char-item.hidden {
    display: none;
  }

  .arrow-btn {
    width: 50px;
    height: 50px;
    min-height: 44px;
    min-width: 44px;
    margin: 0 10px;
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .arrow-btn img {
    width: 25px;
    height: 25px;
    pointer-events: none;
  }

  .arrow-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
  }

  .progress-container {
    position: relative;
    margin: 15px auto;
    width: 80%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
  }

  .progress-bar {
    height: 35px;
  }

  .poring-corner img {
    height: 60px;
  }

  .scroll-arrow {
    font-size: 18px;
  }
}

/* Smartphones em modo retrato */
@media (max-width: 480px) {
  /* Layout smartphone */
  .game-container {
    padding: 8px;
  }

  .logo-top-left {
    top: 8px;
    left: 8px;
  }

  .logo-top-left img {
    height: 247px;
  }

  /* Botões sociais responsivos */
  .social-buttons-top {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .social-btn-circle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
  }

  .social-btn-circle img {
    width: 40px;
    height: 40px;
  }

  /* Recompensas otimizadas */
  .rewards-info {
    bottom: 100px;
    left: 8px;
    right: 8px;
  }

  .rewards-cards {
    gap: 4px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .reward-card {
    width: 42px;
    height: 58px;
    min-height: 40px;
  }

  .reward-text {
    font-size: 6px;
    bottom: 1px;
    padding: 1px 2px;
  }

  .play-button {
    width: 195px;
    height: 44px;
    font-size: 12px;
    padding: 12px 66px;
    min-height: 44px;
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    top: 18px;
    position: relative;
  }

  .character-float {
    display: none;
  }

  .discord-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .discord-btn img {
    width: 40px;
    height: 40px;
    pointer-events: none;
  }

  .highlights-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  /* Layout mobile redesenhado */
  .characters-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    margin: 28px 0;
  }

  img.imgCard {
    width: 65%;
    height: 57%;
    position: relative;
    bottom: 53px;
    left: 6px;
  }

  .characters-carousel {
    width: 90%;
    max-width: 280px;
  }

  .characters-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    height: auto;
    min-height: unset;
    justify-content: center;
    align-items: center;
  }

  .char-item {
    width: 120px;
    height: 160px;
    position: relative;
    bottom: 0;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .char-item-front img {
    width: 103%;
    height: 98%;
    object-fit: cover;
    bottom: -3px;
    position: relative;
    border-radius: 10px;
    left: 0px;
  }

  .char-item.hidden {
    display: none;
  }

  .arrow-btn {
    width: 48px;
    height: 48px;
    min-height: 44px;
    min-width: 44px;
    margin: 0 8px;
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .arrow-btn img {
    width: 22px;
    height: 22px;
    pointer-events: none;
  }

  .arrow-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
  }

  .progress-container {
    position: relative;
    margin: 10px auto;
    width: 85%;
    max-width: 300px;
    left: 50%;
    transform: translate(-50%, 400%);
  }

  .progress-bar {
    height: 30px;
  }

  .poring-corner img {
    height: 50px;
  }

  .scroll-arrow {
    font-size: 16px;
  }
}

/* Dispositivos muito pequenos */
@media (max-width: 320px) {
  /* Layout para dispositivos muito pequenos */
  .game-container {
    padding: 5px;
  }

  .logo-top-left {
    top: 5px;
    left: 5px;
  }

  .logo-top-left img {
    height: 40px;
  }

  /* Botões sociais compactos mas acessíveis */
  .social-buttons-top {
    top: 5px;
    right: 5px;
    gap: 4px;
    flex-direction: column;
  }

  .social-btn-circle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
  }

  .social-btn-circle img {
    width: 24px;
    height: 24px;
  }

  /* Recompensas compactas */
  .rewards-info {
    bottom: 80px;
    left: 5px;
    right: 5px;
  }

  .rewards-cards {
    gap: 3px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .reward-card {
    width: 32px;
    height: 42px;
    min-height: 36px;
  }

  .reward-text {
    font-size: 5px;
    bottom: 1px;
    padding: 1px;
  }

  .play-button {
    width: 140px;
    height: 40px;
    font-size: 10px;
    padding: 10px 20px;
    min-height: 40px;
    border-radius: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .character-float {
    display: none;
  }

  .discord-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .discord-btn img {
    width: 28px;
    height: 28px;
    pointer-events: none;
  }

  .highlights-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Layout mobile redesenhado */
  .characters-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    margin: 25px 0;
  }

  .characters-carousel {
    width: 90%;
    max-width: 250px;
  }

  .characters-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    height: auto;
    min-height: unset;
    justify-content: center;
    align-items: center;
  }

  .char-item {
    width: 110px;
    height: 145px;
    position: relative;
    bottom: 0;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .char-item-front img {
    width: 103%;
    height: 98%;
    object-fit: cover;
    bottom: -3px;
    position: relative;
    border-radius: 8px;
    left: 0px;
  }

  .char-item.hidden {
    display: none;
  }

  .arrow-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    margin: 0 6px;
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .arrow-btn img {
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  .arrow-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  }

  .arrow-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  }

  .progress-container {
    position: relative;
    margin: 8px auto;
    width: 90%;
    max-width: 250px;
    left: 50%;
    transform: translateX(-50%);
  }

  .progress-bar {
    height: 25px;
  }

  .poring-corner img {
    height: 40px;
  }

  .scroll-arrow {
    font-size: 14px;
  }
}

/* Tablets pequenos e smartphones grandes */
@media (max-width: 600px) and (min-width: 481px) {
  .game-container {
    padding: 12px;
  }

  .logo-top-left img {
    height: 60px;
  }

  .social-btn-circle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
  }

  .rewards-info {
    bottom: 110px;
    left: 12px;
    right: 12px;
  }

  .rewards-cards {
    gap: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .reward-card {
    width: 48px;
    height: 65px;
    min-height: 42px;
  }

  .reward-text {
    font-size: 7px;
    bottom: 2px;
    padding: 1px 3px;
  }

  .play-button {
    width: 170px;
    height: 44px;
    font-size: 13px;
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    top: 19px;
  }

  .character-float {
    display: none;
  }

  .discord-btn {
    width: 46px;
    height: 46px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .discord-btn img {
    width: 36px;
    height: 36px;
    pointer-events: none;
  }

  .highlights-badge {
    font-size: 13px;
    padding: 5px 13px;
  }

  /* Layout mobile redesenhado */
  .characters-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    margin: 29px 0;
  }

  .characters-carousel {
    width: 90%;
    max-width: 320px;
  }

  .characters-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px;
    height: auto;
    min-height: unset;
    justify-content: center;
    align-items: center;
  }

  .char-item {
    width: 130px;
    height: 170px;
    position: relative;
    bottom: 0;
    margin: 11px 0;
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .char-item-front img {
    width: 103%;
    height: 98%;
    object-fit: cover;
    bottom: -3px;
    position: relative;
    border-radius: 11px;
    left: 0px;
  }

  .char-item.hidden {
    display: none;
  }

  .arrow-btn {
    width: 48px;
    height: 48px;
    min-height: 44px;
    min-width: 44px;
    margin: 0 9px;
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .arrow-btn img {
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  .arrow-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
  }

  .progress-container {
    position: relative;
    margin: 12px auto;
    width: 75%;
    max-width: 350px;
    left: 50%;
    transform: translateX(-50%);
  }

  .progress-bar {
    height: 32px;
  }
}
