:root {
  --ink: #f4ece0;
  --ink-soft: rgb(244 236 224 / 0.72);
  --ink-faint: rgb(244 236 224 / 0.48);
  --brass: #d9b878;
  --line: rgb(255 236 210 / 0.16);
}
html, body { margin: 0; height: 100%; background: #14100d; overflow: hidden; color: var(--ink); font-family: var(--kit-sans); }
#stage canvas { touch-action: none; }
.veil { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 0% 0%, rgb(10 7 5 / 0.5) 0%, rgb(10 7 5 / 0) 60%), linear-gradient(to top, rgb(10 7 5 / 0.45) 0%, rgb(10 7 5 / 0) 22%); }

.mast { position: fixed; left: 56px; top: 50px; max-width: 470px; pointer-events: none; }
.over { margin: 0 0 14px; font: 600 11.5px/1 var(--kit-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
h1 { margin: 0; font: italic 400 56px/1.02 var(--kit-oldstyle); letter-spacing: -0.012em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.5); }
.line { margin: 14px 0 0; max-width: 320px; font: 400 15px/1.55 var(--kit-sans); color: var(--ink-soft); text-shadow: 0 1px 14px rgb(0 0 0 / 0.6); }

.controls { position: fixed; left: 56px; bottom: 50px; display: flex; align-items: center; gap: 10px; }
.pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 19px; border-radius: 999px;
  font: 500 14px/1 var(--kit-sans); color: var(--ink); border: 1px solid var(--line); background: rgb(24 17 12 / 0.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.2s, border-color 0.2s; }
.pill:hover { background: rgb(60 44 30 / 0.55); border-color: rgb(255 236 210 / 0.3); }
.pill:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.pill--key { background: var(--ink); color: #1d140d; border-color: transparent; }
.pill--key:hover { background: #fff; }
.pill--key .dot { width: 8px; height: 8px; border-radius: 50%; background: #b0874a; box-shadow: 0 0 0 3px rgb(176 135 74 / 0.22); }
.pill--key.is-playing .dot { background: #c2453b; box-shadow: 0 0 0 3px rgb(194 69 59 / 0.22); }
.status { margin-left: 8px; font: 500 12px/1 var(--kit-sans); letter-spacing: 0.06em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.tune { position: fixed; right: 56px; bottom: 46px; max-width: 360px; text-align: right; pointer-events: none; }
.tune p { margin: 0; }
.tune-label { font: 600 10.5px/1 var(--kit-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.tune-name { margin-top: 8px !important; font: italic 400 26px/1.1 var(--kit-oldstyle); color: var(--ink); }
.tune-specs { margin-top: 8px !important; font: 500 12.5px/1.4 var(--kit-sans); color: var(--brass); font-variant-numeric: tabular-nums; }
.tune-note { margin-top: 6px !important; font: 400 11px/1.45 var(--kit-sans); color: var(--ink-faint); }

.chip { position: fixed; left: 0; top: 0; padding: 6px 11px; border-radius: 999px; background: rgb(20 14 10 / 0.75); border: 1px solid var(--line);
  font: 500 12px/1 var(--kit-sans); color: var(--ink); pointer-events: none; opacity: 0; transition: opacity 0.15s; white-space: nowrap; }
.chip.is-on { opacity: 1; }
.hint { position: fixed; right: 56px; top: 54px; margin: 0; padding: 7px 13px; border-radius: 999px; background: rgb(20 14 10 / 0.5); border: 1px solid var(--line);
  font: 400 12px/1 var(--kit-sans); color: var(--ink-soft); transition: opacity 0.6s; }
.hint.is-gone { opacity: 0; }
.is-capturing .status { visibility: hidden; }
@media (max-width: 1150px) { h1 { font-size: 46px; } .mast, .controls { left: 40px; } .tune, .hint { right: 40px; } }
