[data-quiz-theme="memory"]{
  --memory-ink: var(--quiz-text);
  --memory-paper: var(--quiz-surface);
  --memory-paper-light: var(--quiz-surface-raised);
  --memory-red: var(--quiz-header-border);
  --memory-green: var(--quiz-correct);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 28, 23, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 28, 23, .055) 1px, transparent 1px),
    radial-gradient(circle at 84% 5%, rgba(168, 44, 50, .13), transparent 26%),
    linear-gradient(145deg, #ddd5c4, var(--quiz-page-alt));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

/* Progress-only rewarded checkpoints: one concise state replaces the old
   score reveal and separate next-round result screen. */
[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career{
  padding-block: clamp(24px, 4vw, 34px);
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career .quiz-engine__checkpoint-icon{
  width: 58px;
  height: 58px;
  margin: 9px auto;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career h2{
  margin: 7px auto;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career > p{
  max-width: 560px;
  margin: 0 auto 4px;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-journey-progress{
  width: 100%;
  margin: 15px 0 11px;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-next--career{
  width: 100%;
  margin: 10px auto 4px;
  padding: 12px 14px;
  border-color: rgba(25, 23, 19, .1);
  background: rgba(255, 250, 240, .58);
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-next--career small{
  display: block;
  color: #625b50;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

@media (max-width: 700px) {
  [data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career{
    padding-block: 21px 24px;
  }

  [data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career .quiz-engine__checkpoint-icon{
    width: 52px;
    height: 52px;
    margin-block: 7px;
  }

  [data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career h2{
    font-size: clamp(28px, 8.5vw, 38px);
  }
}

/* Rewarded start confirmation presented as a focused Memory modal. */
[data-quiz-theme="memory"] .quiz-engine__reward-prompt{
  position: fixed !important;
  inset: 0 !important;
  z-index: 100 !important;
  width: auto !important;
  margin: 0 !important;
  background: rgba(25, 23, 19, .68);
  backdrop-filter: blur(8px) saturate(.75);
}

[data-quiz-theme="memory"] .quiz-engine__reward-prompt-card{
  position: relative;
  padding: clamp(34px, 7vw, 54px);
  border: 3px solid var(--memory-ink);
  border-radius: 4px;
  background: var(--memory-paper);
  box-shadow: 12px 12px 0 rgba(25, 23, 19, .18), 0 34px 80px rgba(0, 0, 0, .28);
}

[data-quiz-theme="memory"] .quiz-engine__reward-prompt-icon{
  width: 72px;
  height: 72px;
  margin: 9px auto 16px;
  background: color-mix(in srgb, var(--memory-green) 13%, var(--memory-paper-light));
  color: var(--memory-green);
  font-size: 35px;
}

[data-quiz-theme="memory"] .quiz-engine__reward-prompt-card h2{ margin-bottom: 12px; }

[data-quiz-theme="memory"] .quiz-engine__reward-prompt-card > .quiz-engine__primary:disabled{
  border-color: #77736c;
  background: #96918a;
  color: #f6f2ea;
  box-shadow: 0 4px 0 #67635d;
  opacity: 1}

[data-quiz-theme="memory"]::before{
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(108deg, rgba(255,255,255,.08) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

[data-quiz-theme="memory"] > *{ position: relative; z-index: 1; }

/* Every checkpoint has its own visual signal while preserving one Memory identity. */
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round="1"]{ --memory-stage-accent: var(--quiz-header-border)}
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round="2"]{ --memory-stage-accent: #26737a}
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round="3"]{ --memory-stage-accent: #aa6f12}
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round="4"]{ --memory-stage-accent: #765184}
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round="5"]{ --memory-stage-accent: var(--quiz-correct)}

/* Custom editorial landing page. */
[data-quiz-theme="memory"] .quiz-engine__landing{
  position: relative;
  grid-template-columns: 1fr;
  width: min(900px, 100%);
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(34px, 5vw, 62px);
  border: 3px solid var(--memory-ink);
  border-radius: 4px;
  background: var(--memory-paper);
  color: var(--memory-ink);
  box-shadow: 14px 14px 0 rgba(25,23,19,.16), 0 34px 80px rgba(55,43,32,.24);
}

[data-quiz-theme="memory"] .quiz-engine__landing::before{
  position: absolute;
  top: 20px;
  left: clamp(34px, 5vw, 62px);
  width: 72px;
  height: 7px;
  content: "";
  background: var(--memory-red);
  box-shadow: 82px 0 var(--memory-ink), 116px 0 var(--memory-ink);
}

[data-quiz-theme="memory"] .quiz-engine__landing-copy{ display: grid; justify-items: center; width: 100%; min-width: 0; max-width: 760px; margin: 0 auto; padding-top: 30px; text-align: center; }
[data-quiz-theme="memory"] .quiz-engine__eyebrow{ color: var(--memory-red); font-family: Arial, sans-serif; font-weight: 950; letter-spacing: .16em; }
[data-quiz-theme="memory"] .quiz-engine__landing .quiz-engine__eyebrow,
[data-quiz-theme="memory"] .quiz-engine__landing .quiz-engine__lede,
[data-quiz-theme="memory"] .quiz-engine__landing .quiz-engine__landing-meta{ display: none; }
[data-quiz-theme="memory"] .quiz-engine__landing h1{
  max-width: 760px;
  margin: 12px auto 18px;
  color: var(--memory-ink);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.055em;
}
[data-quiz-theme="memory"] .quiz-engine__lede{ max-width: 610px; color: #514c43; font-size: 17px; font-weight: 650; line-height: 1.5; }
[data-quiz-theme="memory"] .quiz-engine__landing-meta span{ border: 2px solid var(--memory-ink); border-radius: 2px; background: var(--memory-ink); color: var(--memory-paper-light); letter-spacing: .08em; text-transform: uppercase; }
[data-quiz-theme="memory"] .quiz-engine__quick-start{ max-width: 650px; margin: 8px auto 18px; padding: 0; border: 0; color: #302c26; font-size: 17px; line-height: 1.45; }
[data-quiz-theme="memory"] .quiz-engine__social{ border: 2px solid var(--memory-ink); background: var(--memory-paper-light); color: var(--memory-ink); font-size: 14px; line-height: 1.05; box-shadow: 4px 4px 0 rgba(25,23,19,.12); text-align: left}
[data-quiz-theme="memory"] .quiz-engine__social-text strong{ color: var(--memory-red); font-weight: 950; }
[data-quiz-theme="memory"] .quiz-engine__social-text span{ color: var(--memory-ink); font-weight: 750; }
[data-quiz-theme="memory"] .quiz-engine__avatars{ display: flex; flex: 0 0 auto; align-items: center; }
[data-quiz-theme="memory"] .quiz-engine__avatars span{ width: 30px; height: 30px; margin-left: -9px; border: 2px solid var(--memory-paper-light); border-radius: 50%; background-color: #d8d0bd; background-position: center; background-size: cover; box-shadow: 0 4px 9px rgba(25,23,19,.22); }
[data-quiz-theme="memory"] .quiz-engine__avatars span:first-child{ margin-left: 0; }
[data-quiz-theme="memory"] .quiz-engine__landing .quiz-engine__primary{ font-size: 19px; letter-spacing: .02em}
[data-quiz-theme="memory"] .quiz-engine__primary{ border: 2px solid #6f1a20; background: var(--memory-red); color: #fff8e8; box-shadow: 0 6px 0 #681b20, 0 15px 26px rgba(84,24,28,.2)}
[data-quiz-theme="memory"] .quiz-engine__primary-icon{ display: inline; }
[data-quiz-theme="memory"] .quiz-engine__landing .quiz-engine__primary-icon{ display: none; }
[data-quiz-theme="memory"] .quiz-engine__ad-note{ justify-content: center; color: #5e574d; }
[data-quiz-theme="memory"] .quiz-engine__ad-note span{ border-color: var(--memory-green); color: var(--memory-green); }
[data-quiz-theme="memory"] .quiz-engine__landing-art{ border: 3px solid var(--memory-ink); border-radius: 2px; background: #d9d0bd; box-shadow: 10px 10px 0 rgba(25,23,19,.15); transform: rotate(1.2deg); }
[data-quiz-theme="memory"] .quiz-engine__landing-art img{ min-height: 430px; object-fit: cover; }
[data-quiz-theme="memory"] .quiz-engine__progress-head{ color: var(--memory-ink); font-family: Arial, sans-serif; font-weight: 900; letter-spacing: .04em; text-transform: uppercase}
[data-quiz-theme="memory"] .quiz-engine__progress-head > span{ padding: 5px 8px; background: var(--memory-ink); color: var(--memory-paper-light); }
[data-quiz-theme="memory"] .quiz-engine__progress-head strong{ color: var(--memory-red); }
[data-quiz-theme="memory"] .quiz-engine__progress-head > em{ display: none; }
[data-quiz-theme="memory"] .quiz-engine__progress{ border: 2px solid var(--memory-ink); background: rgba(255,250,240,.52); box-shadow: 5px 5px 0 rgba(25,23,19,.12)}
[data-quiz-theme="memory"] .quiz-engine__progress i{ border-radius: 0; background: repeating-linear-gradient(135deg, var(--memory-red) 0 9px, #c04b50 9px 18px); }
[data-quiz-theme="memory"] .quiz-engine__question{
  width: 100%;
  border: 3px solid var(--memory-ink);
  border-radius: 4px;
  background:
    linear-gradient(rgba(25,23,19,.045) 1px, transparent 1px),
    var(--memory-paper);
  background-size: 100% 30px;
  color: var(--memory-ink);
  box-shadow: 12px 12px 0 rgba(25,23,19,.14), 0 28px 68px rgba(55,43,32,.2);
}
[data-quiz-theme="memory"] .quiz-engine__question h1{ margin-bottom: 30px; padding-bottom: 22px; border-bottom: 3px double var(--memory-ink); color: var(--memory-ink); font-size: clamp(30px, 5vw, 48px); }
[data-quiz-theme="memory"] .quiz-engine__answer{ border: 2px solid var(--memory-ink); border-radius: 3px; background: rgba(255,250,240,.92); color: var(--memory-ink); box-shadow: 4px 4px 0 rgba(25,23,19,.12); }
[data-quiz-theme="memory"] .quiz-engine__answer > span{ border: 1px solid var(--memory-ink); border-radius: 2px; background: var(--memory-ink); color: var(--memory-paper-light); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  [data-quiz-theme="memory"] .quiz-engine__answer:hover:not(:disabled){ border-color: var(--memory-red); transform: translate(-1px, -2px); }
}
[data-quiz-theme="memory"] .quiz-engine__answer[data-selected]{ border-color: var(--memory-red); background: #f1d9d5; box-shadow: 5px 5px 0 rgba(168,44,50,.22); }
[data-quiz-theme="memory"] .quiz-engine__answers--icons .quiz-engine__answer-icon{ border: 0; background: transparent; color: inherit; font-size: 44px; }

/* Study cues read like clipped revision cards. */
[data-quiz-theme="memory"] .quiz-engine__study > p{ color: #5a544a; }
[data-quiz-theme="memory"] .quiz-engine__study-items strong,
[data-quiz-theme="memory"] .quiz-engine__memory-items strong{
  position: relative;
  min-height: 92px;
  border: 2px solid var(--memory-ink);
  border-radius: 2px;
  background: var(--memory-paper-light);
  color: var(--memory-ink);
  box-shadow: 5px 5px 0 rgba(25,23,19,.14);
  font-family: "Courier New", monospace;
  font-weight: 900;
}
[data-quiz-theme="memory"] .quiz-engine__study-items strong:nth-child(even){ transform: rotate(.5deg); }
[data-quiz-theme="memory"] .quiz-engine__study-items strong:nth-child(odd){ transform: rotate(-.5deg); }
[data-quiz-theme="memory"] .quiz-engine__study-timer{ color: var(--memory-red); }

/* Ordered icon cues stay as genuinely separate items in one linear row. */
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r2q1"] .quiz-engine__study-items,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r5q3"] .quiz-engine__study-items{
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q2"] .quiz-engine__study-items{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r2q1"] .quiz-engine__study-items strong,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q2"] .quiz-engine__study-items strong,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r5q3"] .quiz-engine__study-items strong{
  min-height: 72px;
  padding: 5px;
  font-family: inherit;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0;
}
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q1"] .quiz-engine__study-items{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q1"] .quiz-engine__study-items strong{
  min-height: 68px;
  padding-inline: 7px;
  font-size: clamp(14px, 2.1vw, 18px);
  letter-spacing: .02em;
}

[data-quiz-theme="memory"] .quiz-engine__about{
  border: 3px solid var(--memory-ink);
  border-radius: 4px;
  background:
    linear-gradient(rgba(25,23,19,.04) 1px, transparent 1px),
    var(--memory-paper);
  background-size: 100% 30px;
  color: var(--memory-ink);
  box-shadow: 12px 12px 0 rgba(25,23,19,.14), 0 28px 68px rgba(55,43,32,.2);
}

/* Checkpoints and score keep the same newspaper/test-sheet hierarchy. */
[data-quiz-theme="memory"] .quiz-engine__checkpoint,
[data-quiz-theme="memory"] .quiz-engine__results{
  border: 3px solid var(--memory-ink);
  background:
    linear-gradient(rgba(25,23,19,.04) 1px, transparent 1px),
    var(--memory-paper);
  background-size: 100% 30px;
  color: var(--memory-ink);
  box-shadow: 12px 12px 0 rgba(25,23,19,.14), 0 28px 68px rgba(55,43,32,.2)}
[data-quiz-theme="memory"] .quiz-engine__checkpoint-icon,
[data-quiz-theme="memory"] .quiz-engine__result-icon{ border: 3px solid var(--memory-ink); border-radius: 50%; background: var(--memory-red); color: #fff8e8; box-shadow: 5px 5px 0 rgba(25,23,19,.18); }
[data-quiz-theme="memory"] .quiz-engine__checkpoint[data-round] .quiz-engine__checkpoint-icon{
  border-color: var(--memory-stage-accent, var(--memory-red));
  background: color-mix(in srgb, var(--memory-stage-accent, var(--memory-red)) 13%, var(--memory-paper-light));
  color: var(--memory-stage-accent, var(--memory-red));
}
[data-quiz-theme="memory"] .quiz-engine__checkpoint h2,
[data-quiz-theme="memory"] .quiz-engine__results h2{ color: var(--memory-ink); font-weight: 900; letter-spacing: -.04em; }
[data-quiz-theme="memory"] .quiz-engine__checkpoint > p,
[data-quiz-theme="memory"] .quiz-engine__result-copy,
[data-quiz-theme="memory"] .quiz-engine__about p{ color: #5d574d; }
[data-quiz-theme="memory"] .quiz-engine__ai-panel{ border: 2px solid var(--memory-ink); border-radius: 3px; background: var(--memory-paper-light); box-shadow: 5px 5px 0 rgba(25,23,19,.12); }
[data-quiz-theme="memory"] .quiz-engine__ai-top > span{ border-radius: 50%; background: var(--memory-green); }
[data-quiz-theme="memory"] .quiz-engine__ai-panel > p{ color: #514b42; }
[data-quiz-theme="memory"] .quiz-engine__checkpoint-next,
[data-quiz-theme="memory"] .quiz-engine__checklist li,
[data-quiz-theme="memory"] .quiz-engine__result-signals div,
[data-quiz-theme="memory"] .quiz-engine__result-summary div{ border: 1px solid rgba(25,23,19,.32); border-radius: 2px; background: rgba(255,250,240,.78); }
[data-quiz-theme="memory"] .quiz-engine__checklist{ color: var(--memory-ink); }
[data-quiz-theme="memory"] .quiz-engine__checklist span{ color: var(--memory-green); }
[data-quiz-theme="memory"] .quiz-engine__result-percentage strong{ color: var(--memory-red); text-shadow: 5px 5px 0 rgba(25,23,19,.12); }
[data-quiz-theme="memory"] .quiz-engine__result-profile{ display: inline-block; padding: 7px 12px; background: var(--memory-ink); color: var(--memory-paper-light); font-family: Arial, sans-serif; font-size: clamp(18px, 3vw, 24px); letter-spacing: .04em; text-transform: uppercase; }
[data-quiz-theme="memory"] .quiz-engine__result-signals{ border: 2px solid var(--memory-ink); border-radius: 2px; background: var(--memory-ink); }
[data-quiz-theme="memory"] .quiz-engine__result-signals dt{ color: #686055; }
[data-quiz-theme="memory"] .quiz-engine__result-signals dd{ color: var(--memory-ink); }
[data-quiz-theme="memory"] .quiz-engine__dimensions i{ height: 9px; border: 1px solid var(--memory-ink); border-radius: 0; background: rgba(25,23,19,.09); }
[data-quiz-theme="memory"] .quiz-engine__dimension b{ border-radius: 0; background: var(--memory-red); }
[data-quiz-theme="memory"] .quiz-engine__disclaimer{ border: 2px solid var(--memory-red); border-radius: 2px; background: rgba(168,44,50,.08); color: #4d463d; }
[data-quiz-theme="memory"] .quiz-engine__secondary{ border: 2px solid var(--memory-ink); border-radius: 2px; color: var(--memory-ink); }

@media (max-width: 900px) {
  [data-quiz-theme="memory"] .quiz-engine__landing{ grid-template-columns: 1fr; background: var(--memory-paper); }
  [data-quiz-theme="memory"] .quiz-engine__landing-art{ order: initial; width: min(100%, 500px); margin: 0 auto; }
  [data-quiz-theme="memory"] .quiz-engine__landing-art img{ min-height: 300px; max-height: 410px; }
}

@media (max-width: 700px) {
  [data-quiz-theme="memory"]{ padding: 10px 8px 30px; }
  [data-quiz-theme="memory"] .quiz-engine__landing{ gap: 24px; padding: 20px 17px 28px; box-shadow: 6px 6px 0 rgba(25,23,19,.15); }
  [data-quiz-theme="memory"] .quiz-engine__landing::before{ top: 14px; left: 17px; }
  [data-quiz-theme="memory"] .quiz-engine__landing-copy{ padding-top: 22px; text-align: center; }
  [data-quiz-theme="memory"] .quiz-engine__landing h1{ margin-inline: auto; font-size: clamp(38px, 12vw, 53px); }
  [data-quiz-theme="memory"] .quiz-engine__lede,
[data-quiz-theme="memory"] .quiz-engine__quick-start{ margin-inline: auto; }
  [data-quiz-theme="memory"] .quiz-engine__quick-start{ padding: 0; border: 0; }
  [data-quiz-theme="memory"] .quiz-engine__landing-meta,
[data-quiz-theme="memory"] .quiz-engine__ad-note{ justify-content: center; }
  [data-quiz-theme="memory"] .quiz-engine__landing-art{ max-height: 250px; box-shadow: 5px 5px 0 rgba(25,23,19,.15); }
  [data-quiz-theme="memory"] .quiz-engine__landing-art img{ min-height: 250px; max-height: 250px; }
  [data-quiz-theme="memory"] .quiz-engine__question{ box-shadow: 6px 6px 0 rgba(25,23,19,.14); }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint,
[data-quiz-theme="memory"] .quiz-engine__results{ box-shadow: 6px 6px 0 rgba(25,23,19,.14)}
  [data-quiz-theme="memory"] .quiz-engine__study-items strong{ min-height: 76px; font-size: 16px; }
  [data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r2q1"] .quiz-engine__study-items,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r5q3"] .quiz-engine__study-items{ gap: 5px; }
  [data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q2"] .quiz-engine__study-items{ gap: 6px; }
  [data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r2q1"] .quiz-engine__study-items strong,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q2"] .quiz-engine__study-items strong,
[data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r5q3"] .quiz-engine__study-items strong{
    min-height: 58px;
    padding: 2px;
    font-size: clamp(25px, 8vw, 32px);
  }
  [data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q1"] .quiz-engine__study-items{
    grid-template-columns: 1fr;
    gap: 7px;
  }
  [data-quiz-theme="memory"] .quiz-engine__question[data-question-id="memory-r4q1"] .quiz-engine__study-items strong{
    min-height: 47px;
    padding: 7px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-quiz-theme="memory"] .quiz-engine__landing-art,
[data-quiz-theme="memory"] .quiz-engine__study-items strong{ transform: none; }
}

[data-quiz-theme="memory"] .quiz-engine__landing-art,
[data-quiz-theme="memory"] .quiz-engine__landing-symbol{ display: none !important; }

/* Final editorial refinement: one consistent test-sheet system end to end. */
[data-quiz-theme="memory"] .quiz-engine__landing,
[data-quiz-theme="memory"] .quiz-engine__question,
[data-quiz-theme="memory"] .quiz-engine__about{
  isolation: isolate;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint,
[data-quiz-theme="memory"] .quiz-engine__results{
  isolation: isolate}

[data-quiz-theme="memory"] .quiz-engine__question,
[data-quiz-theme="memory"] .quiz-engine__about{
  position: relative;
  overflow: hidden;
}

[data-quiz-theme="memory"] .quiz-engine__question::before,
[data-quiz-theme="memory"] .quiz-engine__checkpoint::before,
[data-quiz-theme="memory"] .quiz-engine__results::before,
[data-quiz-theme="memory"] .quiz-engine__about::before{
  position: absolute;
  top: 17px;
  left: 18px;
  width: 52px;
  height: 5px;
  content: "";
  background: var(--memory-red);
  box-shadow: 60px 0 var(--memory-ink), 89px 0 var(--memory-ink);
  pointer-events: none;
}

[data-quiz-theme="memory"] .quiz-engine__question > *,
[data-quiz-theme="memory"] .quiz-engine__checkpoint > *,
[data-quiz-theme="memory"] .quiz-engine__results > *,
[data-quiz-theme="memory"] .quiz-engine__about > *{
  position: relative;
  z-index: 1;
}

[data-quiz-theme="memory"] .quiz-engine__question{
  padding-top: clamp(46px, 7vw, 62px);
}

[data-quiz-theme="memory"] .quiz-engine__results--detailed{
  padding-top: 0;
}

[data-quiz-theme="memory"] .quiz-engine__results--detailed::before{
  display: none;
}

[data-quiz-theme="memory"] .quiz-engine__results--detailed > .quiz-engine__result-icon{
  margin-top: clamp(30px, 5vw, 52px);
}

[data-quiz-theme="memory"] .quiz-engine__question-context{
  margin-bottom: 15px;
  padding: 6px 10px;
  border: 2px solid var(--memory-red);
  border-radius: 1px;
  background: var(--memory-paper-light);
  color: var(--memory-red);
  font-family: Arial, sans-serif;
  letter-spacing: .12em;
  box-shadow: 3px 3px 0 rgba(25,23,19,.11);
}

[data-quiz-theme="memory"] .quiz-engine__question h1{
  line-height: 1.01;
  letter-spacing: -.035em;
  text-wrap: balance;
}

[data-quiz-theme="memory"] .quiz-engine__answer{
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease, opacity .16s ease;
}

@media (hover: hover) and (pointer: fine) {
  [data-quiz-theme="memory"] .quiz-engine__answer:hover:not(:disabled){
    box-shadow: 6px 6px 0 rgba(168,44,50,.18);
  }
}

[data-quiz-theme="memory"] .quiz-engine__answer[data-selected] > span{
  border-color: var(--memory-red);
  background: var(--memory-red);
}

[data-quiz-theme="memory"] .quiz-engine__study{
  padding-bottom: 4px;
}

[data-quiz-theme="memory"] .quiz-engine__study > p{
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
}

[data-quiz-theme="memory"] .quiz-engine__study-timer{
  min-width: 112px;
  padding: 6px 10px;
  border-top: 2px solid var(--memory-ink);
  border-bottom: 2px solid var(--memory-ink);
  font-family: "Courier New", monospace;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint .quiz-engine__eyebrow,
[data-quiz-theme="memory"] .quiz-engine__results .quiz-engine__eyebrow{
  color: var(--memory-red);
  font-family: Arial, sans-serif;
  letter-spacing: .17em;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint h2,
[data-quiz-theme="memory"] .quiz-engine__results h2,
[data-quiz-theme="memory"] .quiz-engine__about h2{
  font-family: Georgia, "Times New Roman", serif;
  line-height: .98;
  text-wrap: balance;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint > p,
[data-quiz-theme="memory"] .quiz-engine__result-copy{
  max-width: 560px;
  margin-inline: auto;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-icon,
[data-quiz-theme="memory"] .quiz-engine__result-icon{
  width: 78px;
  height: 78px;
  border-radius: 3px;
  transform: rotate(-2deg);
}

[data-quiz-theme="memory"] .quiz-engine__ai-panel{
  width: min(100%, 590px);
  margin-top: 24px;
  padding: 17px 18px;
  border-left: 7px solid var(--memory-stage-accent, var(--memory-green));
  overflow: hidden;
}

[data-quiz-theme="memory"] .quiz-engine__ai-panel::after{
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 24%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(63, 118, 81, .11), transparent);
  pointer-events: none;
  animation: memory-checkpoint-scan 2.8s ease-in-out infinite;
}

[data-quiz-theme="memory"] .quiz-engine__ai-panel > *,
[data-quiz-theme="memory"] .quiz-engine__ai-top{ position: relative; z-index: 1; }

[data-quiz-theme="memory"] .quiz-engine__ai-top > span{
  animation: memory-checkpoint-pulse 1.35s ease-in-out infinite;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-next{
  width: min(100%, 590px);
  margin: 18px auto 24px;
  padding: 17px;
  border-width: 2px;
  border-color: var(--memory-ink);
  box-shadow: 4px 4px 0 rgba(25,23,19,.11);
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-next span{
  color: #6c6459;
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .14em;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-next strong{
  color: var(--memory-stage-accent, var(--memory-red));
  font-size: 18px;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-progress{
  width: min(100%, 590px);
  margin: 18px auto 20px;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-progress-copy{
  color: #6c6459;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-progress-copy strong{ color: var(--memory-ink); }

[data-quiz-theme="memory"] .quiz-engine__checkpoint-progress-track i{
  height: 9px;
  border: 1px solid rgba(25, 23, 19, .2);
  border-radius: 1px;
  background: rgba(25, 23, 19, .1);
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-progress-track i[data-complete]{
  border-color: var(--memory-stage-accent, var(--memory-red));
  background: var(--memory-stage-accent, var(--memory-red));
}

[data-quiz-theme="memory"] .quiz-engine__checkpoint-icon{
  animation: memory-checkpoint-stamp .48s cubic-bezier(.2, .85, .3, 1.2) both;
}

[data-quiz-theme="memory"] .quiz-engine__result-percentage{
  width: fit-content;
  margin: 28px auto 20px;
  padding: 0 18px 16px;
  border-bottom: 7px solid var(--memory-red);
}

[data-quiz-theme="memory"] .quiz-engine__result-fraction{
  width: fit-content;
  margin-inline: auto;
  padding: 7px 12px;
  border: 2px solid var(--memory-ink);
  background: var(--memory-paper-light);
  box-shadow: 4px 4px 0 rgba(25,23,19,.11);
}

[data-quiz-theme="memory"] .quiz-engine__result-profile{
  box-shadow: 5px 5px 0 rgba(168,44,50,.2);
}

[data-quiz-theme="memory"] .quiz-engine__result-signals div{
  min-height: 60px;
  align-items: center;
}

[data-quiz-theme="memory"] .quiz-engine__answer-review-unlock{
  border: 3px solid var(--memory-ink);
  border-radius: 3px;
  background: var(--memory-paper-light);
  box-shadow: 7px 7px 0 rgba(25,23,19,.13);
}

[data-quiz-theme="memory"] .quiz-engine__answer-review-lock{
  border: 2px solid var(--memory-ink);
  border-radius: 3px;
  background: rgba(168,44,50,.1);
  box-shadow: 4px 4px 0 rgba(25,23,19,.12);
}

[data-quiz-theme="memory"] .quiz-engine__answer-review-unlock > span{ color: var(--memory-red); }

[data-quiz-theme="memory"] .quiz-engine__disclaimer{
  position: relative;
  padding-left: 48px;
  text-align: left;
}

[data-quiz-theme="memory"] .quiz-engine__disclaimer::before{
  position: absolute;
  top: 50%;
  left: 16px;
  content: "!";
  color: var(--memory-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
  transform: translateY(-50%);
}

[data-quiz-theme="memory"] .quiz-engine__secondary{
  min-height: 54px;
  background: rgba(255,250,240,.66);
  box-shadow: 4px 4px 0 rgba(25,23,19,.11);
}

[data-quiz-theme="memory"] .quiz-engine__secondary:focus-visible,
[data-quiz-theme="memory"] .quiz-engine__answer:focus-visible{
  outline: 4px solid var(--memory-paper-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--memory-red);
}

[data-quiz-theme="memory"] .quiz-engine__primary:focus-visible{
  outline: 4px solid var(--memory-paper-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--memory-red)}

@media (max-width: 700px) {
  [data-quiz-theme="memory"] .quiz-engine__avatars span{ width: 27px; height: 27px; margin-left: -8px; }
  [data-quiz-theme="memory"] .quiz-engine__social-text{ min-width: 0; overflow-wrap: anywhere; }
  [data-quiz-theme="memory"] .quiz-engine__question{ padding-top: 46px; }
  [data-quiz-theme="memory"] .quiz-engine__question::before,
[data-quiz-theme="memory"] .quiz-engine__checkpoint::before,
[data-quiz-theme="memory"] .quiz-engine__results::before{ top: 14px; left: 15px; }
  [data-quiz-theme="memory"] .quiz-engine__question h1{ margin-bottom: 23px; padding-bottom: 18px; font-size: clamp(29px, 9vw, 39px); }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint h2,
[data-quiz-theme="memory"] .quiz-engine__results h2{ font-size: clamp(31px, 9.5vw, 43px); }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-icon,
[data-quiz-theme="memory"] .quiz-engine__result-icon{ width: 68px; height: 68px; font-size: 30px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-icon{ width: 56px; height: 56px; margin: 9px auto 7px; font-size: 26px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint h2{ margin: 6px 0; font-size: clamp(29px, 8.7vw, 39px); }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint .quiz-engine__eyebrow{ display: none; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint .quiz-engine__ai-panel{ margin: 13px auto 0; padding: 15px 14px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint .quiz-engine__ai-panel > p{ margin-top: 6px; line-height: 1.38; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-progress{ gap: 8px; margin: 17px auto; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-progress-track i{ height: 7px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-next{ gap: 3px; margin: 14px auto 17px; padding: 14px 13px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-next strong{ font-size: 17px; }
  [data-quiz-theme="memory"] .quiz-engine__checkpoint > .quiz-engine__checkpoint-ad-note{ margin-top: 10px; }
  [data-quiz-theme="memory"] .quiz-engine__result-percentage strong{ font-size: clamp(76px, 25vw, 112px); }
  [data-quiz-theme="memory"] .quiz-engine__disclaimer{ padding-left: 43px; }
  [data-quiz-theme="memory"] .quiz-engine__result-signals div{ min-height: 0; }
}

@keyframes memory-checkpoint-stamp {
  from{ opacity: 0; transform: translateY(-8px) rotate(-8deg) scale(.78); }
  to{ opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

@keyframes memory-checkpoint-scan {
  0%,
18%{ transform: translateX(0); opacity: 0; }
  35%{ opacity: 1; }
  78%,
100%{ transform: translateX(560%); opacity: 0; }
}

@keyframes memory-checkpoint-pulse {
  0%,
100%{ box-shadow: 0 0 0 0 rgba(63, 118, 81, .28); }
  50%{ box-shadow: 0 0 0 6px rgba(63, 118, 81, 0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-quiz-theme="memory"] .quiz-engine__checkpoint-icon,
[data-quiz-theme="memory"] .quiz-engine__ai-panel::after,
[data-quiz-theme="memory"] .quiz-engine__ai-top > span{ animation: none; }
}

/* Five-round journey: retain the existing Memory design inside one persistent frame. */
[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell,
[data-quiz-theme="memory"] .quiz-engine__checkpoint.quiz-engine__continuous-shell,
[data-quiz-theme="memory"] .quiz-engine__results.quiz-engine__continuous-shell{
  --memory-flow-min-height: clamp(590px, 82svh, 860px)}
[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell > .quiz-engine__question{
  flex: 1 0 auto;
}

[data-quiz-theme="memory"] .quiz-engine__career-result-progress{
  margin: 14px 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  text-align: left;
}
[data-quiz-theme="memory"] .quiz-engine__career-result-progress > div{ color: #625b50; }
[data-quiz-theme="memory"] .quiz-engine__career-result-progress span,
[data-quiz-theme="memory"] .quiz-engine__career-result-progress strong{
  color: #625b50;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
[data-quiz-theme="memory"] .quiz-engine__career-result-progress > div strong{ color: var(--memory-red); }
[data-quiz-theme="memory"] .quiz-engine__career-result-progress > i{
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(25,23,19,.12);
}
[data-quiz-theme="memory"] .quiz-engine__career-result-progress > i > b{
  border-radius: inherit;
  background: var(--memory-red);
}

[data-quiz-theme="memory"] .quiz-engine__career-next{
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(25,23,19,.11);
  border-radius: 2px;
  background: rgba(255,250,240,.78);
  box-shadow: none;
}
[data-quiz-theme="memory"] .quiz-engine__career-next > span,
[data-quiz-theme="memory"] .quiz-engine__career-next > b{ color: var(--memory-red); }
[data-quiz-theme="memory"] .quiz-engine__career-next > b{ display: none; }

[data-quiz-theme="memory"] .quiz-engine__checkpoint--compact-career{
  padding-block: clamp(24px, 5vw, 36px);
}
[data-quiz-theme="memory"] .quiz-engine__checkpoint--compact-career .quiz-engine__checkpoint-icon{
  width: 58px;
  height: 58px;
  margin: 10px auto;
}
[data-quiz-theme="memory"] .quiz-engine__checkpoint--compact-career h2{ margin: 8px 0; }
[data-quiz-theme="memory"] .quiz-engine__checkpoint--compact-career > p{ margin-bottom: 8px; }

@media (max-width: 700px) {
  [data-quiz-theme="memory"] .quiz-engine__career-result-progress{ margin-block: 12px; padding-inline: 2px; }
  [data-quiz-theme="memory"] .quiz-engine__career-next{ margin-top: 10px; padding: 12px 13px; }
  [data-quiz-theme="memory"] .quiz-engine__career-next h3{ margin-block: 4px; }
  [data-quiz-theme="memory"] .quiz-engine__career-next p{ line-height: 1.35; }
}

/* Production flow: every active state lives in one stable Memory test sheet.
   The progress header is part of the same frame as the cue/question, while
   gates, unlocked round results and the final result reuse its exact geometry. */
[data-quiz-theme="memory"] .quiz-engine__continuous-shell{
  --memory-flow-min-height: clamp(590px, 82svh, 860px);
  box-sizing: border-box;
  border: 3px solid var(--memory-ink) !important;
  background:
    linear-gradient(rgba(25,23,19,.045) 1px, transparent 1px),
    var(--memory-paper) !important;
  background-size: 100% 30px !important;
  color: var(--memory-ink);
  box-shadow: 12px 12px 0 rgba(25,23,19,.14), 0 28px 68px rgba(55,43,32,.2) !important}

/* The unified header/progress treatment replaces the old red-and-black paper
   ticks. Keeping both made every active screen look double-headed. */
[data-quiz-theme="memory"] .quiz-engine__continuous-shell::before,
[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell > .quiz-engine__question::before{
  display: none !important;
}

/* Memory uses the header for useful round progress: question position on the
   left, round name on the right, and the bar showing the same 1-of-8 journey. */
[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell .quiz-engine__progress-head > span{
  display: none;
}

[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell .quiz-engine__progress-head > em{
  display: block;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin: 0;
  padding: 5px 8px;
  background: var(--memory-ink);
  color: var(--memory-paper-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell .quiz-engine__progress-head > strong{
  grid-column: 2;
  grid-row: 1;
}

[data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell > .quiz-engine__question{
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: clamp(30px, 4vw, 40px);
  padding-inline: clamp(22px, 5vw, 46px);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* One CTA system across study cues, result-ready gates, round results and the
   final reveal. Only the wording changes; width, height and rhythm do not. */
[data-quiz-theme="memory"] .quiz-engine__continuous-shell .quiz-engine__primary{
  box-sizing: border-box;
  font-size: 17px;
  line-height: 1.15;
  text-align: center}

[data-quiz-theme="memory"] .quiz-engine__continuous-shell .quiz-engine__checkpoint-ad-note{
  width: 100%;
  margin: 13px 0 0;
  text-align: center;
}

@media (max-width: 700px) {
  [data-quiz-theme="memory"] .quiz-engine__continuous-shell{
    box-shadow: 6px 6px 0 rgba(25,23,19,.14) !important}

  [data-quiz-theme="memory"] .quiz-engine__question-shell.quiz-engine__continuous-shell > .quiz-engine__question{
    padding-top: 25px;
    padding-inline: 18px;
  }

  [data-quiz-theme="memory"] .quiz-engine__continuous-shell .quiz-engine__primary{
    font-size: 16px}
}

@media (min-width: 701px) {
  [data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career .quiz-engine__checkpoint-journey-progress,
[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career .quiz-engine__checkpoint-next--career,
[data-quiz-theme="memory"] .quiz-engine__checkpoint--progress-career > .quiz-engine__checkpoint-ad-note{
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    align-self: center;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}
