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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.tela {
  display: none;
  width: 100%;
  max-width: 520px;
}

.tela.ativa {
  display: flex;
  justify-content: center;
}

.card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

p { color: #888; font-size: 0.95rem; line-height: 1.5; }

.label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
  margin-bottom: -10px;
}

.input {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: inherit;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}

.input:focus { border-color: #555; }
.textarea { resize: vertical; min-height: 80px; }

.btn {
  background: #f0f0f0;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s;
  width: 100%;
  display: block;
}

.btn:hover { opacity: .85; }
.btn:disabled { opacity: .3; cursor: default; }

/* controle de quantidade */
.numero-controle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.numero-controle span {
  font-size: 3rem;
  font-weight: 800;
  min-width: 60px;
  text-align: center;
}

.btn-num {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #f0f0f0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
}

.btn-num:hover { background: #2a2a2a; }

/* progresso topo */
.progresso-topo {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
}

/* toggle 4/5 opções */
.opcoes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -10px;
}

.toggle-opcoes { display: flex; gap: 6px; }

.btn-toggle {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #555;
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .15s;
}

.btn-toggle.ativo {
  background: #f0f0f0;
  color: #0a0a0a;
  border-color: #f0f0f0;
  font-weight: 700;
}

/* linhas de opção no criar */
.opcao-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.opcao-radio {
  width: 18px;
  height: 18px;
  accent-color: #f0f0f0;
  cursor: pointer;
  flex-shrink: 0;
}

.opcao-letra {
  font-size: 0.85rem;
  color: #555;
  width: 16px;
  flex-shrink: 0;
}

/* botões de opção no jogar */
.btn-opcao {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #f0f0f0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all .15s;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-opcao:hover { border-color: #555; }
.btn-opcao.selecionado { border-color: #f0f0f0; background: #222; }
.btn-opcao.certa { border-color: #22c55e; background: #0f2d1a; color: #22c55e; }
.btn-opcao.errada { border-color: #ef4444; background: #2d0f0f; color: #ef4444; }

.opcao-ltr { font-size: 0.78rem; color: #555; font-weight: 700; min-width: 16px; }
.btn-opcao.certa .opcao-ltr, .btn-opcao.errada .opcao-ltr { color: inherit; }

.texto-pergunta { font-size: 1.1rem; color: #f0f0f0; line-height: 1.5; }

/* resultado */
.fim-emoji { font-size: 3rem; text-align: center; }

.detalhe-item {
  background: #1c1c1c;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.detalhe-item .status { font-size: 0.8rem; margin-bottom: 4px; }
.detalhe-item .pergunta-texto { color: #aaa; margin-bottom: 6px; }
.detalhe-item .correta-txt { color: #22c55e; font-size: 0.82rem; }

/* ── foto título ── */
.titulo-inicio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foto-titulo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #333;
  flex-shrink: 0;
}

.link-box {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #888;
  word-break: break-all;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
