:root {
  --ink: #1f332c;
  --ink-soft: #344d43;
  --jade: #386b5c;
  --jade-light: #91aaa0;
  --paper: #f7f4ea;
  --paper-deep: #e9e4d7;
  --cinnabar: #a74435;
  --cinnabar-dark: #823126;
  --muted: #59675f;
  --line: rgba(38, 55, 48, 0.15);
  --white-line: rgba(38, 55, 48, 0.14);
  --shadow: 0 24px 80px rgba(41, 62, 54, 0.2);
  --song: "Songti SC", "STSong", "SimSun", serif;
  --kai: "FZKai-Z03", "Kaiti SC", "STKaiti", "KaiTi", "Kaiti TC", serif;
  --fangsong: "STFangsong", "FangSong", "KaiTi", serif;
  --serif: var(--song);
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e7f0eb;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #e7f0eb;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(165, 59, 45, 0.38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.app-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
}

.screen {
  min-height: 100vh;
  min-height: 100svh;
}

.hero-screen {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper) url("./assets/archive-table.jpg") center / cover no-repeat;
}

.hero-image,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.08) saturate(0.82) contrast(0.96);
}

.hero-wash {
  background:
    linear-gradient(180deg, rgba(247, 244, 234, 0.1) 0%, rgba(247, 244, 234, 0.1) 24%, rgba(247, 244, 234, 0.68) 56%, rgba(247, 244, 234, 0.98) 79%, var(--paper) 100%),
    linear-gradient(90deg, rgba(247, 244, 234, 0.46), rgba(247, 244, 234, 0.04) 72%);
}

.hero-decoration {
  position: absolute;
  z-index: 2;
  top: 21%;
  right: max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(31, 51, 44, 0.48);
  pointer-events: none;
}

.hero-decoration-copy {
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: 0.24em;
  line-height: 1.4;
  writing-mode: vertical-rl;
}

.hero-decoration i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(167, 68, 53, 0.68), transparent);
}

.hero-decoration-seal {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(167, 68, 53, 0.74);
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 16px;
}

.brand-bar,
.hero-copy,
.hero-footer {
  position: relative;
  z-index: 2;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: max(22px, calc(env(safe-area-inset-top, 0px) + 10px)) 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--kai);
  font-size: 22px;
  line-height: 1;
}

.brand b {
  display: block;
  font-family: var(--song);
  font-size: 17px;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.edition {
  color: var(--muted);
  font-size: 11px;
}

.hero-copy {
  display: grid;
  width: min(100%, 740px);
  min-height: 0;
  margin: 0 auto;
  padding: 22px 22px 10px;
  flex: 1;
  grid-template-rows: minmax(0, 1.08fr) auto minmax(0, 0.92fr);
}

.hero-main-copy {
  width: 100%;
  padding-bottom: 18px;
  align-self: end;
}

.hero-main-copy::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--cinnabar);
}

.hero-copy > #enterButton {
  min-height: 64px;
  font-size: 16px;
  align-self: center;
  margin: 0;
}

.hero-detail-block {
  width: 100%;
  max-width: 430px;
  padding-top: 12px;
  align-self: start;
}

.kicker,
.band-kicker {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .kicker {
  color: var(--cinnabar);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--kai);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.hero-copy h1 em {
  color: var(--jade);
  font-style: normal;
  font-weight: 700;
}

.hero-lede {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta span {
  padding: 12px 18px 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-meta b {
  margin-right: 3px;
  color: var(--ink);
  font-family: var(--song);
  font-size: 20px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.button-primary {
  color: var(--paper);
  background: var(--cinnabar);
  letter-spacing: 0.06em;
}

.button-primary:hover {
  background: var(--cinnabar-dark);
}

.button-wide {
  width: 100%;
  max-width: 430px;
  justify-content: space-between;
}

.hero-copy .button-wide {
  border-color: rgba(173, 76, 59, 0.18);
  box-shadow: 0 14px 34px rgba(96, 38, 28, 0.16);
}

.demo-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.demo-note button {
  padding: 2px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.local-recovery {
  display: flex;
  width: 100%;
  max-width: 430px;
  margin-top: 18px;
  padding: 14px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.local-recovery p,
.local-recovery b,
.local-recovery small {
  display: block;
}

.local-recovery p {
  margin: 0 0 4px;
  color: var(--cinnabar);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.local-recovery b {
  color: var(--ink);
  font-family: var(--song);
  font-size: 17px;
  font-weight: 500;
}

.local-recovery small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.local-recovery button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--jade);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.local-recovery-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.local-recovery .local-recovery-all {
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.local-recovery-all span {
  margin-left: 3px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 12px;
}

.local-recovery-light {
  margin: 26px 0 0;
  border-color: var(--line);
  background: rgba(47, 97, 87, 0.05);
  backdrop-filter: none;
}

.local-recovery-light p {
  color: var(--cinnabar);
}

.local-recovery-light b {
  color: var(--ink);
}

.local-recovery-light small {
  color: var(--muted);
}

.local-recovery-light button {
  border-color: var(--line);
  color: var(--jade);
}

.local-history-link {
  min-height: 44px;
  align-self: flex-start;
  margin-top: 10px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.local-history-link span {
  margin-left: 3px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 12px;
}

.local-history-link-dark {
  margin-top: 10px;
  border-bottom-color: var(--line);
  color: var(--muted);
}

.local-history-link-dark span {
  color: var(--cinnabar);
}

#preferenceScreen .local-recovery,
#preferenceScreen .local-history-link {
  display: none !important;
}

.hero-footer {
  display: flex;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 22px max(20px, env(safe-area-inset-bottom, 0px));
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.simple-screen {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
  background:
    linear-gradient(rgba(247, 244, 234, 0.88), rgba(247, 244, 234, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 48, 0.028) 31px 32px),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--paper);
}

.screen-watermark {
  position: absolute;
  z-index: 0;
  right: -16px;
  bottom: 9%;
  color: rgba(56, 107, 92, 0.035);
  font-family: var(--kai);
  font-size: 230px;
  line-height: 0.8;
  pointer-events: none;
}

.screen-watermark-choose {
  right: -42px;
  bottom: -2%;
  color: rgba(167, 68, 53, 0.032);
  font-size: 230px;
}

.inner-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  width: 100%;
  padding: max(14px, calc(env(safe-area-inset-top, 0px) + 6px)) 18px 14px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mini-brand {
  font-family: var(--song);
  font-size: 15px;
  font-weight: 800;
}

.mini-edition {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.unlock-wrap,
.preference-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 10vh 24px 40px;
}

.ornament-seal {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 30px;
}

.unlock-wrap h2,
.preference-wrap h2 {
  margin: 0;
  font-family: var(--kai);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
}

.body-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.unlock-form {
  width: 100%;
  max-width: 380px;
  margin-top: 36px;
  margin-right: auto;
  margin-left: auto;
}

.code-input {
  display: block;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 15px 8px 17px;
  border: 1px solid rgba(31, 51, 44, 0.24);
  border-radius: 2px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.2)),
    var(--paper);
  box-shadow: inset 0 0 0 4px rgba(247, 244, 234, 0.72);
  font-family: var(--fangsong);
  font-size: 48px;
  text-align: center;
  letter-spacing: 0.5em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.code-input:focus {
  border-color: var(--jade);
  box-shadow:
    inset 0 0 0 4px rgba(247, 244, 234, 0.72),
    0 0 0 3px rgba(56, 107, 92, 0.1);
}

.code-input::placeholder {
  color: rgba(38, 55, 48, 0.2);
}

.form-error {
  min-height: 24px;
  margin: 10px 0;
  color: var(--cinnabar);
  font-size: 12px;
  text-align: center;
}

.unlock-form .button {
  margin: 6px auto 0;
}

.unlock-footnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.preference-wrap {
  padding-top: 6vh;
}

.preference-list {
  margin: 34px 0 24px;
  border-top: 1px solid var(--line);
}

.preference-option {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 16px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.preference-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--jade);
  font-family: var(--kai);
  font-size: 18px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.preference-option b,
.preference-option small {
  display: block;
}

.preference-option b {
  font-family: var(--song);
  font-size: 18px;
  font-weight: 700;
}

.preference-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.preference-check {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.preference-option.is-selected {
  background: rgba(47, 97, 87, 0.06);
}

.preference-option.is-selected .preference-mark {
  border-color: var(--jade);
  color: var(--paper);
  background: var(--jade);
}

.preference-option.is-selected .preference-check {
  border: 4px solid var(--jade);
}

.preference-wrap > .button {
  margin-left: auto;
  margin-right: auto;
}

.quiz-screen {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background:
    linear-gradient(rgba(247, 244, 234, 0.93), rgba(247, 244, 234, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 48, 0.028) 31px 32px),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--paper);
}

.quiz-screen::before {
  content: "问";
  position: absolute;
  z-index: 0;
  right: -12px;
  bottom: 12%;
  color: rgba(56, 107, 92, 0.025);
  font-family: var(--kai);
  font-size: 250px;
  line-height: 0.8;
  pointer-events: none;
}

.quiz-top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: max(14px, calc(env(safe-area-inset-top, 0px) + 6px)) 20px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quiz-heading,
.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-heading {
  margin-bottom: 13px;
}

.quiz-count {
  color: var(--muted);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.progress-line {
  height: 2px;
  overflow: hidden;
  background: rgba(16, 34, 31, 0.1);
}

.progress-line i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cinnabar);
  transition: width 260ms ease;
}

.quiz-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.question-stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 42px 20px 28px;
  flex: 1;
  flex-direction: column;
}

.question-index {
  margin: 0 0 14px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.question-title {
  max-width: 660px;
  margin: 0;
  font-family: var(--song);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.answer-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.answer-option {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.answer-option:hover {
  border-color: var(--jade);
  background: rgba(47, 97, 87, 0.05);
  transform: translateX(3px);
}

.answer-letter {
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 14px;
  text-align: center;
}

.answer-copy b {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.answer-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.answer-option.is-selected {
  border-color: var(--jade);
  color: var(--paper);
  background: var(--jade);
}

.answer-option.is-selected .answer-letter,
.answer-option.is-selected .answer-copy small {
  color: rgba(241, 238, 228, 0.7);
}

.quiz-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  color: var(--jade);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.text-button:disabled {
  color: rgba(113, 111, 99, 0.35);
  cursor: not-allowed;
}

.text-button-right {
  text-align: right;
}

.auto-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.result-screen {
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-bottom: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

.result-topbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 12px;
  padding: max(13px, calc(env(safe-area-inset-top, 0px) + 6px)) 16px 13px;
  color: var(--ink);
  background: rgba(247, 244, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex: 0 0 auto;
}

.archive-id {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.icon-button-light {
  width: 38px;
  height: 38px;
  border-color: var(--line);
  color: var(--ink);
}

.result-gallery {
  display: flex;
  min-height: 0;
  padding-top: 8px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 244, 234, 0.9), rgba(231, 240, 235, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(31, 51, 44, 0.025) 31px 32px),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--paper);
}

.result-deck {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 2px 20px 4px;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.result-deck::-webkit-scrollbar {
  display: none;
}

.result-card {
  flex: 0 0 min(82vw, 400px);
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 34px rgba(31, 51, 44, 0.11);
  scroll-snap-align: center;
}

.result-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.result-deck-meta {
  display: flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.result-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.result-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(31, 51, 44, 0.2);
  transition: width 160ms ease, background 160ms ease;
}

.result-dots i.is-active {
  width: 18px;
  border-radius: 99px;
  background: var(--cinnabar);
}

.result-deck-meta #resultCardTitle {
  color: var(--ink);
  font-family: var(--kai);
  font-size: 13px;
}

.report {
  width: min(100%, 780px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.report-cover {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper) url("./assets/archive-table.jpg") center / cover no-repeat;
}

.report-cover-image,
.report-cover-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.report-cover-image {
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.08) saturate(0.82) contrast(0.96);
}

.report-cover-wash {
  background:
    linear-gradient(180deg, rgba(247, 244, 234, 0.08), rgba(247, 244, 234, 0.48) 44%, rgba(247, 244, 234, 0.98) 74%, var(--paper)),
    linear-gradient(90deg, rgba(247, 244, 234, 0.46), rgba(247, 244, 234, 0.04) 72%);
}

.report-cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 540px;
  padding: 92px 24px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover-label {
  margin: 0 0 18px;
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.match-ring {
  position: absolute;
  top: 28px;
  right: 24px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(38, 55, 48, 0.32);
  border-radius: 50%;
  background: rgba(247, 244, 234, 0.5);
  text-align: center;
}

.match-ring b {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  color: var(--ink);
}

.match-ring small {
  font-size: 12px;
}

.match-ring em {
  display: block;
  margin-top: -8px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.name-seal {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 24px;
}

.report-cover h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.08;
}

.person-title {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.person-archetype {
  margin: 18px 0 0;
  color: var(--jade);
  font-family: var(--serif);
  font-size: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.tag-row span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.paper-band {
  padding: 42px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 244, 234, 0.92), rgba(247, 244, 234, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 48, 0.035) 31px 32px),
    var(--paper);
}

.paper-band:last-child {
  border-bottom: 0;
}

.paper-band h2 {
  margin: 0 0 22px;
  font-family: var(--kai);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.paper-band p {
  margin: 0;
  color: #4e5c55;
  font-size: 15px;
  line-height: 1.95;
}

.report-intro blockquote {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--kai);
  font-size: 26px;
  line-height: 1.52;
}

.band-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dominant-label {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(165, 59, 45, 0.24);
  color: var(--cinnabar);
  font-size: 10px;
}

.dimension-list {
  display: grid;
  gap: 16px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 12px;
}

.dimension-row span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

.dimension-row i {
  display: block;
  height: 4px;
  background: rgba(16, 34, 31, 0.1);
}

.dimension-row i b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--jade);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dimension-row em {
  color: var(--jade);
  font-family: var(--serif);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.echo-list {
  border-top: 1px solid var(--line);
}

.echo-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.echo-item > span {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 12px;
}

.echo-item h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.split-band > div + div {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.modern-copy {
  font-size: 15px !important;
}

.practice-line {
  display: grid;
  margin-top: 28px;
  padding: 18px 0;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-line span {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 13px;
}

.practice-line p {
  font-size: 13px;
}

.signature-band {
  color: var(--ink);
  background:
    linear-gradient(rgba(228, 238, 231, 0.94), rgba(238, 242, 233, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(38, 55, 48, 0.035) 30px 31px),
    #e4eee7;
}

.signature-band blockquote {
  margin: 0 0 36px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.46;
}

.signature-brand {
  color: rgba(31, 51, 44, 0.58) !important;
  font-size: 9px !important;
  letter-spacing: 0.12em;
}

.result-actions {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 20px max(10px, env(safe-area-inset-bottom, 0px));
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(247, 244, 234, 0.98);
}

.result-actions > * {
  margin: 0 auto;
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 430px;
  margin: 0 auto;
}

.export-actions .button {
  min-height: 50px;
  margin: 0 auto;
}

.result-secondary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 430px;
  margin: 8px auto 0;
}

.result-secondary-actions .button {
  min-height: 40px;
}

.button-outline {
  border-color: var(--line);
  color: var(--jade);
  background: transparent;
}

.button-quiet {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.result-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  padding: max(18px, calc(env(safe-area-inset-top, 0px) + 10px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: rgba(226, 235, 229, 0.84);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  margin: auto;
  padding: 20px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(31, 51, 44, 0.24);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head .band-kicker {
  margin-bottom: 5px;
}

.modal-head h2,
.reward-panel h2 {
  margin: 0;
  font-family: var(--kai);
  font-weight: 700;
  line-height: 1.25;
}

.modal-head h2 {
  font-size: 24px;
}

.poster-panel {
  width: min(100%, 1120px);
}

.poster-deck {
  display: flex;
  gap: 14px;
  margin: 0 -4px;
  padding: 2px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.poster-slide {
  flex: 0 0 min(82vw, 330px);
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  scroll-snap-align: center;
}

.poster-slide.is-long {
  flex-basis: min(88vw, 590px);
  margin: 0 auto;
}

.poster-slide img {
  display: block;
  width: 100%;
  max-height: 58vh;
  max-height: 58svh;
  object-fit: contain;
  background: var(--paper-deep);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

.poster-slide.is-long img {
  max-height: 70vh;
  max-height: 70svh;
}

.poster-slide figcaption {
  display: flex;
  min-height: 42px;
  padding: 8px 2px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-slide figcaption > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.poster-slide figcaption b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.poster-slide figcaption i {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 12px;
  font-style: normal;
}

.poster-download {
  flex: 0 0 auto;
  color: var(--jade);
  font-size: 11px;
  text-decoration: none;
}

.modal-tip {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.reward-panel {
  padding: 34px 26px 28px;
  text-align: center;
}

.reward-panel .ornament-seal {
  margin: 0 auto 24px;
}

.reward-panel h2 {
  font-size: 34px;
}

.reward-panel > p:not(.band-kicker):not(.modal-tip) {
  margin: 16px auto 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.reward-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.reward-code {
  display: flex;
  margin: 0 0 22px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reward-code span {
  color: var(--muted);
  font-size: 11px;
}

.reward-code b {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.reward-panel .button {
  margin: 0 auto;
}

.history-panel {
  width: min(100%, 620px);
}

.history-intro {
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-empty {
  margin: 0;
  padding: 30px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.history-item b,
.history-item span,
.history-item small {
  display: block;
}

.history-item b {
  font-family: var(--song);
  font-size: 20px;
  font-weight: 700;
}

.history-item span {
  margin-top: 3px;
  color: var(--cinnabar);
  font-size: 11px;
}

.history-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.history-item button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--jade);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border-radius: 2px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 699px) {
  .hero-decoration {
    display: none;
  }

  .hero-screen,
  .simple-screen,
  .quiz-screen {
    height: var(--app-height, 100vh);
    min-height: 0;
    max-height: var(--app-height, 100vh);
  }

  .hero-screen {
    overflow: hidden;
  }

  .brand-bar {
    flex: 0 0 auto;
  }

  .hero-copy {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px 20px 12px;
    flex: 1;
    grid-template-rows: minmax(0, 1.08fr) auto minmax(0, 0.92fr);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.06;
  }

  .hero-main-copy {
    padding-bottom: 14px;
  }

  .hero-detail-block {
    padding-top: 10px;
  }

  .hero-lede {
    display: -webkit-box;
    margin-top: 16px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-meta {
    margin: 0 0 8px;
  }

  .hero-meta span {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .local-recovery {
    margin-top: 10px;
    padding: 10px 12px;
  }

  .local-recovery p {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .local-recovery b {
    font-size: 15px;
  }

  .local-recovery small {
    margin-top: 2px;
    font-size: 9px;
  }

  .local-recovery button {
    min-height: 40px;
    padding: 7px 10px;
  }

  .demo-note {
    margin-top: 7px;
  }

  .hero-footer {
    display: none;
  }

  .simple-screen {
    display: flex;
    padding-bottom: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .inner-brand {
    flex: 0 0 auto;
  }

  .unlock-wrap,
  .preference-wrap {
    width: 100%;
    max-width: 560px;
    min-height: 0;
    padding: 20px 20px max(18px, env(safe-area-inset-bottom, 0px));
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .unlock-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ornament-seal {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    font-size: 25px;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 34px;
    line-height: 1.18;
  }

  .body-copy {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  .unlock-form {
    margin-top: 20px;
  }

  .code-input {
    padding-top: 10px;
    padding-bottom: 12px;
    font-size: 40px;
  }

  .form-error {
    min-height: 18px;
    margin: 6px 0;
  }

  .unlock-footnote {
    margin-top: 14px;
    font-size: 10px;
  }

  .preference-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .preference-list {
    margin: 22px 0 16px;
  }

  .preference-option {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .preference-wrap > .button {
    min-height: 46px;
    margin-top: auto;
  }

  .quiz-screen {
    overflow: hidden;
  }

  .quiz-top {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }

  .quiz-heading {
    margin-bottom: 8px;
  }

  .quiz-meta {
    margin-top: 5px;
  }

  .question-stage {
    width: 100%;
    min-height: 0;
    padding: 18px 16px 10px;
    flex: 1;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .question-index {
    margin-bottom: 8px;
  }

  .question-title {
    font-size: 26px;
    line-height: 1.34;
  }

  .answer-list {
    gap: 8px;
    margin-top: 18px;
  }

  .answer-option {
    min-height: 60px;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    padding: 10px 12px;
  }

  .answer-copy b {
    font-size: 16px;
    line-height: 1.35;
  }

  .answer-copy small {
    margin-top: 3px;
    font-size: 10px;
  }

  .quiz-footer {
    flex: 0 0 auto;
    padding-top: 9px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(38, 55, 48, 0.08);
    background: rgba(247, 244, 234, 0.98);
  }

  .result-card {
    flex-basis: min(84vw, 360px);
  }

  .result-deck {
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .result-note {
    display: none;
  }
}

@media (max-width: 699px) and (max-height: 700px) {
  .brand-bar {
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 5px));
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand b {
    font-size: 16px;
  }

  .hero-copy {
    padding: 16px 16px 8px;
  }

  .hero-main-copy {
    padding-bottom: 10px;
  }

  .hero-detail-block {
    padding-top: 6px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy .kicker {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .hero-lede {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }

  .hero-meta {
    margin: 0 0 6px;
  }

  .hero-meta span {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .hero-meta b {
    font-size: 18px;
  }

  .hero-copy .button-wide {
    min-height: 58px;
  }

  .local-recovery small {
    display: none;
  }

  .unlock-wrap,
  .preference-wrap {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .unlock-wrap {
    justify-content: flex-start;
  }

  .ornament-seal {
    display: none;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 29px;
    line-height: 1.16;
  }

  .unlock-wrap .kicker,
  .preference-wrap .kicker {
    margin-bottom: 8px;
  }

  .body-copy {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.6;
  }

  .unlock-form {
    margin-top: 13px;
  }

  .code-input {
    padding-top: 6px;
    padding-bottom: 8px;
    font-size: 36px;
  }

  .unlock-footnote {
    display: none;
  }

  .preference-wrap {
    justify-content: flex-start;
  }

  .preference-list {
    margin: 12px 0 10px;
  }

  .preference-option {
    min-height: 60px;
    grid-template-columns: 42px 1fr 20px;
    gap: 10px;
    padding: 7px 4px;
  }

  .preference-mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .preference-option b {
    font-size: 16px;
  }

  .preference-option small {
    display: none;
  }

  .preference-wrap > .button {
    min-height: 44px;
  }

  .quiz-top {
    padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 4px));
    padding-bottom: 8px;
  }

  .question-stage {
    padding: 12px 14px 6px;
  }

  .question-title {
    font-size: 23px;
    line-height: 1.3;
  }

  .answer-list {
    gap: 6px;
    margin-top: 12px;
  }

  .answer-option {
    min-height: 52px;
    padding: 8px 10px;
  }

  .answer-copy b {
    font-size: 15px;
  }

  .answer-copy small {
    display: none;
  }

  .quiz-footer {
    padding-top: 6px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .result-topbar {
    padding-top: max(8px, calc(env(safe-area-inset-top, 0px) + 4px));
    padding-bottom: 8px;
  }

  .result-gallery {
    padding-top: 4px;
  }

  .result-card {
    flex-basis: min(78vw, 330px);
  }

  .result-deck-meta {
    min-height: 28px;
  }

  .result-actions {
    padding: 6px 12px max(7px, env(safe-area-inset-bottom, 0px));
  }

  .export-actions .button {
    min-height: 44px;
  }

  .result-secondary-actions {
    margin-top: 6px;
  }

  .result-secondary-actions .button {
    min-height: 36px;
    font-size: 11px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .quiz-screen {
    height: var(--app-height, 100vh);
    min-height: 0;
    max-height: var(--app-height, 100vh);
    overflow: hidden;
  }

  .quiz-top {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .question-stage {
    min-height: 0;
    padding: 10px 24px 4px;
    overflow-y: auto;
  }

  .question-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .answer-list {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  .answer-option {
    min-height: 64px;
    align-items: center;
    padding: 7px 10px;
  }

  .answer-copy small {
    display: none;
  }

  .quiz-footer {
    padding-top: 5px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }
}

.report-cover {
  background: rgba(255, 255, 255, 0.96);
}

.report-cover-content {
  padding: 30px 22px 26px;
}

.cover-label {
  margin-bottom: 10px;
  color: #6d5da8;
  font-size: 15px;
  font-weight: 700;
}

.match-ring {
  margin-bottom: 8px;
}

.match-ring b {
  font-size: 66px;
}

.match-ring small {
  font-size: 25px;
}

.match-ring em {
  color: #8178a4;
  font-size: 12px;
}

.name-seal {
  display: none !important;
}

.report-cover h1 {
  max-width: 100%;
  margin: 8px 0 0;
  color: #2d2458;
  font-family: var(--song);
  font-size: clamp(48px, 15vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

.person-title {
  margin: 8px 0 0;
  color: #8279ae;
  font-size: 15px;
  line-height: 1.55;
}

.person-archetype {
  margin: 15px 0 11px;
  color: #514783;
  font-size: 22px;
  font-weight: 800;
}

.tag-row {
  gap: 8px;
  margin-top: 0;
  justify-content: center;
}

.tag-row span {
  padding: 7px 14px;
  border-color: rgba(103, 85, 178, 0.16);
  border-radius: 99px;
  color: #6755b2;
  background: rgba(103, 85, 178, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.cover-dominant {
  margin-top: 11px !important;
  padding: 7px 14px;
  border: 0;
  border-radius: 99px;
  color: #6755b2 !important;
  background: #f1edf9;
  font-size: 14px !important;
  font-weight: 700;
}

.cover-dominant b {
  font-family: var(--sans);
  font-size: 14px;
}

.cover-quote {
  width: 100%;
  margin: 18px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(103, 85, 178, 0.09);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 228, 242, 0.86), rgba(237, 234, 245, 0.72));
  text-align: left;
}

.cover-quote > span {
  display: block;
  margin-bottom: 6px;
  color: #6755b2;
  font-size: 13px;
  font-weight: 800;
}

.cover-quote p {
  margin: 0;
  color: #514a75;
  font-family: var(--kai);
  font-size: 18px;
  line-height: 1.75;
}

.report-intro {
  padding-top: 24px;
}

.report-intro #personSummary {
  margin-top: 0;
}

@media (max-width: 699px) {
  .report-cover-content {
    padding: 27px 20px 24px;
  }

  .match-ring b {
    font-size: 60px;
  }

  .report-cover h1 {
    font-size: clamp(48px, 15vw, 60px);
  }

  .cover-quote p {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .report-cover h1 {
    font-size: 48px;
  }

  .match-ring b {
    font-size: 56px;
  }

  .person-archetype {
    font-size: 21px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.2);
  }

  .hero-copy {
    padding-right: 44px;
    padding-left: 44px;
    padding-bottom: 52px;
  }

  .hero-copy h1 {
    font-size: 78px;
  }

  .brand-bar,
  .hero-footer {
    padding-right: 44px;
    padding-left: 44px;
  }

  .unlock-wrap,
  .preference-wrap {
    padding-top: 10vh;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 50px;
  }

  .question-stage {
    padding-top: 62px;
  }

  .question-title {
    font-size: 40px;
  }

  .answer-list {
    grid-template-columns: 1fr 1fr;
  }

  .answer-option {
    min-height: 110px;
    align-items: flex-start;
    padding: 20px 18px;
  }

  .paper-band {
    padding: 54px 52px;
  }

  .report-cover,
  .report-cover-content {
    min-height: 620px;
  }

  .report-cover-content {
    padding: 84px 48px 40px;
  }

  .report-cover h1 {
    font-size: 78px;
  }

  .paper-band h2 {
    font-size: 32px;
  }

  .report-intro blockquote {
    font-size: 33px;
  }

  .signature-band blockquote {
    font-size: 40px;
  }

  .match-ring {
    top: 42px;
    right: 48px;
  }

  .split-band {
    grid-template-columns: 1fr 1fr;
    gap: 46px;
  }

  .split-band > div + div {
    padding-top: 0;
    padding-left: 46px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 420px) {
  .hero-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-footer {
    flex-direction: column;
    gap: 5px;
  }

  .hero-meta span {
    padding-right: 11px;
    font-size: 10px;
  }

  .hero-meta span + span {
    padding-left: 11px;
  }

  .question-stage {
    padding-right: 16px;
    padding-left: 16px;
  }

  .answer-copy b {
    font-size: 16px;
  }

  .quiz-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .auto-note {
    display: none;
  }

  .paper-band {
    padding-right: 20px;
    padding-left: 20px;
  }

  .report-cover-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .match-ring {
    right: 18px;
  }

  .result-secondary-actions {
    grid-template-columns: 1fr;
  }

  .export-actions {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-item button {
    justify-self: start;
  }
}

.question-title {
  display: -webkit-box;
  width: 100%;
  height: 2.8em;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media (max-width: 699px) {
  .question-title {
    height: 2.68em;
    min-height: 2.68em;
    max-height: 2.68em;
  }
}

@media (max-width: 699px) and (max-height: 700px) {
  .question-title {
    height: 2.6em;
    min-height: 2.6em;
    max-height: 2.6em;
  }
}

@media (max-width: 360px) {
  .question-title {
    height: 2.48em;
    min-height: 2.48em;
    max-height: 2.48em;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .question-title {
    height: 2.5em;
    min-height: 2.5em;
    max-height: 2.5em;
  }
}

@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 34px;
  }

  .brand-bar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .result-topbar {
    grid-template-columns: 1fr 44px;
    gap: 8px;
  }

  .result-topbar .archive-id {
    display: none;
  }

  .hero-meta span {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-meta span:first-child {
    padding-left: 0;
  }

  .hero-copy {
    padding-top: 48px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 14px;
  }

  .hero-meta {
    margin-top: 22px;
    margin-bottom: 20px;
  }

  .unlock-wrap,
  .preference-wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 32px;
  }

  .question-title {
    font-size: 27px;
  }

  .report-cover h1 {
    font-size: 50px;
  }

  .paper-band h2 {
    font-size: 24px;
  }

  .modal {
    padding-right: 10px;
    padding-left: 10px;
  }

  .modal-panel {
    padding: 16px;
  }

  .poster-deck {
    gap: 9px;
  }

  .poster-slide {
    flex-basis: 86vw;
    padding: 5px;
  }
}

@media (max-width: 360px) and (max-height: 700px) {
  .hero-copy {
    padding: 16px 16px 8px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-lede {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
  }

  .hero-meta {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 29px;
  }

  .question-title {
    font-size: 23px;
  }

  .answer-copy b {
    font-size: 15px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-copy {
    padding: 8px 24px 6px;
    grid-template-rows: minmax(0, 1.28fr) auto minmax(0, 0.72fr);
  }

  .hero-main-copy {
    padding-bottom: 8px;
  }

  .hero-copy .kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 1;
  }

  .hero-lede {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }

  .hero-copy > #enterButton {
    min-height: 54px;
    font-size: 15px;
    max-width: 360px;
  }

  .hero-detail-block {
    max-width: 360px;
    padding-top: 6px;
  }

  .hero-meta span {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 9px;
  }

  .hero-meta b {
    font-size: 17px;
  }

  .demo-note {
    margin-top: 4px;
    font-size: 9px;
  }

  .simple-screen,
  .quiz-screen {
    height: var(--app-height, 100vh);
    min-height: 0;
    max-height: var(--app-height, 100vh);
    overflow: hidden;
  }

  .simple-screen {
    display: flex;
    flex-direction: column;
  }

  .inner-brand {
    flex: 0 0 auto;
    padding: 8px 18px;
  }

  .unlock-wrap,
  .preference-wrap {
    width: 100%;
    max-width: 720px;
    min-height: 0;
    padding: 8px 24px 12px;
    flex: 1;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .ornament-seal,
  .unlock-wrap .kicker,
  .preference-wrap .kicker,
  .unlock-footnote,
  .preference-option small {
    display: none;
  }

  .preference-wrap .body-copy {
    display: none;
  }

  .unlock-wrap h2,
  .preference-wrap h2 {
    font-size: 26px;
    line-height: 1.12;
  }

  .body-copy {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  .unlock-form {
    margin-top: 8px;
  }

  .form-error {
    min-height: 14px;
    margin: 2px 0;
  }

  .code-input {
    padding-top: 3px;
    padding-bottom: 5px;
    font-size: 32px;
  }

  .preference-list {
    margin: 8px 0;
  }

  .preference-option {
    min-height: 48px;
    grid-template-columns: 38px 1fr 20px;
    gap: 9px;
    padding: 5px 4px;
  }

  .preference-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .preference-option b {
    font-size: 15px;
  }

  .preference-wrap > .button {
    min-height: 42px;
    margin-top: 0;
  }

  .quiz-top {
    padding: 8px 20px 6px;
  }

  .quiz-heading {
    margin-bottom: 4px;
  }

  .quiz-meta {
    margin-top: 3px;
  }

  .question-stage {
    min-height: 0;
    padding: 10px 24px 4px;
    overflow-y: hidden;
  }

  .question-index {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .question-title {
    font-size: 22px;
    line-height: 1.24;
  }

  .answer-list {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  .answer-option {
    min-height: 64px;
    align-items: center;
    padding: 7px 10px;
  }

  .answer-copy b {
    font-size: 15px;
    line-height: 1.3;
  }

  .answer-copy small {
    display: none;
  }

  .quiz-footer {
    padding: 4px 20px max(5px, env(safe-area-inset-bottom, 0px));
  }

  .text-button {
    min-height: 34px;
    padding: 2px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Access gate and report-first result layout */
.unlock-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(167, 68, 53, 0.42);
  color: var(--cinnabar);
  font-family: var(--song);
  font-size: 18px;
  font-weight: 700;
}

.result-screen {
  display: block;
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--paper);
}

.result-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.result-gallery {
  display: none !important;
}

.report {
  display: flex;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 16px 16px 28px;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  background:
    linear-gradient(rgba(241, 238, 228, 0.86), rgba(241, 238, 228, 0.94)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--paper);
  box-shadow: none;
}

.report-card {
  border: 1px solid rgba(38, 55, 48, 0.14);
  border-radius: 8px;
  box-shadow: 0 9px 26px rgba(31, 51, 44, 0.07);
}

.report-cover {
  min-height: 520px;
  border-radius: 8px;
}

.report-cover-content {
  min-height: 520px;
  padding: 84px 24px 32px;
}

.cover-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.report-cover h1 {
  font-size: 58px;
}

.cover-dominant {
  display: inline-flex;
  margin: 20px 0 0 !important;
  padding: 7px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(167, 68, 53, 0.2);
  border-radius: 99px;
  color: var(--cinnabar) !important;
  background: rgba(255, 255, 255, 0.44);
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.cover-dominant b {
  font-family: var(--kai);
  font-size: 15px;
  font-weight: 700;
}

.paper-band {
  padding: 28px 26px;
  border-bottom: 0;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(252, 250, 243, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 48, 0.025) 31px 32px);
}

.band-kicker {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 9px;
  color: var(--cinnabar);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.band-kicker i {
  display: inline-grid;
  width: 28px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(167, 68, 53, 0.26);
  border-radius: 4px;
  font-family: var(--song);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0;
}

.paper-band h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--song);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.paper-band p {
  color: #45544d;
  line-height: 1.9;
}

.report-intro blockquote.voice-box {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(38, 55, 48, 0.12);
  border-radius: 6px;
  background: rgba(228, 238, 231, 0.56);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}

.voice-box span,
.gift-note > span,
.reality-note > span,
.insight-grid article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.voice-box p {
  margin: 0;
  color: var(--ink) !important;
  font-family: var(--kai);
  font-size: 18px;
  line-height: 1.7 !important;
}

.band-title-row {
  align-items: flex-end;
}

.dominant-label {
  max-width: 150px;
  border: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.dimension-list {
  gap: 15px;
}

.dimension-row {
  grid-template-columns: 42px 1fr 32px;
}

.dimension-row i {
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
}

.dimension-row i b {
  border-radius: inherit;
}

.dimension-row em {
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.echo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.echo-item {
  display: block;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(38, 55, 48, 0.11);
  border-radius: 6px;
  background: rgba(231, 240, 235, 0.48);
}

.echo-item > span {
  display: block;
  margin-bottom: 10px;
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
}

.echo-item h3 {
  margin-bottom: 9px;
  font-family: var(--song);
  font-size: 16px;
  line-height: 1.5;
}

.echo-item p {
  font-size: 12px;
  line-height: 1.75;
}

.gift-note,
.reality-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(38, 55, 48, 0.11);
  border-radius: 6px;
  background: rgba(247, 244, 234, 0.72);
}

.gift-note p,
.reality-note p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.insight-grid,
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.insight-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(38, 55, 48, 0.11);
  border-radius: 6px;
  background: rgba(247, 244, 234, 0.66);
}

.insight-grid article p {
  font-size: 12px;
  line-height: 1.75;
}

.signature-band {
  background:
    linear-gradient(rgba(228, 238, 231, 0.91), rgba(238, 242, 233, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(38, 55, 48, 0.03) 30px 31px),
    #e4eee7;
}

.voice-grid blockquote {
  min-height: 118px;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(38, 55, 48, 0.12);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  font-family: var(--kai);
  font-size: 16px;
  line-height: 1.65;
}

.signature-band blockquote.signature-line {
  margin: 22px 0 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(38, 55, 48, 0.14);
  color: var(--ink);
  font-family: var(--kai);
  font-size: 26px;
  line-height: 1.55;
}

.signature-band .signature-brand {
  margin-top: 0;
}

.result-actions {
  max-width: 860px;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(38, 55, 48, 0.12);
  background: rgba(247, 244, 234, 0.98);
}

.export-actions {
  max-width: 420px;
}

.result-secondary-actions {
  max-width: 420px;
}

@media (max-width: 699px) {
  .report {
    padding: 10px 10px 22px;
    gap: 10px;
  }

  .report-cover,
  .report-cover-content {
    min-height: 500px;
  }

  .report-cover-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .report-cover h1 {
    font-size: 50px;
  }

  .paper-band {
    padding: 23px 19px;
  }

  .paper-band h2 {
    font-size: 22px;
  }

  .echo-list,
  .insight-grid,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .echo-item,
  .insight-grid article {
    padding: 14px;
  }

  .voice-grid blockquote {
    min-height: 0;
  }

  .signature-band blockquote.signature-line {
    font-size: 23px;
  }

  .result-actions {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 360px) {
  .report-cover,
  .report-cover-content {
    min-height: 480px;
  }

  .report-cover h1 {
    font-size: 44px;
  }

  .match-ring {
    width: 82px;
    height: 82px;
  }

  .paper-band {
    padding: 21px 16px;
  }

  .band-title-row {
    display: block;
  }

  .dominant-label {
    display: block;
    margin: -8px 0 18px;
    text-align: left;
  }
}

/* Editorial archive report */
.report {
  background:
    linear-gradient(rgba(239, 235, 223, 0.9), rgba(239, 235, 223, 0.96)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    #efeade;
}

.report-cover {
  isolation: isolate;
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(250, 248, 240, 0.96) 0%, rgba(244, 239, 226, 0.94) 58%, rgba(226, 235, 228, 0.9) 100%),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat;
}

.report-cover::before {
  position: absolute;
  z-index: 1;
  top: 30px;
  bottom: 30px;
  left: 20px;
  width: 3px;
  content: "";
  background: linear-gradient(var(--cinnabar), rgba(167, 68, 53, 0.06));
}

.report-cover::after {
  position: absolute;
  z-index: 0;
  right: -26px;
  bottom: -50px;
  content: "鉴";
  color: rgba(31, 73, 63, 0.055);
  font-family: var(--kai);
  font-size: 250px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.report-cover-image,
.report-cover-wash {
  display: none;
}

.report-cover-content {
  min-height: 520px;
  padding: 80px 26px 34px 38px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}

.cover-label {
  position: absolute;
  top: 38px;
  left: 38px;
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 10px;
  color: var(--jade);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.cover-label::after {
  width: 44px;
  height: 1px;
  content: "";
  background: rgba(47, 97, 87, 0.35);
}

.match-ring {
  top: 74px;
  right: 24px;
  width: 96px;
  height: 96px;
  border-color: rgba(167, 68, 53, 0.38);
  background: rgba(250, 248, 240, 0.56);
}

.match-ring::before,
.match-ring::after {
  position: absolute;
  content: "";
  background: rgba(167, 68, 53, 0.22);
}

.match-ring::before {
  top: 8px;
  right: -7px;
  bottom: 8px;
  width: 1px;
}

.match-ring::after {
  top: -7px;
  right: 8px;
  left: 8px;
  height: 1px;
}

.match-ring b {
  color: var(--cinnabar);
  font-family: var(--song);
  font-size: 35px;
  font-weight: 800;
}

.name-seal {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid rgba(167, 68, 53, 0.66);
  box-shadow: inset 0 0 0 4px rgba(247, 244, 234, 0.88);
  color: var(--cinnabar);
  font-size: 27px;
}

.report-cover h1 {
  max-width: 100%;
  color: #172c26;
  font-family: var(--song);
  font-size: clamp(52px, 14vw, 70px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.person-title {
  margin-top: 13px;
  color: #63716a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.person-archetype {
  margin-top: 18px;
  color: var(--jade);
  font-family: var(--kai);
  font-size: 24px;
  font-weight: 700;
}

.tag-row {
  margin-top: 15px;
  justify-content: flex-start;
}

.tag-row span {
  padding: 7px 12px;
  border-color: rgba(38, 55, 48, 0.14);
  border-radius: 99px;
  color: #43544c;
  background: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 600;
}

.cover-dominant {
  margin-top: 18px !important;
  border-color: rgba(47, 97, 87, 0.18);
  color: var(--jade) !important;
  background: rgba(228, 238, 231, 0.72);
}

.report-card {
  border-color: rgba(38, 55, 48, 0.11);
  box-shadow: 0 7px 22px rgba(31, 51, 44, 0.055);
}

.paper-band {
  padding: 30px 27px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(250, 248, 241, 0.95)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 48, 0.018) 31px 32px);
}

.band-kicker {
  margin-bottom: 17px;
  gap: 10px;
  letter-spacing: 0.08em;
}

.band-kicker i {
  width: 31px;
  height: 23px;
  border-color: rgba(167, 68, 53, 0.32);
  border-radius: 3px;
  background: rgba(167, 68, 53, 0.035);
  font-size: 11px;
}

.paper-band h2 {
  margin-bottom: 21px;
  font-family: var(--song);
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.45;
}

#personSummary {
  color: #3f5048;
  font-size: 16px;
  line-height: 2;
}

#personSummary::first-letter {
  float: left;
  margin: 5px 6px 0 0;
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.86;
}

.report-intro blockquote.voice-box {
  position: relative;
  margin-top: 24px;
  padding: 23px 19px 18px;
  overflow: hidden;
  border-color: rgba(47, 97, 87, 0.13);
  background:
    linear-gradient(135deg, rgba(228, 238, 231, 0.68), rgba(247, 244, 234, 0.72));
}

.report-intro blockquote.voice-box::before {
  position: absolute;
  top: -10px;
  right: 13px;
  content: "“";
  color: rgba(47, 97, 87, 0.11);
  font-family: var(--kai);
  font-size: 90px;
  line-height: 1;
}

.voice-box span {
  position: relative;
  z-index: 1;
}

.voice-box p {
  position: relative;
  z-index: 1;
  font-size: 19px;
}

.dimension-row {
  grid-template-columns: 46px 1fr 38px;
  gap: 14px;
}

.dimension-row span {
  font-size: 15px;
  font-weight: 600;
}

.dimension-row i {
  height: 7px;
  background: rgba(31, 51, 44, 0.075);
}

.dimension-row i b {
  background: linear-gradient(90deg, #477b6d, #a2b7a5);
}

.dimension-row em {
  color: var(--ink);
  font-size: 15px;
}

.echo-list {
  gap: 9px;
}

.echo-item {
  position: relative;
  padding: 17px 16px 16px;
  border-color: rgba(38, 55, 48, 0.1);
  background: linear-gradient(160deg, rgba(231, 240, 235, 0.58), rgba(250, 248, 241, 0.8));
}

.echo-item:nth-child(2) {
  background: linear-gradient(160deg, rgba(247, 239, 226, 0.7), rgba(250, 248, 241, 0.84));
}

.echo-item:nth-child(3) {
  background: linear-gradient(160deg, rgba(237, 232, 225, 0.72), rgba(250, 248, 241, 0.84));
}

.echo-item h3 {
  color: #233a32;
  font-size: 17px;
}

.gift-note,
.reality-note {
  border-left: 3px solid rgba(167, 68, 53, 0.6);
  border-radius: 4px;
  background: rgba(247, 244, 234, 0.72);
}

.insight-grid article {
  background:
    linear-gradient(155deg, rgba(247, 242, 233, 0.92), rgba(239, 236, 225, 0.8));
}

.insight-grid article:nth-child(2) {
  border-color: rgba(167, 68, 53, 0.16);
  background: linear-gradient(155deg, rgba(250, 240, 234, 0.9), rgba(247, 244, 234, 0.82));
}

.insight-grid article:nth-child(3) {
  border-color: rgba(47, 97, 87, 0.16);
  background: linear-gradient(155deg, rgba(231, 240, 235, 0.82), rgba(247, 244, 234, 0.84));
}

.signature-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(16, 34, 31, 0.25);
  background:
    linear-gradient(145deg, rgba(20, 48, 41, 0.98), rgba(48, 87, 76, 0.96)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat;
}

.signature-band::before {
  position: absolute;
  z-index: -1;
  right: -36px;
  bottom: -70px;
  content: "问";
  color: rgba(247, 244, 234, 0.045);
  font-family: var(--kai);
  font-size: 260px;
  line-height: 1;
}

.signature-band .band-kicker {
  color: #dfb4a2;
}

.signature-band .band-kicker i {
  border-color: rgba(223, 180, 162, 0.4);
  background: rgba(255, 255, 255, 0.035);
}

.signature-band h2 {
  color: #f3eee1;
}

.voice-grid blockquote {
  min-height: 128px;
  border-color: rgba(247, 244, 234, 0.14);
  color: #f1ebde;
  background: rgba(255, 255, 255, 0.045);
}

.signature-band blockquote.signature-line {
  border-color: rgba(247, 244, 234, 0.16);
  color: #fff8ea;
  font-size: 28px;
}

.signature-band .signature-brand {
  color: rgba(243, 238, 225, 0.5) !important;
}

@media (max-width: 699px) {
  .report-cover,
  .report-cover-content {
    min-height: 510px;
  }

  .report-cover-content {
    padding: 76px 22px 30px 30px;
  }

  .report-cover::before {
    left: 14px;
  }

  .cover-label {
    top: 34px;
    left: 30px;
  }

  .match-ring {
    top: 68px;
    right: 18px;
  }

  .paper-band {
    padding: 25px 21px;
  }

  .paper-band h2 {
    font-size: 23px;
    text-wrap: balance;
  }

  .band-title-row {
    display: block;
  }

  .dominant-label {
    display: block;
    max-width: none;
    margin: -8px 0 18px;
    text-align: left;
  }

  .voice-grid blockquote {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .report-cover,
  .report-cover-content {
    min-height: 490px;
  }

  .report-cover-content {
    padding-right: 17px;
    padding-left: 27px;
  }

  .cover-label {
    left: 27px;
  }

  .report-cover h1 {
    font-size: 45px;
  }

  .match-ring {
    width: 84px;
    height: 84px;
  }

  .match-ring b {
    font-size: 31px;
  }

  .signature-band blockquote.signature-line {
    font-size: 24px;
  }
}

/* Readable editorial blend */
.result-topbar {
  background: rgba(244, 241, 247, 0.94);
}

.report {
  gap: 12px;
  padding: 14px 12px 28px;
  background:
    linear-gradient(rgba(238, 235, 242, 0.93), rgba(238, 235, 242, 0.97)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    #eeebf2;
}

.report-card {
  border: 1px solid rgba(79, 69, 91, 0.12);
  border-radius: 8px;
  background: rgba(252, 251, 249, 0.97);
  box-shadow: 0 7px 20px rgba(55, 47, 65, 0.055);
}

.report-cover {
  min-height: 500px;
  background:
    linear-gradient(155deg, rgba(252, 251, 249, 0.98), rgba(244, 240, 247, 0.97) 72%, rgba(234, 240, 236, 0.94)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat;
}

.report-cover::before {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cinnabar), #7a678d 42%, var(--jade));
}

.report-cover::after {
  right: -18px;
  bottom: -58px;
  color: rgba(97, 79, 116, 0.04);
}

.report-cover-content {
  min-height: 500px;
  padding: 40px 22px 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cover-label {
  position: static;
  display: block;
  margin: 0;
  color: #69597f;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cover-label::after {
  display: none;
}

.match-ring {
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  width: 104px;
  height: 104px;
  margin: 24px auto 18px;
  border: 1px solid rgba(101, 84, 126, 0.24);
  border-radius: 50%;
  background: rgba(236, 230, 242, 0.72);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.54);
}

.match-ring::before,
.match-ring::after {
  display: none;
}

.match-ring b {
  color: #66527f;
  font-family: var(--sans);
  font-size: 37px;
  font-weight: 900;
}

.match-ring em {
  color: #786d83;
  font-size: 9px;
}

.name-seal {
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border-color: rgba(167, 68, 53, 0.55);
  box-shadow: inset 0 0 0 3px rgba(252, 251, 249, 0.9);
  font-size: 24px;
}

.report-cover h1 {
  color: #1c2924;
  font-family: var(--song);
  font-size: clamp(50px, 13vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.person-title {
  margin-top: 11px;
  color: #70746f;
  font-size: 12px;
}

.person-archetype {
  margin-top: 16px;
  color: #315f54;
  font-family: var(--kai);
  font-size: 23px;
}

.tag-row {
  margin-top: 14px;
  justify-content: center;
}

.tag-row span {
  border-color: rgba(101, 84, 126, 0.13);
  color: #5b5265;
  background: rgba(241, 237, 245, 0.78);
}

.cover-dominant {
  margin-top: 16px !important;
  border-color: rgba(101, 84, 126, 0.16);
  color: #66527f !important;
  background: rgba(236, 230, 242, 0.7);
}

.paper-band {
  padding: 24px 20px;
  background: rgba(252, 251, 249, 0.97);
}

.section-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 9px;
}

.section-heading > span {
  display: inline-grid;
  min-width: 34px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  border-radius: 4px;
  color: #65517c;
  background: #ece6f2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section-heading h2 {
  min-width: 0;
  margin: 0;
  color: #202826;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
  text-wrap: balance;
}

.section-subtitle {
  margin: -8px 0 22px !important;
  color: #7a7d7a !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

#personSummary {
  color: #434b48;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
}

#personSummary::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.report-intro blockquote.voice-box {
  margin-top: 21px;
  padding: 18px 17px 17px;
  border-color: rgba(101, 84, 126, 0.12);
  border-radius: 7px;
  background: #f2eef5;
}

.report-intro blockquote.voice-box::before {
  color: rgba(101, 84, 126, 0.1);
}

.voice-box span,
.gift-note > span,
.reality-note > span,
.insight-grid article > span {
  color: #65517c;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 900;
}

.voice-box p {
  color: #2d3431 !important;
  font-family: var(--kai);
  font-size: 18px;
  line-height: 1.75 !important;
}

.dimension-list {
  gap: 15px;
}

.dimension-row {
  grid-template-columns: 48px 1fr 38px;
}

.dimension-row span {
  color: #333b38;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.dimension-row i {
  height: 7px;
  background: #ece9ef;
}

.dimension-row i b {
  background: linear-gradient(90deg, #726088, #a194af);
}

.dimension-row.is-dominant i b {
  background: linear-gradient(90deg, #315f54, #7c9c8e);
}

.dimension-row em {
  color: #65517c;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
}

.dimension-row.is-dominant em {
  color: #315f54;
}

.echo-list {
  gap: 9px;
}

.echo-item,
.echo-item:nth-child(2),
.echo-item:nth-child(3) {
  padding: 17px 15px;
  border-color: rgba(101, 84, 126, 0.1);
  border-radius: 7px;
  background: #f5f2f7;
}

.echo-item > span {
  color: #78658d;
  font-family: var(--sans);
}

.echo-item h3 {
  color: #26312d;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.echo-item p {
  color: #5b625f;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.75;
}

.gift-note,
.reality-note {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(101, 84, 126, 0.1);
  border-left: 3px solid #78658d;
  border-radius: 6px;
  background: #f4f0f7;
}

.gift-note p,
.reality-note p {
  color: #4a514e;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
}

.insight-grid article,
.insight-grid article:nth-child(2),
.insight-grid article:nth-child(3) {
  padding: 16px 14px;
  border-radius: 7px;
}

.insight-grid article {
  border-color: rgba(101, 84, 126, 0.1);
  background: #f5f2f7;
}

.insight-grid article:nth-child(2) {
  border-color: rgba(167, 92, 76, 0.12);
  background: #f8efeb;
}

.insight-grid article:nth-child(3) {
  border-color: rgba(49, 95, 84, 0.12);
  background: #eef4f0;
}

.insight-grid article p {
  color: #505754;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}

.signature-band {
  overflow: hidden;
  border-color: rgba(101, 84, 126, 0.12);
  background:
    linear-gradient(155deg, rgba(246, 243, 248, 0.98), rgba(238, 244, 240, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(38, 55, 48, 0.025) 30px 31px);
}

.signature-band::before {
  right: -22px;
  bottom: -55px;
  color: rgba(101, 84, 126, 0.045);
}

.signature-band .section-heading > span {
  color: #f8f5fa;
  background: #6c587f;
}

.signature-band .section-heading h2 {
  color: #24312c;
}

.voice-grid blockquote {
  min-height: 116px;
  padding: 15px;
  border-color: rgba(101, 84, 126, 0.11);
  border-radius: 7px;
  color: #343c38;
  background: rgba(255, 255, 255, 0.68);
  font-family: var(--kai);
  font-size: 16px;
  line-height: 1.7;
}

.signature-band blockquote.signature-line {
  margin: 21px 0 17px;
  border-color: rgba(101, 84, 126, 0.13);
  color: #27332e;
  font-family: var(--kai);
  font-size: 27px;
  line-height: 1.55;
}

.signature-band .signature-brand {
  color: #85848a !important;
}

.result-actions {
  background: rgba(244, 241, 247, 0.98);
}

.result-actions .button-primary {
  background: linear-gradient(90deg, #5e4c73, #76628a);
}

@media (max-width: 699px) {
  .report {
    padding: 10px 9px 24px;
    gap: 10px;
  }

  .report-cover,
  .report-cover-content {
    min-height: 480px;
  }

  .report-cover-content {
    padding: 34px 18px 28px;
  }

  .match-ring {
    width: 96px;
    height: 96px;
    margin-top: 22px;
  }

  .report-cover h1 {
    font-size: clamp(46px, 13vw, 58px);
  }

  .paper-band {
    padding: 22px 17px;
  }

  .section-heading {
    margin-bottom: 17px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-heading > span {
    min-width: 32px;
    height: 24px;
    font-size: 10px;
  }

  .section-subtitle {
    margin-bottom: 19px !important;
  }

  .echo-list,
  .insight-grid,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .voice-grid blockquote {
    min-height: 0;
  }

  .signature-band blockquote.signature-line {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .report-cover,
  .report-cover-content {
    min-height: 460px;
  }

  .report-cover h1 {
    font-size: 44px;
  }

  .match-ring {
    width: 88px;
    height: 88px;
    margin: 19px auto 15px;
  }

  .match-ring b {
    font-size: 32px;
  }

  .paper-band {
    padding: 20px 15px;
  }

  .section-heading h2 {
    font-size: 18px;
  }
}

/* Readability calibration from the live reference */
.result-screen {
  background:
    linear-gradient(145deg, #e8e4f2 0%, #efebf6 55%, #e5e0ee 100%);
}

.result-topbar {
  background: rgba(239, 236, 246, 0.9);
  border-bottom-color: rgba(103, 88, 143, 0.1);
}

.report {
  width: min(100%, 680px);
  gap: 18px;
  padding: 16px 16px 34px;
  background:
    linear-gradient(145deg, rgba(232, 228, 242, 0.94), rgba(239, 235, 246, 0.97) 55%, rgba(229, 224, 238, 0.95)),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat;
}

.report-card {
  border: 1px solid rgba(103, 88, 143, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(88, 72, 136, 0.09);
}

.report-cover {
  min-height: 0;
  background: rgba(255, 255, 255, 0.92);
}

.report-cover::before,
.report-cover::after {
  display: none;
}

.report-cover-content {
  min-height: 0;
  padding: 30px 22px 26px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cover-label {
  position: static;
  display: block;
  margin: 0 0 11px;
  color: #6d5da8;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.match-ring {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.match-ring b {
  display: inline;
  color: #6755b2;
  font-family: var(--sans);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.match-ring small {
  color: #6755b2;
  font-size: 24px;
  font-weight: 800;
}

.match-ring em {
  display: block;
  margin-top: 1px;
  color: #8178a4;
  font-size: 12px;
}

.name-seal {
  width: 42px;
  height: 42px;
  margin: 10px auto 12px;
  border-color: rgba(103, 85, 178, 0.35);
  color: #6755b2;
  box-shadow: none;
  font-size: 22px;
}

.report-cover h1 {
  margin: 0;
  color: #2d2458;
  font-family: var(--song);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.person-title {
  margin: 7px 0 15px;
  color: #8279a7;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

.person-archetype {
  margin: 0 0 12px;
  color: #514783;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
}

.tag-row {
  gap: 8px;
  margin-top: 0;
  justify-content: center;
}

.tag-row span {
  padding: 6px 13px;
  border-color: rgba(103, 85, 178, 0.16);
  border-radius: 99px;
  color: #6755b2;
  background: rgba(103, 85, 178, 0.08);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.cover-dominant {
  margin-top: 12px !important;
  padding: 7px 14px;
  border: 0;
  border-radius: 99px;
  color: #6755b2 !important;
  background: #f1edf9;
  font-size: 13px !important;
  font-weight: 700;
}

.cover-dominant b {
  font-family: var(--sans);
  font-size: 13px;
}

.paper-band {
  padding: 23px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.section-heading {
  display: block;
  margin-bottom: 16px;
}

.section-heading > span {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  color: #6755b2;
  background: transparent;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.section-heading > span::after {
  content: " · ";
}

.section-heading h2 {
  display: inline;
  margin: 0;
  color: #2d2458;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
  text-wrap: balance;
}

.section-subtitle {
  margin: -7px 0 18px !important;
  color: #8880aa !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

#personSummary {
  color: #514a75;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
}

.report-intro blockquote.voice-box {
  margin-top: 17px;
  padding: 15px 17px;
  border: 1px solid rgba(103, 85, 178, 0.09);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 228, 242, 0.8), rgba(237, 234, 245, 0.6));
}

.report-intro blockquote.voice-box::before {
  display: none;
}

.voice-box span,
.gift-note > span,
.reality-note > span,
.insight-grid article > span {
  color: #6755b2;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.voice-box p {
  color: #514a75 !important;
  font-family: var(--kai);
  font-size: 17px;
  line-height: 1.85 !important;
}

.dimension-list {
  gap: 12px;
}

.dimension-row {
  grid-template-columns: 64px 1fr 34px;
  gap: 10px;
}

.dimension-row span {
  color: #655d8f;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.dimension-row i {
  height: 8px;
  background: #f0edf8;
}

.dimension-row i b {
  background: linear-gradient(90deg, #7b68c8, #6b5db8);
}

.dimension-row.is-dominant i b {
  background: linear-gradient(90deg, #876fcf, #5f4fae);
}

.dimension-row em,
.dimension-row.is-dominant em {
  color: #6755b2;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
}

.echo-list {
  gap: 12px;
}

.echo-item,
.echo-item:nth-child(2),
.echo-item:nth-child(3) {
  padding: 18px 17px;
  border: 1px solid #e2dcf5;
  border-radius: 8px;
  background: #faf8ff;
}

.echo-item > span {
  margin-bottom: 7px;
  color: #7b68c8;
  font-size: 12px;
}

.echo-item h3 {
  margin-bottom: 7px;
  color: #2d2458;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
}

.echo-item p {
  color: #625b86;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

.gift-note,
.reality-note {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #e2dcf5;
  border-radius: 8px;
  background: #faf8ff;
}

.gift-note p,
.reality-note p {
  color: #625b86;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
}

.insight-grid {
  gap: 12px;
}

.insight-grid article,
.insight-grid article:nth-child(2),
.insight-grid article:nth-child(3) {
  padding: 18px 17px;
  border: 1px solid #e2dcf5;
  border-radius: 8px;
  background: #faf8ff;
}

.insight-grid article:nth-child(2) {
  background: #fcf8ff;
}

.insight-grid article:nth-child(3) {
  background: #f8f9ff;
}

.insight-grid article p {
  color: #625b86;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

.signature-band {
  border-color: rgba(103, 88, 143, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.signature-band::before {
  display: none;
}

.signature-band .section-heading > span {
  color: #6755b2;
  background: transparent;
}

.signature-band .section-heading h2 {
  color: #2d2458;
}

.voice-grid {
  gap: 12px;
}

.voice-grid blockquote {
  min-height: 112px;
  padding: 16px;
  border: 1px solid #e2dcf5;
  border-radius: 8px;
  color: #514a75;
  background: #faf8ff;
  font-family: var(--kai);
  font-size: 17px;
  line-height: 1.75;
}

.signature-band blockquote.signature-line {
  margin: 18px 0 15px;
  padding-top: 17px;
  border-color: #e2dcf5;
  color: #2d2458;
  font-family: var(--kai);
  font-size: 23px;
  line-height: 1.65;
}

.signature-band .signature-brand {
  color: #8d86ae !important;
  font-size: 12px !important;
}

.result-actions {
  width: min(100%, 680px);
  background: rgba(239, 236, 246, 0.96);
}

.result-actions .button-primary {
  background: linear-gradient(135deg, #7b68c8, #6b5db8);
}

@media (max-width: 699px) {
  .report {
    gap: 14px;
    padding: 14px 13px 30px;
  }

  .report-cover-content {
    padding: 27px 20px 24px;
  }

  .match-ring b {
    font-size: 58px;
  }

  .report-cover h1 {
    font-size: 36px;
  }

  .paper-band {
    padding: 22px 20px;
  }

  .section-heading,
  .section-heading > span,
  .section-heading h2 {
    font-size: 18px;
  }

  #personSummary,
  .echo-item p,
  .gift-note p,
  .reality-note p,
  .insight-grid article p {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .report {
    padding-right: 10px;
    padding-left: 10px;
  }

  .paper-band {
    padding: 20px 17px;
  }

  .report-cover h1 {
    font-size: 34px;
  }

  .match-ring b {
    font-size: 54px;
  }
}

/* Plum-paper journey palette */
:root {
  --plum: #66527f;
  --plum-deep: #4f3d68;
  --plum-soft: #ece7f3;
  --mist: #eeebf3;
  --mist-deep: #e5e0ec;
}

html,
body {
  background: var(--mist);
}

.app-shell {
  background: var(--paper);
}

.hero-image {
  filter: brightness(1.06) saturate(0.74) contrast(0.94) sepia(0.04);
}

.hero-screen {
  background: var(--mist) url("./assets/archive-table.jpg") center / cover no-repeat;
}

.hero-wash {
  background:
    linear-gradient(180deg, rgba(236, 232, 242, 0.12) 0%, rgba(236, 232, 242, 0.16) 24%, rgba(241, 238, 245, 0.72) 56%, rgba(238, 235, 243, 0.98) 79%, var(--mist) 100%),
    linear-gradient(90deg, rgba(236, 232, 242, 0.5), rgba(236, 232, 242, 0.04) 72%);
}

.hero-decoration {
  color: rgba(102, 82, 127, 0.48);
}

.hero-decoration i {
  background: linear-gradient(to bottom, rgba(102, 82, 127, 0.58), transparent);
}

.hero-main-copy::before {
  background: var(--plum);
}

.hero-copy h1 em {
  color: var(--plum);
}

.hero-meta b {
  color: var(--plum-deep);
}

.button-primary {
  border-color: rgba(102, 82, 127, 0.18);
  color: #fffaf4;
  background: linear-gradient(135deg, #78658d, #5f4c75);
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(84, 67, 105, 0.2);
}

.button-primary:hover {
  background: linear-gradient(135deg, #6f5b85, #513f67);
}

.hero-copy .button-wide {
  border-color: rgba(102, 82, 127, 0.2);
  box-shadow: 0 14px 34px rgba(82, 65, 104, 0.18);
}

.local-recovery {
  border-color: rgba(102, 82, 127, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.local-recovery p {
  color: var(--plum);
}

.local-recovery button {
  border-color: rgba(102, 82, 127, 0.18);
  color: var(--plum);
}

.simple-screen {
  background:
    linear-gradient(rgba(240, 237, 245, 0.9), rgba(242, 239, 246, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(102, 82, 127, 0.024) 31px 32px),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--mist);
}

.screen-watermark {
  color: rgba(102, 82, 127, 0.045);
}

.screen-watermark-choose {
  color: rgba(102, 82, 127, 0.04);
}

.inner-brand {
  border-bottom-color: rgba(102, 82, 127, 0.12);
  background: rgba(244, 241, 247, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.unlock-brand-mark {
  border-color: rgba(102, 82, 127, 0.42);
  color: var(--plum);
}

.ornament-seal {
  border-color: rgba(167, 68, 53, 0.78);
  color: var(--cinnabar);
  background: rgba(255, 255, 255, 0.2);
}

.unlock-wrap .kicker,
.preference-wrap .kicker {
  color: var(--plum);
}

.unlock-wrap h2,
.preference-wrap h2 {
  color: #26352f;
}

.body-copy {
  color: #5f5a6c;
}

.code-input {
  border-color: rgba(102, 82, 127, 0.22);
  color: var(--plum-deep);
  background:
    linear-gradient(rgba(255, 255, 255, 0.54), rgba(244, 241, 247, 0.32)),
    var(--mist);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.54);
}

.code-input:focus {
  border-color: var(--plum);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.54),
    0 0 0 3px rgba(102, 82, 127, 0.12);
}

.code-input::placeholder {
  color: rgba(102, 82, 127, 0.22);
}

.preference-list {
  border-top-color: rgba(102, 82, 127, 0.12);
}

.preference-option {
  border-bottom-color: rgba(102, 82, 127, 0.12);
}

.preference-mark {
  border-color: rgba(102, 82, 127, 0.18);
  color: var(--plum);
  background: rgba(255, 255, 255, 0.32);
}

.preference-check {
  border-color: rgba(102, 82, 127, 0.22);
}

.preference-option.is-selected {
  background: linear-gradient(90deg, rgba(102, 82, 127, 0.09), rgba(102, 82, 127, 0.025));
}

.preference-option.is-selected .preference-mark {
  border-color: var(--plum);
  color: #fffaf4;
  background: var(--plum);
}

.preference-option.is-selected .preference-check {
  border-color: var(--plum);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.preference-option.is-selected b {
  color: var(--plum-deep);
}

.quiz-screen {
  background:
    linear-gradient(rgba(240, 237, 245, 0.93), rgba(242, 239, 246, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(102, 82, 127, 0.024) 31px 32px),
    url("./assets/paper-ink-bg.jpg") center / cover no-repeat,
    var(--mist);
}

.quiz-screen::before {
  color: rgba(102, 82, 127, 0.035);
}

.quiz-top {
  border-bottom-color: rgba(102, 82, 127, 0.12);
  background: rgba(241, 238, 246, 0.94);
}

.quiz-count {
  color: #77718a;
}

.progress-line {
  height: 3px;
  border-radius: 99px;
  background: rgba(102, 82, 127, 0.12);
}

.progress-line i {
  border-radius: inherit;
  background: linear-gradient(90deg, #8b78a2, #5f4c75);
}

.quiz-meta {
  color: #77718a;
}

.question-index {
  color: var(--plum);
}

.question-title {
  color: #26352f;
}

.answer-list {
  gap: 11px;
}

.answer-option {
  border-color: rgba(102, 82, 127, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 3px 12px rgba(83, 68, 103, 0.035);
}

.answer-option:hover {
  border-color: rgba(102, 82, 127, 0.48);
  background: rgba(102, 82, 127, 0.06);
}

.answer-letter {
  color: var(--plum);
}

.answer-copy small {
  color: #77718a;
}

.answer-option.is-selected {
  border-color: var(--plum-deep);
  color: #fffaf4;
  background: linear-gradient(135deg, #75618c, #5f4c75);
  box-shadow: 0 8px 22px rgba(84, 67, 105, 0.18);
}

.answer-option.is-selected .answer-letter,
.answer-option.is-selected .answer-copy small {
  color: rgba(255, 250, 244, 0.72);
}

.text-button {
  color: var(--plum);
}

.quiz-footer {
  color: var(--plum);
}

.auto-note {
  color: #81798f;
}

.quiz-footer {
  border-top-color: rgba(102, 82, 127, 0.12);
  background:
    linear-gradient(180deg, rgba(238, 235, 243, 0.92), rgba(235, 231, 242, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-button:disabled {
  color: rgba(102, 82, 127, 0.3);
}

@media (max-width: 699px) {
  .hero-copy h1 em {
    color: var(--plum);
  }

  .preference-option.is-selected {
    border-color: rgba(102, 82, 127, 0.26);
  }
}

.modal {
  background: rgba(45, 36, 67, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
  border: 1px solid rgba(102, 82, 127, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(250, 248, 252, 0.98), rgba(245, 242, 249, 0.99)),
    var(--mist);
  box-shadow: 0 24px 70px rgba(45, 36, 67, 0.24);
}

.modal-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(102, 82, 127, 0.12);
}

.modal-head .band-kicker {
  color: var(--plum);
}

.modal-head h2 {
  color: #2d2458;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 900;
}

.modal-head .icon-button {
  border-color: rgba(102, 82, 127, 0.16);
  color: var(--plum);
  background: rgba(102, 82, 127, 0.06);
}

.history-panel {
  width: min(100%, 620px);
  max-height: calc(100svh - 28px);
  overflow-y: auto;
}

.history-intro {
  margin: 14px 0 12px;
  color: #77718a;
  font-size: 11px;
}

.history-list {
  display: grid;
  gap: 8px;
  border-top: 0;
}

.history-empty {
  padding: 26px 0;
  color: #77718a;
}

.history-item {
  display: grid;
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(102, 82, 127, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.history-item > div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.history-item b {
  color: #2d2458;
  font-family: var(--song);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.history-item span {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--plum);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item small {
  grid-column: 1 / -1;
  margin-top: 3px;
  overflow: hidden;
  color: #858092;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item button {
  justify-self: end;
  align-self: center;
  min-width: 58px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(102, 82, 127, 0.22);
  border-radius: 6px;
  color: var(--plum);
  background: rgba(102, 82, 127, 0.07);
  font-size: 11px;
  font-weight: 800;
}

.history-item button:hover {
  border-color: var(--plum);
  color: #fffaf4;
  background: var(--plum);
}

@media (max-width: 420px) {
  .history-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
  }

  .history-item button {
    justify-self: end !important;
  }
}

.report-archive-seal {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 22px;
  display: grid;
  width: 78px;
  height: 78px;
  padding: 8px;
  grid-template-areas:
    "leftTop rightTop"
    "leftBottom rightBottom";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  border: 4px solid rgba(167, 68, 53, 0.82);
  border-radius: 2px;
  color: rgba(167, 68, 53, 0.94);
  background:
    repeating-linear-gradient(90deg, rgba(167, 68, 53, 0.025) 0 1px, transparent 1px 7px),
    rgba(250, 244, 237, 0.72);
  box-shadow:
    inset 0 0 0 4px rgba(241, 237, 249, 0.92),
    inset 0 0 0 5px rgba(167, 68, 53, 0.3);
  font-family: var(--fangsong);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0.4px 0 rgba(167, 68, 53, 0.2);
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.report-archive-seal::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(167, 68, 53, 0.42);
  content: "";
}

.report-archive-seal::after {
  position: absolute;
  inset: 2px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(167, 68, 53, 0.18) 9% 10%, transparent 10% 100%) 0 4px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 68%, rgba(167, 68, 53, 0.16) 68% 69%, transparent 69% 100%) 0 calc(100% - 4px) / 100% 1px no-repeat;
  opacity: 0.7;
}

.report-archive-seal span {
  position: relative;
  z-index: 1;
}

.report-archive-seal span:nth-child(1) {
  grid-area: rightTop;
}

.report-archive-seal span:nth-child(2) {
  grid-area: rightBottom;
}

.report-archive-seal span:nth-child(3) {
  grid-area: leftTop;
}

.report-archive-seal span:nth-child(4) {
  grid-area: leftBottom;
}

@media (max-width: 699px) {
  .report-archive-seal {
    top: 22px;
    right: 16px;
    width: 70px;
    height: 70px;
    font-size: 19px;
  }
}

.report-cover .match-ring {
  margin-bottom: 0;
}

.report-cover h1 {
  font-size: clamp(60px, 19vw, 84px);
  line-height: 1.02;
}

.report-cover h1[data-length="4"] {
  font-size: clamp(54px, 17vw, 76px);
}

.report-cover h1[data-length="5"] {
  font-size: clamp(48px, 15vw, 64px);
}

@media (max-width: 360px) {
  .report-cover h1 {
    font-size: 62px;
  }

  .report-cover h1[data-length="4"] {
    font-size: 56px;
  }

  .report-cover h1[data-length="5"] {
    font-size: 50px;
  }
}

.report-cover .match-ring span {
  --match-value-size: 66px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 0.92;
}

.report-cover .match-ring b,
.report-cover .match-ring small {
  font-family: var(--sans);
  font-size: var(--match-value-size);
  font-weight: 900;
  line-height: 0.92;
}

@media (max-width: 699px) {
  .report-cover .match-ring span {
    --match-value-size: 60px;
  }
}

@media (max-width: 360px) {
  .report-cover .match-ring span {
    --match-value-size: 56px;
  }
}

.unlock-form {
  width: 100%;
  max-width: 430px;
}

.unlock-form .button,
.preference-wrap > .button {
  width: 100%;
  max-width: 430px;
  min-height: 56px;
}

@media (max-width: 699px) {
  .unlock-form .button,
  .preference-wrap > .button {
    min-height: 52px;
  }
}

@media (hover: none), (pointer: coarse) {
  .answer-option:hover:not(.is-selected) {
    border-color: rgba(102, 82, 127, 0.14);
    background: rgba(255, 255, 255, 0.56);
    transform: none;
  }
}

.poster-panel {
  display: flex;
  max-height: calc(100svh - 28px);
  flex-direction: column;
}

.poster-deck {
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.poster-slide,
.poster-slide.is-long {
  width: 100%;
  max-width: none;
  flex: none;
  scroll-snap-align: none;
}

.poster-slide img,
.poster-slide.is-long img {
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.hero-report-preview {
  width: 100%;
  max-width: 430px;
  margin-top: 12px;
  padding: 13px 0 2px;
  border-top: 1px solid rgba(102, 82, 127, 0.12);
}

.hero-report-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-report-preview-head span {
  color: var(--plum);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-report-preview-head b {
  color: #3c354a;
  font-family: var(--song);
  font-size: 14px;
  font-weight: 800;
}

.hero-report-preview-tags {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-report-preview-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(102, 82, 127, 0.14);
  border-radius: 99px;
  color: #625772;
  background: rgba(241, 237, 249, 0.58);
  font-size: 10px;
  font-weight: 600;
}

.local-recovery .local-recovery-all {
  color: var(--plum);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#heroRecoveryButton[data-recovery="history"] {
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  color: var(--plum);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 360px) {
  .hero-report-preview {
    margin-top: 9px;
    padding-top: 10px;
  }

  .hero-report-preview-head b {
    font-size: 13px;
  }

  .hero-report-preview-tags {
    gap: 5px;
    margin-top: 8px;
  }

  .hero-report-preview-tags span {
    padding: 5px 8px;
    font-size: 9px;
  }
}

@media (max-width: 699px) {
  .preference-wrap {
    justify-content: flex-start;
  }

  .preference-list {
    margin-bottom: 18px;
  }

  .preference-wrap > .button {
    margin-top: 0;
  }
}

.jump-label {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
}

.jump-label > span {
  display: inline-block;
  animation: label-hop 2.8s infinite ease-in-out;
  will-change: transform;
}

.jump-label > span:nth-child(2) {
  animation-delay: 0.11s;
}

.jump-label > span:nth-child(3) {
  animation-delay: 0.22s;
}

.jump-label > span:nth-child(4) {
  animation-delay: 0.33s;
}

@keyframes label-hop {
  0%,
  68%,
  100% {
    transform: translateY(0);
  }

  76% {
    transform: translateY(-5px);
  }

  82% {
    transform: translateY(1px);
  }

  88% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jump-label > span {
    animation: none;
    transform: none;
  }
}

.step-primary-button {
  min-height: 56px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy > #enterButton.step-primary-button {
  min-height: 56px;
  font-size: 16px;
}

@media (max-width: 699px) {
  .hero-copy {
    padding-right: 16px;
    padding-left: 16px;
  }

  .step-primary-button {
    min-height: 52px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .hero-copy > #enterButton.step-primary-button {
    min-height: 52px;
    font-size: 15px;
  }
}
