:root {
  --bg: #08090b;
  --card: #14161b;
  --ink: #eef0f4;
  --soft: rgba(238, 240, 244, 0.5);
  --line: rgba(238, 240, 244, 0.09);
  --accent: #b9f24e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #15171d 0%, var(--bg) 62%);
  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 10px;
}

.eq { position: relative; width: min(344px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 16px 16px; border-radius: 26px; background: linear-gradient(180deg, #191c22, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 34px 60px -34px rgba(0, 0, 0, 0.95); }
.eq__roll { display: block; overflow: hidden; }
.eq__roll > span { display: block; white-space: nowrap; }

.eq__head { display: flex; align-items: center; justify-content: space-between; height: 28px; }
.eq__title { font-size: 15.500px; font-weight: 720; font-stretch: 104%; letter-spacing: -0.005em; }
.eq__preset { height: 18px; line-height: 18px; font-size: 12.500px; font-weight: 640; color: var(--accent); }

/* the graph: grid, the song's spectrum, the curve and its eight knobs */
.eq__graph { position: relative; margin-top: 6px; touch-action: none; cursor: ns-resize; -webkit-user-select: none; user-select: none; }
.eq__graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.eq__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.eq__grid .eq__zero { stroke: rgba(238, 240, 244, 0.16); stroke-dasharray: none; }
.eq__bars rect { fill: var(--accent); opacity: 0.17; }
.eq__guide { stroke: var(--accent); stroke-width: 1; opacity: 0; }
.eq__area { fill: url(#eq-fill); }
.eq__stop-a { stop-color: var(--accent); stop-opacity: 0.22; }
.eq__stop-b { stop-color: var(--accent); stop-opacity: 0; }
.eq__curve { fill: none; stroke: var(--accent); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.eq__glow { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; opacity: 0.16; filter: blur(5px); }
.eq__knob { fill: #191c22; stroke: var(--accent); stroke-width: 2; }
.eq__knob.is-on { fill: var(--accent); }
.eq__halo { fill: var(--accent); opacity: 0; }

.eq__db { position: absolute; right: 0; font-size: 9.500px; line-height: 12px; font-weight: 600; color: rgba(238, 240, 244, 0.32); pointer-events: none; transform: translateY(-115%); }
.eq__db--top { top: 13.530%; }
.eq__db--low { top: 86.470%; }

.eq__tip { position: absolute; left: 0; top: 0; display: block; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--ink); color: #101216; font-size: 11.500px; line-height: 22px; font-weight: 720; white-space: nowrap; pointer-events: none; opacity: 0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7); }

/* real sliders under the drawing, for the keyboard and for screen readers */
.eq__inputs input { position: absolute; top: 0; width: 24px; height: 100%; margin-left: -12px; opacity: 0; pointer-events: none; writing-mode: vertical-lr; direction: rtl; }
.eq__knob.is-focus { stroke: var(--ink); stroke-width: 2.600; }

.eq__freq { position: relative; height: 14px; margin-top: 3px; }
.eq__freq span { position: absolute; top: 0; transform: translateX(-50%); font-size: 9.500px; line-height: 14px; font-weight: 600; color: rgba(238, 240, 244, 0.38); transition: color 0.2s; white-space: nowrap; }
.eq__freq span.is-on { color: var(--ink); }

.eq__chips { display: flex; gap: 6px; margin-top: 12px; }
.eq__chips button { flex: 1 1 0; min-width: 0; height: 34px; border: 0; border-radius: 17px; background: rgba(238, 240, 244, 0.06); color: var(--soft); font: inherit; font-size: 12.500px; font-weight: 660; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px transparent; transition: color 0.25s, background-color 0.25s, box-shadow 0.25s; }
.eq__chips button > span { display: inline-block; }
.eq__chips button[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent); }
.eq__chips button:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
@media (hover: hover) {
  .eq__chips button:hover { color: var(--ink); }
  .eq__chips button[aria-pressed="true"]:hover { color: var(--accent); }
}

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