/* ==========================================================================
   蔚来可七 · WEI LAI KE QI — editorial questionnaire
   Ink, hairline rules, one warm interruption.
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ma Shan Zheng";
  src: url("/assets/fonts/MaShanZheng-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1efe8;
  --paper-deep: #e8e5da;
  --ink: #0d0d0c;
  --ink-soft: #272723;
  --muted: #77746a;
  --faint: #9e9b90;
  --hair: rgba(13, 13, 12, 0.14);
  --hair-strong: rgba(13, 13, 12, 0.34);
  --ember: #d9a85f;
  --ember-hot: #f2bd6c;
  --danger: #7c231b;
  --display: "Inter Tight", "Helvetica Neue", "PingFang SC", sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Liberation Mono", "Courier New", monospace;
  --brush: "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --serif: "Bodoni 72", "Didot", "Songti SC", "STSong", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(24px, 5vw, 78px);
  --chrome-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(120% 100% at 14% 0%, rgba(255, 255, 255, 0.72), transparent 48%),
    radial-gradient(90% 80% at 100% 100%, rgba(203, 195, 175, 0.16), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-overlaid { overflow: hidden; }
body.is-result .footer { opacity: 0; pointer-events: none; }
body.is-overlaid .stage {
  opacity: 0.045;
  filter: blur(5px);
  transform: scale(0.995);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s var(--ease-out);
}
body.is-overlaid .chrome,
body.is-overlaid .rail,
body.is-overlaid .footer { opacity: 0.14; transition: opacity 0.7s ease; }
.stage, .chrome, .rail, .footer { transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease-out); }
body.is-sealing { cursor: progress; }

::selection { background: rgba(217, 168, 95, 0.34); color: var(--ink); }

button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Paper grain + frame
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -10%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.frame {
  position: fixed;
  inset: 20px;
  z-index: 20;
  pointer-events: none;
}
.frame__corner {
  position: absolute;
  width: 9px;
  height: 9px;
}
.frame__corner::before,
.frame__corner::after {
  content: "";
  position: absolute;
  background: var(--hair-strong);
}
.frame__corner::before { width: 9px; height: 1px; top: 4px; left: 0; }
.frame__corner::after { width: 1px; height: 9px; left: 4px; top: 0; }
.frame__corner--tl { top: 0; left: 0; }
.frame__corner--tr { top: 0; right: 0; }
.frame__corner--bl { bottom: 0; left: 0; }
.frame__corner--br { bottom: 0; right: 0; }

/* --------------------------------------------------------------------------
   Chrome
   -------------------------------------------------------------------------- */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--chrome-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.chrome a { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  min-height: 42px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand__mark i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.6s var(--ease-out);
}
.brand__mark i:nth-child(3) { background: var(--ember); }
.brand:hover .brand__mark i:nth-child(1) { transform: translateY(-3px); }
.brand:hover .brand__mark i:nth-child(2) { transform: translateY(2px); }
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.brand__text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.chrome__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.chrome__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(217, 168, 95, 0.35);
  animation: pulse-dot 3.4s ease-out infinite;
}
@keyframes pulse-dot {
  0%, 20% { box-shadow: 0 0 0 0 rgba(217, 168, 95, 0.38); }
  55%, 100% { box-shadow: 0 0 0 7px rgba(217, 168, 95, 0); }
}

.chrome__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 34px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.chrome__clock { color: var(--faint); font-variant-numeric: tabular-nums; }
.chrome__count { display: inline-flex; align-items: baseline; gap: 5px; }
.chrome__count b { font-weight: 500; font-size: 13px; letter-spacing: 0.04em; min-width: 1.8ch; text-align: right; font-variant-numeric: tabular-nums; }
.chrome__count i { color: var(--faint); font-style: normal; }
.chrome__count span { color: var(--muted); }

/* --------------------------------------------------------------------------
   Rail
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  z-index: 30;
  left: max(26px, 3.2vw);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  pointer-events: none;
}
.rail__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.23em;
  color: var(--faint);
  white-space: nowrap;
}
.rail__track {
  position: relative;
  width: 1px;
  height: 128px;
  background: var(--hair);
  overflow: hidden;
}
.rail__track span {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: var(--ink);
  transition: height 0.8s var(--ease-out);
}
.rail__tick {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Stage + global type
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  padding: calc(var(--chrome-h) + 18px) var(--gutter) 80px calc(var(--gutter) + 56px);
  display: flex;
  align-items: center;
  outline: none;
}

.footer {
  position: fixed;
  z-index: 35;
  inset: auto var(--gutter) 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.17em;
  color: var(--faint);
  pointer-events: none;
  text-transform: uppercase;
}
.footer__center { color: rgba(13, 13, 12, 0.3); }
.footer__end { display: inline-flex; align-items: center; gap: 16px; pointer-events: auto; }
.footer__admin {
  color: var(--muted);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.footer__admin:hover { color: var(--ink); border-color: var(--ink); }

.scene {
  width: 100%;
  animation: scene-enter 0.95s var(--ease-out) both;
}
.scene.is-leaving {
  animation: scene-leave 0.42s var(--ease-in-out) both;
  pointer-events: none;
}
@keyframes scene-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scene-leave {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-16px); filter: blur(3px); }
}

.reveal {
  display: block;
  overflow: hidden;
}
.reveal > span {
  display: block;
  transform: translateY(112%);
  animation: reveal-up 1.05s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 95ms + 80ms);
}
@keyframes reveal-up {
  to { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Cover
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cover__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(18px, 3.2vh, 34px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.cover__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ink);
}
.cover__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(74px, 12.2vw, 190px);
  line-height: 0.87;
  letter-spacing: -0.062em;
  font-stretch: 96%;
}
.cover__title .line--cn {
  padding-left: 0.045em;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 250;
  letter-spacing: 0.055em;
}
.cover__pinyin {
  margin-top: clamp(18px, 2.8vh, 28px);
  padding-left: 0.35em;
  font-family: var(--mono);
  font-size: clamp(9px, 0.95vw, 13px);
  line-height: 1.4;
  letter-spacing: 0.48em;
  color: var(--muted);
}
.cover__pinyin > span { display: block; transform: translateY(120%); animation: reveal-up 1.05s var(--ease-out) 0.38s both; }
.cover__title .reveal { padding-right: 0.08em; padding-bottom: 0.035em; }
.cover__title .line {
  display: block;
}
.cover__title .line--2 { padding-left: 0.24em; }
.cover__title .line--3 { padding-left: 0.08em; }
.cover__title sup {
  display: inline-block;
  vertical-align: top;
  margin: 0.14em 0 0 0.1em;
  font-family: var(--mono);
  font-size: 0.07em;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cover__rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(22px, 3.6vh, 42px);
}
.cover__rule::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.cover__rule span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--faint);
  white-space: nowrap;
}

.cover__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) auto;
  align-items: end;
  gap: clamp(26px, 5vw, 90px);
  margin-top: clamp(22px, 3.4vh, 44px);
}
.cover__lede {
  max-width: 430px;
}
.cover__lede-cn {
  margin: 0 0 13px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.cover__lede-en {
  margin: 0;
  max-width: 380px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: var(--muted);
}
.cover__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 190px;
  border-top: 1px solid var(--hair);
}
.cover__meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.cover__meta b {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 450;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
}

.begin {
  position: relative;
  width: clamp(108px, 10.5vw, 146px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
  justify-self: end;
  flex: none;
}
.begin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: inset 0.55s var(--ease-out), border-color 0.5s;
}
.begin:hover { color: var(--paper); border-color: var(--ink); }
.begin:hover::before { inset: -7px; border-color: var(--hair-strong); }
.begin__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  transform: scale(0.02);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.25s;
}
.begin:hover .begin__fill { transform: scale(1); opacity: 1; }
.begin__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.begin__inner small {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}
.begin__arrow {
  width: 21px;
  height: 21px;
  margin-bottom: 2px;
  transition: transform 0.5s var(--ease-out);
}
.begin:hover .begin__arrow { transform: translate(3px, -3px); }
.begin__orbit {
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid rgba(13, 13, 12, 0.06);
  animation: orbit 22s linear infinite;
}
.begin__orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  transform: translateY(-50%);
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Name scene
   -------------------------------------------------------------------------- */
.name-scene {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.name-scene__top {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 26px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: var(--muted);
}
.name-scene__index { font-size: 13px; color: var(--ink); }
.name-scene__kind { color: var(--faint); }
.name-scene h2 {
  font-family: var(--display);
  margin: clamp(34px, 7vh, 72px) 0 10px;
  font-size: clamp(48px, 6.8vw, 96px);
  font-weight: 290;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.name-scene__en {
  margin: 0 0 clamp(40px, 7vh, 76px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--muted);
}
.name-field {
  position: relative;
  max-width: 760px;
  border-bottom: 1px solid var(--ink);
}
.name-field input {
  width: 100%;
  padding: 4px 52px 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  outline: none;
}
.name-field input::placeholder { color: rgba(13, 13, 12, 0.16); }
.name-field__arrow {
  position: absolute;
  right: 2px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.name-field__arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.name-scene__note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Question
   -------------------------------------------------------------------------- */
.question {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.q-top {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.q-top__index {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.q-top__kind { color: var(--faint); text-align: right; }

.q-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(38px, 6vw, 96px);
  margin-top: clamp(28px, 4.7vh, 48px);
}
.q-main { min-width: 0; }
.q-title {
  margin: 0;
  max-width: 880px;
  font-family: var(--display);
  font-size: clamp(38px, 4.35vw, 62px);
  font-weight: 330;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.q-title .amb {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.q-en {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.22vw, 17px);
  line-height: 1.45;
  color: var(--muted);
}
.q-note {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.q-guide {
  max-width: 760px;
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.free-invite {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.free-invite p {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.free-invite .confirm { opacity: 1; }

.q-supplement {
  max-width: 720px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.q-supplement label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--faint);
}
.q-supplement input {
  width: 100%;
  min-height: 42px;
  padding: 2px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}
.q-supplement input::placeholder { color: rgba(13,13,12,.22); }
.q-supplement input:focus { border-bottom-color: var(--ink); }

.question.is-dense .q-grid { margin-top: clamp(16px, 2.6vh, 26px); }
.question.is-dense .q-title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; }
.question.is-dense .q-en { margin-top: 8px; font-size: 13px; }
.question.is-dense .q-guide { margin-top: 7px; font-size: 11px; line-height: 1.65; }
.question.is-dense .options { margin-top: clamp(16px, 2.3vh, 24px); }
.question.is-dense .option { min-height: 44px; }
.question.is-dense .option__label { font-size: clamp(14.5px, 1.23vw, 16.5px); line-height: 1.35; }
.question.is-dense .option__key { font-size: 7.5px; }
.question.is-dense .q-foot { margin-top: 14px; padding-top: 12px; }
.question.is-dense .confirm__ring { width: 54px; height: 54px; }
.question.is-dense .q-aside__diagram { display: none; }

.option.is-denied { animation: option-denied 0.38s ease; }
@keyframes option-denied {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.parchment__context {
  margin-top: 9px;
  padding: 7px 0 8px;
  border-bottom: 1px solid rgba(65, 40, 16, 0.22);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: rgba(58, 35, 14, 0.58);
}
.parchment__context b {
  flex: 1;
  min-width: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3a2412;
  overflow-wrap: anywhere;
}

.summary-row__free {
  margin: 6px 0 0;
  font-family: var(--brush);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline-writing {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.inline-writing__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
}
.inline-writing__head label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.inline-writing__head span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
}
.inline-writing__note {
  margin: 0 0 9px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.inline-writing textarea {
  width: 100%;
  min-height: 188px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.inline-writing textarea::placeholder { color: rgba(13, 13, 12, 0.25); }
.inline-writing textarea:focus { border-color: var(--hair-strong); background: rgba(255, 255, 255, 0.36); }
.inline-writing.is-compact { margin-top: 16px; padding-top: 10px; }
.inline-writing.is-compact textarea { min-height: 86px; }

.question.free-only .q-main { max-width: 890px; }
.question.free-only .inline-writing textarea { min-height: 220px; }
.question.has-writing .q-grid { margin-top: clamp(14px, 2.2vh, 22px); }
.question.has-writing .q-title { font-size: clamp(25px, 2.95vw, 43px); line-height: 1.18; }
.question.has-writing .q-en { margin-top: 6px; font-size: 12.5px; }
.question.has-writing .q-guide { margin-top: 6px; font-size: 10.5px; line-height: 1.6; }
.question.has-writing .options { margin-top: clamp(14px, 2vh, 20px); }
.question.has-writing .option { min-height: 39px; }
.question.has-writing .option__label { font-size: clamp(13.5px, 1.12vw, 15.5px); line-height: 1.3; }
.question.has-writing .q-aside__diagram { display: none; }
.question.has-writing .q-foot { margin-top: 12px; padding-top: 10px; }
.question.has-writing .confirm__ring { width: 52px; height: 52px; }

.options {
  margin-top: clamp(25px, 4vh, 42px);
  border-top: 1px solid var(--hair);
}
.option {
  position: relative;
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}
.option::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.55s var(--ease-out);
}
.option:hover::after { width: 100%; }
.option__key {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.3s;
}
.option__label {
  display: block;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: #0f0f0d;
  line-height: 1.45;
  letter-spacing: 0.005em;
  transition: transform 0.5s var(--ease-out), opacity 0.35s, filter 0.35s;
}
.option__mark {
  width: 11px;
  height: 11px;
  justify-self: end;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}
.option[data-kind="multi"] .option__mark { border-radius: 0; transform: rotate(45deg) scale(0.82); }
.option:hover .option__label { transform: translateX(5px); }
.option:focus-visible { outline: 0; }
.option:focus-visible .option__mark { outline: 1px solid var(--hair-strong); outline-offset: 4px; }
.option:focus-visible::after { width: 100%; background: var(--hair-strong); }
.option[aria-pressed="true"] .option__label { font-weight: 560; }
.option[aria-pressed="true"] .option__key { color: var(--ink); }
.option[aria-pressed="true"] .option__mark {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.option[data-kind="multi"][aria-pressed="true"] .option__mark {
  transform: rotate(0deg) scale(0.72);
  border-radius: 0;
  box-shadow: none;
  background: var(--ink);
  border-color: var(--ink);
}
.option[aria-pressed="true"]::after { width: 100%; }
.option.is-burning { pointer-events: none; }
.option.is-burning .option__mark { opacity: 0; }
.option.is-burning .option__key { opacity: 0; transition: opacity 0.4s; }
.option.is-kept { opacity: 0.9; }
.option.is-collapsing {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.option .ash-char {
  display: inline-block;
  white-space: pre;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.q-aside {
  padding-top: 9px;
  border-top: 1px solid var(--ink);
  align-self: start;
}
.q-aside__label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.q-aside__hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.q-aside__diagram {
  position: relative;
  width: 100%;
  height: 76px;
  margin-top: 26px;
}
.q-aside__diagram::before,
.q-aside__diagram::after {
  content: "";
  position: absolute;
  background: var(--hair-strong);
}
.q-aside__diagram::before { left: 0; top: 0; width: 1px; height: 100%; }
.q-aside__diagram::after { left: 0; top: 0; width: 52%; height: 1px; }
.q-aside__diagram i {
  position: absolute;
  width: 5px; height: 5px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  left: 52%;
  top: 0;
  transform: translate(-50%, -50%);
  background: var(--paper);
}
.q-aside__diagram b {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.q-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 4vh, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}
.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; }
.q-status {
  flex: 1;
  max-width: 240px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--faint);
  text-align: center;
}

.confirm {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.confirm.is-ready { opacity: 1; }
.confirm:disabled { cursor: default; }
.confirm__ring {
  width: 62px;
  height: 62px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: color 0.42s, border-color 0.42s;
}
.confirm__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-out);
}
.confirm__ring svg { position: relative; z-index: 1; width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.confirm.is-ready:hover .confirm__ring::before { transform: translateY(0); }
.confirm.is-ready:hover .confirm__ring svg { color: var(--paper); transform: translate(2px, -2px); }
.confirm__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.confirm__label small {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Free-answer / candlelight scene
   -------------------------------------------------------------------------- */
.free-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 3vw 3vh;
  animation: free-in 0.5s ease both;
}
.free-layer.is-closing { animation: free-out 0.7s ease both; }
@keyframes free-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes free-out { from { opacity: 1; } to { opacity: 0; } }

.free-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 85% at 22% 52%, rgba(31, 21, 11, 0.24), transparent 62%),
    radial-gradient(100% 100% at 50% 48%, rgba(9, 9, 8, 0.67), rgba(7, 7, 6, 0.93));
  backdrop-filter: blur(6px) saturate(0.45) brightness(0.38);
  -webkit-backdrop-filter: blur(6px) saturate(0.45) brightness(0.38);
}
.free-dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.free-warmth {
  position: absolute;
  left: -10vw;
  top: -10vh;
  width: 70vw;
  height: 120vh;
  background: radial-gradient(48% 46% at 50% 50%, rgba(247, 178, 86, 0.33), rgba(178, 95, 28, 0.12) 42%, transparent 72%);
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: warmth 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes warmth {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  28% { opacity: 0.94; transform: scale(1.035) translate(1.2%, 0.4%); }
  47% { opacity: 0.8; transform: scale(1.01); }
  70% { opacity: 1; transform: scale(1.045) translate(0.6%, -0.5%); }
}

.free-stage {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-left: clamp(8vw, 19vw, 24vw);
  transform: translateY(0);
}
.free-layer.is-rising .parchment-wrap {
  animation: parchment-rise 1.55s var(--ease-out) both;
}
.free-layer.is-rising .candelabrum-wrap {
  animation: candle-rise 1.7s var(--ease-out) 0.1s both;
}
@keyframes parchment-rise {
  0% { transform: translateY(108vh) rotateX(24deg) rotateZ(3.2deg); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(0) rotateX(0) rotateZ(-1.1deg); opacity: 1; }
}
@keyframes candle-rise {
  0% { transform: translateY(32vh); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.parchment-wrap {
  position: relative;
  width: min(600px, 49vw);
  height: min(710px, 72vh);
  transform: rotate(-1.1deg);
  transform-origin: 50% 80%;
  filter: drop-shadow(0 42px 40px rgba(0, 0, 0, 0.46)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}
.parchment-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 30px;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(18px);
  border-radius: 50%;
}
.parchment {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.parchment__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.parchment::before {
  /* candlelight falling across the sheet */
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(255, 196, 108, 0.28), rgba(255, 205, 133, 0.08) 34%, transparent 58%),
    radial-gradient(70% 80% at 11% 55%, rgba(255, 186, 91, 0.18), transparent 61%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: sheet-light 4.6s ease-in-out infinite;
}
@keyframes sheet-light {
  0%, 100% { opacity: 0.78; }
  32% { opacity: 1; }
  57% { opacity: 0.88; }
  76% { opacity: 1; }
}
.parchment::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    radial-gradient(100% 90% at 50% 50%, transparent 52%, rgba(52, 27, 7, 0.28) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.parchment__content {
  position: absolute;
  z-index: 4;
  inset: 7.8% 9.4% 7.2%;
  display: flex;
  flex-direction: column;
  color: #2c1c0e;
}
.parchment__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(65, 40, 16, 0.28);
  font-family: var(--mono);
  font-size: 7.2px;
  letter-spacing: 0.17em;
  color: rgba(58, 35, 14, 0.67);
}
.parchment__head b { font-weight: 500; color: #3d2612; }
.parchment__title {
  margin: 15px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.015em;
  color: #3a2412;
}
.parchment__note {
  margin: 7px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(58, 35, 14, 0.68);
}
.ink-area {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 14px;
}
.ink-area textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 2px 4px 8px 2px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.94em - 1px), rgba(62, 39, 16, 0.11) calc(1.94em - 1px), rgba(62, 39, 16, 0.11) 1.94em);
  background-attachment: local;
  color: #2b190a;
  caret-color: #5b2d0a;
  font-family: var(--brush);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.94;
  letter-spacing: 0.015em;
  outline: none;
  scrollbar-width: none;
  text-shadow: 0 0 0.4px rgba(43, 25, 10, 0.55), 0 0 5px rgba(95, 54, 17, 0.1);
}
.ink-area textarea::-webkit-scrollbar { display: none; }
.ink-area textarea::placeholder {
  color: rgba(58, 35, 14, 0.25);
  font-family: var(--brush);
  letter-spacing: 0.06em;
}
.ink-area::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='i'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23i)' opacity='.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.06;
}
.parchment__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  border-top: 1px solid rgba(65, 40, 16, 0.24);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: rgba(58, 35, 14, 0.52);
}
.parchment__count { font-variant-numeric: tabular-nums; }
.parchment__seal {
  position: absolute;
  z-index: 6;
  right: -17px;
  bottom: -18px;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 38% 28%, rgba(133, 79, 34, 0.7), transparent 70%),
    radial-gradient(70% 70% at 50% 50%, #2a160b, #100a06 70%);
  box-shadow: inset 0 1px 2px rgba(255, 200, 130, 0.2), 0 7px 13px rgba(0, 0, 0, 0.35);
  color: rgba(226, 194, 145, 0.72);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
  transform: rotate(-14deg) scale(0.9);
  opacity: 0.9;
}
.parchment__seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(226, 194, 145, 0.23);
  border-radius: 50%;
}
.parchment-wrap.is-sealed .parchment__seal {
  animation: seal-stamp 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.3) both;
}
@keyframes seal-stamp {
  0% { transform: rotate(-14deg) scale(2.2); opacity: 0; }
  65% { transform: rotate(-14deg) scale(0.92); opacity: 1; }
  100% { transform: rotate(-14deg) scale(1); opacity: 1; }
}
.parchment-wrap.is-sealed .parchment__content { animation: ink-settle 0.8s ease both; }
@keyframes ink-settle {
  40% { filter: blur(0.8px); opacity: 0.7; }
  100% { filter: blur(0); opacity: 1; }
}

.free-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(600px, 49vw);
  padding: 0 4px;
  color: rgba(241, 239, 232, 0.72);
}
.free-actions__meta {
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: rgba(241, 239, 232, 0.37);
}
.free-actions__back {
  border: 0;
  padding: 9px 0;
  background: none;
  color: rgba(241, 239, 232, 0.7);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.3s;
}
.free-actions__back:hover { color: rgba(241, 239, 232, 0.95); }
.seal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 20px;
  border: 1px solid rgba(241, 239, 232, 0.36);
  border-radius: 999px;
  background: rgba(241, 239, 232, 0.02);
  color: rgba(241, 239, 232, 0.35);
  font-size: 9px;
  letter-spacing: 0.17em;
  cursor: default;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.seal-btn svg { width: 13px; height: 13px; }
.seal-btn.is-ready {
  border-color: var(--ember);
  color: #17100a;
  background: var(--ember);
  cursor: pointer;
}
.seal-btn.is-ready:hover { background: var(--ember-hot); border-color: var(--ember-hot); }

/* Candelabrum */
.candelabrum-wrap {
  position: absolute;
  z-index: 3;
  left: clamp(-60px, 0.5vw, 26px);
  bottom: 0;
  width: clamp(230px, 25vw, 390px);
  height: min(88vh, 900px);
  pointer-events: none;
  filter: drop-shadow(26px 8px 40px rgba(0, 0, 0, 0.5));
}
.candelabrum {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.candle-halo {
  animation: halo-breathe 6s ease-in-out infinite;
  transform-origin: center;
}
.candle-halo:nth-of-type(2) { animation-delay: -2.1s; }
.candle-halo:nth-of-type(3) { animation-delay: -4.2s; }
@keyframes halo-breathe {
  0%, 100% { opacity: 0.68; }
  22% { opacity: 0.96; }
  39% { opacity: 0.76; }
  58% { opacity: 1; }
  74% { opacity: 0.83; }
}
.flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flame-dance 3.7s ease-in-out infinite;
}
.flame:nth-of-type(2) { animation-delay: -1.3s; animation-duration: 4.3s; }
.flame:nth-of-type(3) { animation-delay: -2.4s; animation-duration: 3.2s; }
@keyframes flame-dance {
  0%, 100% { transform: scale(1) rotate(0deg) skewX(0deg); }
  17% { transform: scale(0.96, 1.06) rotate(-1.4deg) skewX(1.5deg); }
  34% { transform: scale(1.03, 0.97) rotate(1.1deg) skewX(-1.2deg); }
  51% { transform: scale(0.98, 1.04) rotate(-0.5deg) skewX(0.8deg); }
  69% { transform: scale(1.04, 0.98) rotate(1.5deg) skewX(-1.6deg); }
  86% { transform: scale(0.99, 1.02) rotate(-0.8deg) skewX(0.7deg); }
}
.dust { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 206, 135, 0.7);
  box-shadow: 0 0 6px rgba(255, 180, 92, 0.5);
  opacity: 0;
  animation: mote 13s linear infinite;
}
@keyframes mote {
  0% { transform: translate3d(0, 18vh, 0) scale(0.5); opacity: 0; }
  16% { opacity: 0.7; }
  65% { opacity: 0.4; }
  100% { transform: translate3d(7vw, -72vh, 0) scale(1.1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sealing / result
   -------------------------------------------------------------------------- */
.sealing {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.sealing__mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: slow-spin 9s linear infinite;
}
.sealing__mark::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.sealing h2 {
  font-family: var(--display);
  margin: 0 0 16px;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 280;
  letter-spacing: -0.045em;
}
.sealing p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 2;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.sealing__line {
  width: min(440px, 70%);
  height: 1px;
  margin: 42px auto 0;
  background: var(--hair);
  overflow: hidden;
}
.sealing__line span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--ink);
  animation: seal-progress 1.8s var(--ease-in-out) infinite;
}
@keyframes seal-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(365%); }
}

.result {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.result__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.result__top b { font-weight: 500; color: var(--ink); }
.result__title {
  font-family: var(--display);
  margin: clamp(30px, 5vh, 54px) 0 0;
  font-size: clamp(54px, 8.6vw, 130px);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.062em;
}
.result__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.result__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
}
.result__sub p {
  max-width: 430px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-soft);
}
.result__data {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 54px);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--faint);
}
.result__data b {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.result__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(32px, 5vh, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.4s, color 0.4s;
}
.download:hover { background: transparent; color: var(--ink); }
.download svg { width: 17px; height: 17px; }
.download:disabled { opacity: 0.65; cursor: progress; }
.result__copy-status {
  margin: 18px 0 0;
  min-height: 1.7em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.result__text { margin-top: 28px; }
.result__text label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.result__text textarea {
  display: block;
  width: 100%;
  min-height: 260px;
  max-height: 70vh;
  padding: 20px;
  border: 1px solid var(--hair-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.9 var(--sans);
  resize: vertical;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.result__text textarea:focus-visible,
.result__actions button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.result__text p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.result__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.result__links a { border-bottom: 1px solid var(--hair-strong); padding-bottom: 2px; transition: color 0.3s; }
.result__links a:hover { color: var(--ink); }
.restart {
  margin-left: auto;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
  cursor: pointer;
  padding: 8px 0;
}
.restart:hover { color: var(--ink); }

.result__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 46px;
  margin-top: clamp(36px, 6vh, 64px);
  border-top: 1px solid var(--hair);
}
.summary-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.summary-row__num {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 3px;
}
.summary-row__q {
  margin: 0 0 4px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
.summary-row__a {
  margin: 0;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.summary-row--free .summary-row__a {
  font-family: var(--brush);
  font-size: 18px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Overlays
   -------------------------------------------------------------------------- */
.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transition-veil span {
  width: 1px;
  height: 0;
  background: var(--ink);
  opacity: 0.35;
}
.transition-veil.is-on span { animation: veil-line 0.7s var(--ease-in-out) both; }
@keyframes veil-line {
  0% { height: 0; opacity: 0; }
  45% { height: 26vh; opacity: 0.4; }
  100% { height: 0; opacity: 0; }
}

.ash-canvas {
  position: fixed;
  inset: 0;
  z-index: 65;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.noscript {
  max-width: 520px;
  margin: 20vh auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .rail { display: none; }
  .stage { padding-left: var(--gutter); }
  .q-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 44px; }
  .parchment-wrap { width: min(600px, 54vw); }
  .free-actions { width: min(600px, 54vw); }
  .free-stage { margin-left: clamp(4vw, 16vw, 20vw); }
}

@media (max-width: 900px) {
  :root { --chrome-h: 66px; }
  .stage { padding-top: calc(var(--chrome-h) + 20px); padding-bottom: 86px; }
  .cover__title { font-size: clamp(66px, 14.7vw, 124px); }
  .cover__bottom { grid-template-columns: 1fr auto; gap: 30px; }
  .cover__meta { display: none; }
  .q-grid { grid-template-columns: 1fr; gap: 26px; }
  .q-aside { display: none; }
  .q-title { font-size: clamp(35px, 6.5vw, 54px); }
  .q-en { font-size: 14px; }
  .free-stage { margin-left: 8vw; }
  .parchment-wrap { width: min(600px, 62vw); height: min(690px, 70vh); }
  .free-actions { width: min(600px, 62vw); }
  .free-actions__meta { display: none; }
  .candelabrum-wrap { left: -4vw; width: 29vw; }
}

@media (max-width: 680px) {
  :root { --gutter: 22px; }
  .frame { inset: 12px; }
  .chrome { padding-top: env(safe-area-inset-top); grid-template-columns: minmax(0, 1fr) auto; }
  .chrome__status { display: none; }
  .chrome__clock { display: none; }
  .chrome__right { grid-column: 2; }
  .brand__text { font-size: 8px; }
  .brand__text em { font-size: 7px; }
  .chrome__count b { font-size: 12px; }
  .stage {
    align-items: flex-start;
    padding-top: calc(var(--chrome-h) + 11px + env(safe-area-inset-top));
    padding-bottom: 76px;
  }
  .cover { justify-content: flex-start; padding-top: 3.5vh; }
  .cover__eyebrow { font-size: 7px; margin-bottom: 20px; }
  .cover__eyebrow::before { width: 22px; }
  .cover__title {
    font-size: clamp(52px, 18.2vw, 86px);
    line-height: 0.9;
    letter-spacing: -0.064em;
  }
  .cover__title .line--cn { padding-left: 0; letter-spacing: 0.035em; }
  .cover__pinyin { margin-top: 16px; font-size: 8px; letter-spacing: 0.4em; }
  .cover__rule { margin-top: 24px; }
  .cover__rule span { font-size: 6px; letter-spacing: 0.14em; }
  .cover__bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 23px;
  }
  .cover__meta {
    display: flex;
    flex-direction: row;
    order: 3;
    margin-top: 4px;
    border-top: 1px solid var(--hair);
  }
  .cover__meta div {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 11px 0 0;
    border-bottom: 0;
    font-size: 6.5px;
  }
  .cover__meta b { font-size: 8px; }
  .cover__lede-cn { font-size: 16px; line-height: 1.6; margin-bottom: 9px; }
  .cover__lede-en { font-size: 10px; line-height: 1.65; max-width: 320px; }
  .begin {
    width: 96px;
    justify-self: start;
    margin-top: 2px;
    order: 2;
  }
  .begin__inner { font-size: 9px; gap: 5px; }
  .begin__inner small { font-size: 5.5px; }
  .begin__arrow { width: 17px; height: 17px; }

  .name-scene__top { grid-template-columns: 48px 1fr auto; gap: 14px; font-size: 7px; }
  .name-scene h2 { margin-top: 38px; font-size: clamp(44px, 13vw, 64px); }
  .name-scene__en { margin-bottom: 58px; }
  .name-field input { font-size: 28px; }

  .q-top { grid-template-columns: 54px 1fr; gap: 12px; font-size: 7px; }
  .q-top__index { white-space: nowrap; }
  .q-top__kind { display: none; }
  .q-grid { margin-top: 24px; }
  .q-title { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.24; letter-spacing: -0.035em; }
  .q-guide { font-size: 11.5px; line-height: 1.75; }
  .question.is-dense .q-title { font-size: clamp(25px, 7.1vw, 34px); line-height: 1.24; }
  .question.is-dense .option { min-height: 43px; }
  .question.is-dense .option__label { font-size: 15px; }
  .question.is-dense .q-guide { font-size: 10.5px; }
  .parchment__note { font-size: 9.5px; line-height: 1.55; }
  .q-supplement { margin-top: 18px; }
  .q-supplement input { font-size: 14px; min-height: 38px; }
  .free-invite { margin-top: 24px; padding-top: 16px; }
  .free-invite p { margin-bottom: 22px; font-size: 12.5px; }
  .inline-writing { margin-top: 18px; padding-top: 12px; }
  .inline-writing textarea { min-height: 180px; font-size: 16px; line-height: 1.8; padding: 12px; }
  .inline-writing.is-compact { margin-top: 12px; padding-top: 8px; }
  .inline-writing.is-compact textarea { min-height: 92px; }
  .question.free-only .inline-writing textarea { min-height: 190px; }
  .question.has-writing .q-title { font-size: clamp(24px, 6.8vw, 33px); }
  .question.has-writing .option { min-height: 38px; }
  .question.has-writing .option__label { font-size: 14.5px; }
  .question.has-writing .q-guide { font-size: 10px; }
  .question.has-writing .inline-writing { margin-top: 10px; }
  .question.has-writing .inline-writing textarea { min-height: 110px; }
  .question.has-writing .q-foot { margin-top: 10px; }
  .parchment__context { margin-top: 6px; padding: 5px 0 6px; gap: 7px; }
  .parchment__context b { font-size: 9px; }
  .summary-row__free { font-size: 18px; line-height: 1.6; }
  .q-en { margin-top: 10px; font-size: 13px; line-height: 1.5; }
  .options { margin-top: 26px; }
  .option { min-height: 52px; grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 7px; }
  .option__label { font-size: 16.5px; }
  .option:hover .option__label { transform: none; }
  .q-foot { margin-top: 26px; padding-top: 15px; gap: 12px; }
  .q-status { display: none; }
  .confirm__ring { width: 54px; height: 54px; }
  .confirm__label { font-size: 9px; }
  .confirm__label small { font-size: 5.5px; }
  .back { font-size: 7px; }
  .footer { inset: auto 22px 16px 22px; font-size: 6px; }
  .footer__center { display: none; }
  .footer__end { gap: 12px; }

  .free-layer {
    padding: 0;
    align-items: stretch;
    top: var(--vvt, 0px);
    bottom: auto;
    height: var(--vvh, 100svh);
  }
  .free-stage {
    margin-left: 0;
    width: 100%;
    height: 100%;
    padding: calc(62px + env(safe-area-inset-top)) 2vw calc(20px + env(safe-area-inset-bottom)) 14vw;
    justify-content: center;
    gap: 14px;
  }
  .parchment-wrap {
    width: 84vw;
    height: min(calc(var(--vvh, 100svh) * 0.64), 560px);
    flex: none;
  }
  .free-actions {
    width: 84vw;
    flex: none;
    padding: 0;
  }
  .free-actions__back { font-size: 7.5px; color: rgba(241,239,232,.82); }
  .seal-btn { min-height: 42px; padding: 0 16px; font-size: 8px; }
  .parchment__content { inset: 7.5% 9% 7%; }
  .parchment__title { font-size: 15px; margin-top: 10px; }
  .ink-area textarea { font-size: clamp(19px, 5.4vw, 22px); line-height: 1.78; }
  .parchment__seal { width: 52px; height: 52px; right: -10px; bottom: -12px; font-size: 15px; }
  .candelabrum-wrap {
    left: -8vw;
    bottom: -2vh;
    width: 72vw;
    height: 78vh;
    opacity: 0.95;
  }
  .free-warmth { left: -40vw; width: 120vw; }
  .dust { display: none; }

  .sealing h2 { font-size: 42px; }
  .sealing p { font-size: 7px; }

  .result { padding-bottom: 30px; }
  .result__top { font-size: 6.5px; gap: 10px; }
  .result__top span:first-child { white-space: nowrap; }
  .result__top span:last-child { display: none; }
  .result__title { font-size: clamp(48px, 15vw, 74px); line-height: 0.96; }
  .result__sub { display: block; margin-top: 20px; }
  .result__sub p { font-size: 15px; }
  .result__data { margin-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .result__data b { font-size: 9px; }
  .result__actions { flex-wrap: wrap; gap: 16px; }
  .result__text textarea { padding: 16px; font-size: 14px; }
  .download { min-height: 54px; padding: 0 20px; font-size: 10px; width: 100%; justify-content: space-between; }
  .result__links { font-size: 7px; }
  .restart { margin-left: 0; }
  .result__summary { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .summary-row { padding: 12px 0; }
}

@media (max-width: 390px) {
  .cover__title { font-size: 17.8vw; }
  .cover__lede-en { display: none; }
}

@media (max-height: 720px) and (min-width: 681px) {
  .cover__title { font-size: clamp(66px, 10.8vw, 142px); }
  .cover__bottom { margin-top: 18px; }
  .cover__lede-en { display: none; }
  .q-title { font-size: clamp(34px, 3.9vw, 54px); }
  .q-grid { margin-top: 26px; }
  .options { margin-top: 24px; }
  .option { min-height: 50px; }
  .parchment-wrap { height: 74vh; }
  .parchment__title { font-size: 17px; }
  .ink-area textarea { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal > span { transform: none; }
}
