:root {
  color-scheme: light;
  --ink: #18334b;
  --blue: #2a6ebb;
  --blue-dark: #1f5689;
  --paper: #f7f8f8;
  --card: #ffffff;
  --line: #d7e0e7;
  --muted: #647686;
  --accent: #d39c35;
  --accent-soft: #f7f0df;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-size: 17px;
  background-color: var(--paper);
  background-image: radial-gradient(#18334b12 .7px, transparent .7px);
  background-size: 14px 14px;
}

.learning-nav {
  min-height: 68px;
  padding: 12px max(5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--blue);
  color: white;
}
.learning-nav a { color: inherit; text-decoration: none; }
.learning-nav .brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.learning-nav nav { display: flex; gap: 8px; flex-wrap: wrap; }
.learning-nav nav a { padding: 8px 12px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 650; }
.learning-nav nav a.active, .learning-nav nav a:hover { border-color: #ffffff80; background: #ffffff16; }

.learning-shell { width: min(1260px, 94vw); margin: 32px auto 48px; }
#learningApp:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; align-items: start; }
#learningApp.no-ads { grid-template-columns: minmax(0, 1fr); }
#learningApp > .page-intro, #learningApp > .map-card, #learningApp > .lesson-card,
#learningApp > .result-card, #learningApp > .page-message { grid-column: 1; }
#learningApp > .learning-ad-stack { grid-column: 2; grid-row: 1 / span 5; display:flex; flex-direction:column; justify-content:space-between; gap:18px; }
#learningApp.no-ads > .learning-ad-stack { display: none; }

.page-intro, .map-card, .lesson-card, .result-card, .gate-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 32px #18334b0c;
}
.page-intro { min-height: 210px; margin-bottom: 2px; padding: clamp(24px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 22px; overflow: hidden; }
.page-intro > div:first-child { max-width: 720px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.page-intro h1 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.page-intro p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.intro-sketch { flex: 0 0 auto; width: clamp(104px, 16vw, 166px); overflow: visible; fill: none; stroke: var(--blue); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.intro-sketch path:first-child { stroke-dasharray: 270; stroke-dashoffset: 270; animation: sketch-in 1.6s .2s ease forwards; }
.intro-sketch path:nth-child(2) { opacity: .28; transform: translate(3px, 3px); }
.intro-sketch circle { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; }

.map-card, .lesson-card, .result-card, .gate-card { padding: clamp(18px, 3vw, 30px); }
.map-heading, .lesson-topline, .result-heading, .lesson-actions, .result-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.region-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.region-navigation button:disabled { opacity: .45; cursor: not-allowed; }
.map-heading { align-items: flex-end; margin-bottom: 14px; }
.map-heading h2 { margin: 0; font-size: clamp(24px, 3.5vw, 32px); letter-spacing: -.03em; }
.map-summary { display: grid; gap: 4px; text-align: right; }
.map-summary strong { font-size: 14px; }
.map-summary span { color: var(--blue); font-size: 13px; font-weight: 750; }
.star-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.star-legend span { display: inline-flex; align-items: center; gap: 6px; }
.star-legend b { color: var(--accent); font-size: 16px; }
.map-hint { margin: 13px 0; color: var(--muted); font-size: 15px; }
.region-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; }
.region-banner > svg { flex: 0 0 auto; width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }
.region-banner > svg path { transform-origin: center; animation: compass-turn 20s linear infinite; }
.region-banner div { display: grid; gap: 2px; }
.region-banner small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.region-banner strong { font-size: 15px; }
.region-banner div span { color: var(--muted); font-size: 12px; }
.region-sparkle { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: .1em; }

.map-scene { position: relative; min-height: 364px; padding: 5px 4px 78px; }
.course-map { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(128px, auto)); gap: 20px 14px; padding: 14px 10px; border: 1px solid #c9d6dc; border-radius: 14px; background-color: transparent; background-image: linear-gradient(#18334b08 1px, transparent 1px), linear-gradient(90deg, #18334b08 1px, transparent 1px); background-size: 24px 24px; }
.map-trail { position: absolute; z-index: 0; inset: 4px 4px 82px; width: calc(100% - 8px); height: calc(100% - 86px); overflow: visible; fill: none; pointer-events: none; }
.map-trail path { stroke: #9baeb7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map-trail .trail-dashes { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 12; animation: trail-draw 28s linear infinite; opacity: .7; }
.checkpoint { position: relative; z-index: 2; min-width: 0; min-height: 150px; padding: 11px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cbd5db; border-radius: 17px 17px 24px 17px; background: #fff; color: var(--muted); text-align: center; box-shadow: 0 4px 0 #dce3e6; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.checkpoint-icon { color: var(--blue); font-family: Georgia, serif; font-size: 50px; font-weight: 400; line-height: 1; }
.checkpoint .checkpoint-number { color: var(--muted); font-size: 12px; font-weight: 800; }
.checkpoint .checkpoint-title { display: -webkit-box; max-width: 100%; overflow: hidden; color: inherit; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.checkpoint .checkpoint-stars { min-height: 14px; color: #b7c1c7; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.checkpoint.available, .checkpoint.completed { cursor: pointer; }
.checkpoint.available { border-color: #6f9bc0; color: var(--ink); }
.checkpoint.current { background: #eff5fa; border-color: var(--blue); box-shadow: 0 0 0 2px #2a6ebb20, 0 4px 0 #aac3d5; }
.checkpoint.current .checkpoint-icon { animation: checkpoint-breathe 1.8s ease-in-out infinite; }
.checkpoint.completed { border-color: #9eb5bf; background: #f1f5f4; }
.checkpoint.completed .checkpoint-icon { color: #477b69; }
.checkpoint .checkpoint-stars.has-stars { color: var(--accent); }
.checkpoint.future { opacity: .58; }
.checkpoint:disabled { cursor: not-allowed; }
.checkpoint.available:hover, .checkpoint.completed:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 7px 0 #dce3e6; }
.checkpoint:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #d39c35; outline-offset: 3px; }
.runner-character { position: absolute; z-index: 5; top: 0; left: 0; width: 46px; height: 46px; pointer-events: none; transition: transform 900ms cubic-bezier(.2,.8,.25,1); }
.runner-character svg { width: 100%; height: 100%; overflow: visible; animation: runner-bob .42s ease-in-out infinite alternate; }
.runner-head, .runner-line, .runner-accent { fill: none; stroke: var(--blue-dark); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.runner-head { fill: #fbfcfa; stroke: var(--accent); stroke-width: 2.5; }
.runner-line { transform-origin: 28px 28px; animation: runner-stride .36s ease-in-out infinite alternate; }
.runner-accent { stroke: var(--accent); stroke-width: 2; }
.teleporter, .entrance-teleporter { position: absolute; z-index: 3; bottom: 2px; width: 92px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #8097a4; border-radius: 50%; background: var(--paper); color: var(--blue); }
.teleporter { right: 3%; }
.entrance-teleporter { left: 3%; }
.teleporter span, .entrance-teleporter span { font-size: 25px; line-height: 1; }
.teleporter small, .entrance-teleporter small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.teleporter-ready { border-style: solid; border-color: var(--blue); animation: portal-sketch 1.4s ease-in-out infinite alternate; }
.map-scene.teleport-in .entrance-teleporter { animation: portal-sketch .45s ease-in-out 3 alternate; }
.map-scene.teleport-in .runner-character svg { animation: emerge .8s ease-out; }

.lesson-card, .result-card { margin-top: 22px; animation: card-arrive .35s ease-out both; }
.lesson-topline { justify-content: flex-start; margin-bottom: 22px; }
.lesson-step { margin-left: auto; color: var(--muted); font-size: 13px; }
.lesson-card h2 { margin-bottom: 18px; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.03em; }
.theory-box { margin-bottom: 18px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: 13px; background: #fbfcfc; }
.theory-box h3 { margin-bottom: 9px; font-size: 16px; }
.theory-box > p { max-width: 820px; margin-bottom: 16px; color: #425a6d; line-height: 1.75; }
.theory-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 10px; margin: 16px 0; }
.theory-card { min-height: 120px; display: grid; grid-template-columns: 36px 1fr; align-content: start; gap: 7px 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); text-align: left; box-shadow: 0 2px 0 #e8edf0; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.theory-card:hover, .theory-card.expanded { transform: translateY(-2px); border-color: #84a9c7; }
.theory-card-icon { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #9bb5c5; border-radius: 50%; color: var(--blue); font-family: Georgia, serif; font-size: 17px; }
.theory-card strong { align-self: center; font-size: 13px; }
.theory-card-copy { grid-column: 1 / -1; display: none; color: var(--muted); font-size: 13px; line-height: 1.55; }
.theory-card.expanded .theory-card-copy { display: block; animation: card-arrive .22s ease-out both; }
.theory-card small { grid-column: 2; color: var(--blue); font-size: 10px; font-weight: 700; }
.references { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.references a { color: var(--blue-dark); font-size: 12px; text-underline-offset: 3px; }

/* Chapter 2: interactive keyboard and hand-position field guide. */
.hand-guide { margin: 24px 0; padding: clamp(15px, 3vw, 26px); border: 1px solid #cbd8df; border-radius: 14px; background: linear-gradient(145deg, #fff 0%, #f6f9fa 100%); box-shadow: 0 5px 18px #17334d0a; }
.hand-guide-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hand-guide-heading h3 { margin: 0 0 8px; font-size: clamp(19px, 2.4vw, 25px); }
.hand-guide-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.home-key-note { flex: 0 0 auto; padding: 9px 12px; border: 1px dashed #9cb8c8; border-radius: 9px; color: var(--muted); font-size: 13px; }
.home-key-note b { color: var(--blue-dark); }
.finger-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 13px; }
.finger-choice { padding: 9px 12px; border: 1px solid #cbd7df; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease; }
.finger-choice:hover { transform: translateY(-1px); border-color: #7da4be; }
.finger-choice.selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.keyboard-guide { display: grid; justify-items: center; gap: 6px; width: min(100%, 710px); margin: 0 auto; padding: 16px 12px 13px; border: 1px solid #cbd7df; border-radius: 13px; background: #edf2f4; box-shadow: inset 0 2px 4px #20394a0a; }
.keyboard-row { display: flex; justify-content: center; gap: clamp(3px, .8vw, 8px); width: 100%; }
.keyboard-row-2 { padding: 0 3.8%; }
.keyboard-row-3 { padding: 0 8%; }
.keyboard-key { width: clamp(21px, 5vw, 48px); height: clamp(30px, 5.5vw, 43px); display: grid; place-items: center; border: 1px solid #aebdc7; border-bottom-width: 3px; border-radius: 7px; background: #fff; color: #314b5e; font: 700 clamp(12px, 1.6vw, 15px)/1 inherit; cursor: pointer; transition: transform .15s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.keyboard-key:hover { transform: translateY(-2px); }
.keyboard-key.home-key { border-color: #7398af; background: #e1edf3; }
.keyboard-key.zone-key { box-shadow: 0 0 0 2px #6f9cba55; }
.keyboard-key.tapped { animation: key-tap .42s ease; background: #2a6ebb; color: white; }
.keyboard-key.next-key { animation: next-key-pulse .9s ease-in-out infinite; border-color: var(--blue); background: #dcecf6; color: #153b59; box-shadow: 0 0 0 3px #2a6ebb35; }
.keyboard-row-space { margin-top: 1px; }
.keyboard-key.space-key { width: min(47%, 300px); height: 32px; color: #506777; font-size: 10px; letter-spacing: .14em; }
.hand-illustration-wrap { width: min(100%, 840px); margin: 12px auto 0; }
.hand-illustration { display: block; width: 100%; height: auto; overflow: visible; }
.hand-illustration .hand { filter: drop-shadow(0 7px 5px #233b4a1b); }
.hand-illustration .palm, .hand-illustration .digit-shape { fill: url(#skinFill); stroke: #b77b64; stroke-width: 2.2; stroke-linejoin: round; }
.hand-illustration .digit { transform-box: fill-box; transform-origin: center bottom; transition: transform .2s ease, filter .2s ease; }
.hand-illustration .nail { fill: url(#nailFill); stroke: #c58e79; stroke-width: 1.4; stroke-linejoin: round; }
.hand-illustration .joint, .hand-illustration .palm-crease { fill: none; stroke: #bd856f; stroke-width: 2; stroke-linecap: round; opacity: .62; }
.hand-illustration .digit.active-finger { filter: drop-shadow(0 3px 5px #24547566); animation: finger-tap .5s ease-in-out 2; }
.finger-explanation { min-height: 48px; margin: 0; padding: 12px 15px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: #edf4f8; color: #385468; font-size: 15px; line-height: 1.6; }
@keyframes key-tap { 35% { transform: translateY(3px); border-bottom-width: 1px; } }
@keyframes next-key-pulse { 50% { transform: translateY(-3px); box-shadow: 0 0 0 6px #2a6ebb1c; } }
@keyframes finger-tap { 45% { transform: translateY(8px); } }

.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.timed-clock { width: fit-content; margin: 0 0 16px auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; color: var(--ink); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timed-clock.is-urgent { border-color: #bd493f; color: #a72f29; animation: clock-pulse 1s ease-in-out infinite alternate; }
@keyframes clock-pulse { to { background: #fff0ee; } }
.practice-grid h3, .practice-grid label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 750; }
.sample-text, .typing-input { box-sizing: border-box; width: 100%; height: 280px; min-height: 280px; max-height: 280px; margin: 0; padding: 15px; border: 1px solid #bdcbd3; border-radius: 10px; background: #fff; color: var(--ink); font: 23px/1.75 "Segoe UI", system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: scroll; scrollbar-gutter: stable; overscroll-behavior: contain; }
.sample-text { overflow-y: scroll; overflow-x: hidden; background-color: #fbfcfc; }
.sample-character { border-radius: 3px; }
.sample-character.is-current { background: #dcecf6; box-shadow: inset 0 -2px 0 var(--blue); }
.sample-character.is-wrong { color: #b42318; background: #fde8e7; text-decoration: underline wavy #c32920; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sample-character.is-wrong[data-whitespace="true"] { position: relative; }
.sample-character.is-wrong[data-whitespace="true"]::after { position: absolute; top: -.45em; left: 50%; color: #b42318; content: "•"; font-size: .8em; transform: translateX(-50%); }
.typing-input { display: block; resize: none; }
.typing-progress { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.lesson-actions { margin-top: 16px; }
.lesson-message { flex: 1; color: #9c3329; font-size: 12px; }
.primary-button, .quiet-button { min-height: 42px; padding: 10px 16px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.quiet-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.quiet-button:hover { background: #f3f6f7; }
.result-heading { margin-bottom: 18px; }
.result-heading h2 { margin: 0; font-size: 25px; }
.result-stars { color: var(--accent); font-size: 29px; letter-spacing: 2px; white-space: nowrap; }
.result-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.result-metrics article { min-height: 114px; padding: 15px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); }
.result-metrics article:last-child { border: 0; }
.result-metrics span { color: var(--muted); font-size: 12px; }
.result-metrics strong { color: var(--blue); font-size: 27px; }
.result-metrics small { color: var(--muted); font-size: 10px; }
.theory-result { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; }
.theory-result-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #9bb5c5; border-radius: 50%; color: var(--blue); font-size: 22px; }
.theory-result strong { font-size: 20px; }
.theory-result p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.result-message { margin: 15px 0; color: var(--muted); line-height: 1.5; }
.result-actions { justify-content: flex-end; }
.page-message { min-height: 1.5em; margin: 16px 4px; color: #9c3329; }
.gate-card { width: min(640px, 100%); margin: 7vh auto; padding: clamp(25px, 6vw, 52px); text-align: center; }
.gate-lock { margin-bottom: 14px; color: var(--blue); font-size: 32px; }
.gate-card h1 { margin-bottom: 10px; font-size: clamp(27px, 5vw, 38px); letter-spacing: -.035em; }
.gate-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.gate-card .primary-button { margin: 8px 8px 0; }
.text-link { display: block; margin-top: 16px; color: var(--blue-dark); }
.learning-ad { min-height: 240px; flex:1 1 240px; border: 1px dashed #bdcbd3; border-radius: 12px; background: #fbfcfc; color: var(--muted); }
.learning-ad .ad-card { min-height: inherit; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow-wrap: anywhere; text-align: center; }
.learning-ad .ad-card img { max-width: 100%; max-height: 260px; object-fit: contain; }
.learning-ad .ad-card p { margin: 0; line-height: 1.45; }
.learning-ad .ad-card a { color: var(--blue-dark); font-weight: 700; }
.learning-footer { padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }

@keyframes sketch-in { to { stroke-dashoffset: 0; } }
@keyframes trail-draw { to { stroke-dashoffset: -120; } }
@keyframes checkpoint-breathe { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes runner-bob { to { transform: translateY(-3px) rotate(-3deg); } }
@keyframes runner-stride { to { transform: rotate(7deg); } }
@keyframes compass-turn { to { transform: rotate(360deg); } }
@keyframes portal-sketch { to { box-shadow: 0 0 0 5px #2a6ebb12; } }
@keyframes emerge { 0% { opacity: 0; transform: translateY(8px) scale(.75); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes card-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  #learningApp:not([hidden]) { grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; }
  .course-map { gap: 14px 8px; padding: 12px 7px; }
  .checkpoint { min-height: 140px; }
  .checkpoint-icon { font-size: 46px; }
}
@media (max-width: 760px) {
  #learningApp:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  #learningApp > .learning-ad-stack { grid-column: 1; grid-row: auto; }
  .learning-ad { min-height: 180px; }
  .learning-shell { width: min(100% - 20px, 1260px); margin-top: 20px; }
  .map-scene { overflow-x: auto; }
  .course-map { min-width: 720px; }
  .map-trail { min-width: 720px; }
}
@media (max-width: 620px) {
  .learning-nav { align-items: flex-start; flex-direction: column; gap: 9px; }
  .learning-nav nav { gap: 2px; }
  .learning-nav nav a { padding: 7px 9px; font-size: 12px; }
  .page-intro { min-height: auto; align-items: flex-start; }
  .intro-sketch { width: 82px; }
  .map-heading { align-items: flex-start; flex-direction: column; }
  .map-summary { text-align: left; }
  .region-sparkle { max-width: 68px; text-align: right; line-height: 1.5; }
  .practice-grid { grid-template-columns: 1fr; }
  .sample-text, .typing-input { height: 240px; min-height: 240px; max-height: 240px; font-size: 20px; }
  .lesson-actions { align-items: stretch; flex-wrap: wrap; }
  .lesson-message { flex-basis: 100%; order: 3; }
  .result-heading { align-items: flex-start; }
  .result-stars { font-size: 23px; }
  .result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-metrics article:nth-child(2) { border-right: 0; }
  .result-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions button { width: 100%; }
  .theory-cards { grid-template-columns: 1fr; }
  .hand-guide-heading { align-items: flex-start; flex-direction: column; }
  .home-key-note { white-space: normal; }
  .keyboard-guide { padding: 10px 5px; }
  .keyboard-key { border-radius: 5px; }
  .hand-illustration { min-width: 560px; }
  .hand-illustration-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.checkpoint.pro-locked{opacity:.88;border-style:dashed;border-color:#bd9a53;background:#fffaf0;color:#66502c;cursor:not-allowed}.checkpoint.pro-locked .checkpoint-icon{color:#a87917}.checkpoint.pro-locked .checkpoint-title{font-weight:700}

.learning-nav .site-brand{position:static;display:block;flex:0 0 auto;width:66px;height:66px;overflow:hidden;border-radius:50%;background:#fff;line-height:0}
.learning-nav .site-brand img{position:static;display:block;width:100%;max-width:100%;height:100%;object-fit:contain;transform:none}
@media(max-width:600px){.learning-nav .site-brand{width:54px;height:54px}}
