/* 弥洛薇 UI v3。全站字形：自托管霞鹜文楷。 */
@font-face {
  font-family: "LXGW WenKai";
  src: url("/fonts/LXGWWenKaiGB-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --fg: #ededf0;
  --muted: #9b9ba6;
  --dim: #6b6b76;
  --card: #111114;
  --card-2: #131318;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #5b7cfa;
  --blue-2: #7b94ff;
  --porcelain: #f8f8f8;
  --ink: #18181b;
  --ink-2: #17171c;
  --ink-3: #3f3f46;
  --ink-4: #52525b;
  --ink-5: #71717a;
  --sans: "LXGW WenKai", "霞鹜文楷", serif;
  --mono: "LXGW WenKai", "霞鹜文楷", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html,
body,
button,
input,
textarea,
select,
kbd {
  font-family: var(--sans);
}

body {
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

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

a:hover {
  color: #7b94ff;
}

button,
input,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.hidden {
  display: none !important;
}

.err {
  color: #f0a3a3;
  font-size: 13px;
  line-height: 1.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideNext {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slidePrev {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes orbFloat {
  from {
    transform: translate(-12%, -6%);
  }
  to {
    transform: translate(14%, 10%);
  }
}
@keyframes lightUp {
  0%,
  52% {
    background-color: #3f3f46;
    box-shadow: none;
  }
  62%,
  80% {
    background-color: var(--blue);
    box-shadow: 0 0 8px rgba(91, 124, 250, 0.9);
  }
  96%,
  100% {
    background-color: #3f3f46;
    box-shadow: none;
  }
}
@keyframes writeChar {
  0% {
    opacity: 0;
    clip-path: inset(0 100% -12% 0);
    filter: blur(10px);
    transform: translateY(8px);
  }
  55% {
    opacity: 1;
    filter: blur(1.5px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 -12% -12% 0);
    filter: blur(0);
    transform: none;
  }
}
@keyframes unwriteChar {
  0% {
    opacity: 1;
    clip-path: inset(0 -12% -12% 0);
    filter: blur(0);
    transform: none;
  }
  45% {
    opacity: 1;
    filter: blur(1.5px);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 100% -12% 0);
    filter: blur(10px);
    transform: translateY(8px);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes segPulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes shake {
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}
@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(52px) scale(0.86);
  }
  65% {
    opacity: 1;
    transform: translateY(-9px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 44px) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 500;
}

.brand:hover {
  color: inherit;
}

.brand-dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.brand-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f3f46;
}

.brand-dots span:nth-child(1) {
  animation: lightUp 2.3s 0.2s ease-in-out infinite;
}
.brand-dots span:nth-child(2) {
  animation: lightUp 3.1s 1.4s ease-in-out infinite;
}
.brand-dots span:nth-child(3) {
  animation: lightUp 2.7s 0.9s ease-in-out infinite;
}
.brand-dots span:nth-child(4) {
  animation: lightUp 3.4s 2s ease-in-out infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.site-nav a {
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--fg);
  background: #16161a;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  padding: 12px 26px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.32);
}

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

.btn-primary {
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-2);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px at 50% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  left: 50%;
  top: -180px;
  width: 560px;
  height: 420px;
  margin-left: -280px;
  background: radial-gradient(closest-side, rgba(91, 124, 250, 0.32), transparent);
  filter: blur(70px);
  animation: orbFloat 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(52px, 9vh, 106px) clamp(20px, 4vw, 44px) clamp(56px, 9vh, 100px);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 68px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.hero-title {
  margin: 0;
  padding-left: 0.5em;
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.hero-title span {
  display: inline-block;
  white-space: pre;
}

.hero-sub {
  margin: 30px auto 0;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 2.3;
  color: var(--muted);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 46px;
}

.hero-quote {
  margin: 44px auto 0;
  max-width: 600px;
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #8a8a94;
}

.hero-quote cite {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.ticker {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.ticker-track span {
  display: flex;
  gap: 38px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
  white-space: nowrap;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 9vh, 100px) clamp(20px, 4vw, 44px) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.section-desc {
  margin: 0 0 30px;
  font-size: 14.5px;
  color: var(--muted);
}

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.door {
  position: relative;
  appearance: none;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  padding: 24px 22px 20px;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.door:hover {
  color: var(--fg);
  border-color: rgba(91, 124, 250, 0.6);
  transform: translateY(-4px);
  background: var(--card-2);
}

.door-top,
.door-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.door-en {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.door-title {
  display: block;
  margin-top: 34px;
  font-size: 22px;
  font-weight: 600;
}

.door-copy {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.door-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.door-expert {
  border-color: rgba(91, 124, 250, 0.35);
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.14), rgba(91, 124, 250, 0.04)), var(--card);
}

.door-expert:hover {
  border-color: rgba(123, 148, 255, 0.8);
}

.door-expert .door-copy {
  color: #b9c6ff;
}

.door-expert .door-foot {
  border-top-color: rgba(91, 124, 250, 0.25);
  color: #8f9bbd;
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.how-item {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.how-num {
  position: absolute;
  top: -13px;
  left: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(91, 124, 250, 0.4);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.how-item h3 {
  margin: 8px 0;
  font-size: 16.5px;
  font-weight: 600;
}

.how-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.lookup {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #131318, #0f0f12);
  padding: clamp(32px, 5vw, 52px);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.lookup h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
}

.lookup p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.take-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 360px;
}

.take-row input {
  flex: 1 1 240px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  outline: none;
}

.take-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.25);
}

.contact {
  text-align: center;
  padding-bottom: 0;
}

.contact .kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.mail {
  font-family: var(--mono);
  font-size: 16.5px;
  letter-spacing: 0.04em;
  color: var(--blue-2);
  border-bottom: 1px solid rgba(123, 148, 255, 0.45);
  padding-bottom: 3px;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px clamp(20px, 4vw, 44px) 56px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
}

.footer-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--dim);
}

/* —— 答题世界（瓷白） —— */
body.quiz-world {
  color: var(--ink);
  background: radial-gradient(900px at 50% -200px, rgba(91, 124, 250, 0.12), transparent), var(--porcelain);
}

.quiz-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 44px) 90px;
  animation: fadeIn 0.35s ease both;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.back {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: none;
  padding: 8px 16px;
  margin-left: -16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-4);
  cursor: pointer;
}

.back:hover {
  color: var(--ink);
  background: #e9e9eb;
}

.quiz-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue);
  border: 1px solid rgba(91, 124, 250, 0.4);
  border-radius: 999px;
  padding: 5px 13px;
}

.layout-switch {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.layout-switch button {
  appearance: none;
  border: none;
  padding: 7px 15px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-5);
}

.layout-switch button.on {
  background: var(--blue);
  color: #fff;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 46px 0 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-5);
}

.segs {
  display: flex;
  gap: 6px;
}

.segs span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.segs span.done {
  background: var(--blue);
}

.segs span.now {
  background: rgba(91, 124, 250, 0.55);
  animation: segPulse 1.6s ease-in-out infinite;
}

.q-no {
  margin: clamp(34px, 6vh, 58px) 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.stem {
  margin: 0 0 clamp(26px, 4.5vh, 40px);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.choices {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.choice {
  position: relative;
  flex: 1 1 250px;
  min-height: 170px;
  appearance: none;
  text-align: left;
  font: inherit;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--ink);
  padding: 20px 20px 52px;
  cursor: pointer;
}

.choice:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.34);
}

.choice[aria-pressed="true"] {
  border-color: var(--blue);
  background: rgba(91, 124, 250, 0.12);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #f4f4f5;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 14px;
}

.choice-text {
  display: block;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.check {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  display: none;
  place-items: center;
}

.choice[aria-pressed="true"] .check {
  display: grid;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.check polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.35s 0.08s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.layout-list .choices {
  display: grid;
  gap: 10px;
}

body.layout-list .choice {
  min-height: 0;
  flex: none;
  border-radius: 14px;
  padding: 18px 64px 18px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.layout-list .choice:hover {
  transform: translateX(4px);
}

body.layout-list .badge {
  margin-bottom: 0;
  flex: none;
}

body.layout-list .check {
  top: 50%;
  bottom: auto;
  margin-top: -13px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(28px, 4.5vh, 44px);
}

.quiz-world .btn {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--ink);
}

.quiz-world .btn-primary {
  border-color: transparent;
  color: #fff;
}

.quiz-world .btn-primary:disabled {
  background: #e4e4e7;
  color: #a1a1aa;
  opacity: 1;
}

.keys {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0 0;
  font-size: 12px;
  color: var(--ink-5);
}

.keys kbd {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 7px;
  background: #fff;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.gate-card {
  position: relative;
  overflow: hidden;
  margin-top: clamp(44px, 9vh, 84px);
  border-radius: 20px;
  border: 1px solid rgba(91, 124, 250, 0.35);
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.1), rgba(91, 124, 250, 0.02)), #fff;
  padding: clamp(36px, 6vw, 56px) clamp(26px, 5vw, 52px);
  text-align: center;
}

.gate-card h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 34px);
}

.gate-card .lede {
  margin: 0 auto 8px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-4);
  max-width: 520px;
  text-align: left;
}

.hint {
  margin: 0 0 30px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-5);
}

textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 250px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.22);
}

.word-count {
  margin: 10px 0 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-5);
}

.expert-wrap {
  max-width: 720px;
}

/* —— 完成 / 等待 / 报告 —— */
.done-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.done-orb {
  position: absolute;
  left: 50%;
  top: -160px;
  width: 560px;
  height: 400px;
  margin-left: -280px;
  background: radial-gradient(closest-side, rgba(91, 124, 250, 0.28), transparent);
  filter: blur(70px);
  pointer-events: none;
}

.done-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 140px) clamp(16px, 3vw, 44px) 80px;
  text-align: center;
}

.done-check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 12px 44px -10px rgba(91, 124, 250, 0.6);
}

.ticket-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card);
  padding: 22px 24px;
  margin: 30px auto 0;
  max-width: 420px;
}

.ticket-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 16.5px;
  letter-spacing: 0.06em;
}

body.report-world {
  --paper: #f2e4c8;
  --paper-light: #f8f0d8;
  --paper-dark: #e8d8b8;
  --stain: #d8c0a0;
  --ink: #2b1d10;
  --brown-deep: #503922;
  --brown-mid: #705437;
  --brown-soft: #a57b4a;
  --caramel: #c8975b;
  --camel: #ecbc77;
  --ultramarine: #1e3fa8;
  --indigo: #516cbd;
  color: var(--ink);
  background: var(--paper);
}

body.report-world::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--paper);
  filter: url(#paper-grain);
  opacity: 0.65;
}

body.report-world::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(255, 250, 230, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(120, 90, 50, 0.1), transparent 70%),
    radial-gradient(circle 8% at 70% 30%, rgba(120, 90, 50, 0.06), transparent);
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 48px rgba(120, 90, 50, 0.18);
}

body.report-world a:hover {
  color: var(--ink);
}

.err.wrap {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 20px;
}

body.report-world .err {
  position: relative;
  z-index: 2;
  color: #7a2e1f;
}

.report-sheet {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 40px 36px 72px;
  border: 2.5px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 6px;
  background: transparent;
}

.report-side {
  position: absolute;
  top: 48px;
  left: 10px;
  margin: 0;
  writing-mode: vertical-rl;
  letter-spacing: 0.45em;
  font-size: 12px;
  color: var(--brown-mid);
}

.report-kicker {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 0.82rem;
  color: var(--brown-mid);
  margin: 0 0 0.4rem;
}

.report-type {
  text-align: center;
  font-size: 2.1rem;
  letter-spacing: 0.28em;
  margin: 0.4rem 0 0.2rem;
  text-shadow: 1.5px 1.5px 0 rgba(30, 63, 168, 0.16);
}

.report-meta,
.report-folio {
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--brown-deep);
  margin: 0 0 0.5rem;
}

.ornament {
  text-align: center;
  margin: 0.4rem 0 1rem;
  color: var(--brown-mid);
  font-size: 14px;
}

.verse {
  text-align: center;
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0 0 1.6rem;
  letter-spacing: 0.08em;
}

.report-sheet h2 {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  color: var(--ink);
  margin: 1.5rem 0 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--brown-mid);
}

.report-sheet p,
.report-sheet li,
.report-sheet dd {
  line-height: 1.95;
  color: var(--brown-deep);
}

.ch-ticket {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  background: var(--camel);
  border: 1.5px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  vertical-align: middle;
}

.dossier-cover {
  margin: 1.2rem 0 1.4rem;
  padding: 12px 0;
  border-top: 1px solid var(--brown-mid);
  border-bottom: 1px solid var(--brown-mid);
}

.dossier-cover div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px 16px;
  margin: 0.55rem 0;
}

.dossier-cover dt {
  margin: 0;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
  font-size: 0.82rem;
}

.dossier-cover dd {
  margin: 0;
}

.hook {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1.5px dotted var(--brown-soft);
  color: var(--ink);
}

.seal {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 86px;
  height: 86px;
  border: 3px solid var(--ultramarine);
  border-radius: 50%;
  color: var(--ultramarine);
  display: grid;
  place-items: center;
  font-size: 20px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  transform: rotate(-7deg);
  opacity: 0.88;
  pointer-events: none;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.2px solid var(--ultramarine);
  border-radius: 50%;
}

.report-colophon {
  margin: 2.4rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--brown-mid);
}

.report-actions {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 44px) 56px;
}

body.report-world .report-ticket {
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 14px 22px;
  background: var(--camel);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  --hole: radial-gradient(circle 4px, var(--paper) 97%, transparent);
  -webkit-mask:
    linear-gradient(#2b1d10 0 0),
    var(--hole) -4px 50% / 12px 12px repeat-y left,
    var(--hole) calc(100% + 4px) 50% / 12px 12px repeat-y right;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

body.report-world .ticket-label,
body.report-world .ticket-row {
  color: var(--ink);
  font-family: var(--sans);
}

body.report-world .copy-btn {
  border-radius: 0;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

body.report-world .copy-btn:hover {
  border-color: var(--ultramarine);
  color: var(--ultramarine);
}

body.report-world .report-nav .btn {
  border-radius: 0;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

body.report-world .report-nav .btn-primary {
  background: var(--camel);
}

body.report-world .report-disclaimer {
  text-align: center;
  margin-top: 28px;
  color: var(--brown-mid);
}

@media (max-width: 720px) {
  .report-sheet {
    margin: 1rem 12px 1.5rem;
    padding: 28px 22px 76px;
    outline-offset: 4px;
  }

  .report-side {
    display: none;
  }

  .seal {
    width: 72px;
    height: 72px;
    font-size: 16px;
    right: 12px;
    bottom: 16px;
  }

  .dossier-cover div {
    grid-template-columns: 1fr;
  }
}

.rv {
  animation: reveal 1ms linear paused both;
}

.rv.is-in {
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.q-panel.anim-next {
  animation: slideNext 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.q-panel.anim-prev {
  animation: slidePrev 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.take-row.is-shake {
  animation: shake 0.4s ease both;
}

.nav-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gate-kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.gate-card h2 {
  color: var(--ink-2);
}

.gate-card .lede {
  white-space: pre-wrap;
}

.copy-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue-2);
}

.done-title {
  margin: 30px 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.done-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.done-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.report-sheet p,
.report-sheet li,
.report-sheet dd {
  white-space: pre-wrap;
}

.quiz-world .err {
  color: #b42318;
}

body.layout-list .choice-text {
  flex: 1;
  padding-top: 1px;
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .keys {
    display: none;
  }

  .segs {
    gap: 3px;
  }

  .hero-title {
    padding-left: 0;
  }
}

body.result-world {
  color: #18181b;
  background: var(--porcelain);
}

body.result-world .result-card {
  max-width: 560px;
  margin: clamp(64px, 14vh, 120px) auto 0;
  padding: 0 20px;
  text-align: center;
}

body.result-world .result-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #71717a;
}

body.result-world .result-card .report-type {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.22em;
  text-shadow: none;
  color: #17171c;
}

body.result-world .result-card .report-meta {
  margin: 18px 0 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #52525b;
}

body.result-world .report-ticket {
  max-width: 420px;
  margin: 36px auto 20px;
  padding: 18px 22px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #18181b;
}

body.result-world .ticket-label,
body.result-world .ticket-row {
  color: #18181b;
  font-family: var(--sans);
}

body.result-world .copy-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #18181b;
}

body.result-world .copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

body.result-world .report-nav .btn {
  border-color: rgba(0, 0, 0, 0.18);
  color: #18181b;
}

body.result-world .report-disclaimer {
  text-align: center;
  margin-top: 28px;
  color: #71717a;
}

@media print {
  body.report-world {
    background: #f2e4c8;
    color: #2b1d10;
  }
  body.result-world {
    background: #f8f8f8;
    color: #18181b;
  }
  .no-print {
    display: none !important;
  }
  .report-sheet {
    outline: 1px solid #2b1d10;
    border: 2.5px solid #2b1d10;
    background: transparent;
  }
}
