/* =========================================================
   FULL CSS — Your Personalized Money Blueprint (CLEAN + COMPLETE)
   - Includes base theme, layout, inputs, buttons
   - Interstitial #1 calc orb + list reveal
   - Interstitial #2 Forecast Accuracy (single source of truth — no duplicates)
   ========================================================= */

/* ====== Base / Theme ====== */
:root{
  --bg1:#07080f;
  --bg2:#0b0f1f;
  --bg3:#1f0118;
  --text:#eef3fb;
  --muted:rgba(238,243,251,.68);
  --orbSize: 240px;

  --moon:#f3eddc;
  --lavender: rgba(180,160,255,.18);
  --aqua: rgba(140,220,220,.16);

  --rose:#E75480;
  --rose10: rgba(231,84,128,.10);
  --rose14: rgba(231,84,128,.14);
  --rose18: rgba(231,84,128,.18);
  --rose28: rgba(231,84,128,.28);
  --rose45: rgba(231,84,128,.45);

  --ink:#06070c;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 25% 20%, var(--lavender), transparent 60%),
    radial-gradient(800px 600px at 75% 60%, var(--aqua), transparent 65%),
    radial-gradient(1200px 900px at 50% 30%, rgba(255,255,255,.035), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3));
}

/* subtle twinkle */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background:
    radial-gradient(1px 1px at 10% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 22% 62%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 35% 28%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 48% 78%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 62% 22%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 74% 55%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 86% 30%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 92% 82%, rgba(255,255,255,.65), transparent 60%);
  filter: blur(.4px);
  animation: faTwinkle 7s ease-in-out infinite;
}
@keyframes faTwinkle{
  0%,100%{ opacity:.45; transform: translate3d(0,0,0); }
  50%{ opacity:.7; transform: translate3d(-1px,-2px,0); }
}

/* stage + text */
.faStage{
  width:min(760px, 92vw);
  text-align:center;
  padding: 24px 0 40px;
}
.faTitle{
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .4px;
  color:#fff;
}
.faSubtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ORB WRAP */
.faOrbWrap{
  position: relative;
  width: var(--orbSize);
  height: var(--orbSize);
  margin: 0 auto;
  display:grid;
  place-items:center;
}

/* small star specks behind orb */
.faStars{
  position:absolute;
  inset:-14%;
  border-radius:999px;
  pointer-events:none;
  overflow:hidden;
  opacity:.75;
  filter: blur(.15px);
}
.faStars span{
  position:absolute;
  border-radius:999px;
  background: rgba(255,255,255,var(--op,.6));
  animation:
    faStarTwinkle var(--tw, 2000ms) ease-in-out infinite,
    faStarDrift var(--dr, 5000ms) ease-in-out infinite;
}
@keyframes faStarTwinkle{
  0%,100%{ opacity: calc(var(--op) * .55); transform: scale(.9); }
  50%{ opacity: var(--op); transform: scale(1.4); }
}
@keyframes faStarDrift{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(-2px,-3px,0); }
}

.faOrb{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  transform: translateZ(0);

  /* glossy planet */
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 42%),
    radial-gradient(circle at 68% 74%, rgba(150,90,255,.22), transparent 56%),
    radial-gradient(circle at 30% 84%, rgba(90,220,210,.22), transparent 62%),
    radial-gradient(circle at 50% 55%, rgba(10,14,28,.96), rgba(6,8,16,.985) 62%, rgba(4,5,12,1) 100%);

  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 26px 64px rgba(0,0,0,.58),
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 26px rgba(180,160,255,.16);

  animation: orbBreath 4.8s ease-in-out infinite;
}
@keyframes orbBreath{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-1px,0) scale(1.02); }
}

/* glass highlight */
.faOrb::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.24), transparent 34%),
    radial-gradient(circle at 70% 82%, rgba(231,84,128,.08), transparent 46%);
  pointer-events:none;
}

/* drifting mist */
.faMist{
  position:absolute;
  inset:0;
  border-radius:999px;
  pointer-events:none;
  opacity:.55;
  mix-blend-mode: screen;
  background:
    radial-gradient(220px 160px at 28% 48%, rgba(180,160,255,.28), transparent 66%),
    radial-gradient(260px 180px at 70% 42%, rgba(231,84,128,.22), transparent 68%),
    radial-gradient(240px 190px at 55% 76%, rgba(120,110,255,.20), transparent 70%);
  filter: blur(1.4px) saturate(1.5);
  animation: faMistFloat 9.5s ease-in-out infinite;
}
@keyframes faMistFloat{
  0%   { transform: translate3d(-6px, 4px,0) scale(1.02); opacity:.46; }
  50%  { transform: translate3d(10px,-7px,0) scale(1.06); opacity:.64; }
  100% { transform: translate3d(-6px, 4px,0) scale(1.02); opacity:.46; }
}

/* percent text */
.faPercent{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 46px;
  letter-spacing: .4px;
  color: rgba(234,246,246,.92);
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  z-index: 5;
}

@media (max-width:420px){
  :root{ --orbSize: 210px; }
}

/* ====== App shell ====== */
.app{
  min-height:100vh;
  padding:18px 18px 28px;
  position:relative;
  z-index:1;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.backBtn{
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:18px;
}

.brand{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing:.2px;
  font-size:22px;
  opacity:.95;
}

.step{
  opacity:.8;
  font-size:14px;
}

/* ====== Progress ====== */
.progressWrap{ position:relative; height:6px; margin:6px 0 22px; }
.progressTrack{ position:absolute; inset:0; border-radius:999px; background:rgba(0,0,0,.40); }
.progressFill{ position:absolute; inset:0 auto 0 0; width:0%; border-radius:999px; background:#e75480; }

/* ====== Stage / screen ====== */
.stage{ display:flex; justify-content:center; padding-top:8px; position:relative; z-index:2; }
.screen{ width:min(760px, 92vw); text-align:center; }

.title{
  margin:24px 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight:600;
  letter-spacing:.4px;
  color:#fff;
}

.subtitle{
  margin:0 auto 22px;
  max-width:520px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

/* ====== Options ====== */
.optionList{
  margin: 16px auto 0;
  width:min(520px, 92vw);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.optionBtn{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  border-radius:14px;
  padding:14px 16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  font-size:15px;
  line-height:1.2;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.optionBtn:hover{ background:rgba(255,255,255,.08); border-color: var(--rose28); }
.optionBtn:active{ transform: translateY(1px); }

.optionIcon{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:20px;
  background: rgba(231,84,128,.20);
  color:white;
  border:1px solid rgba(231,84,128,.40);
  box-shadow: 0 10px 22px rgba(231,84,128,.20);
}

/* ====== DOB / TOB wheels ====== */
.dobWrap{ width: min(520px, 92vw); margin: 18px auto 0; }
.dobWheelBox{
  position: relative;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
  overflow: hidden;
}
.dobCols{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.dobColLabel{ font-size:12px; color:rgba(255,255,255,.55); margin:0 0 8px; text-align:center; }
.dobWheel{
  height: 170px;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:0;
}
.dobWheel::-webkit-scrollbar{ display:none; }
.dobPad{ height: 88px; }
.dobItem{
  height:44px;
  line-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  scroll-snap-align:center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size:22px;
  color: rgba(255,255,255,.42);
  user-select:none;
  transition: color .15s ease, transform .15s ease;
}
.dobItem.isSelected{ color: rgba(255,255,255,.95); transform: translateZ(0); }
.dobLines{
  position:absolute;
  left:14px; right:14px;
  top:50%;
  transform: translateY(calc(-50% + 1px));
  height:44px;
  pointer-events:none;
  border-top:1px solid rgba(255,255,255,.22);
  border-bottom:1px solid rgba(255,255,255,.22);
  z-index:3;
}
.dobWheelBox::before,
.dobWheelBox::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:44px;
  pointer-events:none;
  z-index:4;
}
.dobWheelBox::before{ top:0; background: linear-gradient(180deg, rgba(7,8,15,.95), rgba(7,8,15,0)); }
.dobWheelBox::after{ bottom:0; background: linear-gradient(0deg, rgba(7,8,15,.95), rgba(7,8,15,0)); }

.tobActions{
  width: min(520px, 92vw);
  margin: 12px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.tobRemember{
  background:transparent;
  border:0;
  padding:0;
  margin:12px 0 14px;
  cursor:pointer;
  font-size:14px;
  color: rgba(255,255,255,.70);
  text-decoration: underline;
  position:relative;
  z-index:5;
}
.tobRemember:hover{ color: rgba(255,255,255,.88); }

/* ====== Inputs ====== */
.formWrap{
  width:min(520px, 92vw);
  margin: 14px auto 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.field{ display:flex; flex-direction:column; gap:8px; text-align:left; }
.label{ font-size:13px; color:rgba(234,246,246,.82); }
.input{
  height:48px;
  border-radius:14px;
  padding:0 14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.45);
  background: rgba(255,255,255,.07);
}

/* ====== CTA button ====== */
.cta{
  margin:18px auto 0;
  width:min(520px, 92vw);
  height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  cursor:pointer;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight:600;
  letter-spacing:1.5px;
  font-size:18px;
  color:rgba(255,255,255,.92);
  text-transform:uppercase;
  background:
    radial-gradient(120% 200% at 30% 20%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(180deg, #0b0c10 0%, #05060a 55%, #020306 100%);
  box-shadow:
    0 18px 44px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -18px 26px rgba(0,0,0,.72);
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}
.cta::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 22px rgba(231,84,128,.10);
  pointer-events:none;
}
.cta::before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.10) 38%, rgba(255,255,255,.04) 52%, transparent 70%);
  transform: translateX(-35%) rotate(-6deg);
  opacity:.85;
  pointer-events:none;
}
.cta:hover{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 22px 52px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -18px 28px rgba(0,0,0,.76);
}
.cta:active{
  transform: translateY(1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -14px 22px rgba(0,0,0,.80);
}
.cta:disabled{
  cursor:not-allowed;
  color: rgba(255,255,255,.45);
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, #0a0b0f, #020305);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
}
.cta:disabled::before{ opacity:.35; }
.cta:disabled::after{ opacity:.35; }

/* delayed CTA helper */
.ctaGhost{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.ctaGhost.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .35s ease, transform .35s ease;
}
/* =========================================================
   Interstitial #2 (Cosmic Orb)
   ========================================================= */
.bubbleWrap{
  position:relative;
  width:360px;
  height:360px;
  margin:18px auto 18px;
  display:grid;
  place-items:center;
  isolation:isolate;
}

/* --- cosmic container behind the orb --- */
.cosmos{
  position:absolute;
  inset:-28px;
  border-radius:28px;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
  filter:saturate(1.12);
}
.cosmos::before,
.cosmos::after{
  content:"";
  position:absolute;
  inset:-30%;
  filter: blur(10px);
  opacity:.9;
  transform: translate3d(0,0,0) scale(1.05);
  animation: nebulaDrift 14s ease-in-out infinite;
  mix-blend-mode: screen;
}
.cosmos::after{
  opacity:.55;
  filter: blur(16px);
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}
@keyframes nebulaDrift{
  0%{ transform: translate3d(-10px, 8px,0) scale(1.06) rotate(-2deg); }
  50%{ transform: translate3d(12px,-10px,0) scale(1.12) rotate(2deg); }
  100%{ transform: translate3d(-10px, 8px,0) scale(1.06) rotate(-2deg); }
}

/* stars */
.cosmosStars{
  position:absolute;
  inset:0;
  z-index:1;
}
.cosmosStars span{
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,.92);
  opacity: var(--op, .55);
  box-shadow: 0 0 10px rgba(255,255,255,1), 0 0 18px rgba(231,84,128,1);
  animation:
    starTwinkle var(--tw, 2200ms) ease-in-out infinite,
    starDrift var(--dr, 9000ms) ease-in-out infinite;
}
@keyframes starTwinkle{
  0%,100%{ opacity: calc(var(--op) * .45); transform: scale(.9); }
  50%{ opacity: var(--op); transform: scale(1.35); }
}
@keyframes starDrift{
  0%,100%{ margin-left:0; margin-top:0; }
  50%{ margin-left:-8px; margin-top:6px; }
}

/* halo glow behind orb */
.bubbleHalo{
  position:absolute;
  width:320px;
  height:320px;
  border-radius:999px;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, rgba(231,84,128,.22), transparent 60%),
    radial-gradient(circle at 40% 35%, rgba(180,160,255,.20), transparent 58%),
    radial-gradient(circle at 60% 70%, rgba(140,220,220,.12), transparent 62%);
  filter: blur(10px);
  opacity:.9;
  animation: haloBreath 4.8s ease-in-out infinite;
}
@keyframes haloBreath{
  0%,100%{ transform: scale(1); opacity:.78; }
  50%{ transform: scale(1.06); opacity:1; }
}

/* orbit rings and dots */
.bubbleOrbit{
  position:absolute;
  width:320px;
  height:320px;
  border-radius:999px;
  z-index:3;
  pointer-events:none;
  filter: drop-shadow(0 0 16px rgba(180,160,255,.10));
}
.bubbleOrbit::before,
.bubbleOrbit::after{
  content:"";
  position:absolute;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.35);
}
.bubbleOrbit::before{
  inset:22px;
  opacity:.55;
  transform: rotate(18deg);
}
.bubbleOrbit::after{
  inset:44px;
  opacity:.35;
  transform: rotate(-10deg);
}
.orbitDot{
  position:absolute;
  left:50%;
  top:50%;
  width: var(--sz, 3px);
  height: var(--sz, 3px);
  border-radius:999px;
  background: rgba(255,255,255,.92);
  box-shadow:
    0 0 10px rgba(255,255,255,.20),
    0 0 18px rgba(231,84,128,.12);
  transform:
    translate(-50%,-50%)
    rotate(var(--a, 0deg))
    translateX(var(--r, 120px));
  opacity:.78;
  animation: orbitSpin var(--d, 12s) linear infinite;
}
@keyframes orbitSpin{
  to{
    transform:
      translate(-50%,-50%)
      rotate(calc(var(--a, 0deg) + 360deg))
      translateX(var(--r, 120px));
  }
}

/* the orb itself */
.bubble{
  position:relative;
  width:240px;
  height:240px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 50% 60%, rgba(180,160,255,.08), transparent 65%),
    radial-gradient(circle at 70% 80%, rgba(231,84,128,.06), transparent 70%);
  box-shadow:
    0 20px 55px rgba(0,0,0,.52),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 34px rgba(180,160,255,.22),
    0 0 46px rgba(231,84,128,.12);
  overflow:hidden;
  animation: bubbleBreath 4.6s ease-in-out infinite, bubbleFloat 9.5s ease-in-out infinite;
  transform-origin: 50% 55%;
  z-index:4;
}
@keyframes bubbleBreath{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-1px,0) scale(1.02); }
}
@keyframes bubbleFloat{
  0%,100%{ filter: brightness(1) saturate(1); }
  50%{ filter: brightness(1.03) saturate(1.06); }
}

/* glass shine */
.bubbleGlass{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(231,84,128,.10), transparent 45%);
  pointer-events:none;
}

/* aurora sheen */
.bubble .aurora{
  position:absolute;
  inset:0;
  border-radius:999px;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.92;
  filter: saturate(1.95) contrast(1.22);
  animation: auroraFloat 9.5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 62%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 45%, #000 62%, transparent 74%);
}
.bubble .aurora::before,
.bubble .aurora::after{
  content:"";
  position:absolute;
  inset:-22%;
  border-radius:999px;
  filter: blur(2.5px);
  opacity:.9;
}
.bubble .aurora.oilslick::before{
  background:
    radial-gradient(220px 160px at 28% 44%, rgba(180,160,255,.55), transparent 66%),
    radial-gradient(260px 180px at 70% 38%, rgba(231,84,128,.45), transparent 68%),
    radial-gradient(240px 190px at 55% 74%, rgba(120,110,255,.45), transparent 70%);
}
.bubble .aurora.oilslick::after{
  background:
    conic-gradient(
      from 220deg,
      rgba(231,84,128,0),
      rgba(231,84,128,.35),
      rgba(180,160,255,.35),
      rgba(231,84,128,.25),
      rgba(231,84,128,0)
    );
  opacity:.35;
  filter: blur(10px);
  animation: oilSheen 7.5s ease-in-out infinite;
}
@keyframes auroraFloat{
  0%   { transform: translate3d(-7px, 5px,0) scale(1.03); opacity:.84; }
  50%  { transform: translate3d(10px,-7px,0) scale(1.08); opacity:.98; }
  100% { transform: translate3d(-7px, 5px,0) scale(1.03); opacity:.84; }
}
@keyframes oilSheen{
  0%   { transform: rotate(-10deg) scale(1.12); opacity:.28; filter: blur(10px); }
  50%  { transform: rotate(18deg)  scale(1.18); opacity:.42; filter: blur(12px); }
  100% { transform: rotate(-10deg) scale(1.12); opacity:.28; filter: blur(10px); }
}

/* liquid fill */
.liquid{
  position:absolute;
  left:0; right:0;
  bottom:0;
  height:0%;
  background:linear-gradient(180deg, rgba(231,84,128,.55), rgba(231,84,128,.22));
  filter:saturate(1.05);
  transition: height .1s linear;
  overflow:hidden;
}

/* waves at the top of the liquid */
.wave{
  position:absolute;
  left:-20%;
  width:140%;
  height:46px;
  top:-18px;
  opacity:.65;
  filter: blur(.2px);
  background:
    radial-gradient(18px 14px at 20px 28px, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(18px 14px at 70px 18px, rgba(255,255,255,.13), transparent 62%),
    radial-gradient(18px 14px at 120px 28px, rgba(255,255,255,.16), transparent 60%);
  background-size: 140px 46px;
  animation: waveSlide 3.6s linear infinite;
}
.waveBack{ opacity:.35; top:-10px; animation-duration: 5.4s; }
.waveFront{ opacity:.55; top:-18px; }

@keyframes waveSlide{
  from{ transform: translateX(0); }
  to{ transform: translateX(-140px); }
}

/* sparkles inside liquid */
.liquidSparkles{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.liquidSparkles span{
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,.92);
  opacity: var(--op, .5);
  box-shadow: 0 0 10px rgba(255,255,255,.22), 0 0 18px rgba(231,84,128,.18);
  transform: translate(-50%, -50%);
  animation:
    sparkleRise var(--rise, 3000ms) ease-in-out infinite,
    sparkleTwinkle var(--tw, 1200ms) ease-in-out infinite;
}
@keyframes sparkleRise{
  0%{ transform: translate(-50%, 10px); opacity:0; }
  20%{ opacity: var(--op); }
  100%{ transform: translate(-50%, -70px); opacity:0; }
}
@keyframes sparkleTwinkle{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.35); }
}

/* percent text */
.percent{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size:44px;
  letter-spacing:.4px;
  color:rgba(234,246,246,.92);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

@media (max-width:420px){
  .bubbleWrap{ transform: scale(.92); height:300px; }
}
/* Interstitial #1 finish message + delayed CTA */
.calcFinishMsg{
  width:min(520px, 92vw);
  margin: 8px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(238,243,251,.92);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
}
.calcFinishMsg.show{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

/* Speech helper */
.speech{
  margin:16px auto 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* hide/show speech for Interstitial #2 timing */
.speechHide{
  opacity:0;
  transform: translateY(10px);
  pointer-events:none;
}
.speechShow{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
  transition: opacity .35s ease, transform .35s ease;
}

/* =========================================================
   Interstitial #1 — Calculating list reveal
   ========================================================= */
.calcWrap{
  width:min(520px, 92vw);
  margin: 16px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.calcOrb{
  width:140px;
  height:140px;
  border-radius:999px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 50%),
    radial-gradient(circle at 55% 60%, var(--rose), transparent 80%),
    radial-gradient(circle at 50% 70%, rgba(120,110,255,.18), transparent 65%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.35), transparent 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 0 80px rgba(231,84,128,.12);
  animation: orbBreath 3.4s ease-in-out infinite;
}
@keyframes orbBreath{
  0%,100%{ transform: translateY(0) scale(1); filter:saturate(1.05); }
  50%{ transform: translateY(-2px) scale(1.04); filter:saturate(1.15); }
}

.calcOrb .orbSparkles{
  position:absolute;
  inset:0;
  border-radius:50%;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.calcOrb .orbSparkles span{
  position:absolute;
  width: var(--sz, 2px);
  height: var(--sz, 2px);
  border-radius:50%;
  left: var(--x, 50%);
  top:  var(--y, 50%);
  background: rgba(255,255,255,.92);
  opacity: var(--op, .5);
  box-shadow: 0 0 6px rgba(255,255,255,.35), 0 0 14px rgba(231,84,128,.18);
  transform: translate(-50%, -50%);
  animation:
    orbSparkleTwinkle var(--tw, 2200ms) ease-in-out infinite,
    orbSparkleFloat   var(--dr, 6000ms) ease-in-out infinite;
  animation-delay: var(--dl, 0ms), var(--dl, 0ms);
}
@keyframes orbSparkleTwinkle{
  0%,100%{ opacity: calc(var(--op) * .5); transform: translate(-50%, -50%) scale(.9); }
  50%{ opacity: var(--op); transform: translate(-50%, -50%) scale(1.4); }
}
@keyframes orbSparkleFloat{
  0%,100%{ margin-left:0; margin-top:0; }
  50%{ margin-left: var(--dx, 10px); margin-top: var(--dy, -12px); }
}

.calcOrb::before{
  content:"";
  position:absolute;
  inset:-20%;
  border-radius:50%;
  pointer-events:none;
  z-index:2;
  background:
    conic-gradient(
      from 0deg,
      rgba(170,120,255,0) 0deg,
      rgba(170,120,255,0.00) 300deg,
      rgba(170,120,255,0.12) 325deg,
      rgba(170,120,255,0.35) 345deg,
      rgba(220,170,255,0.70) 359deg,
      rgba(170,120,255,0) 360deg
    );
  mix-blend-mode: screen;
  filter: blur(0.6px);
  animation: radarSpin 2.6s linear infinite;
}
.calcOrb::after{
  content:"";
  position:absolute;
  inset:-20%;
  border-radius:50%;
  pointer-events:none;
  z-index:2;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,0) 356deg,
      rgba(255,255,255,0.85) 358deg,
      rgba(255,255,255,0) 360deg
    );
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(180,120,255,0.45));
  animation: radarSpin 2.6s linear infinite;
}
@keyframes radarSpin{ to { transform: rotate(360deg); } }

.calcOrb .radarRings{
  position:absolute;
  inset:10%;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 1px, rgba(255,255,255,0) 1px);
  background-size: 22% 22%;
  opacity: .12;
  mix-blend-mode: screen;
}

.calcOrb .orbCanvas{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
.calcOrb .orbNodes{ position:absolute; inset:0; pointer-events:none; z-index:4; }
.calcOrb .orbNode{
  position:absolute;
  transform: translate(-50%, -50%) scale(var(--s, 0.7));
  opacity: var(--a, 0);
  transition: opacity 220ms ease;
  font-size:14px;
  line-height:1;
  filter: drop-shadow(0 0 10px rgba(231,84,128,.35));
  user-select:none;
}

/* Smooth collapsing list rows (Interstitial #1) */
.calcList{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:0;                 /* gap doesn't animate; we animate margin instead */
}

.calcRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 14px;
  margin:0 0 10px;       /* replaces old gap */

  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);

  opacity:0;
  transform: translateY(-8px);

  /* allow smooth collapse */
  max-height: 90px;
  overflow:hidden;

  transition:
    opacity .35s ease,
    transform .35s ease,
    max-height .55s ease,
    margin .55s ease,
    padding .55s ease,
    border-width .55s ease;
}

.calcRow.show{
  opacity:1;
  transform: translateY(0);
}

/* soften row right after it completes */
.calcRow.softFade{
  opacity:.55;
  transform: translateY(-2px);
}

/* collapse away so remaining rows slide up naturally */
.calcRow.collapseOut{
  opacity:0;
  transform: translateY(-10px);
  max-height:0;
  margin:0;
  padding-top:0;
  padding-bottom:0;
  border-width:0;
}

.calcRow.softFade{
  opacity:.55;
  transform: translateY(-2px);
}
.calcLeft{ display:flex; align-items:center; gap:10px; text-align:left; }
.calcBadge{
  width:26px;
  height:26px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background: var(--rose10);
  border:1px solid var(--rose28);
  font-size:14px;
}
.calcStatus{ font-size:12px; color: rgba(231,84,128,.90); }
.calcCheck{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(231,84,128,.55);
  display:grid;
  place-items:center;
  opacity:.9;
}
.calcRow.collapseOut{
  opacity:0;
  transform: translateY(-10px);
  max-height:0;
  margin:0;
  padding-top:0;
  padding-bottom:0;
  border-width:0;
}
.calcCheck.done{ background: var(--rose10); }
.calcCheck.done:after{ content:"✓"; font-size:12px; color: rgba(231,84,128,.95); }

/* =========================================================
   Interstitial #2 — Forecast Accuracy Orb (SINGLE SOURCE OF TRUTH)
   Matches JSFiddle look (pink core + subtle outer rings + stars)
   ========================================================= */

.faStage{
  width:min(760px, 92vw);
  text-align:center;
  padding: 10px 0 18px;
}

.faTitle{
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .4px;
  color:#fff;
}

.faSubtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.faOrbWrap{
  --orbSize: 240px;
  position: relative;
  width: var(--orbSize);
  height: var(--orbSize);
  margin: 0 auto;
  display:grid;
  place-items:center;
}

@media (max-width:420px){
  .faOrbWrap{ --orbSize: 210px; }
}

/* subtle outer ring */
.faOrbWrap::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
  opacity:.75;
  pointer-events:none;
}
.faOrbWrap::after{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.06);
  opacity:.6;
  pointer-events:none;
}

/* stars behind orb */
.faStars{
  position:absolute;
  inset:-18%;
  border-radius:999px;
  pointer-events:none;
  overflow:hidden;
  opacity:.70;
  filter: blur(.15px);
}
.faStars span{
  position:absolute;
  border-radius:999px;
  background: rgba(255,255,255,var(--op,.6));
  animation:
    faStarTwinkle var(--tw, 2000ms) ease-in-out infinite,
    faStarDrift var(--dr, 5000ms) ease-in-out infinite;
}
@keyframes faStarTwinkle{
  0%,100%{ opacity: calc(var(--op) * .55); transform: scale(.9); }
  50%{ opacity: var(--op); transform: scale(1.45); }
}
@keyframes faStarDrift{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(-2px,-3px,0); }
}

.faOrb{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  transform: translateZ(0);

  /* brighter pink center like the JSFiddle screenshot */
  background:
    radial-gradient(circle at 50% 58%, rgba(231,84,128,.78), rgba(231,84,128,.28) 48%, rgba(231,84,128,.10) 64%, transparent 72%),
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.20), transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(180,160,255,.18), transparent 56%),
    radial-gradient(circle at 45% 80%, rgba(90,220,210,.10), transparent 62%),
    radial-gradient(circle at 50% 55%, rgba(10,14,28,.92), rgba(6,8,16,.985) 62%, rgba(4,5,12,1) 100%);

  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 26px 64px rgba(0,0,0,.58),
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 26px rgba(180,160,255,.16);

  animation: faOrbBreath 4.8s ease-in-out infinite;
}
@keyframes faOrbBreath{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-1px,0) scale(1.02); }
}

/* glossy highlight */
.faOrb::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.22), transparent 34%),
    radial-gradient(circle at 70% 82%, rgba(231,84,128,.08), transparent 46%);
  pointer-events:none;
}

.faMist{
  position:absolute;
  inset:0;
  border-radius:999px;
  pointer-events:none;
  opacity:.52;
  mix-blend-mode: screen;
  background:
    radial-gradient(220px 160px at 28% 48%, rgba(180,160,255,.24), transparent 66%),
    radial-gradient(260px 180px at 70% 42%, rgba(231,84,128,.18), transparent 68%),
    radial-gradient(240px 190px at 55% 76%, rgba(120,110,255,.16), transparent 70%);
  filter: blur(1.4px) saturate(1.45);
  animation: faMistFloat 9.5s ease-in-out infinite;
}
@keyframes faMistFloat{
  0%   { transform: translate3d(-6px, 4px,0) scale(1.02); opacity:.44; }
  50%  { transform: translate3d(10px,-7px,0) scale(1.06); opacity:.62; }
  100% { transform: translate3d(-6px, 4px,0) scale(1.02); opacity:.44; }
}

.faPercent{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 46px;
  letter-spacing: .4px;
  color: rgba(234,246,246,.92);
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  z-index: 5;
}

/* AFTER-78% message + CTA reveal */
.faAfterMsg{
  width:min(520px, 92vw);
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(238,243,251,.92);
  opacity: 0;
  transform: translateY(8px);
}
.faAfterMsg.show{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
.faAfterCta{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.faAfterCta.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .35s ease, transform .35s ease;
}

/* =========================================================
   TY / RESULTS PAGE (scoped)
   ========================================================= */

.tyPage{
  position:relative;
  min-height: calc(100vh - 20px);
  padding: 22px 18px 40px;
  overflow:hidden;
}

/* twinkle overlay (scoped) */
.tyPage::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background:
    radial-gradient(1px 1px at 10% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 22% 62%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 35% 28%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 48% 78%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 62% 22%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 74% 55%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 86% 30%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 92% 82%, rgba(255,255,255,.65), transparent 60%);
  filter: blur(.4px);
  animation: tyTwinkle 7s ease-in-out infinite;
}

@keyframes tyTwinkle{
  0%,100%{ opacity:.45; transform: translate3d(0,0,0); }
  50%{ opacity:.72; transform: translate3d(-1px,-2px,0); }
}

/* drifting nebula wash */
.tyNebula{
  position:absolute;
  pointer-events:none;
  opacity:.9;
  filter: blur(18px) saturate(1.2);
  background:
    radial-gradient(520px 360px at 30% 35%, rgba(231,84,128,.16), transparent 65%),
    radial-gradient(620px 420px at 70% 55%, rgba(180,160,255,.14), transparent 68%),
    radial-gradient(520px 420px at 55% 80%, rgba(140,220,220,.12), transparent 70%);
  mix-blend-mode: screen;
  animation: tyNeb 14s ease-in-out infinite;
}

@keyframes tyNeb{
  0%{ transform: translate3d(-12px, 10px,0) scale(1.04) rotate(-1deg); }
  50%{ transform: translate3d(14px,-12px,0) scale(1.10) rotate(1.5deg); }
  100%{ transform: translate3d(-12px, 10px,0) scale(1.04) rotate(-1deg); }
}

.tyHeader{
  width:min(760px, 92vw);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:1;
}

.tyKicker{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing:.2px;
  font-size:18px;
  opacity:.9;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}

.tyMain{
  width:min(760px, 92vw);
  margin: 0 auto;
  padding-top: 18px;
  position:relative;
  z-index:1;
}

.tyHero{
  text-align:center;
  position:relative;
  padding-top: 14px;
}

/* soft ring behind hero */
.tyGlowRing{
  position:absolute;
  left:50%;
  top: 10px;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(231,84,128,.18), transparent 60%),
    radial-gradient(circle at 40% 35%, rgba(180,160,255,.16), transparent 58%),
    radial-gradient(circle at 60% 70%, rgba(140,220,220,.10), transparent 62%);
  filter: blur(10px);
  opacity:.9;
  animation: tyRing 5s ease-in-out infinite;
  pointer-events:none;
}

@keyframes tyRing{
  0%,100%{ transform: translateX(-50%) scale(1); opacity:.75; }
  50%{ transform: translateX(-50%) scale(1.06); opacity:1; }
}

.tyTitle{
  margin: 12px 0 10px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: .3px;
  color:#fff;
  font-size: clamp(28px, 4vw, 40px);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  opacity:0;
  transform: translateY(10px);
  animation: tyIn .6s ease forwards;
}

.tyLead{
  margin: 0 0 18px;
  color: rgba(238,243,251,.68);
  font-size: 14px;
  line-height: 1.45;
  opacity:0;
  transform: translateY(10px);
  animation: tyIn .7s ease forwards;
  animation-delay: .08s;
}

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

.tyArchetype{
  display:inline-block;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(231,84,128,.22), rgba(231,84,128,.10));
  border: 1px solid rgba(231,84,128,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 24px rgba(231,84,128,.12);
  letter-spacing: .6px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateZ(0);
}

/* card */
.tyCard{
  width:95%;
  margin: 0 auto;
  text-align:left;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 58px rgba(0,0,0,.50);
  padding: 18px 18px 16px;
  backdrop-filter: blur(8px);
  opacity:0;
  transform: translateY(14px);
  animation: tyIn .8s ease forwards;
  animation-delay: .14s;
}

.tyBody,
.tyBonus{
  margin:0 0 10px;
  color: rgba(238,243,251,.92);
  font-size: 14px;
  line-height: 1.6;
}

.tyStrong{ color:#fff; font-weight: 700; }

.tyDivider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 14px 0;
}

.tyBonus{
  margin-bottom: 14px;
}

.tyBonusLabel{
  display:inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(180,160,255,.14);
  border: 1px solid rgba(180,160,255,.22);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  letter-spacing:.4px;
  margin-right: 8px;
}

/* CTA */
.tyCta{
  width:100%;
  height:58px;
  border-radius:16px;
  border: 1px solid rgba(255,255,255,.16);
  cursor:pointer;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 1.6px;
  font-size: 16px;
  color: rgba(255,255,255,.95);
  text-transform: uppercase;
  background:
    radial-gradient(120% 200% at 30% 20%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(180deg, #0b0c10 0%, #05060a 55%, #020306 100%);
  box-shadow:
    0 18px 44px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -18px 26px rgba(0,0,0,.72),
    0 0 22px rgba(231,84,128,.10);
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}

.tyCta::before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.12) 38%, rgba(255,255,255,.05) 52%, transparent 70%);
  transform: translateX(-35%) rotate(-6deg);
  opacity:.9;
  pointer-events:none;
  transition: transform .35s ease, opacity .35s ease;
}

.tyCta:hover::before{ transform: translateX(-10%) rotate(-6deg); opacity:1; }
.tyCta:active{ transform: translateY(1px); }

.tyCta.pulse{
  animation: tyPulse 1.25s ease-in-out infinite;
}

@keyframes tyPulse{
  0%,100%{ box-shadow: 0 18px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.10), inset 0 -18px 26px rgba(0,0,0,.72), 0 0 22px rgba(231,84,128,.10); }
  50%{ box-shadow: 0 22px 54px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -18px 28px rgba(0,0,0,.76), 0 0 34px rgba(231,84,128,.18); }
}

.tyHint{
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(238,243,251,.70);
  opacity:.95;
}

.tyFooterNote{
  width:min(620px, 92vw);
  margin: 14px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color: rgba(238,243,251,.70);
  font-size: 12px;
  opacity:.92;
}

.tyDot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(231,84,128,.9);
  box-shadow: 0 0 18px rgba(231,84,128,.45);
}

@media (max-width:420px){
  .tyGlowRing{ width: 300px; height: 300px; }
}
