/* ============================================================
   CONFIGURAÇÃO GERAL
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #020411;
  color: #fff;
  overflow-x: hidden;
}

/* Todas as telas */
.screen {
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.hidden {
  display: none;
}

/* ============================================================
   FUNDO DE LINHAS TECNOLÓGICAS
   ============================================================ */
.tech-lines {
  position: absolute;
  inset: 0;
  background: url("https://i.imgur.com/a2k4l8g.png");
  background-size: cover;
  opacity: 0.16;
  z-index: -1;
}

/* ============================================================
   TÍTULOS E TEXTOS
   ============================================================ */
.title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 0 12px #00eaff;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 30px;
  text-align: center;
}

/* ============================================================
   BOTÕES PADRÃO
   ============================================================ */
.option-btn,
.generate-btn,
.restart-btn {
  background: linear-gradient(90deg, #00eaff, #7b00ff);
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.option-btn:hover,
.generate-btn:hover,
.restart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px #00eaff;
}

/* ============================================================
   GRID BOTÕES DA TELA DE SEXO
   ============================================================ */
.option-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
  max-width: 380px;
}

/* ============================================================
   TONS DE PELE
   ============================================================ */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 20px;
  margin-top: 40px;
}

.skin-tone {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.3s ease;
}

.skin-tone:hover {
  transform: scale(1.08);
  border-color: #00eaff;
  box-shadow: 0 0 14px #00eaff;
}

/* ============================================================
   BOX DE PERGUNTAS
   ============================================================ */
.question-box {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.question-box label {
  margin-top: 10px;
  font-weight: 600;
  text-shadow: 0 0 6px #00eaff;
}

.question-box select {
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #0c0f1f;
  color: #fff;
  border: 1px solid rgba(0, 255, 255, 0.4);
}

/* ============================================================
   TELA DE LOADING
   ============================================================ */
.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  text-shadow: 0 0 12px #00eaff;
  text-align: center;
}

/* ============================================================
   AVATAR FINAL — CORPO INTEIRO
   ============================================================ */
.avatar-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-top: 30px;
  border-radius: 16px;
  border: 2px solid #00eaff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  object-fit: cover;
  background: #000;
}

/* ============================================================
   BOX DO LOOK FINAL
   ============================================================ */
.look-info {
  margin-top: 28px;
  padding: 20px;
  width: 92%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border-left: 4px solid #00eaff;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.65;
  text-shadow: 0 0 8px #00eaff;
}

/* ============================================================
   BOTÃO REFAZER
   ============================================================ */
.restart-btn {
  margin-top: 30px;
}

/* ============================================================
   RESPONSIVIDADE TOTAL
   ============================================================ */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }

  .avatar-img {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 2rem;
  }

  .skin-grid {
    grid-template-columns: repeat(3, 70px);
  }

  .skin-tone {
    width: 70px;
    height: 70px;
  }

  .avatar-img {
    max-width: 280px;
  }

  .look-info {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .avatar-img {
    max-width: 250px;
  }
}

/* ============================================================
   CÍRCULO FUTURISTA DE CARREGAMENTO
   ============================================================ */
#loading-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 60px auto 20px;
  position: relative;
  border: 4px solid rgba(0, 255, 255, 0.15);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.25),
    0 0 35px rgba(0, 255, 255, 0.15);
}

#loading-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: #00eaff;
  border-right-color: #00eaff;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 12px #00eaff);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading-circle.progress {
  background: conic-gradient(
    #00eaff var(--progress),
    transparent var(--progress)
  );
}
