:root {
  --bg: #000000;
  --card: #141517;
  --ink: #f2f3f0;
  --soft: rgba(242, 243, 240, 0.5);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #b6f24a;
  --warm: #ffb224;
  --hot: #ff5a4a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.vu { position: relative; width: min(324px, 100%); padding: 16px; border-radius: 24px; background: linear-gradient(180deg, #1c1d20 0%, var(--card) 45%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -30px rgba(0, 0, 0, 0.95); }
.vu__top { display: flex; align-items: center; gap: 10px; height: 40px; }
.vu__title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.vu__title b { font-size: 15px; line-height: 20px; font-weight: 700; font-stretch: 104%; white-space: nowrap; }
.vu__title span { font-size: 12px; line-height: 15px; color: var(--soft); }
.vu__read { display: flex; align-items: baseline; gap: 3px; }
.vu__read strong { display: block; min-width: 58px; font-size: 22px; font-weight: 720; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.vu__read small { font-size: 11px; font-weight: 650; color: var(--soft); }
/* the tag that says the signal went over */
.vu__clip { height: 22px; padding: 0 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: rgba(242, 243, 240, 0.32); font-size: 11px; line-height: 22px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease; }
.vu__clip.is-on { background: var(--hot); color: #2b0703; box-shadow: none; transition-duration: 0.04s; }

.vu__meter { display: grid; gap: 7px; margin-top: 14px; padding: 12px 12px 8px; border-radius: 16px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--line), inset 0 8px 14px -8px rgba(0, 0, 0, 0.8); }
.vu__row { display: flex; align-items: center; gap: 9px; }
.vu__row b { width: 9px; font-size: 10.500px; font-weight: 700; color: var(--soft); }
.vu__bar { position: relative; flex: 1; display: flex; gap: 2px; height: 16px; }
.vu__bar i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.vu__bar i.on { background: var(--accent); }
.vu__bar i.on.is-warm { background: var(--warm); }
.vu__bar i.on.is-hot { background: var(--hot); }
/* the peak: a thin mark that stays where the signal got to, then falls back */
.vu__bar em { position: absolute; top: -2px; bottom: -2px; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.vu__scale { display: flex; justify-content: space-between; padding-left: 18px; padding-right: 5%; font-size: 9.500px; font-weight: 600; color: rgba(242, 243, 240, 0.36); font-variant-numeric: tabular-nums; }

.vu__gain { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; font-size: 12.500px; font-weight: 620; color: var(--soft); }
.vu__gain output { min-width: 50px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.vu__gain input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; outline: none; touch-action: pan-y; }
.vu__gain input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.vu__gain input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.vu__gain input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.vu__gain input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.8); }
.vu__gain input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101014; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
