:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05040a;
  color: #fff;
  font-synthesis: none;
  --pink: #ff3ead;
  --cyan: #52f4ff;
  --lime: #c7ff48;
  --panel: rgba(8, 7, 15, 0.82);
  /* Classic-skin chrome: a cool grey cabinet, hard bevels, and an LCD that
     glows in the brand lime instead of Winamp's original green. */
  --skin-face: #33384a;
  --skin-face-top: #3d4356;
  --skin-light: #6d768f;
  --skin-shadow: #14161f;
  --skin-titlebar: #2b3348;
  --lcd-bg: #05100a;
  --lcd-dim: rgba(199, 255, 72, 0.45);
  --skin-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #05040a;
}

button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
label:focus-within,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.app {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(82, 244, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 85%, rgba(255, 62, 173, 0.22), transparent 32%),
    #05040a;
  touch-action: none;
}

#visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--music-opacity, 0.9);
  background: #05040a;
  transition: opacity 180ms ease, filter 240ms ease;
}

.app.changing #visualizer { opacity: 0; filter: blur(10px); }
.app.stopped #visualizer { opacity: 0.18; filter: blur(18px) saturate(0.5); }

.topbar {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  pointer-events: none;
}

.topbar-actions { display: flex; gap: 10px; pointer-events: auto; }
.topbar-actions > * { transition: opacity 220ms ease, transform 220ms ease; }

/* Every button fades once the visuals take over, the microphone included, on a
   mouse exactly as on a phone. The art is the point, and the way back is the
   same everywhere: move the pointer, or tap the screen. */
.topbar.idle-hidden .topbar-actions > * {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
/* The row itself has to stop taking hits too, or the corner it used to occupy
   stays a dead patch that swallows taps meant for the visual underneath. */
.topbar.idle-hidden .topbar-actions { pointer-events: none; }

.rating-controls {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 4, 10, 0.58);
  backdrop-filter: blur(14px);
}
.rating-controls[hidden] { display: none; }
.rating-controls button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-weight: 950;
  cursor: pointer;
}
.rating-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* An outlined thumb means "not rated yet"; the vote you cast is filled in. */
.rating-controls button.selected svg { fill: currentColor; fill-opacity: .92; }
.rating-controls button:first-child.selected { background: rgba(199,255,72,.18); color: var(--lime); }
.rating-controls button:last-child.selected { background: rgba(255,62,173,.18); color: var(--pink); }
.rating-controls.pending { opacity: .68; }
.rating-controls button:disabled { cursor: wait; }

.mic-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mic-button { color: rgba(255,255,255,.74); }
.mic-button[aria-pressed="true"] {
  border-color: rgba(199,255,72,.55);
  background: rgba(199,255,72,.16);
  color: var(--lime);
  animation: mic-pulse 1.8s ease-in-out infinite;
}
.mic-button[aria-pressed="true"] .mic-slash { display: none; }
.mic-button[aria-busy="true"] { opacity: .6; cursor: wait; }

/* The visual changing by itself, beside the microphone and read the same way:
   slashed through means off. Cyan rather than the microphone's lime, and no
   pulse — a pulsing button is the site saying it is listening. */
.auto-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auto-button { color: rgba(255,255,255,.74); }
.auto-button[aria-pressed="true"] {
  border-color: rgba(82,244,255,.55);
  background: rgba(82,244,255,.16);
  color: var(--cyan);
}
.auto-button[aria-pressed="true"] .auto-slash { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The challenge and the line that explains it travel together, under the top
   bar's buttons. It sits above the controls sheet: a vote can be cast with the
   sheet open, and a challenge nobody can reach is a vote nobody can cast. */
.rating-feedback {
  position: fixed;
  z-index: 30;
  top: max(76px, calc(env(safe-area-inset-top) + 62px));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: min(320px, calc(100vw - 36px));
}

/* Cloudflare sizes its own widget; an invisible challenge renders nothing and
   must not leave a gap behind. */
.turnstile-mount:not(.challenging):empty { display: none; }
.turnstile-mount.challenging {
  border-radius: 6px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 0 2px rgba(82, 244, 255, .5);
}

.rating-hint {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(82, 244, 255, .3);
  border-radius: 12px;
  background: rgba(5, 4, 10, .82);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
  backdrop-filter: blur(12px);
}
.rating-hint[hidden] { display: none; }

.round-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(5, 4, 10, 0.58);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

#menuButton { gap: 4px; align-content: center; }
#menuButton span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.fullscreen-icon { font-size: 23px; }

/* The music responsiveness rail. The two-finger drag still works, but nobody
   guesses a hidden gesture, so the same value lives permanently on screen. */
.responsiveness {
  position: fixed;
  z-index: 6;
  top: 50%;
  right: max(8px, env(safe-area-inset-right));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(5, 4, 10, 0.52);
  opacity: .74;
  transform: translateY(-50%);
  transition: opacity 200ms ease;
  backdrop-filter: blur(12px);
  touch-action: none;
}
/* The rail follows the top bar out of the way after a few idle seconds, on
   every input device. It sits ahead of the rules below on purpose: a rail being
   dragged or focused stays lit whatever the idle timer thinks. */
.responsiveness.idle-hidden { opacity: 0; pointer-events: none; }
.responsiveness:hover,
.responsiveness:focus-within,
.responsiveness.active { opacity: 1; }
.responsiveness-title {
  color: rgba(255,255,255,.6);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.responsiveness-slider {
  width: 26px;
  height: min(36vh, 240px);
  accent-color: var(--pink);
  writing-mode: vertical-lr;
  direction: rtl;
  cursor: ns-resize;
  touch-action: none;
}
.responsiveness output { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.app.menu-open .responsiveness,
.app.stopped .responsiveness { opacity: 0; pointer-events: none; }

.intro {
  position: fixed;
  z-index: 2;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(32px, calc(env(safe-area-inset-bottom) + 22px));
  width: min(560px, calc(100vw - 104px));
  text-shadow: 0 3px 24px #000;
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.intro.dismissed { opacity: 0; transform: translateY(16px); }
/* The faded intro must not leave its keys hit-testable over the visual. The
   section itself never takes pointer events, but the buttons inside it ask for
   them back, so they have to give them up with the fade — an invisible key that
   starts the music is worse than one that starts nothing. */
.intro.dismissed .intro-start,
.intro.dismissed .intro-demo { pointer-events: none; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* The first words of the site are written in the player's own hand: the classic
   skin's monospace and its lime LCD, with no bevelled window around them. The
   visual behind is the point — the type just has to be recognisably Winamp. */
.intro .eyebrow,
.landing .eyebrow {
  color: var(--lime);
  font-family: var(--skin-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-shadow: 0 0 14px rgba(199, 255, 72, 0.45);
}

.intro h1,
.landing h2 {
  margin: 0;
  color: var(--lime);
  font-family: var(--skin-font);
  font-size: clamp(38px, 11.5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(199, 255, 72, 0.4), 0 3px 24px #000;
}

/* The second line reads like the marquee under the LCD: the same face, the
   other display colour. */
.intro h1 em,
.landing h2 em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 26px rgba(82, 244, 255, 0.5), 0 3px 24px #000;
}

.intro-status {
  margin: 20px 0 0;
  color: var(--lcd-dim);
  font-family: var(--skin-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* A transport key, lifted out of the window it usually sits in. */
.intro-start,
.landing .accent-button {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 24px;
  border: 1px solid var(--skin-shadow);
  border-radius: 3px;
  background: linear-gradient(var(--skin-light), var(--skin-face) 55%, #262b3a);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), inset -1px -1px 0 rgba(0, 0, 0, 0.5);
  color: var(--lime);
  font-family: var(--skin-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.intro-start:active,
.landing .accent-button:active {
  background: linear-gradient(#20242f, var(--skin-face));
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.55);
  transform: translateY(1px);
}

.intro-start:disabled { opacity: 0.62; cursor: wait; }
.intro-start[hidden] { display: none; }

/* The quieter way in, under the start key. It is deliberately not a second
   bevelled button competing with the first: it reads as a line of the display's
   own type that happens to be tappable, and it carries a 44px target anyway. */
.intro-demo {
  display: block;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--skin-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-decoration: underline;
  text-shadow: 0 0 14px rgba(82, 244, 255, 0.35), 0 3px 24px #000;
  text-transform: uppercase;
  text-underline-offset: 5px;
  cursor: pointer;
  pointer-events: auto;
}

.intro-demo:hover { color: var(--lime); }
.intro-demo:active { color: var(--lime); transform: translateY(1px); }

.gesture-hint {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--skin-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gesture-hint b { color: var(--lime); font-size: 10px; }
.gesture-hint .hint-touch { display: none; }
@media (pointer: coarse) {
  .gesture-hint .hint-touch { display: inline; }
  .gesture-hint .hint-pointer { display: none; }
}

.seed-toast {
  position: fixed;
  z-index: 4;
  top: max(78px, calc(env(safe-area-inset-top) + 66px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 120px);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(5,4,10,0.54);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: 180ms ease;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.seed-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.seed-toast span { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.seed-toast strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Who made the visual, and who made the music. It shares the buttons' idle
   timer, so the credit is on screen for exactly as long as the controls are —
   and the source link stays clickable while it is. */
.visual-credit {
  position: fixed;
  z-index: 4;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  display: grid;
  gap: 3px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(5, 4, 10, 0.5);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}
.visual-credit.idle-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
/* The intro headline owns the bottom of the screen until it is dismissed, and
   an exited visualizer has nothing to credit. */
.intro:not(.dismissed) ~ .visual-credit,
.app.menu-open .visual-credit,
.app.stopped .visual-credit { opacity: 0; pointer-events: none; }

/* The title is the only part allowed to shrink, so a long track name
   ellipsises rather than pushing the label and the artist out of the panel. */
.credit-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  margin: 0;
}
.credit-row[hidden] { display: none; }
.credit-row span {
  flex: none;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.credit-row strong {
  flex: 0 1 auto;
  overflow: hidden;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.credit-row em {
  flex: none;
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
}
.credit-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.controls {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88vh, 840px);
  padding: 8px max(10px, env(safe-area-inset-right)) max(20px, calc(env(safe-area-inset-bottom) + 14px)) max(10px, env(safe-area-inset-left));
  overflow-y: auto;
  border-top: 1px solid var(--skin-light);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(#242836, #14161f);
  box-shadow: 0 -24px 70px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(105%);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.controls.open { opacity: 1; transform: none; }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 9px; background: rgba(255,255,255,.25); }

/* ---- Winamp-style windows ---- */

.wa-window {
  margin-bottom: 10px;
  border: 1px solid var(--skin-shadow);
  border-radius: 3px;
  background: linear-gradient(var(--skin-face-top), var(--skin-face));
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.16),
    inset -1px -1px 0 rgba(0,0,0,.45),
    0 6px 18px rgba(0,0,0,.35);
  font-family: var(--skin-font);
}

.wa-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 5px;
  border-bottom: 1px solid var(--skin-shadow);
  background: linear-gradient(#4a5470, #232a3b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.wa-title {
  margin: 0;
  color: #e8edff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-shadow: 0 1px 0 #000;
  white-space: nowrap;
}
.wa-grip {
  flex: 1;
  height: 9px;
  background: repeating-linear-gradient(#7c88a8 0 1px, transparent 1px 3px);
  opacity: .5;
}
.wa-close {
  width: 18px;
  min-height: 0 !important;
  height: 16px;
  padding: 0 !important;
  border: 1px solid var(--skin-shadow) !important;
  border-radius: 2px !important;
  background: linear-gradient(#5b6480, #394054) !important;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.2) !important;
  color: #dfe6ff !important;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.wa-display {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  margin: 7px;
  padding: 7px 9px;
  border: 1px solid #0a1a0d;
  border-radius: 2px;
  background: var(--lcd-bg);
  box-shadow: inset 0 0 22px rgba(199,255,72,.09), inset 1px 1px 0 rgba(0,0,0,.8);
}

.wa-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 74px;
  height: 46px;
}
.wa-spectrum i {
  flex: 1;
  height: 8%;
  min-height: 2px;
  background: linear-gradient(#f6ffe4, var(--lime) 45%, #2f9e46);
}

.wa-readout { min-width: 0; }
.wa-readout p { margin: 0; }
.wa-time {
  color: var(--lime);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.05;
  text-shadow: 0 0 12px rgba(199,255,72,.4);
}
.wa-track {
  margin-top: 4px !important;
  overflow: hidden;
  color: var(--lime);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-meta {
  margin-top: 3px !important;
  overflow: hidden;
  color: var(--lcd-dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-meta span:first-child { color: var(--cyan); }

.wa-flags {
  display: grid;
  align-content: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wa-flag {
  padding: 1px 4px;
  border: 1px solid rgba(199,255,72,.22);
  border-radius: 2px;
  color: rgba(199,255,72,.28);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wa-flag.on { border-color: rgba(199,255,72,.75); background: rgba(199,255,72,.16); color: var(--lime); }

.wa-transport {
  display: flex;
  gap: 4px;
  margin: 0 7px;
}
.wa-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px;
}

.controls button,
.button-label,
.seed-form button {
  min-height: 34px;
  border: 1px solid var(--skin-shadow);
  border-radius: 3px;
  background: linear-gradient(var(--skin-light), var(--skin-face) 55%, #262b3a);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.2), inset -1px -1px 0 rgba(0,0,0,.5);
  color: #e9edfb;
  font-family: var(--skin-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.controls button:active,
.button-label:active {
  background: linear-gradient(#20242f, var(--skin-face));
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.55);
  transform: translateY(1px);
}
.controls button:disabled {
  opacity: .45;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.08);
  cursor: not-allowed;
}

.wa-key {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 38px !important;
  padding: 0;
  color: var(--lime) !important;
  font-size: 12px;
  letter-spacing: 0;
}
.wa-key.playing { border-color: rgba(199,255,72,.6); background: linear-gradient(#4d5a3f, #2b3324); }
.wa-eject { display: grid; place-items: center; flex: 1; }
#audioFile { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.wa-tab { flex: 1 1 62px; min-height: 30px !important; color: #cfd7ef !important; }
.wa-tab[aria-pressed="true"],
.wa-tab.active {
  border-color: rgba(199,255,72,.5);
  background: linear-gradient(#4d5a3f, #2b3324);
  color: var(--lime) !important;
}
.wormhole-button {
  flex-basis: 100%;
  border-color: rgba(82, 244, 255, .45) !important;
  background: linear-gradient(#3c5f6e, #1d2b34) !important;
  color: var(--cyan) !important;
}

/* Only shown once the browser says the app can be installed, or on iOS where
   the button explains the Share → Add to Home Screen route instead. */
.install-button {
  flex-basis: 100%;
  border-color: rgba(255, 62, 173, .45) !important;
  background: linear-gradient(#65324c, #2e1a25) !important;
  color: var(--pink) !important;
}
.install-button[hidden], .install-hint[hidden] { display: none; }
.install-hint { margin: 8px 2px 0; }
.install-hint b { color: rgba(255,255,255,.72); }

/* The demo track sits under the transport, in the accent that says "start
   here" — it is the one control a first, silent visit needs. */
.wa-demo { margin: 7px 7px 0; }
/* The playlist keys — repeat all and next track — sit on the same row as the
   button they belong to, narrow enough that the label keeps the space. */
.demo-row { display: flex; gap: 4px; }
.demo-button {
  border-color: rgba(199, 255, 72, .5) !important;
  background: linear-gradient(#4d5a3f, #2b3324) !important;
  color: var(--lime) !important;
}
/* Repeat all is a toggle, so it wears the ordinary tab colours when it is off
   and the pressed accent when it is on — the row's lime is not a state. */
.demo-icon { flex: 0 0 36px; font-size: 13px; }
.wa-demo .wa-hint { margin: 6px 2px 0; }
.wa-demo a { color: rgba(255,255,255,.66); }

.wa-body { padding: 9px; }
.wa-hint { margin: 8px 0 14px; color: rgba(255,255,255,.42); font-family: var(--skin-font); font-size: 10px; line-height: 1.5; }

/* The full attribution for whatever is on screen. The overlay carries one
   line; this is the whole note and the link back to the source. */
.visual-about { margin: 0 0 16px; }
.visual-about h3 { margin: 0 0 6px; font-family: var(--skin-font); font-size: 12px; letter-spacing: .08em; }
.visual-about-name { margin: 0; font-size: 13px; }
.visual-about-name strong { font-weight: 800; }
.visual-about-name span { color: var(--cyan); }
.visual-about-note { margin: 6px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.55; }

.top-visuals { margin: 0 0 16px; }
.top-visuals-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.top-visuals-heading .eyebrow { margin-bottom: 4px; }
.top-visuals-heading h3 { margin: 0; font-family: var(--skin-font); font-size: 14px; letter-spacing: .06em; }
.top-visuals-heading > small { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.top-visuals-status { margin: 6px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }
.top-visuals-list, .bookmark-list {
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--skin-shadow);
  border-radius: 2px;
  background: var(--lcd-bg);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.8);
}
.top-visual-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px !important;
  padding: 4px 8px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lime) !important;
  text-align: left;
}
.top-visual-button:nth-child(even) { background: rgba(199,255,72,.05) !important; }
.top-visual-button[aria-current="true"] { background: rgba(82,244,255,.14) !important; color: var(--cyan) !important; }
.top-rank { font-size: 12px; font-weight: 700; text-align: right; }
.top-visual-button strong, .top-visual-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-visual-button strong { font-size: 11px; font-weight: 400; }
.top-visual-button small { margin-top: 2px; color: rgba(199,255,72,.5); font-size: 9px; }

.range-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 2px 2px 10px;
  color: #dfe5f7;
  font-family: var(--skin-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.range-control output { color: var(--lime); }
.range-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--pink); }

.toggle-row { display: flex; flex-wrap: wrap; gap: 4px; }
.toggle-row .toggle { flex: 1 1 84px; min-height: 30px !important; color: #cfd7ef !important; }
.toggle-row .toggle.active {
  border-color: rgba(82,244,255,.5);
  background: linear-gradient(#2f5c67, #1a2a30);
  color: var(--cyan) !important;
}

.seed-form { margin-top: 16px; }
.seed-form > label { display: block; margin-bottom: 6px; color: rgba(255,255,255,.6); font-family: var(--skin-font); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.seed-form > div { display: grid; grid-template-columns: 1fr 58px; gap: 6px; }
.seed-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--skin-shadow);
  border-radius: 2px;
  background: var(--lcd-bg);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.8);
  color: var(--lime);
  font-family: var(--skin-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .32em;
}

.bookmarks { margin-top: 16px; }
.bookmarks h3, .geek-panel h3 { margin: 0 0 8px; font-family: var(--skin-font); font-size: 12px; letter-spacing: .08em; }
.bookmark-list button {
  min-height: 34px !important;
  padding: 0 8px;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lime) !important;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmark-list button:nth-child(even) { background: rgba(199,255,72,.05) !important; }

.geek-panel { margin-top: 16px; }
.geek-panel pre {
  max-height: 260px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--skin-shadow);
  border-radius: 2px;
  background: var(--lcd-bg);
  color: #c8fbff;
  font: 10px/1.5 var(--skin-font);
  white-space: pre;
}

.about { margin-top: 22px; padding: 0 4px; }
.about h2 { margin: 0 0 12px; font-size: clamp(22px, 6vw, 32px); line-height: 1.05; letter-spacing: -.04em; }
.about p:not(.eyebrow) { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.6; }
.about a { color: var(--cyan); }
.about .privacy-note { color: var(--lime) !important; font-size: 11px !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
/* The demo track's licence credit, kept in the crawlable copy as well as on
   the overlay, so it survives with or without scripts. */
.about .credits-note { color: rgba(255,255,255,.5) !important; font-size: 12px !important; }
.quiet-button { width: 100%; margin-top: 16px; background: transparent !important; box-shadow: none !important; color: rgba(255,255,255,.55) !important; }
.system-message { min-height: 18px; margin: 12px 0 0; color: rgba(255,255,255,.6); font-size: 12px; text-align: center; }

.landing {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(5,4,10,.48);
  text-align: center;
  backdrop-filter: blur(14px);
  touch-action: auto;
}
.landing[hidden] { display: none; }
.landing p:not(.eyebrow) {
  max-width: 420px;
  color: var(--lcd-dim);
  font-family: var(--skin-font);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
  text-transform: uppercase;
}
.landing-mark { display: flex; align-items: center; gap: 5px; height: 58px; margin-bottom: 20px; }
.landing-mark i { width: 6px; border-radius: 9px; background: linear-gradient(var(--cyan), var(--pink)); animation: bars .65s ease-in-out infinite alternate; }
.landing-mark i:nth-child(1), .landing-mark i:nth-child(5) { height: 22px; }
.landing-mark i:nth-child(2), .landing-mark i:nth-child(4) { height: 42px; animation-delay: -.25s; }
.landing-mark i:nth-child(3) { height: 58px; animation-delay: -.45s; }

#audioPlayer { display: none; }
.noscript { min-height: 100vh; padding: 20vh 24px; background: #05040a; color: #fff; text-align: center; }

@media (min-width: 760px) {
  .controls {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: min(460px, calc(100vw - 44px));
    max-height: calc(100vh - 44px);
    padding: 14px 14px 18px;
    border: 1px solid var(--skin-light);
    border-radius: 6px;
    transform: translateX(calc(100% + 50px));
  }
  .controls.open { transform: none; }
  .sheet-handle { display: none; }
  .top-visuals-list, .bookmark-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { bottom: 46px; left: 46px; }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 7px; }
  .round-button { width: 42px; height: 42px; }
  .rating-controls button { width: 35px; height: 35px; }
  .responsiveness { padding: 10px 5px 8px; }
  .responsiveness-slider { width: 22px; height: min(30vh, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@keyframes bars { from { transform: scaleY(.6); filter: hue-rotate(0deg); } to { transform: scaleY(1.08); filter: hue-rotate(80deg); } }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(199,255,72,.34); } 50% { box-shadow: 0 0 0 7px rgba(199,255,72,0); } }
