@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=DM+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --paper: #f8f7f0;
  --ink: #354737;
  --muted: #8c9182;
  --green: #70885c;
  --line: #e4e6da;
  --orange: #d58b5c;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --serif: 'Lora', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
svg {
  width: 24px;
  height: 24px;
}
svg use {
  pointer-events: none;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.site-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 58px;
}
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 48px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.wordmark-rabbit {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-top: -4px;
}
.wordmark-dot {
  color: var(--orange);
}
.wordmark-tld {
  font-weight: 450;
  letter-spacing: -1.4px;
}
.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: auto;
  font-size: 12px;
  color: #888e7d;
  height: 100%;
}
.site-header nav a,
.site-header nav button {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 12px;
  gap: 8px;
}
.site-header nav .nav-active {
  color: var(--ink);
  font-weight: 600;
}
.nav-active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
.site-header nav button:hover {
  color: var(--ink);
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.icon-button[aria-pressed='true'] {
  background: #e9eddf;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 33px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.85px;
  font-weight: 650;
  margin: 0 0 13px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-spark {
  color: var(--orange);
  font-size: 16px;
}
h1 {
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -1.7px;
  margin: 0;
}
h1 > span {
  color: var(--orange);
}
.intro-note {
  padding: 17px 8px 0 0;
  position: relative;
}
.intro-note > svg {
  position: absolute;
  left: -45px;
  top: 24px;
  width: 29px;
  height: 29px;
  color: #83916b;
  transform: rotate(-14deg);
}
.intro-note p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 11px;
  color: #717967;
}
.intro-note > span {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #a0a28f;
}
.play-layout {
  display: grid;
  grid-template-columns: 247px minmax(0, 1fr);
  gap: 30px;
}
.journey-panel {
  padding-top: 3px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.25px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  color: #828a76;
  margin-bottom: 18px;
}
.section-label > span + span {
  font-family: var(--mono);
  font-size: 9px;
  color: #a3a792;
  letter-spacing: 0;
}
.lesson-list {
  display: grid;
  gap: 9px;
}
.lesson-card {
  display: flex;
  align-items: center;
  text-align: left;
  border: 1px solid #e4e5d8;
  border-radius: 10px;
  min-height: 99px;
  padding: 16px 12px;
  gap: 11px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  background: #faf9f3;
  width: 100%;
}
.lesson-card:hover {
  background: #f0f1e6;
  transform: translateX(2px);
}
.lesson-card.active {
  background: #ebefdf;
  border-color: #a9b48e;
  box-shadow: 0 2px 3px #55663d04;
}
.lesson-icon {
  width: 35px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #899370;
}
.lesson-icon svg {
  width: 30px;
  height: 30px;
}
.lesson-card:nth-child(2) .lesson-icon {
  color: #b1a87b;
}
.lesson-card:nth-child(3) .lesson-icon {
  color: #c59265;
}
.lesson-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lesson-index {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: #989b88;
}
.lesson-copy strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.lesson-copy > span:last-child {
  font-size: 9px;
  color: #8a927e;
}
.lesson-status {
  margin-left: auto;
  color: #97a480;
  font-size: 13px;
  align-self: center;
}
.lesson-card:not(.active) .lesson-status {
  opacity: 0.35;
}
.lesson-card.completed .lesson-status {
  opacity: 1;
}
.trail-friends {
  padding: 26px 2px 0;
}
.trail-friends .section-label {
  margin-bottom: 13px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0;
  opacity: 0.65;
  transition: opacity 0.4s;
}
.friend-row > svg {
  width: 37px;
  height: 34px;
  flex-shrink: 0;
}
.friend-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.friend-row strong {
  font-size: 10px;
  font-weight: 500;
}
.friend-row div span {
  font-size: 9px;
  color: #8e9482;
}
.friend-check {
  margin-left: auto;
  color: #8c9a71;
  font-size: 17px;
}
.friend-row.passed {
  opacity: 1;
}
.friend-row.passed .friend-check {
  font-size: 13px;
}
.daily-note {
  display: flex;
  gap: 10px;
  background: #f0efe3;
  border: 1px solid #e9e7d8;
  border-radius: 9px;
  padding: 16px 12px;
  margin-top: 26px;
}
.note-star {
  font-size: 27px;
  line-height: 1;
  color: #b9a473;
}
.daily-note strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}
.daily-note p {
  font-size: 10px;
  line-height: 1.8;
  color: #8e907c;
  margin: 7px 0 11px;
}
.daily-note div > span {
  font-size: 9px;
  color: #a09b7f;
}
.game-card {
  position: relative;
  background: #fffef9;
  border: 1px solid #dedfcd;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px #53614403;
  isolation: isolate;
}
.scene {
  position: relative;
  background: #edf1e6;
  overflow: hidden;
  border-bottom: 1px solid #dfe4ce;
  height: clamp(260px, 27vw, 350px);
}
.game-viewport {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.scene-topline {
  position: absolute;
  top: 19px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #7c886b;
}
.location-badge {
  display: flex;
  align-items: center;
  gap: 7px;
}
.location-badge > span {
  height: 5px;
  width: 5px;
  background: #8f9f74;
  border-radius: 50%;
}
.cozy-badge {
  background: #fafaf190;
  border: 1px solid #d9dfc790;
  border-radius: 20px;
  padding: 6px 9px;
  letter-spacing: 0.4px;
  font-size: 9px;
}
.scene-message {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: #8c967b;
  max-width: calc(100% - 36px);
  white-space: normal;
  text-align: center;
  line-height: 1.5;
  transition: color 0.2s;
}
.scene-message.milestone {
  color: #53724d;
}
.message-dot {
  display: none;
}
.scene-bottomline {
  position: absolute;
  bottom: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  color: #939977;
  font-size: 8px;
  letter-spacing: 0.9px;
}
.scene-bottomline > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #91a06c;
}
.scene-bottomline > span:last-child {
  font-family: var(--mono);
  letter-spacing: 0;
}
.hop-track {
  display: flex;
  gap: 7px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hop-track span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8bd9866;
  transition:
    background 0.25s,
    transform 0.25s;
}
.hop-track span.done {
  background: #7f965f;
  transform: scale(1.12);
}
.practice-panel {
  padding: 16px 25px 0;
}
.practice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #8c937d;
  letter-spacing: 1.3px;
  height: 20px;
}
.practice-topline > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.practice-topline button {
  font-size: 20px;
  font-family: var(--sans);
  line-height: 20px;
  color: #939b83;
  padding: 0 2px;
}
.practice-topline #pause-button {
  font-size: 13px;
}
.practice-topline #lesson-best {
  font-size: 8px;
  letter-spacing: 0;
  color: #a4a992;
}
.typing-area {
  text-align: center;
  position: relative;
  padding: 10px 0 9px;
  cursor: text;
  border-radius: 8px;
}
.typing-area p {
  font-size: 10px;
  color: #969a87;
  margin: 0 0 16px;
  line-height: 1.7;
}
.typing-area kbd {
  font: inherit;
  color: #788164;
  font-weight: 500;
}
.token-line {
  height: 57px;
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  white-space: pre;
}
.current-token {
  font-size: 39px;
  letter-spacing: 5px;
  color: #d4d5c9;
  display: inline-flex;
  position: relative;
  line-height: 1.3;
  min-width: 58px;
  justify-content: center;
}
.current-token > span {
  position: relative;
}
.current-token .correct {
  color: #829765;
}
.current-token .current {
  color: var(--ink);
}
.current-token .current:after {
  content: '';
  position: absolute;
  left: 0;
  right: 5px;
  bottom: -4px;
  height: 2px;
  background: #c49362;
  animation: caret 1.2s infinite;
}
.current-token .mistake {
  color: #c0775d;
}
.token-previous,
.token-next {
  font-size: 25px;
  letter-spacing: 3px;
  color: #c8cbbd;
  min-width: 30px;
}
.token-previous {
  color: #c1cbaa;
  opacity: 0.55;
}

.token-previous:empty {
  width: 35px;
}
.finger-hint {
  height: 34px;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  color: #929a82;
}
.finger-hint kbd {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: var(--mono);
  border: 1px solid #dbe0cf;
  border-radius: 3px;
  height: 17px;
  min-width: 17px;
  margin-left: 2px;
}
.hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #adba8e;
}
.finger-hint.error {
  color: #b87960;
}
.finger-hint.error .hint-dot {
  background: #c7886b;
}
#typing-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: 50%;
  bottom: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
}
.typing-area .focus-hint {
  font-size: 9px;
  color: var(--orange);
  position: absolute;
  bottom: 0;
  margin: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.keyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto 13px;
  max-width: 470px;
}
.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.keyboard-key {
  width: 33px;
  height: 30px;
  border: 1px solid #e8e9dd;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fafaf5;
  font-family: var(--mono);
  font-size: 10px;
  color: #bec2b1;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.keyboard-key.lesson-key {
  background: #f1f3e9;
  color: #88967a;
  border-color: #e0e5d4;
}
.keyboard-key.home-key:after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 7px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.keyboard-key.next-key {
  color: #fdfef5;
  background: #8a9b72;
  border-color: #7f9166;
  box-shadow: 0 2px 4px #5d773329;
}
.keyboard-key.pressed {
  transform: translateY(1px);
  border-bottom-width: 1px;
}
.keyboard-key.wrong-key {
  background: #f0d5c8;
  color: #a97154;
  border-color: #ddb59e;
}
.keyboard-key.wide-key {
  width: 48px;
  font-family: var(--sans);
  font-size: 9px;
}
.keyboard-key.space-key {
  width: 182px;
  height: 19px;
  font-family: var(--sans);
  font-size: 8px;
  color: #b6bdab;
}
.keyboard-row:last-child {
  margin-top: 0;
}
.practice-footer {
  border-top: 1px solid #eeefe4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  font-size: 8px;
  color: #a0a590;
}
.practice-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.keyboard-symbol {
  font-size: 14px;
  line-height: 1;
}
.practice-footer button {
  font-size: 8px;
  color: #8d9780;
  padding: 5px 0;
  white-space: nowrap;
}
.practice-footer button span {
  margin-left: 5px;
}
.game-stats {
  display: flex;
  align-items: center;
  background: #f6f7ee;
  padding: 17px 25px;
  border-top: 1px solid #e7eada;
  gap: 32px;
}
.game-stats > div {
  padding-right: 30px;
  border-right: 1px solid #e2e6d5;
}
.game-stats > div:nth-child(3) {
  border: 0;
  padding: 0;
}
.stat-label {
  font-size: 7px;
  letter-spacing: 1.25px;
  color: #929d80;
  display: block;
  margin-bottom: 6px;
}
.game-stats strong {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 400;
  color: #657854;
  line-height: 1;
}
.game-stats small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  color: #9ca78e;
}
.streak-spark {
  font-size: 18px;
  color: #c4ac7a;
  vertical-align: 1px;
  margin-left: 12px;
}
.stats-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10px;
  color: #9ea58d;
  line-height: 1.6;
  margin-left: auto;
}
.how-strip {
  display: flex;
  justify-content: space-between;
  padding: 27px 0 28px;
  gap: 18px;
}
.how-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-strip > div > span {
  font-family: var(--mono);
  font-size: 9px;
  color: #acb099;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e5d5;
  border-radius: 50%;
}
.how-strip p {
  font-size: 9px;
  color: #9aa18c;
  margin: 0;
  line-height: 1.6;
}
.how-strip strong {
  font-weight: 500;
  color: #6d7a61;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 19px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #a7ad99;
  gap: 20px;
}
.site-footer > span:nth-child(2) {
  color: #929d81;
}
.site-footer > span:nth-child(2) > span {
  color: #c6a87b;
  margin: 0 7px;
}
.site-footer button {
  color: #99a28c;
  font-size: 8px;
  padding: 0;
}
.pause-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #edf1e6ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
.pause-layer > svg {
  height: 38px;
  width: 38px;
  color: #9fae84;
}
.pause-layer h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  margin: 10px 0 0;
}
.pause-layer p {
  font-size: 11px;
  color: #89927c;
  margin: 10px 0 17px;
}
.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  min-height: 41px;
  padding: 11px 22px;
  background: #758b60;
  color: #fffef5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #627850;
  transform: translateY(-1px);
}
.primary-button span {
  font-size: 17px;
}
.result-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #f9faf2de;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: reveal 0.35s ease-out;
}
.result-card {
  text-align: center;
  max-width: 410px;
  width: 100%;
}
.result-eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #98a383;
}
.result-carrots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 24px 0 20px;
}
.result-carrots svg {
  width: 39px;
  height: 39px;
  color: #d99560;
}
.result-carrots svg.empty {
  opacity: 0.17;
  filter: grayscale(1);
}
.result-card h2 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 400;
  margin: 0 0 14px;
}
.result-card > p {
  font-size: 11px;
  color: #959d85;
  line-height: 1.9;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 26px 0;
  padding: 21px 0;
  border-top: 1px solid #e2e7d5;
  border-bottom: 1px solid #e2e7d5;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-stats strong {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  color: #71825b;
}
.result-stats span {
  font-size: 9px;
  color: #a2aa93;
}
.result-card .result-tip {
  font-size: 10px;
  margin: 0 0 22px;
}
.result-card .primary-button {
  margin: 0 auto;
  min-width: 240px;
}
.text-button {
  display: block;
  margin: 17px auto 0;
  font-size: 10px;
  color: #8c987c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
dialog {
  border: 1px solid #dfe4d0;
  border-radius: 15px;
  background: #fffef7;
  padding: 38px;
  max-width: 490px;
  width: calc(100% - 40px);
  color: var(--ink);
  box-shadow: 0 20px 90px #33432222;
}
dialog::backdrop {
  background: #42503940;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 11px;
  right: 15px;
  font-size: 23px;
  color: #98a087;
}
dialog h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  margin: 0 0 20px;
}
dialog p {
  font-size: 12px;
  color: #869077;
  line-height: 1.9;
}
dialog li {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 12px;
  color: #869077;
}
dialog ol {
  padding-left: 20px;
}
dialog .primary-button {
  margin-top: 24px;
}
dialog strong {
  font-weight: 600;
  color: #637753;
}
dialog .dialog-caption {
  font-size: 9px;
  color: #a3aa98;
  margin-top: 18px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@keyframes caret {
  50% {
    opacity: 0.3;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .site-shell {
    padding: 0 65px;
  }
  .intro {
    padding: 42px 0 40px;
  }
  .practice-panel {
    padding-top: 19px;
  }
  .typing-area {
    padding: 15px 0 12px;
  }
  .keyboard {
    margin-bottom: 18px;
  }
  .keyboard-key {
    height: 32px;
    width: 35px;
  }
  .game-stats {
    padding: 20px 27px;
  }
  .site-footer {
    padding-bottom: 30px;
  }
}
@media (max-width: 1150px) {
  .site-shell {
    padding: 0 32px;
  }
  .play-layout {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 22px;
  }
  .lesson-card {
    padding: 13px 9px;
    gap: 7px;
  }
  .lesson-copy strong {
    font-size: 12px;
  }
  .lesson-icon {
    width: 28px;
  }
  .lesson-icon svg {
    width: 25px;
    height: 25px;
  }
  .scene-message {
    top: 51px;
    font-size: 11px;
  }
  .game-stats {
    gap: 22px;
    padding: 16px 21px;
  }
  .game-stats > div {
    padding-right: 22px;
  }
  .stats-note {
    font-size: 9px;
  }
  .practice-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .how-strip {
    gap: 12px;
  }
  .how-strip p {
    max-width: 205px;
  }
  .how-strip strong {
    display: block;
  }
}
@media (max-width: 900px) {
  .site-shell {
    padding: 0 24px;
  }
  .site-header {
    height: 78px;
  }
  .site-header nav {
    gap: 20px;
  }
  .intro {
    padding: 29px 0;
  }
  .intro-note {
    display: none;
  }
  h1 {
    font-size: 39px;
  }
  .play-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 17px;
  }
  .lesson-card {
    min-height: 93px;
    padding: 12px 10px;
    gap: 8px;
  }
  .lesson-icon {
    display: none;
  }
  .lesson-copy strong {
    font-size: 12px;
  }
  .scene-message {
    top: 49px;
    font-size: 10px;
  }
  .scene-topline {
    left: 15px;
    right: 15px;
    top: 14px;
    font-size: 7px;
  }
  .cozy-badge {
    font-size: 8px;
  }
  .scene-bottomline {
    left: 15px;
    right: 15px;
    font-size: 7px;
    bottom: 10px;
  }
  .scene-bottomline > span:first-child {
    letter-spacing: 0;
  }
  .hop-track {
    gap: 5px;
  }
  .practice-panel {
    padding: 12px 15px 0;
  }
  .typing-area p {
    font-size: 9px;
  }
  .keyboard-key {
    width: 27px;
    height: 28px;
  }
  .keyboard-key.wide-key {
    width: 36px;
  }
  .keyboard-row {
    gap: 4px;
  }
  .keyboard {
    gap: 4px;
  }
  .token-line {
    gap: 22px;
  }
  .game-stats {
    gap: 20px;
    padding: 15px;
  }
  .game-stats > div {
    padding-right: 20px;
  }
  .stats-note {
    display: none;
  }
  .daily-note {
    padding: 13px 9px;
    gap: 7px;
  }
  .daily-note strong {
    font-size: 11px;
  }
  .daily-note p {
    font-size: 9px;
  }
  .daily-note div > span {
    font-size: 8px;
  }
  .note-star {
    font-size: 24px;
  }
  .friend-row {
    gap: 7px;
  }
  .friend-row > svg {
    width: 31px;
  }
  .friend-row strong {
    font-size: 9px;
  }
  .friend-row div span {
    font-size: 8px;
  }
  .section-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .site-footer > span:first-child {
    display: none;
  }
  .result-stats {
    gap: 24px;
  }
}
@media (max-width: 680px) {
  .site-shell {
    padding: 0 17px;
  }
  .site-header {
    height: 70px;
    gap: 18px;
  }
  .wordmark {
    font-size: 29px;
  }
  .wordmark-rabbit {
    width: 32px;
    height: 32px;
  }
  .site-header nav {
    margin-left: auto;
    margin-right: 0;
    gap: 15px;
  }
  .site-header nav a,
  .site-header nav button {
    font-size: 10px;
  }
  .site-header nav #world-button {
    display: none;
  }
  .icon-button {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .intro {
    padding: 25px 0 24px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .play-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .journey-panel {
    padding: 0;
  }
  .journey-panel > .section-label {
    margin-bottom: 10px;
    font-size: 8px;
  }
  .lesson-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .lesson-card {
    min-height: 78px;
    padding: 12px 9px;
    gap: 0;
    border-radius: 7px;
  }
  .lesson-copy {
    gap: 6px;
  }
  .lesson-index {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .lesson-copy strong {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: -0.3px;
    white-space: normal;
    line-height: 1.35;
  }
  .lesson-copy > span:last-child {
    font-size: 8px;
    line-height: 1.4;
  }
  .lesson-card:nth-child(2) strong {
    font-size: 0;
  }
  .lesson-card:nth-child(2) strong:after {
    content: 'The home row';
    font-size: 10px;
  }
  .lesson-status {
    display: none;
  }
  .trail-friends,
  .daily-note {
    display: none;
  }
  .game-card {
    border-radius: 11px;
  }
  .scene-topline {
    top: 13px;
    left: 13px;
    right: 13px;
  }
  .scene-message {
    top: 49px;
    font-size: 10px;
  }
  .scene-bottomline {
    bottom: 10px;
    left: 13px;
    right: 13px;
  }
  .practice-panel {
    padding: 12px 12px 0;
  }
  .practice-topline {
    font-size: 7px;
  }
  .typing-area {
    padding: 12px 0 8px;
  }
  .typing-area p {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .current-token {
    font-size: 33px;
    letter-spacing: 4px;
  }
  .token-next,
  .token-previous,

  .token-line {
    gap: 24px;
    height: 48px;
  }
  .keyboard {
    max-width: 400px;
    margin-bottom: 12px;
  }
  .keyboard-row {
    gap: 4px;
  }
  .keyboard-key {
    height: 29px;
    width: calc((100% - 71px) / 10);
    max-width: 31px;
    font-size: 9px;
  }
  .keyboard-key.wide-key {
    width: 32px;
    font-size: 8px;
  }
  .keyboard-key.space-key {
    width: 145px;
    height: 18px;
  }
  .finger-hint {
    margin-top: 6px;
  }
  .practice-footer {
    font-size: 7px;
    min-height: 37px;
    gap: 6px;
  }
  .practice-footer button {
    font-size: 7px;
  }
  .game-stats {
    gap: 0;
    justify-content: space-around;
    padding: 15px 12px;
  }
  .game-stats > div {
    padding-right: 25px;
  }
  .game-stats > div:nth-child(3) {
    padding-left: 2px;
  }
  .game-stats strong {
    font-size: 19px;
  }
  .stat-label {
    font-size: 6px;
    letter-spacing: 0.9px;
  }
  .game-stats small {
    font-size: 8px;
  }
  .streak-spark {
    margin-left: 7px;
  }
  .how-strip {
    padding: 23px 1px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .how-strip > div {
    width: 100%;
  }
  .how-strip p {
    max-width: none;
    font-size: 10px;
  }
  .how-strip strong {
    display: inline;
  }
  .site-footer {
    padding: 18px 0;
    font-size: 7px;
    gap: 10px;
  }
  .site-footer button {
    font-size: 7px;
  }
  .site-footer > span:nth-child(2) {
    font-size: 0;
  }
  .site-footer > span:nth-child(2):before {
    content: 'pyon.run · a tiny typing adventure';
    font-size: 7px;
  }
  .site-footer > span:nth-child(2) > span {
    display: none;
  }
  .result-layer {
    padding: 20px;
  }
  .result-card h2 {
    font-size: 28px;
  }
  .result-stats {
    gap: 25px;
  }
  .result-stats strong {
    font-size: 22px;
  }
  .result-card > p {
    font-size: 10px;
  }
  .pause-layer h2 {
    font-size: 21px;
  }
  .pause-layer p {
    margin: 7px 0 10px;
    font-size: 10px;
  }
  .pause-layer > svg {
    display: none;
  }
  .pause-layer .primary-button {
    min-height: 35px;
    font-size: 10px;
  }
  dialog {
    padding: 31px 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep the primary instructions and controls readable for younger learners. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.language-picker select {
  font: 12px var(--sans);
  color: #617452;
  border: 1px solid #dce2ce;
  background: transparent;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  max-width: 104px;
}
.intro h1,
.intro-note p,
.daily-note p,
.stats-note,
.result-card > p {
  white-space: pre-line;
}
.intro h1 {
  font-size: 46px;
  max-width: 650px;
}
.intro-note p {
  font-size: 13px;
  line-height: 1.85;
  max-width: 310px;
  color: #69765e;
}
.site-header nav a,
.site-header nav button {
  font-size: 13px;
}
.section-label {
  font-size: 10px;
  color: #68795b;
}
.lesson-copy strong {
  font-size: 16px;
}
.lesson-copy > span:last-child {
  font-size: 11px;
  color: #748163;
}
.lesson-index {
  font-size: 9px;
  color: #7b886b;
}
.lesson-card {
  min-height: 106px;
}
.friend-row {
  opacity: 0.85;
  margin: 17px 0;
}
.friend-row > svg {
  width: 42px;
  height: 38px;
}
.friend-row strong {
  font-size: 12px;
}
.friend-row div span {
  font-size: 10px;
  color: #7d886d;
}
.daily-note strong {
  font-size: 14px;
}
.daily-note p {
  font-size: 12px;
  color: #7d836b;
}
.daily-note div > span {
  font-size: 10px;
  color: #888269;
}
.scene-message {
  font-size: 15px;
  top: 60px;
  color: #687959;
}
.scene-topline {
  font-size: 10px;
}
.cozy-badge {
  font-size: 11px;
  color: #6f7f5c;
}
.scene-bottomline {
  font-size: 9px;
  color: #748159;
  bottom: 11px;
}
.practice-topline {
  font-size: 10px;
  letter-spacing: 1px;
  color: #70805e;
}
.practice-topline > div {
  gap: 8px;
}
.practice-topline button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.practice-topline #lesson-best {
  font-size: 10px;
  color: #7d8a6e;
}
.typing-area {
  padding: 17px 0 10px;
}
.typing-area p {
  font-size: 13px;
  color: #748365;
  margin-bottom: 14px;
}
.token-line {
  height: 68px;
  gap: 35px;
}
.current-token {
  font-size: 48px;
  letter-spacing: 6px;
}
.token-next,
.token-previous {
  font-size: 28px;
}
.finger-hint {
  font-size: 12px;
  color: #728261;
  height: 34px;
  margin-top: 9px;
}
.finger-hint kbd {
  font-size: 11px;
  width: 23px;
  height: 23px;
}
.word-reading {
  font-size: 18px;
  color: #688152;
  margin: 2px 0 9px;
  font-weight: 500;
}
.keyboard {
  max-width: 550px;
  gap: 6px;
  margin: 0 auto 15px;
}
.keyboard-row {
  gap: 6px;
}
.keyboard-key {
  width: 39px;
  height: 36px;
  font-size: 12px;
  color: #9aab8d;
  border-radius: 5px;
}
.keyboard-key.lesson-key {
  color: #657d50;
}
.keyboard-key.next-key {
  color: #fffef5;
  background: #7c9365;
  border-color: #6f865a;
}
.keyboard-key.space-key {
  width: 200px;
  height: 22px;
}
.practice-footer {
  font-size: 10px;
  min-height: 44px;
  color: #849375;
}
.practice-footer button {
  font-size: 10px;
  min-height: 36px;
}
.stat-label {
  font-size: 9px;
  color: #778a64;
  letter-spacing: 0.7px;
}
.game-stats strong {
  font-size: 24px;
}
.game-stats small {
  font-size: 11px;
  color: #7e8d6a;
}
.stats-note {
  font-size: 12px;
  color: #7e8d6a;
}
.how-strip p {
  font-size: 11px;
  color: #829171;
}
.how-strip > div > span {
  font-size: 10px;
  width: 27px;
  height: 27px;
}
.site-footer,
.site-footer button {
  font-size: 10px;
  color: #829071;
}
.result-eyebrow {
  font-size: 10px;
}
.result-card > p {
  font-size: 13px;
  color: #778768;
}
.result-stats span {
  font-size: 11px;
  color: #7d8d6b;
}
.result-card .result-tip {
  font-size: 12px;
}
.primary-button {
  font-size: 13px;
  min-height: 44px;
}
.text-button {
  font-size: 12px;
  min-height: 36px;
}
dialog p,
dialog li {
  font-size: 14px;
  color: #728263;
}
dialog .dialog-caption {
  font-size: 12px;
}
.character-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 18px 0;
}
.friend-portraits {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 14px 12px 7px;
  margin: 18px 0;
  background: #edf1e2;
  border-radius: 12px;
}
.friend-portraits svg {
  width: calc(25% - 11px);
  height: 94px;
}
.reset-results {
  margin: 12px 0 0;
  text-align: left;
  color: #8c967d;
}
@media (max-width: 1150px) {
  .lesson-copy strong {
    font-size: 14px;
  }
  .lesson-copy > span:last-child {
    font-size: 10px;
  }
  .friend-row strong {
    font-size: 11px;
  }
  .friend-row div span {
    font-size: 9px;
  }
  .intro h1 {
    font-size: 41px;
  }
  .intro-note p {
    font-size: 12px;
    max-width: 260px;
  }
  .intro-note > svg {
    left: -32px;
    width: 23px;
  }
  .typing-area p {
    font-size: 12px;
  }
  .game-stats {
    gap: 19px;
  }
  .game-stats > div {
    padding-right: 18px;
  }
  .stats-note {
    font-size: 10px;
  }
  .scene-message {
    top: 53px;
    font-size: 13px;
  }
  .lesson-index {
    font-size: 8px;
  }
  .how-strip p {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .intro h1 {
    font-size: 39px;
  }
  .site-header {
    gap: 20px;
  }
  .site-header nav {
    gap: 17px;
  }
  .header-tools {
    gap: 10px;
  }
  .site-header nav a,
  .site-header nav button {
    font-size: 11px;
  }
  .scene-message {
    top: 48px;
    font-size: 12px;
  }
  .scene-topline {
    font-size: 8px;
  }
  .cozy-badge {
    font-size: 9px;
  }
  .scene-bottomline {
    font-size: 8px;
  }
  .lesson-copy strong {
    font-size: 13px;
  }
  .keyboard-key {
    width: 30px;
    height: 32px;
    font-size: 11px;
  }
  .keyboard-row {
    gap: 4px;
  }
  .keyboard {
    gap: 4px;
  }
  .typing-area p {
    font-size: 11px;
  }
  .token-line {
    gap: 21px;
    height: 59px;
  }
  .current-token {
    font-size: 42px;
  }
  .token-next,
  .token-previous,

  .finger-hint {
    font-size: 11px;
  }
  .practice-footer,
  .practice-footer button {
    font-size: 9px;
  }
  .game-stats strong {
    font-size: 22px;
  }
  .stat-label {
    font-size: 8px;
  }
  .friend-row {
    gap: 7px;
  }
  .friend-row > svg {
    width: 31px;
  }
  .friend-row strong {
    font-size: 10px;
  }
  .friend-row div span {
    font-size: 8px;
  }
  .section-label {
    font-size: 9px;
  }
  .daily-note strong {
    font-size: 12px;
  }
  .daily-note p {
    font-size: 10px;
  }
  .daily-note div > span {
    font-size: 9px;
  }
  .scene-bottomline > span:first-child {
    max-width: 130px;
  }
  .how-strip p {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .header-tools {
    gap: 8px;
  }
  .language-picker select {
    font-size: 10px;
    padding: 7px 3px;
    max-width: 73px;
  }
  .site-header {
    gap: 10px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav .nav-active {
    display: none;
  }
  .site-header nav button {
    font-size: 11px;
  }
  .intro h1 {
    font-size: 35px;
  }
  .lesson-card {
    min-height: 94px;
    padding: 12px 9px;
  }
  .lesson-copy strong,
  .lesson-card:nth-child(2) strong {
    font: 600 12px var(--sans);
    white-space: normal;
  }
  .lesson-card:nth-child(2) strong:after {
    content: none;
  }
  .lesson-copy > span:last-child {
    font-size: 10px;
  }
  .lesson-index {
    font-size: 8px;
  }
  .scene-message {
    font-size: 11px;
    top: 47px;
  }
  .scene-topline {
    font-size: 8px;
  }
  .cozy-badge {
    font-size: 9px;
  }
  .scene-bottomline {
    font-size: 8px;
    bottom: 10px;
  }
  .typing-area p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 12px;
  }
  .practice-topline {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .practice-topline #lesson-best {
    font-size: 9px;
  }
  .token-line {
    gap: 23px;
    height: 59px;
  }

  .current-token {
    font-size: 43px;
    letter-spacing: 4px;
  }
  .token-previous,
  .token-next {
    font-size: 23px;
    min-width: 25px;
  }
  .keyboard-key {
    width: calc((100% - 40px) / 10);
    max-width: 36px;
    height: 33px;
    font-size: 11px;
  }
  .keyboard {
    max-width: 400px;
    margin-bottom: 12px;
  }
  .keyboard-key.space-key {
    width: 160px;
    height: 22px;
  }
  .finger-hint {
    font-size: 12px;
  }
  .practice-footer {
    font-size: 9px;
    align-items: center;
    line-height: 1.6;
  }
  .practice-footer > span {
    max-width: 220px;
  }
  .practice-footer button {
    font-size: 9px;
    flex-shrink: 0;
  }
  .stat-label {
    font-size: 8px;
  }
  .game-stats small {
    font-size: 10px;
  }
  .game-stats > div {
    padding-right: 22px;
  }
  .how-strip p {
    font-size: 12px;
  }
  .site-footer,
  .site-footer button {
    font-size: 9px;
  }
  .site-footer > span:nth-child(2) {
    font-size: 9px;
  }
  .site-footer > span:nth-child(2):before {
    content: none;
  }
  .result-card > p {
    font-size: 12px;
  }
  .result-stats span {
    font-size: 10px;
  }
  .result-card .result-tip {
    font-size: 11px;
  }
}
@media (max-width: 680px) {
  .token-previous,
  .token-next {
    font-size: 20px;
  }
  .friend-portraits {
    gap: 8px;
    padding: 10px 8px;
  }
  .friend-portraits svg {
    height: 67px;
    width: calc(25% - 6px);
  }
}

.scene.is-paused * {
  animation-play-state: paused !important;
}

.game-viewport > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-message {
  background: #fffff0bd;
  border: 1px solid #fff8;
  border-radius: 20px;
  padding: 5px 14px;
  backdrop-filter: blur(8px);
}
.scene-bottomline {
  text-shadow: 0 1px 4px #fff;
}
.home-marker {
  position: absolute;
  z-index: 1;
  padding: 4px 9px;
  color: #6f7950;
  background: #fffae9ed;
  border: 1px solid #d9dbb9;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.scene-error {
  position: absolute;
  inset: 30% 12%;
  text-align: center;
  z-index: 2;
  padding: 25px;
  background: #fff9ed;
  border-radius: 18px;
}

.token-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.token-previous,
.token-next {
  overflow: hidden;
  text-overflow: ellipsis;
}
.token-previous {
  text-align: right;
}
.token-next {
  text-align: left;
}

.current-token {
  color: #858d78;
}
.word-reading {
  font-size: 24px;
  color: #526346;
  letter-spacing: 0.12em;
}
