/* ================================================================
   IndianTyping.com — course.css
   Loaded on $page_type = 'course' (hub and every lesson).

   .page-wrap, .page-header and .content-section are RE-DECLARED here because
   this page type does not load tool.css. A page using a class no loaded
   stylesheet defines is the defect that made the games page full-bleed
   (0fb822b) and left the Hindi test with no text on mobile (2ac0086).
   tools/css-contract-test.js gates it.

   Design tokens only — --r-*, --font*, --ease. Never restate a literal a token
   already holds (tools/design-token-test.js).
================================================================ */

.page-wrap {
  max-width: var(--tool-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 24px 80px;
}
.page-header { margin-bottom: 22px; }
.page-header h1 {
  font-size: clamp(24px, 4.5vw, 34px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; color: var(--text-1);
  margin-bottom: 6px;
}
.page-header h1 .hi { color: var(--brand); }
.page-header .sub { font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 62ch; }

.content-section { margin-top: 48px; }
.content-section h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-1); margin: 28px 0 10px;
}
.content-section p, .content-section li {
  font-size: 15px; line-height: 1.75; color: var(--text-2); max-width: 68ch;
}
.content-section ul { margin: 10px 0 0 20px; }
.content-section a { color: var(--brand); text-decoration: underline; }

/* ── HUB: progress ──────────────────────────────────────────────── */
.ch-progress {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 32px;
}
.ch-progress-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.ch-pct {
  font-family: var(--mono); font-size: 34px; font-weight: 800;
  color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums;
}
.ch-pct-l { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.ch-bar {
  height: 8px; background: var(--surface-3);
  border-radius: 999px; overflow: hidden;
}
.ch-bar-fill {
  height: 100%; background: var(--brand); border-radius: 999px;
  transition: width 0.4s var(--ease);
}
.ch-stats {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 12px; font-size: 13px; color: var(--text-2);
}
.ch-stats strong { color: var(--text-1); font-variant-numeric: tabular-nums; }
.ch-note { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ── HUB: units and lessons ─────────────────────────────────────── */
.ch-unit { margin-bottom: 30px; }
.ch-unit-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.ch-list { list-style: none; display: grid; gap: 8px; }
.ch-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); transition: border-color 0.15s var(--ease);
}
.ch-card:hover { border-color: var(--border-strong); }
.ch-card.is-visited { background: var(--surface-2); }
.ch-card.is-passed { border-color: var(--green); }
.ch-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 56px;   /* comfortable touch target */
}
.ch-num {
  flex: 0 0 auto; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--surface-3);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.ch-card.is-passed .ch-num { background: var(--green-dim); color: var(--green); }
.ch-body { flex: 1 1 auto; min-width: 0; }
.ch-title { display: block; font-size: 15px; font-weight: 600; color: var(--text-1); }
.ch-meta { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ch-stars { flex: 0 0 auto; letter-spacing: 1px; }
.cs-star { color: var(--surface-3); font-size: 14px; }
.cs-star.is-on { color: var(--amber); }

/* ── LESSON ─────────────────────────────────────────────────────── */
.cl-crumb { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.cl-crumb a { color: var(--text-2); text-decoration: underline; }
.cl-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 4px;
}
.cl-teach {
  font-size: 16px; line-height: 1.75; color: var(--text-2);
  max-width: 68ch; margin-bottom: 16px;
}
.cl-targets {
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
  font-size: 14px; color: var(--text-2); margin-bottom: 18px;
}
.cl-targets strong { color: var(--text-1); font-family: var(--mono); }
.cl-target-note { font-size: 12px; color: var(--text-3); }

.cl-surface {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px;
}
.cl-stagebar {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3); margin-bottom: 12px;
}
.cl-stage-label {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}
.cl-stage { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cl-earned { margin-left: auto; }

.cl-prompt {
  font-family: var(--mono); font-size: 21px; line-height: 2;
  letter-spacing: 0.05em; color: var(--text-3);
  word-break: break-word; user-select: none;
  min-height: 84px;   /* reserved: sections differ in length and the surface
                         must not resize under the learner between them */
  margin-bottom: 16px;
}
.cc { transition: color 0.08s linear; }
.cc-ok  { color: var(--text-1); }
.cc-bad { color: var(--red); background: var(--red-dim); border-radius: 2px; }
.cc-cur { background: var(--brand-dim); border-radius: 2px; color: var(--text-1); }

.cl-input {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font-family: var(--mono); font-size: 16px;
  color: var(--text-1); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
}
.cl-input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.cl-input:disabled { opacity: 0.6; }

.cl-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.cl-stat-v {
  font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text-1);
  font-variant-numeric: tabular-nums;   /* a rising WPM must not nudge its neighbour */
  min-width: 3ch; display: inline-block;
}
.cl-stat-l {
  display: block; font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3);
}

.cl-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 22px;
  background: var(--surface); border-radius: var(--r-lg);
}
.cl-ov-title { font-size: 20px; font-weight: 800; color: var(--text-1); }
.cl-ov-copy  { font-size: 14px; color: var(--text-2); max-width: 46ch; line-height: 1.6; }
.cl-stars { font-size: 30px; letter-spacing: 4px; }
.cl-res { display: flex; gap: 26px; }
.cl-res strong {
  display: block; font-family: var(--mono); font-size: 26px; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.cl-res span {
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3);
}
.cl-ov-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cl-next { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: underline; }
.btn-start {
  min-height: 44px; padding: 12px 26px;
  background: var(--brand); color: #fff;
  border-radius: var(--r-md); font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── keyboard map ───────────────────────────────────────────────── */
.cl-keyboard { margin: 18px 0 8px; }
.ck-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 5px; }
.ck-key {
  width: 34px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-3);
}
/* Never colour alone: every key also carries an aria-label saying its role. */
.ck-used { background: var(--surface-3); color: var(--text-2); }
.ck-new  { background: var(--brand-dim); color: var(--brand); border-color: var(--brand); font-weight: 800; }
.cl-legend { font-size: 12px; color: var(--text-3); text-align: center; margin-bottom: 8px; }
.cl-legend-new { color: var(--brand); font-weight: 700; }

/* ── lesson navigation ──────────────────────────────────────────── */
.cl-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 22px; flex-wrap: wrap;
}
.cl-nav a {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  padding: 12px 14px; min-height: 44px;
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface);
}
.cl-nav a:hover { border-color: var(--border-strong); color: var(--text-1); }
.cl-nav-prev { color: var(--text-3); }
.cl-nav-next { color: var(--brand); font-weight: 700; }

/* Reserved ad space: after the lesson AND its navigation, never between the
   prompt and the input. Fixed height so a late unit cannot shift the surface. */
.cl-adslot { min-height: 90px; margin: 30px 0; }

/* ══════════════════════════════════════════════════════════════════════
   PROGRESSION — rank, XP, lock states, Mission 0, unlock animations
   Added 2026-08-03. Desktop-first, as instructed: the 640px block at the
   foot of this file is the only narrow adjustment and it does no more than
   stop things overflowing.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Rank and XP ─────────────────────────────────────────────────────── */

.ch-rankblock { display: flex; flex-direction: column; gap: 4px; }
.ch-rank {
  font-size: 26px; font-weight: 800; color: var(--text-1); line-height: 1.1;
}
.ch-xp {
  font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.ch-xp strong { color: var(--brand); font-weight: 800; font-size: 15px; }
.ch-xp-next { color: var(--text-3); }

/* The bar now tracks progress to the next rank, so it is worth animating. */
.ch-bar-fill { transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Mission 0 card ──────────────────────────────────────────────────── */

.ch-mission {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; margin-bottom: 26px;
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
}
.ch-mission.is-done { opacity: 0.72; }
.ch-mission-badge {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #fff;
  background: var(--brand);
}
.ch-mission.is-done .ch-mission-badge { background: var(--text-3); }
.ch-mission-body { flex: 1 1 auto; min-width: 0; }
.ch-mission-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.ch-mission-copy  { font-size: 14px; color: var(--text-2); margin: 0; }
.ch-mission-action {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.ch-mission-done { font-size: 13px; font-weight: 700; color: var(--green, #17853f); }
.ch-mission-go {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md); background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ch-mission-go:hover { filter: brightness(0.94); }

/* ── Lesson card states ──────────────────────────────────────────────── */

.ch-state {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-3); margin-top: 3px;
}
.ch-lock { flex: none; font-size: 15px; opacity: 0.75; margin-left: 8px; }

/* LOCKED. Dimmed and desaturated, but still a link — the anchor keeps its
   href so the lesson stays readable and crawlable. Deliberately NOT
   pointer-events:none: the card must remain clickable and focusable. */
.ch-card.is-locked .ch-link { opacity: 0.5; filter: grayscale(1); }
.ch-card.is-locked .ch-link:hover { opacity: 0.72; }
.ch-card.is-locked .ch-state { color: var(--text-3); }

/* CURRENT — the one thing on the page to do next. */
.ch-card.is-current .ch-link {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 66, 10, 0.12);
}
.ch-card.is-current .ch-num { background: var(--brand); color: #fff; }
.ch-card.is-current .ch-state { color: var(--brand); font-weight: 800; }

/* PASSED. */
.ch-card.is-passed .ch-state { color: var(--green, #17853f); }

/* ── The unlock animation ────────────────────────────────────────────── */

@keyframes ch-unlock {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(232, 66, 10, 0.55); }
  35%  { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(232, 66, 10, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(232, 66, 10, 0); }
}
.ch-card.is-unlocking .ch-link {
  animation: ch-unlock 1100ms cubic-bezier(0.22, 1, 0.36, 1) 2;
  border-color: var(--brand);
}

/* ── Lesson completion: badge, XP, star pop ──────────────────────────── */

.cl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; margin: 0 0 6px;
  border-radius: 999px; background: rgba(232, 66, 10, 0.10);
  font-size: 13px; font-weight: 700; color: var(--brand);
}
.cl-badge-icon { font-size: 16px; }
.cl-xp {
  margin: 0 0 10px; font-size: 14px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.cl-xp strong { font-size: 20px; font-weight: 800; color: var(--brand); }

@keyframes cl-star-pop {
  0%   { transform: scale(0.4) rotate(-18deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate(4deg);  opacity: 1; }
  100% { transform: scale(1)    rotate(0);     opacity: 1; }
}
/* Staggered so three stars land one after another rather than as one blob. */
.cl-stars.is-pop .cs-star {
  animation: cl-star-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cl-stars.is-pop .cs-star:nth-child(2) { animation-delay: 130ms; }
.cl-stars.is-pop .cs-star:nth-child(3) { animation-delay: 260ms; }

@keyframes cl-badge-in {
  from { transform: translateY(8px) scale(0.9); opacity: 0; }
  to   { transform: none;                       opacity: 1; }
}
.cl-badge.is-new { animation: cl-badge-in 460ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both; }

/* ── The lesson lock ─────────────────────────────────────────────────── */

.cl-locked {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 26px; text-align: center;
  background: var(--surface); border-radius: var(--r-xl);
}
.cl-locked-icon  { font-size: 34px; }
.cl-locked-title { font-size: 19px; font-weight: 800; margin: 0; }
.cl-locked-copy  { font-size: 14px; color: var(--text-2); margin: 0; max-width: 46ch; }
.cl-locked-go    { margin-top: 4px; }
.cl-locked-note  { font-size: 12.5px; color: var(--text-3); margin: 6px 0 0; max-width: 46ch; }

/* ══════════════════════════════════════════════════════════════════════
   MISSION 0
   ══════════════════════════════════════════════════════════════════════ */

.mz-eyebrow { color: var(--brand); font-weight: 800; }

.mz-alreadydone {
  padding: 12px 16px; margin: 0 0 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); font-size: 14px; color: var(--text-2);
}
.mz-alreadydone a { color: var(--brand); font-weight: 700; }

.mz-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.mz-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); opacity: 0.55;
  transition: opacity 240ms ease, border-color 240ms ease;
}
.mz-step.is-active { opacity: 1; border-color: var(--brand); }
.mz-step.is-done   { opacity: 1; }
.mz-step-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 800;
}
.mz-step.is-active .mz-step-num { background: var(--brand); color: #fff; }
.mz-step.is-done   .mz-step-num { background: var(--green, #17853f); color: #fff; }
.mz-step-body  { flex: 1 1 auto; }
.mz-step-title { display: block; font-size: 15px; font-weight: 700; }
.mz-step-copy  { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.mz-step-tick  { flex: none; font-size: 18px; color: var(--green, #17853f); opacity: 0; }
.mz-step.is-done .mz-step-tick { opacity: 1; }

.mz-surface {
  padding: 26px; border: 1.5px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); text-align: center;
}
.mz-instruction { font-size: 19px; font-weight: 700; margin: 0 0 20px; }
.mz-instruction kbd {
  display: inline-block; min-width: 26px; padding: 2px 7px;
  border: 1.5px solid var(--border-strong); border-bottom-width: 3px;
  border-radius: 6px; background: var(--surface-2);
  font-family: var(--mono); font-size: 15px; font-weight: 700;
}

/* ── The keyboard diagram ────────────────────────────────────────────── */

/* overflow-x on the diagram is the safety net, not the layout: the 640px
   block below sizes the keys so ten of them fit at 390. If a future key row
   grows, this scrolls inside its own box rather than pushing the page
   sideways — the same rule .table-wrap uses in main.css. */
.mz-keyboard {
  display: grid; gap: 6px; justify-content: center; margin-bottom: 20px;
  overflow-x: auto;
}
.mz-krow     { display: flex; gap: 6px; justify-content: center; }
.mz-row-home   { margin-left: 14px; }
.mz-row-bottom { margin-left: 34px; }
.mz-key {
  position: relative; width: 52px; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--border); border-bottom-width: 3px;
  border-radius: 8px; background: var(--surface-2);
  font-family: var(--mono); color: var(--text-3);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.mz-key-cap    { font-size: 15px; font-weight: 700; }
.mz-key-finger { font-size: 8.5px; letter-spacing: 0.02em; opacity: 0.75; line-height: 1; }
.mz-key.is-home { color: var(--text-1); background: var(--surface); }

/* The key we are waiting for. */
.mz-key.is-target {
  border-color: var(--brand); color: var(--brand);
  background: rgba(232, 66, 10, 0.10);
  animation: mz-pulse 1500ms ease-in-out infinite;
}
@keyframes mz-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 66, 10, 0.40); }
  50%      { box-shadow: 0 0 0 8px rgba(232, 66, 10, 0); }
}
.mz-key.is-done {
  border-color: var(--green, #17853f); color: var(--green, #17853f);
  background: rgba(23, 133, 63, 0.10);
}

@keyframes mz-hit {
  0%   { transform: translateY(0)   scale(1); }
  40%  { transform: translateY(3px) scale(0.94); }
  100% { transform: translateY(0)   scale(1); }
}
.mz-key.is-hit { animation: mz-hit 220ms ease; }

@keyframes mz-nudge {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.mz-keyboard.is-nudge { animation: mz-nudge 220ms ease; }

.mz-progress {
  height: 8px; border-radius: 999px; background: var(--surface-2);
  overflow: hidden; margin-bottom: 18px;
}
.mz-progress-fill {
  height: 100%; background: var(--brand); border-radius: 999px;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mz-focus {
  min-height: 44px; padding: 0 22px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  background: transparent; color: var(--text-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.mz-focus.is-armed {
  border-style: solid; border-color: var(--brand); color: var(--brand);
  background: rgba(232, 66, 10, 0.06);
}

/* ── The reward ──────────────────────────────────────────────────────── */

.mz-reward {
  margin-top: 26px; padding: 30px 26px; text-align: center;
  border: 1.5px solid var(--brand); border-radius: var(--r-xl);
  background: rgba(232, 66, 10, 0.05);
}
@keyframes mz-reward-in {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to   { transform: none;                         opacity: 1; }
}
.mz-reward.is-in { animation: mz-reward-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.mz-reward-burst { display: flex; justify-content: center; gap: 8px; font-size: 30px; }
.mz-reward-burst span {
  color: var(--brand);
  animation: cl-star-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mz-reward-burst span:nth-child(2) { animation-delay: 130ms; }
.mz-reward-burst span:nth-child(3) { animation-delay: 260ms; }

.mz-reward-title { font-size: 24px; font-weight: 800; margin: 10px 0 4px; }
.mz-reward-xp    { font-size: 14px; color: var(--text-2); margin: 0 0 8px; }
.mz-reward-xp strong { font-size: 22px; font-weight: 800; color: var(--brand); }
.mz-reward-copy  { font-size: 15px; color: var(--text-2); margin: 0 0 18px; }
.mz-reward-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
/* The reward's primary action. It carries .btn-start too, so this only has to
   stop the label wrapping mid-title on a narrow desktop window. */
.mz-reward-go  { text-align: center; }
.mz-reward-alt { font-size: 14px; font-weight: 600; color: var(--text-2); }
.mz-reward-alt:hover { color: var(--text-1); }

@media (max-width: 640px) {
  .page-wrap   { padding-left: 16px; padding-right: 16px; }
  .cl-prompt   { font-size: 18px; letter-spacing: 0.02em; }
  .cl-stats    { gap: 18px; }
  .ck-key      { width: 26px; height: 32px; font-size: 11px; }
  .cl-nav a    { flex: 1 1 100%; justify-content: center; }
  .ch-progress-top { flex-direction: column; align-items: flex-start; }
  .ch-progress-top .btn-start { width: 100%; }
  /* Desktop-first, as instructed — these do no more than stop the new
     progression furniture overflowing a phone. */
  .ch-mission  { flex-wrap: wrap; }
  .ch-mission-action { width: 100%; align-items: stretch; }
  .ch-mission-go     { justify-content: center; }
  /* The top row is ten keys wide and sets the diagram's minimum width.
     At 390 the page-wrap leaves 358px of content, so 10 keys plus 9 gaps
     must fit inside that: 10x30 + 9x4 = 336. Measured at 34px/6px it came to
     394 and pushed the document to 392px wide. */
  .mz-key      { width: 30px; height: 40px; }
  .mz-key-cap  { font-size: 13px; }
  .mz-key-finger { display: none; }
  .mz-krow     { gap: 4px; }
  .mz-keyboard { gap: 4px; }
  .mz-row-home   { margin-left: 6px; }
  .mz-row-bottom { margin-left: 16px; }
}

/* Every animation added above is suppressed here, not merely shortened.
   .mz-step and .ch-card.is-locked keep their OPACITY — those encode state,
   not motion, and removing them would erase the progression itself. */
@media (prefers-reduced-motion: reduce) {
  .cc, .ch-card, .ch-bar-fill { transition: none; }
  .ch-card.is-unlocking .ch-link,
  .cl-stars.is-pop .cs-star,
  .cl-badge.is-new,
  .mz-key.is-target,
  .mz-key.is-hit,
  .mz-keyboard.is-nudge,
  .mz-reward.is-in,
  .mz-reward-burst span { animation: none; }
  .mz-progress-fill, .mz-step, .mz-key { transition: none; }
  /* The pulse was the only thing marking the target key, so it needs a
     static equivalent rather than nothing at all. */
  .mz-key.is-target { box-shadow: 0 0 0 3px rgba(232, 66, 10, 0.35); }
}
