/*
 * theme-picker.css: the look of <theme-picker>. Every colour is a theme
 * variable, so the picker wears whatever theme is on. Restyle freely; keep the
 * 44px targets and the focus outlines.
 */
theme-picker {
  position: relative;
  display: inline-block;
  font: inherit;
}
.tp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.6rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  cursor: pointer;
}
.tp-button:hover {
  background: var(--c-mark);
  color: var(--c-mark-ink);
  border-color: var(--c-mark-ink);
}
.tp-button:focus-visible,
.tp-option input:focus-visible + .tp-swatch {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
/* A swatch: the paper, with a band of the highlighter and an ink edge. */
.tp-swatch {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--tp-ink, var(--c-text));
  background: linear-gradient(to bottom, var(--tp-paper, var(--c-bg)) 62%, var(--tp-mark, var(--c-mark)) 62%);
}
.tp-swatch-device {
  background: linear-gradient(to bottom, transparent 62%, var(--c-mark) 62%),
    linear-gradient(to right, #ffffff 50%, #16161a 50%);
}
.tp-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-text);
}
.tp-panel[hidden] {
  display: none;
}
.tp-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.tp-legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.tp-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--c-border);
}
.tp-group-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
}
.tp-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.tp-option:hover {
  background: var(--c-mark);
  color: var(--c-mark-ink);
}
/* The radio itself is visually replaced by its swatch but stays focusable. */
.tp-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tp-option:has(input:checked) {
  border-color: var(--c-rule);
  box-shadow: inset 0 -3px 0 var(--c-mark);
  font-weight: 600;
}
.tp-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 30rem) {
  .tp-columns {
    gap: 0 0.5rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .tp-button,
  .tp-option {
    transition: background-color 0.12s ease, color 0.12s ease;
  }
}

/*
 * site.css: the page's own rules. Mobile first: the base rules are the phone layout, the
 * min-width blocks widen it. Every colour is a theme variable (see themes.json); never write a
 * colour here. --beat (0..1) is set by app.js while a track plays.
 */
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-latin-800.woff2') format('woff2');
  font-weight: 600 900;
  font-display: optional;
}

:root {
  --beat: 0;
  --glow: color-mix(in srgb, var(--c-mark) 55%, transparent);
  --glow-soft: color-mix(in srgb, var(--c-mark) 22%, transparent);
  --cut: 14px;
  --display: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
html.has-dock body {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}
h1,
h2,
h3,
legend,
.wordmark,
.btn,
.kicker,
.stat dd,
.badge,
.ticker,
.dock-kicker,
.scope-label,
.drop-out {
  font-family: var(--display);
}
a {
  color: var(--c-accent);
  text-decoration-color: var(--c-mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  background: var(--c-mark);
  color: var(--c-mark-ink);
}
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
mark {
  background: var(--c-mark);
  color: var(--c-mark-ink);
  padding: 0.2em 0.5em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ico-s {
  width: 0.85em;
  height: 0.85em;
}
.when-playing {
  display: none;
}
.when-paused {
  display: inline-flex;
}
.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--c-mark);
  color: var(--c-mark-ink);
}
.skip:focus {
  top: 0.5rem;
}

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-mark);
  box-shadow: 0 0 22px var(--glow-soft);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-right: auto;
  color: var(--c-text);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  padding: 3px;
  background: var(--c-mark);
  box-shadow: 0 0 12px var(--glow);
}
.eq i {
  width: 3px;
  height: 100%;
  background: var(--c-mark-ink);
  transform-origin: bottom;
  transform: scaleY(0.45);
}
.eq i:nth-child(2) {
  transform: scaleY(0.9);
}
.eq i:nth-child(3) {
  transform: scaleY(0.6);
}
.eq i:nth-child(4) {
  transform: scaleY(0.3);
}
.nav {
  display: none;
  gap: 0.25rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

/* Layout */
main > section:not(.hero),
.foot {
  padding: 3rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  max-width: 72rem;
  margin: 0 auto;
}
h1 {
  margin: 0.4rem 0 1rem;
  font-weight: 900;
  font-size: clamp(1.7rem, 9.6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 calc(10px + 26px * var(--beat)) var(--glow),
    0.035em 0.035em 0 var(--c-mark);
}
h2 {
  margin: 0 0 0.6rem;
  font-weight: 900;
  font-size: clamp(1.5rem, 7vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0.05em 0.05em 0 var(--c-mark);
}
.h-no {
  display: inline-block;
  margin-right: 0.4em;
  padding: 0.15em 0.4em;
  background: var(--c-mark);
  color: var(--c-mark-ink);
  font-size: 0.5em;
  vertical-align: middle;
  text-shadow: none;
  transform: skewX(-8deg);
}
h3 {
  margin: 0;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.lede {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--c-text-muted);
}
.fine {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--c-text-subtle);
}

/* Buttons: cut corners, loud on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--c-border-strong);
  border-radius: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.1s ease-out;
}
.btn.primary {
  background: var(--c-mark);
  border-color: var(--c-mark);
  color: var(--c-mark-ink);
}
.btn:hover {
  background: var(--c-mark);
  border-color: var(--c-mark);
  color: var(--c-mark-ink);
  transform: translateY(-2px) scale(1.02);
}
.btn.primary:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn.big {
  min-height: 56px;
  padding: 0.75rem 1.4rem;
  font-size: 0.8rem;
}
.glow-wrap,
.cta {
  filter: drop-shadow(0 0 calc(8px + 14px * var(--beat)) var(--glow));
}
.btn.huge {
  width: 100%;
  min-height: 96px;
  font-size: clamp(1.2rem, 6vw, 2.2rem);
  font-weight: 900;
  --cut: 22px;
}

/* Hero: the reactive stage */
.hero {
  position: relative;
  display: grid;
  min-height: min(calc(100svh - 62px), 56rem);
  overflow: hidden;
  background: var(--c-bg);
  isolation: isolate;
}
.hero canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
html[data-viz='off'] .hero canvas {
  display: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--c-bg) 30%, transparent 78%);
}
.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 1.25rem;
  text-align: center;
}
.hero-face {
  width: 168px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--c-mark);
  box-shadow:
    0 0 calc(18px + 46px * var(--beat)) var(--glow),
    0 0 0 calc(6px + 10px * var(--beat)) var(--glow-soft);
  transform: scale(calc(1 + 0.05 * var(--beat)));
}
.hero-face img {
  border-radius: 50%;
}
.kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.tagline {
  margin: 0 0 1.75rem;
  font-weight: 800;
  font-size: clamp(0.72rem, 3.3vw, 1.15rem);
  letter-spacing: 0.06em;
  line-height: 2;
}
.tagline mark {
  box-shadow: 0 0 18px var(--glow);
}
.cta {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 26rem;
}
.scope-label {
  margin: 1.5rem 0 0;
  padding: 0.35rem 0.75rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.scope-label::before {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--c-border-strong);
}
html.is-playing .scope-label {
  color: var(--c-text);
  border-color: var(--c-mark);
}
html.is-playing .scope-label::before {
  background: var(--c-mark);
  box-shadow: 0 0 10px var(--glow);
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--c-mark);
  color: var(--c-mark-ink);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-1.2deg) scale(1.03);
  box-shadow: 0 0 30px var(--glow);
  position: relative;
  z-index: 2;
}
.ticker-in {
  display: inline-flex;
  padding: 0.7rem 0;
}
.ticker span::after {
  content: '\2736';
  margin: 0 1.1em;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
  gap: 0.5rem;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0.8rem 0.6rem;
  background: var(--c-surface);
  border-top: 4px solid var(--c-mark);
  text-align: center;
}
.stat dd {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.5rem, 8vw, 3.4rem);
  line-height: 1.1;
}
.stat dt {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--c-text-muted);
}

/* Player */
.player-frame {
  border: 2px solid var(--c-mark);
  background: var(--c-bg-sunken);
  min-height: 166px;
  box-shadow: 0 0 calc(16px + 24px * var(--beat)) var(--glow-soft);
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 166px;
  border: 0;
}

/* Tracks: artwork first */
.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.9rem;
}
html[data-cards='poster'] .tracks {
  grid-template-columns: minmax(0, 1fr);
}
.track {
  min-width: 0;
}
.art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--c-border-strong);
  background: var(--c-bg-sunken);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.15s ease-out;
}
.art img {
  width: 100%;
  transition: transform 0.3s ease-out;
}
.art:hover,
.art:focus-visible {
  border-color: var(--c-mark);
  transform: translateY(-4px);
}
.art:hover img {
  transform: scale(1.07);
}
.art-play {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-mark);
  color: var(--c-mark-ink);
  font-size: 1.15rem;
  box-shadow: 0 0 16px var(--glow);
}
.track.is-current .art {
  border-color: var(--c-mark);
}
.track.is-current .art-play {
  transform: scale(calc(1 + 0.22 * var(--beat)));
}
.track.is-current h3 {
  text-decoration: underline;
  text-decoration-color: var(--c-mark);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
html.is-playing .track.is-current .when-paused,
html.is-playing .dock .when-paused {
  display: none;
}
html.is-playing .track.is-current .when-playing,
html.is-playing .dock .when-playing {
  display: inline-flex;
}
.badge {
  position: absolute;
  top: 0.5rem;
  right: 0;
  padding: 0.25em 0.6em;
  background: var(--c-mark);
  color: var(--c-mark-ink);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.track-body {
  padding-top: 0.6rem;
}
.meta {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.quote {
  display: none;
  margin: 0.4rem 0 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  overflow-wrap: anywhere;
}
html[data-cards='poster'] .quote {
  display: block;
}
html[data-cards='poster'] h3 {
  font-size: 1.2rem;
}
.track-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0.2rem 0 0;
}
.dl-none {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  color: var(--c-text-subtle);
}
.dl,
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Boost */
.drop-out {
  margin: 1.5rem 0;
  padding: 1.1rem 1rem;
  min-height: 8.5rem;
  border-left: 8px solid var(--c-mark);
  background: var(--c-bg-sunken);
  font-size: clamp(1.05rem, 4.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  box-shadow: -10px 0 26px -8px var(--glow);
}
.note {
  margin: 0;
  max-width: 40rem;
  color: var(--c-text-muted);
}
.sig {
  white-space: nowrap;
  color: var(--c-text);
  font-weight: 700;
}

/* Tune */
.tune {
  display: grid;
  gap: 1.5rem;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend,
.tune-themes h3 {
  padding: 0;
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 2px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 700;
}
.chip input:checked + span {
  background: var(--c-mark);
  border-color: var(--c-mark);
  color: var(--c-mark-ink);
  box-shadow: 0 0 16px var(--glow);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.chip:hover span {
  border-color: var(--c-mark);
}

/* Dock: the player bar in thumb reach */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--c-surface);
  border-top: 2px solid var(--c-mark);
  box-shadow: 0 0 calc(18px + 26px * var(--beat)) var(--glow);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--c-bg-sunken);
  accent-color: var(--c-mark);
}
.dock progress::-webkit-progress-bar {
  background: var(--c-bg-sunken);
}
.dock progress::-webkit-progress-value {
  background: var(--c-mark);
}
.dock progress::-moz-progress-bar {
  background: var(--c-mark);
}
.dock-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 2px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 1.05rem;
  cursor: pointer;
}
.icon-btn.main {
  background: var(--c-mark);
  border-color: var(--c-mark);
  color: var(--c-mark-ink);
}
.icon-btn:hover {
  border-color: var(--c-mark);
}
.dock-art {
  width: 48px;
  height: 48px;
  flex: none;
  margin-left: 0.35rem;
  border: 1px solid var(--c-border-strong);
}
.dock-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0 0 0 0.35rem;
  line-height: 1.25;
}
.dock-kicker {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}
.dock-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Footer */
.foot {
  margin-top: 2rem;
  border-top: 2px solid var(--c-mark);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.foot p {
  margin: 0 0 0.5rem;
  max-width: 44rem;
}

/* Motion, only for people who have not asked for less */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .ticker-in {
    animation: ticker 28s linear infinite;
  }
  html.is-playing .eq i {
    animation: eq 0.4s ease-in-out infinite alternate;
  }
  html.is-playing .eq i:nth-child(2) {
    animation-delay: -0.3s;
  }
  html.is-playing .eq i:nth-child(3) {
    animation-delay: -0.15s;
  }
  html.is-playing .eq i:nth-child(4) {
    animation-delay: -0.22s;
  }
  .drop-out.pop {
    animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
  }
  main.shake {
    animation: shake 0.45s linear;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes eq {
  from {
    transform: scaleY(0.2);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes pop {
  from {
    transform: scale(0.92) rotate(-1deg);
  }
  to {
    transform: scale(1);
  }
}
@keyframes shake {
  20% {
    transform: translate(-5px, 3px);
  }
  40% {
    transform: translate(5px, -3px);
  }
  60% {
    transform: translate(-3px, -2px);
  }
  80% {
    transform: translate(3px, 2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .art,
  .art img {
    transition: none;
  }
}

/* Wider than a phone */
@media (min-width: 640px) {
  .cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
  .tracks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
  html[data-cards='poster'] .tracks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote {
    display: block;
  }
  h3 {
    font-size: 1rem;
  }
  .btn.huge {
    width: auto;
    padding: 1rem 3.5rem;
  }
  .tune {
    grid-template-columns: repeat(2, 1fr);
  }
  .tune-themes {
    grid-column: 1 / -1;
  }
  .ticker {
    font-size: 1.2rem;
  }
  .stats {
    gap: 1rem;
  }
  .stat dt {
    font-size: 0.9rem;
  }
}
@media (min-width: 800px) {
  .nav {
    display: flex;
  }
  .wordmark {
    font-size: 1rem;
  }
  main > section:not(.hero),
  .foot {
    padding: 4.5rem 2rem;
  }
  .hero-face {
    width: 260px;
  }
  .stats {
    padding: 0 2rem;
  }
}
@media (min-width: 1000px) {
  .tracks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html[data-cards='poster'] .tracks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tune {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The lighting rig: the theme list laid out as a wall of switches */
main {
  overflow-x: clip;
}
.tune-themes theme-picker {
  display: block;
}
.tune-themes .tp-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.tune-themes .tp-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.tune-themes .tp-columns > * {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tune-themes .tp-group-title {
  flex-basis: 100%;
  margin: 0;
}
.tune-themes .tp-option {
  padding: 0 0.9rem 0 0.6rem;
  border: 2px solid var(--c-border-strong);
  background: var(--c-surface);
  font-weight: 700;
}
.tune-themes .tp-option:has(input:checked) {
  border-color: var(--c-mark);
  box-shadow: 0 0 16px var(--glow);
}

/* Light show */
.stage {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--c-mark);
  background: var(--c-bg-sunken);
  box-shadow: 0 0 calc(18px + 30px * var(--beat)) var(--glow-soft);
  overflow: hidden;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.stage:fullscreen {
  border: 0;
  aspect-ratio: auto;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
html.is-playing .stage-actions .when-paused {
  display: none;
}
html.is-playing .stage-actions .when-playing {
  display: inline-flex;
}
@media (min-width: 640px) {
  .stage {
    aspect-ratio: 16 / 9;
  }
}

/* Light show: the 3D row of patterns, and what Auto is showing now */
.chips-more {
  margin-top: 0.5rem;
  align-items: center;
}
.chips-tag {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.stage-now {
  align-self: center;
  min-height: 1.5em;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-muted);
}

/* Field photos: the same grid as the tracks */
.photos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.9rem;
}
.photos figure {
  margin: 0;
}
.photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--c-border-strong);
  background: var(--c-bg-sunken);
  clip-path: var(--cut);
}
.photos figcaption {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
@media (min-width: 640px) {
  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
