:root {
  --paper: #f6f2e8;
  --paper-deep: #ede7d9;
  --ink: #1f2d2b;
  --ink-soft: #5f6c68;
  --navy: #183f3b;
  --mint: #9cd8c8;
  --mint-soft: #dff1e9;
  --coral: #f07c65;
  --coral-soft: #fde2da;
  --yellow: #f1c75b;
  --white: #fffdf8;
  --line: rgba(31, 45, 43, 0.14);
  --shadow: 0 22px 70px rgba(31, 45, 43, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --display: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 15%, rgba(156, 216, 200, 0.28), transparent 25rem),
    radial-gradient(circle at 10% 70%, rgba(240, 124, 101, 0.1), transparent 22rem),
    var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(240, 124, 101, 0.35);
  outline-offset: 3px;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(31, 45, 43, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 45, 43, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50% 50% 45% 55%;
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--mint);
  font-size: 22px;
  transform: rotate(-5deg);
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  margin-left: 11px;
  padding-left: 11px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.icon-button,
.notebook-button,
.close-button,
.listen-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.icon-button,
.notebook-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.64);
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover,
.notebook-button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.icon-button {
  width: 42px;
  border-radius: 50%;
  font-weight: 800;
}

.notebook-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.count-badge {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: var(--white);
  border-radius: 999px;
  background: var(--coral);
  font-size: 10px;
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screenIn 360ms ease both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-screen.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 58px 0 88px;
}

.eyebrow,
.summary-kicker,
.drawer-kicker,
.question-number {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--coral);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.headline-accent {
  position: relative;
  display: inline-block;
  color: var(--navy);
}

.headline-accent::after {
  content: "";
  position: absolute;
  left: 1%;
  right: -1%;
  bottom: -3px;
  height: 12px;
  z-index: -1;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.75;
  transform: rotate(-1.5deg);
}

.hero-description {
  max-width: 570px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
}

.feature-list span {
  padding: 7px 11px;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.13);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.difficulty-section {
  max-width: 630px;
  margin-bottom: 26px;
}

.section-label {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

.tiny-note {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.difficulty-card {
  min-height: 119px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
  cursor: pointer;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.difficulty-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 45, 43, 0.08);
}

.difficulty-card.is-selected {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--navy);
}

.difficulty-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.difficulty-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.difficulty-icon.mint {
  background: var(--mint-soft);
}

.difficulty-icon.yellow {
  background: #f8ebbd;
}

.difficulty-icon.coral {
  background: var(--coral-soft);
}

.difficulty-check {
  width: 19px;
  height: 19px;
  display: none;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--navy);
  font-size: 11px;
}

.difficulty-card.is-selected .difficulty-check {
  display: grid;
}

.difficulty-card strong,
.difficulty-card small {
  display: block;
}

.difficulty-card strong {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 15px;
}

.difficulty-card small {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.primary-button,
.ghost-button {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0 23px;
  color: var(--white);
  border: 1px solid var(--navy);
  background: var(--navy);
  box-shadow: 5px 5px 0 var(--mint);
}

.primary-button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--mint);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  box-shadow: none;
}

.start-button {
  min-width: 225px;
}

.home-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.flash-entry-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.22);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.flash-entry-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.flash-symbol {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8ebbd;
  font-size: 17px;
}

.flash-entry-button strong,
.flash-entry-button small {
  display: block;
  text-align: left;
}

.flash-entry-button strong {
  font-size: 12px;
}

.flash-entry-button small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.natural-entry-button {
  width: min(100%, 630px);
  min-height: 82px;
  margin-top: 14px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-align: left;
  border: 1px solid rgba(24, 63, 59, 0.22);
  border-radius: 20px;
  background: linear-gradient(105deg, var(--white), var(--mint-soft));
  box-shadow: 4px 4px 0 var(--mint);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.natural-entry-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--mint);
}

.foundation-entry-button {
  width: min(100%, 630px);
  min-height: 88px;
  margin-top: 12px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-align: left;
  border: 1px solid rgba(221, 104, 83, 0.3);
  border-radius: 20px;
  background: linear-gradient(105deg, #fffaf3, #fde3d8);
  box-shadow: 4px 4px 0 rgba(221, 104, 83, 0.38);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.foundation-entry-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(221, 104, 83, 0.38);
}

.foundation-symbol {
  width: 55px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: var(--coral);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -1px;
}

.foundation-entry-badge {
  padding: 6px 9px;
  color: var(--coral);
  border-radius: 999px;
  background: var(--white);
  font-size: 8px;
  font-weight: 900;
}

.chord-entry-button {
  width: min(100%, 630px);
  min-height: 82px;
  margin-top: 12px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-align: left;
  border: 1px solid rgba(24, 63, 59, 0.22);
  border-radius: 20px;
  background: linear-gradient(105deg, var(--white), #f8ebbd);
  box-shadow: 4px 4px 0 var(--yellow);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chord-entry-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yellow);
}

.guitar-entry-button {
  width: min(100%, 630px);
  min-height: 84px;
  margin-top: 12px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-align: left;
  border: 1px solid rgba(24, 63, 59, 0.22);
  border-radius: 20px;
  background: linear-gradient(105deg, var(--white), #dfeee9);
  box-shadow: 4px 4px 0 #8fc9b7;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.guitar-entry-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #8fc9b7;
}

.guitar-entry-symbol {
  width: 55px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: var(--navy);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: -1px;
}

.guitar-entry-button b {
  color: var(--coral);
}

.chord-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: var(--coral);
  font-family: Georgia, serif;
  font-size: 24px;
}

.natural-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: var(--navy);
  font-family: Georgia, serif;
  font-size: 28px;
}

.natural-entry-copy small,
.natural-entry-copy strong,
.natural-entry-copy em {
  display: block;
}

.natural-entry-copy small {
  margin-bottom: 3px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.natural-entry-copy strong {
  font-family: var(--display);
  font-size: 15px;
}

.natural-entry-copy em {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
}

.natural-entry-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--coral);
  font-size: 16px;
}

.keyboard-tip {
  margin: 10px 0 0 17px;
  color: var(--ink-soft);
  font-size: 10px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(470px, 94%);
  aspect-ratio: 1;
  border-radius: 49% 51% 56% 44% / 45% 49% 51% 55%;
  background: var(--mint-soft);
  transform: rotate(-7deg);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(31, 45, 43, 0.22);
  border-radius: 50%;
}

.orbit-one {
  width: 460px;
  height: 460px;
}

.orbit-two {
  width: 370px;
  height: 510px;
  transform: rotate(44deg);
}

.demo-card {
  position: relative;
  z-index: 2;
  width: min(390px, 84%);
  padding: 27px;
  border: 1px solid rgba(31, 45, 43, 0.12);
  border-radius: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-pill,
.question-type {
  padding: 7px 10px;
  color: var(--navy);
  border-radius: 999px;
  background: var(--mint-soft);
  font-size: 10px;
  font-weight: 800;
}

.demo-progress {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.demo-kicker {
  margin: 34px 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.demo-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
}

.note-token {
  position: relative;
  min-width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
}

.note-token.target {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.note-token small {
  margin: 21px 0 0 2px;
  font-size: 11px;
}

.motion-arrow {
  text-align: center;
}

.motion-arrow span {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
}

.motion-arrow b {
  color: var(--coral);
  font-size: 26px;
}

.demo-question {
  margin: 18px 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.demo-answer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--paper);
}

.mini-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.mini-chip.chosen {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.answer-check {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--coral);
  font-size: 12px;
}

.streak-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 70px;
  min-width: 145px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(31, 45, 43, 0.12);
  transform: rotate(-4deg);
}

.streak-card span,
.streak-card small {
  display: block;
}

.streak-card span {
  font-size: 13px;
}

.streak-card b {
  font-family: var(--display);
  font-size: 24px;
}

.streak-card small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.streak-flame {
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--coral);
}

.floating-note {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(31, 45, 43, 0.1);
}

.note-one {
  left: 4%;
  top: 10%;
  color: var(--white);
  background: var(--coral);
  transform: rotate(-11deg);
}

.note-two {
  right: 5%;
  top: 18%;
  background: var(--yellow);
  transform: rotate(9deg);
}

/* Semitone speed drill */
.speed-screen {
  padding: 28px 0 90px;
}

.speed-shell {
  max-width: 920px;
  margin: 0 auto;
}

.speed-topbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 17px;
}

.speed-back-button {
  width: fit-content;
  padding: 8px 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.speed-title {
  text-align: center;
}

.speed-title span,
.speed-title strong {
  display: block;
}

.speed-title span {
  margin-bottom: 3px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.speed-title strong {
  font-family: var(--display);
  font-size: 19px;
}

.speed-best {
  justify-self: end;
  min-width: 76px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
}

.speed-best span,
.speed-best strong {
  display: block;
}

.speed-best span {
  color: var(--ink-soft);
  font-size: 8px;
}

.speed-best strong {
  font-family: var(--display);
  font-size: 15px;
}

.speed-dashboard {
  display: grid;
  grid-template-columns: minmax(210px, 2fr) repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}

.speed-timer,
.speed-live-stat {
  min-height: 71px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.72);
}

.speed-timer > span,
.speed-live-stat > span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
}

.speed-timer strong,
.speed-live-stat strong {
  font-family: var(--display);
  font-size: 19px;
}

.speed-timer strong b,
.speed-live-stat strong b {
  font: inherit;
}

.speed-live-stat strong {
  display: block;
}

.speed-live-stat:nth-child(3) strong {
  color: var(--coral);
}

.speed-time-track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 45, 43, 0.1);
}

.speed-time-track i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
}

.speed-timer.is-urgent {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.speed-timer.is-urgent strong {
  color: #a44332;
}

.speed-timer.is-urgent .speed-time-track i {
  background: var(--coral);
  animation: urgentPulse 700ms ease-in-out infinite alternate;
}

@keyframes urgentPulse {
  to {
    opacity: 0.5;
  }
}

.speed-protocol {
  margin: -3px 0 11px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.speed-card {
  min-height: 480px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 25%, rgba(241, 199, 91, 0.13), transparent 15rem),
    var(--white);
  box-shadow: var(--shadow);
}

.speed-ready {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.speed-ready[hidden] {
  display: none;
}

.speed-ready > span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.speed-ready > strong {
  width: 132px;
  height: 132px;
  margin: 18px 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 42px;
  background: #f8ebbd;
  box-shadow: 8px 8px 0 var(--mint);
  font-family: var(--display);
  font-size: 72px;
  transform: rotate(-3deg);
  animation: readyBeat 1s ease-in-out infinite;
}

.speed-ready > p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

@keyframes readyBeat {
  50% {
    transform: rotate(2deg) scale(1.04);
  }
}

.speed-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-question-count {
  padding: 6px 10px;
  color: var(--navy);
  border-radius: 999px;
  background: var(--mint-soft);
  font-size: 9px;
  font-weight: 800;
}

.speed-hint {
  color: var(--ink-soft);
  font-size: 8px;
}

.speed-kicker {
  margin: 47px 0 7px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.speed-card h2 {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 66px);
  letter-spacing: -0.04em;
  text-align: center;
}

.speed-question-text {
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.speed-choices {
  max-width: 630px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.speed-choice-button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--display);
  font-size: 28px;
  transition: transform 120ms ease, border 120ms ease, background 120ms ease;
}

.speed-choice-button small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 7px;
  font-weight: 600;
}

.speed-choice-button.is-correct small,
.speed-choice-button.is-wrong small {
  color: currentColor;
  opacity: 0.72;
}

.speed-choice-button:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--mint-soft);
  transform: translateY(-3px);
}

.speed-choice-button.is-correct {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.speed-choice-button.is-wrong {
  color: #9b3d2c;
  border-color: var(--coral);
  background: var(--coral-soft);
}

.speed-feedback {
  min-height: 29px;
  padding-top: 10px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.speed-feedback.is-correct {
  color: #397a64;
}

.speed-feedback.is-wrong {
  color: #a44332;
}

.semitone-ladder {
  max-width: 630px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.semitone-ladder span {
  min-width: 0;
  padding: 5px 0;
  color: var(--ink-soft);
  background: linear-gradient(90deg, var(--mint-soft), #f8ebbd);
  font-size: 7px;
  font-weight: 800;
  text-align: center;
}

.speed-result {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
}

.speed-result[hidden] {
  display: none;
}

.speed-result-mark {
  width: 86px;
  height: 86px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  border-radius: 27px;
  background: #f8ebbd;
  box-shadow: 6px 6px 0 var(--coral-soft);
  font-size: 40px;
  transform: rotate(-4deg);
}

.speed-result h2 {
  font-size: 30px;
}

.speed-result > p {
  color: var(--ink-soft);
  font-size: 11px;
}

.speed-result-grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.speed-result-grid div {
  padding: 18px 8px;
}

.speed-result-grid div + div {
  border-left: 1px solid var(--line);
}

.speed-result-grid span,
.speed-result-grid strong {
  display: block;
}

.speed-result-grid span {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.speed-result-grid strong {
  font-family: var(--display);
  font-size: 19px;
}

/* Daily guitar */
.guitar-screen {
  padding: 28px 0 90px;
}

.guitar-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.guitar-today-label {
  justify-self: end;
  padding: 7px 10px;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.18);
  border-radius: 999px;
  background: var(--mint-soft);
  font-size: 8px;
  font-weight: 900;
}

.guitar-circle {
  margin: 4px 0 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(54px, 1fr));
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.guitar-circle button {
  min-height: 43px;
  padding: 6px 4px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 900;
}

.guitar-circle button:hover,
.guitar-circle button.is-viewed {
  color: var(--navy);
  border-color: rgba(24, 63, 59, 0.18);
  background: var(--white);
}

.guitar-circle button.is-today {
  color: var(--white);
  background: var(--coral);
}

.guitar-circle button small {
  margin-top: 2px;
  display: block;
  font-family: var(--sans);
  font-size: 6px;
}

.guitar-key-card {
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: 0.9fr 1.7fr 0.7fr;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--white), #eef7f4);
  box-shadow: 0 22px 70px rgba(31, 45, 43, 0.09);
}

.guitar-key-main h2 {
  margin: 8px 0 5px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 52px);
}

.guitar-key-main > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.guitar-key-signature {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(31, 45, 43, 0.15);
}

.guitar-key-signature span,
.guitar-key-signature strong {
  display: block;
}

.guitar-key-signature span {
  color: var(--ink-soft);
  font-size: 8px;
}

.guitar-key-signature strong {
  margin-top: 4px;
  font-size: 11px;
}

.guitar-scale-notes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.guitar-scale-note {
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.14);
  border-radius: 14px;
  background: var(--white);
  font-family: var(--display);
}

.guitar-scale-note.is-root {
  color: var(--white);
  background: var(--coral);
}

.guitar-scale-note strong,
.guitar-scale-note small {
  display: block;
}

.guitar-scale-note strong {
  font-size: 17px;
}

.guitar-scale-note small {
  margin-top: 3px;
  font-size: 7px;
}

.guitar-scale-panel > p {
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}

.guitar-scale-play {
  margin: 0 auto;
  display: block;
}

.guitar-completion {
  text-align: center;
}

.guitar-completion > span,
.guitar-completion > strong {
  display: block;
}

.guitar-completion > span {
  color: var(--ink-soft);
  font-size: 8px;
}

.guitar-completion > strong {
  margin: 7px 0 10px;
  font-family: var(--display);
  font-size: 23px;
}

.guitar-practice-card,
.guitar-fretboard-card {
  margin-top: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
  box-shadow: 0 15px 45px rgba(31, 45, 43, 0.06);
}

.guitar-section-head {
  margin-bottom: 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.guitar-section-head span {
  color: var(--coral);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.guitar-section-head h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 21px;
}

.guitar-section-head > p,
.guitar-fretboard-tip {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.guitar-practice-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.guitar-practice-item {
  position: relative;
  min-height: 135px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.guitar-practice-item.is-complete {
  border-color: rgba(67, 151, 125, 0.45);
  background: #e8f5f0;
}

.guitar-practice-item label {
  display: block;
  cursor: pointer;
}

.guitar-practice-item input {
  width: 18px;
  height: 18px;
  margin: 0 0 14px;
  accent-color: var(--coral);
}

.guitar-practice-item strong,
.guitar-practice-item span,
.guitar-practice-item small {
  display: block;
}

.guitar-practice-item strong {
  color: var(--navy);
  font-size: 11px;
}

.guitar-practice-item span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.guitar-practice-item small {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--coral);
  font-size: 7px;
  font-weight: 900;
}

.guitar-view-toggle {
  padding: 3px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.guitar-view-toggle button {
  padding: 7px 10px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.guitar-view-toggle button.is-selected {
  color: var(--white);
  background: var(--navy);
}

.guitar-fretboard-tip {
  margin-bottom: 12px;
}

.guitar-fretboard-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(24, 63, 59, 0.35) transparent;
}

.guitar-fretboard {
  min-width: 970px;
  overflow: hidden;
  border: 1px solid rgba(24, 63, 59, 0.2);
  border-radius: 17px;
  background: #f7efe1;
}

.guitar-fretboard-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 76px repeat(13, minmax(54px, 1fr)) 76px;
  align-items: stretch;
}

.guitar-fretboard-row + .guitar-fretboard-row {
  border-top: 1px solid rgba(83, 61, 38, 0.18);
}

.guitar-fretboard-row.is-header {
  min-height: 31px;
  color: var(--ink-soft);
  background: #efe3cf;
  font-size: 8px;
  text-align: center;
}

.guitar-string-label,
.guitar-fret-label,
.guitar-fret-cell,
.guitar-string-play {
  display: grid;
  place-items: center;
}

.guitar-string-label {
  padding: 7px;
  color: var(--navy);
  background: #efe3cf;
  font-size: 8px;
  font-weight: 900;
}

.guitar-string-label strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
}

.guitar-fret-cell {
  position: relative;
  border-left: 1px solid rgba(83, 61, 38, 0.16);
}

.guitar-fret-cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(83, 61, 38, 0.38);
}

.guitar-fret-marker {
  position: relative;
  z-index: 1;
  width: 39px;
  height: 39px;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.2);
  border-radius: 50%;
  background: var(--mint-soft);
  cursor: pointer;
}

.guitar-fret-marker.is-root {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
}

.guitar-fret-marker.is-playing {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  transform: scale(1.08);
}

.guitar-fret-marker strong,
.guitar-fret-marker small {
  display: block;
  line-height: 1;
}

.guitar-fret-marker strong {
  font-family: var(--display);
  font-size: 11px;
}

.guitar-fret-marker small {
  margin-top: 3px;
  font-size: 6px;
}

.guitar-string-play {
  color: var(--navy);
  border: 0;
  border-left: 1px solid rgba(83, 61, 38, 0.16);
  background: #efe3cf;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.guitar-string-play.is-playing {
  color: var(--white);
  background: var(--coral);
}

.guitar-legend {
  margin-top: 11px;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 8px;
}

.guitar-legend i {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: -1px;
}

.guitar-legend .root { background: var(--coral); }
.guitar-legend .scale { background: var(--mint); }
.guitar-legend .empty {
  border: 1px solid var(--line);
  background: transparent;
}

.guitar-navigation {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* Chord foundation */
.foundation-screen {
  padding: 28px 0 90px;
}

.foundation-shell {
  max-width: 980px;
  margin: 0 auto;
}

.foundation-no-rush {
  justify-self: end;
  padding: 7px 10px;
  color: var(--coral);
  border: 1px solid rgba(221, 104, 83, 0.25);
  border-radius: 999px;
  background: #fff4ee;
  font-size: 9px;
  font-weight: 800;
}

.foundation-hero {
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--white), #fff4e9);
  box-shadow: 0 22px 70px rgba(31, 45, 43, 0.09);
}

.foundation-hero h2 {
  margin: 10px 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(27px, 5vw, 46px);
}

.foundation-hero h2 em {
  color: var(--coral);
  font-style: normal;
}

.foundation-hero > p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.foundation-anchor {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(31, 45, 43, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.foundation-anchor span,
.foundation-anchor b,
.foundation-anchor strong {
  display: block;
}

.foundation-anchor b {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.foundation-anchor strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
}

.foundation-anchor i {
  color: var(--coral);
  font-style: normal;
}

.foundation-level-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.foundation-level-card {
  position: relative;
  min-height: 190px;
  padding: 22px 18px 18px;
  color: var(--navy);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(31, 45, 43, 0.07);
  transition: transform 160ms ease, border-color 160ms ease;
}

.foundation-level-card:hover {
  transform: translateY(-3px);
  border-color: rgba(221, 104, 83, 0.4);
}

.foundation-level-card small,
.foundation-level-card strong,
.foundation-level-card em {
  display: block;
}

.foundation-level-number {
  position: absolute;
  top: 15px;
  right: 16px;
  color: rgba(221, 104, 83, 0.22);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 900;
}

.foundation-level-card small {
  margin-bottom: 20px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 900;
}

.foundation-level-card strong {
  font-family: var(--display);
  font-size: 17px;
}

.foundation-level-card p {
  min-height: 43px;
  margin: 9px 0 14px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.foundation-level-card em {
  color: var(--navy);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.foundation-reference {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.78);
}

.foundation-reference summary {
  padding: 16px 0;
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.foundation-reference-groups {
  padding: 2px 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.foundation-reference-groups > div {
  padding: 15px;
  border-radius: 15px;
  background: var(--white);
}

.foundation-reference h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 14px;
}

.foundation-reference p {
  margin: 0;
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(31, 45, 43, 0.12);
  font-size: 10px;
}

.foundation-reference p:last-child {
  border-bottom: 0;
}

.foundation-reference strong {
  color: var(--coral);
  font-family: var(--display);
  white-space: nowrap;
}

.foundation-random-link {
  margin: 16px auto 0;
  padding: 10px 16px;
  display: block;
  color: var(--ink-soft);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.foundation-round-head {
  margin: 13px 0;
  display: grid;
  grid-template-columns: minmax(0, 210px) 1fr;
  align-items: end;
  gap: 24px;
}

.foundation-round-head > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 9px;
}

.foundation-dashboard {
  max-width: 520px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.72);
}

.foundation-dashboard > div {
  padding: 10px;
  text-align: center;
}

.foundation-dashboard > div + div {
  border-left: 1px solid var(--line);
}

.foundation-dashboard span,
.foundation-dashboard strong {
  display: block;
}

.foundation-dashboard span {
  color: var(--ink-soft);
  font-size: 8px;
}

.foundation-dashboard strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 16px;
}

.foundation-question-copy {
  margin-bottom: 12px;
}

.foundation-formula-display {
  max-width: 690px;
  min-height: 112px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(221, 104, 83, 0.22);
  border-radius: 22px;
  background: linear-gradient(130deg, #fffaf3, #fde8dc);
  font-family: var(--display);
  font-size: clamp(29px, 7vw, 52px);
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.foundation-display-tip {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.chord-audio-row {
  max-width: 690px;
  margin: 10px auto 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  border: 1px solid rgba(24, 63, 59, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.78);
}

.chord-audio-row p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.chord-listen-button {
  min-height: 34px;
  padding: 7px 12px;
  flex: 0 0 auto;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.2);
  border-radius: 999px;
  background: var(--mint-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.chord-listen-button:hover {
  transform: translateY(-2px);
  background: #cdebe1;
}

.chord-listen-button.is-playing {
  color: var(--white);
  background: var(--coral);
}

.chord-audio-row-random {
  margin-top: -10px;
  margin-bottom: 20px;
}

.foundation-choices {
  max-width: 760px;
  margin: 0 auto;
}

.foundation-choice-button {
  min-height: 58px;
  font-size: 11px;
}

.foundation-choice-button.is-formula-choice {
  font-family: var(--display);
  font-size: 16px;
}

.foundation-result[hidden],
#foundation-menu[hidden],
#foundation-play-area[hidden] {
  display: none;
}

.foundation-result {
  max-width: 720px;
  margin: 28px auto 0;
}

.foundation-result-mark {
  width: 88px;
  height: 72px;
  margin: 22px auto;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 22px;
  background: var(--coral);
  box-shadow: 6px 6px 0 var(--yellow);
  font-family: var(--display);
  font-size: 24px;
}

.foundation-result-stats {
  grid-template-columns: repeat(3, 1fr);
}

.foundation-result-actions {
  flex-wrap: wrap;
}

/* Chord quiz */
.chord-screen {
  padding: 28px 0 90px;
}

.chord-shell {
  max-width: 980px;
  margin: 0 auto;
}

.chord-topbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.chord-progress-copy {
  justify-self: end;
  text-align: right;
}

.chord-progress-copy span,
.chord-progress-copy strong {
  display: block;
}

.chord-progress-copy span {
  color: var(--ink-soft);
  font-size: 8px;
}

.chord-progress-copy strong {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 13px;
}

.chord-progress-track {
  margin-bottom: 14px;
}

.chord-dashboard {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.72);
}

.chord-dashboard > div {
  padding: 10px 14px;
  text-align: center;
}

.chord-dashboard > div + div {
  border-left: 1px solid var(--line);
}

.chord-dashboard span,
.chord-dashboard strong {
  display: block;
}

.chord-dashboard span {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.chord-dashboard strong {
  font-family: var(--display);
  font-size: 16px;
}

.chord-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 25px 80px rgba(31, 45, 43, 0.1);
}

.chord-scope-pill {
  padding: 7px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 9px;
  font-weight: 800;
}

.chord-question-copy {
  margin-bottom: 17px;
}

.chord-name-display {
  width: fit-content;
  margin: 12px auto 0;
  padding: 8px 16px;
  color: var(--navy);
  border: 1px solid rgba(24, 63, 59, 0.18);
  border-radius: 999px;
  background: var(--mint-soft);
  font-family: var(--display);
  font-size: 17px;
}

.chord-note-stage {
  max-width: 720px;
  margin-bottom: 22px;
}

.chord-note-stage .staff-canvas {
  height: 226px;
}

.chord-note-caption {
  min-height: 40px;
  padding: 10px 12px 4px;
  color: var(--navy);
  border-top: 1px dashed rgba(31, 45, 43, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.chord-answer-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.chord-answer-heading strong,
.chord-answer-heading small {
  display: block;
}

.chord-answer-heading strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.chord-answer-heading small,
.chord-answer-heading > span {
  color: var(--ink-soft);
  font-size: 9px;
}

.chord-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
}

.chord-choice-button {
  min-height: 54px;
  padding-inline: 9px;
}

.chord-feedback {
  max-width: none;
}

.chord-result[hidden],
.chord-card[hidden] {
  display: none;
}

.chord-result {
  max-width: 720px;
  margin: 35px auto 0;
}

.chord-result-mark {
  width: 82px;
  height: 82px;
  margin: 22px auto;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 25px;
  background: var(--coral);
  box-shadow: 6px 6px 0 var(--yellow);
  font-family: Georgia, serif;
  font-size: 35px;
  transform: rotate(-4deg);
}

.quiz-screen {
  padding: 27px 0 80px;
}

.quiz-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 20px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.progress-copy span {
  color: var(--ink-soft);
  font-weight: 700;
}

.progress-copy strong {
  font-size: 11px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 45, 43, 0.1);
}

.progress-track span {
  width: 10%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  transition: width 300ms ease;
}

.stat-pills {
  display: flex;
  gap: 8px;
}

.stat-pill {
  min-width: 92px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.68);
}

.stat-pill span,
.stat-pill strong {
  display: block;
}

.stat-pill > span {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.stat-pill strong {
  font-family: var(--display);
  font-size: 16px;
}

.stat-pill.streak i {
  color: var(--coral);
  font-style: normal;
  font-size: 11px;
}

.question-card {
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 25px 80px rgba(31, 45, 43, 0.1);
}

.question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-type {
  color: var(--white);
  background: var(--navy);
}

.listen-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--navy);
  border-radius: 999px;
  background: var(--mint-soft);
  font-size: 11px;
  font-weight: 800;
}

.listen-button:hover {
  background: var(--mint);
}

.question-copy {
  max-width: 820px;
  margin: 25px auto 22px;
  text-align: center;
}

.question-number {
  margin-bottom: 9px;
}

.question-copy h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.note-stage {
  position: relative;
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 8px 18px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.staff-canvas {
  position: relative;
  width: 100%;
  height: 246px;
}

.staff-line {
  position: absolute;
  left: 68px;
  right: 18px;
  height: 1px;
  background: rgba(31, 45, 43, 0.42);
}

.staff-line::before,
.staff-line::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 1px;
  height: 3px;
  background: rgba(31, 45, 43, 0.36);
}

.staff-line::before {
  left: 0;
}

.staff-line::after {
  right: 0;
}

.line-1 {
  top: 53px;
}

.line-2 {
  top: 67px;
}

.line-3 {
  top: 81px;
}

.line-4 {
  top: 95px;
}

.line-5 {
  top: 109px;
}

.line-6 {
  top: 137px;
}

.line-7 {
  top: 151px;
}

.line-8 {
  top: 165px;
}

.line-9 {
  top: 179px;
}

.line-10 {
  top: 193px;
}

.clef {
  position: absolute;
  left: 14px;
  z-index: 2;
  width: 62px;
  color: var(--ink);
  font-family: "Apple Symbols", "Noto Music", "Segoe UI Symbol", serif;
  line-height: 1;
  text-align: center;
}

.treble-clef {
  top: 36px;
  font-size: 73px;
}

.bass-clef {
  top: 128px;
  font-size: 52px;
}

.staff-note-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.staff-note {
  position: absolute;
  left: var(--note-x);
  top: var(--note-y);
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
}

.staff-note-head {
  position: absolute;
  left: 11px;
  top: 14px;
  width: 21px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 0 rgba(31, 45, 43, 0.12);
  transform: rotate(-16deg);
}

.staff-note-head::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 38px;
  border-radius: 2px;
  background: inherit;
}

.staff-note.stem-up .staff-note-head::after {
  right: 1px;
  bottom: 5px;
}

.staff-note.stem-down .staff-note-head::after {
  left: 1px;
  top: 6px;
}

.staff-note.target-note .staff-note-head {
  background: var(--coral);
}

.staff-accidental {
  position: absolute;
  left: -13px;
  top: 2px;
  min-width: 25px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.staff-note.target-note .staff-accidental {
  color: #b84f3b;
}

.ledger-line {
  position: absolute;
  left: var(--ledger-x);
  top: var(--ledger-y);
  width: 38px;
  height: 1px;
  background: rgba(31, 45, 43, 0.62);
  transform: translateX(-50%);
}

.staff-motion {
  position: absolute;
  left: 52%;
  top: 111px;
  z-index: 3;
  min-width: 42px;
  padding: 1px 8px 3px;
  color: var(--coral);
  border: 1px solid rgba(240, 124, 101, 0.18);
  border-radius: 999px;
  background: var(--paper);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

.staff-caption {
  display: grid;
  grid-template-columns: 1fr minmax(100px, auto) 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 6px;
  padding: 10px 14px 2px;
  border-top: 1px dashed rgba(31, 45, 43, 0.14);
}

.staff-note-label {
  text-align: center;
}

.staff-note-label strong {
  display: inline-block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.staff-note-label.target strong {
  color: #b84f3b;
}

.staff-note-label strong sup {
  margin-left: 2px;
  font-family: var(--body);
  font-size: 8px;
}

.stage-role {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.staff-direction-label {
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.answer-area {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 1px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.answer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.answer-step {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 9px;
  background: var(--navy);
  font-family: var(--display);
  font-size: 11px;
}

.answer-heading strong,
.answer-heading small {
  display: block;
}

.answer-heading strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.answer-heading small {
  color: var(--ink-soft);
  font-size: 9px;
}

.answer-divider {
  background: var(--line);
}

.choice-grid {
  display: grid;
  gap: 7px;
}

.number-choices {
  grid-template-columns: repeat(4, minmax(60px, 1fr));
}

.quality-choices {
  grid-template-columns: repeat(5, minmax(48px, 1fr));
}

.quality-choices.is-basic {
  grid-template-columns: repeat(3, minmax(70px, 1fr));
}

.choice-button {
  min-height: 48px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: transform 140ms ease, border 140ms ease, background 140ms ease;
}

.choice-button:hover:not(:disabled) {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.choice-button.is-selected {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 3px 3px 0 var(--mint);
}

.choice-button.is-correct {
  color: var(--navy);
  border-color: #67ae91;
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px #67ae91;
}

.choice-button.is-wrong {
  color: #9b3d2c;
  border-color: var(--coral);
  background: var(--coral-soft);
}

.choice-button:disabled {
  cursor: default;
}

.choice-button .shortcut {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 500;
}

.feedback-panel {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  border: 1px solid #82bea8;
  border-radius: 16px;
  background: var(--mint-soft);
}

.feedback-panel[hidden] {
  display: none;
}

.feedback-panel.is-wrong {
  border-color: #eea394;
  background: var(--coral-soft);
}

.feedback-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--navy);
  font-weight: 900;
}

.feedback-panel.is-wrong .feedback-icon {
  background: var(--coral);
}

.feedback-copy > strong {
  display: block;
  margin: 1px 0 5px;
  font-family: var(--display);
  font-size: 14px;
}

.feedback-copy > p,
.feedback-copy details p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.derivation-box {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(31, 45, 43, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.74);
}

.derivation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.derivation-head strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 12px;
}

.derivation-head span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.derivation-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.derivation-steps.is-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.derivation-steps li {
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(31, 45, 43, 0.1);
  border-radius: 11px;
  background: var(--white);
}

.derivation-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 7px;
  background: var(--navy);
  font-family: var(--display);
  font-size: 9px;
}

.feedback-panel.is-wrong .derivation-number {
  background: var(--coral);
}

.derivation-step-copy {
  min-width: 0;
}

.derivation-step-copy > strong,
.derivation-step-copy code,
.derivation-step-copy p {
  display: block;
}

.derivation-step-copy > strong {
  margin-bottom: 5px;
  font-size: 10px;
}

.derivation-step-copy code {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
}

.derivation-step-copy p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.55;
}

.feedback-copy details {
  margin-top: 10px;
}

.feedback-copy summary {
  width: fit-content;
  color: var(--navy);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.feedback-copy details p {
  margin-top: 6px;
}

.question-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.ghost-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: transparent;
}

.ghost-button:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.submit-button,
.next-button {
  min-width: 170px;
}

/* Summary */
.summary-screen {
  padding: 45px 0 100px;
}

.summary-card {
  max-width: 670px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.score-ring {
  width: 170px;
  height: 170px;
  margin: 25px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0%, var(--paper-deep) 0);
}

.score-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--white);
}

.score-ring div {
  z-index: 1;
  grid-area: 1 / 1;
}

.score-ring strong,
.score-ring span {
  display: block;
}

.score-ring strong {
  font-family: var(--display);
  font-size: 36px;
}

.score-ring span {
  color: var(--ink-soft);
  font-size: 10px;
}

.summary-card h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 28px;
}

.summary-card > p {
  color: var(--ink-soft);
  font-size: 13px;
}

.summary-stats {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.summary-stats div {
  padding: 19px 10px;
}

.summary-stats div + div {
  border-left: 1px solid var(--line);
}

.summary-stats span,
.summary-stats strong {
  display: block;
}

.summary-stats span {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.summary-stats strong {
  font-family: var(--display);
  font-size: 19px;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Wrongbook */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(23, 38, 36, 0.34);
  backdrop-filter: blur(3px);
}

.wrongbook-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: min(440px, 94vw);
  padding: max(28px, env(safe-area-inset-top, 0px))
    max(28px, env(safe-area-inset-right, 0px))
    max(28px, env(safe-area-inset-bottom, 0px)) 28px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(31, 45, 43, 0.16);
  transform: translateX(104%);
  transition: transform 260ms ease;
}

.wrongbook-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 27px;
}

.close-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 24px;
}

.drawer-description {
  margin: 16px 0 24px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.wrong-list {
  display: grid;
  gap: 11px;
}

.wrong-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.wrong-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wrong-item-type {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
}

.wrong-item strong {
  font-size: 13px;
}

.wrong-answer {
  margin: 10px 0 13px;
  color: var(--ink-soft);
  font-size: 10px;
}

.wrong-item-actions {
  display: flex;
  gap: 7px;
}

.wrong-item-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.wrong-item-actions button:first-child {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.empty-state span,
.empty-state strong {
  display: block;
}

.empty-state span {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 42px;
}

.empty-state strong {
  font-family: var(--display);
  font-size: 14px;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.text-button {
  display: block;
  margin: 24px auto 0;
  padding: 7px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.text-button.danger {
  color: #a44332;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 20;
  padding: 10px 16px;
  color: var(--white);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(31, 45, 43, 0.2);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

@media (max-width: 880px) {
  .intro-screen.is-active {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .feature-list {
    justify-content: center;
  }

  .hero-description,
  .difficulty-section {
    margin-left: auto;
    margin-right: auto;
  }

  .home-actions {
    justify-content: center;
  }

  .guitar-key-card {
    grid-template-columns: 1fr 1.8fr;
  }

  .guitar-completion {
    grid-column: 1 / -1;
  }

  .guitar-practice-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .speed-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .speed-timer {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 490px;
  }

  .quiz-status {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-pills {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .stat-pill {
    flex: 1 1 calc(50% - 4px);
    min-width: 130px;
  }

  .answer-area {
    grid-template-columns: 1fr;
  }

  .answer-divider {
    height: 1px;
  }
}

@media (max-width: 600px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: calc(72px + env(safe-area-inset-top, 0px));
    height: auto;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .brand-tag,
  .notebook-button > span:nth-child(2),
  .keyboard-tip {
    display: none;
  }

  h1 {
    font-size: 43px;
  }

  .hero-description {
    font-size: 15px;
  }

  .difficulty-grid {
    grid-template-columns: 1fr;
  }

  .chord-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 7px;
  }

  .chord-topbar .speed-title span {
    display: none;
  }

  .guitar-topbar {
    grid-template-columns: auto 1fr auto;
  }

  .guitar-today-label {
    max-width: 74px;
    padding: 6px;
    font-size: 6px;
    text-align: center;
  }

  .guitar-circle {
    display: flex;
    overflow-x: auto;
  }

  .guitar-circle button {
    min-width: 55px;
    min-height: 44px;
  }

  .guitar-key-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guitar-completion {
    grid-column: auto;
  }

  .guitar-scale-notes {
    grid-template-columns: repeat(4, 1fr);
  }

  .guitar-practice-list {
    grid-template-columns: 1fr;
  }

  .guitar-practice-item {
    min-height: 112px;
  }

  .guitar-section-head {
    align-items: start;
    flex-direction: column;
  }

  .guitar-view-toggle {
    align-self: stretch;
  }

  .guitar-view-toggle button {
    flex: 1;
    min-height: 44px;
  }

  .guitar-navigation {
    flex-direction: column;
  }

  footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .foundation-no-rush {
    padding: 6px 7px;
    font-size: 7px;
  }

  .foundation-anchor {
    grid-template-columns: 1fr;
  }

  .foundation-anchor i {
    transform: rotate(90deg);
  }

  .foundation-level-grid,
  .foundation-reference-groups {
    grid-template-columns: 1fr;
  }

  .foundation-level-card {
    min-height: 160px;
  }

  .foundation-round-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foundation-formula-display {
    min-height: 94px;
    padding: 17px 10px;
  }

  .chord-audio-row {
    padding: 10px;
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .foundation-result-stats {
    grid-template-columns: 1fr;
  }

  .foundation-result-stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .chord-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .chord-dashboard > div:nth-child(3) {
    border-left: 0;
  }

  .chord-dashboard > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .chord-card {
    padding: 20px 14px;
    border-radius: 22px;
  }

  .chord-scope-pill {
    display: none;
  }

  .chord-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chord-choice-button {
    min-width: 0;
    font-size: 10px;
  }

  .difficulty-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .difficulty-top {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .difficulty-check {
    position: absolute;
    right: 14px;
  }

  .difficulty-card strong,
  .difficulty-card small {
    grid-column: 2;
  }

  .start-button {
    width: 100%;
  }

  .home-actions {
    flex-direction: column;
  }

  .flash-entry-button {
    width: 100%;
    justify-content: center;
  }

  .speed-screen {
    padding-top: 13px;
  }

  .speed-topbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .speed-title span {
    display: none;
  }

  .speed-title strong {
    font-size: 16px;
  }

  .speed-best {
    min-width: 62px;
    padding-inline: 8px;
  }

  .speed-dashboard {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .speed-timer,
  .speed-live-stat {
    min-height: 62px;
    padding: 10px;
  }

  .speed-card {
    min-height: 470px;
    padding: 20px 14px;
    border-radius: 22px;
  }

  .speed-hint {
    display: none;
  }

  .speed-kicker {
    margin-top: 38px;
  }

  .speed-card h2 {
    font-size: 42px;
  }

  .speed-choices {
    grid-template-columns: repeat(2, 1fr);
  }

  .speed-choice-button {
    min-height: 70px;
  }

  .semitone-ladder span {
    font-size: 6px;
  }

  .speed-result-grid {
    grid-template-columns: 1fr;
  }

  .speed-result-grid div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .orbit-one,
  .orbit-two {
    width: 340px;
    height: 340px;
  }

  .demo-card {
    width: 91%;
    padding: 21px;
  }

  .streak-card {
    right: 4px;
    bottom: 25px;
  }

  .note-one {
    left: 1%;
  }

  .note-two {
    right: 1%;
  }

  .quiz-screen {
    padding-top: 16px;
  }

  .question-card {
    padding: 20px 15px;
    border-radius: 22px;
  }

  .question-copy {
    margin-top: 22px;
  }

  .question-copy h2 {
    font-size: 21px;
  }

  .note-stage {
    padding: 3px 5px 10px;
  }

  .staff-line {
    left: 48px;
    right: 7px;
  }

  .clef {
    left: -4px;
  }

  .staff-motion {
    left: 53%;
    font-size: 19px;
  }

  .staff-caption {
    grid-template-columns: 1fr minmax(92px, 1.2fr) 1fr;
    gap: 3px;
    margin: 0 3px;
    padding-inline: 3px;
  }

  .staff-direction-label {
    font-size: 8px;
  }

  .staff-note-label strong {
    font-size: 16px;
  }

  .number-choices {
    grid-template-columns: repeat(4, 1fr);
  }

  .quality-choices {
    grid-template-columns: repeat(5, 1fr);
  }

  .quality-choices.is-basic {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice-button {
    min-width: 0;
    min-height: 45px;
    font-size: 10px;
  }

  .feedback-panel {
    grid-template-columns: 30px 1fr;
    padding: 15px;
  }

  .derivation-steps {
    grid-template-columns: 1fr;
  }

  .derivation-steps.is-four {
    grid-template-columns: 1fr;
  }

  .derivation-steps li {
    padding: 10px;
  }

  .feedback-icon {
    width: 30px;
    height: 30px;
  }

  .question-actions {
    flex-wrap: wrap;
  }

  .question-actions .ghost-button {
    order: 2;
    width: 100%;
    min-height: 42px;
  }

  .submit-button,
  .next-button {
    width: 100%;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }

  .summary-stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary-actions {
    flex-direction: column-reverse;
  }

  .summary-actions button {
    width: 100%;
  }
}

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