@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-900.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

:root {
  --paper: #f0eee6;
  --paper-raised: #faf8f1;
  --paper-deep: #e3dfd2;
  --ink: #171611;
  --ink-soft: #4f4d45;
  --muted: #706d63;
  --line: #c9c3b4;
  --focus: #1f5bd8;
  --shadow: rgba(23, 22, 17, 0.1);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23,22,17,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,22,17,.018) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 210px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250,248,241,.72), rgba(240,238,230,0));
  z-index: -1;
}

a { color: inherit; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell { width: min(820px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.brand::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 1px 9px no-repeat,
    linear-gradient(90deg, var(--ink), var(--ink)) center / 9px 1px no-repeat,
    var(--paper-raised);
  box-shadow: 2px 2px 0 var(--paper-deep);
  transform: rotate(45deg) scale(.82);
}
.brand::after {
  content: "SCALE LAB";
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}
nav { display: flex; gap: 24px; font-size: .82rem; font-weight: 600; }
nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  text-decoration: none;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--ink);
  transition: right .18s ease;
}
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.hero { padding: 68px 0 26px; }
.question-hero { padding-bottom: 10px; }
.eyebrow, .result-kicker, .stage-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
}
h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-size: clamp(3.25rem, 10vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 760;
}
h2 {
  font-size: clamp(1.75rem, 4.7vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 700;
}
h3 { letter-spacing: -.025em; }
.lede {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.58;
}

.card {
  position: relative;
  margin: 30px 0;
  padding: clamp(24px, 5vw, 38px);
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 7px 8px 0 var(--paper-deep);
}
.card:not(.game-stage-card)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 5px;
  background: var(--ink);
}
.card > .eyebrow { color: var(--muted); }
.card > h2 { margin: 8px 0 22px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 18px;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs span[aria-current="page"] { color: var(--ink-soft); }

.game-meta, .profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 700;
}

.guess-form label {
  display: block;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.guess-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: rgba(255,255,255,.56);
}
.guess-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  background: transparent;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid rgba(23,22,17,.25);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 600;
  text-align: right;
}

button, .primary, .secondary {
  min-height: 46px;
  border-radius: 3px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.primary:hover, .secondary:hover { transform: translateY(-1px); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions .primary { margin-top: 0; }

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.filters label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.filters select {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 10px 34px 10px 11px;
  background: rgba(255,255,255,.52);
  color: var(--ink);
}

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.result-grid > div { border-top: 1px solid var(--line); padding: 13px 0; }
.result-grid span, .profile-head span { display: block; font-size: .76rem; color: var(--muted); }
.profile-head .profile-metric-label[title] { cursor: help; }
.result-grid strong, .profile-head strong { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.score { font-weight: 800; color: var(--ink); }
.explain, .muted, .dev-note { color: var(--muted); }
.reasoning { margin: 24px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.reasoning h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.dev-note { font-size: .75rem; margin-top: 12px; }

.profile-list { list-style: none; padding: 0; margin: 16px 0 0; }
.profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  text-transform: capitalize;
}
.profile-list small { display: block; color: var(--muted); font-size: .72rem; font-weight: 500; text-transform: none; }
.profile-insights { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); }
.profile-insights p { margin: 0; padding: 14px; border-right: 1px solid var(--line); }
.profile-insights p:last-child { border-right: 0; }
.profile-insights span { display: block; color: var(--muted); font-size: .74rem; }
.profile-insights strong { display: block; margin-top: 4px; }
.profile-notice { border-top: 1px solid var(--line); padding-top: 16px; }
.profile-notice p { margin: 0; }
.profile-notice .eyebrow { margin-bottom: 7px; }
.profile-notice strong { color: var(--ink); }
.profile-count, .profile-note { font-size: .82rem; margin: 14px 0 0; }

.profile-card {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr);
  grid-template-rows: auto 1fr;
  column-gap: 34px;
  padding: 30px 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23,22,17,.025) 1px, transparent 1px),
    linear-gradient(rgba(23,22,17,.025) 1px, transparent 1px),
    var(--paper-raised);
  background-size: 22px 22px;
}
.profile-card::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 17px;
  width: 120px;
  height: 8px;
  opacity: .55;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
.profile-card > .eyebrow,
.profile-card > h2 { grid-column: 1; }
.profile-card > h2 {
  align-self: start;
  margin: 8px 0 34px;
  max-width: 280px;
}
.profile-card > #profile {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}
.profile-card .profile-notice {
  border-top: 0;
  padding-top: 0;
}
.profile-card .profile-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.answer-reveal {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  background: rgba(250,248,241,.7);
}
.answer-reveal + .answer-reveal { margin-top: 8px; }
.answer-reveal summary { cursor: pointer; font-weight: 700; }
.answer-reveal p:last-child { margin-bottom: 0; }
.reasoning-steps { padding: 0; list-style: none; counter-reset: reasoning; }
.reasoning-steps li {
  counter-increment: reasoning;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.reasoning-steps li::before {
  content: counter(reasoning, decimal-leading-zero);
  flex: 0 0 30px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.reasoning-steps li span { flex: 1; }
.reasoning-steps li strong { text-align: right; }

.link-list { list-style: none; padding: 0; margin: 16px 0 30px; border-top: 1px solid var(--line); }
.link-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.link-list a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-list span {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.content {
  counter-reset: editorial-section;
  padding: 30px 0 80px;
}
.question-content { padding-top: 6px; }
.content > h1 { margin-top: 16px; }
.content > .lede { margin-bottom: 70px; }
.content > h2 {
  counter-increment: editorial-section;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 12px;
  margin: 54px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.content > h2::before {
  content: counter(editorial-section, decimal-leading-zero);
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.content > h2:first-of-type { margin-top: 32px; }
.content p, .content li { color: var(--ink-soft); }
.content p { max-width: 720px; }
.content ol, .content ul:not(.link-list) { padding-left: 1.25rem; }
.content li + li { margin-top: 7px; }
.question-content h2 { scroll-margin-top: 20px; }

.origin-story {
  --origin-accent: #ef6448;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  max-width: 980px;
  margin: 24px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 8px 8px 0 var(--paper-deep);
  isolation: isolate;
}

.origin-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 28px 28px 22px;
  background:
    linear-gradient(90deg, rgba(23,22,17,.035) 1px, transparent 1px),
    linear-gradient(rgba(23,22,17,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
}
.origin-visual::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  top: 34px;
  left: -74px;
  border-radius: 50%;
  background: var(--origin-accent);
  box-shadow: inset 0 0 0 1px rgba(23,22,17,.08);
  z-index: 0;
}
.origin-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(250,248,241,.2) 0 1px, transparent 1.3px) 0 0 / 7px 7px,
    linear-gradient(112deg, transparent 0 63%, rgba(23,22,17,.08) 63% 63.2%, transparent 63.2%);
  opacity: .55;
  z-index: 1;
}

.origin-portrait {
  position: relative;
  z-index: 2;
  width: min(88%, 360px);
  margin: 0 auto;
}
.origin-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(23,22,17,.42);
  background: #d8d4c9;
  box-shadow: 5px 6px 0 rgba(23,22,17,.14);
}
.origin-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(23,22,17,.24) 0 .65px, transparent .8px) 0 0 / 3px 3px;
  mix-blend-mode: multiply;
  opacity: .18;
}
.origin-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 17%;
  filter: grayscale(100%) contrast(1.08) brightness(1.02);
}
.origin-portrait figcaption {
  margin: 8px 0 0;
  color: rgba(23,22,17,.62);
  font-size: .62rem;
  line-height: 1.42;
  letter-spacing: .015em;
}

.origin-identity {
  position: relative;
  z-index: 3;
  margin: -3px 0 0;
  color: var(--ink);
  text-align: center;
}
.origin-identity strong {
  display: block;
  margin: 0 -10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4.6rem, 8vw, 6.8rem);
  font-weight: 820;
  line-height: .82;
  letter-spacing: -.085em;
}
.origin-identity span,
.origin-identity small {
  display: block;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.origin-identity span {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .28em;
}
.origin-identity small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .2em;
}

.origin-scale {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 24px;
  padding-top: 17px;
  color: rgba(23,22,17,.62);
  font-family: "Fraunces", Georgia, serif;
  font-size: .58rem;
  font-variant-numeric: tabular-nums;
}
.origin-scale::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  border-top: 1px solid rgba(23,22,17,.45);
  background: repeating-linear-gradient(90deg, rgba(23,22,17,.48) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 55%, transparent 55%);
  mask-image: linear-gradient(to bottom, #000 0 55%, transparent 55%);
}
.origin-scale sup { font-size: .7em; }

.origin-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 40px 34px;
  border-left: 1px solid var(--line);
}
.content .origin-copy > p { max-width: none; }
.origin-kicker {
  margin: 0 0 21px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.origin-copy > p:not(.origin-kicker):not(.origin-principle) {
  margin: 0;
  font-size: .96rem;
  line-height: 1.62;
}
.origin-copy > p + p:not(.origin-principle) { margin-top: 16px; }

.origin-experiment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 24px;
  padding: 0 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.origin-experiment li {
  position: relative;
  min-width: 0;
  min-height: 132px;
  margin: 0 !important;
  padding: 14px 11px 12px;
  border-right: 1px solid var(--line);
  color: var(--ink) !important;
}
.origin-experiment li:last-child { border-right: 0; }
.origin-step-icon {
  display: grid;
  place-items: center;
  height: 66px;
  color: var(--ink-soft);
}
.origin-step-icon svg {
  width: 64px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.origin-experiment li > span:last-child {
  display: block;
  font-size: .65rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.origin-experiment b {
  display: block;
  margin-bottom: 3px;
  color: var(--origin-accent);
  font-size: .58rem;
  letter-spacing: .12em;
}

.origin-principle {
  margin: auto 0 0;
  padding: 15px 0 0 16px;
  border-left: 3px solid var(--origin-accent);
  color: var(--ink-soft) !important;
  font-size: .82rem;
  line-height: 1.5;
}
.origin-principle strong { color: var(--ink); }

/* Final collage artwork: the image already contains the orange field, atomic motif,
   Trinity cloud, paper grain, and crop. Keep the surrounding treatment quiet. */
.origin-visual.origin-visual--collage {
  min-height: 0;
  padding: 24px 24px 22px;
}
.origin-visual--collage::before,
.origin-visual--collage::after {
  content: none;
}
.origin-visual--collage .origin-portrait--collage {
  width: 100%;
  margin: 0;
}
.origin-image-frame--collage {
  aspect-ratio: 1307 / 1203;
  border: 1px solid rgba(23,22,17,.18);
  background: var(--paper-deep);
  box-shadow: none;
}
.origin-image-frame--collage::after {
  content: none;
}
.origin-image-frame--collage img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.origin-portrait--collage figcaption {
  margin-top: 7px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

/* Daily / practice game stage — calibration instrument */
body[data-mode="daily"] .shell { width: min(1020px, calc(100% - 40px)); }
body[data-mode="practice"] .shell { width: min(920px, calc(100% - 40px)); }
body[data-mode="daily"] .daily-hero {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(290px,.75fr);
  column-gap: 64px;
  align-items: end;
  padding: 34px 0 12px;
}
body[data-mode="daily"] .daily-hero .eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }
body[data-mode="daily"] .daily-hero h1 { margin: 0; font-size: clamp(3.8rem, 8vw, 6.4rem); }
body[data-mode="daily"] .daily-hero .lede {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 18px;
  font-size: .94rem;
  line-height: 1.48;
}
body[data-mode="daily"] .daily-hero .lede::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20px);
}

.game-stage-card {
  --stage-bg: #ff6c4d;
  --stage-line: rgba(23,22,17,.3);
  position: relative;
  overflow: hidden;
  min-height: 470px;
  margin: 18px 0 38px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background:
    linear-gradient(rgba(23,22,17,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,22,17,.035) 1px, transparent 1px),
    var(--stage-bg);
  background-size: 22px 22px;
  box-shadow: 10px 11px 0 var(--paper-deep);
  transition: background-color .34s ease, box-shadow .24s ease;
  isolation: isolate;
}
.game-stage-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 78px;
  bottom: 22px;
  width: 9px;
  opacity: .38;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 11px);
  pointer-events: none;
  z-index: -1;
}
.game-stage-card::after {
  content: "10×";
  position: absolute;
  right: -18px;
  bottom: -54px;
  color: rgba(23,22,17,.065);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(9rem, 23vw, 15rem);
  line-height: .8;
  font-weight: 850;
  letter-spacing: -.08em;
  pointer-events: none;
  z-index: -1;
}
.game-stage-card[data-theme="coral"] { --stage-bg: #ff6c4d; }
.game-stage-card[data-theme="sky"] { --stage-bg: #68aefc; }
.game-stage-card[data-theme="mint"] { --stage-bg: #79d8a5; }
.game-stage-card[data-theme="gold"] { --stage-bg: #f2c84b; }
.practice-stage-card { --stage-bg: #68aefc; min-height: 0; }
.practice-stage-card .filters { padding: 18px 38px 0; }

.daily-progress {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 25px 38px 28px;
  border-bottom: 1px solid rgba(23,22,17,.22);
}
.progress-step {
  position: relative;
  height: 3px;
  background: rgba(23,22,17,.18);
}
.progress-step::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ink);
  transition: transform .34s cubic-bezier(.2,.75,.25,1);
}
.progress-step.current::after { transform: scaleX(.34); }
.progress-step.done::after { transform: scaleX(1); }
.progress-step.current::before {
  content: "";
  position: absolute;
  left: 34%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--ink);
  transform: translate(-50%,-50%) rotate(45deg);
  z-index: 2;
}
.progress-step span {
  position: absolute;
  top: 9px;
  left: 0;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.game-stage-card .game-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 17px 38px 0;
  color: rgba(23,22,17,.7);
}
.game-stage-card .chip {
  border-color: rgba(23,22,17,.7);
  color: var(--ink);
}
.score-pill {
  padding: 4px 8px;
  border: 1px solid rgba(23,22,17,.7);
  border-radius: 2px;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.question-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(270px,.72fr);
  grid-template-rows: auto 1fr;
  gap: 8px 56px;
  align-items: end;
  padding: 42px 52px 52px;
}
.question-stage > .stage-kicker { grid-column: 1; align-self: end; color: rgba(23,22,17,.64); }
.question-stage h2 {
  grid-column: 1;
  margin: 6px 0 0;
  max-width: 630px;
  color: var(--ink);
  font-size: clamp(2.6rem, 4.8vw, 4.15rem);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 740;
}
.game-stage-card .guess-form {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: none;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: rgba(250,248,241,.76);
  box-shadow: 4px 4px 0 rgba(23,22,17,.78);
  backdrop-filter: blur(4px);
}
.game-stage-card .guess-form label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.game-stage-card .guess-form label::after {
  content: "";
  width: 56px;
  height: 6px;
  margin-top: 2px;
  opacity: .46;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px);
}
.game-stage-card .guess-row { border-width: 1px; background: rgba(255,255,255,.5); }
.game-stage-card .guess-row:focus-within { box-shadow: 0 0 0 3px rgba(250,248,241,.5); }
.game-stage-card .guess-row input { padding: 16px 13px; font-size: clamp(1.16rem, 3vw, 1.45rem); font-weight: 650; }
.game-stage-card .unit { max-width: 44%; color: var(--ink-soft); }
.guess-hint { margin: 9px 1px 0; color: rgba(23,22,17,.64); font-size: .72rem; line-height: 1.4; }
.guess-magnitude {
  position: relative;
  display: grid;
  grid-template-columns: 46px auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 7px 9px;
  border: 1px solid rgba(23,22,17,.22);
  background: rgba(255,255,255,.24);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.guess-magnitude::before {
  content: "SCALE";
  color: rgba(23,22,17,.52);
  font-size: .58rem;
  letter-spacing: .12em;
}
.guess-magnitude::after {
  content: "";
  height: 7px;
  opacity: .46;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 9px);
}
.guess-magnitude[hidden] { display: none; }
.scratchpad-disclosure {
  margin-top: 12px;
  border-top: 1px solid rgba(23,22,17,.24);
}
.scratchpad-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 1px 0;
  color: rgba(23,22,17,.76);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.scratchpad-disclosure summary::-webkit-details-marker { display: none; }
.scratchpad-disclosure summary:hover { color: var(--ink); }
.scratchpad-disclosure summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.scratchpad-symbol::before { content: '+'; }
.scratchpad-disclosure[open] .scratchpad-symbol::before { content: '−'; }
.scratchpad-panel { padding-top: 10px; }
.scratchpad-panel textarea {
  display: block;
  width: 100%;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  resize: none;
  overflow: auto;
  border: 1px solid rgba(23,22,17,.5);
  border-radius: 2px;
  outline: 0;
  padding: 9px 10px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(239,100,72,.23) 18px 19px, transparent 19px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.5) 0 22px, rgba(23,22,17,.12) 22px 23px);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.scratchpad-panel textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(23,22,17,.11);
}
.scratchpad-panel textarea::placeholder { color: rgba(23,22,17,.42); }
.lock-button, .next-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 2px;
  box-shadow: none;
}
.lock-button:hover, .next-button:hover { transform: translate(2px, -2px); }
.lock-button span:last-child,
.next-button span:last-child { transition: transform .18s ease; }
.lock-button:hover span:last-child,
.next-button:hover span:last-child { transform: translateX(4px); }

.reveal-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(280px,.78fr);
  grid-template-rows: auto auto auto;
  gap: 0 44px;
  padding: 34px 42px 12px;
}
.locked-guess, .answer-reveal-block {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--stage-line);
}
.locked-guess span, .answer-reveal-block span { color: rgba(23,22,17,.62); font-size: .76rem; font-weight: 650; }
.locked-guess strong, .answer-reveal-block strong {
  text-align: right;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.locked-guess small, .answer-reveal-block small {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .36em;
  letter-spacing: 0;
  font-weight: 600;
  color: rgba(23,22,17,.58);
}

.result-verdict {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 176px;
  padding: 0 0 0 34px;
  border-left: 1px solid var(--stage-line);
  text-align: left;
}
.result-verdict .direction {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.result-verdict h2 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 6.2rem);
  line-height: .82;
  letter-spacing: -.075em;
}
.result-verdict h2 span {
  display: block;
  margin-top: 13px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .16em;
  line-height: 1;
  letter-spacing: .05em;
  font-weight: 650;
  text-transform: uppercase;
  color: rgba(23,22,17,.58);
}
.result-verdict .result-kicker { margin-top: 12px; color: rgba(23,22,17,.68); }
.score-award {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 0 34px;
  padding: 13px 0 0;
  border-left: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.score-award span { margin-right: 4px; color: rgba(23,22,17,.58); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.score-award strong { font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; }
.score-award small { color: rgba(23,22,17,.56); }

.scale-compare {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 44px 0 24px;
  padding-top: 16px;
}
.scale-axis { height: 2px; background: rgba(23,22,17,.52); position: relative; margin: 28px 0 0; }
.scale-axis::before, .scale-axis::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 10px;
  background: rgba(23,22,17,.52);
}
.scale-axis::before { left: 0; }
.scale-axis::after { right: 0; }
.scale-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}
.scale-marker i {
  display: block;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border: 2px solid var(--ink);
  background: var(--ink);
}
.answer-marker i { background: var(--stage-bg); }
.guess-marker b { transform: translateY(15px); }
.answer-marker b { transform: translateY(-38px); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 11px; color: rgba(23,22,17,.56); font-size: .68rem; font-weight: 650; }

.population-feedback {
  position: relative;
  z-index: 1;
  margin: 18px 42px 16px;
  padding: 20px;
  border: 1px solid rgba(23,22,17,.32);
  border-radius: 3px;
  background: rgba(250,248,241,.44);
}
.population-feedback[hidden] { display: none; }
.population-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.population-heading .stage-kicker { margin-bottom: 5px; color: rgba(23,22,17,.6); }
.population-heading h3 { margin: 0; font-size: 1.35rem; }
.population-sample {
  padding: 4px 7px;
  border: 1px solid rgba(23,22,17,.36);
  border-radius: 2px;
  color: rgba(23,22,17,.7);
  font-size: .65rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.population-dev-note { margin: 10px 0 0; color: rgba(23,22,17,.66); font-size: .74rem; font-weight: 600; }
.population-chart { margin-top: 28px; }
.population-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 118px;
  padding: 0 5px;
  border-bottom: 2px solid rgba(23,22,17,.45);
}
.population-bars::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: 0; border-left: 1px dashed rgba(23,22,17,.36); pointer-events: none; }
.population-bar { flex: 1; min-width: 3px; border-radius: 1px 1px 0 0; background: rgba(23,22,17,.7); }
.population-you { position: absolute; bottom: -2px; width: 2px; height: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); z-index: 2; }
.population-you::before { content: ""; position: absolute; top: -1px; left: 50%; width: 9px; height: 9px; transform: translate(-50%,-50%) rotate(45deg); background: var(--ink); }
.population-you span { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); padding: 3px 6px; border-radius: 2px; background: var(--ink); color: white; font-style: normal; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.population-axis { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 8px; color: rgba(23,22,17,.56); font-size: .67rem; font-weight: 650; }
.population-axis strong { color: rgba(23,22,17,.76); font-size: .67rem; }
.population-axis span:last-child { text-align: right; }
.population-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 18px; border: 1px solid rgba(23,22,17,.24); }
.population-stats > div { padding: 12px 13px; border-right: 1px solid rgba(23,22,17,.24); }
.population-stats > div:last-child { border-right: 0; }
.population-stats span, .population-stats small { display: block; color: rgba(23,22,17,.58); font-size: .7rem; }
.population-stats strong { display: block; margin-top: 3px; font-size: 1rem; }
.population-stats small { margin-top: 1px; }

.result-reasoning {
  position: relative;
  z-index: 1;
  margin: 16px 42px 0;
  border-top: 1px solid rgba(23,22,17,.34);
  border-bottom: 1px solid rgba(23,22,17,.34);
  background: rgba(250,248,241,.24);
}
.result-reasoning summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.result-reasoning summary::-webkit-details-marker { display: none; }
.result-reasoning[open] summary span:last-child { transform: rotate(45deg); }
.result-reasoning summary span:last-child { transition: transform .2s ease; font-size: 1.15rem; }
.reasoning-body { padding: 10px 24px 24px; }
.reasoning-body h3 {
  max-width: 980px;
  margin: 6px 0 24px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 650;
}
.reasoning-body .profile-list { margin-top: 0; }
.reasoning-body .profile-list li {
  align-items: baseline;
  gap: 36px;
  padding: 17px 0;
  text-transform: none;
}
.reasoning-body .profile-list li > span {
  font-size: 1rem;
  line-height: 1.35;
}
.reasoning-body .profile-list li > strong {
  max-width: 58%;
  text-align: right;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 650;
}
.reasoning-body .profile-list li:last-child {
  padding-top: 20px;
  padding-bottom: 20px;
}
.reasoning-body .profile-list li:last-child > strong { font-weight: 800; }
.game-stage-card .profile-list li { border-color: rgba(23,22,17,.22); }
.game-stage-card .source-line { color: rgba(23,22,17,.62); }
.game-stage-card > .next-button { width: calc(100% - 84px); margin: 20px 42px 36px; }
.game-stage-card > .dev-note { margin: 0 42px 28px; }

.reveal-beat { animation: reveal-up .38s both cubic-bezier(.2,.75,.3,1); }
.reveal-delay-1 { animation-delay: .11s; }
.reveal-delay-2 { animation-delay: .22s; }
.reveal-delay-3 { animation-delay: .33s; }
.reveal-delay-4 { animation-delay: .44s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stage-enter { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
body[data-mode="daily"] .game-stage-card { animation: stage-enter .48s both cubic-bezier(.2,.75,.3,1); }

.daily-complete { position: relative; z-index: 1; padding: 46px 46px 42px; }
.daily-complete > h2 { margin: 7px 0 10px; font-size: clamp(4.6rem, 11vw, 7.7rem); line-height: .8; letter-spacing: -.075em; }
.daily-complete > h2 span { font-family: "IBM Plex Sans", sans-serif; font-size: .14em; color: rgba(23,22,17,.55); letter-spacing: .01em; font-weight: 650; }
.completion-copy { margin: 0 0 30px; color: rgba(23,22,17,.68); font-weight: 600; }
.completion-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 0 0 22px; border: 1px solid rgba(23,22,17,.28); }
.completion-stats > div { padding: 14px 15px; border-right: 1px solid rgba(23,22,17,.28); background: rgba(250,248,241,.28); }
.completion-stats > div:last-child { border-right: 0; }
.completion-stats span { display: block; color: rgba(23,22,17,.58); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.completion-stats strong { display: block; margin-top: 5px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.daily-recap { list-style: none; padding: 0; margin: 8px 0 28px; border-top: 1px solid rgba(23,22,17,.24); }
.daily-recap li { display: grid; grid-template-columns: 48px 1fr auto 64px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(23,22,17,.24); }
.recap-index { font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.recap-category { text-transform: capitalize; color: rgba(23,22,17,.65); }
.daily-recap strong { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }
.recap-ratio { text-align: right; font-size: .78rem; color: rgba(23,22,17,.6); }
.completion-actions { margin-top: 10px; }

.question-card h2 { margin-bottom: 20px; }
.input-help { font-size: .82rem; margin: 10px 0 0; }
.question-result { margin-top: 22px; }
.result-panel { border-top: 1px solid var(--line); padding-top: 20px; }
.result-panel h3 { margin: 4px 0 0; font-size: clamp(1.5rem,4vw,2rem); }

@media (max-width: 780px) {
  .shell, body[data-mode="daily"] .shell, body[data-mode="practice"] .shell { width: min(100% - 28px, 760px); }
  .profile-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0;
  }
  .profile-card > .eyebrow,
  .profile-card > h2,
  .profile-card > #profile {
    grid-column: 1;
    grid-row: auto;
  }
  .profile-card > h2 { max-width: none; margin-bottom: 20px; }
  .profile-card > #profile {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .profile-card::after { display: none; }
  .origin-story { grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); }
  .origin-visual { padding: 24px 22px 20px; }
  .origin-copy { padding: 30px 28px 28px; }
  .origin-identity strong { font-size: clamp(4.4rem, 11vw, 5.8rem); }
  .origin-experiment li { padding-left: 8px; padding-right: 8px; }
  .origin-experiment li > span:last-child { font-size: .61rem; }
  body[data-mode="daily"] .daily-hero { display: block; padding: 22px 0 4px; }
  body[data-mode="daily"] .daily-hero .eyebrow { margin-bottom: 6px; }
  body[data-mode="daily"] .daily-hero h1 { font-size: clamp(3.5rem,15vw,5.2rem); }
  body[data-mode="daily"] .daily-hero .lede { display: none; }
  .question-stage { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; padding: 34px 34px 38px; }
  .question-stage > .stage-kicker, .question-stage h2, .game-stage-card .guess-form { grid-column: 1; grid-row: auto; }
  .question-stage h2 { margin-bottom: 30px; font-size: clamp(2.75rem,9.5vw,4rem); }
  .game-stage-card .guess-form { width: 100%; }
  .reveal-stage { grid-template-columns: 1fr; padding: 30px 34px 10px; }
  .locked-guess, .answer-reveal-block, .result-verdict, .score-award, .scale-compare { grid-column: 1; grid-row: auto; }
  .result-verdict { min-height: 0; margin-top: 30px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--stage-line); }
  .score-award { margin: 10px 0 0; }
  .scale-compare { margin-top: 38px; }
  .population-feedback, .result-reasoning { margin-left: 34px; margin-right: 34px; }
  .game-stage-card > .next-button { width: calc(100% - 68px); margin-left: 34px; margin-right: 34px; }
  .daily-complete { padding: 38px 34px 36px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 62px; }
  .brand::after { display: none; }
  nav { gap: 14px; font-size: .76rem; }
  .hero { padding-top: 42px; }
  .content > .lede { margin-bottom: 46px; }
  .content > h2 { grid-template-columns: 38px 1fr; }
  .origin-story { grid-template-columns: 1fr; box-shadow: 5px 6px 0 var(--paper-deep); }
  .origin-visual { min-height: 0; padding: 26px 24px 22px; }
  .origin-visual::before { width: 430px; height: 430px; top: 28px; left: -104px; }
  .origin-portrait { width: min(76%, 340px); }
  .origin-identity strong { font-size: clamp(5rem, 17vw, 6.5rem); }
  .origin-copy { padding: 28px 24px 26px; border-left: 0; border-top: 1px solid var(--line); }
  .origin-experiment li { min-height: 122px; }
  .origin-experiment li > span:last-child { font-size: .63rem; }
  .result-grid, .profile-insights { grid-template-columns: 1fr; }
  .profile-insights p { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-insights p:last-child { border-bottom: 0; }
  .unit { max-width: 42%; }
  .reasoning-steps li, .link-list li { align-items: flex-start; }
  .reasoning-steps li strong { max-width: 55%; }
  .daily-progress { padding: 22px 22px 27px; }
  .game-stage-card .game-meta { padding: 15px 22px 0; }
  .question-stage { padding: 26px 22px 26px; }
  .question-stage h2 { margin-bottom: 22px; font-size: clamp(2.35rem,10.8vw,3.45rem); }
  .game-stage-card .guess-form { padding: 15px; box-shadow: 3px 3px 0 rgba(23,22,17,.78); }
  .game-stage-card::before { left: 7px; }
  .reveal-stage { padding: 26px 22px 8px; }
  .locked-guess, .answer-reveal-block { grid-template-columns: 1fr; gap: 5px; }
  .locked-guess strong, .answer-reveal-block strong { text-align: left; }
  .population-feedback, .result-reasoning { margin-left: 22px; margin-right: 22px; }
  .result-reasoning summary { padding: 14px 18px; }
  .reasoning-body { padding: 8px 18px 20px; }
  .reasoning-body h3 { margin-bottom: 18px; font-size: 1.3rem; line-height: 1.28; }
  .reasoning-body .profile-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
    padding: 14px 0;
  }
  .reasoning-body .profile-list li > strong {
    max-width: none;
    text-align: left;
    font-size: .95rem;
  }
  .game-stage-card > .next-button { width: calc(100% - 44px); margin: 18px 22px 26px; }
  .daily-complete { padding: 34px 22px 30px; }
  .completion-stats { grid-template-columns: 1fr; }
  .completion-stats > div { border-right: 0; border-bottom: 1px solid rgba(23,22,17,.28); }
  .completion-stats > div:last-child { border-bottom: 0; }
  .daily-recap li { grid-template-columns: 42px 1fr auto; }
  .recap-ratio { grid-column: 2 / -1; text-align: left; margin-top: -6px; }
  .population-heading { display: block; }
  .population-sample { display: inline-flex; margin-top: 10px; }
  .population-bars { height: 100px; gap: 3px; }
  .population-stats { grid-template-columns: 1fr; }
  .population-stats > div { border-right: 0; border-bottom: 1px solid rgba(23,22,17,.24); }
  .population-stats > div:last-child { border-bottom: 0; }
  .filters { grid-template-columns: 1fr; }
  .practice-stage-card .filters { padding: 16px 22px 0; }
}

@media (max-width: 440px) {
  .origin-visual { padding: 22px 18px 20px; }
  .origin-visual::before { width: 360px; height: 360px; left: -98px; }
  .origin-portrait { width: min(82%, 310px); }
  .origin-identity strong { font-size: clamp(4.7rem, 22vw, 6rem); }
  .origin-identity span { font-size: .78rem; letter-spacing: .22em; }
  .origin-copy { padding: 24px 18px 24px; }
  .origin-experiment { grid-template-columns: 1fr; }
  .origin-experiment li { display: grid; grid-template-columns: 74px 1fr; align-items: center; min-height: 0; padding: 10px 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .origin-experiment li:last-child { border-bottom: 0; }
  .origin-step-icon { height: 54px; }
  .origin-experiment li > span:last-child { font-size: .66rem; }
  nav a:nth-child(2) { display: none; }
  .game-stage-card { margin-left: -4px; margin-right: -4px; box-shadow: 6px 7px 0 var(--paper-deep); }
  .question-stage h2 { font-size: clamp(2.3rem,10.4vw,3.15rem); }
  .game-stage-card .guess-row input { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }
}
