/* =========================================================
   当代青年「怨气人格」鉴定中心
   A small editorial-style personality test
   ========================================================= */

:root {
  --paper: #f2eee6;
  --paper-deep: #e9e2d5;
  --paper-light: #f8f5ee;
  --ink: #191713;
  --ink-soft: #2b2721;
  --muted: #6b655a;
  --line: rgba(25, 23, 19, 0.15);
  --line-strong: rgba(25, 23, 19, 0.34);
  --red: #b83a28;
  --red-deep: #8c291c;
  --red-light: #ef6a51;
  --sage: #6f7c62;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --hand: "Kaiti SC", "KaiTi", "STKaiti", "FangSong", serif;
  --shell: min(1240px, calc(100vw - 80px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(25, 23, 19, 0.035) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(rgba(25, 23, 19, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 19, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

[hidden] {
  display: none !important;
}

img,
svg,
canvas {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--red);
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.brand:hover .brand-mark {
  background: var(--ink);
  transform: rotate(-8deg);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-name small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.head-meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.head-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.head-status i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 58, 40, 0.09);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.head-status b {
  font-weight: 500;
}

/* ---------- Screens ---------- */

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 0.48s var(--ease) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(184, 58, 40, 0.09);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(184, 58, 40, 0.04);
  }
}

/* ---------- Intro hero ---------- */

#screen-intro {
  padding-bottom: 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(38px, 5.2vw, 82px);
  align-items: center;
  padding: clamp(50px, 7vw, 94px) 0 clamp(52px, 6vw, 82px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.hero h1 {
  margin: 0 0 clamp(26px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(52px, 6.8vw, 98px);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.title-accent {
  position: relative;
  display: inline-block;
  color: var(--red);
}

.title-accent::after {
  content: "";
  position: absolute;
  right: -0.02em;
  bottom: 0.06em;
  left: 0.02em;
  height: 0.07em;
  background: var(--red);
  opacity: 0.26;
  transform: rotate(-1.2deg);
}

.title-bracket {
  color: var(--ink);
}

.title-period {
  color: var(--red);
}

.hero-sub {
  max-width: 470px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.85;
  letter-spacing: 0.08em;
}

.hero-meta span {
  color: var(--muted);
}

.brief {
  max-width: 500px;
  margin-top: clamp(38px, 4.5vw, 56px);
}

.brief-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brief-label {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.brief-line {
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

.brief-no {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.brief p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

/* ---------- Specimen card ---------- */

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.specimen {
  position: relative;
  display: flex;
  min-height: 548px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: visible;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 20px 24px 0 rgba(25, 23, 19, 0.075);
  transform: rotate(1.1deg);
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid rgba(242, 238, 230, 0.14);
  pointer-events: none;
}

.specimen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 62px;
  height: 62px;
  background: linear-gradient(
    225deg,
    #e3dacb 0 49.2%,
    rgba(25, 23, 19, 0.36) 49.4% 50%,
    rgba(242, 238, 230, 0.08) 50.2% 100%
  );
  filter: drop-shadow(-3px 3px 2px rgba(25, 23, 19, 0.14));
}

.tape {
  position: absolute;
  top: -16px;
  left: 26px;
  z-index: 4;
  padding: 7px 17px;
  background: #ded1ac;
  box-shadow: 0 3px 6px rgba(25, 23, 19, 0.12);
  color: #463d2c;
  font-family: var(--hand);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transform: rotate(-4deg);
}

.specimen-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-right: 32px;
  color: rgba(242, 238, 230, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.specimen-field {
  position: relative;
  height: 318px;
  margin: 8px -24px 0;
  overflow: hidden;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(239, 106, 81, 0.33);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 86%;
  aspect-ratio: 1;
}

.ring-2 {
  width: 61%;
  aspect-ratio: 1;
  border-color: rgba(242, 238, 230, 0.17);
}

.ring-3 {
  width: 38%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(239, 106, 81, 0.42);
}

.cross {
  position: absolute;
  background: rgba(242, 238, 230, 0.1);
}

.cross-h {
  right: 0;
  left: 0;
  top: 50%;
  height: 1px;
}

.cross-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.specimen-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(184px, 17vw, 236px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 9px 9px 0 rgba(184, 58, 40, 0.22);
  transform: translate(-50%, -51%);
}

.specimen-vertical {
  position: absolute;
  top: 50%;
  right: 17px;
  z-index: 3;
  color: rgba(242, 238, 230, 0.42);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-orientation: upright;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.specimen-stamp {
  position: absolute;
  right: 22px;
  bottom: 122px;
  z-index: 4;
  display: flex;
  width: 104px;
  height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red-light);
  border-radius: 50%;
  color: var(--red-light);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-12deg);
}

.specimen-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.specimen-stamp small {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.specimen-data {
  position: relative;
  z-index: 3;
}

.barcode {
  height: 31px;
  margin-bottom: 13px;
  background: repeating-linear-gradient(
    90deg,
    rgba(242, 238, 230, 0.76) 0 2px,
    transparent 2px 5px,
    rgba(242, 238, 230, 0.76) 5px 8px,
    transparent 8px 12px,
    rgba(242, 238, 230, 0.76) 12px 14px,
    transparent 14px 18px,
    rgba(242, 238, 230, 0.76) 18px 19px,
    transparent 19px 24px
  );
  opacity: 0.74;
}

.specimen-data-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid rgba(242, 238, 230, 0.13);
  color: rgba(242, 238, 230, 0.56);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.6;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-light);
}

.live i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 2s ease-in-out infinite;
}

.visual-note {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: right;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  justify-content: space-between;
  min-width: 208px;
  background: var(--ink);
  color: var(--paper-light);
}

.btn-primary:hover {
  background: var(--red);
  box-shadow: 5px 5px 0 rgba(25, 23, 19, 0.16);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow: 2px 2px 0 rgba(25, 23, 19, 0.16);
  transform: translateY(0);
}

.btn-arrow {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.btn-text {
  min-height: 48px;
  padding-right: 2px;
  padding-left: 2px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(107, 101, 90, 0.35);
  text-underline-offset: 5px;
}

.btn-text:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

/* ---------- Ticker ---------- */

.ticker {
  width: 100vw;
  margin-top: 2px;
  margin-left: calc(50% - 50vw);
  padding: 11px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-0.35deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 42s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
}

.ticker-group span {
  padding: 0 25px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ticker-group i {
  margin: 0 10px;
  color: var(--red-light);
  font-style: normal;
}

@keyframes ticker-move {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Type strip ---------- */

.type-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 32px 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 238, 0.28);
}

.type-item {
  min-width: 0;
  padding: 15px 13px 14px;
  border-right: 1px solid var(--line);
}

.type-item:last-child {
  border-right: 0;
}

.type-item span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.type-item b {
  display: block;
  overflow: hidden;
  margin: 4px 0 1px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-item em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Quiz ---------- */

#screen-quiz {
  padding: clamp(34px, 5vw, 66px) 0 clamp(58px, 7vw, 88px);
}

.quiz-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.quiz-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.quiz-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.quiz-kicker span {
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: rotate(45deg);
}

.quiz-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.quiz-count b {
  display: inline-block;
  margin-right: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  line-height: 0.8;
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.progress-segments i {
  display: block;
  height: 3px;
  background: rgba(25, 23, 19, 0.1);
  transition: background 0.35s var(--ease), height 0.35s var(--ease);
}

.progress-segments i.is-done {
  background: var(--red);
}

.progress-segments i.is-current {
  height: 5px;
  margin-top: -1px;
  background: var(--ink);
}

.question {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 38px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.q-index {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(68px, 8vw, 104px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1px rgba(25, 23, 19, 0.29);
  user-select: none;
}

.q-label {
  margin: 0 0 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

#quizQuestion {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.75vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.56;
}

.options {
  display: grid;
  gap: 9px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: clamp(12px, 1.8vw, 20px);
  align-items: center;
  width: 100%;
  padding: 16px 20px 16px 17px;
  border: 1px solid var(--line);
  background: rgba(248, 245, 238, 0.24);
  cursor: pointer;
  text-align: left;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.option:hover {
  border-color: var(--line-strong);
  background: rgba(248, 245, 238, 0.72);
  box-shadow: 4px 4px 0 rgba(25, 23, 19, 0.055);
  transform: translateX(4px);
}

.option-letter {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.option-text {
  color: #3f3a32;
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.8;
}

.option-arrow {
  color: var(--red);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transform: translate(-4px, 2px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.option:hover .option-arrow {
  opacity: 0.7;
  transform: translate(0, 0);
}

.option.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(184, 58, 40, 0.18);
  transform: translateX(4px);
}

.option.is-selected .option-letter {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper-light);
}

.option.is-selected .option-text {
  color: var(--paper-light);
}

.option.is-selected .option-arrow {
  color: var(--red-light);
  opacity: 1;
  transform: translate(0, 0);
}

.quiz-wrap.is-animating .question {
  animation: quiz-in 0.4s var(--ease) both;
}

.quiz-wrap.is-animating .option {
  animation: option-in 0.4s var(--ease) both;
  animation-delay: calc(var(--i) * 42ms);
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes option-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.text-btn {
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.text-btn:hover:not(:disabled) {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.text-btn:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.key-hint {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.key-hint kbd {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin: 0 2px;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  background: rgba(248, 245, 238, 0.6);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

/* ---------- Loading ---------- */

#screen-loading {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

#screen-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -20vw;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(239, 106, 81, 0.16);
  border-radius: 50%;
  transform: translateY(-50%);
}

#screen-loading::after {
  content: "怨";
  position: absolute;
  right: 7vw;
  bottom: -0.21em;
  color: rgba(242, 238, 230, 0.035);
  font-family: var(--serif);
  font-size: clamp(280px, 42vw, 620px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.loading-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  width: var(--shell);
  min-height: calc(100vh - 82px);
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(60px, 9vh, 110px) 0;
}

.loading-kicker {
  margin-bottom: 24px;
  color: var(--red-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.17em;
}

.loading-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.18;
}

.scan-line {
  position: relative;
  width: min(100%, 660px);
  height: 1px;
  margin: clamp(38px, 6vh, 62px) 0 8px;
  overflow: hidden;
  background: rgba(242, 238, 230, 0.16);
}

.scan-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 1px;
  background: var(--red-light);
  box-shadow: 0 0 12px var(--red-light);
  animation: scan 1.5s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}

.loading-steps {
  display: grid;
  width: min(100%, 820px);
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loading-steps li {
  padding: 16px 22px 16px 0;
  border-top: 1px solid rgba(242, 238, 230, 0.14);
  color: rgba(242, 238, 230, 0.66);
  font-size: 11px;
  line-height: 1.7;
  opacity: 0;
  animation: step-in 0.5s var(--ease) forwards;
}

.loading-steps li:nth-child(1) {
  animation-delay: 0.08s;
}

.loading-steps li:nth-child(2) {
  animation-delay: 0.52s;
}

.loading-steps li:nth-child(3) {
  animation-delay: 0.98s;
}

.loading-steps li span {
  display: block;
  margin-bottom: 5px;
  color: var(--red-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-note {
  margin: clamp(44px, 7vh, 72px) 0 0;
  color: rgba(242, 238, 230, 0.34);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* ---------- Result report ---------- */

#screen-result {
  padding: clamp(26px, 4vw, 50px) 0 clamp(50px, 6vw, 72px);
}

.result-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.report {
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 15px 15px 0 rgba(25, 23, 19, 0.075);
}

.report-hero {
  position: relative;
  padding: clamp(24px, 3.8vw, 44px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.report-hero::before {
  content: attr(data-num);
  position: absolute;
  right: -0.04em;
  bottom: -0.27em;
  color: rgba(242, 238, 230, 0.045);
  font-family: var(--serif);
  font-size: clamp(210px, 28vw, 350px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.report-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--red);
}

.report-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(242, 238, 230, 0.17);
  color: rgba(242, 238, 230, 0.47);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 1.6;
}

.result-type {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(30px, 4vw, 42px);
}

.result-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  color: var(--red-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.result-kicker span {
  color: rgba(242, 238, 230, 0.38);
  letter-spacing: 0.1em;
}

.result-name-row {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

.result-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.result-name:focus {
  outline: none;
}

.hidden-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 7px;
  padding: 2px 8px;
  border: 1px solid rgba(239, 106, 81, 0.65);
  color: var(--red-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 1;
}

.result-alias {
  margin: 10px 0 0;
  color: rgba(242, 238, 230, 0.65);
  font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.result-deck {
  max-width: 660px;
  margin: 24px 0 0;
  padding-left: 15px;
  border-left: 2px solid var(--red-light);
  color: rgba(242, 238, 230, 0.72);
  font-size: clamp(12.5px, 1.25vw, 14px);
  line-height: 1.9;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.trait {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(242, 238, 230, 0.18);
  color: rgba(242, 238, 230, 0.62);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.trait::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red-light);
}

.diagnosis-stamp {
  position: relative;
  display: flex;
  width: clamp(116px, 12.5vw, 150px);
  aspect-ratio: 1;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--red-light);
  border-radius: 50%;
  color: var(--red-light);
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-9deg);
}

.diagnosis-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.diagnosis-stamp span {
  display: block;
  padding-left: 0.12em;
}

.diagnosis-stamp small {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 34px);
}

.panel + .panel {
  border-left: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.panel-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-align: right;
}

.bars {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
}

.bar-label {
  color: #4b453b;
  font-size: 11px;
  line-height: 1.5;
}

.bar-row.is-top .bar-label {
  color: var(--ink);
  font-weight: 700;
}

.bar-cells {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}

.bar-cell {
  display: block;
  height: 11px;
  background: rgba(25, 23, 19, 0.075);
}

.bar-cell.is-on {
  background: var(--bar-color, var(--red));
}

.bar-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  text-align: right;
}

.bar-row.is-top .bar-count {
  color: var(--ink);
  font-weight: 700;
}

.burden-panel {
  display: flex;
  flex-direction: column;
}

.burden-wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 25px);
}

.gauge {
  position: relative;
  display: grid;
  width: 116px;
  flex: 0 0 116px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--pct) * 1%), rgba(25, 23, 19, 0.085) 0);
}

.gauge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--paper);
}

.gauge-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gauge-inner strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gauge-inner span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.burden-copy {
  min-width: 0;
}

.burden-range {
  margin-bottom: 3px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.burden-copy h4 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.burden-desc {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.formula {
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.045em;
  line-height: 1.7;
}

.formula span {
  color: var(--ink);
}

.feed-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: clamp(22px, 3vw, 30px) clamp(24px, 3.6vw, 40px);
  padding: 18px 22px;
  background: var(--ink);
  box-shadow: 7px 7px 0 rgba(184, 58, 40, 0.14);
  color: var(--paper);
  transform: rotate(-0.35deg);
}

.feed-label {
  color: var(--red-light);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.feed-strip p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(14px, 1.55vw, 18px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.feed-strip p strong {
  margin: 0 3px;
  color: var(--red-light);
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.feed-strip small {
  color: rgba(242, 238, 230, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-align: right;
}

.diagnosis {
  padding: clamp(28px, 4vw, 46px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 28px;
}

.section-head span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#desc {
  max-width: 850px;
}

#desc p {
  margin: 0 0 19px;
  color: #3c372e;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 2.05;
}

#desc p:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.8;
}

.pullquote {
  position: relative;
  margin-top: 36px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  background: var(--red);
  color: #fff8f0;
}

.pullquote::after {
  content: "“";
  position: absolute;
  top: -0.23em;
  right: 20px;
  color: rgba(255, 248, 240, 0.14);
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.pq-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 248, 240, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.pullquote p {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.share {
  padding: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.share-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-kicker {
  margin-bottom: 4px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
}

.share-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.share-sub {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.copy-card {
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.copy-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.copy-tab {
  padding: 9px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.copy-tab:hover {
  color: var(--ink);
}

.copy-tab.is-active {
  background: var(--ink);
  color: var(--paper-light);
}

.copy-preview {
  min-height: 76px;
  margin: 0;
  padding: 17px 20px 19px;
  color: #494339;
  font-size: 12px;
  line-height: 1.95;
}

.copy-preview.is-long {
  font-size: 11.5px;
  line-height: 1.9;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.share-actions .btn-primary {
  min-width: 214px;
}

.report-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(24px, 3.6vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  line-height: 1.6;
}

.result-note {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 10000;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  border: 1px solid rgba(242, 238, 230, 0.16);
  background: var(--ink);
  box-shadow: 6px 6px 0 rgba(25, 23, 19, 0.12);
  color: var(--paper-light);
  font-size: 11px;
  letter-spacing: 0.035em;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(50px, 6.4vw, 78px);
  }

  .specimen {
    min-height: 510px;
  }

  .specimen-field {
    height: 286px;
  }

  .specimen-glyph {
    font-size: 200px;
  }

  .feed-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feed-strip small {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    padding-top: 46px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    font-size: clamp(50px, 8.7vw, 82px);
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 460px);
  }

  .specimen {
    min-height: 540px;
  }

  .specimen-field {
    height: 310px;
  }

  .specimen-glyph {
    font-size: 238px;
  }

  .type-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .type-item:nth-child(4) {
    border-right: 0;
  }

  .type-item:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel + .panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .panel {
    padding: 28px;
  }

  .gauge {
    width: 126px;
    flex-basis: 126px;
  }

  .gauge-inner strong {
    font-size: 35px;
  }

  .burden-desc {
    font-size: 12px;
  }

  .copy-preview {
    font-size: 12.5px;
  }

  .copy-preview.is-long {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 36px);
  }

  body {
    font-size: 15px;
  }

  .site-head {
    min-height: 66px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 10px;
  }

  .brand-name small {
    font-size: 6px;
  }

  .head-meta > span:not(.head-status) {
    display: none;
  }

  .head-status {
    font-size: 8px;
  }

  .hero {
    gap: 42px;
    padding: 34px 0 50px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 8.5px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(44px, 12.8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.065em;
  }

  .hero-sub {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 15px;
  }

  .btn {
    min-height: 48px;
    padding: 13px 17px;
    font-size: 12px;
  }

  .btn-primary {
    min-width: 190px;
  }

  .hero-meta {
    font-size: 8px;
  }

  .brief {
    margin-top: 32px;
  }

  .brief p {
    font-size: 10.5px;
  }

  .hero-visual {
    width: 100%;
    max-width: 400px;
  }

  .specimen {
    min-height: 438px;
    padding: 19px;
    box-shadow: 9px 9px 0 rgba(25, 23, 19, 0.08);
    transform: none;
  }

  .specimen-head {
    font-size: 7px;
  }

  .specimen-field {
    height: 250px;
    margin-right: -19px;
    margin-left: -19px;
  }

  .specimen-glyph {
    font-size: 182px;
  }

  .specimen-stamp {
    right: 17px;
    bottom: 104px;
    width: 84px;
    height: 84px;
    font-size: 16px;
  }

  .specimen-vertical {
    right: 12px;
    font-size: 8px;
  }

  .barcode {
    height: 25px;
    margin-bottom: 9px;
  }

  .specimen-data-row {
    padding: 5px 0;
    font-size: 7px;
  }

  .visual-note {
    margin-top: 18px;
    font-size: 8px;
  }

  .ticker-group span {
    padding: 0 17px;
    font-size: 9px;
  }

  .type-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0 30px;
  }

  .type-item {
    padding: 12px 11px;
  }

  .type-item:nth-child(2n) {
    border-right: 0;
  }

  .type-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .type-item:nth-child(4) {
    border-right: 0;
  }

  .type-item:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-right: 0;
    background: var(--ink);
  }

  .type-item:last-child span {
    color: var(--red-light);
  }

  .type-item:last-child b {
    margin: 0;
    color: var(--paper-light);
    font-size: 10px;
  }

  .type-item:last-child em {
    color: rgba(242, 238, 230, 0.42);
    font-size: 8px;
    text-align: right;
  }

  .type-item b {
    font-size: 10px;
  }

  .type-item em {
    font-size: 8px;
  }

  .specimen::after {
    width: 46px;
    height: 46px;
  }

  .specimen-head {
    padding-right: 24px;
  }

  #screen-quiz {
    padding: 26px 0 56px;
  }

  .quiz-count b {
    font-size: 26px;
  }

  .progress-segments {
    gap: 3px;
    margin-bottom: 32px;
  }

  .question {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 24px;
  }

  .q-index {
    font-size: 46px;
    line-height: 0.9;
    -webkit-text-stroke-width: 0.8px;
  }

  .q-label {
    margin-bottom: 8px;
    font-size: 8px;
  }

  #quizQuestion {
    font-size: clamp(21px, 6.2vw, 27px);
    line-height: 1.55;
  }

  .options {
    gap: 7px;
  }

  .option {
    grid-template-columns: 32px minmax(0, 1fr) 15px;
    gap: 11px;
    padding: 13px 12px;
  }

  .option-letter {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .option-text {
    font-size: 13px;
    line-height: 1.75;
  }

  .option-arrow {
    font-size: 14px;
  }

  .quiz-foot {
    margin-top: 17px;
    padding-top: 9px;
  }

  .key-hint {
    display: none;
  }

  .loading-wrap {
    min-height: calc(100vh - 66px);
    padding: 48px 0;
  }

  .loading-kicker {
    margin-bottom: 18px;
    font-size: 8px;
  }

  .loading-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .loading-steps li {
    padding: 13px 0;
  }

  .loading-note {
    margin-top: 38px;
  }

  #screen-result {
    padding: 16px 0 48px;
  }

  .report {
    box-shadow: 7px 7px 0 rgba(25, 23, 19, 0.08);
  }

  .report-hero {
    padding: 22px 19px 24px;
  }

  .report-hero::after {
    width: 4px;
  }

  .report-hero::before {
    font-size: 210px;
  }

  .report-meta {
    padding-bottom: 10px;
    font-size: 6.5px;
    letter-spacing: 0.07em;
  }

  .result-type {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 24px;
  }

  .result-kicker {
    gap: 8px;
    font-size: 8px;
  }

  .result-name {
    font-size: clamp(36px, 10.5vw, 50px);
    line-height: 1.1;
  }

  .result-alias {
    margin-top: 7px;
    font-size: 13px;
  }

  .result-deck {
    margin-top: 19px;
    padding-left: 12px;
    font-size: 11.5px;
    line-height: 1.85;
  }

  .trait {
    padding: 3px 8px;
    font-size: 8px;
  }

  .diagnosis-stamp {
    width: 78px;
    justify-self: end;
    margin-top: 4px;
    border-width: 2px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .diagnosis-stamp::before {
    inset: 4px;
  }

  .diagnosis-stamp small {
    margin-top: 4px;
    font-size: 5px;
  }

  .panel {
    padding: 22px 19px;
  }

  .panel-head {
    margin-bottom: 20px;
  }

  .panel-head h3 {
    font-size: 15px;
  }

  .bar-row {
    grid-template-columns: 40px minmax(0, 1fr) 17px;
    gap: 8px;
  }

  .bar-cells {
    gap: 2px;
  }

  .bar-cell {
    height: 9px;
  }

  .bar-label {
    font-size: 10px;
  }

  .burden-wrap {
    align-items: flex-start;
    gap: 15px;
  }

  .gauge {
    width: 94px;
    flex-basis: 94px;
  }

  .gauge::after {
    inset: 7px;
  }

  .gauge-inner strong {
    font-size: 26px;
  }

  .gauge-inner span {
    font-size: 6px;
  }

  .burden-copy h4 {
    font-size: 16px;
  }

  .burden-desc {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.88;
  }

  .feed-strip {
    display: block;
    margin: 20px 19px;
    padding: 15px 16px;
    transform: none;
  }

  .feed-label {
    display: block;
    margin-bottom: 6px;
    font-size: 7px;
  }

  .feed-strip p {
    font-size: 13px;
  }

  .feed-strip p strong {
    font-size: 23px;
  }

  .feed-strip small {
    display: block;
    margin-top: 7px;
    font-size: 6.5px;
  }

  .diagnosis {
    padding: 24px 19px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  #desc p {
    font-size: 13px;
    line-height: 1.98;
  }

  #desc p:first-child {
    font-size: 18px;
  }

  .pullquote {
    margin-top: 26px;
    padding: 20px 17px;
  }

  .pq-label {
    margin-bottom: 9px;
    font-size: 7px;
  }

  .pullquote p {
    font-size: 20px;
  }

  .share {
    padding: 24px 19px;
  }

  .share-head {
    display: block;
    margin-bottom: 17px;
  }

  .share-head h3 {
    font-size: 22px;
  }

  .share-sub {
    margin-top: 6px;
    font-size: 9px;
    text-align: left;
  }

  .copy-tab {
    padding: 8px 14px;
    font-size: 8px;
  }

  .copy-preview {
    min-height: 96px;
    padding: 14px 15px;
    font-size: 11.5px;
    line-height: 1.9;
  }

  .copy-preview.is-long {
    font-size: 11px;
  }

  .share-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 11px;
  }

  .share-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .report-foot {
    display: block;
    padding: 13px 19px;
    font-size: 6.5px;
  }

  .report-foot span {
    display: block;
  }

  .report-foot span + span {
    margin-top: 3px;
  }

  .result-note {
    margin-top: 20px;
    font-size: 9px;
  }

  .site-foot {
    display: block;
    padding: 17px 0 27px;
    font-size: 7px;
  }

  .site-foot span {
    display: block;
  }

  .site-foot span + span {
    margin-top: 3px;
  }

  .toast {
    bottom: 18px;
    padding: 11px 15px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 42px;
  }

  .btn-primary {
    min-width: 172px;
  }

  .hero-actions {
    gap: 12px;
  }

  .specimen-glyph {
    font-size: 160px;
  }

  .specimen-field {
    height: 226px;
  }

  .specimen {
    min-height: 410px;
  }

  .result-name {
    font-size: 33px;
  }
}

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

  .ticker-track {
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .noise,
  .site-head,
  .site-foot,
  .share,
  .result-note,
  .diagnosis-stamp,
  .toast {
    display: none !important;
  }

  .screen {
    display: none !important;
  }

  #screen-result {
    display: block !important;
  }

  .report {
    border: 0;
    box-shadow: none;
  }

  .report-hero {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    margin: 10mm;
  }
}
