:root {
  color-scheme: light;
  --ink: #1d2430;
  --muted: #657184;
  --paper: #f7f1e4;
  --paper-deep: #eee1c9;
  --desk: #27313f;
  --desk-dark: #171d27;
  --card: #fffaf0;
  --line: rgba(29, 36, 48, 0.16);
  --red: #d84f3f;
  --blue: #2f6f9f;
  --green: #2f8a6b;
  --yellow: #d9a441;
  --shadow: 0 18px 42px rgba(23, 29, 39, 0.18);
  --motion-fast: 320ms;
  --motion-med: 760ms;
  --motion-slow: 1180ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-stamp: cubic-bezier(0.34, 1.04, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: pageOut 420ms var(--ease-soft) both;
}

::view-transition-new(root) {
  animation: pageIn 680ms var(--ease-soft) both;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 0%, rgba(216, 79, 63, 0.16), transparent 26rem),
    radial-gradient(circle at 84% 6%, rgba(47, 111, 159, 0.14), transparent 28rem),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  line-height: 1.65;
}

body.subpage {
  min-height: 100vh;
  background:
    linear-gradient(rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.28;
}

body.is-loading * {
  cursor: progress;
}

.not-found-page {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(216, 79, 63, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 82%, rgba(47, 138, 107, 0.14), transparent 26rem),
    linear-gradient(rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

.not-found-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  isolation: isolate;
}

.not-found-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.not-found-grid {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(29, 36, 48, 0.1);
  background:
    linear-gradient(rgba(29, 36, 48, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotate(-3deg);
  animation: notFoundGridDrift 14s ease-in-out infinite alternate;
}

.not-found-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 620px);
  aspect-ratio: 1;
  border: 1px dashed rgba(29, 36, 48, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: notFoundOrbit 22s linear infinite;
}

.not-found-orbit span {
  position: absolute;
  width: 12px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 4px 4px 0 rgba(29, 36, 48, 0.14);
}

.not-found-orbit span:nth-child(1) {
  left: 9%;
  top: 19%;
  background: var(--red);
}

.not-found-orbit span:nth-child(2) {
  right: 14%;
  top: 28%;
  background: var(--yellow);
}

.not-found-orbit span:nth-child(3) {
  left: 51%;
  bottom: 1%;
  background: var(--blue);
}

.lost-file {
  position: absolute;
  display: grid;
  width: clamp(86px, 11vw, 132px);
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(29, 36, 48, 0.14);
  transform-origin: center;
  animation: notFoundFileFloat 7s var(--ease-soft) infinite;
}

.lost-file b {
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.lost-file i {
  display: block;
  height: 8px;
  background: rgba(29, 36, 48, 0.14);
}

.file-a {
  left: 8%;
  top: 17%;
  transform: rotate(-9deg);
}

.file-b {
  right: 11%;
  top: 20%;
  animation-delay: -2.2s;
  transform: rotate(8deg);
}

.file-c {
  left: 16%;
  bottom: 13%;
  animation-delay: -4s;
  transform: rotate(5deg);
}

.not-found-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  padding: clamp(28px, 5vw, 52px);
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 42%),
    var(--card);
  box-shadow: 14px 14px 0 rgba(29, 36, 48, 0.12), var(--shadow);
  text-align: center;
  animation: notFoundCardIn 900ms var(--ease-out) both;
}

.not-found-card::before {
  content: "NOT FOUND";
  position: absolute;
  right: clamp(18px, 4vw, 36px);
  top: clamp(16px, 4vw, 32px);
  border: 3px solid var(--red);
  padding: 6px 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: rotate(8deg);
  opacity: 0.72;
}

.not-found-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(86px, 18vw, 168px);
  line-height: 0.9;
  letter-spacing: 0;
}

.not-found-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 5vw, 38px);
}

.not-found-card p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px min(5vw, 64px);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.72), rgba(247, 241, 228, 0.9)),
    rgba(247, 241, 228, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(23, 29, 39, 0.07);
  animation: topbarIn var(--motion-med) var(--ease-out) both;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--motion-fast) ease;
}

.brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity var(--motion-med) ease, transform var(--motion-med) var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-3deg);
  transition: transform var(--motion-med) var(--ease-stamp);
}

.brand:hover .brand-mark {
  transform: rotate(-1deg) translateY(-1px);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(29, 36, 48, 0.12);
  border-radius: 3px;
  padding: 4px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.78), rgba(238, 225, 201, 0.56)),
    rgba(255, 250, 240, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    4px 4px 0 rgba(29, 36, 48, 0.08);
}

nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 420ms ease, border-color 420ms ease, color 420ms ease, transform 420ms var(--ease-soft), box-shadow 420ms ease;
  will-change: transform;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 4px 10px;
  z-index: -1;
  border-bottom: 2px solid var(--red);
  opacity: 0;
  transform: scaleX(0.18) translateY(3px);
  transform-origin: left;
  transition: opacity 460ms ease, transform 540ms var(--ease-soft);
  will-change: opacity, transform;
}

nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 2px;
  background: rgba(255, 253, 247, 0.9);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 420ms ease, transform 540ms var(--ease-soft);
  will-change: opacity, transform;
}

nav a:hover {
  border-color: rgba(29, 36, 48, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
}

nav a:hover::before,
nav a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1) translateY(0);
}

nav a:hover::after,
nav a:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

nav a:active {
  transform: translateY(0);
}

nav a:focus-visible {
  outline: 0;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

nav a[aria-current="page"] {
  border-color: rgba(216, 79, 63, 0.34);
  color: var(--red);
  background: rgba(216, 79, 63, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.55);
  animation: navCurrentIn 680ms var(--ease-soft) both;
}

nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scaleX(1) translateY(0);
}

.topbar-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 9px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%),
    var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: rotate(1deg);
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.topbar-cta::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px dashed rgba(255, 250, 240, 0.34);
  border-radius: 2px;
}

.topbar-cta span:first-child {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 11px;
  line-height: 1;
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    #c94335;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(0deg) translate(2px, 2px);
}

.topbar-cta:focus-visible {
  outline: 3px solid rgba(47, 111, 159, 0.2);
  outline-offset: 3px;
}

.topbar-cta:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(4px, 4px);
}

.locale-switcher-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(29, 36, 48, 0.18);
  border-radius: 10px;
  padding: 2px 6px 2px 4px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(238, 225, 201, 0.72)),
    var(--card);
  box-shadow: none;
  color: var(--ink);
  font-size: 12px;
  backdrop-filter: blur(6px);
  height: 26px;
  min-height: 26px;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  cursor: default;
  align-self: center;
}

.locale-switcher-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(29, 36, 48, 0.24);
  background: #fffef8;
  font-size: 11px;
  line-height: 1;
  justify-content: center;
  align-items: center;
}

.locale-switcher-host.is-topbar {
  margin-left: 8px;
  height: 28px;
  min-height: 28px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(29, 36, 48, 0.08);
}

.topbar .locale-switcher-host.is-topbar {
  margin-left: 8px !important;
}

.topbar .locale-switcher-host.is-topbar .locale-switcher-select {
  min-width: 58px !important;
  height: 20px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 10px;
  padding-left: 6px !important;
  padding-right: 20px !important;
}

.topbar .locale-switcher-host.is-topbar .locale-switcher-icon {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.locale-switcher-host.is-floating {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  transform: none;
}

.locale-switcher-host.is-admin {
  margin: 0;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: none;
  border-color: rgba(29, 36, 48, 0.18);
  padding: 4px 8px 4px 6px;
}

.locale-switcher-host:hover {
  box-shadow: 2px 2px 0 rgba(29, 36, 48, 0.12);
  transform: translateY(-1px);
}

.locale-switcher-host.is-admin .locale-switcher-select {
  min-width: 76px;
}

.locale-switcher-select {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  min-width: 62px;
  height: 22px;
  padding: 0 24px 0 8px;
  color: inherit;
  border-radius: 999px;
  background-color: #fffdf7;
  background-image:
    linear-gradient(135deg, #fffdf7, var(--paper)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23202233' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 7px center, right 7px center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 12px 12px;
  font-size: 11px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(29, 36, 48, 0.16);
  position: relative;
  padding-right: 24px;
}

.locale-switcher-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(216, 79, 63, 0.2);
}

.locale-switcher-select option {
  font-weight: 700;
}

.test-progress-dock {
  position: sticky;
  top: 73px;
  z-index: 19;
  border-bottom: 1px solid rgba(29, 36, 48, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.9), rgba(247, 241, 228, 0.94)),
    rgba(247, 241, 228, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(23, 29, 39, 0.06);
}

.progress-dock-inner {
  display: grid;
  width: min(1160px, calc(100% - 32px));
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 10px 0;
}

.progress-dock-inner > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress-dock-inner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.progress-dock-inner strong {
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
}

main,
footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

body.subpage main {
  min-height: calc(100vh - 210px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 38px;
  align-items: center;
  min-height: 650px;
  padding: 60px 0 44px;
}

.test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 58px 0 20px;
}

.test-hero h1 {
  margin-bottom: 18px;
}

.desk-note {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 18px;
  background: var(--paper-deep);
  box-shadow: 6px 6px 0 rgba(29, 36, 48, 0.12);
}

.desk-note::before {
  content: "NOTE";
  position: absolute;
  top: -14px;
  right: 18px;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(2deg);
}

.desk-note strong {
  display: block;
  margin-bottom: 8px;
}

.desk-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-copy > * {
  animation: paperRise var(--motion-slow) var(--ease-out) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 240ms;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

h1,
h2 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.hero-text,
.section-title p,
.notice {
  color: var(--muted);
}

.hero-text {
  max-width: 660px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.archive-marquee {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 34px 0 20px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 111, 159, 0.08), transparent 44%),
    linear-gradient(90deg, rgba(216, 79, 63, 0.06) 0 9px, transparent 9px),
    rgba(255, 253, 247, 0.78);
  box-shadow: 8px 8px 0 rgba(29, 36, 48, 0.1);
  transform: translateZ(0);
}

.archive-marquee::before {
  content: "PUBLIC INDEX";
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  border: 2px solid rgba(216, 79, 63, 0.62);
  border-radius: 3px;
  padding: 4px 10px;
  color: var(--red);
  background: rgba(255, 250, 240, 0.84);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
  pointer-events: none;
}

.archive-marquee::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(29, 36, 48, 0.16);
  pointer-events: none;
}

.compact-marquee {
  display: block;
  margin: 26px 0 30px;
  padding: 12px;
}

.compact-marquee::before {
  content: none;
}

.compact-marquee .marquee-window {
  min-height: 190px;
}

.marquee-heading {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px dashed rgba(29, 36, 48, 0.2);
  padding: 6px 18px 6px 4px;
}

.marquee-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 46px);
}

.marquee-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.marquee-window {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(29, 36, 48, 0.18);
  border-radius: 3px;
  background:
    linear-gradient(rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    rgba(238, 225, 201, 0.36);
  background-size: 22px 22px, 22px 22px, auto;
}

.marquee-window::before,
.marquee-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: min(18vw, 160px);
  pointer-events: none;
}

.marquee-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(238, 225, 201, 0.96) 0%, rgba(238, 225, 201, 0.62) 42%, transparent 100%);
}

.marquee-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(238, 225, 201, 0.96) 0%, rgba(238, 225, 201, 0.62) 42%, transparent 100%);
}

.marquee-glow {
  position: absolute;
  inset: 46px 10px;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(216, 79, 63, 0.12), transparent),
    linear-gradient(115deg, transparent 0 44%, rgba(255, 250, 240, 0.55) 48%, transparent 53% 100%);
  filter: blur(8px);
  opacity: 0.72;
  transform: rotate(-6deg) scaleX(1.12);
  animation: marqueeGlow 5.6s ease-in-out infinite alternate;
}

.diagonal-marquee-lane {
  position: absolute;
  left: -15%;
  width: 130%;
  overflow: hidden;
  border-top: 1px solid rgba(29, 36, 48, 0.62);
  border-bottom: 1px solid rgba(29, 36, 48, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.86), rgba(238, 225, 201, 0.72)),
    rgba(255, 250, 240, 0.84);
  box-shadow:
    5px 5px 0 rgba(29, 36, 48, 0.08),
    0 12px 26px rgba(23, 29, 39, 0.1);
  transform: rotate(-5.5deg);
  transform-origin: center;
}

.lane-back {
  top: 24px;
  z-index: 1;
  opacity: 0.52;
  filter: saturate(0.86);
  transform: rotate(-5.5deg) translateY(5px) scale(0.98);
}

.lane-main {
  top: 80px;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(29, 36, 48, 0.9), rgba(39, 49, 63, 0.86)),
    var(--desk);
  color: #fffaf0;
  box-shadow:
    6px 6px 0 rgba(216, 79, 63, 0.22),
    0 18px 36px rgba(23, 29, 39, 0.2);
}

.lane-front {
  top: 142px;
  z-index: 2;
  opacity: 0.86;
  transform: rotate(-5.5deg) translateY(-2px) scale(1.02);
  background:
    linear-gradient(90deg, rgba(216, 79, 63, 0.11), rgba(217, 164, 65, 0.14), rgba(47, 111, 159, 0.1)),
    rgba(255, 253, 247, 0.88);
}

.marquee-rail {
  display: flex;
  width: max-content;
  min-height: 50px;
  align-items: center;
}

.diagonal-marquee-lane.is-css-marquee .marquee-rail {
  animation: marqueeFallback 30s linear infinite;
}

.diagonal-marquee-lane.is-reverse.is-css-marquee .marquee-rail {
  animation-direction: reverse;
}

.marquee-window:hover .diagonal-marquee-lane.is-css-marquee .marquee-rail {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.marquee-track span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(29, 36, 48, 0.22);
  border-radius: 3px;
  padding: 5px 13px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.8);
  font-family: Consolas, Monaco, "Microsoft YaHei", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(29, 36, 48, 0.08);
  transform: skewX(-8deg);
}

.lane-main .marquee-track span {
  border-color: rgba(255, 250, 240, 0.3);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.marquee-track span:nth-child(3n + 1) {
  color: var(--red);
}

.marquee-track span:nth-child(3n + 2) {
  color: var(--blue);
}

.marquee-track span:nth-child(3n) {
  color: var(--green);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease, opacity var(--motion-fast) ease;
  will-change: transform;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.ghost {
  background: var(--paper-deep);
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.button.is-sealing {
  opacity: 0.82;
  animation: sealingPulse 1.35s ease-in-out infinite;
}

.archive-board,
.panel,
.certificate-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.archive-board {
  min-height: 500px;
  padding: 34px;
  transform: rotate(1deg);
  transform-origin: center;
  animation:
    archiveBoardIn var(--motion-slow) var(--ease-soft) 180ms both,
    archiveBoardDrift 8s ease-in-out 1.4s infinite alternate;
  will-change: transform, opacity;
}

.archive-board::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(29, 36, 48, 0.2);
  pointer-events: none;
}

.archive-board::after,
.certificate-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.45) 46%, transparent 54% 100%);
  opacity: 0;
  transform: translateX(-24%);
  will-change: opacity, transform;
}

.archive-board::after {
  animation: paperSheen 3.8s var(--ease-soft) 1.1s both;
}

.paperclip {
  position: absolute;
  top: -22px;
  left: 42px;
  width: 54px;
  height: 74px;
  border: 5px solid var(--yellow);
  border-radius: 28px;
  border-left-color: transparent;
  transform: rotate(12deg);
  animation: clipDrop 820ms var(--ease-stamp) 680ms both;
}

.archive-stamp {
  position: absolute;
  top: 34px;
  right: 28px;
  border: 3px solid var(--red);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(9deg);
  opacity: 0.78;
  transform-origin: center;
  animation: stampIn 760ms var(--ease-stamp) 880ms both;
}

.preview-header {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.preview-header strong {
  color: var(--ink);
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
}

.preview-type {
  margin-top: 56px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 12vw, 126px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 4px;
}

.archive-board p {
  margin: 18px 0 28px;
  max-width: 330px;
  font-weight: 800;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bars span {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 10px;
  background: rgba(238, 225, 201, 0.74);
  font-size: 13px;
  font-weight: 900;
}

.mini-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: rgba(47, 138, 107, 0.22);
  transform-origin: left;
  animation: miniBarFill 1.15s var(--ease-soft) both;
}

.mini-bars span:nth-child(2)::before {
  animation-delay: 110ms;
}

.mini-bars span:nth-child(3)::before {
  animation-delay: 220ms;
}

.mini-bars span:nth-child(4)::before {
  animation-delay: 330ms;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -10px 0 30px;
}

.workflow-strip article,
.deep-intro,
.intro-notes article,
.field-guide,
.guide-grid article,
.desk-status {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.76);
}

.workflow-strip article {
  position: relative;
  min-height: 160px;
  padding: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(29, 36, 48, 0.1);
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease;
}

.workflow-strip article:hover,
.intro-notes article:hover,
.guide-grid article:hover,
.type-card:hover,
.insight:hover {
  transform: translateY(-3px);
  box-shadow: 6px 9px 0 rgba(29, 36, 48, 0.1);
  background: rgba(255, 253, 247, 0.92);
}

.workflow-strip article::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border: 2px dashed rgba(29, 36, 48, 0.16);
  border-radius: 50%;
}

.workflow-strip span {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
}

.workflow-strip strong,
.intro-notes strong,
.guide-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-strip p,
.intro-notes p,
.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.deep-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin: 30px 0;
  padding: clamp(20px, 3.6vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(238, 225, 201, 0.62)),
    rgba(255, 250, 240, 0.75);
}

.intro-lead h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
}

.intro-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-notes {
  display: grid;
  gap: 12px;
}

.intro-notes article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px 14px;
  padding: 16px;
  border-width: 1px;
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease;
}

.intro-notes span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.field-guide {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  margin: 30px 0;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(47, 111, 159, 0.09), transparent 48%),
    rgba(255, 253, 247, 0.72);
  box-shadow: var(--shadow);
}

.home-start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(216, 79, 63, 0.08) 0 8px, transparent 8px),
    linear-gradient(135deg, rgba(217, 164, 65, 0.12), transparent 48%),
    var(--card);
}

.home-start-panel .section-title {
  margin-bottom: 0;
}

.home-reading {
  background:
    linear-gradient(135deg, rgba(47, 138, 107, 0.1), transparent 46%),
    rgba(255, 253, 247, 0.72);
}

.home-reading .guide-copy {
  border-right-color: rgba(47, 138, 107, 0.28);
}

.guide-copy {
  border-right: 1px dashed rgba(29, 36, 48, 0.22);
  padding-right: 22px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-grid article {
  padding: 15px;
  border-width: 1px;
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease;
}

.panel {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 42px);
}

.motion-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
  will-change: opacity, transform;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.test-panel.motion-reveal,
.test-panel.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.section-title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 26px;
}

.test-shell,
.questions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.desk-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.desk-status span:last-child {
  color: var(--red);
  font-family: Consolas, Monaco, monospace;
}

.version-picker {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  gap: 12px;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.88), rgba(238, 225, 201, 0.56)),
    var(--card);
}

.version-picker > div:first-child {
  display: grid;
  align-content: center;
  border-right: 1px dashed rgba(29, 36, 48, 0.2);
  padding-right: 12px;
}

.version-picker span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.version-picker strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

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

.version-option {
  position: relative;
  cursor: pointer;
}

.version-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.version-option > span {
  display: grid;
  min-height: 84px;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px;
  background: rgba(255, 253, 247, 0.78);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.version-option strong,
.version-option small {
  display: block;
}

.version-option strong {
  color: var(--ink);
  font-size: 15px;
}

.version-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.version-option:hover > span {
  border-color: rgba(29, 36, 48, 0.34);
  transform: translateY(-1px);
}

.version-option input:checked + span {
  border-color: var(--ink);
  background: rgba(216, 79, 63, 0.1);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 240, 0.72);
}

.test-meta,
.query-box {
  display: flex;
  gap: 12px;
  align-items: end;
}

.query-rotator-panel {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  background:
    linear-gradient(90deg, rgba(216, 79, 63, 0.08), rgba(47, 111, 159, 0.07), rgba(47, 138, 107, 0.07)),
    var(--card);
  box-shadow: 6px 7px 0 rgba(29, 36, 48, 0.08);
  overflow: hidden;
}

.query-rotator-panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(29, 36, 48, 0.16);
  pointer-events: none;
}

.rotator-kicker {
  position: relative;
  z-index: 1;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.query-rotator-line {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.query-rotating-text {
  position: relative;
  display: inline-flex;
  min-width: min(460px, 58vw);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 8px 14px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(216, 79, 63, 0.12) 0 6px, transparent 6px),
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(238, 225, 201, 0.62)),
    var(--card);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.query-rotating-text::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(29, 36, 48, 0.14);
  pointer-events: none;
}

.rotating-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.rotating-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%);
  animation: rotatingCharIn 620ms var(--ease-soft) forwards;
  animation-delay: calc(var(--char-index, 0) * 28ms);
}

.query-rotating-text.is-leaving .rotating-char {
  animation: rotatingCharOut 360ms ease forwards;
  animation-delay: calc(var(--char-index, 0) * 14ms);
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
  outline: none;
}

input:focus {
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.16);
}

.progress {
  overflow: hidden;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
}

#progressBar {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--green),
    var(--green) 10px,
    #45a583 10px,
    #45a583 20px
  );
  background-size: 28px 28px;
  transition: width 620ms var(--ease-soft);
  animation: progressStripe 2.4s linear infinite;
}

.question-stepper {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(238, 225, 201, 0.58)),
    var(--card);
  box-shadow:
    0 20px 28px rgba(23, 29, 39, 0.12),
    6px 6px 0 rgba(29, 36, 48, 0.08);
}

.question-stepper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(29, 36, 48, 0.16);
  border-radius: 22px;
  pointer-events: none;
}

.step-indicator-row {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  overflow-x: auto;
  padding: 26px 30px 18px;
  scrollbar-width: thin;
}

.step-indicator {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.step-indicator-inner {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--desk);
  color: rgba(255, 250, 240, 0.62);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform var(--motion-fast) var(--ease-stamp),
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.step-indicator:hover .step-indicator-inner,
.step-indicator:focus-visible .step-indicator-inner {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.14);
}

.step-indicator.is-active .step-indicator-inner,
.step-indicator.is-complete .step-indicator-inner {
  color: #fff;
  background: var(--red);
}

.step-indicator.is-active .step-indicator-inner {
  box-shadow:
    inset 0 0 0 5px rgba(255, 250, 240, 0.22),
    0 0 0 5px rgba(216, 79, 63, 0.12);
}

.active-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #fffaf0;
}

.check-icon {
  width: 17px;
  height: 17px;
  color: #fff;
}

.check-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.step-connector {
  position: relative;
  flex: 1 0 28px;
  min-width: 28px;
  height: 3px;
  margin: 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 82, 91, 0.32);
}

.step-connector span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: width 420ms var(--ease-soft);
}

.step-connector.is-complete span {
  width: 100%;
}

.step-content-default {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.question-stepper .questions {
  display: block;
  min-height: 250px;
  padding: 8px 30px 0;
}

.stepper-footer {
  position: relative;
  z-index: 1;
  padding: 22px 30px 30px;
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stepper-back,
.stepper-next {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}

.stepper-back {
  color: var(--muted);
  background: transparent;
}

.stepper-back:hover {
  color: var(--ink);
}

.stepper-next {
  margin-left: auto;
  color: #fff;
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
}

.stepper-back:hover,
.stepper-next:hover {
  transform: translateY(-1px);
}

.stepper-next:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.stepper-next:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.question {
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 3px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.72);
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease, border-color var(--motion-med) ease;
  will-change: transform;
}

.question-stepper .question {
  display: block;
  min-height: 230px;
  border-width: 0 0 0 6px;
  border-radius: 6px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 253, 247, 0.74);
}

.question-stepper .question[hidden] {
  display: none;
}

.question-stepper .question.is-current.slide-from-next {
  animation: stepSlideNext 520ms var(--ease-soft) both;
}

.question-stepper .question.is-current.slide-from-prev {
  animation: stepSlidePrev 520ms var(--ease-soft) both;
}

.question.question-in {
  animation: questionIn 820ms var(--ease-soft) both;
}

.question:hover,
.question:focus-within {
  border-color: rgba(29, 36, 48, 0.32);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 6px 6px 0 rgba(29, 36, 48, 0.08);
  transform: translateY(-2px);
}

.question.is-answered {
  background:
    linear-gradient(90deg, rgba(47, 138, 107, 0.08) 0 6px, transparent 6px),
    rgba(255, 253, 247, 0.86);
}

.question:nth-child(3n + 1) {
  border-left-color: var(--red);
}

.question:nth-child(3n + 2) {
  border-left-color: var(--green);
}

.question-title {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}

.choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffdf7;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
  will-change: transform;
}

.choice span:hover {
  border-color: rgba(29, 36, 48, 0.32);
  transform: translateY(-1px);
}

.choice input:checked + span {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 240, 0.7);
  animation: choiceStamp 420ms var(--ease-stamp);
}

.submit {
  width: 100%;
}

.notice {
  margin: 0;
  font-size: 13px;
}

.certificate-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 79, 63, 0.08) 0 8px, transparent 8px),
    var(--card);
  will-change: transform, opacity;
}

.certificate-card.is-sealed {
  animation: certificateReveal 1.05s var(--ease-soft) both;
}

.certificate-card.is-sealed::before {
  content: "SEALED";
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 0;
  border: 3px solid var(--red);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--red);
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: scale(1.38) rotate(14deg);
  animation: resultStamp 820ms var(--ease-stamp) 340ms both;
}

.certificate-card.is-sealed::after {
  animation: paperSheen 2.3s var(--ease-soft) 620ms both;
}

.archive-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(29, 36, 48, 0.22);
  padding-bottom: 12px;
  color: var(--muted);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  font-weight: 900;
}

.archive-meta-row span:first-child {
  color: var(--green);
}

.cert-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.type-code {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 106px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 5px;
}

.cert-no {
  display: inline-flex;
  border: 2px solid var(--red);
  border-radius: 3px;
  padding: 8px 12px;
  color: var(--red);
  background: rgba(216, 79, 63, 0.08);
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  transform: rotate(2deg);
  will-change: transform;
}

.cert-no.is-highlighted {
  animation: certNoPulse 1.65s var(--ease-stamp) 620ms both;
}

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

.dimension-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dimension-track {
  overflow: hidden;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-deep);
}

.dimension-fill {
  width: var(--left);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform-origin: left;
}

.certificate-card.is-sealed .dimension-fill {
  animation: dimensionFill 1.05s var(--ease-soft) 560ms both;
}

.insight-grid,
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.insight,
.type-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: rgba(255, 253, 247, 0.68);
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease;
}

.insight strong,
.type-card strong {
  display: block;
  margin-bottom: 6px;
}

.insight p,
.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-report {
  display: grid;
  gap: 16px;
  border-top: 1px dashed rgba(29, 36, 48, 0.22);
  padding-top: 20px;
}

.report-header h4 {
  margin: 2px 0 10px;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.12;
}

.report-header p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.report-grid,
.dimension-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-grid article,
.dimension-note {
  border: 1px solid rgba(29, 36, 48, 0.16);
  border-radius: 3px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(238, 225, 201, 0.34)),
    rgba(255, 253, 247, 0.68);
}

.report-grid span,
.reading-title strong,
.dimension-note span,
.dimension-note strong {
  display: block;
}

.report-grid span,
.dimension-note span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.report-grid p,
.dimension-note p,
.reading-title span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dimension-reading {
  display: grid;
  gap: 12px;
  border: 2px solid rgba(29, 36, 48, 0.16);
  border-radius: 3px;
  padding: 16px;
  background: rgba(238, 225, 201, 0.36);
}

.reading-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed rgba(29, 36, 48, 0.18);
  padding-bottom: 10px;
}

.dimension-note {
  display: grid;
  gap: 8px;
}

.dimension-note strong {
  margin-top: 3px;
  font-size: 17px;
}

.reading-recommendations {
  display: grid;
  gap: 16px;
  border-top: 1px dashed rgba(29, 36, 48, 0.22);
  padding-top: 20px;
}

.reading-recommendations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.reading-recommendations-head h4 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.12;
}

.reading-recommendations-head > p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.book-card {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(29, 36, 48, 0.16);
  border-radius: 3px;
  padding: 10px;
  background: rgba(255, 253, 247, 0.7);
  transition: transform var(--motion-med) var(--ease-out), box-shadow var(--motion-med) var(--ease-out), background var(--motion-med) ease;
}

.book-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 5px 7px 0 rgba(29, 36, 48, 0.1);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-deep);
  box-shadow: 4px 4px 0 rgba(29, 36, 48, 0.12);
}

.book-cover-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-wrap span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border: 1px solid var(--ink);
  padding: 1px 5px;
  color: var(--ink);
  background: var(--yellow);
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  font-weight: 900;
}

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

.book-copy h5 {
  margin: 2px 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.book-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.book-copy .book-author {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

#queryResult {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

#queryResult .insight.is-visible {
  animation: paperRise var(--motion-med) var(--ease-out) both;
}

.community-workspace[hidden],
.community-gate[hidden] {
  display: none !important;
}

.community-hero {
  padding-bottom: 28px;
}

.community-gate {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-top: 16px;
}

.community-gate-copy {
  padding-right: 24px;
  border-right: 1px dashed rgba(29, 36, 48, 0.24);
}

.community-gate h2,
.community-compose h2,
.community-feed h2 {
  margin: 2px 0 8px;
}

.community-gate-copy > p:last-child,
.community-access-form > p {
  margin: 0;
  color: var(--muted);
}

.community-access-form,
.community-compose form {
  display: grid;
  gap: 10px;
}

.community-access-form label,
.community-compose label {
  font-size: 13px;
  font-weight: 900;
}

.community-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.community-message {
  min-height: 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.community-message.is-error,
.community-empty.is-error {
  color: var(--red);
}

.community-workspace {
  margin: 18px 0 38px;
}

.community-statusbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  border: 2px solid var(--ink);
  padding: 12px;
  background: var(--paper-deep);
  box-shadow: 6px 6px 0 rgba(29, 36, 48, 0.12);
}

.community-statusbar > div {
  padding: 5px 12px;
  border-left: 5px solid var(--blue);
}

.community-statusbar > div:nth-child(2) {
  border-left-color: var(--green);
}

.community-statusbar span,
.community-statusbar strong {
  display: block;
}

.community-statusbar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.community-statusbar strong {
  font-family: Consolas, Monaco, monospace;
  font-size: 18px;
}

.community-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.community-compose {
  position: sticky;
  top: 112px;
  border: 2px solid var(--ink);
  padding: 24px;
  background: var(--card);
  box-shadow: 7px 7px 0 rgba(29, 36, 48, 0.12);
}

.community-compose::after {
  content: "QUESTION";
  position: absolute;
  right: 18px;
  top: -14px;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(2deg);
}

.community-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
  outline: none;
}

.community-compose textarea:focus {
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.16);
}

.community-form-footer,
.community-feed-head,
.community-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-form-footer > span {
  color: var(--muted);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.community-feed {
  min-width: 0;
}

.community-feed-head {
  align-items: end;
  padding: 4px 0 14px;
  border-bottom: 2px solid var(--ink);
}

.community-refresh {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.community-refresh:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.community-posts {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.community-post {
  position: relative;
  border: 1px solid rgba(29, 36, 48, 0.28);
  border-left: 6px solid var(--red);
  padding: 18px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 4px 5px 0 rgba(29, 36, 48, 0.08);
}

.community-post:nth-child(4n + 2) {
  border-left-color: var(--blue);
}

.community-post:nth-child(4n + 3) {
  border-left-color: var(--green);
}

.community-post:nth-child(4n) {
  border-left-color: var(--yellow);
}

.community-post-meta strong {
  color: var(--blue);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.community-post-meta time,
.community-reply-count {
  color: var(--muted);
  font-size: 12px;
}

.community-post-content {
  margin: 12px 0;
  font-size: 16px;
  font-weight: 800;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-reply-count {
  display: block;
  padding-top: 9px;
  border-top: 1px dashed rgba(29, 36, 48, 0.18);
}

.community-replies {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.community-reply {
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: rgba(238, 225, 201, 0.48);
}

.community-reply p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.community-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}

.community-reply-form .button {
  min-height: 42px;
  box-shadow: 3px 3px 0 var(--ink);
}

.community-empty {
  margin: 0;
  border: 1px dashed rgba(29, 36, 48, 0.3);
  padding: 28px 18px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.5);
  text-align: center;
}

.stats-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.stats-total,
.stats-board,
.stats-empty {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.7);
}

.stats-total {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

.stats-total span,
.stats-header span,
.stats-row span,
.stats-empty p {
  color: var(--muted);
}

.stats-total > strong {
  margin: 6px 0 2px;
  font-size: clamp(72px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

.stats-total p {
  margin: 0 0 18px;
}

.stats-board {
  padding: 18px;
}

.stats-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.stats-list {
  display: grid;
  gap: 9px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(29, 36, 48, 0.32) transparent;
  scrollbar-width: thin;
}

.stats-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(120px, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(29, 36, 48, 0.15);
}

.stats-row:last-child {
  border-bottom: 0;
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  line-height: 1.2;
}

.stats-row span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-row b {
  justify-self: end;
  font-size: 13px;
}

.stats-row.is-empty {
  opacity: 0.48;
}

.stats-meter {
  height: 12px;
  border: 1px solid rgba(29, 36, 48, 0.24);
  border-radius: 999px;
  background: rgba(238, 225, 201, 0.86);
  overflow: hidden;
}

.stats-meter span {
  display: block;
  width: var(--value);
  min-width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width var(--motion-slow) var(--ease-out);
}

.stats-empty {
  padding: 14px;
  text-align: center;
}

footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 861px) and (max-width: 1120px) {
  .topbar {
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 6px 7px;
    font-size: 12px;
  }

  .topbar-cta {
    gap: 5px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    border-radius: 2px;
  }

  .topbar-cta {
    width: 100%;
    min-height: 42px;
    transform: none;
  }

  .topbar-cta:hover,
  .topbar-cta:focus-visible {
    transform: translate(2px, 2px);
  }

  .test-progress-dock {
    top: 176px;
  }

  .progress-dock-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workflow-strip,
  .deep-intro,
  .field-guide,
  .guide-grid,
  .stats-layout,
  .test-hero,
  .community-gate,
  .community-columns,
  .archive-marquee {
    grid-template-columns: 1fr;
  }

  .community-gate-copy {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px dashed rgba(29, 36, 48, 0.24);
  }

  .community-compose {
    position: relative;
    top: auto;
  }

  .archive-marquee {
    margin-top: 24px;
    padding: 14px;
  }

  .marquee-heading {
    border-right: 0;
    border-bottom: 1px dashed rgba(29, 36, 48, 0.2);
    padding: 2px 0 14px;
  }

  .marquee-window {
    min-height: 188px;
  }

  .diagonal-marquee-lane {
    left: -32%;
    width: 164%;
    transform: rotate(-6deg);
  }

  .lane-back {
    top: 20px;
    transform: rotate(-6deg) translateY(5px) scale(0.98);
  }

  .lane-main {
    top: 70px;
  }

  .lane-front {
    top: 122px;
    transform: rotate(-6deg) translateY(-2px) scale(1.02);
  }

  .marquee-track span {
    min-height: 30px;
    padding: 4px 11px;
    font-size: 11px;
  }

  .guide-copy {
    border-right: 0;
    border-bottom: 1px dashed rgba(29, 36, 48, 0.22);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .intro-notes article {
    grid-template-columns: 44px 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .stats-row b {
    justify-self: start;
  }

  .archive-board {
    transform: none;
    animation: paperRise var(--motion-slow) var(--ease-soft) both;
    will-change: auto;
  }

  .test-meta,
  .query-box,
  .cert-top,
  .home-start-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .query-rotator-panel,
  .query-rotator-line {
    align-items: stretch;
    flex-direction: column;
  }

  .query-rotator-line {
    justify-content: flex-start;
  }

  .query-rotating-text {
    min-width: 100%;
    min-height: 40px;
    font-size: 18px;
  }

  .version-picker,
  .version-options {
    grid-template-columns: 1fr;
  }

  .version-picker > div:first-child {
    border-right: 0;
    border-bottom: 1px dashed rgba(29, 36, 48, 0.2);
    padding: 0 0 10px;
  }

  .choices,
  .insight-grid,
  .report-grid,
  .dimension-note-grid,
  .book-grid,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .question-stepper {
    border-radius: 18px;
  }

  .question-stepper::before {
    border-radius: 14px;
  }

  .step-indicator-row {
    padding: 20px 18px 12px;
  }

  .step-indicator-inner {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .step-connector {
    flex-basis: 18px;
    min-width: 18px;
    margin: 0 5px;
  }

  .question-stepper .questions {
    min-height: 380px;
    padding: 6px 18px 0;
  }

  .question-stepper .question {
    min-height: 360px;
  }

  .stepper-footer {
    padding: 18px;
  }

  .reading-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .reading-recommendations-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .reading-recommendations-head > p {
    max-width: none;
  }

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

@keyframes topbarIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navCurrentIn {
  from {
    background: rgba(216, 79, 63, 0);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0);
  }
  to {
    background: rgba(216, 79, 63, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.55);
  }
}

@keyframes paperRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes archiveBoardIn {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-0.6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1deg);
  }
}

@keyframes archiveBoardDrift {
  from {
    transform: translateY(0) rotate(1deg);
  }
  to {
    transform: translateY(-4px) rotate(0.55deg);
  }
}

@keyframes clipDrop {
  from {
    opacity: 0;
    transform: translateY(-14px) rotate(22deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(12deg);
  }
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(14deg);
  }
  72% {
    opacity: 0.84;
    transform: scale(0.98) rotate(8deg);
  }
  100% {
    opacity: 0.78;
    transform: scale(1) rotate(9deg);
  }
}

@keyframes paperSheen {
  0% {
    opacity: 0;
    transform: translateX(-24%);
  }
  35% {
    opacity: 0.36;
  }
  100% {
    opacity: 0;
    transform: translateX(24%);
  }
}

@keyframes miniBarFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes sealingPulse {
  0%,
  100% {
    box-shadow: 4px 4px 0 var(--ink);
  }
  50% {
    box-shadow: 2px 2px 0 var(--ink);
  }
}

@keyframes progressStripe {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 0;
  }
}

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

@keyframes stepSlideNext {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stepSlidePrev {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes choiceStamp {
  0% {
    transform: scale(0.985);
  }
  70% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotatingCharIn {
  from {
    opacity: 0;
    transform: translateY(115%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotatingCharOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-120%);
  }
}

@keyframes certificateReveal {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-0.25deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes resultStamp {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(12deg);
  }
  68% {
    opacity: 0.2;
    transform: scale(0.98) rotate(8deg);
  }
  100% {
    opacity: 0.16;
    transform: scale(1) rotate(9deg);
  }
}

@keyframes certNoPulse {
  0% {
    transform: rotate(2deg) scale(1);
    box-shadow: 0 0 0 rgba(216, 79, 63, 0);
  }
  38% {
    transform: rotate(1deg) scale(1.025);
    box-shadow: 0 0 0 5px rgba(216, 79, 63, 0.1);
  }
  100% {
    transform: rotate(2deg) scale(1);
    box-shadow: 0 0 0 rgba(216, 79, 63, 0);
  }
}

@keyframes dimensionFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes marqueeFallback {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeGlow {
  from {
    opacity: 0.52;
    transform: rotate(-6deg) translateX(-4%) scaleX(1.12);
  }
  to {
    opacity: 0.86;
    transform: rotate(-6deg) translateX(4%) scaleX(1.18);
  }
}

@keyframes notFoundCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-0.6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes notFoundGridDrift {
  from {
    transform: rotate(-3deg) translate3d(-10px, -8px, 0);
  }
  to {
    transform: rotate(-3deg) translate3d(10px, 8px, 0);
  }
}

@keyframes notFoundOrbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes notFoundFileFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}

@media (max-width: 720px) {
  .not-found-page {
    overflow: auto;
  }

  .not-found-shell {
    min-height: 100svh;
    padding: 22px;
  }

  .not-found-card {
    padding: 28px 20px;
  }

  .not-found-card::before {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }

  .lost-file {
    opacity: 0.42;
  }

  .file-a {
    left: -18px;
  }

  .file-b {
    right: -22px;
  }

  .file-c {
    display: none;
  }
}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar {
    gap: 10px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 32px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 15px;
  }

  nav {
    gap: 4px;
    margin: 0 -16px;
    padding: 4px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .topbar-cta {
    min-height: 44px;
    padding: 10px 14px;
  }

  .test-progress-dock {
    top: 170px;
  }

  .progress-dock-inner,
  main,
  footer {
    width: min(100% - 24px, 1160px);
  }

  .progress-dock-inner {
    padding: 8px 0;
  }

  .hero {
    gap: 24px;
    padding: 38px 0 30px;
  }

  .test-hero {
    gap: 28px;
    padding: 34px 0 16px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-text,
  .intro-lead p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-actions .button,
  .home-start-panel .button,
  .query-box .button,
  .test-meta .button,
  .submit {
    width: 100%;
  }

  .archive-board,
  .workflow-strip article,
  .deep-intro,
  .field-guide,
  .panel,
  .query-rotator-panel {
    padding: 18px;
  }

  .archive-marquee {
    margin-top: 20px;
    padding: 10px;
  }

  .marquee-window {
    min-height: 166px;
  }

  .lane-back {
    top: 14px;
  }

  .lane-main {
    top: 61px;
  }

  .lane-front {
    top: 108px;
  }

  .mini-bars span,
  .dimension-row {
    font-size: 12px;
  }

  .query-box input,
  .community-input-row input,
  .test-meta input {
    min-height: 48px;
  }

  .community-input-row,
  .community-statusbar,
  .community-reply-form {
    grid-template-columns: 1fr;
  }

  .community-statusbar .button,
  .community-input-row .button,
  .community-reply-form .button {
    width: 100%;
  }

  .community-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .community-form-footer .button {
    width: 100%;
  }

  .question-stepper {
    border-width: 1px;
    border-radius: 12px;
  }

  .step-indicator-row {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 14px 14px 10px;
    scrollbar-width: none;
  }

  .step-indicator-row::-webkit-scrollbar {
    display: none;
  }

  .step-connector {
    flex-basis: 12px;
    min-width: 12px;
    margin: 0 3px;
  }

  .question-stepper .questions {
    min-height: 330px;
    padding: 4px 14px 0;
  }

  .question-stepper .question {
    min-height: 310px;
  }

  .stepper-footer {
    padding: 14px;
  }

  .stepper-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .stepper-nav button {
    min-height: 46px;
  }

  .notice {
    font-size: 13px;
  }

  footer {
    padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
}

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

  .motion-reveal,
  .motion-reveal.is-visible,
  .hero-copy > *,
  .archive-board,
  .question.question-in,
  .certificate-card.is-sealed {
    opacity: 1;
    transform: none;
  }

  .diagonal-marquee-lane.is-css-marquee .marquee-rail {
    animation: none;
    transform: none;
  }

  .not-found-grid,
  .not-found-orbit,
  .lost-file,
  .not-found-card {
    animation: none;
  }

}
