:root {
  --purple: #8612d7;
  --purple-dark: #5c1495;
  --orange: #ff9017;
  --pink: #ff3c93;
  --gray: #bfc0c2;
  --ink: #111111;
  --muted: #616161;
  --bg: #f6f4f7;
  --card: #ffffff;
  --shadow: 0 18px 55px rgba(24, 14, 34, .12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff 0, #f8f7fa 45%, #eeeaf1 100%);
  color: var(--ink);
  display: grid;
  place-items: center;
}
button { font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phone-shell {
  width: min(100vw, 430px);
  min-height: 100svh;
  height: 100svh;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #fff7f4 100%);
  position: relative;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  padding: max(22px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}
.screen.active { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.intro-content { z-index: 2; text-align: center; padding-top: 12px; }
.eyebrow { margin: 0 0 26px; color: var(--purple); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
h1 { margin: 0; text-transform: uppercase; font-size: clamp(42px, 12vw, 55px); line-height: .95; font-weight: 950; letter-spacing: -1.8px; }
h1 span { display: inline-block; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-text { max-width: 300px; margin: 22px auto 0; font-size: 18px; line-height: 1.35; }
.time-pill { display: inline-flex; align-items: center; gap: 6px; margin: 20px auto 0; color: #222; font-size: 13px; }
.time-pill::before { content: "◷"; color: var(--purple); font-weight: 900; font-size: 17px; }
.symbol-row { margin: 32px auto 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(330px, 90%); align-items: center; }
.symbol-row img { width: 100%; max-height: 64px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.07)); }
.primary-button, .secondary-button {
  width: min(280px, 82%);
  min-height: 58px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 16px 28px rgba(255, 78, 103, .24);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button:active, .secondary-button:active { transform: scale(.96); box-shadow: 0 8px 18px rgba(255,78,103,.18); }
.hero-photo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 33%;
  background-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 35%, rgba(118,17,190,.58) 100%), url('assets/hero-corrida.jpg');
  background-size: cover;
  background-position: center bottom;
  opacity: .96;
  border-radius: 26px 26px 0 0;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: -1px 0 auto 0; height: 75px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,0) 100%);
}
.back-button {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  font-size: 34px;
  line-height: 32px;
  box-shadow: 0 8px 20px rgba(58, 18, 80, .10);
  z-index: 5;
}
.progress-label { text-align: center; font-size: 12px; font-weight: 950; margin-top: 6px; }
.progress-track { height: 6px; border-radius: 20px; background: #e9e8ea; width: 76%; margin: 18px auto 0; overflow: hidden; }
.progress-bar { height: 100%; width: 20%; border-radius: 20px; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width .28s ease; }
.question-area { margin-top: 34px; }
.question-area h2 { margin: 0 0 22px; font-size: clamp(25px, 7vw, 32px); line-height: 1.05; letter-spacing: -.7px; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-card {
  width: 100%; min-height: 84px;
  background: rgba(255,255,255,.9);
  border: 1px solid #eee8ef;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(26, 22, 37, .07);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px 70px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.option-card:active { transform: scale(.98); box-shadow: 0 6px 14px rgba(26,22,37,.08); }
.letter { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-weight: 900; }
.letter.mente { background: var(--purple); }
.letter.energia { background: var(--orange); }
.letter.emocao { background: var(--pink); }
.letter.movimento { background: #96979b; }
.option-icon { width: 68px; height: 64px; object-fit: contain; }
.option-card p { margin: 0; font-size: 14px; line-height: 1.28; color: #161616; }
.hint { margin: auto 0 4px; color: #8b858d; text-align: center; font-size: 13px; }
.loading-screen { justify-content: center; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff 50%, #fff1ec 100%); }
.loader-card { text-align: center; animation: pop .45s ease both; }
.loader-card img { width: 130px; height: 130px; object-fit: contain; animation: pulse 1.1s ease-in-out infinite; }
.loader-card h2 { margin: 12px 0 22px; font-size: 27px; line-height: 1.08; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); animation: bounce .7s infinite alternate; }
.dots span:nth-child(2) { background: var(--pink); animation-delay: .12s; }
.dots span:nth-child(3) { background: var(--orange); animation-delay: .24s; }
#result-screen { align-items: center; text-align: center; overflow-y: auto; }
.result-kicker { margin: 34px 0 0; text-transform: uppercase; font-weight: 950; font-size: 15px; }
.result-title { margin: 2px 0 8px; text-transform: uppercase; font-weight: 950; font-size: clamp(46px, 14vw, 64px); line-height: .95; color: var(--purple); }
.result-icon { width: 168px; height: 168px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(134,18,215,.10)); animation: reveal .42s ease both; }
.brush { margin-top: 2px; padding: 12px 24px; min-width: 255px; color: #fff; text-transform: uppercase; font-weight: 950; line-height: 1.08; font-size: 20px; background: var(--purple); clip-path: polygon(4% 12%, 94% 1%, 100% 18%, 96% 42%, 100% 62%, 93% 94%, 4% 88%, 0% 70%, 4% 49%, 0 30%); }
.result-text { margin: 16px auto 0; max-width: 315px; font-size: 16px; line-height: 1.3; }
.mission-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; }
.mission-card { min-height: 170px; padding: 16px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(26,22,37,.09); border: 1px solid #f0edf2; }
.mission-icon { width: 43px; height: 43px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 900; }
.mission-card.purple .mission-icon { background: var(--purple); }
.mission-card.pink .mission-icon { background: var(--pink); }
.mission-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.05; }
.mission-card.purple h3, .mission-card.purple strong { color: var(--purple); }
.mission-card.pink h3 { color: var(--pink); }
.mission-card p { margin: 0; font-size: 13px; line-height: 1.3; }
.secondary-button { min-height: 50px; width: min(240px, 70%); font-size: 14px; margin-top: 2px; }
.signature { margin: 14px 0 0; font-style: italic; font-weight: 700; color: var(--purple); }
.confetti { position: absolute; top: 28px; left: 38px; right: 38px; height: 58px; pointer-events: none; }
.confetti span { position: absolute; width: 6px; height: 28px; border-radius: 8px; background: var(--pink); transform: rotate(25deg); animation: float 1.4s ease-in-out infinite alternate; }
.confetti span:nth-child(1){ left: 5%; top: 14px; background: var(--pink); }
.confetti span:nth-child(2){ left: 20%; top: 2px; background: var(--orange); animation-delay: .2s; }
.confetti span:nth-child(3){ left: 38%; top: 17px; background: var(--purple); animation-delay: .1s; }
.confetti span:nth-child(4){ right: 38%; top: 6px; background: var(--orange); animation-delay: .3s; }
.confetti span:nth-child(5){ right: 20%; top: 18px; background: var(--pink); animation-delay: .15s; }
.confetti span:nth-child(6){ right: 5%; top: 4px; background: var(--purple); animation-delay: .24s; }
.question-animate { animation: slideUp .28s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { from { transform: scale(.96); } 50% { transform: scale(1.03); } to { transform: scale(.96); } }
@keyframes bounce { to { transform: translateY(-6px); opacity: .65; } }
@keyframes float { to { transform: translateY(9px) rotate(-18deg); opacity: .7; } }
@media (min-width: 560px) {
  body { padding: 22px; }
  .phone-shell { min-height: 844px; height: 844px; border-radius: 30px; box-shadow: var(--shadow); }
}
@media (max-height: 720px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .question-area { margin-top: 24px; }
  .question-area h2 { font-size: 24px; margin-bottom: 16px; }
  .option-card { min-height: 74px; grid-template-columns: 32px 58px 1fr; padding: 9px 12px; }
  .option-icon { width: 56px; height: 54px; }
  .option-card p { font-size: 13px; }
  .symbol-row { margin-top: 24px; margin-bottom: 18px; }
  .hero-photo { height: 28%; }
  .result-icon { width: 136px; height: 136px; }
  .mission-card { min-height: 142px; padding: 12px 9px; }
}
