@charset "UTF-8";

/* RESET */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(126, 217, 87, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 35%),
    #000000;
  color: #ffffff;
}

/* HEADER */
header {
  color: #ffffff;
  border-bottom: 1px solid #7ed957;
  background: rgba(0, 0, 0, 0.92);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
}

.logo {
  margin: 0px 20px;
  width: 100px;
  height: 100px;
}

nav {
  margin-left: 40px;
  display: flex;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: 0.3s;
  font-size: 22px;
}

nav a:hover {
  color: #7ed957;
}

.headerp {
  cursor: default;
  color: #7ed957;
  font-weight: bold;
  transition: 0.3s;
  font-size: 22px;
}

.icone-perfil {
  margin-left: auto;
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  height: 65px;
  width: 65px;
  background: #2a2a2a;
  margin-right: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.icone-perfil:hover {
  transform: scale(1.05);
  background: #111;
  box-shadow: 0 0 18px rgba(126, 217, 87, 0.35);
}

.menu-icon {
  display: none;
  width: 25px;
  cursor: pointer;
}

.discord-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  transition: 0.3s;
}

.discord-link:hover {
  color: #7ed957;
}

.discord-link:hover .nextstep-color {
  color: #7ed957;
}

.nextstep-color {
  color: #7ed957;
  transition: 0.3s;
}

.discord-link .dc-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.discord-link .dc-icon path {
  fill: currentColor;
  transition: 0.3s;
}

/* MENU LATERAL */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  height: 100vh;
  width: 280px;
  background-color: #111;
  padding-top: 60px;
  transition: 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  border: 1px solid #7ed957;
}

.sidebar.active {
  right: 0;
}

.sidebar a,
.sidebar p {
  display: block;
  padding: 15px 25px;
  font-size: 18px;
  color: white;
  text-decoration: none;
}

.sidebar p {
  color: #7ed957;
}

.sidebar a:hover {
  background-color: #575757;
  color: #7ed957;
}

.closebtn {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #7ed957;
}

/* ÁREA PRINCIPAL */
.area-jornada {
  width: 100%;
  min-height: calc(100vh - 101px);
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* HERO DO QUIZ */
.hero-quiz {
  width: min(1050px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 32px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(126, 217, 87, 0.18), rgba(14, 165, 233, 0.08)),
    #0b0b0b;
  border: 1px solid rgba(126, 217, 87, 0.35);
  box-shadow: 0 0 35px rgba(126, 217, 87, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-quiz::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-100%);
  animation: brilhoHero 4s infinite;
  pointer-events: none;
}

@keyframes brilhoHero {
  0% {
    transform: translateX(-100%);
  }

  55% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.mini-titulo {
  color: #7ed957;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-quiz h1 {
  font-size: 46px;
  color: #fff;
  margin-bottom: 10px;
}

.descricao-hero {
  max-width: 620px;
  color: #cfcfcf;
  font-size: 18px;
  line-height: 1.5;
}

/* RANK */
.rank-card {
  min-width: 190px;
  padding: 22px;
  border-radius: 20px;
  background: #111;
  border: 1px solid rgba(126, 217, 87, 0.35);
  text-align: center;
  box-shadow: inset 0 0 20px rgba(126, 217, 87, 0.08);
  z-index: 1;
}

.rank-card span {
  color: #aaa;
  font-size: 14px;
}

.rank-card strong {
  display: block;
  color: #7ed957;
  font-size: 28px;
  margin: 8px 0;
}

.rank-card p {
  color: #cfcfcf;
  font-size: 14px;
}

/* STATUS DO JOGADOR */
.status-jogador {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.status-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #111;
  border: 1px solid #222;
  box-shadow: 0 8px 0 #050505;
  transition: 0.25s;
}

.status-box:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 217, 87, 0.35);
}

.status-box span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #1d1d1d;
  font-size: 26px;
}

.status-box p {
  color: #999;
  font-size: 14px;
}

.status-box strong {
  font-size: 26px;
  color: #fff;
}

/* MAPA */
.mapa-quiz {
  width: min(1050px, 100%);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* CARD DO MUNDO/CAPÍTULO */
.mundo-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #0d0d0d;
  border: 1px solid rgba(126, 217, 87, 0.22);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 16px 0 #050505;
  position: relative;
  overflow: hidden;
}

.mundo-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  background: rgba(126, 217, 87, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.mundo-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: -70px;
  bottom: -70px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.mundo-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.mundo-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(126, 217, 87, 0.14);
  color: #7ed957;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.mundo-topo h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.mundo-topo p {
  color: #b7b7b7;
  line-height: 1.4;
}

/* PROGRESSO DO MUNDO */
.mundo-progresso {
  min-width: 220px;
}

.mundo-progresso p {
  color: #cfcfcf;
  font-size: 14px;
  margin-bottom: 8px;
  text-align: right;
}

.barra-progresso {
  width: 100%;
  height: 12px;
  background: #222;
  border-radius: 999px;
  overflow: hidden;
}

.barra-progresso span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7ed957, #0ea5e9);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* TRILHA DE FASES */
.trilha-game {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  z-index: 1;
}

.fase-game {
  min-height: 150px;
  border: none;
  border-radius: 22px;
  background: #181818;
  color: #fff;
  padding: 16px;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: 0.25s;
  box-shadow: 0 8px 0 #070707;
  overflow: hidden;
}

.fase-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.fase-game:hover::after {
  transform: translateX(130%);
  transition: 0.7s;
}

.fase-game:hover {
  transform: translateY(-6px);
}

.fase-numero {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #262626;
  font-size: 22px;
  margin-bottom: 12px;
}

.fase-game h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.fase-game p {
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.35;
}

.fase-recompensa {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7ed957;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
}

.estrelas {
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ESTADOS DAS FASES */
.fase-game.concluida {
  background: linear-gradient(180deg, #1b3d22, #102414);
  outline: 1px solid #7ed957;
  box-shadow: 0 8px 0 #15803d;
}

.fase-game.atual {
  background: linear-gradient(180deg, #11364d, #0c1f2c);
  outline: 1px solid #0ea5e9;
  box-shadow: 0 8px 0 #075985;
  animation: pulsarFase 1.6s infinite;
}

@keyframes pulsarFase {
  0%,
  100% {
    box-shadow: 0 8px 0 #075985, 0 0 0 rgba(14, 165, 233, 0.4);
  }

  50% {
    box-shadow: 0 8px 0 #075985, 0 0 22px rgba(14, 165, 233, 0.45);
  }
}

.fase-game.bloqueada {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(1);
}

.fase-game.bloqueada:hover {
  transform: none;
}

.cadeado {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 22px;
}

/* AVISO DE FASE BLOQUEADA */
.aviso-bloqueado {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  border: 1px solid #7ed957;
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 3000;
  box-shadow: 0 0 22px rgba(126, 217, 87, 0.22);
}

.aviso-bloqueado.ativo {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FOCO ACESSÍVEL */
button:focus,
a:focus {
  outline: 2px solid #7ed957;
  outline-offset: 3px;
}

/* RESPONSIVIDADE */
@media (max-width: 800px) {
  body {
    overflow-x: hidden;
  }

  .header-container {
    justify-content: space-between;
    padding: 10px;
  }

  .logo {
    width: 85px;
    height: 85px;
    margin: 0;
  }

  .apagar {
    display: none;
  }

  .menu-icon {
    display: block;
    width: 32px;
    height: 30px;
  }

  .icone-perfil {
    margin-left: auto;
    margin-right: 10px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .area-jornada {
    padding: 24px 14px;
  }

  .hero-quiz {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .hero-quiz h1 {
    font-size: 34px;
  }

  .descricao-hero {
    font-size: 16px;
  }

  .rank-card {
    width: 100%;
  }

  .status-jogador {
    grid-template-columns: 1fr;
  }

  .mundo-card {
    padding: 22px;
    border-radius: 22px;
  }

  .mundo-topo {
    flex-direction: column;
  }

  .mundo-topo h2 {
    font-size: 26px;
  }

  .mundo-progresso {
    width: 100%;
  }

  .mundo-progresso p {
    text-align: left;
  }

  .trilha-game {
    grid-template-columns: 1fr;
  }

  .fase-game {
    min-height: 130px;
  }
}

@media (max-width: 440px) {
  header {
    margin-bottom: 0;
  }

  .header-container {
    padding: 10px 14px;
  }

  .logo {
    width: 85px;
    height: 85px;
    margin: 0;
  }

  .icone-perfil {
    width: 50px;
    height: 50px;
    font-size: 22px;
    margin-right: 8px;
  }

  .menu-icon {
    width: 30px;
    height: 28px;
  }

  .sidebar {
    width: 260px;
    right: -260px;
  }

  .sidebar.active {
    right: 0;
  }

  .area-jornada {
    padding: 20px 12px;
    gap: 22px;
  }

  .hero-quiz {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-quiz h1 {
    font-size: 30px;
  }

  .mini-titulo {
    font-size: 14px;
  }

  .descricao-hero {
    font-size: 15px;
  }

  .rank-card {
    padding: 18px;
  }

  .rank-card strong {
    font-size: 24px;
  }

  .status-box {
    padding: 15px;
  }

  .status-box span {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .status-box strong {
    font-size: 23px;
  }

  .mundo-card {
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 10px 0 #050505;
  }

  .mundo-topo h2 {
    font-size: 24px;
  }

  .mundo-topo p {
    font-size: 14px;
  }

  .fase-game {
    min-height: 125px;
    padding: 15px;
    border-radius: 18px;
  }

  .fase-numero {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .fase-game h3 {
    font-size: 17px;
  }

  .fase-game p {
    font-size: 13px;
  }

  .fase-recompensa {
    font-size: 12px;
  }

  .aviso-bloqueado {
    width: calc(100% - 28px);
    text-align: center;
    border-radius: 16px;
    bottom: 18px;
  }
}

/* REDUZ ANIMAÇÕES PARA QUEM PREFERE MENOS MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}