/* ============================================================================
   void records 2
   no blur filters, no backdrop-filter, no per-frame gradients.
   the whole point is that this stays smooth on a school laptop.
   ========================================================================= */

:root {
  --bg: #06050b;
  --bg2: #0a0812;
  --panel: #0d0b16;
  --panel2: #110e1d;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .14);
  --ink: #ece9f7;
  --dim: #8d87a6;
  --dim2: #625d78;
  --acc: #a78bfa;
  --acc2: #7c5cff;
  --pink: #ff6ec7;
  --teal: #4fe3c1;
  --warn: #ffb454;
  --danger: #ff5d73;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rail: 226px;
  --head: 58px;
  --foot: 46px;
}

* { box-sizing: border-box; }

/* themed scrollbars everywhere — slim dark track, muted-purple thumb */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0c0918; }
*::-webkit-scrollbar-thumb {
  background: #2f2750;
  border-radius: 6px;
  border: 2px solid #0c0918;
}
*::-webkit-scrollbar-thumb:hover { background: #3f3568; }
*::-webkit-scrollbar-corner { background: #0c0918; }
* { scrollbar-width: thin; scrollbar-color: #2f2750 #0c0918; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* static layered backdrop. gradients are painted once, never animated. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(124, 92, 255, .18), transparent 65%),
    radial-gradient(900px 600px at 100% 0%, rgba(255, 110, 199, .10), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(79, 227, 193, .07), transparent 60%),
    linear-gradient(180deg, #07060d, #050409 70%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%);
  z-index: -1;
}

::selection { background: rgba(167, 139, 250, .35); color: #fff; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ------------------------------------------------------------------ canvas */
#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}

#ambient {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(124, 92, 255, .12), transparent),
    radial-gradient(closest-side at 80% 70%, rgba(255, 110, 199, .08), transparent);
  transition: opacity .6s;
}

/* --------------------------------------------------------------- bg video */
/* the record's own picture, floating behind the whole desk. off by default. */
.bgVideo {
  position: fixed;
  top: 50%; left: 50%;
  width: 92%; height: 92%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  transition: opacity .5s, filter .25s;
  pointer-events: none;
  background: #000;
  border-radius: 10px;
}
.bgVideo.on { opacity: .62; }
body.cursed .bgVideo.on {
  opacity: .72;
  filter: saturate(3.2) contrast(1.85) brightness(1.08) hue-rotate(18deg) sepia(.18) !important;
}

/* ------------------------------------------------------------------- shell */
#shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: var(--head) 1fr var(--foot);
  height: 100vh;
  height: 100dvh;
}

/* ------------------------------------------------------------------- header */
#top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 620px) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 10, 20, .92), rgba(7, 6, 13, .72));
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brandDisc {
  width: 22px; height: 22px; border-radius: 50%;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%, #0a0812 0 18%, transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 0 1px, transparent 1px 3px),
    conic-gradient(from 0deg, #2a1f4d, #5b47a8, #201733, #2a1f4d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

body.isPlaying .brandDisc { animation: spin 3.4s linear infinite; }

.brandName {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 15.5px;
  white-space: nowrap;
}

.brandVer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--acc);
  border: 1px solid rgba(167, 139, 250, .4);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: .06em;
}

.topMid { display: flex; justify-content: center; }
.topRight { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.searchWrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 12px;
  transition: border-color .15s, background .15s;
}
.searchWrap:focus-within { border-color: rgba(167, 139, 250, .55); background: rgba(167, 139, 250, .06); }
.searchIcon { color: var(--dim2); font-size: 15px; margin-right: 8px; }
#search {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 9px 0;
  font-size: 13px;
  color: var(--ink);
}
#search::placeholder { color: var(--dim2); }
#search::-webkit-search-cancel-button { filter: invert(.6); }
.searchWrap kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 1px 5px;
}

.chip, .iconBtn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover, .iconBtn:hover { color: var(--ink); border-color: var(--line2); background: rgba(255,255,255,.05); }
.iconBtn.isOn { color: var(--acc); border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.1); }
.chip.dim { color: var(--dim2); }

/* --------------------------------------------------------------------- body */
#body {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 0;
}

/* --------------------------------------------------------------------- rail */
#rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px 12px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 8, 18, .55), transparent 40%);
  min-height: 0;
}

.railTop { display: flex; flex-direction: column; gap: 4px; }
.railHr { height: 1px; background: var(--line); margin: 10px 6px; }

.navItem {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  text-align: left;
  color: var(--dim);
  transition: background .14s, color .14s;
}
.navItem:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }

.navNum {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--dim2);
}
.navName { font-size: 13.5px; font-weight: 550; letter-spacing: -.01em; }
.navCount, .navHint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
}

.navItem.isOn {
  background: linear-gradient(90deg, rgba(167, 139, 250, .16), rgba(167, 139, 250, .03));
  color: #fff;
}
.navItem.isOn .navNum { color: var(--acc); }
.navItem.isOn::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 22px;
  margin-top: -11px;
  border-radius: 0 3px 3px 0;
  background: var(--acc);
  box-shadow: 0 0 12px rgba(167, 139, 250, .7);
}

.navItem.sub { padding: 7px 10px 7px 52px; grid-template-columns: 1fr auto; }
.navItem.sub .navName { font-size: 12.5px; font-weight: 450; }

.railFoot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 8px 4px;
  min-height: 0;
}
.miniKicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: 6px;
}
.miniNow {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.miniSub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------------- views */
#views {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(316px, 372px);
  gap: 14px;
  padding: 14px 16px 16px;
  min-height: 0;
  overflow: hidden;
}
/* deck + crate share the one screen now, so both views are always present */
.view { display: block; height: 100%; min-height: 0; }
.view.isOn { display: block; }
#viewDeck { overflow: auto; }
#viewShelf { overflow-y: auto; overflow-x: hidden; }

/* =============================================================== 01 / DECK */
.deckGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  padding: 4px 6px 8px;
  align-items: start;
  min-height: 100%;
}

.turntable { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; }

.plinth {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .045), transparent 40%),
    linear-gradient(180deg, #14101f, #0a0812 60%, #08070e);
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -50px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
}

.plinthGlow {
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(167, 139, 250, .16), transparent 70%);
  pointer-events: none;
}

.platter {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.vinyl {
  position: relative;
  width: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0a0810 0 2px, #120f1c 2px 3px, #09070f 3px 4px),
    #08060e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 10px rgba(0, 0, 0, .35),
    0 30px 60px -30px #000;
  will-change: transform;
  transform: rotate(var(--rot, 0deg));
}

body.isPlaying .vinyl { animation: spin 2.4s linear infinite; }
body.isPlaying.speed-half .vinyl { animation-duration: 4.8s; }
body.isPlaying.speed-15 .vinyl { animation-duration: 1.6s; }
body.isPlaying.speed-2 .vinyl { animation-duration: 1.2s; }

.grooves {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px);
  opacity: .9;
}

.shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, transparent 0 8%, rgba(167, 139, 250, .22) 14%, transparent 26%, transparent 58%, rgba(255, 110, 199, .16) 66%, transparent 78%),
    conic-gradient(from 20deg, transparent 0 42%, rgba(79, 227, 193, .12) 48%, transparent 56%);
  mix-blend-mode: screen;
  opacity: .75;
}

.label {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .16), transparent 55%),
    conic-gradient(from 0deg, hsl(var(--labelHue, 265) 70% 42%), hsl(calc(var(--labelHue, 265) + 40) 65% 32%), hsl(var(--labelHue, 265) 70% 42%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 26px -6px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.labelKicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.labelTitle {
  font-size: clamp(9px, 1.15vw, 13px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #fff;
  word-break: break-word;
}
.labelSub {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.spindle {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #06050b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

.tonearm {
  position: absolute;
  top: -2%;
  right: -1%;
  width: 42%;
  height: 42%;
  transform-origin: 88% 12%;
  transform: rotate(-26deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.tonearm.isDown { transform: rotate(6deg); }
.armPivot {
  position: absolute;
  top: 4%; right: 4%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b4560, #1b1726 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px -6px #000;
}
.armRod {
  position: absolute;
  top: 13%; right: 14%;
  width: 66%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6b6080, #2b2438);
  transform-origin: 100% 50%;
  transform: rotate(38deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}
.armHead {
  position: absolute;
  top: 58%; right: 62%;
  width: 26px; height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8b7fad, #322a45);
  transform: rotate(38deg);
  box-shadow: 0 2px 8px -2px #000;
}

.plinthFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plinthLed { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); }
.plinthLed i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2b2739;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .2s, box-shadow .2s;
}
body.isPlaying .plinthLed i { background: var(--teal); box-shadow: 0 0 10px rgba(79, 227, 193, .8); }
.plinthLed.isErr i { background: var(--danger); box-shadow: 0 0 10px rgba(255, 93, 115, .8); }

.plinthTicks { display: flex; gap: 4px; }
.tick {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim2);
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all .14s;
}
.tick:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.tick.isOn { color: var(--acc); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .1); }

.videoWrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.videoWrap video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.videoHide {
  position: absolute;
  right: 8px; bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
  background: rgba(6, 5, 11, .82);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 4px 8px;
}
.videoHide:hover { background: rgba(6, 5, 11, .95); }

.deckUnder {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  padding: 0 4px;
  text-align: center;
}

/* -------------------------------------------------------------- deck side */
.deckSide { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow: hidden; padding-top: 4px; }

.npCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  padding: 18px 18px 14px;
}
.npTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.npKicker, .npPack {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim2);
}
.npPack {
  color: var(--acc);
  letter-spacing: .06em;
  border: 1px solid rgba(167, 139, 250, .28);
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 55%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.npTitle {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 720;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.npAlias {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim2);
  min-height: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seekRow {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}
.tnum {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.tnum:last-child { text-align: right; }

.transport { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tBtn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--dim);
  border: 1px solid transparent;
  font-size: 14px;
  transition: all .14s;
}
.tBtn:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.tBtn.sm { width: 30px; height: 30px; font-size: 13px; }
.tBtn.isOn { color: var(--acc); background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .34); }
.tBtn.play {
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 16px;
  color: #0a0812;
  background: linear-gradient(180deg, #cfc0ff, var(--acc));
  box-shadow: 0 8px 24px -12px rgba(167, 139, 250, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
  padding-left: 2px;
}
.tBtn.play:hover { background: linear-gradient(180deg, #e3d9ff, #b9a3ff); transform: translateY(-1px); }
.tBtn.star.isOn { color: var(--warn); }
.tSep { width: 1px; height: 20px; background: var(--line2); margin: 0 3px; }

.volWrap { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.volWrap span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); }
.volWrap .vol { width: 82px; }

/* ------------------------------------------------------------------ ranges */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--acc) 0 var(--fill, 50%), rgba(255, 255, 255, .12) var(--fill, 50%) 100%);
}
.range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--acc) 0 var(--fill, 50%), rgba(255, 255, 255, .12) var(--fill, 50%) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
  transition: box-shadow .15s;
}
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(167, 139, 250, .24); }
.range::-moz-range-thumb {
  width: 12px; height: 12px;
  border: 0; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
}
.seek { height: 20px; }
.seek::-webkit-slider-runnable-track { height: 3px; }
.seek::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; }

/* ---------------------------------------------------------------- bars card */
.barsCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .018);
  padding: 12px 14px 8px;
}
#bars { width: 100%; height: 62px; display: block; }
.barsMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--dim2);
  padding-top: 4px;
  text-transform: lowercase;
}

/* ------------------------------------------------------------------- knobs */
.knobs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, .014);
}
.knob { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.knob label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim2);
}
.kval { font-family: var(--mono); font-size: 9.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.knob.toggles { grid-column: span 2; }
.knob.toggles label { margin-bottom: 2px; }
.toggleRow { display: flex; gap: 5px; flex-wrap: wrap; }

/* the deck shares the screen now, so its knob bay is narrow — two per row */
#viewDeck .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }

.tog {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  transition: all .14s;
  white-space: nowrap;
}
.tog:hover { color: var(--ink); border-color: var(--line2); }
.tog.isOn { color: var(--acc); border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .12); }

/* ============================================================== 02 / SHELF */
.shelfBar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 24px 12px;
  background: linear-gradient(180deg, rgba(6, 5, 11, .97), rgba(6, 5, 11, .88));
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.chipBtn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  transition: all .14s;
}
.chipBtn:hover { color: var(--ink); border-color: var(--line2); }
.chipBtn.isOn { color: var(--acc); border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .1); }

.shelfTools { display: flex; align-items: center; gap: 12px; }
.sortWrap { display: flex; align-items: center; gap: 7px; }
.sortWrap span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); }
#sort {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 11px;
  color: var(--ink);
}
#sort option { background: #110e1d; }
.shelfCount { font-family: var(--mono); font-size: 10px; color: var(--dim2); }

.shelfHead, .row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 128px 96px 58px 52px 34px;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}
.shelfHead {
  position: sticky;
  top: 60px;
  z-index: 4;
  height: 30px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim2);
  background: rgba(6, 5, 11, .92);
  border-bottom: 1px solid var(--line);
}
.shelfHead span:nth-child(5), .shelfHead span:nth-child(6) { text-align: right; }
.shelfHead span:nth-child(7) { text-align: center; }

.rows { padding: 6px 0 60px; }

.row {
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: background .12s;
  position: relative;
}
.row:hover { background: rgba(255, 255, 255, .035); }
.row.isOn { background: linear-gradient(90deg, rgba(167, 139, 250, .13), transparent 70%); }
.row.isOn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--acc);
}
.rowNum { font-family: var(--mono); font-size: 10px; color: var(--dim2); font-variant-numeric: tabular-nums; }
.row.isOn .rowNum { color: var(--acc); }
.rowName {
  font-size: 12.5px;
  letter-spacing: -.01em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #ddd9ec;
}
.row.isOn .rowName { color: #fff; font-weight: 600; }
.rowPack {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rowWords {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: .85;
}
.rowPack.has { color: var(--acc); opacity: .8; }
.rowSpins, .rowLen { font-family: var(--mono); font-size: 10px; color: var(--dim2); text-align: right; font-variant-numeric: tabular-nums; }
.rowSpins.has { color: var(--ink); }
.rowStar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--dim2); font-size: 13px; margin: 0 auto; }
.rowStar:hover { background: rgba(255, 255, 255, .07); color: var(--warn); }
.rowStar.isOn { color: var(--warn); }
.rowVid {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--teal);
  border: 1px solid rgba(79, 227, 193, .3);
  border-radius: 4px;
  padding: 0 3px;
  margin-left: 5px;
  vertical-align: 1px;
  letter-spacing: .06em;
}
.shelfEmpty { padding: 60px 24px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--dim2); }

/* ------------------------------------------------- the crate (narrow column) */
#viewShelf .shelfBar {
  position: static;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px 8px;
}
#viewShelf .filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
#viewShelf .filters::-webkit-scrollbar { display: none; }
#viewShelf .chipBtn { flex: 0 0 auto; }
#viewShelf .shelfTools { justify-content: space-between; }
#viewShelf .shelfHead { top: 0; }
#viewShelf .shelfHead, #viewShelf .row {
  grid-template-columns: 30px minmax(0, 1fr) 36px 28px;
  gap: 8px;
  padding: 0 12px;
}
/* drop pack / words / length — the crate is about the name and the star */
#viewShelf .rowPack, #viewShelf .rowWords, #viewShelf .rowLen { display: none; }
#viewShelf .shelfHead span:nth-child(3),
#viewShelf .shelfHead span:nth-child(4),
#viewShelf .shelfHead span:nth-child(6) { display: none; }

/* ------------------------------------------------------------------- footer */
#foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(9, 7, 16, .95), rgba(7, 6, 13, .7));
  font-size: 11px;
}
.footFortune {
  justify-self: start;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  letter-spacing: .01em;
  padding: 4px 0;
  text-align: left;
  transition: color .15s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.footFortune:hover { color: var(--ink); }
.footBtns { display: flex; gap: 5px; }
.footBtn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  transition: all .14s;
}
.footBtn:hover { color: var(--ink); border-color: var(--line2); background: rgba(255, 255, 255, .04); }
.footBtn.danger:hover { color: var(--danger); border-color: rgba(255, 93, 115, .5); background: rgba(255, 93, 115, .08); }
.footBtn.danger.isOn { color: var(--danger); border-color: rgba(255, 93, 115, .55); background: rgba(255, 93, 115, .12); }
.footRight { justify-self: end; font-family: var(--mono); font-size: 9.5px; color: var(--dim2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ================================================================== overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 4vh 3vw;
  background: rgba(3, 2, 6, .68);
  animation: fadeIn .14s ease-out;
}
.overlay[hidden] { display: none; }

.panel {
  width: min(860px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: linear-gradient(180deg, #100d1c, #0a0813);
  box-shadow: 0 60px 120px -60px #000;
  overflow: hidden;
  animation: rise .18s cubic-bezier(.2, .9, .2, 1);
}

.panelBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}
.panelTabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--dim2);
  padding: 6px 10px;
  border-radius: 7px;
  transition: all .14s;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.tab.isOn { color: var(--acc); background: rgba(167, 139, 250, .12); }
.panelClose {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--dim);
  font-size: 13px;
}
.panelClose:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }

.panelBody { overflow: auto; padding: 16px 18px 20px; }
.pane { display: none; }
.pane.isOn { display: block; }

.lyrHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.lyrState { color: var(--dim2); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.lyricsBody { min-height: 240px; }
.lyricsBody p.empty { color: var(--dim2); font-family: var(--mono); font-size: 11px; line-height: 1.7; }

.lyLine {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--dim2);
  padding: 3px 0;
  transition: color .2s;
}
.lyLine.on { color: #fff; font-weight: 650; }
.lyLine.on::before { content: "▸ "; color: var(--acc); }
.lyPlain { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: #cfcae2; }
.lyNote { margin-top: 14px; font-family: var(--mono); font-size: 9.5px; color: var(--dim2); }

.infoBody { display: grid; gap: 8px; }
.infoRow {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: 12.5px;
}
.infoRow dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); padding-top: 2px; }
.infoRow dd { margin: 0; color: #ddd9ec; word-break: break-word; }

.statsBody { display: grid; gap: 16px; }
.statGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.statCell {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .018);
}
.statCell b {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.statCell span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); }
.statTitle { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim2); margin-bottom: 2px; }
.topList { display: grid; gap: 2px; }
.topRow { display: grid; grid-template-columns: 24px 1fr 48px; gap: 10px; align-items: center; font-size: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.03); }
.topRow i { font-family: var(--mono); font-size: 9.5px; color: var(--dim2); font-style: normal; }
.topRow b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topRow span { font-family: var(--mono); font-size: 10px; color: var(--dim); text-align: right; }

.awardsHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
#achProgress { font-family: var(--mono); font-size: 11px; color: var(--acc); }
.achFilters { display: flex; gap: 4px; flex-wrap: wrap; }
.awardsBody { padding-top: 10px; }
.awBar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin: 10px 0 16px; }
.awFill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--acc2), var(--acc), var(--pink)); transition: width .3s; }
.awSecRow {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim2);
  padding: 14px 0 5px;
}
.awRow { padding: 7px 9px; border-radius: 8px; border: 1px solid transparent; }
.awRow.got { background: rgba(79, 227, 193, .05); border-color: rgba(79, 227, 193, .16); }
.awName { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.awRow.got .awName { color: var(--teal); }
.awDesc { font-size: 11.5px; color: var(--dim2); line-height: 1.5; margin-top: 1px; }

.logBody { display: grid; gap: 18px; }
.logEntry { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.logDate { font-family: var(--mono); font-size: 10px; color: var(--dim2); padding-top: 3px; }
.logTitle { font-size: 13px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logType {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc); border: 1px solid rgba(167,139,250,.3); border-radius: 4px; padding: 0 4px;
}
.logNotes { margin: 5px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.logNotes li { font-size: 11.5px; color: var(--dim); line-height: 1.55; padding-left: 12px; position: relative; }
.logNotes li::before { content: "—"; position: absolute; left: 0; color: var(--dim2); }
.logBody .logDone { font-family: var(--mono); font-size: 9.5px; color: var(--dim2); text-align: center; padding: 12px 0 4px; }

.creditsBody { display: grid; gap: 16px; font-size: 13px; color: #cfcae2; line-height: 1.7; }
.creditsBody h3 { margin: 0 0 2px; font-size: 11px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.creditsBody p { margin: 0; }
.creditsBody .small { font-size: 11px; color: var(--dim2); }

/* =================================================================== toasts */
.toasts {
  position: fixed;
  right: 16px;
  bottom: calc(var(--foot) + 14px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: linear-gradient(180deg, #151125, #0d0a17);
  padding: 10px 12px;
  box-shadow: 0 20px 40px -24px #000;
  animation: toastIn .22s cubic-bezier(.2, .9, .2, 1);
}
.toast.out { animation: toastOut .2s ease-in forwards; }
.toastBar { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.toastBar i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(79, 227, 193, .8); }
.toastLbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim2); }
.toastTitle { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.toastBody { font-size: 11px; color: var(--dim); line-height: 1.5; margin-top: 1px; }
.toast.warn .toastBar i { background: var(--warn); box-shadow: 0 0 8px rgba(255, 180, 84, .8); }
.toast.err .toastBar i { background: var(--danger); box-shadow: 0 0 8px rgba(255, 93, 115, .8); }

/* ================================================================== confetti */
.confettiHost { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.confettiHost[hidden] { display: none; }
#confetti { width: 100%; height: 100%; display: block; }

/* ==================================================================== cursed */
.cursedFx { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: none; }
body.cursed .cursedFx { display: block; }
.cursedFx span {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: .5;
}
.cursedFx span:nth-child(1) {
  background: repeating-linear-gradient(0deg, rgba(255, 0, 90, .18) 0 1px, transparent 1px 3px);
  animation: fryShift .18s steps(2) infinite;
}
.cursedFx span:nth-child(2) {
  background: repeating-linear-gradient(90deg, rgba(0, 255, 220, .12) 0 1px, transparent 1px 4px);
  animation: fryShift2 .26s steps(2) infinite;
}
.cursedFx span:nth-child(3) {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 190, 0, .22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 200, .22), transparent 45%);
  animation: fryPulse .9s ease-in-out infinite alternate;
}

body.cursed .vinyl { animation-duration: .9s; }
body.cursed .brandName,
body.cursed .npTitle,
body.cursed .labelTitle {
  text-shadow: 2px 0 rgba(255, 0, 90, .8), -2px 0 rgba(0, 255, 220, .8);
  animation: fryText .22s steps(2) infinite;
}
body.cursed .plinth { border-color: rgba(255, 110, 199, .4); }
body.cursed .row:hover { background: rgba(255, 110, 199, .09); }
body.cursed #shell { animation: fryWobble 3.4s ease-in-out infinite; }
body.lite.cursed .cursedFx span:nth-child(1),
body.lite.cursed .cursedFx span:nth-child(2),
body.lite.cursed .brandName,
body.lite.cursed .npTitle,
body.lite.cursed .labelTitle { animation: none; }
body.lite.cursed #shell { animation: none; }

/* pops */
.skeletonRun { position: fixed; inset: 0; z-index: 105; pointer-events: none; }
.skeletonRun[hidden] { display: none; }
.skeletonRun img {
  position: absolute;
  bottom: 8px;
  height: 92px;
  image-rendering: pixelated;
  transform: translateX(-140px);
}
.skeletonRun.go img { animation: skelRun 2.6s linear forwards; }

.havexyPop {
  position: fixed;
  right: 22px;
  bottom: calc(var(--foot) + 18px);
  z-index: 106;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(167, 139, 250, .4);
  border-radius: 12px;
  background: rgba(13, 10, 23, .95);
  animation: rise .3s cubic-bezier(.2, .9, .2, 1);
}
.havexyPop[hidden] { display: none; }
.havexyPop img { width: 34px; height: 34px; }
.havexyPop span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }

/* ===================================================================== tour */
.tour { position: fixed; inset: 0; z-index: 130; }
.tour[hidden] { display: none; }
.tourSpot {
  position: fixed;
  border: 1px solid rgba(167, 139, 250, .8);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(3, 2, 6, .62), 0 0 24px rgba(167, 139, 250, .25);
  transition: all .26s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.tourCard {
  position: fixed;
  width: min(330px, calc(100vw - 24px));
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: linear-gradient(180deg, #151125, #0b0915);
  padding: 14px;
  box-shadow: 0 30px 60px -30px #000;
  transition: all .2s;
}
.tourKicker { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 5px; }
.tourText { font-size: 12.5px; line-height: 1.6; color: #d8d3ea; }
.tourRow { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.tourCount { font-family: var(--mono); font-size: 9.5px; color: var(--dim2); }
.tourBtns { display: flex; gap: 6px; }

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .deckGrid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 12px; }
  .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* below this the two columns cannot both breathe, so the deck stacks */
@media (max-width: 980px) {
  .deckGrid { grid-template-columns: 1fr; gap: 16px; padding: 16px 18px 22px; }
  .turntable { max-width: 520px; margin: 0 auto; width: 100%; }
}

@media (max-width: 860px) {
  :root { --rail: 0px; }
  #body { grid-template-columns: 1fr; }
  #rail {
    position: fixed;
    left: 0; right: 0;
    bottom: var(--foot);
    z-index: 20;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(8, 6, 14, .98);
    overflow-x: auto;
    scrollbar-width: none;
  }
  #rail::-webkit-scrollbar { display: none; }
  .railTop { flex-direction: row; }
  .railHr, .railFoot { display: none; }
  .navItem { padding: 7px 9px; grid-template-columns: auto auto; gap: 6px; width: auto; }
  .navItem .navNum { font-size: 9px; }
  .navItem .navName { font-size: 11.5px; }
  .navItem .navCount, .navItem .navHint { display: none; }
  .navItem.isOn::before { left: 50%; top: auto; bottom: -6px; width: 18px; height: 2px; margin: 0 0 0 -9px; border-radius: 2px 2px 0 0; }
  .navItem.sub { padding: 7px 9px; grid-template-columns: auto; }
  #views { padding-bottom: 52px; }
  #top { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
  .topMid { display: none; }
  .topRight .chip { display: none; }
  .deckGrid { padding: 12px 12px 20px; }
  .plinth { padding: 14px; border-radius: 16px; }
  .npCard { padding: 14px; }
  .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knob.toggles { grid-column: span 2; }
  .shelfBar { padding: 10px 12px; flex-direction: column; align-items: stretch; gap: 8px; }
  .shelfHead { display: none; }
  .row { grid-template-columns: 34px minmax(0, 1fr) 30px; padding: 0 12px; height: 42px; }
  .rowPack, .rowWords, .rowSpins, .rowLen { display: none; }
  .rows { padding-bottom: 80px; }
  #foot { grid-template-columns: 1fr auto; padding: 0 10px; gap: 8px; }
  .footFortune { display: none; }
  .footRight { display: none; }
  .panel { max-height: 86vh; }
  .panelBody { padding: 12px; }
  .overlay { padding: 3vh 10px; }
  .logEntry { grid-template-columns: 1fr; gap: 3px; }
  .infoRow { grid-template-columns: 88px 1fr; }
  .tourCard { max-width: calc(100vw - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  body.isPlaying .vinyl, body.isPlaying .brandDisc, body.cursed #shell,
  .cursedFx span, body.cursed .npTitle, body.cursed .labelTitle { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ================================================================== keyframes */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes fryShift { 0% { transform: translateY(0); } 100% { transform: translateY(2px); } }
@keyframes fryShift2 { 0% { transform: translateX(0); } 100% { transform: translateX(3px); } }
@keyframes fryPulse { from { opacity: .25; } to { opacity: .75; } }
@keyframes fryText {
  0% { transform: none; }
  50% { transform: translate(1px, 0); }
  100% { transform: translate(-1px, 0); }
}
@keyframes fryWobble {
  0%, 100% { transform: none; }
  25% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 1px); }
}

@keyframes skelRun {
  0% { transform: translateX(-140px); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 60px)); opacity: 0; }
}
