html[data-theme="theme2"] {
  --theme2-ink: #173c35;
  --theme2-cream: #f7f2e8;
  --theme2-paper: #fffdf8;
  --theme2-mint: #dff3e6;
  --theme2-coral: #f08b6c;
  --theme2-sun: #f3d56b;
  --theme2-muted: #687873;
  --theme2-line: rgba(23, 60, 53, 0.22);
  --answer-transition-color: var(--theme2-coral);
}

html[data-theme="theme2"] body {
  color: var(--theme2-ink);
  background: var(--theme2-cream);
}

html[data-theme="theme2"] button:focus-visible,
html[data-theme="theme2"] input:focus-visible,
html[data-theme="theme2"] textarea:focus-visible {
  outline: 3px solid var(--theme2-coral);
  outline-offset: 3px;
}

html[data-theme="theme2"] .quiz-shell {
  width: min(760px, calc(100% - 32px));
}

html[data-theme="theme2"] .logo {
  color: var(--theme2-ink);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -1px;
}

html[data-theme="theme2"] .brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
  position: relative;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--theme2-ink);
}

html[data-theme="theme2"] .brand-mark::before,
html[data-theme="theme2"] .brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
}

html[data-theme="theme2"] .brand-mark::before {
  left: -7px;
  background: var(--theme2-coral);
}

html[data-theme="theme2"] .brand-mark::after {
  right: -7px;
  background: var(--theme2-mint);
}

html[data-theme="theme2"] .progress-track {
  height: 5px;
  background: rgba(23, 60, 53, 0.12);
}

html[data-theme="theme2"] .progress-bar {
  background: var(--theme2-coral);
}

html[data-theme="theme2"] .question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

html[data-theme="theme2"] .question-counter,
html[data-theme="theme2"] .question-time,
html[data-theme="theme2"] .eyebrow {
  color: var(--theme2-muted);
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="theme2"] .question-time {
  display: block;
  margin: 0 0 12px;
  white-space: nowrap;
}

html[data-theme="theme2"] .question-label {
  display: block;
  margin: 0 0 9px;
  color: var(--theme2-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

html[data-theme="theme2"] body[data-screen="question"] h1 {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
  color: var(--theme2-ink);
  text-align: center;
  font-size: clamp(32px, min(5.7vw, 6.1vh), 54px);
  line-height: 1.02;
  letter-spacing: -2.6px;
}

html[data-theme="theme2"] .question-support {
  display: block;
  margin: -5px auto clamp(10px, 2vh, 18px);
  color: var(--theme2-muted);
  font-size: 15px;
  text-align: center;
}

html[data-theme="theme2"] .answer {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--theme2-ink);
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 20px;
  font-weight: 850;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

html[data-theme="theme2"] .answer:hover:not(:disabled) {
  border-color: var(--theme2-ink);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(23, 60, 53, 0.3);
}

html[data-theme="theme2"] .answer.selected {
  color: var(--theme2-ink);
  background: var(--theme2-sun);
  border-color: var(--theme2-ink);
  box-shadow: 5px 5px 0 var(--theme2-ink);
  transform: translate(-2px, -2px);
}

html[data-theme="theme2"] .answer:disabled {
  cursor: default;
  opacity: 1;
}

html[data-theme="theme2"] .answer-status {
  color: var(--theme2-muted);
}

html[data-theme="theme2"] .answer-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--theme2-mint);
  border: 2px solid var(--theme2-ink);
  border-radius: 13px;
}

html[data-theme="theme2"] .answer-mark {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
}

html[data-theme="theme2"] .answer-mark::before,
html[data-theme="theme2"] .answer-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--theme2-coral);
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
}

html[data-theme="theme2"] .answer-mark::before {
  left: -6px;
}

html[data-theme="theme2"] .answer-mark::after {
  right: -6px;
  background: var(--theme2-mint);
}

html[data-theme="theme2"] #back-button {
  color: var(--theme2-ink);
  font-weight: 800;
}

html[data-theme="theme2"] #next-button,
html[data-theme="theme2"] #restart-button,
html[data-theme="theme2"] #load-scenario-button {
  color: #fff;
  background: var(--theme2-ink);
  font-weight: 850;
}

html[data-theme="theme2"] .result-block,
html[data-theme="theme2"] #debug-controls {
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 20px;
}

html[data-theme="theme2"] .conversion-card {
  color: var(--theme2-ink);
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  box-shadow: 6px 6px 0 var(--theme2-ink);
}

html[data-theme="theme2"] .conversion-card .eyebrow,
html[data-theme="theme2"] .conversion-card p,
html[data-theme="theme2"] .conversion-card #offer-price-note {
  color: var(--theme2-ink);
}

html[data-theme="theme2"] .primary-button {
  color: #fff;
  background: var(--theme2-ink);
}

html[data-theme="theme2"] .paid-result-status {
  color: var(--theme2-ink);
  background: var(--theme2-mint);
  border: 2px solid var(--theme2-ink);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--theme2-ink);
}

html[data-theme="theme2"] body.question-compact[data-screen="question"] h1 {
  font-size: clamp(27px, min(5vw, 5vh), 40px);
  letter-spacing: -2px;
}

html[data-theme="theme2"] body.question-compact[data-screen="question"] .question-support {
  margin-bottom: 8px;
  font-size: 13px;
}

html[data-theme="theme2"] body.question-compact[data-screen="question"] .answer {
  min-height: 48px;
  gap: 10px;
  border-radius: 16px;
}

html[data-theme="theme2"] body.question-compact[data-screen="question"] .answer-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

html[data-theme="theme2"] body.question-tight[data-screen="question"] .question-label,
html[data-theme="theme2"] body.question-tight[data-screen="question"] .question-support,
html[data-theme="theme2"] body.question-tight[data-screen="question"] .question-time {
  display: none;
}

html[data-theme="theme2"] body.question-tight[data-screen="question"] h1 {
  font-size: clamp(23px, min(4.4vw, 4.5vh), 32px);
  letter-spacing: -1.5px;
}

html[data-theme="theme2"] body.question-tight[data-screen="question"] .answer {
  min-height: 40px;
  gap: 8px;
  border-radius: 13px;
}

html[data-theme="theme2"] body.question-tight[data-screen="question"] .answer-icon {
  width: 29px;
  height: 29px;
  border-width: 1.5px;
}

html[data-theme="theme2"] body.question-tight[data-screen="question"] .answer-mark {
  transform: scale(0.72);
}

@media (max-width: 640px) {
  html[data-theme="theme2"] .quiz-shell {
    width: min(100% - 24px, 760px);
  }

  html[data-theme="theme2"] body[data-screen="question"] h1 {
    font-size: clamp(31px, min(8.8vw, 5.9vh), 42px);
    letter-spacing: -2px;
  }

  html[data-theme="theme2"] .question-label {
    font-size: 11px;
  }

  html[data-theme="theme2"] .question-support {
    font-size: 14px;
  }

  html[data-theme="theme2"] .answer {
    min-height: 62px;
    padding: 10px 13px;
    font-size: 16px;
  }

  html[data-theme="theme2"] .answer-icon {
    width: 42px;
    height: 42px;
  }

  html[data-theme="theme2"] body.question-compact[data-screen="question"] h1 {
    font-size: clamp(27px, min(7.8vw, 5.1vh), 38px);
  }

  html[data-theme="theme2"] body.question-compact[data-screen="question"] .question-label {
    font-size: 10px;
  }

  html[data-theme="theme2"] body.question-compact[data-screen="question"] .question-support {
    font-size: 13px;
  }

  html[data-theme="theme2"] body.question-compact[data-screen="question"] .answer {
    min-height: 48px;
    padding: 8px 11px;
    font-size: 14px;
  }

  html[data-theme="theme2"] body.question-compact[data-screen="question"] .answer-icon {
    width: 34px;
    height: 34px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  html[data-theme="theme2"] .question-label,
  html[data-theme="theme2"] .question-support,
  html[data-theme="theme2"] .question-time {
    display: none;
  }

  html[data-theme="theme2"] body[data-screen="question"] h1 {
    text-align: left;
    font-size: clamp(21px, 5vh, 28px);
    letter-spacing: -1px;
  }

  html[data-theme="theme2"] .answer {
    min-height: 38px;
    border-radius: 12px;
  }

  html[data-theme="theme2"] .answer-icon {
    width: 28px;
    height: 28px;
  }

  html[data-theme="theme2"] .answer-mark {
    transform: scale(0.68);
  }
}

/* --------------------------------------------------------------------------
   Editorial insight and processing screens
   -------------------------------------------------------------------------- */

html[data-theme="theme2"] body[data-screen="insight"],
html[data-theme="theme2"] body[data-screen="processing"] {
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(243, 213, 107, 0.25), transparent 25%),
    radial-gradient(circle at 90% 88%, rgba(223, 243, 230, 0.7), transparent 32%),
    var(--theme2-cream);
}

html[data-theme="theme2"] body[data-screen="insight"]::before,
html[data-theme="theme2"] body[data-screen="processing"]::before,
html[data-theme="theme2"] body[data-screen="insight"]::after,
html[data-theme="theme2"] body[data-screen="processing"]::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border: 2px solid var(--theme2-ink);
  box-shadow: 5px 5px 0 rgba(23, 60, 53, 0.85);
  animation: theme2-ambient-float 9s ease-in-out infinite;
}

html[data-theme="theme2"] body[data-screen="insight"]::before,
html[data-theme="theme2"] body[data-screen="processing"]::before {
  width: 74px;
  height: 74px;
  left: 4vw;
  top: 14vh;
  background: var(--theme2-coral);
  border-radius: 50%;
  transform: rotate(-8deg);
}

html[data-theme="theme2"] body[data-screen="insight"]::after,
html[data-theme="theme2"] body[data-screen="processing"]::after {
  width: 64px;
  height: 64px;
  right: 5vw;
  bottom: 11vh;
  background: var(--theme2-sun);
  border-radius: 18px;
  transform: rotate(12deg);
  animation-delay: -3s;
}

html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell,
html[data-theme="theme2"] body[data-screen="processing"] .quiz-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2.2vh, 24px);
}

html[data-theme="theme2"] body[data-screen="insight"] .quiz-header,
html[data-theme="theme2"] body[data-screen="processing"] .quiz-header {
  min-height: 48px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

html[data-theme="theme2"] body[data-screen="insight"] .logo,
html[data-theme="theme2"] body[data-screen="processing"] .logo {
  margin: 0;
  white-space: nowrap;
}

html[data-theme="theme2"] body[data-screen="insight"] .progress-track,
html[data-theme="theme2"] body[data-screen="processing"] .progress-track {
  height: 8px;
  border: 2px solid var(--theme2-ink);
  background: rgba(23, 60, 53, 0.12);
}

html[data-theme="theme2"] body[data-screen="insight"] .progress-bar,
html[data-theme="theme2"] body[data-screen="processing"] .progress-bar {
  border-right: 2px solid var(--theme2-ink);
  border-radius: 0;
  transition: width 520ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms ease;
}

html[data-theme="theme2"] body[data-screen="processing"] .progress-bar {
  background: var(--theme2-sun);
}

html[data-theme="theme2"] body[data-screen="insight"] #quiz-screen,
html[data-theme="theme2"] body[data-screen="processing"] #quiz-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.2vh, 24px);
}

html[data-theme="theme2"] body[data-screen="insight"] .question-meta,
html[data-theme="theme2"] body[data-screen="processing"] .question-meta,
html[data-theme="theme2"] body[data-screen="insight"] #question-label,
html[data-theme="theme2"] body[data-screen="processing"] #question-label,
html[data-theme="theme2"] body[data-screen="insight"] #question-title,
html[data-theme="theme2"] body[data-screen="processing"] #question-title,
html[data-theme="theme2"] body[data-screen="insight"] #question-support,
html[data-theme="theme2"] body[data-screen="processing"] #question-support {
  display: none !important;
}

html[data-theme="theme2"] body[data-screen="insight"] #answers,
html[data-theme="theme2"] body[data-screen="processing"] #answers {
  min-height: 0;
  display: block;
}

.theme2-insight-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(360px, 1.06fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  position: relative;
  padding: clamp(22px, 3.8vw, 46px);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.86);
  border: 2px solid var(--theme2-ink);
  border-radius: 34px;
  box-shadow: 7px 7px 0 var(--theme2-ink);
  backdrop-filter: blur(10px);
}

.theme2-insight-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px dashed rgba(23, 60, 53, 0.18);
  border-radius: 24px;
}

.theme2-insight-top-continue {
  display: none;
}

.theme2-insight-progress-label {
  position: absolute;
  top: 22px;
  right: 25px;
  z-index: 2;
  padding: 8px 11px;
  color: var(--theme2-ink);
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--theme2-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.theme2-insight-visual,
.theme2-insight-copy {
  position: relative;
  z-index: 1;
}

.theme2-insight-visual {
  min-height: min(51vh, 470px);
  display: grid;
  place-items: center;
}

.theme2-insight-copy {
  align-self: center;
  max-width: 620px;
  padding: clamp(4px, 1.2vw, 16px) 0;
}

.theme2-stage-kicker {
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--theme2-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.theme2-stage-kicker::before {
  content: "";
  width: 30px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
}

.theme2-context-line {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  color: var(--theme2-muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.4;
  font-weight: 700;
}

.theme2-insight-headline {
  max-width: 16ch;
  margin: 0;
  color: var(--theme2-ink);
  font-size: clamp(38px, min(5vw, 6.1vh), 72px);
  line-height: 0.98;
  letter-spacing: clamp(-3.4px, -0.055em, -1.8px);
  font-weight: 950;
  text-wrap: balance;
}

.theme2-insight-body {
  max-width: 53ch;
  margin: clamp(18px, 3vh, 30px) 0 0;
  color: #36564f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
}

.theme2-final-bridge {
  margin: 18px 0 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--theme2-ink);
  background: var(--theme2-mint);
  border: 2px solid var(--theme2-ink);
  border-radius: 15px;
  box-shadow: 3px 3px 0 rgba(23, 60, 53, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.theme2-final-bridge::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
  font-weight: 950;
}

html[data-theme="theme2"] body[data-screen="insight"] .controls {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(230px, auto);
  align-items: end;
  gap: clamp(14px, 2.4vw, 28px);
}

html[data-theme="theme2"] body[data-screen="insight"] #back-button {
  grid-column: 1;
  min-height: 52px;
  padding: 12px 16px;
  align-self: end;
  color: var(--theme2-ink);
  background: transparent;
  font-weight: 850;
}

.theme2-insight-continuation {
  grid-column: 2;
  min-width: 0;
}

.theme2-insight-next-label {
  margin: 0 0 9px;
  color: var(--theme2-muted);
  font-size: 13px;
  font-weight: 800;
}

.theme2-countdown-track {
  height: 8px;
  overflow: hidden;
  background: rgba(23, 60, 53, 0.11);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
}

.theme2-countdown-fill {
  width: 100%;
  height: 100%;
  background: var(--theme2-sun);
  transform-origin: left center;
  will-change: transform;
}

html[data-theme="theme2"] body[data-screen="insight"] #next-button {
  grid-column: 3;
  min-width: min(310px, 34vw);
  min-height: 58px;
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: var(--theme2-ink);
  border: 2px solid var(--theme2-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--theme2-coral);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="theme2"] body[data-screen="insight"] #next-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--theme2-coral);
}

html[data-theme="theme2"] body[data-screen="insight"] #next-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--theme2-coral);
}

/* Block 1 — relationship signal */
.theme2-signal-scene {
  width: min(430px, 100%);
  aspect-ratio: 1 / 0.92;
  position: relative;
}

.theme2-signal-orbit {
  position: absolute;
  inset: 7%;
  border: 2px dashed var(--theme2-ink);
  border-radius: 50%;
  opacity: 0.35;
  animation: theme2-orbit-spin 30s linear infinite;
}

.theme2-signal-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 49%;
  height: 12px;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(23, 60, 53, 0.75);
  transform: rotate(-5deg);
}

.theme2-signal-node {
  width: 112px;
  height: 112px;
  position: absolute;
  top: calc(50% - 56px);
  display: grid;
  place-items: center;
  border: 3px solid var(--theme2-ink);
  border-radius: 50%;
  box-shadow: 7px 7px 0 var(--theme2-ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.theme2-signal-node--left {
  left: 4%;
  background: var(--theme2-coral);
  transform: rotate(-8deg);
}

.theme2-signal-node--right {
  right: 4%;
  background: var(--theme2-mint);
  transform: rotate(7deg);
}

.theme2-signal-note {
  width: 172px;
  position: absolute;
  left: 50%;
  top: 14%;
  padding: 16px 14px;
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 17px;
  box-shadow: 5px 5px 0 var(--theme2-ink);
  transform: translateX(-50%) rotate(3deg);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.15;
}

.theme2-signal-mini {
  position: absolute;
  padding: 8px 11px;
  color: var(--theme2-ink);
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.theme2-signal-mini--one {
  left: 18%;
  bottom: 12%;
  transform: rotate(6deg);
}

.theme2-signal-mini--two {
  right: 17%;
  bottom: 16%;
  background: var(--theme2-paper);
  transform: rotate(-5deg);
}

/* Block 2 — layers and discovery */
.theme2-layers-scene {
  width: min(430px, 100%);
  height: min(430px, 48vh);
  position: relative;
  perspective: 900px;
}

.theme2-layer-card {
  width: 72%;
  height: 65%;
  position: absolute;
  left: 14%;
  top: 17%;
  padding: 24px;
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--theme2-ink);
}

.theme2-layer-card--back {
  background: var(--theme2-coral);
  transform: translate(-34px, 25px) rotate(-9deg);
}

.theme2-layer-card--mid {
  background: var(--theme2-sun);
  transform: translate(32px, -22px) rotate(8deg);
}

.theme2-layer-card--front {
  display: grid;
  align-content: space-between;
  transform: rotate(-1deg);
}

.theme2-layer-heading {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.theme2-layer-strips {
  display: grid;
  gap: 9px;
}

.theme2-layer-strip {
  min-height: 38px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--theme2-mint);
  border: 2px solid var(--theme2-ink);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.theme2-layer-strip:nth-child(2) {
  width: 87%;
  background: var(--theme2-sun);
}

.theme2-layer-strip:nth-child(3) {
  width: 72%;
  background: var(--theme2-coral);
}

.theme2-layer-dot {
  width: 10px;
  height: 10px;
  background: var(--theme2-ink);
  border-radius: 50%;
}

.theme2-peel-corner {
  width: 64px;
  height: 64px;
  position: absolute;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, transparent 50%, var(--theme2-mint) 50%);
  border-bottom-right-radius: 21px;
}

/* Block 3 — memory fragment */
.theme2-memory-scene {
  width: min(440px, 100%);
  height: min(430px, 48vh);
  position: relative;
}

.theme2-memory-frame {
  width: 72%;
  height: 68%;
  position: absolute;
  left: 14%;
  top: 10%;
  padding: 25px;
  display: grid;
  align-content: space-between;
  background: var(--theme2-mint);
  border: 3px solid var(--theme2-ink);
  box-shadow: 9px 9px 0 var(--theme2-ink);
  transform: rotate(3deg);
}

.theme2-quote-mark {
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 0.65;
  font-weight: 900;
}

.theme2-memory-word {
  max-width: 7ch;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 950;
  text-transform: uppercase;
}

.theme2-memory-caption {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}

.theme2-timeline {
  position: absolute;
  left: 6%;
  right: 3%;
  bottom: 4%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.theme2-timeline::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  height: 4px;
  background: var(--theme2-ink);
  transform: translateY(-50%);
}

.theme2-timeline-point {
  width: 26px;
  height: 26px;
  position: relative;
  justify-self: center;
  background: var(--theme2-paper);
  border: 3px solid var(--theme2-ink);
  border-radius: 50%;
}

.theme2-timeline-point:nth-child(2) { background: var(--theme2-sun); }
.theme2-timeline-point:nth-child(3) { background: var(--theme2-coral); }
.theme2-timeline-point:nth-child(4) {
  width: 38px;
  height: 38px;
  background: var(--theme2-sun);
  box-shadow: 4px 4px 0 var(--theme2-ink);
}

.theme2-memory-ticket {
  position: absolute;
  right: 2%;
  top: 4%;
  padding: 10px 13px;
  background: var(--theme2-sun);
  border: 2px solid var(--theme2-ink);
  border-radius: 11px;
  box-shadow: 4px 4px 0 var(--theme2-ink);
  transform: rotate(-8deg);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

/* Block 4 — clear path */
.theme2-path-scene {
  width: min(440px, 100%);
  height: min(440px, 49vh);
  position: relative;
}

.theme2-completion-stamp {
  width: 104px;
  height: 104px;
  position: absolute;
  right: 2%;
  top: 0;
  display: grid;
  place-items: center;
  background: var(--theme2-sun);
  border: 3px solid var(--theme2-ink);
  border-radius: 50%;
  box-shadow: 7px 7px 0 var(--theme2-ink);
  transform: rotate(8deg);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.theme2-completion-stamp strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.theme2-path-line {
  position: absolute;
  left: 10%;
  right: 9%;
  top: 55%;
  height: 12px;
  background: var(--theme2-mint);
  border: 2px solid var(--theme2-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--theme2-ink);
  transform: rotate(-8deg);
}

.theme2-path-step {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--theme2-paper);
  border: 3px solid var(--theme2-ink);
  box-shadow: 6px 6px 0 var(--theme2-ink);
  font-weight: 950;
}

.theme2-path-step--1 {
  width: 70px;
  height: 70px;
  left: 7%;
  top: 62%;
  border-radius: 20px;
  transform: rotate(-5deg);
}

.theme2-path-step--2 {
  width: 82px;
  height: 82px;
  left: 32%;
  top: 45%;
  background: var(--theme2-coral);
  border-radius: 50%;
  transform: rotate(5deg);
}

.theme2-path-step--3 {
  width: 94px;
  height: 94px;
  left: 56%;
  top: 27%;
  background: var(--theme2-sun);
  border-radius: 25px;
  transform: rotate(-4deg);
}

.theme2-path-step--4 {
  width: 120px;
  height: 120px;
  right: 0;
  top: 47%;
  color: #fff;
  background: var(--theme2-ink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 var(--theme2-coral);
  text-align: center;
  font-size: 14px;
  line-height: 1.15;
}

.theme2-path-arrow {
  position: absolute;
  left: 41%;
  top: 9%;
  font-size: 64px;
  font-weight: 950;
  transform: rotate(16deg);
}

.theme2-path-note {
  position: absolute;
  left: 2%;
  top: 6%;
  max-width: 170px;
  padding: 12px 14px;
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--theme2-ink);
  transform: rotate(-4deg);
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.18;
}

/* Processing scene */
html[data-theme="theme2"] body[data-screen="processing"] #quiz-screen {
  grid-template-rows: minmax(0, 1fr);
}

html[data-theme="theme2"] body[data-screen="processing"] .controls {
  display: none;
}

.theme2-processing-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(22px, 4vw, 52px);
  overflow: hidden;
  position: relative;
  color: var(--theme2-paper);
  background: var(--theme2-ink);
  border: 2px solid var(--theme2-ink);
  border-radius: 34px;
  box-shadow: 9px 9px 0 var(--theme2-coral);
}

.theme2-processing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: radial-gradient(circle at 35% 50%, #000, transparent 72%);
}

.theme2-processing-visual,
.theme2-processing-copy {
  position: relative;
  z-index: 1;
}

.theme2-processing-visual {
  display: grid;
  place-items: center;
}

.theme2-progress-orbit {
  width: min(390px, 76vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.theme2-progress-orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.theme2-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 12;
}

.theme2-ring-progress {
  fill: none;
  stroke: var(--theme2-sun);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 1018;
  stroke-dashoffset: 1018;
  filter: drop-shadow(4px 4px 0 rgba(240, 139, 108, 0.8));
}

.theme2-orbit-tick {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--theme2-paper);
  border: 2px solid var(--theme2-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--theme2-coral);
}

.theme2-orbit-tick--1 { top: 1%; left: 50%; }
.theme2-orbit-tick--2 { right: 2%; top: 48%; background: var(--theme2-coral); }
.theme2-orbit-tick--3 { bottom: 4%; left: 19%; background: var(--theme2-mint); }

.theme2-assembled-mark {
  width: 190px;
  height: 126px;
  position: relative;
  display: grid;
  place-items: center;
}

.theme2-assembly-line {
  width: 92px;
  height: 13px;
  position: absolute;
  background: var(--theme2-sun);
  border: 3px solid var(--theme2-paper);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme2-assembly-node {
  width: 70px;
  height: 70px;
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--theme2-ink);
  border: 3px solid var(--theme2-paper);
  border-radius: 50%;
  box-shadow: 7px 7px 0 rgba(240, 139, 108, 0.95);
  opacity: 0;
  transform: translateY(20px) scale(0.6) rotate(-10deg);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 950;
}

.theme2-assembly-node--left { left: 0; background: var(--theme2-coral); }
.theme2-assembly-node--center { left: 60px; z-index: 2; background: var(--theme2-sun); }
.theme2-assembly-node--right { right: 0; background: var(--theme2-mint); }

.theme2-assembled-mark[data-phase="1"] .theme2-assembly-node--left,
.theme2-assembled-mark[data-phase="2"] .theme2-assembly-node--left,
.theme2-assembled-mark[data-phase="3"] .theme2-assembly-node--left,
.theme2-assembled-mark[data-phase="4"] .theme2-assembly-node--left,
.theme2-assembled-mark[data-phase="2"] .theme2-assembly-node--center,
.theme2-assembled-mark[data-phase="3"] .theme2-assembly-node--center,
.theme2-assembled-mark[data-phase="4"] .theme2-assembly-node--center,
.theme2-assembled-mark[data-phase="3"] .theme2-assembly-node--right,
.theme2-assembled-mark[data-phase="4"] .theme2-assembly-node--right {
  opacity: 1;
  transform: none;
}

.theme2-assembled-mark[data-phase="3"] .theme2-assembly-line,
.theme2-assembled-mark[data-phase="4"] .theme2-assembly-line {
  transform: scaleX(1);
}

.theme2-assembled-mark[data-phase="4"] {
  animation: theme2-ready-pop 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-processing-copy {
  max-width: 580px;
}

.theme2-processing-eyebrow {
  margin: 0 0 18px;
  color: var(--theme2-sun);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.theme2-processing-title {
  max-width: 12ch;
  margin: 0;
  color: var(--theme2-paper);
  font-size: clamp(44px, min(6.5vw, 7.2vh), 84px);
  line-height: 0.93;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-wrap: balance;
}

.theme2-processing-phrase-wrap {
  min-height: 78px;
  margin-top: clamp(24px, 4vh, 42px);
  position: relative;
  overflow: hidden;
}

.theme2-processing-phrase {
  margin: 0;
  position: absolute;
  inset: 0;
  color: var(--theme2-mint);
  font-family: Georgia, serif;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  transition: opacity 360ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme2-processing-phrase.is-exiting {
  opacity: 0;
  transform: translateY(-16px);
}

.theme2-processing-phrase.is-entering {
  opacity: 0;
  transform: translateY(16px);
}

.theme2-processing-meter {
  margin-top: clamp(24px, 4vh, 40px);
}

.theme2-processing-meter-meta {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.theme2-processing-percent {
  color: var(--theme2-sun);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.theme2-processing-meter-track {
  height: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 2px solid var(--theme2-paper);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--theme2-coral);
}

.theme2-processing-meter-fill {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--theme2-sun) 0 18px,
    var(--theme2-coral) 18px 36px
  );
  border-right: 2px solid var(--theme2-paper);
  transition: width 100ms linear;
}

.theme2-reveal .theme2-insight-visual,
.theme2-reveal .theme2-processing-visual {
  animation: theme2-reveal-up 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-reveal .theme2-stage-kicker,
.theme2-reveal .theme2-processing-eyebrow {
  animation: theme2-reveal-up 430ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-reveal .theme2-context-line {
  animation: theme2-reveal-up 430ms 140ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-reveal .theme2-insight-headline,
.theme2-reveal .theme2-processing-title {
  animation: theme2-reveal-up 520ms 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-reveal .theme2-insight-body,
.theme2-reveal .theme2-processing-phrase-wrap {
  animation: theme2-reveal-up 470ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme2-reveal .theme2-final-bridge,
.theme2-reveal .theme2-processing-meter {
  animation: theme2-reveal-up 430ms 350ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes theme2-reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes theme2-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes theme2-ambient-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -12px; rotate: 4deg; }
}

@keyframes theme2-ready-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1); }
}

@media (max-width: 840px) {
  html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell,
  html[data-theme="theme2"] body[data-screen="processing"] .quiz-shell {
    width: 100%;
    min-height: 100dvh;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .quiz-header,
  html[data-theme="theme2"] body[data-screen="processing"] .quiz-header {
    grid-template-columns: auto 1fr;
  }

  .theme2-insight-card,
  .theme2-processing-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .theme2-insight-card {
    padding: clamp(18px, 5vw, 28px);
  }

  .theme2-insight-progress-label {
    top: 16px;
    right: 18px;
  }

  .theme2-insight-top-continue {
    position: absolute;
    top: 58px;
    right: 18px;
    z-index: 3;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: var(--theme2-ink);
    border: 2px solid var(--theme2-ink);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--theme2-coral);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .theme2-insight-top-continue:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--theme2-coral);
  }

  .theme2-insight-visual {
    min-height: clamp(230px, 37vh, 340px);
  }

  .theme2-insight-copy {
    max-width: 720px;
  }

  .theme2-insight-headline {
    max-width: 19ch;
    font-size: clamp(34px, 8.7vw, 55px);
  }

  .theme2-insight-body {
    margin-top: 15px;
    font-size: clamp(16px, 4.2vw, 19px);
  }

  html[data-theme="theme2"] body[data-screen="insight"] .controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .theme2-insight-continuation {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #next-button {
    grid-column: 2;
    min-width: 0;
    width: 100%;
  }

  .theme2-processing-card {
    padding: 28px;
  }

  .theme2-progress-orbit {
    width: min(300px, 73vw);
  }

  .theme2-processing-copy {
    justify-self: center;
    text-align: center;
  }

  .theme2-processing-title {
    max-width: 13ch;
    margin-inline: auto;
    font-size: clamp(40px, 10.5vw, 64px);
  }

  .theme2-processing-phrase-wrap {
    min-height: 70px;
  }

  .theme2-processing-meter-meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  html[data-theme="theme2"] body[data-screen="insight"]::before,
  html[data-theme="theme2"] body[data-screen="processing"]::before,
  html[data-theme="theme2"] body[data-screen="insight"]::after,
  html[data-theme="theme2"] body[data-screen="processing"]::after {
    display: none;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell,
  html[data-theme="theme2"] body[data-screen="processing"] .quiz-shell {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    gap: 12px;
  }

  .theme2-insight-card {
    border-radius: 25px;
    box-shadow: 5px 5px 0 var(--theme2-ink);
  }

  .theme2-insight-card::before {
    inset: 7px;
    border-radius: 18px;
  }

  .theme2-insight-progress-label {
    padding: 6px 8px;
    font-size: 9px;
    box-shadow: 2px 2px 0 var(--theme2-ink);
  }

  .theme2-insight-top-continue {
    top: 50px;
    right: 14px;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
    box-shadow: 2px 2px 0 var(--theme2-coral);
  }

  .theme2-insight-visual {
    min-height: clamp(190px, 30vh, 255px);
  }

  .theme2-stage-kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .theme2-context-line {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .theme2-insight-headline {
    font-size: clamp(31px, 8.8vw, 43px);
    line-height: 1;
  }

  .theme2-insight-body {
    font-size: 16px;
    line-height: 1.42;
  }

  .theme2-final-bridge {
    margin-top: 13px;
    padding: 10px 11px;
    font-size: 12px;
  }

  .theme2-insight-next-label {
    margin-bottom: 6px;
    font-size: 12px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #back-button {
    min-height: 50px;
    padding-inline: 10px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #next-button {
    min-height: 52px;
    border-radius: 15px;
  }

  .theme2-signal-scene {
    width: 270px;
  }

  .theme2-signal-node {
    width: 76px;
    height: 76px;
    top: calc(50% - 38px);
    box-shadow: 5px 5px 0 var(--theme2-ink);
    font-size: 9px;
  }

  .theme2-signal-note {
    width: 135px;
    top: 8%;
    padding: 10px;
    font-size: 14px;
  }

  .theme2-signal-line {
    height: 9px;
  }

  .theme2-signal-mini {
    padding: 6px 8px;
    font-size: 8px;
  }

  .theme2-layers-scene,
  .theme2-memory-scene,
  .theme2-path-scene {
    width: 280px;
    height: 235px;
  }

  .theme2-layer-card {
    padding: 16px;
    border-radius: 18px;
  }

  .theme2-layer-heading,
  .theme2-memory-word {
    font-size: 33px;
  }

  .theme2-layer-strip {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .theme2-memory-frame {
    padding: 17px;
    box-shadow: 6px 6px 0 var(--theme2-ink);
  }

  .theme2-quote-mark { font-size: 64px; }

  .theme2-memory-ticket {
    right: 0;
    padding: 7px 9px;
    font-size: 8px;
  }

  .theme2-timeline-point {
    width: 20px;
    height: 20px;
  }

  .theme2-timeline-point:nth-child(4) {
    width: 29px;
    height: 29px;
  }

  .theme2-completion-stamp {
    width: 72px;
    height: 72px;
    box-shadow: 5px 5px 0 var(--theme2-ink);
    font-size: 8px;
  }

  .theme2-completion-stamp strong { font-size: 19px; }

  .theme2-path-note {
    max-width: 122px;
    padding: 9px;
    font-size: 12px;
  }

  .theme2-path-arrow { font-size: 45px; }
  .theme2-path-step--1 { width: 49px; height: 49px; }
  .theme2-path-step--2 { width: 58px; height: 58px; }
  .theme2-path-step--3 { width: 66px; height: 66px; }
  .theme2-path-step--4 { width: 82px; height: 82px; font-size: 10px; }

  .theme2-processing-card {
    padding: 18px;
    border-radius: 25px;
  }

  .theme2-progress-orbit { width: 225px; }
  .theme2-assembled-mark { transform: scale(0.78); }

  .theme2-processing-title {
    font-size: clamp(36px, 10.7vw, 49px);
  }

  .theme2-processing-phrase-wrap {
    min-height: 63px;
    margin-top: 18px;
  }

  .theme2-processing-phrase { font-size: 16px; }
  .theme2-processing-meter { margin-top: 18px; }
  .theme2-processing-meter-track { height: 15px; }
}

@media (max-height: 690px) and (min-width: 841px) {
  html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell,
  html[data-theme="theme2"] body[data-screen="processing"] .quiz-shell {
    gap: 11px;
  }

  .theme2-insight-card {
    padding-block: 18px;
  }

  .theme2-insight-visual {
    min-height: 360px;
  }

  .theme2-insight-headline {
    font-size: clamp(36px, 5.4vh, 55px);
  }

  .theme2-insight-body {
    margin-top: 14px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme2-insight-card *,
  .theme2-insight-card *::before,
  .theme2-insight-card *::after,
  .theme2-processing-card *,
  .theme2-processing-card *::before,
  .theme2-processing-card *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   One-viewport insight fitting
   Keeps the CTA visible on standard mobile and desktop viewports. The
   JavaScript adds progressively denser classes only when real overflow is
   detected; genuinely extreme viewports fall back to safe scrolling.
   -------------------------------------------------------------------------- */

html[data-theme="theme2"] body[data-screen="insight"] {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell {
  height: 100dvh;
  max-height: 100dvh;
}

html[data-theme="theme2"] body[data-screen="insight"] #quiz-screen,
html[data-theme="theme2"] body[data-screen="insight"] #answers {
  height: 100%;
  overflow: hidden;
}

html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-card {
  max-height: 100%;
}

html[data-theme="theme2"] body[data-screen="insight"] .controls {
  min-height: 58px;
}

/* First measured density step. */
html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .quiz-shell {
  gap: 10px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .quiz-header {
  min-height: 40px;
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] #quiz-screen {
  gap: 10px;
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-card {
  padding: clamp(16px, 2.6vw, 30px);
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-visual {
  min-height: min(42vh, 380px);
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-context-line {
  margin-bottom: 12px;
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-headline {
  font-size: clamp(34px, min(4.5vw, 5.5vh), 62px);
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-body {
  margin-top: 14px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.4;
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-final-bridge {
  margin-top: 12px;
  padding-block: 10px;
}

html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .controls,
html[data-theme="theme2"] body.insight-compact[data-screen="insight"] #next-button,
html[data-theme="theme2"] body.insight-compact[data-screen="insight"] #back-button {
  min-height: 52px;
}

/* Second measured density step. */
html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .quiz-shell {
  gap: 8px;
  padding-top: max(9px, env(safe-area-inset-top));
  padding-bottom: max(9px, env(safe-area-inset-bottom));
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .quiz-header {
  min-height: 34px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .logo {
  font-size: 23px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] #quiz-screen {
  gap: 8px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-card {
  padding: 13px;
  gap: 6px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-progress-label {
  top: 11px;
  right: 12px;
  padding: 5px 7px;
  font-size: 9px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-visual {
  min-height: min(32vh, 285px);
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-stage-kicker {
  margin-bottom: 6px;
  font-size: 10px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-context-line {
  margin-bottom: 7px;
  font-size: 12px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-headline {
  font-size: clamp(28px, min(4vw, 4.8vh), 50px);
  line-height: 0.99;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-body {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.32;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-final-bridge {
  margin-top: 9px;
  padding: 8px 10px;
  font-size: 12px;
}

html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .controls,
html[data-theme="theme2"] body.insight-tight[data-screen="insight"] #next-button,
html[data-theme="theme2"] body.insight-tight[data-screen="insight"] #back-button {
  min-height: 48px;
}

/* Last no-scroll density step for very short but still usable viewports. */
html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .quiz-shell {
  gap: 6px;
  padding-top: max(7px, env(safe-area-inset-top));
  padding-bottom: max(7px, env(safe-area-inset-bottom));
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .quiz-header {
  min-height: 30px;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .progress-track {
  height: 6px;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-visual {
  min-height: 88px;
  height: 88px;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-context-line {
  display: none;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-headline {
  font-size: clamp(24px, min(3.6vw, 4.2vh), 42px);
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-body {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.27;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-final-bridge {
  margin-top: 7px;
  padding: 7px 9px;
  font-size: 11px;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-final-bridge::before {
  width: 22px;
  height: 22px;
}

html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .controls,
html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] #next-button,
html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] #back-button {
  min-height: 46px;
}

@media (max-width: 840px) {
  html[data-theme="theme2"] body[data-screen="insight"] .quiz-shell {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
    gap: 8px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .quiz-header {
    min-height: 38px;
    gap: 12px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .logo {
    font-size: 23px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .progress-track {
    height: 7px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #quiz-screen {
    gap: 8px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding: clamp(13px, 3.5vw, 18px);
    border-radius: 23px;
    box-shadow: 4px 4px 0 var(--theme2-ink);
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-card::before {
    inset: 6px;
    border-radius: 17px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-progress-label {
    top: 12px;
    right: 13px;
    padding: 5px 7px;
    font-size: 9px;
    box-shadow: 2px 2px 0 var(--theme2-ink);
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-visual {
    min-height: 0;
    height: clamp(126px, 22dvh, 210px);
    overflow: hidden;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-path-scene {
    width: 300px;
    height: 220px;
    transform: scale(0.82);
    transform-origin: center;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-copy {
    min-height: 0;
    max-width: none;
    padding: 0;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-stage-kicker {
    margin-bottom: 6px;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-stage-kicker::before {
    width: 23px;
    height: 7px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-context-line {
    margin-bottom: 8px;
    font-size: 12.5px;
    line-height: 1.3;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-headline {
    max-width: 100%;
    font-size: clamp(27px, 7.5vw, 38px);
    line-height: 0.99;
    letter-spacing: -0.045em;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-body {
    max-width: none;
    margin-top: 9px;
    font-size: clamp(14px, 3.7vw, 16px);
    line-height: 1.34;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-final-bridge {
    margin-top: 9px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 11.5px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-final-bridge::before {
    width: 23px;
    height: 23px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .controls {
    min-height: 52px;
    grid-template-columns: auto minmax(80px, 0.72fr) minmax(138px, 1.28fr);
    align-items: center;
    gap: 8px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #back-button {
    grid-column: 1;
    min-width: 48px;
    min-height: 52px;
    padding: 9px 7px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-continuation {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-next-label {
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-countdown-track {
    height: 7px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] #next-button {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 15px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .controls:has(.theme2-insight-continuation[hidden]) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html[data-theme="theme2"] body[data-screen="insight"] .controls:has(.theme2-insight-continuation[hidden]) #next-button {
    grid-column: 2;
  }

  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-visual {
    height: clamp(108px, 18dvh, 160px);
  }

  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.7);
  }

  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-visual {
    height: clamp(88px, 15dvh, 126px);
  }

  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.58);
  }

  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-visual {
    height: 68px;
  }

  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.43);
  }
}

@media (max-width: 520px) {
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-path-scene {
    width: 270px;
    height: 210px;
    transform: scale(0.72);
  }

  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.62);
  }

  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.52);
  }

  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-path-scene {
    transform: scale(0.39);
  }
}

/* Only genuinely extreme heights may scroll. Keep actions reachable and visible. */
html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] .quiz-shell {
  height: auto;
  min-height: 100dvh;
  max-height: none;
}

html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] #quiz-screen,
html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] #answers {
  height: auto;
  overflow: visible;
}

html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] .theme2-insight-card {
  min-height: 0;
  height: auto;
  max-height: none;
}

html[data-theme="theme2"] body.insight-overflow[data-screen="insight"] .controls {
  position: sticky;
  z-index: 8;
  bottom: max(6px, env(safe-area-inset-bottom));
  padding: 7px;
  background: rgba(247, 242, 232, 0.94);
  border: 2px solid var(--theme2-ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--theme2-ink);
  backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   Mobile insight artwork layout fix
   Give every insight illustration enough real vertical space. Do not shrink
   the artwork through compact/tight/ultra fit classes; move the copy lower.
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-card {
    grid-template-rows: 285px minmax(0, 1fr);
    overflow: hidden;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-visual {
    min-height: 285px;
    height: 285px;
    overflow: visible;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-path-scene {
    width: min(320px, 88vw);
    height: 270px;
    transform: none;
    transform-origin: center center;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-copy {
    align-self: start;
    padding-top: 6px;
  }
}

@media (max-width: 520px) {
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-card {
    grid-template-rows: 290px minmax(0, 1fr);
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-insight-visual,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-insight-visual {
    min-height: 290px;
    height: 290px;
  }

  html[data-theme="theme2"] body[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-compact[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-tight[data-screen="insight"] .theme2-path-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-signal-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-layers-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-memory-scene,
  html[data-theme="theme2"] body.insight-ultra[data-screen="insight"] .theme2-path-scene {
    width: min(310px, 90vw);
    height: 275px;
    transform: none;
  }
}

/* Mobile processing soft wall: keep the full email form in the first viewport. */
@media (max-width: 520px) {
  .theme2-processing-card,
  .theme2-processing-visual,
  .theme2-progress-orbit,
  .theme2-assembled-mark,
  .theme2-processing-eyebrow,
  .theme2-processing-title,
  .theme2-processing-phrase-wrap,
  .theme2-processing-phrase,
  .theme2-processing-meter,
  .theme2-processing-meter-meta,
  .theme2-processing-meter-track {
    transition:
      width 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      height 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      min-height 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      margin 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      font-size 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      gap 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .processing-email-capture:not([hidden]) {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    border-top-color: transparent;
    transition:
      max-height 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
      margin 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 360ms ease,
      transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
      border-color 360ms ease;
  }

  .processing-email-capture.is-visible {
    max-height: 390px;
    margin-top: 8px;
    padding-top: 10px;
    opacity: 1;
    transform: none;
    border-top-color: rgba(255, 253, 248, 0.18);
  }

  .theme2-processing-card.email-capture-visible {
    align-content: start;
    gap: 2px;
    padding: 12px 14px 10px;
  }

  .theme2-processing-card.email-capture-visible .theme2-progress-orbit {
    width: 169px;
  }

  .theme2-processing-card.email-capture-visible .theme2-assembled-mark {
    transform: scale(0.59);
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-title {
    font-size: clamp(27px, 8vw, 37px);
    line-height: 0.94;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-phrase-wrap {
    min-height: 46px;
    margin-top: 10px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-phrase {
    font-size: 14px;
    line-height: 1.3;
  }

  .theme2-processing-card.email-capture-visible .processing-email-capture h2 {
    margin-bottom: 5px;
    font-size: 25px;
    line-height: 1.04;
  }

  .theme2-processing-card.email-capture-visible .processing-email-capture > p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.3;
  }

  .theme2-processing-card.email-capture-visible .result-email-form {
    gap: 7px;
  }

  .theme2-processing-card.email-capture-visible .result-email-form input {
    min-height: 46px;
    padding: 10px 13px;
  }

  .theme2-processing-card.email-capture-visible .processing-email-actions {
    gap: 4px;
  }

  .theme2-processing-card.email-capture-visible .processing-email-actions .primary-button {
    min-height: 46px;
    padding-block: 11px;
  }

  .theme2-processing-card.email-capture-visible .processing-email-actions .text-button {
    min-height: 34px;
    margin-top: 0;
    padding-block: 6px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-meter {
    margin-top: 8px;
    transform: scale(0.75);
    transform-origin: top center;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-meter-meta {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-percent {
    font-size: 14px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-meter-track {
    height: 11px;
  }
}

@media (max-width: 520px) and (max-height: 760px) {
  .theme2-processing-card.email-capture-visible .theme2-progress-orbit {
    width: 150px;
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-title {
    font-size: clamp(25px, 7.4vw, 33px);
  }

  .theme2-processing-card.email-capture-visible .theme2-processing-phrase-wrap {
    min-height: 40px;
    margin-top: 7px;
  }

  .theme2-processing-card.email-capture-visible .processing-email-capture h2 {
    font-size: 23px;
  }
}
