:root {
  --bg: #0b0407;
  --bg-2: #22091a;
  --texto: #fff3f6;
  --suave: #d4b0bc;
  --apagado: #9a7482;
  --quente: #ff2e63;
  --rosa: #ff6fa5;
  --ouro: #ffbf69;
  --grad: linear-gradient(135deg, #ff2e63 0%, #ff5c8a 50%, #ffa26b 100%);
  --cartao: rgba(255, 255, 255, 0.045);
  --cartao-forte: rgba(255, 255, 255, 0.08);
  --borda: rgba(255, 255, 255, 0.1);
  --raio: 20px;
  --seguro-topo: env(safe-area-inset-top, 0px);
  --seguro-base: env(safe-area-inset-bottom, 0px);
  --mola: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --suaviza: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--texto);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Fundo animado ---------- */

.fundo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--bg-2) 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 110%, #1c0612 0%, transparent 70%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
  animation: flutuar 16s ease-in-out infinite alternate;
}

.b1 {
  width: 70vw;
  height: 70vw;
  max-width: 420px;
  max-height: 420px;
  top: -12%;
  left: -20%;
  background: #ff2e63;
  opacity: 0.32;
}

.b2 {
  width: 60vw;
  height: 60vw;
  max-width: 380px;
  max-height: 380px;
  bottom: -10%;
  right: -22%;
  background: #b0205f;
  opacity: 0.38;
  animation-duration: 20s;
  animation-delay: -6s;
}

.b3 {
  width: 40vw;
  height: 40vw;
  max-width: 260px;
  max-height: 260px;
  top: 40%;
  left: 55%;
  background: #ff8a5c;
  opacity: 0.16;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes flutuar {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
  100% { transform: translate3d(-6vw, -4vh, 0) scale(0.92); }
}

.particulas span {
  position: absolute;
  bottom: -30px;
  color: var(--rosa);
  opacity: 0;
  animation: subir linear infinite;
  will-change: transform, opacity;
}

@keyframes subir {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: var(--o, 0.35); }
  85% { opacity: var(--o, 0.35); }
  100% { transform: translate3d(var(--dx, 20px), -110vh, 0) rotate(var(--r, 40deg)); opacity: 0; }
}

/* ---------- Estrutura ---------- */

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--seguro-topo) + 20px) 18px calc(var(--seguro-base) + 22px);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.tela {
  display: none;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.tela.ativa {
  display: flex;
  animation: entrar 0.55s var(--suaviza) both;
}

@keyframes entrar {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.cartao {
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Botão principal ---------- */

.btn-principal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 34px -12px rgba(255, 46, 99, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: transform 0.18s var(--suaviza), box-shadow 0.2s;
  animation: brilho-fundo 6s ease-in-out infinite;
}

.btn-principal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: reflexo 3.6s ease-in-out infinite 1.2s;
}

.btn-principal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-principal:active {
  transform: scale(0.97);
  box-shadow: 0 8px 22px -10px rgba(255, 46, 99, 0.8);
}

@keyframes brilho-fundo {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes reflexo {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

/* ---------- Início ---------- */

#inicio {
  justify-content: space-between;
  gap: 26px;
}

.inicio-topo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4vh;
}

.selo {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 111, 165, 0.45);
  border-radius: 999px;
  background: rgba(255, 46, 99, 0.1);
  color: var(--rosa);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-icone {
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 18px rgba(255, 46, 99, 0.7));
  animation: chama 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes chama {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08, 1.12) rotate(2deg); }
}

.logo h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-test {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  text-transform: uppercase;
  color: var(--suave);
}

.logo-sexy {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(4.2rem, 23vw, 6rem);
  line-height: 1.05;
  padding: 0 0.12em 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(255, 46, 99, 0.55));
}

.subtitulo {
  max-width: 300px;
  margin-top: 10px;
  color: var(--suave);
  font-size: 1.05rem;
  font-weight: 300;
}

#form-inicio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 18px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo-rotulo {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--suave);
  padding-left: 4px;
}

.campo input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 1.05rem; /* >= 16px evita zoom automático no iOS */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo input::placeholder {
  color: var(--apagado);
}

.campo input:focus {
  border-color: var(--rosa);
  box-shadow: 0 0 0 4px rgba(255, 111, 165, 0.16);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 6px 12px 4px;
  min-height: 48px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.caixa {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--mola);
}

.caixa::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--mola);
}

.check input:checked + .caixa {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.06);
}

.check input:checked + .caixa::after {
  transform: rotate(45deg) scale(1);
}

.check input:focus-visible + .caixa {
  box-shadow: 0 0 0 4px rgba(255, 111, 165, 0.3);
}

.check-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
  font-size: 1rem;
  font-weight: 500;
}

.check-texto small {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--suave);
}

#form-inicio .btn-principal {
  margin-top: 6px;
}

.aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 4px 0;
  color: var(--suave);
  font-size: 0.82rem;
  line-height: 1.4;
}

.aviso svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: var(--rosa);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.erro {
  animation: tremer 0.42s ease;
}

.campo.erro input {
  border-color: var(--quente);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.2);
}

.check.erro .caixa {
  border-color: var(--quente);
}

@keyframes tremer {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.rodape {
  text-align: center;
  color: var(--apagado);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ---------- Quiz ---------- */

.quiz-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.btn-voltar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--cartao);
  transition: transform 0.15s, background 0.2s, opacity 0.2s;
}

.btn-voltar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-voltar:active {
  transform: scale(0.92);
  background: var(--cartao-forte);
}

.btn-voltar.oculto {
  opacity: 0;
  pointer-events: none;
}

.progresso {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progresso-barra {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 46, 99, 0.8);
  transition: width 0.5s var(--suaviza);
}

.contador {
  flex: none;
  min-width: 44px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--suave);
}

.pergunta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pergunta-cabeca {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 4px 0;
}

.pergunta-emoji {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 111, 165, 0.3), rgba(255, 46, 99, 0.08));
  border: 1px solid rgba(255, 111, 165, 0.25);
  font-size: 2.6rem;
  box-shadow: 0 18px 40px -18px rgba(255, 46, 99, 0.7);
}

.pergunta-texto {
  font-size: clamp(1.45rem, 6.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--borda);
  border-radius: 18px;
  background: var(--cartao);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.04rem;
  font-weight: 500;
  text-align: left;
  transition: transform 0.18s var(--suaviza), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.opcao:active {
  transform: scale(0.975);
  background: var(--cartao-forte);
}

.opcao .letra {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 46, 99, 0.13);
  color: var(--rosa);
  font-weight: 700;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--mola);
}

.opcao.selecionada {
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.3), rgba(255, 111, 165, 0.16));
  border-color: var(--quente);
  box-shadow: 0 0 0 1px var(--quente), 0 14px 30px -14px rgba(255, 46, 99, 0.8);
}

.opcao.selecionada .letra {
  background: var(--grad);
  color: #fff;
  transform: scale(1.1) rotate(-6deg);
}

.pergunta.entra .pergunta-emoji {
  animation: estalar 0.6s var(--mola) both;
}

.pergunta.entra .pergunta-texto {
  animation: subir-in 0.5s var(--suaviza) 0.05s both;
}

.pergunta.entra .opcao {
  animation: subir-in 0.45s var(--suaviza) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.06s);
}

/* Opções curtas (ex.: números) em grelha */
.opcoes.grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.opcoes.grade .opcao {
  justify-content: center;
  text-align: center;
  min-height: 58px;
  padding: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.opcoes.grade .opcao .letra {
  display: none;
}

.opcoes.grade .opcao:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* Resposta livre (número / texto / "Outra…") */
.resposta-livre {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resposta-livre[hidden] {
  display: none;
}

.resposta-livre .campo input {
  height: 60px;
  border-radius: 18px;
  background: var(--cartao);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.campo-numero input {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.campo-numero input::placeholder {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.pergunta.entra .resposta-livre {
  animation: subir-in 0.45s var(--suaviza) 0.12s both;
}

.resposta-livre.outra {
  margin-top: 4px;
  animation: subir-in 0.35s var(--suaviza) both;
}

.pergunta.sai {
  animation: sair 0.22s ease-in both;
}

@keyframes estalar {
  from { opacity: 0; transform: scale(0.4) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}

@keyframes subir-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes sair {
  to { opacity: 0; transform: translateX(-24px); }
}

/* ---------- Análise ---------- */

#analise {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.scanner {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.anel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, #ff2e63 75%, #ffbf69 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: girar 1.4s linear infinite;
}

.anel.a2 {
  inset: 22px;
  background: conic-gradient(from 180deg, transparent 0 60%, #ff6fa5 85%, #fff 100%);
  animation-duration: 2.1s;
  animation-direction: reverse;
  opacity: 0.8;
}

.onda {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 111, 165, 0.6);
  animation: onda 2s ease-out infinite;
}

.onda.o2 {
  animation-delay: 1s;
}

.scanner-chama {
  position: relative;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 22px rgba(255, 46, 99, 0.9));
  animation: pulsar 0.9s ease-in-out infinite;
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

@keyframes onda {
  from { transform: scale(0.7); opacity: 0.9; }
  to { transform: scale(2); opacity: 0; }
}

@keyframes pulsar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.analise-titulo {
  font-size: 1.6rem;
  font-weight: 700;
}

.pontos i {
  font-style: normal;
  animation: piscar 1.2s infinite;
}

.pontos i:nth-child(2) { animation-delay: 0.2s; }
.pontos i:nth-child(3) { animation-delay: 0.4s; }

@keyframes piscar {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.analise-status {
  min-height: 1.5em;
  color: var(--suave);
  font-size: 1.02rem;
  transition: opacity 0.25s, transform 0.25s;
}

.analise-status.troca {
  opacity: 0;
  transform: translateY(6px);
}

.analise-progresso {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
}

.analise-barra {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.analise-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(255, 46, 99, 0.9);
}

.analise-pct {
  min-width: 46px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 18px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--cartao);
  color: var(--apagado);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.ck {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--rosa);
  animation: girar 0.8s linear infinite;
}

.checklist li.feito {
  color: var(--texto);
  border-color: rgba(255, 111, 165, 0.4);
  background: rgba(255, 46, 99, 0.1);
}

.checklist li.feito .ck {
  border: 0;
  background: var(--grad);
  animation: estalar 0.4s var(--mola);
}

.checklist li.feito .ck::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- Resultado ---------- */

#resultado {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.res-ola {
  color: var(--suave);
  font-size: 1.08rem;
}

.res-ola strong {
  color: var(--texto);
  font-weight: 700;
}

.res-ola em {
  font-style: italic;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--rosa);
}

.medidor {
  position: relative;
  width: min(68vw, 250px);
  aspect-ratio: 1;
  margin: 4px 0;
}

.medidor svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.medidor-trilho {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.medidor-arco {
  fill: none;
  stroke: url(#g-arco);
  stroke-width: 14;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 46, 99, 0.75));
  transition: stroke-dashoffset 2s var(--suaviza);
}

.medidor-centro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.medidor-nota {
  font-size: clamp(4.2rem, 21vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.medidor-escala {
  margin-top: 4px;
  color: var(--apagado);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coracoes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.coracoes span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: var(--t, 18px);
  color: var(--cor, #ff2e63);
  animation: explodir var(--d, 1.4s) var(--suaviza) forwards;
}

@keyframes explodir {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); opacity: 0; }
}

.res-titulo {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 2.5rem);
  line-height: 1.1;
}

.res-desc {
  max-width: 340px;
  color: var(--suave);
  font-size: 1.02rem;
}

.sub-notas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 18px;
  margin-top: 4px;
  text-align: left;
}

.sub-nota {
  display: grid;
  grid-template-columns: 96px 1fr 30px;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.sub-nota-rotulo {
  color: var(--suave);
  font-weight: 500;
}

.sub-nota-barra {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sub-nota-barra i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.4s var(--suaviza);
}

.sub-nota-valor {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#resultado .btn-principal {
  margin-top: 10px;
}

#resultado .btn-principal svg {
  stroke-width: 2.2;
}

.revela {
  animation: subir-in 0.6s var(--suaviza) both;
  animation-delay: var(--atraso, 0s);
}

/* ---------- Telas maiores ---------- */

@media (min-width: 600px) {
  .app {
    padding-top: calc(var(--seguro-topo) + 40px);
    padding-bottom: 40px;
  }
}

/* Telas baixas (ex.: iPhone SE) */
@media (max-height: 640px) {
  .inicio-topo { padding-top: 0; }
  .logo-icone { width: 42px; height: 42px; }
  .logo-sexy { font-size: 3.8rem; }
  .pergunta-emoji { width: 66px; height: 66px; font-size: 2rem; margin-bottom: 14px; border-radius: 20px; }
  .opcao { min-height: 54px; }
  .scanner { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob,
  .particulas {
    display: none;
  }
}
