/* The Long Way Home — field-journal design system */
:root {
  --paper: #f4ecdc;
  --paper-2: #ebe0c9;
  --card: #fffaf0;
  --ink: #1c2733;
  --ink-2: #4a5563;
  --muted: #6b6457;
  --line: #d6c8aa;
  --accent: #e2531c;      /* hi-vis orange: the route */
  --accent-ink: #b33c0c;
  --water: #1f6f78;
  --water-2: #cfe3e2;
  --moss: #4f7a3a;
  --gold: #c08a1e;
  --danger: #b3261e;
  --land: #d9cbaa;
  --land-edge: #bfae88;
  --sea: #e9e1cf;
  --shadow: 0 1px 0 rgba(28,39,51,.06), 0 8px 24px -12px rgba(28,39,51,.35);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0f1620;
  --paper-2: #16202c;
  --card: #1a2531;
  --ink: #efe6d2;
  --ink-2: #c9c0ad;
  --muted: #a49c8b;
  --line: #2c3a49;
  --accent: #ff6a2e;
  --accent-ink: #ff8a5a;
  --water: #4fb3b5;
  --water-2: #173238;
  --moss: #8bbd6c;
  --gold: #e5b54a;
  --danger: #ff6b5e;
  --land: #2a3644;
  --land-edge: #3a4a5c;
  --sea: #121b26;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before { /* subtle paper grain */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(120,100,60,.06) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 0;
}
main { flex: 1; position: relative; z-index: 1; }
img, svg, canvas { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .brand { font-size: 1rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font-body);
  padding: 14px 20px; min-height: 48px;
  border-radius: 12px; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--ink); }
.btn.primary:hover { color: #fff; }
.btn.water { background: var(--water); color: #fff; }
.btn.ghost { box-shadow: none; border-color: var(--line); }
.btn.small { padding: 9px 14px; min-height: 40px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
[data-theme="dark"] .btn { border-color: var(--ink-2); box-shadow: 3px 3px 0 #000; }
[data-theme="dark"] .btn:hover { box-shadow: 4px 4px 0 #000; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tag {
  display: inline-block; font: 600 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2);
}
.tag.accent { background: var(--accent); color: #fff; }
.tag.water { background: var(--water); color: #fff; }
.stamp {
  display: inline-block; font: 700 .78rem/1.1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
  border: 2px solid currentColor; color: var(--accent-ink); padding: 6px 10px; border-radius: 6px;
  transform: rotate(-3deg);
}

/* ---------- hero ---------- */
.hero { padding: 36px 0 20px; }
.hero .kicker { font: 600 .82rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--sea); box-shadow: var(--shadow);
}
.map-frame canvas { display: block; width: 100%; height: auto; }
.map-caption { position: absolute; left: 12px; bottom: 10px; font: 600 .75rem/1.2 var(--font-mono); color: var(--ink-2); background: color-mix(in srgb, var(--paper) 80%, transparent); padding: 4px 8px; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font: 700 clamp(1.25rem, 4vw, 1.8rem)/1.1 var(--font-display); }
.stat span { font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.feature-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.feature-card:hover { transform: translateY(-3px); color: var(--ink); }
.feature-card .emoji { font-size: 1.8rem; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { counter-increment: r; background: var(--card); border: 1px dashed var(--ink-2); border-radius: 12px; padding: 14px 14px 14px 58px; position: relative; }
.rules li::before { content: counter(r); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 1rem var(--font-display); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: .88rem; position: relative; z-index: 1; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--ink-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  z-index: 200; transition: transform .25s ease; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- forms ---------- */
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="number"], select {
  font: 500 1rem var(--font-body); padding: 12px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); width: 100%; min-height: 46px;
}
input:focus { border-color: var(--accent); outline: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; flex-wrap: wrap; }
.seg button { font: 700 .92rem var(--font-body); background: var(--card); color: var(--ink); border: 0; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* =================== GAME =================== */
.game-shell { padding: 18px 0 40px; }
.screen { display: none; }
.screen.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mode-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0; }
.mode-card { text-align: left; cursor: pointer; border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 18px; color: var(--ink); font: inherit; display: grid; gap: 6px; }
.mode-card:hover { border-color: var(--ink-2); }
.mode-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.mode-card .mode-name { font: 800 1.25rem var(--font-display); }

.hud {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0;
}
@media (max-width: 760px) { .hud { grid-template-columns: repeat(3, 1fr); } }
.meter { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.meter .m-label { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); gap: 4px; }
.meter .m-val { font: 700 .95rem var(--font-mono); color: var(--ink); white-space: nowrap; }
.meter .bar { height: 6px; background: var(--paper-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--moss); border-radius: 4px; transition: width .4s ease; }
.meter.low .bar i { background: var(--danger); }
.meter.low { border-color: var(--danger); }
.meter.mid .bar i { background: var(--gold); }

.trip-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.trip-bar b { color: var(--ink); }
.progress-line { position: relative; height: 10px; border-radius: 6px; background: var(--paper-2); margin: 8px 0 4px; overflow: hidden; border: 1px solid var(--line); }
.progress-line i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, var(--accent-ink) 8px 12px); transition: width .6s ease; }

.game-map { margin: 10px 0; }
@media (min-width: 980px) {
  .play-grid.in-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
  .play-grid.in-run #runHud { position: sticky; top: 70px; }
  .play-grid.in-run .hud { grid-template-columns: repeat(3, 1fr); }
  .play-grid.in-run .panel:first-child { margin-top: 0; }
}
@media (max-width: 420px) { .meter .m-val { font-size: .82rem; } .meter { padding: 7px 8px; } }
.game-map canvas { aspect-ratio: 2 / 1; }
.chapter-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.chapter-head .ch-num { font: 700 .8rem var(--font-mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 12px 0; }
.panel.journal { background: var(--card) repeating-linear-gradient(transparent 0 27px, color-mix(in srgb, var(--water) 14%, transparent) 27px 28px); }
.history-note { border-left: 4px solid var(--water); padding: 8px 14px; background: color-mix(in srgb, var(--water) 9%, transparent); border-radius: 0 10px 10px 0; font-size: .95rem; margin: 10px 0; }
.history-note b { color: var(--water); }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice {
  text-align: left; font: 600 1rem/1.35 var(--font-body); padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line); min-height: 52px;
  display: flex; gap: 12px; align-items: flex-start;
}
.choice:hover { border-color: var(--ink); background: var(--card); }
.choice .key { flex: none; font: 700 .8rem var(--font-mono); background: var(--ink); color: var(--paper); border-radius: 6px; padding: 3px 7px; margin-top: 2px; }
.choice small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.choice.lift { border-style: dashed; }
.effects { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fx { font: 700 .78rem var(--font-mono); padding: 4px 8px; border-radius: 6px; background: var(--paper-2); }
.fx.pos { color: var(--moss); }
.fx.neg { color: var(--danger); }
.camp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.camp-actions .btn { width: 100%; flex-direction: column; gap: 3px; line-height: 1.15; padding: 10px 8px; }
.camp-actions .btn small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.pace-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.log { max-height: 220px; overflow: auto; font-size: .88rem; padding-left: 0; list-style: none; margin: 0; }
.log li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.log li time { font-family: var(--font-mono); color: var(--muted); font-size: .78rem; margin-right: 6px; }
details.log-wrap summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* mini-games */
.mg-wrap { display: grid; gap: 12px; }
.mg-canvas { width: 100%; max-width: 520px; margin: 0 auto; display: block; border-radius: 12px; border: 2px solid var(--ink); background: var(--sea); touch-action: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 6px; justify-content: center; }
.dpad button { font-size: 1.3rem; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.dpad button:active { background: var(--paper-2); }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .wait { grid-column: 2; grid-row: 2; font-size: .75rem; font-weight: 700; }
.dpad .right { grid-column: 3; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 3; }
.mg-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font: 600 .9rem var(--font-mono); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.stroke-btn { width: 100%; max-width: 520px; margin: 0 auto; display: flex; min-height: 64px; font-size: 1.15rem; }

/* result card */
.result-card {
  position: relative; overflow: hidden; border-radius: 18px; border: 2px solid var(--ink);
  background: var(--card); padding: 22px; box-shadow: 6px 6px 0 var(--ink);
}
.result-card .title-big { font: 800 clamp(1.8rem, 6vw, 2.8rem)/1.05 var(--font-display); color: var(--accent); margin: 6px 0 8px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.result-grid div { background: var(--paper); border-radius: 10px; padding: 10px; }
.result-grid b { display: block; font: 700 1.3rem var(--font-display); }
.result-grid span { font-size: .78rem; color: var(--muted); }
.vs-bar { margin: 12px 0; display: grid; gap: 6px; }
.vs-bar .row { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.vs-bar .track { height: 14px; background: var(--paper-2); border-radius: 7px; overflow: hidden; }
.vs-bar .track i { display: block; height: 100%; border-radius: 7px; background: var(--accent); }
.vs-bar .track i.karl { background: var(--water); }
.hist-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hist-table th, .hist-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.hist-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* =================== ROUTE =================== */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(var(--accent) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding: 0 0 18px 46px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.timeline li.kind-water::before { border-color: var(--water); }
.timeline li.kind-wait::before { border-color: var(--muted); border-style: dashed; }
.timeline li.active::before { background: var(--accent); }
.timeline button.tl-item { all: unset; cursor: pointer; display: block; width: 100%; border-radius: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); box-sizing: border-box; }
.timeline button.tl-item:hover, .timeline li.active button.tl-item { border-color: var(--accent); }
.timeline button.tl-item:focus-visible { outline: 3px solid var(--accent); }
.tl-date { font: 700 .78rem var(--font-mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.tl-title { font: 700 1.05rem var(--font-display); display: block; margin: 2px 0; }
.tl-text { font-size: .92rem; color: var(--ink-2); }
.route-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.route-layout .sticky { position: sticky; top: 72px; }
@media (max-width: 900px) { .route-layout { grid-template-columns: 1fr; } .route-layout .sticky { position: static; } }
.scrubber { display: grid; gap: 6px; margin-top: 10px; }
.year-big { font: 800 2.2rem/1 var(--font-display); }
.timeline-scroll { max-height: none; }

/* =================== STEPS =================== */
.calc-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } }
.big-answer { font: 800 clamp(2.4rem, 9vw, 4rem)/1 var(--font-display); color: var(--accent); }
.compare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.compare-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: .92rem; }
.compare-list b { font-family: var(--font-mono); white-space: nowrap; }

/* =================== QUIZ =================== */
.q-progress { display: flex; gap: 4px; margin: 10px 0 16px; }
.q-progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); }
.q-progress i.done { background: var(--ink-2); }
.q-progress i.right { background: var(--moss); }
.q-progress i.wrong { background: var(--danger); }
.answer { width: 100%; }
.answer.correct { border-color: var(--moss); background: color-mix(in srgb, var(--moss) 16%, var(--card)); }
.answer.incorrect { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--card)); }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: .95rem; }

/* misc */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pill-list li { background: var(--paper-2); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.pop { animation: pop .4s ease; }
@keyframes pop { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }

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