@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: #FF6B00;
  --primary-hover: #ff8533;
  --secondary: #2D00F7;
  --bg-color: #0d0d12;
  --surface-color: rgba(26, 26, 36, 0.7);
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
}

/* --- Particles Background --- */
#particles-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at top right, #1a1a2e 0%, #0d0d12 100%);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; width: 100%;
  padding: 1rem 2rem;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

nav.scrolled {
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav .brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo {
  max-height: 40px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover {
  animation: wobble 0.8s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: linear-gradient(to bottom, rgba(13, 13, 18, 0.4), rgba(13, 13, 18, 1)), url('img/banner.png') no-repeat center center/cover;
}

.hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
  padding: 2rem 0;
}


.hero-img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

.logo-img {
  max-width: 300px;
  margin-bottom: 1rem;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Typewriter */
.typewriter-container {
  height: 40px;
  margin-bottom: 2rem;
}
.typewriter {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, var(--primary), #ff3366);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Counters */
.stats-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.stat-box {
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2.5rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.hero .stat-box {
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-number, .prefix, .suffix {
  color: var(--primary);
}

.prefix { margin-right: 5px; }
.suffix { margin-left: 5px; }

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Sections General --- */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: -webkit-linear-gradient(45deg, var(--primary), #ff3366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* --- Jogo Section --- */
#jogo {
  background-color: #18BC9C;
  max-width: 100%;
  padding: 6rem 0; /* Override section padding */
}

#jogo .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.jogo-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.jogo-content-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  font-size: 1.1rem;
  flex: 1;
  color: #fff;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.jogo-content-box::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.hover-float:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.box-title {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.jogo-logo {
  max-height: 50px;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.jogo-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.jogo-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.jogo-list li:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

.jogo-list .icon {
  font-size: 1.5rem;
  background: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.jogo-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- Personagens Grid --- */
#personagens {
  background-color: #FDAD29;
  max-width: 100%;
  padding: 6rem 2rem;
}

#personagens .section-title {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

#personagens .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.char-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  group: char;
}

.char-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.char-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: var(--primary);
}

.char-card:hover img {
  transform: scale(1.1);
}

.char-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 2rem 1rem 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.char-card:hover .char-overlay {
  transform: translateY(0);
}

.char-overlay h3 {
  color: var(--primary);
  font-size: 1.5rem;
}

dialog {
  margin: auto;
  background: #1a1a24;
  color: white;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none; color: white;
  font-size: 2rem; cursor: pointer;
}

/* Modal media row: image + video side by side */
.modal-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 100%;
}

.modal-media iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

/* Text block */
.modal-text {
  margin-bottom: 1.5rem;
}

.modal-text p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.modal-text b {
  color: var(--primary);
}

/* Centered download button */
.modal-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Ad block */
.modal-ad {
  margin-top: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  min-height: 80px;
  text-align: center;
}

/* Responsive: stack on mobile */
@media (max-width: 500px) {
  .modal-media {
    grid-template-columns: 1fr;
  }
  .modal-media iframe {
    height: 180px;
  }
}


/* --- Media Grid (Videos e Imagens) --- */
#imagens {
  background-color: #FA6801;
  max-width: 100%;
  padding: 6rem 2rem;
}

#imagens .section-title {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.media-item {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.media-item iframe {
  width: 100%;
  height: 250px;
  display: block;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.media-item img:hover {
  transform: scale(1.05);
}

.gallery-img {
  cursor: zoom-in;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
}

.lightbox-nav {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0 1rem;
}

.lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: #e53e3e;
  border-color: #e53e3e;
}

/* --- Parceiros --- */
#parceiros {
  background-color: #9899A6;
  max-width: 100%;
  padding: 6rem 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.partner-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  padding: 1rem;
  text-align: center;
}

.partner-card iframe {
  border-radius: 10px;
  margin-bottom: 1rem;
}

.partner-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

/* --- Download Section --- */
.download-section {
  text-align: center;
  background: #0a0a1a;
  max-width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.download-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.download-ad {
  width: 100%;
  height: 90px;
  max-height: 90px;
  overflow: hidden;
  margin: 1.5rem auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Esconde se não houver anúncio carregado */
.download-ad ins[data-ad-status="unfilled"] {
  display: none !important;
}

.download-ad:has(ins[data-ad-status="unfilled"]) {
  height: 0;
  margin: 0;
}

.btn-store-img {
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-store-img img {
  height: 80px;
  filter: drop-shadow(0 10px 25px rgba(255,107,0,0.4));
  transition: all 0.3s ease;
}

.btn-store-img:hover img {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 18px 35px rgba(255,107,0,0.6));
}


.store-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* Custom Play Store Button CSS replacement */
.btn-store {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #000;
  border: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-store:hover {
  background: #222;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.btn-store svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.btn-store .store-text {
  text-align: left;
}

.btn-store .store-text small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-store .store-text strong {
  font-size: 1.2rem;
}

/* --- Footer --- */
footer {
  background: #050508;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: white;
  background: var(--surface-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.social-links a svg {
  width: 22px;
  height: 22px;
  fill: white;
  transition: fill 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(255,107,0,0.4);
}

.social-links a:hover svg {
  fill: white;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* --- Easter Egg (Doorbell) --- */
.easter-egg-bell {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.2);
}

.easter-egg-bell svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.easter-egg-bell:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
}

.easter-egg-bell svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: rotate(-10deg); }
  20%, 80% { transform: rotate(10deg); }
  30%, 50%, 70% { transform: rotate(-20deg); }
  40%, 60% { transform: rotate(20deg); }
}

/* --- Scroll Reveal Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 18, 0.95);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    display: none;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero {
    padding-top: 8rem;
    background-position: top center;
  }
  .hero-bottom-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }
  .stats-container {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
  .stat-box {
    padding: 1rem;
    flex: 1;
  }
  .stat-value, .stat-number, .prefix, .suffix {
    font-size: 1.8rem;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
  .hero-actions .btn {
    margin: 0 !important;
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .images-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  /* Lightbox mobile: imagem ocupa toda a largura, botões sobre a imagem */
  .lightbox {
    flex-direction: column;
  }
  .lightbox-content {
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  .lightbox-content img {
    width: 100%;
    max-height: 70vh;
    border-radius: 0;
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 10002;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .section-title {
    font-size: 2rem;
  }
  #jogo .inner {
    padding: 0 0.75rem;
  }
  .jogo-grid {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .jogo-content-box {
    width: 100%;
    padding: 2rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
    border-radius: 18px;
  }
  .jogo-logo {
    max-height: 80px;
  }
  .box-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  .jogo-list li {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  .jogo-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .jogo-actions .btn {
    width: 100%;
    margin: 0 !important;
    text-align: center;
    font-size: 1rem;
    padding: 1rem;
  }
  .download-ad {
    width: 100vw;
    height: 90px;
    max-height: 90px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
  }
}
