* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
  margin: 0;
  padding: 0 20px 40px;
}
.barra-superior {
  height: 4px;
  background: #7b38d8;
  margin-bottom: 24px;
}
.container {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
#tela-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.quiz-container {
  width: 100%;
  max-width: 420px;
}
#tela-inicio .main-title {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
  color: #1a1a1a;
}
#tela-inicio .main-title .highlight-text {
  background: rgb(255, 224, 130);
  padding: 2px 6px;
  font-weight: 600;
}
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFACD;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 28px;
  box-shadow: none;
  width: 100%;
}
.alert-box .alert-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.alert-box p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: rgb(133, 100, 4);
  margin: 0;
  text-align: left;
}
.selection-prompt {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 24px;
  color: #1a1a1a;
}
.gender-selection {
  width: 100%;
}
.gender-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}
.gender-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
}
.gender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(145deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(145deg, #2d1810, #1a0f0a);
}
.card-footer {
  background: #5E35B1;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-footer .arrow {
  margin-right: 2px;
}
.privacy-section {
  margin-top: 32px;
  text-align: center;
  width: 100%;
}
.privacy-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  color: #424242;
  margin: 0 0 8px 0;
  text-align: center;
}
.privacy-text .lock-icon {
  font-size: 1.25rem;
}
.stats-text {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #616161;
  font-weight: 700;
  margin-bottom: 0;
}
.hide {
  display: none !important;
}
/* Barra de progresso */
#progress-wrap {
  width: 100vw;
  margin: 0 0 0 calc(-50vw + 50%);
}
.progress-bar-top {
  height: 12px;
  background: #f5f5f5;
  margin: 0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #5E35B1;
  border-radius: 0 8px 8px 0;
  transition: width 0.3s ease;
}
/* Tela: seleção de mês */
.tela-mes {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tela-mes .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
  padding: 0 16px;
}
.birth-date-month {
  display: flex;
  justify-content: center;
  width: 100%;
}
.birth-date-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.birth-date-list li {
  min-width: 0;
}
.birth-date-list .month-item {
  width: 100%;
  min-height: 48px;
  background: rgb(103, 58, 183);
  color: #fff;
  border: 2px solid rgb(72, 40, 140);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.birth-date-list .month-item:hover {
  background: rgb(83, 45, 150);
  border-color: rgb(62, 34, 120);
}
.navigation-container {
  text-align: center;
  margin-top: 28px;
}
.btn-voltar {
  width: 100%;
  max-width: 380px;
  min-height: 38px;
  background: rgb(222, 130, 130);
  color: #fff;
  border: 2px solid rgb(200, 110, 110);
  border-radius: 10px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.btn-voltar:hover {
  background: rgb(210, 115, 115);
  border-color: rgb(185, 95, 95);
}
/* Tela: seleção do dia */
.tela-dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tela-dia .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
  padding: 0 16px;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 10px;
  max-width: 360px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.day-grid .day-item {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 52px;
  background: rgb(106, 58, 191);
  color: #fff;
  border: 2px solid rgb(72, 40, 140);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.day-grid .day-item:hover {
  background: rgb(83, 45, 150);
  border-color: rgb(62, 34, 120);
}
.day-grid li:last-child {
  grid-column: 3;
}
.tela-dia .navigation-container {
  margin-top: 28px;
}

/* Tela: seleção de década – fundo igual ao dos botões */
.tela-decada {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
}
.tela-decada .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 28px;
  padding: 0 20px;
  line-height: 1.4;
}
.decade-selector {
  display: flex;
  justify-content: center;
  width: 100%;
}
.decade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.decade-grid-item {
  min-width: 0;
}
/* Botões: fundo branco com a listra roxa como parte do próprio fundo (embaixo) */
.decade-grid .decade-button {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(to bottom, #fff 0%, #fff calc(100% - 3px), #3D2580 calc(100% - 3px), #3D2580 100%);
  background-color: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 12px 16px 14px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.decade-grid .decade-button:hover {
  background: linear-gradient(to bottom, #f5f5f5 0%, #f5f5f5 calc(100% - 3px), #2E1B5C calc(100% - 3px), #2E1B5C 100%);
}
/* 2010: mesma largura, centralizado na última linha */
.decade-grid .decade-grid-item:last-child {
  grid-column: 1 / -1;
  max-width: calc((100% - 14px) / 2);
  justify-self: center;
}
.tela-decada .navigation-container {
  margin-top: 32px;
  width: 100%;
  max-width: 300px;
}
/* Tela: seleção de ano (mesmo formato da década, pergunta diferente) */
.tela-ano {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
}
.tela-ano .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 28px;
  padding: 0 20px;
  line-height: 1.4;
}
.ano-selector {
  display: flex;
  justify-content: center;
  width: 100%;
}
.ano-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}
.ano-grid .ano-item {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(to bottom, #fff 0%, #fff calc(100% - 3px), #5E35B1 calc(100% - 3px), #5E35B1 100%);
  background-color: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 12px 16px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ano-grid .ano-item:hover {
  background: linear-gradient(to bottom, #f5f5f5 0%, #f5f5f5 calc(100% - 3px), #4A2C8C calc(100% - 3px), #4A2C8C 100%);
}
/* Último ano da linha centralizado quando sobra 1 (ex: 1939) */
.ano-grid .ano-item.ano-item-last-single {
  grid-column: 2;
}
.tela-ano .navigation-container {
  margin-top: 32px;
  width: 100%;
  max-width: 300px;
}

/* Tela: Estado Civil */
.tela-estado-civil {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
}
.tela-estado-civil .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 28px;
  padding: 0 20px;
  line-height: 1.4;
}
.estado-civil-selector {
  display: flex;
  justify-content: center;
  width: 100%;
}
.list-status-civil {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
  max-width: 260px;
  width: 100%;
}
.list-status-civil li {
  margin: 0;
}
.botao-civil {
  width: 100%;
  min-height: 48px;
  background: rgba(103, 58, 183, 0.55);
  color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.2s, border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
.botao-civil:hover {
  background: rgba(103, 58, 183, 0.75);
  border-color: #000;
}
.botao-civil .civil-icon-img {
  width: 39px;
    height: 43px;
  object-fit: contain;
  display: block;
}
.tela-estado-civil .navigation-container {
  margin-top: 32px;
  width: 100%;
  max-width: 300px;
}

/* Tela: Desafio / Área (Vida Amorosa, Finanças, Saúde, Felicidade) */
.tela-desafio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
}
.tela-desafio .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 28px;
  padding: 0 20px;
  line-height: 1.4;
}
.desafio-selector {
  display: flex;
  justify-content: center;
  width: 100%;
}
.list-desafio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 260px;
  width: 100%;
}
.list-desafio li {
  margin: 0;
}
.botao-desafio {
  width: 100%;
  min-height: 48px;
  background: rgba(103, 58, 183, 0.55);
  color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.2s, border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
.botao-desafio:hover {
  background: rgba(103, 58, 183, 0.75);
  border-color: #000;
}
.botao-desafio .desafio-icon-img {
  width: 38px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.tela-desafio .navigation-container {
  margin-top: 32px;
  width: 100%;
  max-width: 300px;
}

/* Tela: Primeiro Nome */
.tela-nome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
  padding: 0 20px;
}
.tela-nome .main-title {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  margin-top: 87px;
  margin-bottom: 28px;
  padding: 0 10px;
  line-height: 1.4;
}
.nome-form-wrap {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.input-nome {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-nome::placeholder {
  color: #999;
}
.input-nome:focus {
  border-color: rgba(103, 58, 183, 0.5);
  box-shadow: 0 2px 12px rgba(103, 58, 183, 0.15);
}
.btn-continuar {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: rgb(25, 161, 11);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(25, 161, 11, 0.3);
}
.btn-continuar:hover {
  background: rgb(21, 135, 9);
}

/* Tela: Carregando leitura (fundo.png + barra) */
.tela-carregando {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-height: 100vh;
  background: url("images/fundo.png") center center / cover no-repeat;
  background-color: #2a1a5e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000;
}
.tela-carregando.hide {
  display: none;
}
.carregando-texto {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.carregando-bar-wrap {
  width: 100%;
  max-width: 280px;
  height: 12px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.carregando-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  transition: width 0.25s ease-out;
}

/* Tela: Última chance (nome + mao.png + COMEÇAR) */
.tela-ultima-chance {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-height: 100vh;
  background: url("images/fundo.png") center center / cover no-repeat;
  background-color: #2a1a5e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  z-index: 1000;
}
.tela-ultima-chance.hide {
  display: none;
}
.ultima-chance-titulo {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 28px 0;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ultima-chance-titulo #nome-usuario {
  color: rgb(255, 219, 96);
}
.ultima-chance-icon {
  margin-bottom: 24px;
}
.ultima-chance-icon .mao-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
}
.ultima-chance-texto {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 28px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.btn-comecar {
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: rgb(25, 161, 11);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-comecar:hover {
  background: rgb(21, 135, 9);
}
