/* Le Drop: a club deck made screen. Flat modules, silkscreened codes, LEDs, an LCD. */

:root {
  color-scheme: dark;
  --booth: #0d0f12;
  --body: #16181c;
  --module: #1d2025;
  --edge: #2a2e35;
  --edge-hi: #3a3f48;
  --silk: #a7adb7;
  --silk-hi: #dfe3e8;
  --off: #80868f;
  --lcd: #05080e;
  --lcd-line: #121a2a;
  --lcd-ink: #eef2f8;
  --lcd-dim: #8b97ad;
  --low: #5a8bff;
  --mid: #ff9b26;
  --high: #f4f6fb;
  --cue: #ff7c1f;
  --play: #35d36f;
  --drop: #ff4a6e;
  --ink: #160b02;
  --drench: #1f4fe3;
  --drench-ink: #ffffff;
  --drench-soft: #d6e0ff;
  --drench-hot: #ffd08a;

  --font-ui: "Archivo Deck", "Arial Narrow", system-ui, sans-serif;
  --font-data: "Martian Deck", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --r-module: 12px;
  --r-pad: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--booth);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--edge-hi) var(--booth);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--booth);
  color: var(--silk-hi);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

::selection {
  background: var(--mid);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--mid);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--booth);
}
::-webkit-scrollbar-thumb {
  background: var(--edge-hi);
  border-radius: 8px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Silkscreened hardware codes. */
.silk,
.lcd-label,
.readout dt,
.pad-silk {
  font-family: var(--font-ui);
  font-stretch: 115%;
  font-weight: 650;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk);
}

/* LEDs: a lit dot plus its light spill. */
.led {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--play);
}
.led::after,
.key-led::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, currentColor 45%, transparent), transparent);
  color: var(--play);
}

/* ——— Sound toggle, always reachable ——— */
.sound {
  position: fixed;
  z-index: 20;
  top: calc(env(safe-area-inset-top) + 6px);
  right: max(10px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--module);
  color: var(--silk-hi);
  font-stretch: 112%;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.sound .icon-off,
.sound[aria-pressed="false"] .icon-on {
  display: none;
}
.sound[aria-pressed="false"] .icon-off {
  display: block;
}
.sound[aria-pressed="false"] {
  color: var(--silk);
}
.sound:hover {
  border-color: var(--edge-hi);
}
[data-state="dropped"] .sound {
  background: #1a43c2;
  background: color-mix(in srgb, var(--drench) 82%, black);
  border-color: #7d99ee;
  border-color: color-mix(in srgb, var(--drench) 60%, white);
  color: var(--drench-ink);
}
[data-state="dropped"].is-scrolled .sound {
  background: var(--module);
  border-color: var(--edge);
}

/* ——— The deck ——— */
.deck {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-areas:
    "strip"
    "lcd"
    "platter"
    "pad"
    "transport";
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: clamp(8px, 1.5svh, 14px);
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(env(safe-area-inset-bottom) + 14px);
  overflow: hidden;
}

.deck-strip {
  grid-area: strip;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-right: 96px; /* room for the sound toggle */
}
.deck-strip .silk:first-child {
  margin-right: 10px;
  color: var(--silk-hi);
}

/* LCD */
.lcd {
  grid-area: lcd;
  display: grid;
  gap: 7px;
  padding: 10px 12px 9px;
  background: var(--lcd);
  border: 1px solid var(--edge);
  border-radius: var(--r-module);
  color: var(--lcd-ink);
  transition: background-color 0.12s;
}
.lcd-label,
.readout dt {
  color: var(--lcd-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.lcd-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 10px;
}
.lcd-title,
.lcd-artist {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.lcd-title {
  font-size: clamp(15px, 4.4vw, 18px);
  line-height: 1.25;
}
.lcd-artist {
  font-size: clamp(13px, 3.8vw, 15px);
  color: var(--mid);
}
.marquee {
  display: inline-block;
  white-space: nowrap;
}
.lcd-title.is-overflowing .marquee {
  animation: marquee var(--marquee-dur, 8s) ease-in-out infinite alternate;
}
@keyframes marquee {
  0%,
  14% {
    transform: translateX(0);
  }
  86%,
  100% {
    transform: translateX(var(--marquee-shift, 0));
  }
}
.redact {
  display: inline-block;
  width: 6.2em;
  height: 0.8em;
  vertical-align: -0.04em;
  border-radius: 2px;
  background: var(--lcd-dim);
  animation: redact 2.4s steps(2, jump-none) infinite;
}
@keyframes redact {
  50% {
    opacity: 0.55;
  }
}
.unredact {
  color: var(--mid);
}

.readouts {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 4px 14px;
  margin: 0;
}
.readout {
  min-width: 0;
}
.readout dd {
  margin: 3px 0 0;
  font-family: var(--font-data);
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(14px, 4.1vw, 19px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.readout--drop dd {
  color: var(--drop);
}
.readout--remain {
  justify-self: end;
  text-align: right;
}
.readout--remain dd {
  color: var(--mid);
}

.wave {
  position: relative;
  height: clamp(52px, 9.5svh, 104px);
  border-block: 1px solid var(--lcd-line);
  overflow: hidden;
}
.wave-zoom,
.wave-overview {
  display: block;
  width: 100%;
}
.wave-zoom {
  height: 100%;
}
.wave-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-stretch: 115%;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lcd-dim);
}
[data-state="off"] .wave-empty {
  display: grid;
}
.wave-overview {
  height: 18px;
}

.lcd-status {
  margin: 0;
  min-height: 1em;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cue);
}
[data-state="cued"] .lcd-status {
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.lcd-remain-note {
  margin: 0;
  font-size: 12px;
  color: var(--lcd-dim);
}

/* Platter */
.platter-slot {
  grid-area: platter;
  container-type: size;
  display: grid;
  place-items: center;
  min-height: 0;
}
.platter {
  position: relative;
  width: min(100cqw, 100cqh, 400px);
  aspect-ratio: 1;
}
.platter-base,
.platter-rotor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pb-body {
  fill: var(--module);
  stroke: var(--edge);
  stroke-width: 1;
}
.pb-top {
  fill: var(--body);
}
.platter-rotor {
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}
.pr-knurl line {
  stroke: var(--edge-hi);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.pr-grooves circle {
  fill: none;
  stroke: var(--edge);
  stroke-width: 0.8;
}
.pr-index {
  fill: var(--silk);
}
.pr-led {
  fill: none;
  stroke: var(--cue);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.35;
}
[data-state="building"] .pr-led,
[data-state="replaying"] .pr-led {
  opacity: 1;
}
.platter-face {
  position: absolute;
  inset: 27%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: 50%;
  background: var(--lcd);
  border: 1px solid var(--edge);
  container-type: inline-size;
}
.platter-count {
  font-family: var(--font-ui);
  font-weight: 900;
  font-stretch: 75%;
  font-size: min(34cqw, calc(118cqw / var(--len, 1)));
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lcd-ink);
}
.platter-count.is-drop {
  color: var(--drop);
}
.platter-sub {
  font-stretch: 115%;
  font-weight: 650;
  font-size: max(9px, 8cqw);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lcd-dim);
}
.platter-count.pop {
  animation: pop 0.38s var(--ease-out);
}
@keyframes pop {
  from {
    transform: scale(1.35);
    opacity: 0.4;
  }
}

/* CUE pad: the primary action */
.pad {
  grid-area: pad;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  width: 100%;
  min-height: clamp(92px, 15svh, 148px);
  padding: 18px 16px 16px;
  border: 2px solid var(--cue);
  border-color: color-mix(in srgb, var(--cue) 70%, var(--edge));
  border-radius: var(--r-pad);
  background: var(--module);
  color: var(--silk-hi);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  isolation: isolate;
  transition: background-color 0.12s, color 0.12s, transform 0.12s var(--ease-out);
}
.pad::before {
  /* light spill from the pad LED */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14px;
  border-radius: calc(var(--r-pad) + 14px);
  background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--cue) 30%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}
[data-state="cued"] .pad::before {
  animation: breathe 1.6s ease-in-out infinite;
}
.pad-silk {
  position: absolute;
  top: 11px;
  left: 14px;
  color: var(--cue);
}
.pad-word {
  font-weight: 850;
  font-stretch: 125%;
  font-size: clamp(27px, 9.2vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.pad-help {
  font-stretch: 105%;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: var(--silk);
}
.pad-bars {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 3px;
}
.pad-bars i {
  width: 14px;
  height: 5px;
  border-radius: 1px;
  background: var(--edge-hi);
}
.pad-bars i.on {
  background: var(--ink);
}
[data-state="building"] .pad,
[data-state="replaying"] .pad {
  background: var(--cue);
  border-color: var(--cue);
  color: var(--ink);
  transform: scale(0.985);
}
[data-state="building"] .pad::before,
[data-state="replaying"] .pad::before {
  opacity: 1;
}
[data-state="building"] .pad-silk,
[data-state="building"] .pad-help,
[data-state="replaying"] .pad-silk,
[data-state="replaying"] .pad-help {
  color: var(--ink);
}
[data-state="building"] .pad-bars i,
[data-state="replaying"] .pad-bars i {
  background: color-mix(in srgb, var(--ink) 25%, var(--cue));
}
[data-state="building"] .pad-bars i.on,
[data-state="replaying"] .pad-bars i.on {
  background: var(--ink);
}
.pad.nudge {
  animation: nudge 0.42s var(--ease-out);
}

/* Transport keys */
.transport {
  grid-area: transport;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.key {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--module);
  color: var(--silk-hi);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.key:hover:not(:disabled) {
  border-color: var(--edge-hi);
  background: #23262c;
}
.key:active:not(:disabled) {
  transform: translateY(1px);
}
.key:disabled {
  cursor: not-allowed;
  background: var(--body);
  border-color: #23262c;
  color: var(--off);
}
.key-text {
  display: grid;
  justify-items: start;
  gap: 3px;
  line-height: 1;
  text-align: left;
}
.key-sub {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--silk);
}
.key-led {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--play);
  color: var(--play);
}
[data-state="cued"] .key-led {
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.key--play.is-suggested {
  border-color: var(--play);
}
.key--big {
  width: 100%;
  min-height: 64px;
  font-size: 15px;
  border-color: color-mix(in srgb, var(--mid) 70%, var(--edge));
}
.key--big .icon {
  width: 22px;
  height: 22px;
  color: var(--mid);
}

/* Off: no track loaded. The first tap loads it (and is the gesture that may start audio). */
.booth:not([data-state="off"]) .when-off,
[data-state="off"] .when-on {
  display: none;
}
[data-state="off"] .lcd-title {
  color: var(--lcd-dim);
}
.wave-zoom,
.wave-overview {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease-out);
}
[data-state="off"] .wave-zoom,
[data-state="off"] .wave-overview {
  clip-path: inset(0 100% 0 0);
  transition: none;
}
.platter {
  transition: opacity 0.5s var(--ease-out);
}
[data-state="off"] .platter {
  opacity: 0.5;
}
[data-state="off"] .lcd-status,
[data-state="off"] .key-led {
  animation: blink 1.2s steps(2, jump-none) infinite;
}
[data-state="off"] .pad::before {
  animation: breathe 1.6s ease-in-out infinite;
}
[data-state="loading"] .pad {
  cursor: progress;
}
[data-state="loading"] .pad-word {
  opacity: 0.6;
}

/* Building: the deck heats up, the last bar shakes, the gap holds its breath. */
.deck {
  transform: translate3d(var(--shake-x, 0), var(--shake-y, 0), 0);
}
.lcd.beat {
  background: #0b1222;
}
.is-gap .lcd,
.is-gap .platter-slot,
.is-gap .deck-strip {
  opacity: 0.38;
  transition: opacity 0.08s;
}

/* The build heats the booth: an amber glow closes in from the edges. */
.booth::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 55%, transparent 35%, rgb(255 124 31 / 0.42) 100%);
  opacity: var(--heat, 0);
  will-change: opacity; /* own layer: only its opacity changes during the build */
}

/* Fullscreen effects */
.fx {
  position: fixed;
  inset: 0;
  z-index: 15;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flash {
  position: fixed;
  inset: 0;
  z-index: 17;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.go {
  animation: flash 0.22s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

/* ——— The drop: the low band floods the screen ——— */
.drench {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top) + 64px) var(--gutter) calc(env(safe-area-inset-bottom) + 64px);
  background: var(--drench);
  background: color-mix(in oklab, var(--drench), white calc(var(--kick, 0) * 7%));
  color: var(--drench-ink);
}
.drench-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.drench-rings circle {
  fill: none;
  stroke: rgb(255 255 255 / 0.16);
  stroke-width: 1.5;
}
.drench-rings .pin {
  fill: var(--drench-ink);
  stroke: none;
}
.drench-rings .outer {
  stroke: rgb(255 255 255 / 0.08);
}
.drench-inner {
  position: relative;
  z-index: 16; /* the facts stay in front of the burst canvas */
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2.2svh, 20px);
  text-align: center;
}
.drop-title {
  margin: 0 0 clamp(6px, 1.5svh, 16px);
  display: grid;
  justify-items: center;
  font-weight: 900;
  font-stretch: 62%;
  font-size: var(--title-size, clamp(88px, 27vw, 260px));
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  outline: none;
}
.drop-title .w {
  display: block;
}
.drop-title.one-line {
  display: block;
}
.drop-title.one-line .w {
  display: inline;
}
.drop-line {
  margin: 0;
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(14px, 4vw, 20px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drench-soft);
}
.drop-line--strong {
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(22px, 6.6vw, 38px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--drench-ink);
}
.drop-gift {
  margin: clamp(4px, 1svh, 10px) 0 0;
  max-width: 32ch;
  font-weight: 650;
  font-stretch: 100%;
  font-size: clamp(17px, 4.8vw, 23px);
  line-height: 1.3;
  text-wrap: balance;
}
.karaoke {
  margin: 0;
  min-height: 1.3em;
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(20px, 5.6vw, 30px);
  line-height: 1.3;
  color: var(--drench-soft);
}
.karaoke .syl.sung {
  color: var(--drench-ink);
}
.karaoke .syl.now {
  color: var(--drench-hot);
}
.scroll-cue {
  position: absolute;
  z-index: 16;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  width: max-content;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 750;
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--drench-ink);
}

/* Entrance of the drop: words slam in, facts land as the shockwave passes them. */
.drench.is-dropping .drop-title .w:first-child {
  animation: slam-l 0.5s var(--ease-out) both;
}
.drench.is-dropping .drop-title .w:last-child {
  animation: slam-r 0.5s var(--ease-out) both;
}
.drench.is-dropping [data-ring],
.drench.is-dropping .karaoke,
.drench.is-dropping .scroll-cue {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease-out, transform 0.5s var(--ease-out);
}
.drench.is-dropping .on {
  opacity: 1;
  transform: none;
}
/* The drop hits: one short quake, then title and rings pump on every kick. */
.drench.is-quake .drench-inner {
  animation: quake 0.45s ease-out;
}
@keyframes quake {
  15% {
    transform: translate(-7px, 4px);
  }
  35% {
    transform: translate(6px, -5px);
  }
  55% {
    transform: translate(-4px, 2px);
  }
  75% {
    transform: translate(2px, -1px);
  }
}
.drop-title {
  transform: scale(calc(1 + var(--kick, 0) * 0.03));
}
.drench-rings {
  transform: scale(calc(1 + var(--kick, 0) * 0.02));
  transform-origin: var(--ring-origin, 50% 40%);
}
@keyframes slam-l {
  from {
    transform: translateX(-22%) scale(1.3);
    filter: blur(8px);
    opacity: 0;
  }
}
@keyframes slam-r {
  from {
    transform: translateX(22%) scale(1.3);
    filter: blur(8px);
    opacity: 0;
  }
}

/* ——— After the drop: the deck becomes a scrolling column of modules ——— */
[data-state="dropped"] .deck {
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 760px);
  padding-top: 28px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 40px);
  transform: none;
}
[data-state="dropped"] .platter-slot,
[data-state="dropped"] .pad,
[data-state="dropped"] .transport {
  display: none;
}
[data-state="dropped"] .readout--drop {
  display: none;
}
[data-state="dropped"] .readouts {
  grid-template-columns: auto auto 1fr;
}

.module {
  padding: 18px 16px 16px;
  background: var(--body);
  border: 1px solid var(--edge);
  border-radius: var(--r-module);
  scroll-margin-top: 72px;
}
.module-title {
  margin: 0 0 14px;
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--silk-hi);
}

/* Hot cue pads carry the practical facts. */
.hotcue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hotcue {
  position: relative;
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 112px;
  padding: 30px 12px 12px;
  border: 2px solid var(--hc);
  border-radius: 14px;
  background: var(--module);
  background: color-mix(in srgb, var(--hc) 9%, var(--module));
  color: var(--silk-hi);
  text-decoration: none;
}
.hotcue::before {
  content: attr(data-letter);
  position: absolute;
  top: 10px;
  left: 12px;
  font-stretch: 115%;
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--hc);
}
.hotcue .icon {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 18px;
  height: 18px;
  color: var(--hc);
}
.hotcue-big {
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.05;
  text-transform: uppercase;
}
.hotcue-small {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  color: var(--silk);
  overflow-wrap: anywhere;
}
a.hotcue:hover {
  background: color-mix(in srgb, var(--hc) 16%, var(--module));
}
.hc-a {
  --hc: var(--low);
}
.hc-b {
  --hc: var(--mid);
}
.hc-c {
  --hc: var(--drop);
}
.hc-d {
  --hc: var(--play);
}

.fineprint {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--silk);
}

/* Line-up: the browse screen. */
.browse {
  background: var(--lcd);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tab {
  min-height: 46px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--module);
  color: var(--silk-hi);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tab[aria-selected="true"] {
  background: var(--lcd-ink);
  border-color: var(--lcd-ink);
  color: var(--lcd);
}
.crate {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.crate li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--lcd-line);
  font-weight: 750;
  font-stretch: 100%;
  font-size: clamp(17px, 4.8vw, 21px);
  line-height: 1.2;
  color: var(--lcd-ink);
}
.crate li:last-child {
  border-bottom: 0;
}
.crate .slot {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--lcd-dim);
}

/* Close */
.outro {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}
.signature {
  margin: 4px 0 0;
  font-weight: 850;
  font-stretch: 88%;
  font-size: clamp(30px, 8.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--silk-hi);
}
.signature-from {
  color: var(--mid);
}

.noscript {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  margin: 0;
  padding: 18px var(--gutter) calc(env(safe-area-inset-bottom) + 18px);
  background: var(--drop);
  color: var(--ink);
  font-weight: 750;
  font-size: 17px;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes nudge {
  20% {
    transform: translateX(-6px);
  }
  45% {
    transform: translateX(5px);
  }
  70% {
    transform: translateX(-3px);
  }
}

/* Landscape phones: LCD and transport on the left, platter and pad on the right. */
@media (orientation: landscape) and (max-height: 560px) {
  .deck {
    width: min(100%, 960px);
    grid-template-areas:
      "strip strip"
      "lcd platter"
      "transport pad";
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: calc(env(safe-area-inset-top) + 8px);
  }
  .pad {
    min-height: 84px;
  }
  .transport {
    align-self: end;
  }
  .lcd {
    align-content: start;
  }
  .wave {
    height: clamp(44px, 16svh, 90px);
  }
  .drench {
    padding-top: calc(env(safe-area-inset-top) + 56px);
  }
}

@media (min-width: 900px) {
  .hotcue-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .drop-line {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .lcd-title {
    white-space: normal;
  }
  .lcd-title.is-overflowing .marquee {
    animation: none;
    padding-right: 0;
  }
  .marquee {
    white-space: normal;
  }
  .deck {
    transform: none;
  }
}
