/* ============================================================
   Bass Hero — "recital stage at night"
   warm near-black charcoal · amber stage light · brass/copper
   Fraunces (display serif) + IBM Plex Mono (tabular data)
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg0: #100d0a;
  --bg1: #16110d;
  --panel: #1c1611;
  --panel2: #221a13;
  --line: #322618;
  --line-soft: #2a2014;
  --ink: #e8ddcc;
  --ink-dim: #a4937c;
  --ink-faint: #6f6353;
  --amber: #e8a84c;
  --amber-hi: #ffd089;
  --copper: #c2622a;
  --brass: #9c7a3c;
  --bad: #b3543f;
  --ok: #9fae6c;
  --sE: #c05570;
  --sA: #e0813c;
  --sD: #e6bc55;
  --sG: #becf86;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --rad: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 24% -6%, rgba(232, 168, 76, 0.075), transparent 64%),
    radial-gradient(800px 420px at 88% 4%, rgba(194, 98, 42, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 55%);
  background-attachment: fixed;
  font: 16px/1.55 var(--serif);
  display: flex;
  flex-direction: column;
}
::selection { background: rgba(232, 168, 76, 0.35); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hi); }

.skip-link {
  position: absolute; left: -200vw; top: 0;
  background: var(--amber); color: var(--bg0); padding: 6px 12px; z-index: 99;
}
.skip-link:focus { left: 8px; top: 8px; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------- appbar */
.appbar {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(16, 13, 10, 0.6), rgba(16, 13, 10, 0));
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(7px);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.wordmark-glyph { font-size: 26px; color: var(--amber); transform: translateY(2px); }
.wordmark-text { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.wordmark-text i { font-style: italic; font-weight: 400; color: var(--amber); }
.wordmark-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
}
.appnav { display: flex; gap: 4px; margin-left: 8px; }
.appnav a {
  font-family: var(--mono); font-size: 13px; color: var(--ink-dim);
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
}
.appnav a:hover { color: var(--ink); }
.appnav a.active { color: var(--amber-hi); background: rgba(232, 168, 76, 0.1); }
.appbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.data-badge {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg0); background: var(--copper); border-radius: 4px; padding: 3px 8px;
}

/* ---------------------------------------------------------- buttons */
.btn {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--brass); background: #2a2117; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-amber {
  background: linear-gradient(180deg, #f0b35c, #d99738);
  color: #241804; border-color: #8a6325; font-weight: 500;
}
.btn-amber:hover { background: linear-gradient(180deg, #ffc673, #e8a84c); box-shadow: 0 4px 18px -6px rgba(232, 168, 76, 0.5); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4a3d2e; margin-right: 4px; transition: background 0.2s, box-shadow 0.2s;
}
.btn .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.btn.active { border-color: var(--amber); color: var(--amber-hi); background: rgba(232, 168, 76, 0.12); }

input[type='range'] {
  accent-color: var(--amber);
  background: transparent;
}
input[type='number'], select {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: var(--bg0); border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 8px;
}
input[type='checkbox'] { accent-color: var(--amber); width: 15px; height: 15px; }

/* ---------------------------------------------------------- layout */
main#app { flex: 1; width: min(1180px, 100% - 48px); margin: 0 auto; padding: 26px 0 60px; outline: none; }
.appfoot {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px; border-top: 1px solid var(--line-soft);
  color: var(--ink-dim); font-size: 12px;
}
.appfoot .mono { font-size: 10px; }
.foot-s { width: 26px; height: 3px; border-radius: 2px; }
.s-E, .foot-s.s-E, .sp-E, .str-dot.str-E { background: var(--sE); }
.s-A, .foot-s.s-A, .sp-A, .str-dot.str-A { background: var(--sA); }
.s-D, .foot-s.s-D, .sp-D, .str-dot.str-D { background: var(--sD); }
.s-G, .foot-s.s-G, .sp-G, .str-dot.str-G { background: var(--sG); }
.foot-note { font-style: italic; margin-left: 14px; }

/* page-load reveal */
.reveal { opacity: 0; transform: translateY(14px); }
.nomotion .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
body.ready .reveal {
  animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- library */
.hero { padding: 34px 0 10px; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 10px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 0;
  font-weight: 600; letter-spacing: -0.015em;
}
.hero-title em { font-style: italic; color: var(--amber); font-weight: 400; }
.hero-sub { color: var(--ink-dim); max-width: 56ch; margin: 14px 0 0; font-size: 17px; }
.hero-strings { display: flex; gap: 10px; margin-top: 22px; }
.hero-strings .s {
  font-family: var(--mono); font-size: 11px; color: var(--bg0);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 500;
  box-shadow: 0 0 14px -2px currentColor;
}

.book { margin-top: 44px; }
.book-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.book-title { font-size: 28px; margin: 0; font-weight: 600; }
.book-sub { margin: 4px 0 0; color: var(--ink-dim); font-style: italic; font-size: 14px; }

.chapter { margin-top: 26px; }
.chapter-head { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; margin: 0 0 14px; }
.chapter-num {
  font-family: var(--mono); color: var(--amber); font-size: 13px;
  border: 1px solid var(--brass); border-radius: 4px; padding: 2px 8px;
}
.chapter-rule { flex: 1; height: 1px; background: var(--line-soft); }
.chapter-diff { color: var(--brass); font-size: 10px; letter-spacing: 3px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.card {
  display: flex; color: var(--ink);
  background: linear-gradient(160deg, var(--panel2), var(--panel) 70%);
  border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; position: relative;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.25, 1), border-color 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 168, 76, 0.12);
  color: var(--ink);
}
.card-spine { display: flex; flex-direction: column; width: 5px; flex: none; }
.card-spine i { flex: 1; opacity: 0.85; }
.card-body { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.card-num { font-family: var(--mono); font-size: 26px; color: rgba(232, 221, 204, 0.22); font-weight: 500; line-height: 1; }
.card-genre { font-style: italic; font-size: 12.5px; color: var(--copper); }
.card-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.card-meta { font-size: 11.5px; color: var(--ink-dim); margin: 0; }
.card-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--ink-dim); }
.card-pos b { color: var(--amber); font-weight: 500; margin-right: 4px; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line-soft); margin-top: 6px; padding-top: 8px;
}
.card-best { font-size: 12px; color: var(--amber-hi); }
.card-best--none { color: var(--ink-dim); font-style: italic; }
.card-go { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); transition: color 0.15s, transform 0.15s; }
.card:hover .card-go { color: var(--amber-hi); transform: translateX(3px); }

/* ---------------------------------------------------------- practice */
.practice { display: flex; flex-direction: column; gap: 14px; height: calc(100vh - 170px); min-height: 560px; }
.prac-head { display: flex; align-items: center; gap: 18px; }
.back { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.back:hover { color: var(--amber); }
.prac-title-wrap { flex: 1; min-width: 0; }
.prac-title { margin: 0; font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prac-num { color: var(--amber); font-family: var(--mono); font-size: 17px; margin-right: 2px; }
.prac-sub { margin: 1px 0 0; font-size: 11.5px; color: var(--ink-dim); }
.prac-actions { display: flex; gap: 8px; }

.banner {
  background: rgba(179, 84, 63, 0.14); border: 1px solid rgba(179, 84, 63, 0.5);
  color: #e3b3a4; border-radius: 8px; padding: 9px 14px; font-size: 13.5px;
}
.banner-inline { margin-top: 12px; }

.prac-stage {
  position: relative; flex: 1; min-height: 320px;
  border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; box-shadow: var(--shadow);
  background: #15110d;
}
.highway { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; pointer-events: none; }
.hud-tl { top: 12px; left: 70px; }
.hud-score { font-size: 30px; color: var(--amber-hi); font-weight: 500; line-height: 1; text-shadow: 0 0 18px rgba(232, 168, 76, 0.35); }
.hud-streak { font-size: 11px; color: var(--ink-dim); margin-top: 3px; }
.hud-streak b { color: var(--amber); }
.hud-tr { top: 12px; right: 16px; text-align: right; }
.hud-pos { display: flex; flex-direction: column; align-items: flex-end; }
.hud-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.hud-pos b {
  font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--ink);
  border: 1.5px solid var(--brass); border-radius: 6px; padding: 1px 10px; margin-top: 2px;
  background: rgba(16, 13, 10, 0.55);
}
.hud-shift { font-size: 11.5px; color: var(--ink-dim); margin-top: 6px; transition: color 0.2s; }
.hud-shift.soon { color: var(--amber-hi); }
.hud-br { right: 14px; bottom: 12px; display: flex; gap: 10px; align-items: flex-end; }
.needle { width: 170px; height: 86px; }
.vu { width: 26px; height: 86px; }

.transport {
  border: 1px solid var(--line); border-radius: var(--rad);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  padding: 10px 14px; display: flex; flex-direction: column; gap: 8px;
}
.t-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-bar { font-size: 12px; color: var(--ink-dim); min-width: 86px; }
.scrub { flex: 1; min-width: 140px; }
.t-loop { display: flex; align-items: center; gap: 5px; }
.loop-chip { font-size: 11px; color: var(--amber-hi); }
.t-tempo { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-dim); }
.t-tempo input { width: 190px; }
.t-tempo .mono { color: var(--amber-hi); font-size: 12px; min-width: 42px; }
.t-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); cursor: pointer; }
.t-spacer { flex: 1; }
.t-hint { font-size: 10.5px; color: rgba(164, 147, 124, 0.55); }

/* ---------------------------------------------------------- results */
.results { display: flex; flex-direction: column; gap: 18px; }
.res-head { display: flex; align-items: center; gap: 18px; }
.res-head > div { flex: 1; }
.res-title { margin: 0; font-size: 28px; font-weight: 600; }
.res-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-dim); }
.demo-tag { color: var(--copper); letter-spacing: 0.1em; }

.res-score {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--rad);
  background: linear-gradient(150deg, var(--panel2), var(--panel));
  padding: 18px 24px;
}
.res-big { display: flex; flex-direction: column; }
.res-pct { font-size: 54px; font-weight: 600; line-height: 1; color: var(--amber-hi); text-shadow: 0 0 26px rgba(232, 168, 76, 0.3); }
.res-pct i { font-style: normal; font-size: 26px; color: var(--amber); }
.res-pts { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.res-grades { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.res-grades .g { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); }
.g-perfect { color: var(--amber-hi); border-color: var(--brass); }
.g-good { color: #cda968; }
.g-off { color: #8a6a3c; }
.g-wrong { color: var(--bad); }
.g-cents { color: var(--ink); }
.res-hist { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hist-label { font-size: 10.5px; color: var(--ink-dim); }
.spark { width: 130px; height: 34px; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--rad);
  background: var(--panel); padding: 16px 18px;
}
.panel h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.panel-lead { margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-dim); }
.panel-lead em { color: var(--amber); }
.panel-wide { grid-column: 1 / -1; }
.panel-foot { margin: 8px 0 0; font-size: 10px; color: rgba(164, 147, 124, 0.6); }
.chart { width: 100%; height: 130px; display: block; }
.chart-strip { height: 56px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim);
  border-bottom: 1px solid var(--line); padding: 4px 10px 6px 0;
}
.tbl td { padding: 7px 10px 7px 0; border-bottom: 1px dashed var(--line-soft); }
.tbl tr:last-child td { border-bottom: none; }
.pos-box {
  font-family: var(--serif); font-weight: 600; font-size: 13px; color: var(--amber);
  border: 1px solid var(--brass); border-radius: 4px; padding: 1px 7px;
}
.str-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.verdict { font-style: italic; color: var(--ink-dim); }
.verdict-bad { color: #d49a8a; }

.suggest { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.suggest li { font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; }
.suggest li::before { content: '𝄓'; position: absolute; left: 0; top: 0; color: var(--amber); }
.suggest .btn { margin-left: 10px; vertical-align: 2px; }

/* ---------------------------------------------------------- tuner */
.tuner-stage { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 18px; }
.tuner-main {
  border: 1px solid var(--line); border-radius: var(--rad);
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.big-needle { width: min(440px, 100%); height: 210px; }
.tuner-read { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tuner-note { font-size: 56px; font-weight: 600; line-height: 1.1; }
.tuner-cents { font-size: 17px; color: var(--amber-hi); }
.tuner-hz { font-size: 11px; color: var(--ink-dim); }
.tuner-str { font-size: 11px; color: var(--copper); }
.a4-ctl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-dim); }
.a4-ctl input { width: 64px; }
.tuner-side { display: flex; flex-direction: column; gap: 14px; }
.tuner-hint { font-size: 13px; color: var(--ink-dim); margin: 0; font-style: italic; }
.open-strings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); padding: 10px 12px; cursor: pointer; font-family: var(--serif);
  transition: border-color 0.15s, background 0.15s;
}
.open-btn b { font-size: 20px; }
.open-btn .mono { font-size: 10px; color: var(--ink-dim); }
.open-btn .evid { width: 100%; height: 10px; }
.open-btn:hover { border-color: var(--brass); }
.open-btn.active { border-color: var(--amber); background: rgba(232, 168, 76, 0.08); }
.open-E b { color: var(--sE); } .open-A b { color: var(--sA); }
.open-D b { color: var(--sD); } .open-G b { color: var(--sG); }

/* ---------------------------------------------------------- drawer */
#drawer .drawer-scrim {
  position: fixed; inset: 0; background: rgba(8, 6, 4, 0.6); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
#drawer .drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); z-index: 61;
  background: linear-gradient(200deg, var(--panel2), var(--bg1));
  border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.25, 1);
  display: flex; flex-direction: column; box-shadow: -22px 0 60px rgba(0, 0, 0, 0.5);
}
#drawer.open .drawer { transform: none; }
#drawer.open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 19px; }
.drawer-body { overflow-y: auto; padding: 8px 20px 30px; }
.drawer-body section { margin-top: 18px; }
.drawer-body h4 {
  font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 10px;
  border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px;
}
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 12px; }
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row input[type='range'] { flex: 1; }
.field-row b { color: var(--amber-hi); font-size: 12px; min-width: 52px; }
.field select { width: 100%; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); }
.field-check small { flex-basis: 100%; color: var(--ink-dim); font-size: 11.5px; }
.cal-panel { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; margin-top: 10px; }
.cal-panel p { font-size: 13px; color: var(--ink-dim); margin: 0 0 10px; }
.cal-dots { display: flex; gap: 7px; margin-bottom: 12px; }
.cal-dots i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--brass); background: transparent; transition: background 0.15s;
}
.cal-dots i.hit { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ---------------------------------------------------------- toasts */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: rgba(28, 22, 17, 0.95); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 16px; max-width: 70vw;
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: none; }
.toast--ok { border-color: rgba(159, 174, 108, 0.6); }
.toast--warn { border-color: rgba(232, 168, 76, 0.65); }
.toast--error { border-color: rgba(179, 84, 63, 0.7); color: #e3b3a4; }

/* ---------------------------------------------------------- states */
.error-state, .empty-state { text-align: center; padding: 70px 20px; color: var(--ink-dim); }
.error-state h2, .empty-state h2 { color: var(--ink); font-size: 26px; }
.empty-glyph { font-size: 64px; color: var(--brass); margin: 0 0 8px; }
.empty-inline { color: var(--ink-dim); font-style: italic; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 760px) {
  main#app { width: calc(100% - 24px); }
  .appbar { padding: 10px 14px; gap: 14px; }
  .wordmark-sub { display: none; }
  .tuner-stage { grid-template-columns: 1fr; }
  .practice { height: auto; }
  .prac-stage { height: 56vh; }
  .hud-tl { left: 64px; }
  .needle { width: 130px; height: 70px; }
}

/* ---------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
