/* =========================================================
   Cores e fontes — ajuste aqui para mudar o visual todo
   ========================================================= */
:root {
  --pink-50: #fff6f9;
  --pink-100: #ffe6ee;
  --pink-200: #fbcadb;
  --pink-300: #f7a3bf;
  --pink-400: #f07ca2;
  --pink-500: #e45c8b;
  --pink-600: #c93f72;
  --peach: #ffcfb5;
  --ink: #3f1f2e;
  --ink-soft: #85596b;

  --card-bg: rgba(255, 255, 255, 0.72);
  --radius: 32px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 0% 0%, #ffd3e2 0%, transparent 60%),
    radial-gradient(100% 70% at 100% 100%, #ffe0d0 0%, transparent 55%),
    linear-gradient(165deg, #fff3f7 0%, #fde3ec 55%, #fbd2e1 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Fundo decorativo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.b1 { width: 320px; height: 320px; background: #ffb3cb; top: -90px; left: -110px; }
.b2 { width: 300px; height: 300px; background: #ffd0dd; bottom: -80px; right: -90px; animation-delay: -6s; }
.b3 { width: 220px; height: 220px; background: var(--peach); top: 42%; left: 58%; opacity: 0.35; animation-delay: -12s; }

@keyframes drift {
  to { transform: translate(30px, 40px) scale(1.12); }
}

.float-heart {
  position: absolute;
  bottom: -40px;
  left: var(--x);
  font-size: var(--size);
  color: var(--pink-400);
  opacity: 0;
  animation: rise var(--dur) linear var(--delay) infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
  12%  { opacity: var(--op); }
  85%  { opacity: var(--op); }
  100% { transform: translate(var(--sway), -110vh) rotate(20deg); opacity: 0; }
}
.bg.celebrate .float-heart { color: var(--pink-500); }

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 34px 22px 28px;
  text-align: center;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 70px -25px rgba(201, 63, 114, 0.45);
  animation: card-in 0.8s var(--ease-out) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
}

/* ---------- Foto ---------- */
.photo-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  margin: 0 auto 26px;
}
.photo-ring {
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #ffb3cb, #fff, var(--pink-400), #ffd6e4, #ffb3cb);
  box-shadow: 0 16px 32px -14px rgba(201, 63, 114, 0.6);
  animation: float 5s ease-in-out infinite;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--pink-100);
}
@keyframes float {
  50% { transform: translateY(-6px); }
}
.photo-wrap.shake .photo-ring { animation: shake 0.5s ease; }
@keyframes shake {
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}

/* Balão de reação */
.bubble {
  position: absolute;
  top: -12px;
  right: -22px;
  max-width: 150px;
  padding: 8px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 10px 24px -10px rgba(201, 63, 114, 0.5);
  opacity: 0;
  transform: scale(0.5) translateY(8px);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-spring);
  pointer-events: none;
}
.bubble.is-visible { opacity: 1; transform: none; }

/* ---------- Telas ---------- */
.screen { display: none; }
.screen.is-active {
  display: block;
  animation: screen-in 0.55s var(--ease-out) both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
}

/* ---------- Tipografia ---------- */
.eyebrow {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-500);
}
.title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 6.6vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.title-big {
  font-size: clamp(2.1rem, 10vw, 2.6rem);
  font-style: italic;
  color: var(--pink-600);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pink-200);
  transition: width 0.3s;
}
.dots span.on { width: 20px; background: var(--pink-400); }

/* ---------- Botões ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.3s ease;
}
.btn:active { transform: scale(0.96); }
.btn:focus-visible { outline: 3px solid var(--pink-300); outline-offset: 3px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f693b5 0%, var(--pink-500) 60%, #d44a7c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 24px -10px rgba(212, 74, 124, 0.7);
}
.btn-ghost {
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--pink-200);
}

/* Área de respostas. Os botões ficam alinhados embaixo: assim o NÃO não
   nasce no mesmo lugar do "Continuar" (onde o cursor/dedo acabou de estar).
   No final aparecem o SIM em cima e o "SIM também" embaixo. */
.answers {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  min-height: 136px;
}

/* SIM aparece com um "pop" quando é revelado */
.btn-yes:not([hidden]) {
  animation: pop 0.5s var(--ease-spring), glow 1.8s ease-in-out 0.5s infinite;
}
@keyframes glow {
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 8px rgba(240, 124, 162, 0.18), 0 14px 30px -10px rgba(212, 74, 124, 0.8); }
}

/* NÃO fugindo (--shrink é controlado pelo JS) */
.btn-no { --shrink: 1; }
.btn-no.is-fleeing {
  position: fixed;
  z-index: 50;
  margin: 0;
  transform: scale(var(--shrink));
  transition: left 0.38s var(--ease-spring), top 0.38s var(--ease-spring),
    transform 0.3s ease, background 0.3s, color 0.3s;
  box-shadow: 0 10px 24px -12px rgba(201, 63, 114, 0.45);
}
.btn-no.no-anim { transition: none; }
.btn-no.is-converted {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #f693b5 0%, var(--pink-500) 60%, #d44a7c 100%);
  box-shadow: 0 12px 24px -10px rgba(212, 74, 124, 0.7);
  animation: pop 0.5s var(--ease-spring);
}
@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
}

.tease {
  min-height: 1.5em;
  margin-top: 20px;
  font-weight: 700;
  color: var(--pink-600);
}
.tease.pop { animation: tease-pop 0.4s var(--ease-spring); }
@keyframes tease-pop {
  from { transform: scale(0.7); opacity: 0; }
}
.counter {
  min-height: 1.3em;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.4s;
}
.counter.is-visible { opacity: 0.8; }

/* ---------- Escolha do rolê ---------- */
.label {
  margin: -12px 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-500);
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 16px 10px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--pink-100);
  border-radius: 22px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, background 0.25s,
    box-shadow 0.25s, opacity 0.25s;
  animation: screen-in 0.5s var(--ease-out) both;
}
.option:nth-child(2) { animation-delay: 0.06s; }
.option:nth-child(3) { animation-delay: 0.12s; }
.option:nth-child(4) { animation-delay: 0.18s; }
.option:active { transform: scale(0.96); }
.option:focus-visible { outline: 3px solid var(--pink-300); outline-offset: 2px; }
.option-emoji { font-size: 2rem; line-height: 1; }
.option-label { font-size: 0.95rem; font-weight: 600; }
.option.is-selected {
  background: var(--pink-50);
  border-color: var(--pink-400);
  box-shadow: 0 10px 22px -12px rgba(201, 63, 114, 0.6);
  transform: scale(1.04);
}
.options.has-selection .option:not(.is-selected) { opacity: 0.45; }

/* ---------- Tela final ---------- */
.final {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--pink-600);
  text-wrap: balance;
}

/* ---------- Confete ---------- */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  background: var(--c);
  border-radius: 2px;
  font-style: normal;
  transform: rotate(var(--r));
  animation: fall var(--d) cubic-bezier(0.25, 0.6, 0.4, 1) var(--delay) forwards;
}
.confetti i.heart {
  width: auto;
  height: auto;
  background: none;
  font-size: var(--w);
  line-height: 1;
}
@keyframes fall {
  to { transform: translate(var(--dx), 110vh) rotate(calc(var(--r) + 540deg)); }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 480px) {
  .card { padding: 40px 32px 32px; }
  .photo-wrap { width: 172px; height: 172px; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .float-heart { display: none; }
}
