:root {
  --bg: #000000;
  --card: #141416;
  --ink: #f4f4f6;
  --soft: rgba(244, 244, 246, 0.56);
  --line: rgba(244, 244, 246, 0.12);
  --accent: #5fe0a8;
  --warn: #ffb347;
  --error: #ff7a66;
}

*, *::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;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(348px, 100%); padding: 14px 16px 16px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -30px rgba(0, 0, 0, 0.9); }
.lv__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 0 0 2px; }
.lv__name { display: grid; gap: 1px; min-width: 0; }
.lv__name strong { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 18px; font-weight: 700; }
.lv__clip { display: block; height: 16px; line-height: 16px; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 620; color: var(--accent); transition: color 0.3s ease; font-variant-numeric: tabular-nums; }
.lv__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.lv.is-held .lv__clip { color: var(--soft); }
.lv__hold { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(244, 244, 246, 0.07); box-shadow: inset 0 0 0 1px rgba(244, 244, 246, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: background-color 0.25s ease, color 0.25s ease; }
.lv.is-held .lv__hold { background: var(--ink); color: #0c0c0e; }
.lv__hold svg { display: block; width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.400; stroke-linejoin: round; }
.lv__hold:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

.lv__levels { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; border-radius: 17px; background: rgba(244, 244, 246, 0.06); }
.lv__levels button { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 5px; height: 30px; border-radius: 14px; font-size: 12.500px; font-weight: 690; color: var(--soft); white-space: nowrap; transition: color 0.2s ease; }
.lv__levels button[aria-checked="true"] { color: var(--ink); }
.lv__levels b { min-width: 14px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.6; text-align: left; }
.lv__levels button:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.lv__thumb { position: absolute; left: 3px; top: 3px; width: calc((100% - 6px) / 4); height: 30px; border-radius: 14px; background: rgba(244, 244, 246, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 5px 9px -5px rgba(0, 0, 0, 0.8); }

/* the window: the lines are stacked against its bottom edge, so a line that grows pushes the others up; the top fades out */
.lv__window { height: min(168px, 40vh); border-radius: 14px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(244, 244, 246, 0.06); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px); mask-image: linear-gradient(180deg, transparent 0, #000 26px); }
.lv__lines { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 0 0 6px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.500px; line-height: 20px; }
.lv__ln { flex: none; height: 20px; overflow: hidden; }
.lv__row { display: grid; grid-template-columns: auto 34px minmax(0, 1fr); column-gap: 8px; height: 20px; padding: 0 10px; white-space: nowrap; }
.lv__t { color: rgba(244, 244, 246, 0.36); font-variant-numeric: tabular-nums; }
.lv__lvl { font-weight: 700; color: rgba(244, 244, 246, 0.5); }
.lv__msg { overflow: hidden; text-overflow: ellipsis; color: rgba(244, 244, 246, 0.9); }
.lv__ln.is-warn .lv__lvl { color: var(--warn); }
.lv__ln.is-error .lv__lvl { color: var(--error); }
.lv__ln.is-error .lv__row { background: color-mix(in srgb, var(--error) 10%, transparent); }
.lv__ln.is-error .lv__msg { color: #ffffff; }

.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: #0c0c0e; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (hover: hover) { .lv__row:hover { background: rgba(244, 244, 246, 0.07); } .lv__ln.is-error .lv__row:hover { background: color-mix(in srgb, var(--error) 18%, transparent); } }
@media (max-width: 350px) { .lv { padding: 12px 13px 14px; } .lv__lines { font-size: 10px; } .lv__row { column-gap: 6px; padding: 0 8px; } .lv__levels button { font-size: 12px; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .lv__clip, .lv__hold, .lv__levels button { transition: none; } }
