:root {
  --bg-top: #160611;
  --bg-bottom: #09030b;
  --panel: rgba(43, 18, 35, 0.9);
  --panel-border: rgba(255, 92, 180, 0.32);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --text: #fff4fb;
  --muted: #d7b1ca;
  --accent: #ff4fa7;
  --accent-strong: #ff7dc7;
  --accent-deep: #ad2467;
  --shadow: 0 22px 60px rgba(255, 55, 154, 0.18);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(120, 24, 88, 0.35), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 51, 140, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.background-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-a {
  top: 2rem;
  left: -4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(255, 60, 156, 0.22);
}

.glow-b {
  right: -3rem;
  bottom: 5rem;
  width: 12rem;
  height: 12rem;
  background: rgba(255, 110, 198, 0.18);
}

.phone-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 20px;
}

.card {
  width: min(100%, 34rem);
  min-height: 44rem;
  position: relative;
  padding: 2rem 1.4rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(58, 25, 48, 0.96), rgba(40, 16, 34, 0.96)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -8%;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 82, 170, 0.22), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 109, 196, 0.5), rgba(255, 109, 196, 0.08));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.progress-line {
  height: 5px;
  margin: 0.2rem auto 1.7rem;
  width: min(100%, 26rem);
  background: rgba(255, 124, 193, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7ec9 0%, #ff4fa7 100%);
  box-shadow: 0 0 22px rgba(255, 79, 167, 0.72);
  transition: width 220ms ease;
}

.emoji-badge {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(255, 87, 171, 0.34));
  animation: floaty 4s ease-in-out infinite;
}

.eyebrow {
  margin: 1rem 0 0;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

h1 {
  margin: 1rem 0 0;
  max-width: 100%;
  font-family: "Pacifico", cursive;
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.copy {
  margin: 1rem auto 0;
  width: min(100%, 28rem);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.options {
  display: grid;
  gap: 0.95rem;
  margin-top: 2rem;
  text-align: left;
}

.option {
  border: 1px solid rgba(255, 111, 196, 0.18);
  background: var(--panel-soft);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem;
  display: flex;
  gap: 0.95rem;
  align-items: start;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 111, 196, 0.4);
}

.option.is-selected {
  border-color: rgba(255, 104, 189, 0.94);
  box-shadow: 0 0 24px rgba(255, 83, 174, 0.24);
  background: rgba(113, 35, 79, 0.48);
}

.option-bullet {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  color: var(--accent);
  flex: 0 0 auto;
  position: relative;
}

.option.is-selected .option-bullet::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: inherit;
  background: var(--accent);
}

.option-label {
  font-size: 1.25rem;
  line-height: 1.5;
}

.footer {
  margin-top: auto;
  padding-top: 1.8rem;
}

.primary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 99, 185, 0.52);
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
  background: linear-gradient(180deg, rgba(255, 94, 177, 0.38), rgba(176, 40, 105, 0.3));
  color: #ffd7ef;
  box-shadow:
    0 10px 26px rgba(255, 79, 167, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-button.is-whatsapp {
  background: linear-gradient(180deg, rgba(45, 199, 117, 0.96), rgba(22, 136, 72, 0.96));
  border-color: rgba(122, 255, 179, 0.42);
  color: #f7fff9;
  box-shadow:
    0 12px 28px rgba(15, 128, 65, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-button.is-whatsapp::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M19.11 17.34c-.28-.14-1.64-.8-1.89-.89-.25-.09-.43-.14-.61.14-.18.27-.7.89-.86 1.08-.16.18-.32.2-.6.07-.28-.14-1.16-.43-2.21-1.36-.82-.73-1.38-1.63-1.54-1.9-.16-.27-.02-.42.12-.56.12-.12.27-.32.41-.48.14-.16.18-.27.27-.46.09-.18.05-.34-.02-.48-.07-.14-.61-1.47-.84-2.01-.22-.53-.45-.46-.61-.47h-.52c-.18 0-.48.07-.73.34-.25.27-.95.93-.95 2.27 0 1.34.97 2.64 1.11 2.82.14.18 1.91 2.92 4.63 4.09.65.28 1.16.45 1.56.58.66.21 1.26.18 1.74.11.53-.08 1.64-.67 1.87-1.31.23-.64.23-1.18.16-1.3-.07-.11-.25-.18-.52-.32Z'/%3E%3Cpath fill='%23ffffff' d='M16.03 3.2c-6.93 0-12.56 5.62-12.56 12.54 0 2.21.58 4.37 1.68 6.27L3.2 28.8l6.99-1.83a12.6 12.6 0 0 0 5.84 1.49h.01c6.92 0 12.56-5.62 12.56-12.54 0-3.35-1.31-6.5-3.68-8.86A12.47 12.47 0 0 0 16.03 3.2Zm0 22.99h-.01a10.4 10.4 0 0 1-5.3-1.45l-.38-.22-4.15 1.09 1.11-4.04-.25-.42a10.32 10.32 0 0 1-1.59-5.48c0-5.72 4.67-10.37 10.41-10.37 2.78 0 5.39 1.08 7.35 3.03a10.28 10.28 0 0 1 3.05 7.34c0 5.72-4.68 10.37-10.24 10.52Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hidden {
  display: none;
}

.progress-dots {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.progress-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 126, 201, 0.18);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.progress-dots span.is-active {
  background: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 79, 167, 0.68);
}

.result-meta {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 119, 196, 0.16);
  color: var(--muted);
  line-height: 1.55;
}

.fade-in {
  animation: cardSwap 220ms ease;
}

@keyframes cardSwap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 560px) {
  .phone-frame {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    padding: 8px;
  }

  .card {
    width: 100%;
    min-height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 1.15rem 0.95rem 1rem;
    border-radius: 28px;
    overflow: auto;
  }

  .card[data-mode="intro"] {
    min-height: auto;
    margin-top: 1.15rem;
  }

  .card[data-mode="question"],
  .card[data-mode="result"],
  .card[data-mode="result-rejection"] {
    justify-content: flex-start;
  }

  .option-label {
    font-size: 1.03rem;
    line-height: 1.42;
  }

  .copy {
    margin-top: 0.8rem;
    font-size: 0.97rem;
    line-height: 1.5;
  }

  .progress-line {
    margin-bottom: 1rem;
  }

  .emoji-badge {
    font-size: 2.9rem;
  }

  .eyebrow {
    margin-top: 0.75rem;
    letter-spacing: 0.13em;
    font-size: 0.68rem;
  }

  h1 {
    margin-top: 0.75rem;
    font-size: clamp(1.75rem, 10vw, 2.85rem);
    line-height: 1.15;
  }

  .options {
    gap: 0.75rem;
    margin-top: 1.3rem;
  }

  .card[data-mode="question"] .options,
  .card[data-mode="result"] .options,
  .card[data-mode="result-rejection"] .options {
    flex: 1 1 auto;
  }

  .option {
    gap: 0.8rem;
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
  }

  .option-bullet {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.22rem;
  }

  .footer {
    padding-top: 1.15rem;
  }

  .card[data-mode="question"] .footer,
  .card[data-mode="result"] .footer,
  .card[data-mode="result-rejection"] .footer {
    position: sticky;
    bottom: -1rem;
    margin-inline: -0.95rem;
    padding: 1rem 0.95rem calc(0.35rem + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(45, 17, 37, 0), rgba(45, 17, 37, 0.84) 25%, rgba(45, 17, 37, 0.98) 56%);
    backdrop-filter: blur(10px);
  }

  .primary-button {
    padding: 0.9rem 1rem;
  }

  .progress-dots {
    margin-top: 0.95rem;
  }
}

@media (max-width: 560px) and (max-height: 780px) {
  .card {
    padding-top: 1rem;
    padding-bottom: 0.9rem;
  }

  .emoji-badge {
    font-size: 2.6rem;
  }

  h1 {
    font-size: clamp(1.55rem, 8.8vw, 2.35rem);
  }

  .copy {
    font-size: 0.92rem;
  }

  .options {
    margin-top: 1rem;
  }

  .option {
    padding: 0.85rem;
  }
}
