:root {
  --bg: #f4f0e8;
  --surface: #fffdf8;
  --surface-2: #ebe3d7;
  --ink: #202728;
  --muted: #667071;
  --teal: #2f666c;
  --teal-dark: #244f53;
  --copper: #a76034;
  --line: #d7c9b8;
  --soft-line: #e9dfd1;
  --success: #2f6b51;
  --danger: #9a453e;
  --shadow: 0 18px 44px rgba(35, 43, 43, .08);
  --content: 1120px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  padding-bottom: 0;
}
img { max-width: 100%; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { border-radius: 0; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 1000;
  background: #111;
  color: #fff;
  padding: 8px 14px;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--content);
  min-height: 68px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: max-content;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: block;
  transition: transform .18s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-copy strong { display: block; font-size: 17px; line-height: 1.2; }
.brand-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.desktop-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.desktop-nav .guitar-home-nav { display: none; }
body.is-guitar-route .desktop-nav .guitar-home-nav { display: inline; }
.page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 42px 20px 80px;
}
.narrow-page { max-width: 900px; }
.home-page { padding-top: 0; }
.eyebrow {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-title {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.page-intro {
  max-width: 800px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.home-hero {
  min-height: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 0 42px;
  max-width: none;
}
.home-hero > :not(.home-hero-image) { position: relative; z-index: 1; }
.home-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .27;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .2) 20%, #000 54%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .2) 20%, #000 54%, #000 100%);
}
.home-hero h1 {
  margin: 12px 0 24px;
  font-size: clamp(24px, 7.2vw, 70px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.home-hero h1 span { display: block; white-space: nowrap; }
.home-hero > p {
  max-width: none;
  margin: 0;
  color: #4f595a;
  font-size: 18px;
  line-height: 1.75;
  white-space: nowrap;
}
.home-unlock-entry {
  display: inline-flex;
  margin-top: 20px;
  border-left: 3px solid var(--copper);
  background: rgba(255, 253, 248, .82);
  color: var(--teal-dark);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 900;
}
.home-unlock-entry:hover { background: var(--surface); text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.button:hover { background: var(--teal-dark); text-decoration: none; }
.button.primary { background: var(--teal); color: #fff; }
.button.ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.ghost:hover { border-color: var(--teal); background: #f8f4ed; }
.button.text { border-color: transparent; background: transparent; color: var(--teal-dark); }
.button.text:hover { background: transparent; text-decoration: underline; }
.button.small { padding: 7px 10px; font-size: 13px; }
.button.large { padding: 14px 21px; font-size: 16px; }

.search-panel {
  background: var(--teal-dark);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}
.search-panel h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.search-panel > p { margin: 5px 0 18px; color: #d5e5e6; }
.search-form {
  display: flex;
  gap: 10px;
  width: 100%;
}
.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  outline: 3px solid transparent;
}
.search-form input:focus { outline-color: #e1a67c; }
.search-form button {
  min-width: 106px;
  border: 0;
  background: var(--copper);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}
.search-form.standalone {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px;
}
.search-form.standalone input { border: 1px solid var(--soft-line); }
.example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.example-links button {
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.example-links button:hover { border-color: #fff; }

.home-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.home-choice {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.home-choice:hover { transform: translateY(-3px); border-color: var(--teal); text-decoration: none; }
.home-choice-kicker { color: var(--copper); font-size: 12px; font-weight: 900; }
.home-choice h3 { margin: 16px 0 10px; font-size: 24px; line-height: 1.3; }
.home-choice p { margin: 0; color: var(--muted); font-size: 15px; }
.home-choice-link { margin-top: auto; padding-top: 20px; color: var(--teal-dark); font-weight: 800; }
.life-note {
  margin: 44px 0 0;
  max-width: 820px;
  border-left: 5px solid var(--copper);
  padding: 6px 0 6px 22px;
  color: #4e5757;
  font-size: 18px;
}
.life-note p { margin: 0; }

.guitar-simulator-page { position: relative; max-width: 1240px; overflow-anchor: none; padding-top: 20px; }
.guitar-simulator-page::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -230px;
  width: 1px;
  height: 230px;
  pointer-events: none;
}
.guitar-page-help { position: relative; color: var(--muted); font-size: 14px; font-weight: 700; }
.guitar-page-help summary { cursor: pointer; list-style: none; }
.guitar-page-help summary::-webkit-details-marker { display: none; }
.guitar-page-help summary::before { content: '＋'; margin-right: 5px; color: var(--copper); }
.guitar-page-help[open] summary::before { content: '−'; }
.guitar-page-help summary:hover,
.guitar-page-help summary:focus-visible { color: var(--teal-dark); text-decoration: underline; }
.guitar-page-help p {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(380px, calc(100vw - 48px));
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  background: #fffaf2;
  color: var(--muted);
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  box-shadow: var(--shadow);
}
.guitar-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: end;
  column-gap: 22px;
  row-gap: 10px;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
}
.guitar-control-heading {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.guitar-control-heading .guitar-category-tabs { margin-bottom: 0; }
.guitar-control-group { min-width: 0; }
.guitar-control-label,
.guitar-capo-select {
  display: block;
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}
.guitar-category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.guitar-category-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fffaf2;
  color: var(--muted);
  padding: 6px 18px;
  font-weight: 900;
  cursor: pointer;
}
.guitar-category-tabs button:hover { border-color: var(--teal); color: var(--teal-dark); }
.guitar-category-tabs button.is-active {
  border-color: var(--teal-dark);
  background: #e1efeb;
  color: var(--teal-dark);
  box-shadow: inset 0 -3px 0 var(--copper);
}
.guitar-chord-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(62px, 1fr));
  gap: 8px;
}
.guitar-chord-buttons button {
  min-height: 48px;
  border: 1px solid var(--line);
  background: #f7f0e5;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.guitar-chord-buttons button:hover { border-color: var(--teal); }
.guitar-chord-buttons button.is-active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--copper);
}
.guitar-capo-select { margin: 0; }
.guitar-capo-select select {
  width: 100%;
  min-height: 48px;
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}
.guitar-facts {
  display: grid;
  grid-template-columns: .8fr .65fr 1.55fr;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  background: #eee4d5;
}
.guitar-facts > div { min-width: 0; padding: 14px 18px; }
.guitar-facts > div + div { border-left: 1px solid var(--line); }
.guitar-facts span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.guitar-facts strong { display: block; margin-top: 2px; font-size: 17px; line-height: 1.45; }
.guitar-chord-tones { display: block; margin-top: 2px; color: var(--teal-dark); font-size: 13px; font-weight: 900; line-height: 1.5; }
.guitar-diatonic-panel {
  margin: -4px 0 18px;
  border: 1px solid var(--line);
  background: #fffaf2;
  padding: 16px;
}
.guitar-diatonic-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.guitar-diatonic-heading span { color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-diatonic-heading h2 { margin: 2px 0 0; font-size: 21px; }
.guitar-diatonic-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.guitar-diatonic-chords { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.guitar-diatonic-chords button {
  min-width: 0;
  min-height: 92px;
  border: 1px solid var(--line);
  background: #f7f0e5;
  color: var(--ink);
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
}
.guitar-diatonic-chords button:hover,
.guitar-diatonic-chords button:focus-visible { border-color: var(--teal); background: #eef4f1; }
.guitar-diatonic-chords button.is-common { box-shadow: inset 0 3px 0 var(--copper); }
.guitar-diatonic-chords button.is-active { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; box-shadow: inset 0 3px 0 var(--copper); }
.guitar-diatonic-chords span { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-diatonic-chords em { border: 1px solid currentColor; padding: 1px 4px; font-size: 10px; font-style: normal; }
.guitar-diatonic-chords strong { display: block; margin-top: 3px; font-size: 22px; line-height: 1.15; }
.guitar-diatonic-chords small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.35; }
.guitar-diatonic-chords button.is-active span,
.guitar-diatonic-chords button.is-active small { color: #f4dcc1; }
.guitar-beginner-practice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0;
  border: 1px solid #c7aa83;
  border-left: 5px solid var(--copper);
  background: #fffaf2;
  padding: 18px 20px;
}
.guitar-beginner-practice.is-active { border-color: #82a4a0; border-left-color: var(--teal-dark); background: #e9f1ed; }
.guitar-beginner-practice > div:first-child { min-width: 0; }
.guitar-beginner-practice > div:first-child > span { color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-beginner-practice h2 { margin: 3px 0 5px; color: var(--teal-dark); font-size: 23px; }
.guitar-beginner-practice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guitar-beginner-practice > button,
.guitar-beginner-practice-status button {
  min-height: 44px;
  border: 1px solid var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
  padding: 9px 18px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.guitar-beginner-practice > button:hover,
.guitar-beginner-practice > button:focus-visible,
.guitar-beginner-practice-status button:hover,
.guitar-beginner-practice-status button:focus-visible { border-color: var(--copper); outline: 2px solid var(--copper); outline-offset: 2px; }
.guitar-beginner-practice-status { display: grid; flex: 0 0 auto; grid-template-columns: auto auto; align-items: center; gap: 2px 14px; }
.guitar-beginner-practice-status > span { color: var(--muted); font-size: 11px; font-weight: 900; }
.guitar-beginner-practice-status > strong { color: var(--teal-dark); font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1; }
.guitar-beginner-practice-status button { grid-column: 2; grid-row: 1 / span 2; background: #fff; color: var(--teal-dark); }
.guitar-progression-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.guitar-progression-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.guitar-progression-heading span { color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-progression-heading h3 { margin: 2px 0 0; font-size: 18px; }
.guitar-progression-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.guitar-beginner-progression-heading { border-left: 4px solid var(--copper); background: #f7f0e5; padding: 10px 13px; }
.guitar-progression-mode { display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; border: 1px solid var(--teal); }
.guitar-progression-mode button { min-height: 38px; border: 0; background: #fff; color: var(--teal-dark); padding: 7px 16px; font-weight: 900; cursor: pointer; }
.guitar-progression-mode button + button { border-left: 1px solid var(--teal); }
.guitar-progression-mode button.is-active { background: var(--teal-dark); color: #fff; box-shadow: inset 0 -3px 0 var(--copper); }
.guitar-progression-mode button:hover,
.guitar-progression-mode button:focus-visible { outline: 2px solid var(--copper); outline-offset: -3px; }
.guitar-progression-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.guitar-progression-choices button {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  background: #f7f0e5;
  color: var(--ink);
  padding: 8px 11px;
  text-align: left;
  cursor: pointer;
}
.guitar-progression-choices button:hover,
.guitar-progression-choices button:focus-visible { border-color: var(--teal); background: #eef4f1; }
.guitar-progression-choices button.is-active { border-color: var(--teal-dark); background: #e4efeb; box-shadow: inset 0 -3px 0 var(--copper); }
.guitar-progression-choices strong { display: block; color: var(--teal-dark); font-size: 16px; }
.guitar-progression-choices span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.guitar-progression-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.guitar-progression-track > div {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  text-align: center;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.guitar-progression-track > div.is-current { border-color: var(--copper); background: var(--teal-dark); color: #fff; box-shadow: inset 0 -3px 0 var(--copper); }
.guitar-progression-track span,
.guitar-progression-track small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.guitar-progression-track strong { display: block; margin: 2px 0; font-size: 19px; }
.guitar-progression-track > div.is-current span,
.guitar-progression-track > div.is-current small { color: #f4dcc1; }
.guitar-practice-readout {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) minmax(240px, 1.4fr);
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #8ca9a6;
  background: #e9f1ed;
  padding: 9px;
}
.guitar-practice-readout > [data-guitar-practice-current],
.guitar-practice-readout > [data-guitar-practice-next] { min-width: 0; border-left: 3px solid var(--copper); background: #fff; padding: 7px 10px; }
.guitar-practice-readout span,
.guitar-practice-readout small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.guitar-practice-readout strong { display: block; margin: 2px 0; color: var(--teal-dark); font-size: 18px; }
.guitar-practice-beats { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 6px; }
.guitar-practice-beats b { display: grid; width: 48px; aspect-ratio: 1; place-items: center; justify-self: center; border: 2px solid #779a98; border-radius: 50%; background: #fff; color: var(--teal-dark); font-size: 18px; font-weight: 900; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.guitar-practice-beats b.is-current,
.guitar-practice-beats b.is-countin { border-color: var(--copper); background: var(--teal-dark); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 3px rgba(183, 98, 46, .2); }
.guitar-practice-beats b.is-countin { background: var(--copper); }
.guitar-strum-pattern {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid #b8ccc8;
  padding-top: 9px;
}
.guitar-strum-pattern > div {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  border: 1px solid #9bb4b1;
  background: #fff;
  color: var(--teal-dark);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.guitar-strum-pattern span { font-size: 11px; line-height: 1; }
.guitar-strum-pattern b { font-size: 25px; line-height: 1; }
.guitar-strum-pattern > div.is-current { border-color: var(--copper); background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: inset 0 -3px 0 var(--copper); }
.guitar-strum-pattern > div.is-current span { color: #f4dcc1; }
.guitar-progression-controls { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.guitar-progression-settings { display: flex; flex: 1 1 760px; flex-wrap: wrap; gap: 8px; min-width: 0; }
.guitar-beginner-fixed-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.guitar-beginner-fixed-settings span { border: 1px solid #8ca9a6; background: #e9f1ed; color: var(--teal-dark); padding: 9px 11px; font-size: 12px; font-weight: 900; }
.guitar-progression-actions { display: flex; flex: 0 0 auto; gap: 8px; margin-left: auto; }
.guitar-progression-speed {
  display: grid;
  grid-template-columns: auto auto;
  min-height: 40px;
  margin-right: 0;
  border: 1px solid var(--teal);
}
.guitar-progression-speed span { display: grid; place-items: center; background: var(--teal-dark); color: #fff; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.guitar-progression-speed select { min-width: 125px; border: 0; background: #f1dfc5; color: var(--teal-dark); padding: 6px 28px 6px 10px; font: inherit; font-weight: 900; cursor: pointer; }
.guitar-progression-speed select:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.guitar-practice-pattern-select { margin-right: 0; }
.guitar-practice-pattern-select select { min-width: 245px; }
.guitar-practice-method-select { margin-right: 0; }
.guitar-practice-method-select select { min-width: 180px; }
.guitar-progression-controls button {
  min-height: 40px;
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal-dark);
  padding: 7px 13px;
  font-weight: 900;
  cursor: pointer;
}
.guitar-progression-controls [data-guitar-progression-play] { background: var(--teal-dark); color: #fff; }
.guitar-progression-controls .guitar-practice-loop.is-active { border-color: var(--copper); background: #e4efeb; color: var(--teal-dark); box-shadow: inset 0 -3px 0 var(--copper); }
.guitar-progression-controls .guitar-practice-loop.is-active:disabled { opacity: 1; cursor: default; }
.guitar-progression-controls button:hover,
.guitar-progression-controls button:focus-visible { border-color: var(--copper); }
.guitar-progression-controls button:disabled { opacity: .45; cursor: not-allowed; }
.guitar-barre-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  margin: -4px 0 18px;
  border: 1px solid #c7aa83;
  border-left: 4px solid var(--copper);
  background: #fffaf2;
  padding: 14px 18px;
}
.guitar-barre-guide span { display: block; color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-barre-guide strong { display: block; margin-top: 3px; color: var(--teal-dark); font-size: 16px; }
.guitar-barre-guide p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.guitar-stage-shell {
  border: 1px solid #31575a;
  background: #132f32;
  color: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}
.guitar-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 2px 4px 15px;
}
.guitar-stage-head span { color: #c6d8d7; font-size: 12px; font-weight: 800; }
.guitar-stage-head h2 { margin: 1px 0 0; color: #fff6e8; font-size: 24px; line-height: 1.3; }
.guitar-stage-controls { display: block; width: 100%; min-height: 42px; }
.guitar-compact-selects {
  display: grid;
  grid-template-columns: 250px 188px 176px;
  justify-content: start;
  align-items: start;
  gap: 8px;
  min-height: 42px;
}
.guitar-toolbar-select {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #668e91;
  background: #10282b;
  color: #c6d8d7;
}
.guitar-toolbar-select > span {
  padding: 0 10px;
  border-right: 1px solid #668e91;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
.guitar-toolbar-select select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: #f1dfc5;
  color: #173e42;
  padding: 7px 34px 7px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.guitar-toolbar-select select:focus-visible { outline: 2px solid #efd2a8; outline-offset: 2px; }
.guitar-toolbar-select select option { background: #fffaf2; color: #173e42; }
.guitar-stage-footer-actions { margin: 10px 4px 0; }
.guitar-scale-audio-actions { display: flex; justify-content: flex-end; gap: 8px; }
.guitar-scale-audio-actions button {
  min-height: 42px;
  border: 1px solid #79a9ad;
  background: #204e53;
  color: #fff;
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}
.guitar-scale-audio-actions button:hover,
.guitar-scale-audio-actions button:focus-visible { border-color: #efd2a8; background: #2f666c; }
.guitar-audio-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.guitar-audio-actions button {
  min-height: 44px;
  border: 1px solid #79a9ad;
  background: #204e53;
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
.guitar-audio-actions button:hover { border-color: #efd2a8; background: #2f666c; }
.guitar-audio-actions button:disabled { opacity: .42; cursor: not-allowed; }
.guitar-diagram { width: 100%; height: auto; display: block; }
.guitar-diagram-mobile { display: none; }
.guitar-diagram-desktop.is-full-range {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: #b8784e #0c2225;
  scrollbar-width: thin;
}
.guitar-diagram-desktop.is-full-range .guitar-diagram { min-width: 1500px; }
.guitar-stage-bg { fill: #10282b; }
.guitar-headstock { stroke: #d2945c; stroke-width: 3; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .38)); }
.guitar-body-shape { stroke: #e0c7a6; stroke-width: 5; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .38)); }
.guitar-tuners { fill: #d9c4a3; stroke: #6c5136; stroke-width: 2; }
.guitar-body-highlight { fill: none; stroke: #f6dfbd; stroke-width: 2; opacity: .72; }
.guitar-wood-grain { fill: none; stroke: #87512d; stroke-width: 1.25; opacity: .24; }
.guitar-rosette { fill: none; }
.guitar-rosette.is-outer { stroke: #3d2620; stroke-width: 12; }
.guitar-rosette.is-inner { stroke: #e0bb7b; stroke-width: 5; stroke-dasharray: 4 3; }
.guitar-soundhole { fill: #081617; stroke: #4b2d21; stroke-width: 3; filter: inset 0 0 12px #000; }
.guitar-pickguard { fill: #321e19; stroke: #70432f; stroke-width: 2; opacity: .92; }
.guitar-bridge { fill: #1b1715; stroke: #684633; stroke-width: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.guitar-bridge-saddle { stroke: #eadbc6; stroke-width: 4; }
.guitar-bridge-pins { fill: #e8d9c5; stroke: #604735; stroke-width: 1; }
.guitar-fretboard { stroke: #8e715c; stroke-width: 3; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .28)); }
.guitar-fret { stroke: #c9b9a7; stroke-width: 3; }
.guitar-fret.is-nut { stroke: #f4e8d7; stroke-width: 8; }
.guitar-inlay { fill: #d9cdbb; opacity: .75; }
.guitar-fret-label,
.guitar-string-label,
.guitar-orientation { fill: #c6d8d7; font-family: inherit; font-size: 14px; font-weight: 800; }
.guitar-string-row { cursor: pointer; outline: none; }
.guitar-string-hit { stroke: transparent; stroke-width: 24; }
.guitar-string-visual {
  stroke: #eee6d8;
  stroke-width: var(--string-width);
  filter: drop-shadow(0 1px 1px #000);
  transform-box: fill-box;
  transform-origin: center;
}
.guitar-string-row:hover .guitar-string-visual,
.guitar-string-row:focus .guitar-string-visual { stroke: #fff; filter: drop-shadow(0 0 5px #f3c889); }
.guitar-string-visual.is-plucked { animation: guitarStringPluck .38s ease-out; }
@keyframes guitarStringPluck {
  0%, 100% { transform: translate(0, 0); }
  18% { transform: translate(0, -3px); }
  38% { transform: translate(0, 2px); }
  58% { transform: translate(0, -1.5px); }
  78% { transform: translate(0, 1px); }
}
.guitar-note-marker,
.guitar-muted-marker,
.guitar-barre-marker,
.guitar-marker-x,
.guitar-capo { pointer-events: none; }
.guitar-barre-marker rect {
  fill: #a95428;
  stroke: #fff3df;
  stroke-width: 3;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .58));
}
.guitar-barre-marker circle { fill: #74351f; stroke: #fff3df; stroke-width: 2; }
.guitar-barre-marker text { fill: #fff; font-family: inherit; font-size: 18px; font-weight: 900; }
.guitar-barre-marker .guitar-barre-focus circle { fill: #fff3df; stroke: #74351f; stroke-width: 2; }
.guitar-barre-marker .guitar-barre-note {
  fill: #fff6e8;
  font-size: 13px;
  paint-order: stroke;
  stroke: #10282b;
  stroke-width: 4px;
}
.guitar-note-marker circle { fill: var(--copper); stroke: #fff3df; stroke-width: 3; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.guitar-note-marker > text:not(.guitar-marker-note) { fill: #fff; font-family: inherit; font-size: 18px; font-weight: 900; }
.guitar-note-marker.is-open circle { fill: #2f6b51; }
.guitar-note-marker.is-open > text:not(.guitar-marker-note) { font-size: 15px; }
.guitar-note-marker.is-tone-view > text:not(.guitar-marker-note) { font-size: 13px; }
.guitar-note-marker.is-tone-0 circle { fill: #b56432; }
.guitar-note-marker.is-tone-1 circle { fill: #3f6d78; }
.guitar-note-marker.is-tone-2 circle { fill: #55745d; }
.guitar-note-marker.is-tone-3 circle { fill: #72586e; }
.guitar-explore-cell {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  cursor: pointer;
}
.guitar-explore-cell:hover { fill: rgba(239, 210, 168, .14); stroke: rgba(239, 210, 168, .5); }
.guitar-explore-cell:focus { fill: rgba(239, 210, 168, .18); stroke: #efd2a8; outline: none; }
.guitar-explore-marker { pointer-events: none; }
.guitar-explore-marker circle { fill: #b56432; stroke: #fff3df; stroke-width: 4; filter: drop-shadow(0 0 8px rgba(239, 210, 168, .7)); }
.guitar-explore-marker.is-match circle { fill: #2f6b51; stroke: #dceee5; filter: drop-shadow(0 0 7px rgba(92, 169, 132, .72)); }
.guitar-explore-marker.is-selected circle { fill: #b56432; }
.guitar-explore-marker text { fill: #fff; font-family: inherit; font-size: 14px; font-weight: 900; }
.guitar-tone-map-marker { cursor: pointer; outline: none; }
.guitar-tone-map-marker circle { stroke: #fff3df; stroke-width: 3; filter: drop-shadow(0 0 7px rgba(239, 210, 168, .58)); transition: filter .2s ease, stroke-width .2s ease; }
.guitar-tone-map-marker.is-tone-0 circle { fill: #b56432; }
.guitar-tone-map-marker.is-tone-1 circle { fill: #3f6d78; }
.guitar-tone-map-marker.is-tone-2 circle { fill: #55745d; }
.guitar-tone-map-marker.is-tone-3 circle { fill: #72586e; }
.guitar-tone-map-marker.is-voicing-note .guitar-tone-map-voicing-halo {
  fill: none !important;
  stroke: #f3bd74;
  stroke-width: 5;
  filter: drop-shadow(0 0 9px rgba(243, 189, 116, .92));
  pointer-events: none;
}
.guitar-tone-map-marker:hover circle,
.guitar-tone-map-marker:focus circle { stroke-width: 5; filter: drop-shadow(0 0 11px rgba(255, 243, 223, .92)); }
.guitar-tone-map-marker.is-voicing-note:hover .guitar-tone-map-voicing-halo,
.guitar-tone-map-marker.is-voicing-note:focus .guitar-tone-map-voicing-halo { stroke-width: 6; }
.guitar-tone-map-marker text { pointer-events: none; fill: #fff; font-family: inherit; font-size: 13px; font-weight: 900; }
.guitar-diagram.is-full-fretboard .guitar-tone-map-marker text { font-size: 10px; }
.guitar-interval-marker { cursor: pointer; outline: none; }
.guitar-interval-marker circle { stroke: #fff3df; stroke-width: 4; transition: filter .2s ease, stroke-width .2s ease; }
.guitar-interval-marker.is-origin circle { fill: #b56432; filter: drop-shadow(0 0 9px rgba(239, 210, 168, .75)); }
.guitar-interval-marker.is-target circle { fill: #3f6d78; filter: drop-shadow(0 0 9px rgba(114, 186, 204, .78)); }
.guitar-interval-marker:hover circle,
.guitar-interval-marker:focus circle { stroke-width: 6; filter: drop-shadow(0 0 13px rgba(255, 243, 223, .95)); }
.guitar-interval-marker text { pointer-events: none; fill: #fff; font-family: inherit; font-size: 13px; font-weight: 900; }
.guitar-diagram.is-full-fretboard .guitar-interval-marker text { font-size: 10px; }
.guitar-scale-marker { cursor: pointer; outline: none; }
.guitar-scale-marker circle { stroke: #fff3df; stroke-width: 2.5; transition: filter .2s ease, stroke-width .2s ease; }
.guitar-scale-marker.is-root circle { fill: #a95428; filter: drop-shadow(0 0 5px rgba(239, 210, 168, .62)); }
.guitar-scale-marker.is-scale-note circle { fill: #21565b; filter: drop-shadow(0 0 5px rgba(91, 164, 170, .58)); }
.guitar-scale-marker:hover circle,
.guitar-scale-marker:focus circle { stroke-width: 5; filter: drop-shadow(0 0 13px rgba(255, 243, 223, .95)); }
.guitar-scale-marker text { pointer-events: none; fill: #fff; font-family: inherit; font-weight: 900; paint-order: stroke; stroke: #10282b; stroke-width: 1.2px; }
.guitar-scale-note-name { font-size: 13.5px; }
.guitar-scale-degree { font-size: 10.5px; }
.guitar-diagram.is-full-fretboard .guitar-scale-note-name { font-size: 9.2px; }
.guitar-diagram.is-full-fretboard .guitar-scale-degree { font-size: 8px; }
.guitar-marker-note { fill: #fff6e8; font-family: inherit; font-size: 13px; font-weight: 900; paint-order: stroke; stroke: #10282b; stroke-width: 4px; }
.guitar-muted-marker circle { fill: #913f35; stroke: #fff3df; stroke-width: 4; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .58)); }
.guitar-marker-x { fill: #fff; font-family: inherit; font-size: 28px; font-weight: 900; paint-order: stroke; stroke: #5f211d; stroke-width: 2px; }
.guitar-capo rect { fill: #ba6c3e; stroke: #ffe0bb; stroke-width: 2; filter: drop-shadow(0 3px 4px #000); opacity: .9; }
.guitar-capo text { fill: #ffe3bf; font-family: inherit; font-size: 14px; font-weight: 900; paint-order: stroke; stroke: #10282b; stroke-width: 4px; }
.guitar-audio-status { min-height: 24px; margin: 10px 4px 0; color: #d2e4e2; font-size: 13px; }

.guitar-string-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}
.guitar-string-section h2 { margin: 0; font-size: 20px; }
.guitar-string-section p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.guitar-string-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.guitar-string-button {
  min-width: 0;
  min-height: 62px;
  border: 1px solid var(--line);
  background: #f7f0e5;
  color: var(--ink);
  cursor: pointer;
}
.guitar-string-button:hover:not(:disabled) { border-color: var(--teal); background: #eef4f1; }
.guitar-string-button:disabled { color: #8e8480; background: #ece7df; cursor: not-allowed; }
.guitar-string-button strong,
.guitar-string-button span { display: block; }
.guitar-string-button strong { font-size: 13px; }
.guitar-string-button span { margin-top: 2px; color: var(--teal-dark); font-size: 17px; font-weight: 900; }
.guitar-explore-result > div:last-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-width: 0; }
.guitar-explore-current { display: flex; align-items: center; gap: 16px; min-width: 0; }
.guitar-explore-result > div:last-child strong { color: var(--copper); font-size: 38px; line-height: 1; }
.guitar-explore-result > div:last-child span { color: var(--teal-dark); font-size: 16px; font-weight: 900; }
.guitar-scale-summary > div:last-child { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.guitar-scale-summary > div:last-child strong { color: var(--copper); font-size: 18px; }
.guitar-scale-summary > div:last-child span { color: var(--teal-dark); font-size: 15px; font-weight: 800; }
.guitar-match-toggle {
  min-height: 44px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 9px 18px;
  font-weight: 900;
  cursor: pointer;
}
.guitar-match-toggle:hover,
.guitar-match-toggle:focus-visible { border-color: var(--copper); background: var(--teal-dark); }
.guitar-match-toggle:disabled { opacity: .45; cursor: not-allowed; }
.guitar-string-button:disabled span { color: #8e8480; }
.guitar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: #4f595a;
  font-size: 14px;
}
.guitar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.guitar-legend b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
}
.guitar-legend b.is-open { background: var(--success); }
.guitar-legend b.is-muted { background: var(--danger); }
.guitar-legend b.is-tone-0,
.guitar-legend b.is-tone-1,
.guitar-legend b.is-tone-2,
.guitar-legend b.is-tone-3 { width: 38px; border-radius: 16px; font-size: 12px; }
.guitar-legend b.is-tone-0 { background: #b56432; }
.guitar-legend b.is-tone-1 { background: #3f6d78; }
.guitar-legend b.is-tone-2 { background: #55745d; }
.guitar-legend b.is-tone-3 { background: #72586e; }
.guitar-legend b.is-voicing {
  border: 4px solid #f3bd74;
  background: var(--teal-dark);
  box-shadow: 0 0 0 2px var(--teal-dark), 0 0 0 4px #f3bd74;
  color: #fff;
}
.guitar-legend b.is-explore { width: 38px; border-radius: 16px; background: #b56432; font-size: 12px; }
.guitar-legend b.is-match { width: 38px; border-radius: 16px; background: #2f6b51; font-size: 12px; }
.guitar-legend b.is-interval-origin,
.guitar-legend b.is-interval-target { width: 38px; border-radius: 16px; font-size: 12px; }
.guitar-legend b.is-interval-origin { background: #b56432; }
.guitar-legend b.is-interval-target { background: #3f6d78; }
.guitar-legend b.is-scale-root,
.guitar-legend b.is-scale-note { width: 42px; border-radius: 16px; font-size: 11px; }
.guitar-legend b.is-scale-root { background: #b56432; }
.guitar-legend b.is-scale-note { background: #2f6267; }
.guitar-capo-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.guitar-troubleshooting {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  background: #fffaf2;
}
.guitar-troubleshooting summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
}
.guitar-troubleshooting summary::-webkit-details-marker { display: none; }
.guitar-troubleshooting summary span { color: var(--copper); font-size: 13px; font-weight: 900; }
.guitar-troubleshooting summary strong { color: var(--teal-dark); font-size: 16px; }
.guitar-troubleshooting summary::after {
  content: '＋';
  margin-left: auto;
  color: var(--copper);
  font-size: 18px;
  font-weight: 900;
}
.guitar-troubleshooting[open] summary { border-bottom: 1px solid var(--line); }
.guitar-troubleshooting[open] summary::after { content: '−'; }
.guitar-troubleshooting-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guitar-troubleshooting-grid > div { min-width: 0; padding: 15px 16px 17px; }
.guitar-troubleshooting-grid > div + div { border-left: 1px solid var(--line); }
.guitar-troubleshooting-grid span { display: block; color: var(--copper); font-size: 12px; font-weight: 900; }
.guitar-troubleshooting-grid strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; line-height: 1.65; }
.guitar-troubleshooting-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guitar-pitch-details { margin-top: 10px; border-left: 3px solid var(--copper); background: rgba(255, 255, 255, .48); padding: 10px 13px; color: var(--muted); font-size: 13px; }
.guitar-pitch-details summary { width: fit-content; color: var(--teal-dark); font-weight: 900; cursor: pointer; }
.guitar-pitch-details p { margin: 8px 0 0; line-height: 1.7; }

.simple-list-section { margin-top: 38px; }
.simple-list-section > h2,
.related-section > h2 { margin: 0 0 15px; font-size: 25px; }
.question-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.question-list.single { grid-template-columns: 1fr; }
.question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 15px;
}
.question-row:hover { border-color: var(--teal); text-decoration: none; }
.question-title { font-weight: 700; line-height: 1.5; }
.question-state {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}
.next-strip {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 5px solid var(--copper);
  background: #fff8ed;
}
.next-strip strong { flex: 0 0 auto; color: var(--copper); }

.target-note {
  margin: 28px 0 34px;
  padding: 20px 22px;
  background: #fff8ed;
  border-left: 5px solid var(--copper);
}
.target-note strong { color: var(--copper); }
.target-note p { margin: 5px 0 0; }
.path-stages { display: grid; gap: 16px; }
.path-stage {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stage-number {
  color: var(--teal);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  border-right: 1px solid var(--line);
}
.stage-window { color: var(--copper); font-size: 12px; font-weight: 900; }
.path-stage h2 { margin: 5px 0 8px; font-size: 28px; line-height: 1.25; }
.stage-goal { margin: 0 0 20px; color: #4f5859; font-size: 17px; }
.stage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stage-columns > div { background: #faf7f1; border: 1px solid var(--soft-line); padding: 15px 17px; }
.stage-columns h3 { margin: 0 0 8px; font-size: 15px; color: var(--copper); }
.stage-columns ul { margin: 0; padding-left: 1.2em; }
.stage-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stage-links strong { font-size: 13px; }
.stage-links a { border: 1px solid var(--line); background: #fbf8f3; padding: 5px 8px; font-size: 13px; }
.stage-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.completion-note {
  margin-top: 28px;
  padding: 26px;
  background: var(--teal-dark);
  color: #fff;
}
.completion-note h2 { margin: 0 0 8px; font-size: 26px; }
.completion-note p { margin: 0; color: #d8e7e8; }

.answer-page { max-width: 900px; }
.query-label {
  margin: 18px 0;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.query-label span { display: block; color: var(--muted); font-size: 12px; }
.query-label strong { display: block; margin-top: 3px; font-size: 17px; }
.knowledge-answer {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
}
.answer-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}
.answer-source::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65a47b;
}
.knowledge-answer h2 { margin: 12px 0 8px; font-size: 24px; }
.core-answer { margin: 0; font-size: 18px; line-height: 1.8; }
.answer-group { margin-top: 26px; }
.answer-group h3 { margin: 0 0 8px; color: var(--copper); font-size: 17px; }
.answer-group ul { margin: 0; padding-left: 1.25em; }
.answer-group li { margin: 6px 0; }
.inline-link { display: inline-block; margin-top: 24px; font-weight: 900; }
.related-section { margin-top: 28px; }
.empty-state {
  margin: 20px 0;
  padding: 24px;
  background: var(--surface);
  border-left: 5px solid var(--danger);
}
.empty-state h2 { margin: 0 0 8px; font-size: 22px; }
.empty-state p { margin: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.content-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.content-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.content-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--copper); font-size: 11px; font-weight: 900; }
.content-card h3 { margin: 8px 0 9px; font-size: 20px; line-height: 1.38; }
.content-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.card-link { margin-top: auto; font-weight: 900; }
.access-badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 1px 5px;
  color: var(--muted);
  font-size: 10px;
}
.access-badge.available { border-color: #9fc1aa; background: #eef7f0; color: var(--success); }
.access-badge.pending { background: #f4efe7; }

.article-shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 38px 20px 84px;
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 260px;
  gap: 48px;
  justify-content: center;
}
.article-main { min-width: 0; }
.article-header { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 10px 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; letter-spacing: -.03em; }
.article-subtitle { margin: 0; color: var(--muted); font-size: 19px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--copper); font-size: 12px; font-weight: 800; }
.key-takeaway {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--copper);
  background: #fff8ed;
}
.key-takeaway strong { color: var(--copper); font-size: 13px; }
.key-takeaway p { margin: 5px 0 0; }
.article-body { font-size: 17px; }
.article-body h2 { margin: 46px 0 14px; font-size: 28px; line-height: 1.35; scroll-margin-top: 90px; }
.article-body h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.45; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol, .article-list { margin: 0 0 22px; padding-left: 1.35em; }
.article-body li { margin: 6px 0; }
.article-figure { margin: 28px 0; background: var(--surface); border: 1px solid var(--line); padding: 10px; }
.article-figure button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.article-figure img { display: block; width: 100%; min-height: 80px; object-fit: contain; }
.article-figure figcaption { padding: 8px 5px 1px; color: var(--muted); font-size: 13px; }
.article-aside { position: sticky; top: 90px; align-self: start; }
.aside-card { margin-bottom: 13px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.aside-card h3 { margin: 0 0 10px; font-size: 15px; }
.aside-card a { display: block; padding: 5px 0; font-size: 13px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.filter-bar input, .filter-bar select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 11px;
}
.filter-bar input { flex: 1; min-width: 250px; }
.library-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin: 22px 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.library-summary strong { color: var(--teal-dark); font-size: 18px; }
.library-summary span { color: var(--muted); font-size: 13px; }
.library-unlock-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  border-left: 4px solid var(--copper);
  background: #fff7ed;
  padding: 16px 18px;
}
.library-unlock-note div { display: grid; gap: 2px; }
.library-unlock-note strong { color: var(--teal-dark); }
.library-unlock-note span { color: var(--muted); font-size: 14px; }
.library-unlock-note .button { flex: 0 0 auto; }

.unlock-page { max-width: 720px; }
.unlock-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}
.unlock-card h1 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
}
.unlock-card > p { color: var(--muted); }
.unlock-card.is-unlocked { border-top: 4px solid var(--success); }
.unlock-form { display: grid; gap: 10px; margin-top: 26px; }
.unlock-form label { font-weight: 900; }
.unlock-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  text-transform: uppercase;
}
.unlock-form input:focus {
  outline: 3px solid rgba(167, 96, 52, .2);
  border-color: var(--copper);
}
.unlock-form button:disabled { opacity: .6; cursor: wait; }
.unlock-status {
  min-height: 1.8em;
  margin: 12px 0 0;
  color: var(--success);
  font-weight: 800;
}
.unlock-status.is-error { color: var(--danger); }
.unlock-privacy {
  margin-top: 22px !important;
  border-top: 1px solid var(--soft-line);
  padding-top: 14px;
  font-size: 13px;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.material-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}
.material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: #f8f4ed;
}
.material-format { color: var(--copper); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.material-card-body { flex: 1; padding: 17px 17px 8px; }
.material-card-body h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.42; }
.material-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.material-card-actions { padding: 15px 17px 17px; }
.material-card-actions .button { width: 100%; }

.game-level-page { max-width: 1120px; }
.game-level-header { max-width: 820px; }
.game-level-header .page-intro { margin-bottom: 0; }
.game-level-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 18px;
  border-left: 4px solid var(--teal);
  background: #e9f1ed;
  padding: 15px 18px;
}
.game-level-note strong { flex: 0 0 auto; color: var(--teal-dark); }
.game-level-note span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.game-level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.game-level-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(43, 48, 43, .06);
}
.game-level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.game-level-number {
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.game-level-count {
  border: 1px solid #bdd2c8;
  background: #edf5f1;
  color: var(--teal-dark);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.game-level-card h2 { margin: 0 0 7px; font-size: 25px; line-height: 1.3; }
.game-level-card > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.game-level-card .game-level-audience { color: var(--ink); font-weight: 800; }
.game-level-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 18px;
  padding-top: 2px;
}
.game-level-topics span {
  border-radius: 999px;
  background: #f1ebe1;
  color: #665c50;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}
.game-level-card .button { align-self: flex-start; min-width: 150px; }

.game-page { max-width: 1120px; }
.game-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 24px;
}
.game-header .page-intro { margin-bottom: 0; }
.game-rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--copper);
  background: var(--surface);
  padding: 16px 18px;
}
.game-rule strong { font-size: 14px; }
.game-rule span { color: var(--muted); font-size: 13px; }
.game-map {
  margin: 24px 0 18px;
  border: 1px solid var(--line);
  background: #e8e0d4;
  padding: 13px 16px 10px;
}
.game-trail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 9px;
}
.game-trail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  height: 4px;
  transform: translateY(-50%);
  background: #c9bba9;
}
.game-step {
  position: relative;
  z-index: 1;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #b8aa98;
  background: #f5efe5;
  color: #7a7167;
  font-size: 12px;
  font-weight: 900;
}
.game-step.is-safe {
  border-color: var(--success);
  background: #dbeadf;
  color: var(--success);
}
.game-step.is-current {
  border-color: var(--copper);
  background: #fff8ed;
  color: var(--copper);
  box-shadow: 0 0 0 4px rgba(167, 96, 52, .12);
}
.game-map-copy {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.game-map-copy strong { color: var(--teal-dark); font-size: 18px; }
.game-question-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.game-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
}
.game-question-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: 16px;
  margin: 12px 0 18px;
}
.game-question-card h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.35;
}
.game-character-picker {
  position: relative;
  z-index: 16;
  align-self: end;
  justify-self: end;
}
.game-character-current {
  position: relative;
  width: 68px;
  height: 72px;
  display: block;
  overflow: hidden;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: linear-gradient(180deg, #d8e8e3, #355256);
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(24, 56, 59, .18);
}
.game-character-current:hover:not(:disabled), .game-character-current:focus-visible {
  outline: 2px solid rgba(51, 111, 113, .18);
  outline-offset: 2px;
}
.game-character-current:disabled { cursor: default; opacity: .8; }
.game-character-current img,
.game-character-choice img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.24));
}
.game-character-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  display: grid;
  grid-template-columns: repeat(5, 56px);
  gap: 6px;
  border: 1px solid #cdbda7;
  border-radius: 10px;
  background: rgba(255, 250, 242, .98);
  padding: 6px;
  box-shadow: 0 12px 28px rgba(31, 42, 42, .2);
}
.game-character-menu[hidden] { display: none; }
.game-character-choice {
  width: 56px;
  height: 58px;
  display: block;
  overflow: hidden;
  border: 1px solid #cbbca7;
  border-radius: 7px;
  background: linear-gradient(180deg, #e4efeb, #4a6568);
  padding: 2px;
  cursor: pointer;
}
.game-character-choice:hover:not(:disabled), .game-character-choice:focus-visible {
  border-color: var(--teal);
  outline: 2px solid rgba(51, 111, 113, .2);
  outline-offset: 1px;
}
.game-character-choice.is-selected { display: none; }
.game-character-choice:disabled { cursor: default; }
.game-world {
  --lane-shift: 0px;
  --lane-mid: 0px;
  --lane-rise: -292px;
  --advance-y: 260px;
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #567278;
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), transparent 25%),
    linear-gradient(180deg, #b9d7d5 0%, #dce6d7 34%, #d9b779 34.3%, #385154 48%, #17282c 72%, #10191c 100%);
  isolation: isolate;
}
.game-sound-toggle {
  position: absolute;
  z-index: 12;
  top: 12px;
  right: 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(11, 34, 37, .8);
  color: #fff;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(5, 16, 18, .22);
  backdrop-filter: blur(5px);
}
.game-sound-toggle span { color: #f1ca8e; font-size: 18px; line-height: 1; }
.game-sound-toggle strong { font-size: 11px; letter-spacing: .04em; }
.game-sound-toggle:hover, .game-sound-toggle:focus-visible { background: rgba(18, 58, 62, .94); outline: 2px solid rgba(255,255,255,.72); outline-offset: 2px; }
.game-sound-toggle.is-muted { opacity: .7; }
.game-sound-toggle.is-muted span { color: #aebabb; }
.game-world::before,
.game-world::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.game-world::before {
  left: 50%;
  bottom: -14%;
  width: 72%;
  height: 67%;
  transform: translateX(-50%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #304346 0 3%, #5d6d68 3% 6%, #354a4d 6% 94%, #5d6d68 94% 97%, #304346 97%);
  opacity: .82;
  transition: transform .46s ease-in-out, opacity .46s ease-in-out;
}
.game-world::after {
  inset: 0;
  z-index: 8;
  border: 9px solid rgba(255,255,255,.11);
  box-shadow: inset 0 -80px 120px rgba(5, 16, 18, .25);
}
.game-world-sky { position: absolute; inset: 0 0 auto; height: 36%; overflow: hidden; }
.game-world-sky i {
  position: absolute;
  width: 180px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  filter: blur(8px);
}
.game-world-sky i:nth-child(1) { left: 7%; top: 29%; }
.game-world-sky i:nth-child(2) { right: 10%; top: 18%; width: 230px; opacity: .7; }
.game-world-sky i:nth-child(3) { left: 42%; top: 55%; width: 130px; opacity: .45; }
.game-world-depth {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 33%;
  width: 86%;
  height: 12%;
  transform: translateX(-50%);
  clip-path: polygon(8% 100%, 17% 0, 83% 0, 92% 100%);
  background: linear-gradient(180deg, #9a7b50, #3d4b47);
  box-shadow: 0 18px 28px rgba(10, 19, 20, .32);
  transition: transform .46s ease-in-out, opacity .46s ease-in-out;
}
.game-answer-grid {
  position: absolute;
  z-index: 4;
  top: 37%;
  left: 5%;
  right: 5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5.5%;
  perspective: 900px;
}
.game-world.is-entering .game-answer { animation: game-next-platforms-in .4s cubic-bezier(.18,.78,.24,1) both; }
.game-world.is-entering .game-answer:nth-child(2) { animation-delay: .035s; }
.game-world.is-entering .game-answer:nth-child(3) { animation-delay: .07s; }
.game-answer {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #c4ad88;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(145deg, #fffaf0, #d9c7a9 78%);
  color: var(--ink);
  padding: 18px 12px 26px;
  box-shadow: 0 19px 0 #7b6850, 0 25px 24px rgba(5, 14, 16, .42);
  cursor: pointer;
  transform: perspective(700px) rotateX(13deg);
  transform-origin: center bottom;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.game-answer:nth-child(1) { --advance-x: 120%; }
.game-answer:nth-child(2) { --advance-x: 0%; }
.game-answer:nth-child(3) { --advance-x: -120%; }
.game-answer:hover:not(:disabled), .game-answer:focus-visible {
  transform: perspective(700px) rotateX(9deg) translateY(-8px);
  filter: brightness(1.08);
  outline: 3px solid rgba(255, 247, 224, .72);
  outline-offset: 2px;
}
.game-answer:disabled { cursor: default; opacity: 1; }
.game-answer:not(.is-correct):not(.is-wrong):not(.is-selected):disabled { filter: saturate(.58) brightness(.8); }
.game-answer-letter {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  font-weight: 900;
  box-shadow: 0 4px 9px rgba(83, 51, 30, .23);
}
.game-answer > strong {
  max-width: 100%;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.game-platform-action {
  min-height: 17px;
  display: grid;
  place-items: center;
  color: #766952;
  font-size: 11px;
  font-weight: 800;
}
.game-platform-face {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -13px;
  height: 18px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #89745b, #554738);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}
.game-answer.is-selected { filter: brightness(1.18); box-shadow: 0 19px 0 #8d7457, 0 0 34px rgba(255, 229, 159, .6); }
.game-answer.is-correct {
  border-color: #8cb990;
  background: linear-gradient(145deg, #f6fff3, #a9cda9 78%);
  box-shadow: 0 19px 0 #4d7858, 0 0 38px rgba(160, 229, 170, .48);
  animation: game-platform-correct-pop .28s cubic-bezier(.2,.86,.24,1.3);
}
.game-answer.is-correct .game-answer-letter { background: var(--success); }
.game-answer.is-correct .game-platform-action { color: #2f6641; }
.game-answer.is-correct .game-platform-action { font-size: 0; }
.game-answer.is-correct .game-platform-action::after { content: "恭喜你 答对了"; font-size: 12px; }
.game-answer.is-wrong {
  border-color: #9a5549;
  background: #906052;
  animation: game-platform-fall .42s ease-in forwards;
}
.game-trap {
  position: absolute;
  z-index: 4;
  inset: -20px 10% auto;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  opacity: 0;
}
.game-trap i {
  width: 22px;
  height: 38px;
  display: block;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #7e3027, #df7f5b, #6b251f);
}
.game-answer.is-wrong .game-trap { opacity: 1; }
.game-correct-burst {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.game-correct-burst i {
  --burst-x: 0px;
  --burst-y: -54px;
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff2a6;
  box-shadow: 0 0 10px rgba(255, 237, 143, .9);
  opacity: 0;
}
.game-correct-burst i:nth-child(1) { --burst-x: -68px; --burst-y: -46px; }
.game-correct-burst i:nth-child(2) { --burst-x: -38px; --burst-y: -72px; }
.game-correct-burst i:nth-child(3) { --burst-x: 4px; --burst-y: -82px; }
.game-correct-burst i:nth-child(4) { --burst-x: 44px; --burst-y: -68px; }
.game-correct-burst i:nth-child(5) { --burst-x: 72px; --burst-y: -38px; }
.game-correct-burst i:nth-child(6) { --burst-x: 10px; --burst-y: -42px; }
.game-answer.is-correct .game-correct-burst i { animation: game-correct-burst .42s ease-out forwards; }
.game-answer.is-correct .game-correct-burst i:nth-child(2),
.game-answer.is-correct .game-correct-burst i:nth-child(5) { animation-delay: .035s; }
.game-speed-lines {
  position: absolute;
  z-index: 3;
  inset: 34% 0 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.game-speed-lines i {
  --speed-angle: 0deg;
  position: absolute;
  top: 5%;
  left: 50%;
  width: 3px;
  height: 230px;
  transform-origin: center top;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 235, 181, .72));
}
.game-speed-lines i:nth-child(1) { left: 18%; --speed-angle: -34deg; }
.game-speed-lines i:nth-child(2) { left: 37%; --speed-angle: -16deg; }
.game-speed-lines i:nth-child(3) { left: 63%; --speed-angle: 16deg; }
.game-speed-lines i:nth-child(4) { left: 82%; --speed-angle: 34deg; }
.game-world.is-advancing .game-speed-lines { opacity: 1; }
.game-world.is-advancing .game-speed-lines i { animation: game-speed-rush .46s ease-in forwards; }
.game-world.is-advancing .game-answer:not(.is-correct) {
  opacity: 0;
  transform: perspective(700px) rotateX(13deg) translateY(-70px) scale(.72);
  transition: transform .4s ease, opacity .28s ease;
}
.game-world.is-advancing::before { transform: translateX(-50%) scale(1.28); opacity: .42; }
.game-world.is-advancing .game-world-depth { transform: translateX(-50%) translateY(82px) scale(1.22); opacity: .2; }
.game-world.is-advancing .game-world-sky { animation: game-sky-forward .46s ease-in-out forwards; }
.game-world.is-advancing .game-start-pad { animation: game-old-platform-out .46s ease-in forwards; }
.game-world.is-advancing .game-answer.is-correct {
  z-index: 6;
  animation: game-platform-advance .46s ease-in-out forwards;
}
.game-world.has-trap { animation: game-world-shake .26s ease-out; }
.game-world.has-safe-landing { animation: game-success-flash .28s ease-out; }
@keyframes game-platform-fall {
  0% { transform: perspective(700px) rotateX(13deg); }
  35% { transform: perspective(700px) rotateX(24deg) translateY(7px); }
  100% { transform: perspective(700px) rotateX(48deg) translateY(86px); opacity: .24; }
}
@keyframes game-platform-advance {
  0% { transform: perspective(700px) rotateX(13deg); }
  100% { transform: translate(var(--advance-x), var(--advance-y)) perspective(700px) rotateX(13deg) scale(1.08); }
}
@keyframes game-platform-correct-pop {
  0% { transform: perspective(700px) rotateX(13deg) scale(1); }
  55% { transform: perspective(700px) rotateX(10deg) translateY(-8px) scale(1.045); }
  100% { transform: perspective(700px) rotateX(13deg) scale(1); }
}
@keyframes game-correct-burst {
  0% { transform: translate(0, 0) scale(.2); opacity: 0; }
  28% { opacity: 1; }
  100% { transform: translate(var(--burst-x), var(--burst-y)) scale(1); opacity: 0; }
}
@keyframes game-next-platforms-in {
  0% { transform: translateY(-96px) perspective(700px) rotateX(13deg) scale(.5); opacity: 0; }
  65% { opacity: .9; }
  86% { transform: translateY(4px) perspective(700px) rotateX(13deg) scale(1.025); opacity: 1; }
  100% { transform: perspective(700px) rotateX(13deg) scale(1); opacity: 1; }
}
@keyframes game-sky-forward {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.18); opacity: .64; }
}
@keyframes game-old-platform-out {
  0% { transform: translateX(-50%); opacity: 1; }
  100% { transform: translate(-50%, 145px) scale(1.2); opacity: 0; }
}
@keyframes game-speed-rush {
  0% { transform: rotate(var(--speed-angle)) scaleY(.08); opacity: 0; }
  32% { opacity: .75; }
  100% { transform: rotate(var(--speed-angle)) scaleY(1.5); opacity: 0; }
}
@keyframes game-world-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes game-success-flash {
  0% { box-shadow: inset 0 0 0 rgba(161, 230, 164, 0); }
  48% { box-shadow: inset 0 0 62px rgba(161, 230, 164, .32); }
  100% { box-shadow: inset 0 0 0 rgba(161, 230, 164, 0); }
}
.game-runner {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 17px;
  width: 164px;
  transform: translateX(-50%);
  transform-origin: center bottom;
  pointer-events: none;
  will-change: transform, opacity;
}
.game-runner img { position: relative; z-index: 2; width: 100%; height: auto; display: block; filter: drop-shadow(0 13px 10px rgba(0,0,0,.26)); }
.game-runner-shadow {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 16%;
  bottom: 1%;
  height: 13%;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  filter: blur(7px);
}
.game-runner.lane-a { --lane-shift: -295px; --lane-mid: -148px; }
.game-runner.lane-b { --lane-shift: 0px; --lane-mid: 0px; }
.game-runner.lane-c { --lane-shift: 295px; --lane-mid: 148px; }
.game-runner.is-jumping { animation: game-runner-jump .5s cubic-bezier(.28,.04,.24,1) forwards; }
.game-runner.is-landed { transform: translate(calc(-50% + var(--lane-shift)), var(--lane-rise)) scale(.5); }
.game-runner.is-falling { animation: game-runner-fall .42s ease-in forwards; }
.game-runner.is-advancing { animation: game-runner-advance .46s ease-in-out forwards; }
@keyframes game-runner-jump {
  0% { transform: translate(-50%, 0) scale(1); }
  12% { transform: translate(-50%, 6px) scale(1.06, .92); }
  52% { transform: translate(calc(-50% + var(--lane-mid)), -235px) scale(.72) rotate(-3deg); }
  88% { transform: translate(calc(-50% + var(--lane-shift)), calc(var(--lane-rise) - 7px)) scale(.48, .54); }
  100% { transform: translate(calc(-50% + var(--lane-shift)), var(--lane-rise)) scale(.5); }
}
@keyframes game-runner-fall {
  0% { transform: translate(calc(-50% + var(--lane-shift)), var(--lane-rise)) scale(.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--lane-shift)), calc(var(--lane-rise) + 190px)) scale(.38) rotate(18deg); opacity: 0; }
}
@keyframes game-runner-advance {
  0% { transform: translate(calc(-50% + var(--lane-shift)), var(--lane-rise)) scale(.5); }
  100% { transform: translate(-50%, 0) scale(1); }
}
.game-start-pad {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7px;
  width: 270px;
  height: 68px;
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #c69b64, #6d5338);
}
.game-start-pad.is-earned {
  width: 300px;
  height: 78px;
  background: linear-gradient(180deg, #7eaf86, #3d6949);
  box-shadow: 0 0 28px rgba(148, 210, 158, .3);
}
.game-feedback {
  min-height: 0;
  margin-top: 16px;
  border-left: 4px solid transparent;
  padding: 0;
}
.game-feedback:empty { display: none; }
.game-feedback.is-wrong, .game-feedback.is-correct { padding: 15px 17px; }
.game-feedback.is-wrong { border-color: var(--danger); background: #fff3f0; }
.game-feedback.is-correct { border-color: var(--success); background: #eef7f0; }
.game-feedback strong { display: block; margin-bottom: 4px; }
.game-feedback p { margin: 0; color: #4f595a; }
.game-next { margin-top: 18px; text-align: right; }
.game-next .button { min-width: 210px; }
.game-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.game-last-theory {
  margin-top: 10px;
  border-left: 4px solid var(--copper);
  background: #fff8ec;
  padding: 13px 16px;
  color: #4f595a;
}
.game-last-theory[hidden] { display: none; }
.game-last-theory strong { display: block; margin-bottom: 4px; color: var(--copper); }
.game-last-theory p { margin: 0; font-size: 13px; line-height: 1.7; }
.game-last-theory-button { margin-left: auto; }
.game-complete {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.game-complete .game-map { text-align: left; }
.game-complete-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 28px auto 14px;
  border: 3px solid var(--success);
  color: var(--success);
  background: #eef7f0;
  font-size: 42px;
  font-weight: 900;
}
.game-complete h1 { margin: 0 0 10px; font-size: clamp(36px, 6vw, 58px); line-height: 1.15; }
.game-complete > p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.game-complete-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }

/* 乐理闯关答题页 V1 */
.game-page-v1, .game-result-page { max-width: 1180px; }
.game-v1-statusbar {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(240px, 1.4fr) minmax(310px, auto);
  align-items: center;
  gap: 16px;
  border: 1px solid #c9baa5;
  background: #f7f1e8;
  padding: 13px 16px;
  box-shadow: 0 5px 18px rgba(43, 48, 43, .05);
}
.game-v1-statusbar > strong { text-align: center; font-size: 15px; }
.game-v1-statusbar > span { justify-self: end; color: var(--muted); font-size: 13px; font-weight: 800; }
.game-v1-back { font-size: 13px; font-weight: 900; }
.game-v1-status-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #536061;
  font-size: 12px;
  font-weight: 800;
}
.game-v1-status-right span + span { border-left: 1px solid #d4c7b6; padding-left: 12px; }
.game-v1-status-right b { color: var(--copper); font-size: 15px; }
.game-v1-sound {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #9bb3ae;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #f3d39c;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.game-v1-sound:hover, .game-v1-sound:focus-visible { outline: 3px solid rgba(51, 111, 113, .18); outline-offset: 2px; }
.game-v1-sound.is-muted { background: #6d7777; color: #e3e3df; }
.game-v1-progress {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 18px;
}
.game-v1-progress-step {
  min-height: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9baa7;
  background: #ded4c7;
  color: transparent;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.game-v1-progress-step.is-current {
  min-height: 19px;
  margin-top: -4px;
  border: 2px solid var(--copper);
  background: #fff6e8;
  color: var(--copper);
  box-shadow: 0 0 0 3px rgba(167, 96, 52, .12);
}
.game-v1-progress-step.is-correct { border-color: #4f7959; background: #dce9df; color: #2f6742; }
.game-v1-progress-step.is-wrong { border-color: #8b4b43; background: #f1dfdb; color: #7e3933; }
.game-question-card-v1 { overflow: hidden; padding: 0; }
.game-question-v1-head {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #d1c1ab;
  background: linear-gradient(180deg, #fffdf8, #f5eee4);
  padding: 17px 24px 18px;
  text-align: center;
}
.game-question-title {
  max-width: 1080px;
  margin: 0 auto;
  color: #142c31;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.game-world-v1 {
  min-height: 580px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(180deg, #33575b 0%, #244348 42%, #142d32 73%, #0e2024 100%);
}
.game-world-v1::before {
  bottom: 12%;
  width: 82%;
  height: 55%;
  background: linear-gradient(90deg, rgba(110,129,122,.3), rgba(35,65,68,.8) 12% 88%, rgba(110,129,122,.3));
  opacity: .62;
}
.game-world-v1::after { border-width: 7px; box-shadow: inset 0 -90px 130px rgba(4, 16, 19, .32); }
.game-world-v1 .game-world-depth { top: 22%; height: 14%; opacity: .55; }
.game-answer-grid-v1 {
  top: 13%;
  left: 5%;
  right: 5%;
  gap: 3.2%;
  perspective: none;
}
.game-answer-v1 {
  min-height: 185px;
  justify-content: flex-start;
  gap: 8px;
  border: 2px solid #c6b18e;
  border-radius: 9px;
  background: linear-gradient(180deg, #fffdf7, #e8dbc6);
  padding: 17px 12px 16px;
  box-shadow: 0 8px 0 #796650, 0 14px 22px rgba(2, 13, 16, .28);
  transform: none;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, opacity .24s ease, box-shadow .24s ease;
}
.game-answer-v1:hover:not(:disabled), .game-answer-v1:focus-visible {
  transform: translateY(-5px);
  border-color: #b16c3d;
  filter: none;
  outline: 3px solid rgba(244, 219, 177, .72);
  outline-offset: 3px;
}
.game-answer-v1:disabled { filter: none; }
.game-answer-v1.is-selected { border-color: var(--copper); box-shadow: 0 8px 0 #8d6547, 0 0 0 4px rgba(207, 143, 89, .18); animation: game-v1-answer-lock .26s ease; }
.game-answer-v1 .game-answer-letter { flex: 0 0 auto; width: 34px; height: 34px; }
.game-answer-v1 > strong {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #142c31;
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.game-answer-type { color: #665e54; font-size: 12px; font-weight: 800; line-height: 1.35; }
.game-answer-result {
  min-height: 24px;
  display: grid;
  place-items: center;
  margin-top: auto;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}
.game-answer-v1.is-correct {
  border-color: #3f7751;
  background: linear-gradient(180deg, #f7fff7, #cfe2d2);
  box-shadow: 0 8px 0 #416a4c, 0 0 0 4px rgba(69, 128, 82, .2);
  animation: game-v1-answer-reveal .32s ease;
}
.game-answer-v1.is-correct .game-answer-letter { background: #3e754f; }
.game-answer-v1.is-correct .game-answer-result { color: #2e6841; }
.game-answer-v1.is-wrong {
  border-color: #87443e;
  background: linear-gradient(180deg, #fff8f6, #e8cbc5);
  color: var(--ink);
  box-shadow: 0 8px 0 #6f3e38, 0 0 0 4px rgba(126, 57, 51, .16);
  animation: game-v1-answer-reveal .32s ease;
}
.game-answer-v1.is-wrong .game-answer-letter { background: #7e3933; }
.game-answer-v1.is-wrong .game-answer-result { color: #7e3933; }
.game-answer-v1.is-dimmed { opacity: .42; box-shadow: 0 6px 0 #6e6252; }
.game-v1-runway {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 205px;
  overflow: hidden;
  border-top: 1px solid rgba(215, 187, 137, .35);
  background: linear-gradient(180deg, rgba(16, 40, 44, .08), rgba(4, 17, 20, .78));
}
.game-v1-runway-line {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 39px;
  height: 3px;
  background: #78694f;
  box-shadow: 0 0 12px rgba(211, 172, 109, .24);
}
.game-v1-runway-tiles {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}
.game-v1-runway-tile {
  min-width: 0;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #8f7858;
  background: #594d3e;
  color: #d9c6a5;
  font-size: 10px;
  font-weight: 900;
  transform: perspective(140px) rotateX(28deg);
}
.game-v1-runway-tile.is-correct { border-color: #72a17c; background: #365d43; color: #eff8ef; }
.game-v1-runway-tile.is-wrong { border-color: #9b5c52; background: #663d38; color: #f7e7e2; }
.game-runner-v1 {
  --runner-edge: 65px;
  position: absolute;
  z-index: 8;
  left: clamp(var(--runner-edge), var(--runner-left), calc(100% - var(--runner-edge)));
  bottom: 55px;
  width: 130px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left .38s cubic-bezier(.2, .8, .3, 1);
}
.game-runner-v1 img { position: relative; z-index: 2; width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 8px rgba(0,0,0,.34)); }
.game-runner-v1.is-stepping { animation: game-v1-runner-step .38s cubic-bezier(.2,.8,.3,1); }
.game-character-picker-v1 { position: absolute; z-index: 20; top: 12px; right: 12px; }
.game-character-picker-v1 .game-character-current { width: 54px; height: 58px; background: linear-gradient(180deg, #d8e8e3, #244348); }
.game-feedback-v1 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #cfc0ad;
  border-left: 5px solid;
  padding: 17px 20px;
}
.game-feedback-v1.is-correct { border-left-color: #3e754f; background: #edf6ef; }
.game-feedback-v1.is-wrong { border-left-color: #7e3933; background: #f8ece8; }
.game-feedback-v1-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}
.game-feedback-v1.is-correct .game-feedback-v1-icon { color: #3e754f; }
.game-feedback-v1.is-wrong .game-feedback-v1-icon { color: #7e3933; }
.game-feedback-v1-body > strong { display: block; margin-bottom: 3px; font-size: 17px; }
.game-feedback-v1-body > p { margin: 0; color: #4f5a59; font-size: 13px; line-height: 1.6; }
.game-theory-note { margin-top: 9px; }
.game-theory-note summary { width: fit-content; color: var(--teal-dark); font-size: 13px; font-weight: 900; cursor: pointer; }
.game-theory-note summary:hover { text-decoration: underline; }
.game-theory-note p { margin: 8px 0 0; border-left: 3px solid var(--copper); background: rgba(255,255,255,.62); padding: 9px 11px; color: #4c5555; font-size: 13px; line-height: 1.65; }
.game-next-v1 { min-width: 170px; }
@keyframes game-v1-answer-lock { 50% { transform: translateY(-4px) scale(1.015); } }
@keyframes game-v1-answer-reveal { 0% { transform: scale(.98); } 55% { transform: scale(1.018); } 100% { transform: scale(1); } }
@keyframes game-v1-runner-step {
  0% { left: var(--runner-from-left); transform: translateX(-50%) translateY(0); }
  48% { transform: translateX(-50%) translateY(-24px); }
  100% { left: var(--runner-left); transform: translateX(-50%) translateY(0); }
}

/* 科技电梯闯关舞台 */
.game-elevator-progress {
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 10px;
  border: 1px solid #284b50;
  background: #142d32;
  padding: 7px 10px;
  color: #c4d7d4;
  min-width: 0;
}
.game-elevator-progress-track { min-width: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.game-elevator-progress-now, .game-elevator-progress-target { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.game-elevator-progress-target { text-align: right; }
.game-elevator-progress-now b, .game-elevator-progress-target b { display: block; color: #f0c279; font-size: 15px; letter-spacing: .02em; }
.game-elevator-progress .game-v1-progress-step {
  min-height: 22px;
  border-color: #395d61;
  border-radius: 2px;
  background: #1d3a3f;
  color: #789395;
}
.game-elevator-progress .game-v1-progress-step.is-correct {
  border-color: #b27b42;
  background: linear-gradient(180deg, #9c6938, #664529);
  color: #fff1d1;
  box-shadow: inset 0 0 8px rgba(255, 213, 141, .23);
}
.game-elevator-progress .game-v1-progress-step.is-current { min-height: 26px; margin: 0; color: #fff; box-shadow: 0 0 12px rgba(226, 165, 87, .62); }
.game-elevator-world {
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 24%, rgba(75, 160, 166, .2), transparent 33%),
    linear-gradient(180deg, #10282e 0%, #091b21 58%, #071319 100%);
}
.game-elevator-world::before {
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, rgba(3,12,16,.74), transparent 22% 78%, rgba(3,12,16,.74));
  opacity: 1;
  clip-path: none;
}
.game-elevator-world::after { border: 7px solid #496b6d; box-shadow: inset 0 0 80px rgba(0, 0, 0, .72); }
.game-elevator-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .26;
  background-image:
    linear-gradient(rgba(84, 151, 154, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 151, 154, .12) 1px, transparent 1px);
  background-size: 100% 52px, 52px 100%;
}
.game-elevator-depth-lights { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.game-elevator-depth-lights i { position: absolute; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, #5a9293, transparent); opacity: .46; }
.game-elevator-depth-lights i:nth-child(1) { top: 15%; }
.game-elevator-depth-lights i:nth-child(2) { top: 38%; }
.game-elevator-depth-lights i:nth-child(3) { top: 63%; }
.game-elevator-depth-lights i:nth-child(4) { top: 86%; }
.game-elevator-floor-scale {
  position: absolute;
  z-index: 7;
  top: 54px;
  bottom: 42px;
  left: 2.5%;
  width: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 2px solid #456669;
  color: #759193;
  font-size: 8px;
  letter-spacing: .08em;
}
.game-elevator-floor-scale span { position: relative; padding-left: 13px; }
.game-elevator-floor-scale span::before { content: ""; position: absolute; top: 50%; left: -1px; width: 9px; height: 1px; background: #8fb2b3; }
.game-elevator-floor-scale b { display: block; color: #c5d9d8; font-size: 12px; }
.game-elevator-shaft { position: absolute; z-index: 5; inset: 28px 8% 30px 10%; display: grid; place-items: center; }
.game-elevator-rail {
  position: absolute;
  top: -30px;
  bottom: -30px;
  width: 28px;
  border-inline: 2px solid #48676a;
  background: repeating-linear-gradient(180deg, #172e34 0 20px, #416064 21px 24px);
  box-shadow: 0 0 18px rgba(60, 119, 121, .24);
}
.game-elevator-rail.is-left { left: 0; }
.game-elevator-rail.is-right { right: 0; }
.game-elevator-cabin {
  position: relative;
  width: min(880px, calc(100% - 76px));
  min-height: 555px;
  display: grid;
  grid-template-rows: 68px minmax(230px, auto) minmax(190px, 1fr);
  overflow: hidden;
  border: 2px solid #719092;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #132d33, #1c3c41 18% 82%, #132d33);
  box-shadow: 0 0 0 7px #0b1d22, 0 0 0 9px #3c5b5e, 0 22px 42px rgba(0, 0, 0, .56), inset 0 0 45px rgba(7, 17, 20, .7);
}
.game-elevator-cabin::before, .game-elevator-cabin::after { content: ""; position: absolute; z-index: 1; top: 68px; bottom: 0; width: 1px; background: rgba(143, 183, 183, .18); }
.game-elevator-cabin::before { left: 50%; }
.game-elevator-cabin::after { left: 18%; }
.game-elevator-cabin-head {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #8a6943;
  background: linear-gradient(180deg, #243f43, #13292e);
  padding: 8px 18px;
  box-shadow: 0 7px 18px rgba(0,0,0,.36);
}
.game-elevator-brand, .game-elevator-target { color: #a8bfbd; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.game-elevator-target { text-align: right; color: #e4b56f; }
.game-elevator-display {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 15px 1fr;
  align-items: center;
  border: 1px solid #9b7242;
  border-radius: 3px;
  background: #071518;
  padding: 5px 11px;
  box-shadow: inset 0 0 15px rgba(0,0,0,.76), 0 0 11px rgba(218,151,75,.14);
}
.game-elevator-display span { grid-column: 1 / -1; color: #758d8d; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.game-elevator-display strong { color: #f1c577; font: 900 25px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-shadow: 0 0 11px rgba(241,197,119,.55); }
.game-elevator-display i { color: #71b39e; font-style: normal; font-size: 15px; }
.game-elevator-console { position: relative; z-index: 7; display: grid; align-items: center; padding: 23px 28px 18px; }
.game-elevator-console::before {
  content: "SELECT ANSWER · A / B / C";
  position: absolute;
  top: 7px;
  left: 31px;
  color: #779294;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.game-elevator-answer-grid { position: relative; inset: auto; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: none; }
.game-elevator-button {
  min-height: 178px;
  border: 1px solid #6f9293;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(37,74,78,.98), rgba(13,40,45,.98));
  padding: 16px 10px 13px;
  box-shadow: inset 0 0 0 3px rgba(5,18,22,.48), inset 0 0 24px rgba(73,143,145,.08), 0 8px 0 #07191d, 0 0 14px rgba(74,133,134,.12);
  color: #ecf5f1;
}
.game-elevator-button::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(117,161,161,.17); pointer-events: none; }
.game-elevator-button .game-answer-letter { border: 1px solid #d19a57; background: #102a2f; color: #f0bf76; box-shadow: 0 0 12px rgba(219,155,77,.28); }
.game-elevator-button > strong { color: #fff4dc; font-family: ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace; text-shadow: 0 0 12px rgba(255,221,170,.16); }
.game-elevator-button .game-answer-type { color: #a7c0bf; }
.game-elevator-button:hover:not(:disabled), .game-elevator-button:focus-visible { border-color: #e0a65e; background: linear-gradient(180deg, #315c5e, #173b40); box-shadow: inset 0 0 0 3px rgba(5,18,22,.48), 0 8px 0 #07191d, 0 0 22px rgba(224,166,94,.34); }
.game-elevator-button.is-correct { border-color: #62a97a; background: linear-gradient(180deg, #295f43, #143b2a); box-shadow: inset 0 0 0 3px #102a20, 0 8px 0 #092217, 0 0 22px rgba(88,174,116,.35); }
.game-elevator-button.is-wrong { border-color: #a65b52; background: linear-gradient(180deg, #663b39, #3c2324); box-shadow: inset 0 0 0 3px #30191b, 0 8px 0 #251213, 0 0 22px rgba(151,68,59,.34); }
.game-elevator-button.is-dimmed { opacity: .32; box-shadow: 0 8px 0 #07191d; }
.game-elevator-deck {
  position: relative;
  z-index: 6;
  overflow: hidden;
  border-top: 1px solid #527074;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(137,172,172,.14) 50%, transparent 50.2%),
    linear-gradient(180deg, #142d32, #0a1e24 72%);
}
.game-elevator-deck::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: 0; height: 48px; background: linear-gradient(180deg, #4d5149, #222c2e); clip-path: polygon(8% 0,92% 0,100% 100%,0 100%); border-top: 2px solid #ae8050; }
.game-elevator-passenger { position: absolute; z-index: 8; left: 50%; bottom: 24px; width: 125px; transform: translateX(-50%); pointer-events: none; }
.game-elevator-passenger img { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 8px rgba(0,0,0,.46)); }
.game-elevator-passenger .game-runner-shadow { left: 17%; right: 17%; bottom: 2px; height: 13px; }
.game-elevator-position { position: absolute; z-index: 8; right: 26px; bottom: 27px; min-width: 150px; border: 1px solid #54797b; background: rgba(5,20,24,.82); padding: 9px 12px; text-align: right; }
.game-elevator-position span, .game-elevator-position small { display: block; color: #91aaa9; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.game-elevator-position strong { display: block; color: #f0bd70; font: 900 25px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.game-elevator-position small { margin-top: 4px; color: #c4d2cf; letter-spacing: 0; }
.game-elevator-door-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(101,137,140,.16); }
.game-elevator-world.is-rising .game-elevator-cabin { animation: game-elevator-rise .46s cubic-bezier(.2,.78,.26,1); }
.game-elevator-world.is-falling .game-elevator-cabin { animation: game-elevator-fall .5s cubic-bezier(.35,.04,.34,1); }
.game-elevator-world.is-rising .game-elevator-grid { animation: game-elevator-grid-up .46s ease; }
.game-elevator-world.is-falling .game-elevator-grid { animation: game-elevator-grid-down .5s ease; }
.game-elevator-world.is-falling .game-elevator-display { border-color: #a65b52; box-shadow: inset 0 0 15px rgba(0,0,0,.76), 0 0 18px rgba(166,91,82,.45); }
@keyframes game-elevator-rise { 0% { transform: translateY(22px); } 52% { transform: translateY(-11px); } 100% { transform: translateY(0); } }
@keyframes game-elevator-fall { 0% { transform: translateY(-13px); } 42% { transform: translateY(24px); } 58% { transform: translate(2px, 20px); } 70% { transform: translate(-2px, 8px); } 100% { transform: translateY(0); } }
@keyframes game-elevator-grid-up { from { background-position: 0 0, 0 0; } to { background-position: 0 52px, 0 0; } }
@keyframes game-elevator-grid-down { from { background-position: 0 52px, 0 0; } to { background-position: 0 0, 0 0; } }

/* 环形科幻升降舱：人物站在中央圆形平台 */
.game-elevator-world {
  min-height: 700px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(62, 143, 174, .24), transparent 42%),
    linear-gradient(180deg, #173542 0%, #0b222d 45%, #06141c 100%);
}
.game-elevator-world::before { background: radial-gradient(ellipse at 50% 58%, transparent 0 44%, rgba(1, 10, 15, .58) 76%); }
.game-elevator-grid {
  opacity: .42;
  background-image:
    radial-gradient(ellipse at 50% 108%, transparent 0 18%, rgba(82, 166, 198, .2) 18.3% 18.7%, transparent 19% 29%, rgba(82, 166, 198, .14) 29.3% 29.7%, transparent 30%),
    repeating-radial-gradient(ellipse at 50% 112%, transparent 0 48px, rgba(91, 169, 194, .09) 49px 50px);
  background-size: 100% 100%, 100% 100%;
}
.game-elevator-depth-lights i { left: 3%; right: 3%; background: linear-gradient(90deg, transparent, rgba(124,203,226,.7), transparent); }
.game-elevator-chamber-shell { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.game-elevator-chamber-shell::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 26px;
  height: 370px;
  border: 36px solid rgba(77, 111, 123, .76);
  border-bottom-width: 18px;
  border-radius: 50% 50% 22% 22% / 26% 26% 10% 10%;
  background: linear-gradient(180deg, rgba(92, 126, 137, .38), rgba(15, 43, 53, .24));
  box-shadow: inset 0 0 50px rgba(120,196,216,.14), 0 22px 42px rgba(0,0,0,.34);
}
.game-elevator-ceiling { position: absolute; z-index: 4; left: 50%; top: -72px; width: 78%; height: 190px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #4b6c77 0 10%, #92b1b8 11% 20%, #425f6a 21% 40%, #172f39 41% 62%, transparent 63%); box-shadow: 0 28px 45px rgba(0,0,0,.4); }
.game-elevator-ceiling span { position: absolute; left: 50%; top: 55%; width: 165px; height: 70px; transform: translate(-50%,-50%); border: 8px solid #6f9aaa; border-radius: 50%; background: radial-gradient(ellipse, #9eeaff 0 8%, #277ba3 35%, #102f49 68%); box-shadow: 0 0 28px #43b5e5, inset 0 0 24px #86dcf6; }
.game-elevator-ceiling i { position: absolute; left: 50%; top: 58%; width: 5px; height: 160px; transform: translateX(-50%); background: linear-gradient(#a1e9ff, rgba(72,174,213,.14), transparent); filter: blur(2px); }
.game-elevator-windows { position: absolute; z-index: 5; top: 93px; left: 4%; right: 4%; height: 230px; display: flex; justify-content: center; gap: 1.5%; perspective: 800px; }
.game-elevator-windows i {
  position: relative;
  width: 12.4%;
  overflow: hidden;
  border: 5px solid #66828c;
  border-radius: 24px 24px 5px 5px;
  background:
    linear-gradient(145deg, transparent 28%, rgba(205,244,255,.72) 29% 31%, transparent 32% 68%, rgba(99,191,221,.48) 69% 71%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(152,224,244,.28) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #c4eff9, #4b9fbc 42%, #173c52 100%);
  box-shadow: inset 0 0 18px rgba(214,247,255,.76), 0 0 0 4px #183742, 0 0 18px rgba(81,174,205,.24);
  clip-path: polygon(17% 0,83% 0,100% 13%,94% 100%,6% 100%,0 13%);
}
.game-elevator-windows i::after { content: ""; position: absolute; inset: 13% 12%; border: 1px solid rgba(223,250,255,.62); background: repeating-linear-gradient(180deg, transparent 0 19px, rgba(211,247,255,.28) 20px 21px); }
.game-elevator-windows i:nth-child(1), .game-elevator-windows i:nth-child(7) { transform: scale(.82) rotateY(34deg); opacity: .68; }
.game-elevator-windows i:nth-child(2), .game-elevator-windows i:nth-child(6) { transform: scale(.92) rotateY(22deg); opacity: .84; }
.game-elevator-windows i:nth-child(3), .game-elevator-windows i:nth-child(4), .game-elevator-windows i:nth-child(5) { opacity: .16; }
.game-elevator-windows i:nth-child(1), .game-elevator-windows i:nth-child(2) { transform-origin: right center; }
.game-elevator-windows i:nth-child(6), .game-elevator-windows i:nth-child(7) { transform-origin: left center; }
.game-elevator-floor-scale { z-index: 12; top: 104px; bottom: 52px; left: 1.7%; border-left-color: rgba(122,190,207,.48); }
.game-elevator-shaft { z-index: 7; inset: 36px 4% 20px; }
.game-elevator-rail { display: none; }
.game-elevator-cabin {
  width: min(980px, 92%);
  min-height: 620px;
  grid-template-rows: 68px 255px minmax(270px, 1fr);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.game-elevator-cabin::before, .game-elevator-cabin::after { display: none; }
.game-elevator-cabin-head {
  width: min(760px, 88%);
  justify-self: center;
  border: 1px solid rgba(116,174,190,.72);
  border-bottom: 2px solid #6fb8d0;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(20,50,61,.96), rgba(5,25,34,.94));
  box-shadow: 0 0 28px rgba(59,151,183,.22), inset 0 0 20px rgba(64,137,158,.12);
}
.game-elevator-display { border-color: #55a8c4; box-shadow: inset 0 0 15px rgba(0,0,0,.76), 0 0 14px rgba(69,181,220,.28); }
.game-elevator-display strong { color: #95e8ff; text-shadow: 0 0 12px #3bb5e1; }
.game-elevator-target { color: #9de7fa; }
.game-elevator-console { align-items: end; padding: 50px 35px 16px; }
.game-elevator-console::before { top: 35px; left: 50%; transform: translateX(-50%); color: #8fc8d6; }
.game-elevator-answer-grid { width: min(72%, 760px); justify-self: center; gap: 14px; }
.game-elevator-button {
  min-height: 178px;
  border-color: rgba(99,186,211,.72);
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(145deg, transparent 24%, rgba(171,232,248,.16) 25% 27%, transparent 28%),
    repeating-linear-gradient(90deg, rgba(113,196,219,.08) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(27,91,109,.96), rgba(5,39,52,.97));
  box-shadow: inset 0 0 0 4px rgba(135,216,237,.1), inset 0 0 30px rgba(67,171,201,.17), 0 0 0 5px rgba(11,38,48,.9), 0 0 24px rgba(66,166,197,.28);
  backdrop-filter: blur(5px);
  clip-path: polygon(8% 0,92% 0,100% 12%,96% 100%,4% 100%,0 12%);
}
.game-elevator-button::before { inset: 9px 11px; border-color: rgba(152,230,249,.34); border-radius: 10px 10px 3px 3px; clip-path: polygon(6% 0,94% 0,100% 10%,96% 100%,4% 100%,0 10%); }
.game-elevator-button .game-answer-letter { border-color: #77d4ee; color: #c8f5ff; box-shadow: 0 0 16px rgba(75,195,230,.5); }
.game-elevator-button:hover:not(:disabled), .game-elevator-button:focus-visible { border-color: #a8eaff; background: linear-gradient(180deg, #287f96, #0c4659); box-shadow: inset 0 0 0 4px rgba(154,231,249,.16), 0 0 0 5px rgba(11,38,48,.9), 0 0 32px rgba(81,199,232,.58); }
.game-elevator-deck {
  overflow: visible;
  border-top: 0;
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  background:
    radial-gradient(ellipse at 50% 76%, rgba(48,112,134,.24), transparent 30%),
    repeating-radial-gradient(ellipse at 50% 78%, transparent 0 48px, rgba(101,166,182,.12) 49px 50px),
    linear-gradient(180deg, rgba(20,48,58,.82), rgba(4,17,24,.97));
  box-shadow: inset 0 24px 40px rgba(73,119,130,.16), 0 -14px 35px rgba(0,0,0,.28);
}
.game-elevator-deck::before { content: ""; position: absolute; left: -4%; right: -4%; top: -20px; height: 62px; border: 2px solid rgba(102,160,175,.36); border-bottom: 0; border-radius: 50%; background: linear-gradient(180deg, rgba(82,119,130,.42), transparent 70%); }
.game-elevator-deck::after { left: 8%; right: 8%; bottom: 7px; height: 72px; border: 0; border-radius: 50%; clip-path: none; background: radial-gradient(ellipse, rgba(25,63,77,.85), rgba(4,15,21,.98) 70%); box-shadow: inset 0 5px 16px rgba(100,174,196,.16); }
.game-elevator-lift-disc { position: absolute; z-index: 7; left: 50%; bottom: 20px; width: 280px; height: 92px; transform: translateX(-50%); border: 3px solid #76d9f3; border-radius: 50%; background: radial-gradient(ellipse, rgba(132,232,255,.32) 0 16%, rgba(34,142,180,.5) 17% 34%, rgba(7,45,64,.9) 58%, #071b25 72%); box-shadow: 0 0 22px rgba(83,203,238,.85), inset 0 0 27px rgba(113,224,251,.72); }
.game-elevator-lift-disc::before { content: ""; position: absolute; inset: 15px 27px; border: 2px solid rgba(169,240,255,.72); border-radius: 50%; box-shadow: 0 0 18px rgba(90,209,240,.7); }
.game-elevator-lift-disc i { position: absolute; inset: 30% 18%; border: 1px solid rgba(192,246,255,.58); border-radius: 50%; }
.game-elevator-lift-disc i:nth-child(2) { inset: 9% 35%; background: rgba(140,231,255,.14); }
.game-elevator-lift-disc i:nth-child(3) { inset: -55% 42% 30%; border: 0; border-radius: 0; background: linear-gradient(180deg, transparent, rgba(112,219,248,.22)); filter: blur(4px); }
.game-elevator-passenger { bottom: 52px; width: 126px; }
.game-elevator-passenger .game-runner-shadow { bottom: -4px; background: rgba(63,190,224,.4); filter: blur(5px); }
.game-elevator-position { right: 28px; bottom: 28px; border-color: rgba(101,180,201,.66); background: rgba(4,27,37,.82); }
.game-elevator-position strong { color: #a9edff; text-shadow: 0 0 9px rgba(73,192,225,.66); }
.game-elevator-door-line { display: none; }
.game-elevator-world.is-rising .game-elevator-lift-disc { animation: game-elevator-disc-rise .46s ease; }
.game-elevator-world.is-falling .game-elevator-lift-disc { animation: game-elevator-disc-fall .5s ease; border-color: #a95e57; box-shadow: 0 0 28px rgba(169,75,69,.78), inset 0 0 24px rgba(184,79,69,.55); }
@keyframes game-elevator-disc-rise { 0% { transform: translateX(-50%) scale(.92); filter: brightness(.8); } 55% { transform: translateX(-50%) scale(1.05); filter: brightness(1.5); } 100% { transform: translateX(-50%) scale(1); filter: brightness(1); } }
@keyframes game-elevator-disc-fall { 0% { transform: translateX(-50%) scale(1); } 42% { transform: translateX(-50%) scale(.88); } 70% { transform: translateX(-50%) scale(1.03); } 100% { transform: translateX(-50%) scale(1); } }

.game-result-card {
  max-width: 900px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.game-result-title-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 20px auto 10px;
  border: 3px solid #3e754f;
  color: #3e754f;
  background: #edf6ef;
  font-size: 34px;
  font-weight: 900;
}
.game-result-kicker { margin: 0; color: var(--copper); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.game-result-card h1 { margin: 5px 0 9px; font-size: clamp(38px, 6vw, 58px); }
.game-result-summary { max-width: 680px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.game-result-score { margin: 24px 0 17px; }
.game-result-score strong { display: block; color: var(--teal-dark); font-size: 70px; line-height: 1; }
.game-result-score small { color: #7b827e; font-size: 28px; }
.game-result-score span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.game-result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-result-metrics div { border: 1px solid #d7c9b8; background: #f8f3ec; padding: 14px 10px; }
.game-result-metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.game-result-metrics strong { display: block; margin-top: 4px; color: #203b3f; font-size: 19px; }
.game-result-knowledge { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; text-align: left; }
.game-result-knowledge section { display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-left: 4px solid #3e754f; background: #edf6ef; padding: 14px; }
.game-result-knowledge section > span { color: #3e754f; font-size: 22px; font-weight: 900; }
.game-result-knowledge section.needs-review { border-left-color: var(--copper); background: #fff6e9; }
.game-result-knowledge section.needs-review > span { color: var(--copper); }
.game-result-knowledge strong { display: block; font-size: 13px; }
.game-result-knowledge p { margin: 4px 0 0; color: #56605e; font-size: 13px; line-height: 1.55; }
.game-result-actions { flex-wrap: wrap; }
.game-result-actions .button { min-width: 190px; }
.game-result-actions button:disabled { opacity: .55; cursor: default; }
.game-wrong-list { max-width: 900px; margin: 18px auto 0; border: 1px solid var(--line); background: #f8f2e9; padding: 24px; }
.game-wrong-list[hidden] { display: none; }
.game-wrong-list-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.game-wrong-list-head h2 { margin: 4px 0 0; }
.game-wrong-list-head p { margin: 0; color: var(--muted); font-size: 12px; }
.game-wrong-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-wrong-card { border: 1px solid #d2b8ae; border-left: 4px solid #7e3933; background: #fffdf9; padding: 16px; }
.game-wrong-card > span { color: #7e3933; font-size: 11px; font-weight: 900; }
.game-wrong-card h3 { margin: 7px 0 10px; font-size: 17px; line-height: 1.45; }
.game-wrong-card > p { margin: 4px 0; color: #56605e; font-size: 13px; }

.song-tool {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  margin: 30px 0;
}
.song-controls, .song-result { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.song-controls h2 { margin: 0 0 12px; font-size: 20px; }
.song-controls > label { display: block; margin-top: 18px; font-size: 13px; font-weight: 800; }
.song-controls select { width: 100%; margin-top: 5px; padding: 9px; border: 1px solid var(--line); background: #fff; }
.song-controls .button { margin-top: 20px; width: 100%; }
.checkbox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: block; border: 1px solid var(--line); padding: 7px; text-align: center; cursor: pointer; }
.check-chip input:checked + span { border-color: var(--teal); background: #eaf2f2; color: var(--teal-dark); font-weight: 900; }
.progression { margin: 8px 0 20px; color: var(--teal); font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.3; }
.song-result h2 { margin: 20px 0 7px; font-size: 20px; }
.song-result p { margin: 0; }


.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 18, 18, .88);
}
.modal[hidden] { display: none; }
.modal-close {
  position: fixed;
  top: 15px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: #111;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.modal-content {
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  padding: 10px;
}
.modal-content img { display: block; max-width: 100%; max-height: 76vh; margin: auto; }
.modal-caption { padding: 10px 8px 3px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: center; padding: 8px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: #171d1d;
  color: #fff;
  padding: 10px 16px;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading-page { min-height: 60vh; display: grid; place-items: center; align-content: center; color: var(--muted); }
.loading-line { width: 120px; height: 3px; background: linear-gradient(90deg, var(--teal) 40%, var(--line) 40%); animation: load 1s infinite alternate; }
@keyframes load { to { background-position: 120px 0; } }

.site-footer { border-top: 1px solid var(--line); background: #ede5da; }
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.footer-copyright { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 13px; }
  .home-hero { min-height: auto; }
  .home-hero > p { white-space: normal; }
  .home-choices { grid-template-columns: 1fr; }
  .home-choice { min-height: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, var(--reading)); }
  .article-aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .guitar-troubleshooting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guitar-troubleshooting-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .guitar-troubleshooting-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .game-header { grid-template-columns: 1fr; }
  .game-rule { max-width: 520px; }
  .game-question-copy { grid-template-columns: minmax(0, 1fr) 68px; gap: 12px; }
  .game-runner.lane-a { --lane-shift: -220px; --lane-mid: -110px; }
  .game-runner.lane-c { --lane-shift: 220px; --lane-mid: 110px; }
  .game-v1-statusbar { grid-template-columns: 120px minmax(180px, 1fr) auto; gap: 10px; }
  .game-v1-status-right { gap: 8px; }
  .game-answer-grid-v1 { left: 3%; right: 3%; gap: 2.2%; }
  .game-runner-v1 { width: 112px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 62px; }
  body.is-game-route { padding-bottom: 0; }
  body.is-guitar-route { padding-bottom: 0; }
  .site-header { position: sticky; }
  .desktop-nav { display: none; }
  .header-inner { min-height: 60px; padding: 7px 14px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .page { padding: 28px 15px 62px; }
  .home-page { padding-top: 0; }
  .home-hero { min-height: auto; padding: 54px 0 38px; }
  .home-hero-image {
    left: 0;
    right: auto;
    top: 48%;
    bottom: auto;
    width: 100%;
    height: 52%;
    object-position: center 42%;
    opacity: .10;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 48%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 48%, #000 100%);
  }
  .home-hero > p { font-size: 17px; }
  .home-unlock-entry { margin-top: 16px; }
  .button.large { width: 100%; }
  .search-panel { padding: 21px 16px; margin: 0 -15px; }
  .search-panel h2 { font-size: 24px; }
  .search-form { flex-direction: column; }
  .search-form button { min-height: 48px; }
  .example-links { gap: 6px; }
  .example-links button { font-size: 12px; }
  .home-choices { margin-top: 18px; }
  .home-choice { padding: 20px; }
  .home-choice h3 { font-size: 22px; }
  .life-note { font-size: 16px; }
  .page-title { font-size: 38px; }
  .page-intro { font-size: 16px; }
  .next-strip { flex-direction: column; gap: 4px; }
  .path-stage { grid-template-columns: 1fr; padding: 20px; }
  .stage-number { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .path-stage h2 { font-size: 25px; }
  .stage-columns { grid-template-columns: 1fr; gap: 10px; }
  .stage-links { align-items: flex-start; flex-direction: column; }
  .stage-links a { display: block; width: 100%; }
  .knowledge-answer { padding: 20px; }
  .core-answer { font-size: 17px; }
  .question-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .article-shell { padding: 28px 15px 64px; }
  .article-header h1 { font-size: 38px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 25px; }
  .article-aside { display: block; }
  .material-grid { grid-template-columns: 1fr; }
  .library-summary { align-items: flex-start; flex-direction: column; }
  .library-summary a { margin-left: 0; }
  .library-unlock-note { align-items: stretch; flex-direction: column; }
  .library-unlock-note .button { width: 100%; }
  .unlock-card { padding: 24px 18px; }
  .unlock-form input { font-size: 15px; }
  .game-level-note { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: 20px; padding: 14px 15px; }
  .game-level-grid { grid-template-columns: 1fr; gap: 12px; }
  .game-level-card { padding: 19px 17px; }
  .game-level-card h2 { font-size: 23px; }
  .game-level-card .button { width: 100%; }
  .game-map { margin-top: 20px; padding: 10px 8px 8px; }
  .game-trail { gap: 4px; }
  .game-step { min-height: 28px; font-size: 10px; }
  .game-map-copy { margin-top: 6px; }
  .game-question-card { padding: 17px 12px; }
  .game-question-copy { margin: 9px 0 14px; }
  .game-question-card h2 { font-size: 26px; }
  .game-character-current { width: 62px; height: 66px; }
  .game-character-menu { top: calc(100% + 7px); right: 0; width: 184px; grid-template-columns: repeat(3, 52px); gap: 6px; }
  .game-character-choice { width: 52px; height: 56px; }
  .game-world { --lane-rise: -258px; --advance-y: 235px; min-height: 500px; }
  .game-sound-toggle { top: 7px; right: 7px; min-height: 38px; padding: 6px 9px; }
  .game-world::after { border-width: 5px; }
  .game-answer-grid { top: 35%; left: 3%; right: 3%; gap: 3%; }
  .game-answer { min-height: 126px; gap: 4px; padding: 11px 4px 19px; border-radius: 8px 8px 3px 3px; box-shadow: 0 13px 0 #7b6850, 0 18px 16px rgba(5, 14, 16, .4); }
  .game-answer:hover:not(:disabled), .game-answer:focus-visible { transform: perspective(700px) rotateX(9deg) translateY(-4px); }
  .game-answer-letter { width: 30px; height: 30px; font-size: 13px; }
  .game-answer > strong { font-size: 14px; }
  .game-platform-action { font-size: 9px; }
  .game-platform-face { bottom: -10px; height: 13px; }
  .game-answer.is-selected { box-shadow: 0 13px 0 #8d7457, 0 0 28px rgba(255, 229, 159, .62); }
  .game-answer.is-correct { box-shadow: 0 13px 0 #4d7858, 0 0 30px rgba(160, 229, 170, .5); }
  .game-runner { bottom: 24px; width: 120px; }
  .game-runner.lane-a { --lane-shift: -105px; --lane-mid: -53px; }
  .game-runner.lane-c { --lane-shift: 105px; --lane-mid: 53px; }
  .game-start-pad { bottom: 15px; width: 190px; height: 52px; }
  .game-start-pad.is-earned { width: 210px; height: 62px; }
  .game-next { text-align: stretch; }
  .game-next .button { width: 100%; min-width: 0; }
  .game-reset-row { align-items: center; flex-direction: row; gap: 10px; }
  .game-last-theory { padding: 12px 13px; }
  .game-complete { padding: 24px 14px; }
  .game-complete-actions { flex-direction: column; }
  .game-complete-actions .button { width: 100%; }
  .game-page-v1, .game-result-page { padding-left: 10px; padding-right: 10px; }
  .game-v1-statusbar { grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; padding: 11px 12px; }
  .game-v1-statusbar > strong { grid-column: 1 / -1; grid-row: 1; font-size: 14px; }
  .game-v1-back { grid-column: 1; grid-row: 2; white-space: nowrap; }
  .game-v1-status-right { grid-column: 2; grid-row: 2; min-width: 0; gap: 7px; font-size: 10px; }
  .game-v1-status-right span + span { padding-left: 7px; }
  .game-v1-sound { width: 32px; height: 32px; font-size: 16px; }
  .game-v1-progress { gap: 4px; margin: 8px 0 13px; }
  .game-v1-progress-step { min-height: 10px; }
  .game-v1-progress-step.is-current { min-height: 17px; }
  .game-question-card-v1 { padding: 0; }
  .game-question-v1-head { padding: 14px 10px 15px; }
  .game-question-title { font-size: clamp(25px, 7.4vw, 34px); line-height: 1.24; }
  .game-world-v1 { min-height: 510px; --lane-rise: 0; --advance-y: 0; }
  .game-world-v1::after { border-width: 4px; }
  .game-answer-grid-v1 { top: 13%; left: 2.5%; right: 2.5%; gap: 6px; }
  .game-answer-v1 { min-height: 155px; gap: 5px; padding: 11px 5px 10px; border-radius: 7px; box-shadow: 0 6px 0 #796650, 0 11px 15px rgba(2, 13, 16, .28); transform: none; }
  .game-answer-v1:hover:not(:disabled), .game-answer-v1:focus-visible { transform: translateY(-3px); }
  .game-answer-v1 .game-answer-letter { width: 28px; height: 28px; font-size: 12px; }
  .game-answer-v1 > strong { min-height: 50px; font-size: clamp(17px, 5.5vw, 23px); line-height: 1.12; }
  .game-answer-type { font-size: 10px; }
  .game-answer-result { min-height: 20px; font-size: 9px; }
  .game-answer-v1.is-correct, .game-answer-v1.is-wrong { box-shadow: 0 6px 0 currentColor, 0 0 0 3px rgba(255,255,255,.12); }
  .game-v1-runway { height: 190px; }
  .game-v1-runway-line { left: 3%; right: 3%; bottom: 31px; }
  .game-v1-runway-tiles { left: 3%; right: 3%; bottom: 13px; gap: 3px; }
  .game-v1-runway-tile { height: 35px; font-size: 8px; }
  .game-runner-v1 { bottom: 44px; width: 88px; }
  .game-runner-v1 { --runner-edge: 44px; }
  .game-character-picker-v1 { top: 7px; right: 7px; }
  .game-character-picker-v1 .game-character-current { width: 45px; height: 48px; }
  .game-character-picker-v1 .game-character-menu { top: calc(100% + 5px); width: 166px; grid-template-columns: repeat(3, 46px); }
  .game-character-picker-v1 .game-character-choice { width: 46px; height: 49px; }
  .game-feedback-v1 { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
  .game-feedback-v1-icon { width: 32px; height: 32px; font-size: 18px; }
  .game-feedback-v1-body > strong { font-size: 15px; }
  .game-feedback-v1-body > p, .game-theory-note p { font-size: 12px; }
  .game-next-v1 { grid-column: 1 / -1; width: 100%; min-width: 0; margin-top: 2px; }
  .game-result-card { padding: 24px 14px; }
  .game-result-score strong { font-size: 60px; }
  .game-result-metrics { gap: 6px; }
  .game-result-metrics div { padding: 11px 5px; }
  .game-result-metrics strong { font-size: 15px; }
  .game-result-knowledge { grid-template-columns: 1fr; }
  .game-result-actions { gap: 8px; }
  .game-wrong-list { padding: 17px 12px; }
  .game-wrong-list-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .game-wrong-grid { grid-template-columns: 1fr; }
  .song-tool { grid-template-columns: 1fr; }
  .footer-inner { padding: 18px 15px 24px; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 253, 248, .98);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
  }
  .mobile-nav a:hover { text-decoration: none; background: #f5efe6; }
  .mobile-nav span { color: var(--teal); font-size: 18px; line-height: 1; }
  body.is-game-route .mobile-nav { display: none; }
  body.is-guitar-route .mobile-nav { display: none; }
  .toast { bottom: 78px; max-width: calc(100vw - 30px); text-align: center; }
}

@media (max-width: 720px) {
  .guitar-simulator-page { padding: 16px 12px 32px; }
  .guitar-simulator-page::after { display: none; }
  .guitar-control-panel { grid-template-columns: 1fr; gap: 16px; padding: 15px; }
  .guitar-category-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .guitar-category-tabs button { padding-inline: 8px; }
  .guitar-chord-buttons { grid-template-columns: repeat(3, 1fr); }
  .guitar-facts { grid-template-columns: 1fr; }
  .guitar-facts > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 14px; }
  .guitar-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .guitar-facts strong { margin-top: 0; font-size: 15px; }
  .guitar-beginner-practice { align-items: stretch; flex-direction: column; gap: 14px; margin: 16px 0; padding: 15px; }
  .guitar-beginner-practice h2 { font-size: 21px; }
  .guitar-beginner-practice > button { width: 100%; }
  .guitar-beginner-practice-status { grid-template-columns: 1fr auto; }
  .guitar-beginner-practice-status > strong { font-size: 26px; }
  .guitar-beginner-practice-status button { min-width: 112px; }
  .guitar-diatonic-panel { padding: 13px; }
  .guitar-diatonic-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .guitar-diatonic-heading h2 { font-size: 19px; }
  .guitar-diatonic-chords { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guitar-diatonic-chords button { min-height: 86px; padding: 9px 10px; }
  .guitar-diatonic-chords strong { font-size: 20px; }
  .guitar-progression-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .guitar-progression-mode { display: grid; width: 100%; }
  .guitar-progression-choices { grid-template-columns: 1fr; }
  .guitar-progression-choices button { min-height: 50px; }
  .guitar-progression-track { gap: 4px; }
  .guitar-progression-track > div { padding: 7px 4px; }
  .guitar-progression-track strong { font-size: 17px; }
  .guitar-progression-track small { font-size: 10px; }
  .guitar-practice-readout { grid-template-columns: 1fr 1fr; }
  .guitar-practice-beats { grid-column: 1 / -1; min-height: 46px; }
  .guitar-practice-beats b { width: 42px; font-size: 16px; }
  .guitar-strum-pattern { gap: 3px; }
  .guitar-strum-pattern > div { min-height: 50px; }
  .guitar-strum-pattern b { font-size: 21px; }
  .guitar-progression-controls { display: block; }
  .guitar-progression-settings { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .guitar-beginner-fixed-settings { display: grid; grid-template-columns: 1fr 1fr; }
  .guitar-beginner-fixed-settings span { display: grid; min-height: 38px; place-items: center; padding: 7px 5px; text-align: center; }
  .guitar-progression-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; margin-left: 0; }
  .guitar-progression-speed { grid-column: 1 / -1; grid-template-columns: 58px minmax(0, 1fr); margin-right: 0; }
  .guitar-progression-speed select { width: 100%; min-width: 0; }
  .guitar-practice-loop { grid-column: 1 / -1; }
  .guitar-progression-controls button { padding: 7px 6px; }
  .guitar-progression-actions button:last-child { grid-column: 1 / -1; }
  .guitar-barre-guide { grid-template-columns: 1fr; gap: 10px; padding: 13px 14px; }
  .guitar-barre-guide p { grid-column: auto; font-size: 13px; }
  .guitar-troubleshooting-grid { grid-template-columns: 1fr; }
  .guitar-troubleshooting-grid > div { padding: 12px 14px; }
  .guitar-troubleshooting-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .guitar-troubleshooting summary { padding: 9px 13px; }
  .guitar-troubleshooting summary strong { font-size: 15px; }
  .guitar-stage-shell { padding: 10px; }
  .guitar-stage-head { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; padding: 3px 2px 12px; }
  .guitar-stage-head h2 { font-size: 21px; }
  .guitar-stage-controls { min-height: 92px; }
  .guitar-compact-selects { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 8px; min-height: 92px; align-content: start; }
  .guitar-toolbar-select { grid-template-columns: 54px minmax(0, 1fr); }
  .guitar-toolbar-select:first-child { grid-column: 1 / -1; }
  .guitar-toolbar-select > span { display: grid; min-height: 40px; place-items: center; padding: 0 7px; }
  .guitar-toolbar-select select,
  .guitar-toolbar-select [data-guitar-view-select] { width: 100%; min-width: 0; padding: 7px 26px 7px 9px; font-size: 15px; }
  .guitar-scale-audio-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .guitar-scale-audio-actions button { padding: 7px 8px; font-size: 13px; }
  .guitar-audio-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .guitar-audio-actions button { padding: 7px 8px; font-size: 13px; }
  .guitar-diagram-desktop { display: none; }
  .guitar-diagram-mobile { display: block; max-width: 460px; margin: 0 auto; }
  .guitar-audio-status { min-height: 44px; margin: 8px 4px 0; }
  .guitar-string-section { grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .guitar-explore-result > div:last-child { min-height: 50px; }
  .guitar-explore-current { align-items: flex-start; flex-direction: column; gap: 7px; }
  .guitar-match-toggle { width: 100%; }
  .guitar-string-buttons { grid-template-columns: repeat(3, 1fr); }
  .guitar-string-button { min-height: 58px; }
  .guitar-legend { gap: 9px 13px; }
  .guitar-legend span { min-width: calc(33.333% - 13px); }
  .guitar-capo-note { font-size: 12px; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 14px; }
  .checkbox-grid { grid-template-columns: repeat(4, 1fr); }
  .game-question-card h2 { font-size: 25px; }
  .game-world { --lane-rise: -238px; --advance-y: 220px; min-height: 470px; }
  .game-answer { min-height: 116px; padding-inline: 3px; }
  .game-answer-letter { width: 28px; height: 28px; }
  .game-answer > strong { font-size: 13px; }
  .game-runner { width: 106px; }
  .game-runner.lane-a { --lane-shift: -98px; --lane-mid: -49px; }
  .game-runner.lane-c { --lane-shift: 98px; --lane-mid: 49px; }
  .game-v1-statusbar { padding-inline: 9px; }
  .game-v1-status-right { gap: 5px; }
  .game-question-card-v1 { padding: 0; }
  .game-question-title { font-size: 25px; }
  .game-world-v1 { min-height: 490px; }
  .game-answer-v1 { min-height: 148px; padding-inline: 4px; }
  .game-answer-v1 > strong { font-size: 17px; }
  .game-runner-v1 { width: 84px; }
}

@media (max-width: 980px) {
  .game-elevator-world { min-height: 620px; }
  .game-elevator-shaft { inset-inline: 8% 5%; }
  .game-elevator-cabin { width: min(820px, calc(100% - 66px)); }
  .game-elevator-answer-grid { position: relative; inset: auto; gap: 11px; }
  .game-elevator-button { min-height: 174px; }
}

@media (max-width: 720px) {
  .game-v1-statusbar { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .game-v1-back { grid-column: 1; grid-row: 2; }
  .game-v1-status-right {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 32px;
    gap: 0;
    overflow: hidden;
  }
  .game-v1-status-right span { min-width: 0; padding: 5px 4px; text-align: center; white-space: nowrap; }
  .game-v1-status-right span + span { border-left: 1px solid #d4c7b6; padding-left: 4px; }
  .game-elevator-progress { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 5px; padding: 6px; }
  .game-elevator-progress-track { gap: 3px; }
  .game-elevator-progress .game-v1-progress-step { min-height: 19px; font-size: 8px; }
  .game-elevator-progress .game-v1-progress-step.is-current { min-height: 22px; }
  .game-elevator-progress-now, .game-elevator-progress-target { font-size: 7px; }
  .game-elevator-progress-now b, .game-elevator-progress-target b { font-size: 11px; }
  .game-elevator-world { min-height: 520px; }
  .game-elevator-world::after { border-width: 4px; }
  .game-elevator-floor-scale { display: none; }
  .game-elevator-shaft { inset: 16px 4px 16px; }
  .game-elevator-rail { width: 10px; }
  .game-elevator-cabin {
    width: calc(100% - 24px);
    max-width: 100%;
    min-height: 482px;
    grid-template-rows: 58px 238px minmax(160px, 1fr);
    box-shadow: 0 0 0 4px #0b1d22, 0 0 0 6px #3c5b5e, 0 18px 30px rgba(0,0,0,.55);
  }
  .game-elevator-cabin::before, .game-elevator-cabin::after { top: 58px; }
  .game-elevator-cabin-head { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 5px; padding: 6px 8px; }
  .game-elevator-brand, .game-elevator-target { font-size: 6px; letter-spacing: .04em; }
  .game-elevator-display { height: 44px; padding: 4px 7px; }
  .game-elevator-display span { font-size: 5px; }
  .game-elevator-display strong { font-size: 21px; }
  .game-elevator-console { padding: 24px 7px 13px; }
  .game-elevator-console::before { top: 8px; left: 10px; font-size: 6px; }
  .game-elevator-answer-grid { position: relative; inset: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .game-elevator-button { min-height: 184px; gap: 5px; padding: 11px 4px 9px; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(5,18,22,.48), 0 6px 0 #07191d; }
  .game-elevator-button::before { inset: 4px; }
  .game-elevator-button:hover:not(:disabled), .game-elevator-button:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(5,18,22,.48), 0 6px 0 #07191d, 0 0 15px rgba(224,166,94,.3); }
  .game-elevator-button .game-answer-letter { width: 27px; height: 27px; }
  .game-elevator-button > strong { min-height: 52px; font-size: clamp(16px, 5.2vw, 22px); }
  .game-elevator-button .game-answer-type { font-size: 9px; }
  .game-elevator-passenger { bottom: 20px; width: 86px; }
  .game-elevator-deck::after { height: 38px; }
  .game-elevator-position { right: 8px; bottom: 19px; min-width: 105px; padding: 6px 7px; }
  .game-elevator-position span, .game-elevator-position small { font-size: 6px; }
  .game-elevator-position strong { font-size: 18px; }
  .game-character-picker-v1 { top: 67px; right: 18px; }
  .game-result-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 390px) {
  .game-elevator-world { min-height: 500px; }
  .game-elevator-cabin { min-height: 464px; grid-template-rows: 56px 228px minmax(154px, 1fr); }
  .game-elevator-button { min-height: 176px; }
  .game-elevator-passenger { width: 80px; }
  .game-elevator-position { min-width: 98px; }
}

@media (max-width: 980px) {
  .game-elevator-world { min-height: 660px; }
  .game-elevator-chamber-shell::before { left: -14%; right: -14%; }
  .game-elevator-ceiling { width: 84%; }
  .game-elevator-windows { left: 2%; right: 2%; }
  .game-elevator-shaft { inset: 34px 2% 18px; }
  .game-elevator-cabin { width: 91%; min-height: 590px; grid-template-rows: 66px 250px minmax(250px, 1fr); }
  .game-elevator-cabin-head { width: 84%; }
  .game-elevator-console { padding-inline: 24px; }
}

@media (max-width: 720px) {
  .game-elevator-world { min-height: 540px; }
  .game-elevator-chamber-shell::before { left: -36%; right: -36%; top: 18px; height: 286px; border-width: 22px; }
  .game-elevator-ceiling { top: -48px; width: 96%; height: 135px; }
  .game-elevator-ceiling span { top: 55%; width: 106px; height: 45px; border-width: 5px; }
  .game-elevator-ceiling i { top: 56%; height: 105px; }
  .game-elevator-windows { top: 68px; left: -7%; right: -7%; height: 175px; gap: 1%; }
  .game-elevator-windows i { width: 13%; border-width: 3px; border-radius: 13px 13px 3px 3px; }
  .game-elevator-shaft { inset: 19px 2px 10px; }
  .game-elevator-cabin { width: 94%; min-height: 505px; grid-template-rows: 56px 238px minmax(185px, 1fr); }
  .game-elevator-cabin-head { width: 78%; border-radius: 0 0 10px 10px; }
  .game-elevator-brand { max-width: 70px; }
  .game-elevator-console { padding: 49px 7px 13px; }
  .game-elevator-console::before { top: 34px; }
  .game-elevator-answer-grid { width: 100%; gap: 6px; }
  .game-elevator-button { min-height: 176px; border-radius: 9px 9px 3px 3px; }
  .game-elevator-button::before { border-radius: 6px 6px 2px 2px; }
  .game-elevator-deck { border-radius: 50% 50% 4px 4px / 23% 23% 4px 4px; }
  .game-elevator-deck::before { left: -15%; right: -15%; top: -13px; height: 40px; }
  .game-elevator-deck::after { left: 3%; right: 3%; height: 53px; }
  .game-elevator-lift-disc { bottom: 11px; width: 184px; height: 61px; border-width: 2px; }
  .game-elevator-lift-disc::before { inset: 10px 18px; }
  .game-elevator-passenger { bottom: 32px; width: 84px; }
  .game-elevator-position { display: none; }
  .game-character-picker-v1 { top: 61px; right: 12px; }
}

@media (max-width: 390px) {
  .game-elevator-world { min-height: 520px; }
  .game-elevator-cabin { min-height: 486px; grid-template-rows: 54px 231px minmax(178px, 1fr); }
  .game-elevator-windows { height: 166px; }
  .game-elevator-button { min-height: 169px; }
  .game-elevator-lift-disc { width: 172px; height: 57px; }
  .game-elevator-passenger { width: 79px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-answer { transition: none; }
  .game-world.has-trap,
  .game-world.has-safe-landing,
  .game-answer.is-correct,
  .game-answer.is-wrong,
  .game-answer.is-correct .game-correct-burst i,
  .game-runner.is-jumping,
  .game-runner.is-falling,
  .game-runner.is-advancing,
  .game-world.is-advancing .game-speed-lines i,
  .game-world.is-advancing .game-answer.is-correct,
  .game-world.is-advancing .game-world-sky,
  .game-world.is-advancing .game-start-pad,
  .game-world.is-entering .game-answer { animation-duration: .01ms; }
  .game-answer-v1,
  .game-runner-v1,
  .game-runner-v1.is-stepping,
  .game-elevator-world.is-rising .game-elevator-cabin,
  .game-elevator-world.is-falling .game-elevator-cabin,
  .game-elevator-world.is-rising .game-elevator-grid,
  .game-elevator-world.is-falling .game-elevator-grid,
  .game-elevator-world.is-rising .game-elevator-lift-disc,
  .game-elevator-world.is-falling .game-elevator-lift-disc { animation-duration: .01ms; transition-duration: .01ms; }
}
.toc-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 5px 0;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.toc-link:hover { text-decoration: underline; }
