:root {
  /* The inside of the cave: deep teal stage, cards lit like objects on it.
     Layout: wheel or deck on top, the chosen card opens full width below. */
  --stage: #0F2A30;
  --stage-2: #15363D;
  --stage-3: #0C2328;
  --line: #2C4D54;
  --paper: #F3ECE2;
  --soft: #A9BEC1;
  --orange: #D07636;
  --mp: #F6F1E9;
  --mp-ink: #7A3E14;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Lato", "Segoe UI", system-ui, sans-serif;
  --oracle: "Lora", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--stage); color: var(--paper); font: 400 16px/1.6 var(--body); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; }
header.top { display: grid; gap: 8px; max-width: 70ch; margin-bottom: 20px; }
header.top h1 { font: 700 clamp(28px, 4.2vw, 42px)/1.1 var(--display); margin: 0; letter-spacing: -0.01em; }
header.top p { margin: 0; color: var(--soft); }
.lens { font-size: 14px; color: var(--soft); }
.lens b { font: 600 12px/1 var(--display); color: var(--stage); background: var(--orange); border-radius: 999px; padding: 4px 9px 3px; margin-right: 6px; white-space: nowrap; }

/* switches */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 6px 0 18px; }
.switch { display: inline-flex; background: var(--stage-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.switch button { background: none; border: 0; border-radius: 999px; padding: 7px 16px; font: 600 14px/1.1 var(--display); color: var(--soft); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--paper); color: var(--stage); }
.switch button:not([aria-pressed="true"]):hover { color: var(--paper); }

/* wheel view */
.wheel-box { width: min(100%, 880px); margin: 0 auto; }
#wheel { width: 100%; height: auto; display: block; }
#wheel .seg { cursor: pointer; transition: filter .15s; outline: none; }
#wheel .seg:hover { filter: brightness(1.12); }
#wheel .seg:focus-visible { filter: brightness(1.18); stroke: var(--orange); stroke-width: 3; }
#wheel .seg.is-active { filter: brightness(1.15); }
#wheel .hl { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linejoin: round; pointer-events: none; }
.legend { max-width: 62ch; margin: 12px auto 0; text-align: center; color: var(--soft); font-size: 15px; }

/* deck view */
.deck { display: grid; gap: 28px; }
.fam-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.fam-head button { background: none; border: 0; padding: 0; cursor: pointer; font: 600 19px/1.2 var(--display); color: var(--paper); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.fam-head button:hover { text-decoration-color: var(--orange); }
.fam-head span { color: var(--soft); font-size: 15px; }
.fam-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; align-self: center; }
.row { display: grid; grid-template-columns: repeat(4, minmax(0, 210px)); gap: 18px; }
@media (max-width: 960px) { .row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .mini span { font-size: 12.5px; } }
.mini { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: grid; gap: 7px; }
.mini img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .2s; outline: 2px solid transparent; outline-offset: 3px; }
.mini:hover img { transform: translateY(-3px); }
.mini[aria-current="true"] img { outline-color: var(--orange); }
.mini span { font: 600 14px/1.25 var(--display); color: var(--soft); }
.mini[aria-current="true"] span { color: var(--paper); }

/* detail */
#detail { margin-top: 34px; scroll-margin-top: 12px; background: var(--stage-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 28px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.back { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--soft); font: 600 14px/1.2 var(--display); }
.back:hover { color: var(--paper); }
.crumb { color: var(--soft); font-size: 14px; }
.card-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 820px) { .card-detail { grid-template-columns: 1fr; gap: 22px; } }
.visual { display: grid; gap: 14px; justify-items: center; position: sticky; top: 16px; }
@media (max-width: 820px) { .visual { position: static; } }
.stage { width: 280px; aspect-ratio: 2 / 3; position: relative; }
.flip { position: absolute; inset: 0; perspective: 1400px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.stage.is-s .flip-inner { transform: rotateY(180deg); }
.face { display: block; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.face img, .pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.back { transform: rotateY(180deg); }
.pair { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px; }
.pair span { display: block; width: calc(50% - 5px); aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.5); transition: transform .5s; }
.pair .pa { transform: rotate(-2.5deg); }
.pair .ps { transform: rotate(2.5deg); }
.stage.is-m { aspect-ratio: 4 / 3.2; }
.stage.is-m .flip { display: none; }
.stage.is-m .pair { display: flex; }
.views { flex-wrap: wrap; justify-content: center; }
.views button { padding: 7px 12px; font-size: 13px; }
.view-hint { margin: -4px 0 0; color: var(--soft); font-size: 13px; text-align: center; max-width: 280px; }
@media (prefers-reduced-motion: reduce) { .flip-inner, .pair span, .mini img, #wheel .seg { transition: none; } }

.content { display: grid; gap: 18px; min-width: 0; }
.chip { justify-self: start; font-size: 13px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.content h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.12 var(--display); margin: -6px 0 0; }
.sub { margin: -10px 0 0; color: var(--soft); }
.kw { margin: -8px 0 0; color: var(--paper); font: 500 15px/1.4 var(--display); opacity: .85; }
.message { margin: 0; font: italic 400 20px/1.55 var(--oracle); color: #F8F1E6; border-left: 3px solid var(--orange); padding: 2px 0 2px 18px; max-width: 62ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 15.5px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }
.block h3 { font: 600 17px/1.25 var(--display); margin: 0 0 6px; }
.block p { margin: 0; max-width: 68ch; }
.block p + p { margin-top: 10px; }
.block ul { margin: 0; padding-left: 20px; }
.block li { margin: 2px 0; }
.block .note { color: var(--soft); font-size: 14px; margin-top: 4px; }
.spectrum { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 12px; }
@media (max-width: 700px) { .spectrum { grid-template-columns: 1fr; } }
.spectrum > div { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--stage-3); }
.spectrum h3 { font: 600 15px/1.25 var(--display); margin: 0 0 6px; color: var(--soft); }
.spectrum p { margin: 0; font-size: 15.5px; }
.spectrum .mid { background: var(--mp); color: #1d2a2d; border-color: var(--mp); }
.spectrum .mid h3 { color: var(--mp-ink); }
.ace { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: ace; }
.ace li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.ace b { font: 600 15px/1.5 var(--display); color: var(--orange); }
.prompts { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.prompts h3 { font: 600 18px/1.25 var(--display); margin: 0; }
.prompts .lead { margin: -10px 0 0; color: var(--soft); font-size: 14.5px; }
.q { display: grid; gap: 6px; }
.q label { font-weight: 700; line-height: 1.45; }
.q textarea { width: 100%; min-height: 96px; resize: vertical; background: var(--stage-3); color: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 400 15px/1.5 var(--body); }
.q textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 2px rgba(208,118,54,.35); }
.saved { font-size: 13px; color: var(--soft); min-height: 1em; }
#wheel .span { display: none; fill: none; stroke: var(--orange); stroke-width: 4; stroke-linejoin: round; pointer-events: none; }
#wheel .span.on { display: inline; }
.pairs { display: grid; gap: 10px; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-head span { font: 600 14px/1.3 var(--display); color: var(--soft); }
.pcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; background: var(--stage-3); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.pcard:hover { border-color: var(--orange); }
.pcard img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; display: block; }
.pc-text { display: grid; gap: 3px; font-size: 15px; line-height: 1.45; }
.pc-text b { font: 600 15px/1.3 var(--display); }
.also { font-size: 12.5px; color: var(--orange); }
@media (max-width: 640px) { .pair-row { grid-template-columns: 1fr; } .pair-head { display: none; } .pair-row + .pair-row { margin-top: 8px; } }
.block .grof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block .grof-list li { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 12px; align-items: center; }
.block .grof-list .mx-btn { justify-self: start; }
@media (max-width: 520px) { .block .grof-list li { grid-template-columns: 1fr; gap: 4px; } }
.textlink { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: #E9A877; text-decoration: underline; text-decoration-color: rgba(233,168,119,.5); text-underline-offset: 3px; text-align: left; }
.textlink:hover { color: #F4C39C; }
.textlink.small { font: 400 14px/1.4 var(--body); margin-left: 10px; vertical-align: 1px; }
.maps-group { display: grid; gap: 8px; padding-top: 4px; scroll-margin-top: 12px; }
.maps-group + .maps-group { margin-top: 10px; }
.group-title { font: 700 22px/1.2 var(--display); margin: 0; }
.maps-group > .sub { margin: 0 0 4px; }
.drops { border-top: 1px solid var(--line); }
.drop { border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.drop summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 4px; font: 600 16.5px/1.3 var(--display); color: var(--paper); border-radius: 6px; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.drop[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.drop summary:hover { color: #fff; }
.drop-body { padding: 0 4px 16px; display: grid; gap: 10px; }
.drop-body p { margin: 0; max-width: 68ch; }
.drop-body ul { margin: 0; padding-left: 20px; }
.drop-body .mx-row { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .drop summary::after { transition: none; } }
.content .block { scroll-margin-top: 12px; }
/* check-in: one statement at a time, on a panel that takes the colors of the wheel.
   The rim (whole) for the start and the results, the archetype ring (light tints),
   the shadow ring (dark), and the Middle Path (cream) for the experience part. */
.ci { max-width: 880px; }
.ci h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.12 var(--display); margin: 0; outline: none; }
.btn.primary { background: var(--paper); color: var(--stage); border-color: var(--paper); }
.btn.primary:hover { background: #fff; }
.ci-stage {
  --bg: #173A41; --ink: var(--paper); --ink-2: var(--soft); --track: rgba(243,236,226,.14); --fill: var(--orange);
  --opt-bg: rgba(12,35,40,.55); --opt-line: #2C4D54; --opt-hover: var(--soft); --sel-bg: var(--paper); --sel-ink: var(--stage);
  --edge: rgba(194,102,42,.55);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: clamp(20px, 4.2vw, 44px);
  background-color: var(--bg); color: var(--ink); border: 1px solid var(--edge);
  transition: background-color .8s ease, color .8s ease, border-color .8s ease;
}
.ci-stage[data-theme="arch"] { --bg: #D5E6E8; --ink: #123840; --ink-2: #47616B; --track: rgba(18,56,64,.13); --fill: #1E5560;
  --opt-bg: rgba(255,255,255,.6); --opt-line: #A6C1C5; --opt-hover: #1E5560; --sel-bg: #1E5560; --sel-ink: #fff; --edge: #BFD5D8; color-scheme: light; }
.ci-stage[data-theme="shadow"] { --bg: #0A1E22; --ink: #F6EADB; --ink-2: #C4B4A1; --track: rgba(246,234,219,.12); --fill: #C9B8A4;
  --opt-bg: rgba(255,255,255,.035); --opt-line: #31464A; --opt-hover: #C9B8A4; --sel-bg: #F6EADB; --sel-ink: #0A1E22; --edge: #1B3136; }
.ci-stage[data-theme="mp"] { --bg: #F6F1E9; --ink: #3B2818; --ink-2: #7A3E14; --track: rgba(122,62,20,.13); --fill: #C2662A;
  --opt-bg: #FFFCF7; --opt-line: #E2CFB8; --opt-hover: #C2662A; --sel-bg: #A9501A; --sel-ink: #fff; --edge: #E2CFB8; color-scheme: light; }
.ci-glow { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.ci-glow[data-g="whole"] { background: radial-gradient(110% 80% at 100% 0%, rgba(194,102,42,.16), transparent 55%); }
.ci-glow[data-g="arch"] { background: radial-gradient(85% 70% at 100% 100%, #F4DFCC, transparent 62%), radial-gradient(70% 60% at 0% 0%, #CAD7D9, transparent 62%); }
.ci-glow[data-g="shadow"] { background: radial-gradient(85% 70% at 0% 100%, rgba(90,44,18,.62), transparent 62%), radial-gradient(70% 60% at 100% 0%, #0F3036, transparent 65%); }
.ci-glow[data-g="mp"] { background: radial-gradient(90% 70% at 50% 0%, #F4DFCC, transparent 66%); }
.ci-stage[data-theme="whole"] .ci-glow[data-g="whole"], .ci-stage[data-theme="arch"] .ci-glow[data-g="arch"],
.ci-stage[data-theme="shadow"] .ci-glow[data-g="shadow"], .ci-stage[data-theme="mp"] .ci-glow[data-g="mp"] { opacity: 1; }
.ci-stage .btn { color: var(--ink); border-color: var(--ink-2); transition: background-color .3s, color .3s, border-color .3s; }
.ci-stage .btn:hover { border-color: var(--ink); }
.ci-stage .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ci-stage .note { color: var(--ink-2); font-size: 14px; margin: 0; max-width: 66ch; }

/* the completion tab */
.ci-tab { display: grid; gap: 8px; margin-bottom: clamp(24px, 4.5vw, 40px); }
.ci-tabrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 14px/1.3 var(--display); }
.ci-count { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.ci-bar { display: flex; gap: 5px; height: 8px; }
.ci-seg { flex: 1 1 0; min-width: 18px; background: var(--track); border-radius: 999px; overflow: hidden; transition: background-color .8s; }
.ci-fill { display: block; height: 100%; width: 0; background: var(--fill); border-radius: inherit; transition: width .5s cubic-bezier(.2,.7,.2,1), background-color .8s; }
.ci-edit { display: flex; justify-content: flex-end; min-height: 0; }
.ci-edit:empty { display: none; }

/* one statement */
.ci-screen { display: grid; }
.ci-qcard { display: grid; gap: 22px; }
.ci-lead { margin: 0; color: var(--ink-2); font: 500 15px/1.45 var(--display); outline: none; }
.ci-stmt { margin: 0; font: 600 clamp(22px, 3.2vw, 30px)/1.3 var(--display); letter-spacing: -0.005em; min-height: 2.6em; max-width: 32ch; text-wrap: balance; outline: none; }
.ci-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ci-opt { display: grid; grid-template-rows: 22px auto 14px; gap: 7px; justify-items: center; align-content: center; min-height: 96px; padding: 12px 6px 10px;
  border: 1px solid var(--opt-line); border-radius: 14px; background: var(--opt-bg); color: var(--ink); font: 600 14.5px/1.2 var(--display); text-align: center; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .12s; }
.ci-opt:hover { border-color: var(--opt-hover); }
.ci-opt[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.ci-opt.picked { transform: scale(.96); }
.ci-dot { align-self: center; width: calc(6px + var(--k) * 3.5px); aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: .5; }
.ci-opt[aria-pressed="true"] .ci-dot { opacity: .9; }
.ci-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.ci-navr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.ci-link { background: none; border: 0; padding: 8px 2px; color: var(--ink-2); font: 600 14.5px/1 var(--display); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: color .2s, text-decoration-color .2s; }
.ci-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.ci-num { font: 600 12px/1 var(--display); opacity: .38; font-variant-numeric: tabular-nums; }
.ci-choice { display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.ci-choice .ci-num { justify-self: end; }
.ci-both .ci-num { margin-left: 10px; }
.ci-keynote { color: var(--ink-2); font-size: 14.5px; }
.ci-stage .confirm { flex-direction: column; align-items: flex-start; }
.confirm-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (hover: none) { .ci-num, .ci-keynote { display: none; } }

/* a closer look: two archetypes side by side */
.ci-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ci-choice { text-align: left; padding: 18px 20px; min-height: 104px; border: 1px solid var(--opt-line); border-radius: 16px; background: var(--opt-bg); color: var(--ink);
  font: 600 18px/1.35 var(--display); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .12s; }
.ci-choice:hover, .ci-both:hover { border-color: var(--opt-hover); }
.ci-or { align-self: center; color: var(--ink-2); font: 500 14px/1 var(--display); }
.ci-both { justify-self: center; padding: 8px 16px; border: 1px solid var(--opt-line); border-radius: 999px; background: var(--opt-bg); color: var(--ink); font: 600 14px/1.2 var(--display); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.ci-choice[aria-pressed="true"], .ci-both[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.ci-choice.picked, .ci-both.picked { transform: scale(.98); }

/* your experience */
.ci-journey { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ci-journey label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 13px; border: 1px solid var(--opt-line); border-radius: 12px; background: var(--opt-bg); cursor: pointer; font-size: 15px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.ci-journey label:hover { border-color: var(--opt-hover); }
.ci-journey label:has(input:checked) { border-color: #C2662A; box-shadow: inset 0 0 0 1px #C2662A; }
.ci-journey input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #A9501A; }

/* the pause after each part: the wheel with that ring lit, and a quote */
.ci-inter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4.5vw, 52px); align-items: center; padding: 4px 0 8px; }
.mw-box { width: 100%; max-width: 360px; justify-self: center; margin: 0; }
.mw { width: 100%; height: auto; display: block; overflow: visible; }
.mw .mw-base { fill: #0c2227; }
.mw .mws { opacity: .12; transition: opacity .7s ease; }
.ci-inter.enter .mw-box { animation: mwIn 1.3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mwIn { from { opacity: 0; transform: rotate(-28deg) scale(.86); } to { opacity: 1; transform: none; } }
.ci-inter.lit .mw[data-focus="arch"] :is(.r-arch, .r-fam),
.ci-inter.lit .mw[data-focus="shadow"] :is(.r-shad, .r-sdisc, .r-core) { opacity: 1; transition-delay: calc(380ms + var(--i) * 60ms); }
.ci-inter.lit .mw[data-focus="whole"] .mws { opacity: 1; transition-delay: calc(300ms + var(--r) * 190ms); }
.mw[data-focus="shadow"] .mws { opacity: .08; }
.ci-inter.lit .mw[data-focus="shadow"] :is(.r-shad, .r-core) { stroke: #D9C8B5; stroke-width: 3; }
.ci-words { display: grid; gap: 18px; justify-items: start; }
.ci-inter.enter .ci-words { animation: wordsIn .8s .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes wordsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ci-quote { margin: 0; display: grid; gap: 12px; }
.ci-quote blockquote { margin: 0; outline: none; }
.ci-quote blockquote p { margin: 0; font: italic 500 clamp(25px, 3.5vw, 36px)/1.28 var(--oracle); text-wrap: balance; max-width: 22ch; }
.ci-quote figcaption { font: 500 14px/1.5 var(--display); color: var(--ink-2); display: grid; gap: 4px; }
.ci-quote figcaption .ctx { font: 400 14px/1.5 var(--body); max-width: 44ch; }
.ci-after { margin: 0; max-width: 46ch; }
.ci-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* start and results */
.ci-intro { display: grid; gap: 14px; }
.ci-intro p { margin: 0; max-width: 64ch; }
.ci-parts { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--ink-2); }
.ci-parts b { color: var(--ink); font-weight: 700; }
.ci-results { display: grid; gap: 18px; }
.res-top { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; align-items: start; }
.res-top > div { display: grid; gap: 10px; }
.res-top .sub { margin: 0; color: var(--ink-2); }
.mw-box.mine { max-width: 180px; display: grid; gap: 6px; }
.mw-box.mine figcaption { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); text-align: center; }
.mw-box.mine .mws { opacity: .16; }
.mw-box.mine.lit .mws.on { opacity: 1; stroke: var(--orange); stroke-width: 9; paint-order: stroke; transition-delay: calc(250ms + var(--i) * 40ms); }
.ci-editrow { font-size: 14.5px; color: var(--ink-2); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hist li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; padding-bottom: 0; }
.hist-date { font: 600 14px/1.4 var(--display); }
.hist-date em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: var(--orange); }
.hist-body { font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .hist li { grid-template-columns: 1fr; gap: 2px; } }
.ci-editrow .textlink { margin: 0 2px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard.res { grid-template-columns: 84px minmax(0, 1fr); }
.pcard.res img { width: 84px; }
.why { display: grid; gap: 4px; margin-top: 4px; font-size: 14px; color: var(--soft); }
.why em { font-style: normal; color: var(--paper); opacity: .8; white-space: nowrap; }
.prof { display: grid; gap: 8px; }
.prof-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 12px; align-items: center; }
.bar { height: 8px; border-radius: 999px; background: var(--stage-3); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.prof-word { font-size: 13px; color: var(--soft); }
.mx-btn.plain { padding: 7px 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) {
  .ci-inter { grid-template-columns: 1fr; }
  .mw-box { max-width: 240px; }
  .ci-quote blockquote p { max-width: none; }
}
@media (max-width: 640px) {
  .ci-stage { border-radius: 16px; }
  .ci-scale { grid-template-columns: 1fr; gap: 7px; }
  .ci-opt { grid-template-rows: none; grid-template-columns: 26px minmax(0, 1fr) auto; justify-items: start; min-height: 52px; padding: 10px 16px; font-size: 16px; text-align: left; }
  .ci-dot { justify-self: center; }
  .ci-pair { grid-template-columns: 1fr; }
  .ci-or { justify-self: center; }
  .ci-choice { min-height: 0; }
  .ci-journey, .res-grid { grid-template-columns: 1fr; }
  .res-top { grid-template-columns: 1fr; }
  .mw-box.mine { justify-self: start; max-width: 150px; }
  .prof-row { grid-template-columns: 120px minmax(0, 1fr); }
  .prof-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-stage, .ci-glow, .ci-fill, .ci-seg, .ci-opt, .ci-choice, .ci-both, .mw .mws, .mw .mw-base { transition: none !important; }
  .ci-inter.enter .mw-box, .ci-inter.enter .ci-words { animation: none; }
}
.mx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--stage-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; cursor: pointer; font: 600 14px/1.2 var(--display); color: var(--paper); }
.mx-btn:hover, .mx-btn[aria-pressed="true"] { border-color: var(--orange); }
.mx-btn span, .mx-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 999px; border: 1.5px solid var(--orange); font: 700 12px/1 var(--display); color: #F0D9B8; }
.mx-num { min-width: 40px; height: 40px; font-size: 16px; margin-right: 12px; vertical-align: 6px; }
.fam-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 14px; }
@media (max-width: 520px) { .fam-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* answers */
.answers { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; max-width: 72ch; }
.answers h2 { font: 600 20px/1.2 var(--display); margin: 0; }
.answers p { margin: 0; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { background: transparent; color: var(--paper); border: 1px solid var(--soft); border-radius: 999px; padding: 9px 16px; font: 600 14px/1 var(--display); cursor: pointer; }
.btn:hover { border-color: var(--paper); }
.btn.warn { border-color: #8a5a4a; color: #e2b8a8; }
.status { font-size: 14px; min-height: 1.3em; }
.confirm { display: none; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.confirm.show { display: flex; }
footer { margin-top: 36px; font-size: 14px; color: var(--soft); max-width: 78ch; display: grid; gap: 10px; }
footer p { margin: 0; }
.credits summary { cursor: pointer; font: 600 14px/1.4 var(--display); color: var(--soft); width: max-content; }
.credits summary:hover { color: var(--paper); }
.credits summary::marker { color: var(--orange); }
.credits-body { margin-top: 10px; display: grid; gap: 10px; line-height: 1.55; }
.credits-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.credits-body b { color: var(--paper); font-weight: 700; }
.fine { font-size: 13px; }
