@font-face {
  font-family: DM Sans;
  src: url("/assets/fonts/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("/assets/fonts/dm-sans-600.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Pixelify Sans;
  src: url("/assets/fonts/pixelify-sans-600.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101c29;
  --panel: #192b36;
  --deep: #0c1722;
  --ink: #f6e9cd;
  --muted: #a7b9b8;
  --line: #354a51;
  --orange: #eeab65;
  --gold: #f0c477;
  --mint: #a4d3b2;
  --pixel: "Pixelify Sans", monospace;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 0, #27454a45, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 3px, #07132020 3px 4px);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
button:hover {
  filter: brightness(1.12);
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--pixel);
  font-weight: 600;
}
::selection {
  background: var(--gold);
  color: var(--deep);
}
.site-header {
  height: 84px;
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font: 22px var(--pixel);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand b {
  color: var(--gold);
}
.brand-mark {
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 #080f19);
}
.header-note {
  font: 10px monospace;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-note i,
.tag i {
  width: 5px;
  height: 5px;
  background: var(--mint);
  box-shadow: 0 0 9px #a4d3b260;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.circle-question {
  border: 1px solid var(--muted);
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font: 13px var(--pixel);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 28px 48px 0;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.eyebrow {
  font: 10px monospace;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.eyebrow span {
  padding: 0 8px;
  color: #587078;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  margin-top: 8px;
}
.tuning-label {
  font: 9px monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #152530;
}
.tuning-label b {
  color: var(--gold);
  font-size: 12px;
  margin-left: 12px;
  letter-spacing: 3px;
}
.song-banner {
  position: relative;
  height: 300px;
  margin-bottom: 26px;
  border: 2px solid #476069;
  box-shadow:
    0 5px 0 #070f19,
    inset 0 0 0 3px #0a1620;
  overflow: hidden;
  background: #122633;
}
.banner-art {
  position: absolute;
  inset: 0;
  background: url("/assets/moonlit-porch.png") center 56% / cover no-repeat;
  image-rendering: pixelated;
}
.song-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a1726d9, #0a172662 38%, transparent 67%);
  pointer-events: none;
  box-shadow: inset 0 0 0 3px #0d1c2860;
}
.song-info {
  position: relative;
  z-index: 2;
  padding: 26px 32px;
  max-width: 590px;
}
.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font: 10px monospace;
  letter-spacing: 1.6px;
}
.tag span {
  margin-left: 12px;
  color: #9eafb4;
  font-size: 9px;
  letter-spacing: 1px;
}
.song-info h2 {
  font-size: 58px;
  line-height: 0.9;
  margin: 16px 0 13px;
  color: #ffe3a6;
  letter-spacing: -1px;
  text-shadow: 4px 4px 0 #101723;
}
.title-star {
  font-size: 23px;
  color: var(--gold);
  display: inline-block;
  vertical-align: top;
  margin: 0 0 0 14px;
}
.song-info p {
  font-size: 13px;
  color: #d2ddd3;
}
.song-meta {
  display: flex;
  gap: 18px;
  font-size: 11px;
  margin-top: 20px;
  color: #e3e7d5;
}
.song-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.song-meta > span + span {
  border-left: 1px solid #81949266;
  padding-left: 18px;
}
.song-meta b {
  color: var(--gold);
}
.difficulty i {
  width: 4px;
  height: 7px;
  background: var(--mint);
}
.difficulty i:nth-child(2) {
  height: 11px;
  background: #476460;
}
.difficulty i:nth-child(3) {
  height: 15px;
  background: #476460;
  margin-right: 5px;
}
.banner-stamp {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  font: 9px monospace;
  letter-spacing: 2px;
  color: #f8d69b;
  text-shadow: 1px 2px #142029;
  display: grid;
  text-align: center;
  gap: 5px;
}
.banner-stamp b {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 1.2px;
}
.stamp-star {
  font-size: 19px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}
.practice {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 #080f19;
}
.practice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  gap: 16px;
}
.mode-tabs {
  display: flex;
  gap: 24px;
  height: 100%;
  min-width: 0;
}
.mode-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.mode-tabs button.active {
  border-color: var(--gold);
  color: var(--gold);
}
.mode-tabs button span {
  font: 20px var(--pixel);
  margin-right: 7px;
}
.sheet-button {
  white-space: nowrap;
  font-size: 11px;
}
.practice-toolbar {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 14px 18px;
  font-size: 12px;
  background: #1d3039;
}
.practice-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-toolbar select {
  font-size: 12px;
  max-width: 180px;
}
.practice-toolbar > span {
  margin-left: auto;
  color: var(--muted);
  font: 10px monospace;
  white-space: nowrap;
}
select {
  border: 1px solid #4d6569;
  border-radius: 0;
  background: #10212d;
  color: var(--ink);
  padding: 8px 10px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.loop-control {
  white-space: nowrap;
}
.game-stage {
  margin: 0 12px;
  background: #0d1c29;
  border: 1px solid #42585f;
  box-shadow: 0 3px 0 #0a1520;
  overflow: hidden;
}
.stage-top {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  font: 9px monospace;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-bottom: 1px solid #2a404b;
  background: #152833;
}
.stage-top span:last-child {
  color: var(--gold);
  font-size: 8px;
  text-align: right;
}
.tab-canvas-wrap {
  height: 264px;
  position: relative;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #00000013 3px 4px
  );
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(
    90deg,
    #0d1c2955,
    #0d1c29ed 30%,
    #0d1c29f5 66%,
    #0d1c2988
  );
}
.stage-overlay[hidden] {
  display: none;
}
.small-pick {
  display: block;
  transform: rotate(-8deg);
  filter: drop-shadow(3px 3px 0 #020b15);
  margin-bottom: 2px;
  image-rendering: pixelated;
}
.stage-overlay h3 {
  font-size: 29px;
  line-height: 1.1;
}
.stage-overlay p {
  font-size: 12px;
  color: var(--muted);
}
.primary {
  background: var(--gold);
  color: #252b2c;
  border: 2px solid #ffe0a0;
  border-radius: 0;
  padding: 11px 25px;
  font: 19px var(--pixel);
  box-shadow:
    0 4px 0 #96623e,
    0 7px 0 #06121c;
}
.primary:hover {
  background: #ffcf83;
  box-shadow:
    0 4px 0 #a87649,
    0 7px 0 #06121c;
}
.stage-overlay .primary {
  margin: 6px 0 5px;
}
.demo-link {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 6px;
}
.demo-link span {
  color: var(--gold);
  margin-left: 5px;
}
.stage-bottom {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid #2a404b;
  font: 9px monospace;
  color: var(--muted);
}
.stage-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--gold);
}
.play-line-key {
  width: 3px;
  height: 10px;
  background: var(--orange);
}
#live-feedback {
  font:
    11px "DM Sans",
    sans-serif;
  text-align: center;
  color: var(--mint);
}
.stage-bottom > span:last-child {
  white-space: nowrap;
  font-size: 8px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.transport-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  padding: 3px;
  min-width: 28px;
}
.play-control {
  width: 38px;
  height: 36px;
  background: #315b52;
  border: 1px solid #63967c;
  box-shadow: 0 3px 0 #0b171d;
  font-size: 14px;
  color: #d1edc6;
}
.tempo-control {
  flex: 1;
  max-width: 260px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  min-width: 100px;
}
.tempo-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px monospace;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 9px;
}
.tempo-control b {
  font: 23px var(--pixel);
  color: var(--gold);
}
.tempo-control small {
  font: 9px monospace;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  height: 5px;
  display: block;
  cursor: pointer;
  appearance: none;
  background: #476269;
  border-radius: 0;
  accent-color: var(--gold);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 15px;
  background: var(--gold);
  border: 2px solid #ffe1a5;
  box-shadow: 2px 2px 0 #0a1420;
}
input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 12px;
  background: var(--gold);
  border: 2px solid #ffe1a5;
  border-radius: 0;
}
.metronome {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.beat-dots {
  display: flex;
  gap: 5px;
}
.beat-dots i {
  width: 6px;
  height: 6px;
  background: #40535a;
}
.beat-dots i.active {
  background: var(--gold);
  box-shadow: 0 0 9px #f0c47766;
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 10px;
  padding: 16px 18px;
}
.scoreboard > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.stat-icon {
  font: 28px var(--pixel);
  color: var(--gold);
}
.scoreboard > div:nth-child(3) .stat-icon {
  color: #a4d3b2;
}
.scoreboard > div:nth-child(2) .stat-icon {
  color: #8db9d8;
}
.stat-name {
  display: block;
  font: 8px monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
.scoreboard strong {
  display: block;
  font: 30px var(--pixel);
  line-height: 1.2;
  margin-top: 3px;
}
.scoreboard small {
  font-size: 18px;
  color: var(--muted);
}
.scoreboard .progress-stat {
  display: block;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.progress-track {
  height: 7px;
  background: #091824;
  border: 1px solid #3b525b;
  margin: 10px 0 7px;
}
#progress-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, #c5c57b 0 7px, #788b5a 7px 9px);
  transition: width 0.2s;
}
.progress-stat > span:last-child {
  font-size: 9px;
  color: var(--muted);
}
aside {
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-width: 0;
}
.input-card {
  background: #1c3039;
  border: 1px solid #49605f;
  padding: 18px;
  box-shadow: 0 4px 0 #080f19;
}
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font: 9px monospace;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 15px;
}
.panel-kicker > span:first-child {
  font-size: 17px;
}
.panel-kicker > span:last-child {
  margin-left: auto;
  color: #8aa79d;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.card-title h3 {
  font-size: 26px;
}
.status-badge {
  font: 8px monospace;
  padding: 5px;
  color: #b2c0ba;
  background: #0e212c;
  border: 1px solid #41575b;
  white-space: nowrap;
}
.status-badge.connected {
  background: #31584b;
  color: #d1edc6;
  border-color: #7da58b;
}
.input-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.field-label {
  font: 9px monospace;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
  margin: 20px 0 8px;
}
#input-select {
  width: 100%;
  font-size: 12px;
  padding: 10px 8px;
}
.connect-button {
  width: 100%;
  background: #456f59;
  color: #f1f0d1;
  border: 1px solid #88aa7f;
  box-shadow: 0 3px 0 #0d1b24;
  border-radius: 0;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.meter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0 10px;
}
.input-meter {
  height: 14px;
  flex: 1;
  background: repeating-linear-gradient(
    90deg,
    #39514f 0 5px,
    transparent 5px 8px
  );
  overflow: hidden;
}
#meter-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    #bbd68c 0 5px,
    transparent 5px 8px
  );
  transition: width 0.1s;
}
#input-note {
  font: 17px var(--pixel);
  color: var(--gold);
  min-width: 25px;
}
.input-hint {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.audio-settings {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.audio-settings summary {
  cursor: pointer;
}
.audio-settings label {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.audio-settings .text-button {
  font-size: 11px;
  margin-top: 14px;
}
.coach-card {
  position: relative;
  padding: 22px 20px 18px 30px;
  background: #e5d5ae;
  color: #293e3b;
  border: 2px solid #bcaa80;
  box-shadow:
    3px 4px 0 #0a1520,
    inset 0 0 0 4px #e5d5ae,
    inset 0 0 0 5px #b2a77e;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #6c624808 3px 4px
  );
  transform: rotate(-1deg);
  margin: 2px 3px 0;
}
.coach-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #526351;
  padding-left: 9px;
  display: block;
}
.card-corner {
  position: absolute;
  top: 17px;
  left: 12px;
  font: 15px var(--pixel);
  color: #5a7355;
  line-height: 1;
}
.coach-card h3 {
  font-size: 29px;
  line-height: 1.05;
  margin: 18px 0 12px;
}
.coach-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #435448;
}
.coach-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #b9b08c;
  padding-top: 12px;
  margin-top: 16px;
}
.coach-footer span {
  font-size: 10px;
  color: #546348;
}
.coach-footer .pixel-sprig {
  font: 24px var(--pixel);
  color: #557053;
}
.lesson-strip {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.lesson-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}
.lesson-number {
  font: 38px var(--pixel);
  color: #668776;
}
.lesson-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--gold);
}
.lesson-heading h3 {
  font-size: 20px;
  line-height: 1.15;
  margin-top: 7px;
  max-width: 180px;
}
.lesson-step b {
  font-size: 12px;
  color: #d3ddcd;
}
.lesson-step p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 5px;
}
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  font: 8px monospace;
  letter-spacing: 1px;
  color: #8ba19e;
}
footer > span:nth-child(2) {
  font:
    10px "DM Sans",
    sans-serif;
  letter-spacing: 0;
}
footer > span:last-child {
  font: 17px var(--pixel);
  color: var(--gold);
}
dialog {
  border: 2px solid #658078;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 38px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow:
    6px 6px 0 #050d17,
    inset 0 0 0 4px #14232e;
}
dialog::backdrop {
  background: #050e1bcb;
}
dialog h2 {
  font-size: 36px;
  line-height: 1.05;
  margin: 12px 0 20px;
  color: var(--gold);
}
dialog p,
dialog li {
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0;
  color: #becdc6;
}
dialog li b {
  color: var(--ink);
}
dialog ol {
  padding-left: 22px;
}
/* The note color key mirrors the tiles: same palette, same cut-corner shadow. */
.note-key {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.note-key li {
  padding: 6px 2px;
  text-align: center;
  font: 14px var(--pixel);
  color: #112735;
  box-shadow: 2px 3px 0 #060f19;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--muted);
}
dialog .primary {
  margin-top: 16px;
}
#sheet-dialog {
  max-width: 880px;
}
#sheet-dialog img {
  width: 100%;
  display: block;
}
.result-stars {
  font: 42px var(--pixel);
  color: var(--gold);
  margin-top: 20px;
}
#results-dialog {
  text-align: center;
}
.error {
  color: #ffb49a !important;
}
/* Small original pixel symbols and restrained ambient motion. */
.pixel-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}
.mode-tabs button .pixel-icon {
  margin-right: 6px;
  width: 17px;
  height: 17px;
}
.stat-icon .pixel-icon {
  display: block;
  width: 24px;
  height: 24px;
}
.fireflies {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.fireflies i {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffe1a0;
  box-shadow: 0 0 8px #edbf7480;
  animation: porch-drift 9s steps(8, end) infinite;
  left: 43%;
  top: 64%;
  opacity: 0.6;
}
.fireflies i:nth-child(2) {
  left: 55%;
  top: 43%;
  animation-delay: -3s;
  animation-duration: 11s;
}
.fireflies i:nth-child(3) {
  left: 32%;
  top: 83%;
  animation-delay: -6s;
  animation-duration: 13s;
}
.fireflies i:nth-child(4) {
  left: 62%;
  top: 78%;
  animation-delay: -2s;
  animation-duration: 12s;
}
.fireflies i:nth-child(5) {
  left: 49%;
  top: 88%;
  animation-delay: -5s;
}
@keyframes porch-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate(8px, -14px);
    opacity: 0.85;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 32px;
  }
  .song-banner {
    height: 320px;
  }
  .tab-canvas-wrap {
    height: 280px;
  }
}
@media (max-width: 1150px) {
  .site-header {
    padding: 0 28px;
  }
  main {
    padding: 24px 28px 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .sheet-button span {
    display: none;
  }
  .mode-tabs {
    gap: 18px;
  }
  .transport {
    gap: 12px;
  }
  .beat-dots {
    display: none;
  }
  .tempo-control {
    padding-left: 12px;
  }
  .stat-icon {
    display: none;
  }
  .scoreboard {
    gap: 12px;
  }
  .stage-bottom > span:last-child {
    display: none;
  }
  .stage-overlay h3 {
    font-size: 26px;
  }
  .song-banner {
    height: 290px;
  }
  .song-info h2 {
    font-size: 55px;
  }
  .coach-card {
    padding-left: 26px;
  }
  .card-title h3 {
    font-size: 23px;
  }
  .status-badge {
    font-size: 7px;
  }
  .lesson-strip {
    gap: 20px;
  }
  .header-note {
    font-size: 9px;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .song-info {
    padding: 27px;
  }
  .song-banner {
    height: 290px;
  }
  .banner-art {
    background-position: 60% center;
  }
  .song-banner:after {
    background: linear-gradient(90deg, #0a1726e0, #0a172672 45%, transparent);
  }
  .banner-stamp {
    display: none;
  }
  .header-note {
    display: none;
  }
  .lesson-strip {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .lesson-heading h3 {
    max-width: 220px;
  }
  .coach-card {
    margin: 3px 5px;
  }
  .card-title h3 {
    font-size: 26px;
  }
  .status-badge {
    font-size: 8px;
  }
  .stage-overlay h3 {
    font-size: 29px;
  }
  .stat-icon {
    display: block;
  }
  .beat-dots {
    display: flex;
  }
  .transport {
    gap: 20px;
  }
  .tuning-label b {
    display: block;
    margin: 6px 0 0;
  }
  .page-heading h1 {
    font-size: 29px;
  }
}
@media (max-width: 560px) {
  .site-header {
    padding: 0 17px;
    height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 33px;
  }
  .site-header .text-button {
    font-size: 10px;
    gap: 5px;
  }
  main {
    padding: 21px 16px 0;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .tuning-label {
    display: none;
  }
  .song-banner {
    height: 305px;
    margin-bottom: 22px;
  }
  .banner-art {
    background-position: 68% center;
  }
  .song-banner:after {
    background:
      linear-gradient(90deg, #0a1726df, #0a17266b 72%),
      linear-gradient(0deg, #0a17269e, transparent 40%);
  }
  .song-info {
    padding: 24px 20px;
  }
  .song-info h2 {
    font-size: 51px;
    margin-top: 25px;
  }
  .song-info p {
    font-size: 12px;
  }
  .tag {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .tag span {
    margin-left: 4px;
    font-size: 8px;
  }
  .song-meta {
    gap: 12px;
    margin-top: 23px;
    font-size: 10px;
  }
  .song-meta > span + span {
    padding-left: 12px;
  }
  .practice-top {
    padding: 0 12px;
    gap: 8px;
  }
  .mode-tabs {
    gap: 16px;
  }
  .mode-tabs button {
    font-size: 11px;
  }
  .mode-tabs button span {
    font-size: 16px;
    margin-right: 4px;
  }
  .sheet-button {
    font-size: 13px;
  }
  .practice-toolbar {
    padding: 12px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .practice-toolbar label {
    gap: 5px;
    font-size: 11px;
  }
  .practice-toolbar select {
    font-size: 11px;
    max-width: 155px;
    padding: 8px 5px;
  }
  .practice-toolbar > span {
    font-size: 9px;
  }
  .game-stage {
    margin: 0 7px;
  }
  .stage-top {
    padding: 9px 9px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .stage-top span:last-child {
    font-size: 7px;
  }
  .tab-canvas-wrap {
    height: 268px;
  }
  .stage-overlay {
    padding: 16px;
    gap: 11px;
  }
  .stage-overlay h3 {
    font-size: 27px;
    max-width: 250px;
  }
  .stage-overlay p {
    font-size: 11px;
  }
  .stage-bottom {
    padding: 9px;
    font-size: 8px;
    gap: 10px;
  }
  #live-feedback {
    font-size: 10px;
  }
  .transport {
    padding: 16px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .transport-actions {
    gap: 9px;
  }
  .tempo-control {
    max-width: none;
    flex: 1;
  }
  .metronome {
    margin-left: 0;
    font-size: 11px;
  }
  .beat-dots {
    margin-left: auto;
  }
  .scoreboard {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px 12px;
    gap: 14px;
  }
  .stat-name {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .stat-icon {
    font-size: 25px;
  }
  .scoreboard > div {
    gap: 6px;
  }
  .scoreboard strong {
    font-size: 29px;
  }
  .scoreboard .progress-stat {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
  .progress-stat > span:last-child {
    font-size: 10px;
  }
  aside {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .input-card {
    padding: 20px;
  }
  .input-card > p,
  .coach-card p {
    font-size: 13px;
  }
  .input-hint {
    font-size: 12px;
  }
  .coach-card {
    padding: 24px 24px 20px 34px;
    margin: 0 4px;
  }
  .coach-card h3 {
    font-size: 32px;
  }
  .coach-card .eyebrow {
    font-size: 9px;
  }
  .lesson-strip {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
  }
  .lesson-heading h3 {
    max-width: none;
  }
  .lesson-step {
    padding-left: 16px;
    border-left: 2px solid #496257;
  }
  .lesson-step p {
    font-size: 12px;
  }
  .lesson-step b {
    font-size: 13px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  footer {
    font-size: 7px;
    gap: 10px;
  }
  dialog {
    padding: 30px 24px;
  }
  dialog h2 {
    font-size: 30px;
  }
}
@media (max-width: 560px) {
  .transport {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 18px;
  }
  .transport-actions {
    gap: 6px;
  }
  .transport .icon-button {
    width: 36px;
    height: 40px;
  }
  .transport .play-control {
    width: 40px;
    height: 40px;
  }
  .tempo-control {
    min-width: 0;
  }
  .metronome {
    grid-column: 1;
  }
  .beat-dots {
    grid-column: 2;
    justify-self: end;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Two sessions, one real guitar. */
[hidden] { display: none !important; }
.main-menu { padding: 38px 0 24px; }
.main-menu h1 { font-family: var(--pixel); font-size: clamp(28px,4vw,44px); margin: 10px 0; }
.main-menu > p { color: var(--muted); margin-bottom: 26px; }
.menu-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.menu-card { text-align: left; display: flex; flex-direction: column; gap: 16px; padding: 30px; border: 1px solid #527e70; background: linear-gradient(135deg,#254a40,#192b36); box-shadow: 4px 4px 0 #08151e; }
.menu-card:hover { transform: translateY(-3px); }
.menu-number { font-size: 11px; letter-spacing: 1.5px; color: var(--mint); }
.menu-card strong { font: 42px var(--pixel); }
.menu-card > span:not(.menu-number) { color: var(--muted); line-height: 1.7; max-width: 430px; }
.menu-card b { margin-top: 10px; color: var(--mint); }
.play-card { background: linear-gradient(135deg,#493927,#192b36); border-color: #9e7950; }
.play-card .menu-number,.play-card b { color: var(--gold); }
.session-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 24px; }
.session-nav strong { font: 27px var(--pixel); color: var(--gold); }
.session-nav > span { font-size: 13px; color: var(--muted); }
.session-options,.game-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #10232b; font-size: 12px; }
.session-options > span { color: var(--muted); font-size: 11px; }
.game-hud { background: linear-gradient(90deg,#473625,#243744); color: var(--gold); }
.game-hud strong { font: 25px var(--pixel); }
[data-experience="play"] .game-stage { border-color: #b5854d; box-shadow: 0 0 24px #eeab6514; }
.hit-flash { animation: hit-flash 260ms ease-out; }
.miss-flash { animation: miss-flash 420ms ease-out; }
@keyframes hit-flash { from { box-shadow: inset 0 0 0 1px #a4d3b22b; } }
@keyframes miss-flash { from { box-shadow: inset 0 0 0 2px #e3937880, inset 0 0 12px #e3937815; } }
@media(max-width:560px) { .menu-options { grid-template-columns: 1fr; } .menu-card { padding: 24px; } .session-nav { gap: 12px; } .session-nav > span { width: 100%; } .game-hud { gap: 8px; font-size: 10px; } }
@media(prefers-reduced-motion:reduce) { .hit-flash,.miss-flash { animation: none; } .menu-card:hover { transform: none; } }

.difficulty-panel { padding: 16px; background: #13252e; }
.difficulty-options { display: flex; gap: 8px; flex-wrap: wrap; }
.difficulty-options button { flex: 1; padding: 12px; background: #1c303b; border: 1px solid var(--line); font-size: 12px; }
.difficulty-options button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.difficulty-options button:disabled { cursor: default; }
.difficulty-panel p,.leaderboard p,.leaderboard small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.fixed-tempo { font: 20px var(--pixel); color: var(--gold); }
.leaderboard { margin-bottom: 18px; }
.leaderboard ol { padding: 0; list-style: none; font-size: 12px; line-height: 1.6; }
.leaderboard li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.leaderboard li:first-child { color: var(--gold); }
#results-dialog { position: relative; overflow: hidden; }
#results-achievement { color: var(--gold); font: 24px var(--pixel); }
#confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#confetti i { position: absolute; width: 7px; height: 11px; top: -15px; animation: confetti-fall 2.6s ease-in forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift),600px) rotate(540deg); opacity: 0; } }
@media(prefers-reduced-motion:reduce) { #confetti { display: none; } }

#score-particles { pointer-events: none; position: fixed; inset: 0; z-index: 8; }
.score-particle { position: absolute; color: var(--gold); font: 13px var(--pixel); animation: points-to-total 650ms cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes points-to-total { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.85); } 15% { opacity: .75; } 80% { opacity: .55; } 100% { opacity: 0; transform: translate(calc(var(--score-x) - 50%),calc(var(--score-y) - 50%)) scale(.55); } }
.score-arrival { animation: score-arrival 260ms ease-out; }
@keyframes score-arrival { 30% { color: var(--gold); text-shadow: 0 0 8px #f0c47750; } }
@media(prefers-reduced-motion:reduce) { #score-particles { display: none; } }
