/* ════════════════════════════════════════════════════════════
 * Funnel stage — shared by Quiz Funnel.html and every variant.
 * Mobile (default): full-viewport phone shape.
 * Desktop (≥ 1024px): wider card on a brand-toned stage with
 *   logo + nav chrome around it. Same screens inside; they just
 *   have more breathing room.
 * ════════════════════════════════════════════════════════════ */
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: #2D2B2A;
  background: #2C2C2C;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}

#root { width: 100%; display: flex; justify-content: center; }

/* Phone shape — base */
.app-frame {
  width: 100%; max-width: 402px;
  height: 100vh; max-height: 874px;
  background: #FBF9F6;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}
@media (min-width: 480px) {
  .app-frame { border-radius: 32px; height: 874px; }
}

/* ─── Desktop ── promote to a wide card on a brand stage ── */
@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(ellipse 80% 60% at 90% 0%,   #E6EBE2 0%, transparent 60%),
      radial-gradient(ellipse 80% 60% at 10% 100%, #F4DFD0 0%, transparent 50%),
      #FBF9F6;
  }
  .app-frame {
    width: calc(100vw - 96px);
    max-width: 680px;
    height: 880px;
    max-height: calc(100vh - 96px);
    border-radius: 28px;
    background: #FBF9F6;
    box-shadow: 0 32px 64px rgba(45,43,42,0.18), 0 4px 12px rgba(45,43,42,0.08);
  }
}

/* ─── Desktop chrome (logo + "back to home") ───────────── */
.desktop-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 36px;
  display: none;
  align-items: center; justify-content: space-between;
  pointer-events: none;
}
.desktop-chrome > * { pointer-events: auto; }
.desktop-chrome .lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.desktop-chrome .lockup .word {
  font-family: 'Roboto', system-ui; font-weight: 600;
  font-size: 18px; letter-spacing: -0.025em; color: #2D2B2A; line-height: 1;
}
.desktop-chrome a { color: #5B5754; text-decoration: none; font-size: 13px; transition: color 200ms; }
.desktop-chrome a:hover { color: #2D2B2A; }
.desktop-chrome .nav { display: inline-flex; align-items: center; gap: 22px; }
@media (min-width: 1024px) {
  .desktop-chrome { display: flex; }
}

/* ─── Liquid loader animation ──────────────────────────── */
.drop { animation-fill-mode: forwards; }
.drop-1 { animation: division-1 2.5s infinite cubic-bezier(0.45, 0, 0.55, 1); }
.drop-2 { animation: division-2 2.5s infinite cubic-bezier(0.45, 0, 0.55, 1); }
@keyframes division-1 {
  0% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-30px) scale(0.7); }
  100% { transform: translateX(0) scale(1); }
}
@keyframes division-2 {
  0% { transform: translateX(0) scale(1); }
  50% { transform: translateX(30px) scale(0.7); }
  100% { transform: translateX(0) scale(1); }
}

/* ─── Variant debug badge ──────────────────────────────── */
.variant-badge {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: rgba(45,43,42,0.92); color: #FBF9F6;
  padding: 6px 10px; border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace; font-weight: 500;
  font-size: 11px; letter-spacing: 0.04em; line-height: 1;
  display: none;
}
body.debug .variant-badge { display: inline-flex; }
