:root{--ink:#202b3b;--muted:#697381;--paper:#f5f1e8;--card:#fffdf8;--line:#ded9cf;--coral:#f26e55;--blue:#6177d8;--green:#7caa8e;--violet:#987ac9;--amber:#dda84d;--rose:#d27b83;--mono:ui-monospace,monospace;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 var(--sans)}a,button{font:inherit;color:inherit}button{cursor:pointer}
.demo-header{height:74px;width:min(1160px,calc(100% - 48px));margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9d4cb}
.demo-brand{font-size:17px;font-weight:800;letter-spacing:-.06em;text-decoration:none;display:flex;align-items:center;gap:8px}
.demo-mark{width:30px;height:30px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;color:var(--coral)}
.demo-badge{font:10px var(--mono);border:1px solid #d69a6d;color:#835529;background:#faefdc;border-radius:99px;padding:7px 10px}
.demo-shell{width:min(1160px,calc(100% - 48px));margin:auto}
.demo-eyebrow{font:10px var(--mono);letter-spacing:.15em;color:#717c89;text-transform:uppercase}
.demo-primary,.demo-secondary{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 19px;border-radius:99px;border:0;background:var(--ink);color:white;text-decoration:none;font-size:12px;font-weight:700}
.demo-primary:hover{background:#39465b}
.demo-footer{min-height:67px;border-top:1px solid #ded9cf;padding:19px 24px;color:#7a838d;font-size:10px;display:flex;justify-content:space-between;align-items:center}
.demo-question{width:min(660px,calc(100% - 36px));margin:48px auto 70px;min-height:calc(100vh - 190px)}
.demo-back{border:0;background:transparent;font-size:12px;color:#647080;min-height:44px}
.demo-step{display:flex;justify-content:space-between;color:#687381;font:11px var(--mono)}
.demo-progress{height:4px;background:#e0dbd1;border-radius:9px;margin:13px 0 40px;overflow:hidden}
.demo-progress span{display:block;height:100%;background:var(--coral)}
.demo-question h1{font-size:clamp(27px,5vw,39px);line-height:1.25;letter-spacing:-.055em;margin:12px 0 27px}
.demo-options{display:grid;gap:10px}
.demo-option{min-height:66px;border:1px solid #ded9cf;border-radius:5px;background:#fffdf8;padding:13px 15px;text-align:left;display:flex;align-items:center;gap:13px;font-size:13px;line-height:1.5}
.demo-option>span{width:29px;height:29px;border:1px solid #d3d0c8;border-radius:50%;display:grid;place-items:center;font:10px var(--mono);flex:0 0 auto}
.demo-option:hover{border-color:#828c9a}
.demo-option.chosen{background:#f8e4d7;border-color:var(--coral)}
.demo-option.chosen>span{background:var(--coral);color:white;border-color:var(--coral)}
.demo-error{color:#a83832;font-size:12px;min-height:18px}
.demo-controls{display:flex;justify-content:space-between;gap:12px}
.demo-secondary{background:transparent;border:1px solid #c8c4bb;color:var(--ink)}
.demo-secondary:disabled{opacity:.4;cursor:not-allowed}
.demo-hint{font-size:10px;color:#7a838d;margin-top:22px}
.demo-header-actions{display:flex;align-items:center;gap:clamp(8px,2vw,22px)}
.demo-directory{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:13px;text-decoration:none;color:#873f35;white-space:nowrap}
.demo-directory:hover{text-decoration:underline;text-underline-offset:4px}
.demo-result{width:min(992px,calc(100% - 36px));margin:40px auto 70px}
.demo-result-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:32px}
.demo-result-heading{align-self:end}
.demo-result-kicker{color:#4f5b69;font-size:13px;margin:0 0 12px}
.demo-result h1{font-size:clamp(2rem,4.8vw,3.65rem);line-height:1.17;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}
.demo-result-art{position:relative;align-self:start;isolation:isolate;margin:0;overflow:hidden;border-radius:5px;border:1px solid #aea699;background:var(--result-tone)}
.demo-result-art img{display:block;width:100%;height:auto;aspect-ratio:1.48;object-fit:cover}
.demo-result-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,var(--result-tone),transparent 68%);mix-blend-mode:color;opacity:.82}
.demo-result-art::before{content:"";display:block;position:absolute;z-index:1;inset:auto 0 0;height:8px;background:var(--result-tone)}
.demo-summary{font-size:16px;line-height:1.85;color:#586473}
.demo-summary p{margin:0 0 12px}
.demo-caveat{font-size:13px;color:#737d89;margin:16px 0}
@media(min-width:751px){
.demo-result-row:has(.demo-result-art){grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:38px}
.demo-result-art{grid-column:2;grid-row:1 / span 2}}
@media(max-width:750px){
.demo-result{margin-top:28px}
.demo-result-art img{aspect-ratio:1.75}}
@media(max-width:700px){.demo-header,.demo-shell{width:calc(100% - 36px)}
.demo-footer{padding:17px 18px;gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;scroll-behavior:auto!important}}
.demo-eyebrow,.demo-step,.demo-footer,.demo-summary,.demo-caveat,.demo-hint,.demo-back{color:#4f5b69}
.demo-result h1{color:#a54234}
.demo-brand{min-height:44px}
.demo-badge{color:#735024}
.demo-primary { gap: 0.5rem; }
a:focus-visible,button:focus-visible{outline:3px solid #394fbd;outline-offset:3px}
.poster-preview[hidden], .poster-preview [hidden] { display: none; }
.poster-preview {
  margin: 20px 0;
  padding: clamp(16px, 4vw, 24px);
  background: #fffdf8;
  border: 1px solid #ded9cf;
  border-radius: 8px;
}
.poster-preview h2 { margin: 0 0 8px; font-size: 20px; }
.poster-preview p { margin: 0 0 14px; color: #4f5b69; font-size: 14px; line-height: 1.6; }
.poster-preview img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto 16px;
  border: 1px solid #ded9cf;
}
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.quiz-welcome {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(3rem, 9vw, 8rem);
}

.quiz-welcome h1 {
  max-width: 13em;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.welcome-description {
  margin: 0 0 1.5rem;
  color: #4f5b69;
  line-height: 1.75;
}

.welcome-details, .welcome-kind {
  color: #4f5b69;
  font-size: 0.875rem;
}

.welcome-start { min-width: 9rem; }
.welcome-start + .welcome-details { margin-top: 0.75rem; }

.welcome-illustration {
  min-width: 0;
  min-height: 11rem;
  aspect-ratio: 1.2;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.welcome-core {
  width: 59%;
  aspect-ratio: 1;
  border: 1px solid #202b3b44;
  border-radius: 50%;
  box-shadow: inset -1.25rem -0.85rem #202b3b0c;
}

.welcome-ring, .welcome-illustration::after {
  position: absolute;
  content: "";
  width: 93%;
  aspect-ratio: 2.2;
  border: 1px solid #202b3b66;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.welcome-illustration::after {
  width: 81%;
  aspect-ratio: 1.8;
  border-color: #a5423477;
  transform: rotate(38deg);
}

.site-footer p { margin: 0; }

@media (max-width: 680px) {
  .quiz-welcome {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 3.25rem 1rem;
  }

  .welcome-illustration {
    width: min(70%, 16rem);
    justify-self: center;
  }
}

.match-overview {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0 0;
  padding: 5px 12px;
  border: 1px solid #dccbb7;
  border-radius: 5px;
  background: #f8ecdc;
  color: #703b31;
  font-size: .875rem;
}

.match-overview strong { font-size: 1.35rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.result-hero .match-overview { margin: 0 0 16px; }
.match-evidence { color: #4f5b69; font-size: .875rem; line-height: 1.75; }
.match-evidence a { color: #873f35; text-decoration: underline; text-underline-offset: 3px; }

.match-details {
  grid-column: 1 / -1;
  padding: clamp(12px, 4vw, 24px);
  border: 1px solid #ded9cf;
  border-radius: 6px;
  background: #fffdf8;
  color: #202b3b;
}

.match-details h2 { margin: 0 0 7px; font-size: 1.15rem; }
.match-note { margin: 0 0 13px; color: #4f5b69; font-size: .875rem; }
.match-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.match-table th, .match-table td { padding: 10px 8px; border-bottom: 1px solid #e8dfd4; text-align: right; }
.match-table th:first-child { text-align: left; }
.match-table thead th { background: #f3ede4; color: #4f5b69; }
.match-table thead th:last-child { white-space: nowrap; }
.match-table th small { display: block; color: #4f5b69; font-size: .8rem; font-weight: 400; line-height: 1.4; }
.match-table td:nth-child(2) { font-weight: 700; }
.match-table td:last-child { color: #873f35; font-weight: 750; }
.match-method { margin-top: 7px; color: #4f5b69; font-size: .875rem; }
.match-method summary { align-content: center; min-height: 44px; color: #873f35; font-weight: 650; cursor: pointer; }
.match-method summary:focus-visible { outline: 3px solid #394fbd; outline-offset: 3px; }
.match-method p { margin: 0; }
.result-blocks > .character-references { grid-column: 1 / -1; }

@media (max-width: 470px) {
  .match-table th, .match-table td { padding-inline: 4px; }
  .match-table thead th:not(:first-child) { max-width: 3em; }
}
