:root {
  --room: #110d0a;
  --walnut: #4e311e;
  --face: #d9c7ae;
  --ink: #3a2b22;
  --amber: #ffb84a;
  --gold: #c6a57a;
  --label: #2e1608;
  --label-dim: #5a3a28;
  --paper: #f3e6d0;
  --paper2: #dcc8a6;
  --line: #6b452c;
  --pop: #ffb84a;
  --muted: #5c4636;
  color-scheme: dark;
}

@font-face {
  font-family: "Tape Hand";
  src: url("fonts/caveat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--room);
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

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

.room {
  position: relative;
  min-height: 100vh;
  padding: 36px 18px 48px;
  overflow: hidden;
}

.room::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 16% 0%, rgba(255, 176, 84, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 115%, rgba(72, 42, 22, 0.45), transparent 55%),
    linear-gradient(180deg, #1a130e 0%, #0d0a08 72%);
}

.lamp, .grain, .vignette, .motes { pointer-events: none; }
.lamp {
  position: fixed;
  inset: -10vh auto auto -8vw;
  width: 70vw;
  height: 60vh;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 186, 110, 0.2), transparent 62%);
}
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}
.grain {
  position: fixed;
  inset: -10%;
  opacity: 0.09;
  filter: url(#grain);
  mix-blend-mode: overlay;
}
.motes i {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 214, 160, 0.45);
  animation: mote 14s linear infinite;
  opacity: 0;
}
.motes i:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 28%; top: 70%; animation-delay: 2s; }
.motes i:nth-child(3) { left: 55%; top: 18%; animation-delay: 4s; }
.motes i:nth-child(4) { left: 72%; top: 62%; animation-delay: 6s; }
.motes i:nth-child(5) { left: 88%; top: 30%; animation-delay: 8s; }
.motes i:nth-child(6) { left: 40%; top: 84%; animation-delay: 1s; }
@keyframes mote {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-40vh); }
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.cabinet {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 16px 16px 12px 12px;
  box-shadow:
    0 1px 0 rgba(255, 220, 180, 0.18) inset,
    0 28px 50px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.4);
}
.cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background:
    radial-gradient(ellipse at 0% 40%, rgba(255, 220, 180, 0.08), transparent 42%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(87deg, transparent 0 22px, rgba(30, 14, 6, 0.22) 23px, transparent 28px, transparent 46px, rgba(120, 74, 40, 0.16) 47px, transparent 52px),
    linear-gradient(180deg, #6b452c, #4a2e1c 38%, #3a2416);
}

.face {
  position: relative;
  padding: 18px 22px 16px;
  border-radius: 10px 10px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 236, 214, 0.28), transparent 18%),
    repeating-linear-gradient(90deg, rgba(90, 50, 24, 0.04) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #e4d2b8, #d4c0a4);
  box-shadow: inset 0 0 0 1px rgba(90, 50, 24, 0.18), 0 8px 16px rgba(0, 0, 0, 0.28);
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.brand strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
}
.brand em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--label-dim);
}
.jewel-row {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-dim);
}
.jewel {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2118;
  box-shadow: inset 0 1px 2px #000;
}
.jewel.on {
  background: radial-gradient(circle at 35% 30%, #ffe1c2, #3ad46a 46%, #145c28);
  box-shadow: 0 0 8px rgba(80, 220, 120, 0.7);
}

.vfd {
  margin: 8px 0 14px;
  width: 100%;
  border-radius: 4px;
  padding: 8px 10px 7px;
  background: linear-gradient(180deg, #1a120b, #120d08);
  box-shadow: inset 0 0 0 1px #3a2a1c, inset 0 8px 16px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 3px;
}
.vfd span {
  display: block;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 170, 50, 0.75);
  letter-spacing: 0.08em;
  font-size: 13px;
}
.vfd small {
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  color: #c48a3a;
  letter-spacing: 0.1em;
  font-size: 10px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.tab-cap { display: none; }
.tabs button,
:is(.house-switch, .machine-switch) button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9a3a;
  text-shadow: 0 0 5px rgba(255, 130, 30, 0.7);
  background: linear-gradient(180deg, #2c2d32, #121316 70%, #07070a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 3px rgba(0, 0, 0, 0.22),
    0 0 0 1px #040405,
    0 3px 0 #000,
    0 5px 5px rgba(0, 0, 0, 0.35);
}
.tabs button:hover,
:is(.house-switch, .machine-switch) button:hover { filter: brightness(1.06); }
.tabs button:active,
:is(.house-switch, .machine-switch) button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.3),
    0 0 0 1px #040405,
    0 1px 1px rgba(0, 0, 0, 0.3);
}
.tabs button.on,
:is(.house-switch, .machine-switch) button.on {
  color: #f7f2ff;
  text-shadow: 0 1px 0 rgba(28, 10, 48, 0.4);
  background: linear-gradient(180deg, #ead8fb, #8d5ad4 70%, #5a2e96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(36, 16, 64, 0.7),
    0 2px 0 1px #3a1868,
    0 4px 3px rgba(0, 0, 0, 0.35),
    0 0 12px 1px rgba(150, 80, 220, 0.62);
}

.panel { display: none; }
.panel.on { display: block; }

.lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.share { margin-bottom: 18px; }
.share-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px 22px;
  align-items: start;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .share-body { grid-template-columns: 1fr; }
}

.well, .card, .note, .faq, .nameplate, .board-card {
  background:
    radial-gradient(ellipse 70% 40% at 12% 0%, rgba(255, 184, 74, 0.18), transparent 70%),
    linear-gradient(165deg, var(--paper), var(--paper2));
  box-shadow:
    inset 0 0 0 2px var(--line),
    inset 0 0 0 5px rgba(255, 255, 255, 0.16),
    4px 6px 0 var(--pop),
    0 14px 24px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
}

.well {
  padding: 14px 16px 16px;
  transform: rotate(-0.5deg);
}
.well h2, .nameplate h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drop {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 0 0 10px;
  border-radius: 8px;
  background: #2a2118;
  box-shadow: inset 0 2px 8px #000, 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #e8d2a8;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
}
.drop.hot { box-shadow: inset 0 0 0 2px var(--amber), inset 0 2px 8px #000; }
.drop input { display: none; }
.well label, .nameplate label {
  display: block;
  margin: 8px 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label-dim);
}
.well input, .well textarea, .well select,
.nameplate input, .composer input, .composer textarea {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 248, 234, 0.7);
  box-shadow: inset 0 0 0 1px rgba(80, 48, 24, 0.22);
}
.well textarea, .composer textarea { min-height: 72px; resize: vertical; }

.btn {
  border: 0;
  cursor: pointer;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a1a10;
  background: var(--pop);
  box-shadow: 0 4px 0 var(--line), 0 8px 16px rgba(0, 0, 0, 0.2);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); }
a.btn { display: inline-block; margin-right: 8px; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(80, 48, 24, 0.3);
}

.pitch {
  padding: 2px 2px 0 6px;
}
.pitch h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.pitch p { margin: 0 0 8px; color: var(--muted); line-height: 1.4; }
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pop);
  color: #2a1a10;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--line);
}

.crate, .sleeves {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.sleeve {
  position: relative;
  padding: 14px 14px 12px;
  min-height: 168px;
  transform: rotate(calc((var(--n) - 2) * 0.7deg));
}
.sleeve .mark {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #2a2118;
  color: #f3e6d0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sleeve h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.1;
}
.sleeve p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.who i,
.who-shot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}
.who i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #2a1200;
  background: radial-gradient(circle at 34% 28%, #ffe7c2, #ffb03a 48%, #c47a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 0 #8a4e10;
}
.who-shot {
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(42, 18, 0, 0.35), 0 2px 0 #3a2a1c;
}
.who span {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
}
.sleeve footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-dim);
}
.sleeve button, .note-link, .note .pull {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--line);
}
.sleeve button,
.deck-park {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.glyph {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}
.glyph svg {
  display: block;
  width: 14px;
  height: 14px;
}

.boards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .boards { grid-template-columns: 1fr; } }
.board-card {
  display: block;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform: rotate(calc((var(--n) - 1.5) * 0.8deg));
}
.board-card h3 {
  margin: 6px 0 6px;
  font-size: 22px;
}
.board-card p { margin: 0; color: var(--muted); }

.cork {
  padding: 16px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(90, 50, 20, 0.08) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(60, 30, 10, 0.07) 0 3px, transparent 3px 9px),
    linear-gradient(165deg, #c9a36a, #a67c48);
  box-shadow: inset 0 0 0 3px #6b452c, 0 12px 24px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
}
.note {
  position: relative;
  display: block;
  padding: 14px 16px 12px;
  text-align: left;
  border: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transform: rotate(calc((var(--n) - 2) * 0.9deg));
}
.note-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.note .pull { margin-top: 8px; }
.tack {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c8, #c6a57a 55%, #6b452c);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
}
.note h3 { margin: 4px 0 6px; font-size: 18px; }
.note p { margin: 0; color: var(--muted); font-size: 14px; }

.thread .note { cursor: default; }
.composer {
  padding: 14px 16px 16px;
  margin-top: 12px;
}
.replies { display: grid; gap: 10px; margin-top: 12px; }

.faqs { display: grid; gap: 12px; }
.faq {
  padding: 14px 16px;
  transform: rotate(calc((var(--n) - 2) * 0.5deg));
}
.faq h3 { margin: 0 0 6px; font-size: 16px; }
.faq p { margin: 0; color: var(--muted); line-height: 1.4; }

.nameplate { padding: 16px 18px 18px; max-width: 420px; }

.back {
  border: 0;
  background: transparent;
  padding: 0 0 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.silk {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--label-dim);
}
.rail {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  max-width: 1080px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7a6556;
}
.feet {
  display: flex;
  justify-content: space-between;
  padding: 8px 28px 0;
}
.feet i {
  width: 28px;
  height: 10px;
  border-radius: 0 0 8px 8px;
  background: #2a1a10;
  box-shadow: inset 0 2px 0 rgba(255, 220, 180, 0.12);
}

.empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
}
[data-q][hidden],
.finder[hidden] { display: none; }

.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.35);
}
.finder label {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.finder input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f4f4f0;
  background: #12141a;
  box-shadow: inset 0 1px 3px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.finder input::placeholder { color: #8a8b90; }
.finder-sort { display: flex; gap: 6px; }
.finder-sort button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2a2d;
  background: linear-gradient(180deg, #f6f6f1, #d0d0c8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #8a8b90;
}
.finder-sort button.on {
  color: #f7f2ff;
  background: linear-gradient(180deg, #ead8fb, #8d5ad4 70%, #5a2e96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #3a1868;
}
.finder-count {
  margin-left: auto;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--label-dim);
}

.stk {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  font-family: "Tape Hand", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 700;
  color: #23150c;
  background: #efe2bf;
  padding: 4px 10px 3px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}
.stk-share { top: 22px; right: 28px; transform: rotate(8deg); font-size: 18px; }
.stk-house { top: 18px; left: 26px; transform: rotate(-6deg); font-size: 16px; background: #c9a23a; }

.beta {
  margin: 0 0 16px;
  padding: 12px 14px 14px;
  transform: rotate(-0.4deg);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(201, 162, 58, 0.28), transparent 70%),
    linear-gradient(165deg, #f6efe2, #e7d7bc);
  box-shadow: inset 0 0 0 2px var(--line), 3px 4px 0 var(--pop);
  border-radius: 10px;
}
.beta p { margin: 6px 0 10px; font-size: 14px; line-height: 1.4; }
.beta b { font-weight: 800; }
.beta form, .row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.beta input {
  flex: 1 1 180px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fffaf2;
  box-shadow: inset 0 0 0 2px var(--line);
}
.beta-done { margin: 8px 0 0; color: var(--muted); }
.fold details { margin: 0; }
.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.fold details[open] summary { margin-bottom: 8px; }
.fold details[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.fold summary .kicker { margin: 0; }
.drop-well { margin: 0 0 16px; }
.drop-well .hint { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.spec-wrap { overflow-x: auto; margin: 0 0 16px; }
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #f6efe2;
  box-shadow: inset 0 0 0 2px var(--line), 3px 4px 0 var(--pop);
  border-radius: 10px;
}
.spec th, .spec td { padding: 7px 8px; text-align: left; border-bottom: 1px solid rgba(36, 24, 16, 0.12); white-space: nowrap; }
.spec th { letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; color: var(--label); }
.slap {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
  margin: 0 0 8px;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.script-shelf {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 0 12px;
}
.tape {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 8px 10px 7px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, #6e2430 0 7px, transparent 7px),
    linear-gradient(180deg, #f4ead6, #e4d2b4);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
}
.tape b { display: block; font-size: 12px; letter-spacing: 0.04em; }
.tape small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label-dim);
}
.tape.on {
  background:
    linear-gradient(90deg, #1f6b45 0 7px, transparent 7px),
    linear-gradient(180deg, #fff6e4, #f0d7a4);
  box-shadow: 3px 4px 0 var(--pop);
}

.script-card {
  padding: 16px 16px 18px;
  transform: rotate(-0.35deg);
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(255, 184, 74, 0.2), transparent 60%),
    linear-gradient(165deg, var(--paper), var(--paper2));
  box-shadow: inset 0 0 0 2px var(--line), 5px 7px 0 var(--pop), 0 16px 28px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
}
.script-card h2 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.script-line, .script-blurb, .script-load { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.script-load b { color: var(--ink); }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--label-dim);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend .map-pad { width: 22px; height: 22px; }
.map-legend .map-pad b { font-size: 9px; }
.map-legend .map-key { min-width: 36px; height: 22px; padding: 0 6px; }
.map-legend .map-key b { font-size: 8px; }
.map-legend .map-knob i { width: 18px; height: 18px; }
.map-legend .map-slide i { height: 22px; }

.map {
  margin-top: 14px;
  padding: 12px 12px 8px;
  border-radius: 10px;
  color: #f4f1ea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #1c1e24, #101114);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 10px 16px rgba(0, 0, 0, 0.35);
}
.map-lane { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 10px; }
.map-lane > span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7b3a8;
}
.map-pads { display: grid; grid-template-columns: repeat(var(--cols, 4), 46px); gap: 6px; }
.map-keys, .map-knobs, .map-slides { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }

.map-pad, .map-key, .map-knob, .map-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
}
.map-pad b, .map-key b, .map-knob b, .map-slide b {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.map-pad small, .map-key small, .map-knob small, .map-slide small {
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #a39888;
}
.map-pad {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  background: linear-gradient(180deg, #4a4c54, #1a1c22 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 2px 0 #050506;
}
.map-pad b { font-size: 13px; color: #f6f4ec; }
.map-pad small { color: #e7c56a; }
.map-key {
  min-width: 54px;
  height: 40px;
  padding: 4px 6px 5px;
  border-radius: 6px 6px 8px 8px;
  color: #1c1c1f;
  background: linear-gradient(180deg, #f7f4ee, #d5d0c6 68%, #9a968e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 0 #3a3b3f;
}
.map-key small { color: #5c5348; }
.map-knob i {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.22) 0 2deg, rgba(0, 0, 0, 0.18) 2deg 4deg),
    radial-gradient(circle at 40% 32%, #d8d8d2, #6a6b70 58%, #1a1a1c);
  box-shadow: 0 2px 0 #050506, inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.map-knob i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  transform: translateX(-50%);
  background: #f6f4ec;
  box-shadow: 0 0 3px rgba(255, 220, 160, 0.8);
}
.map-slide i {
  position: relative;
  width: 14px;
  height: 36px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0c0d10, #2a2c32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 0 #050506;
}
.map-slide i b {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 12px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4f4ef, #8a8b90);
  box-shadow: 0 1px 0 #050506;
}

.house-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 13px;
}

.house-or::before,
.house-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px 6px 6px;
  border: 0;
  border-radius: 12px;
  background: var(--label);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 #110d0a;
}

.oauth-stamp svg { width: 40px; height: 40px; flex: none; }

.oauth-stamp:hover { background: #4a2610; }

.lc-row { flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 720px) {
  .script-card { transform: none; }
  .map-lane { grid-template-columns: 1fr; }
  .map-pads { grid-template-columns: repeat(4, 40px); }
}

/* ---------- house rocker, machine mode, faceplates, preset cards ---------- */
.mode-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 2px 0 12px;
}
.house-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.machine-switch {
  display: grid;
  grid-template-columns: 72px 72px;
  gap: 6px;
}
.machine-switch[hidden] { display: none; }
.skin-switch { grid-template-columns: auto auto; }
.skin-switch button { width: auto; padding: 0 14px; }
:is(.house-switch, .machine-switch) button { width: 100%; }

.plate-swatch {
  height: 74px;
  margin: 0 0 10px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(0, 0, 0, 0.16) 14px 15px),
    linear-gradient(180deg, var(--a) 0 33.33%, var(--b) 33.33% 66.66%, var(--c) 66.66%);
  box-shadow: inset 0 0 0 7px var(--face), inset 0 0 0 8px rgba(201, 162, 58, 0.7);
}
.plate-art {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  margin: 0 0 10px;
  border-radius: 4px;
  background: #1a120c;
}
.readout {
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.write-card { margin-top: 10px; }
.write-card summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.knob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 10px;
}
.knob-grid label { margin: 0; }
.well input[type="range"] {
  padding: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--pop);
}
.knob-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.knob-grid .check input { width: auto; }

/* ---------- Beats: MP 2X warm grey chassis, navy screen, red stripe ---------- */
body[data-house="beats"] {
  --room: #08080a;
  --ink: #2a2a2d;
  --label: #2a2a2d;
  --label-dim: #5d5e63;
  --amber: #d5def2;
  --paper: #e8e8e2;
  --paper2: #d0d0c8;
  --line: #8a8b90;
  --pop: #c8352a;
  --muted: #5d5e63;
}
body[data-house="beats"] .room::before {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(200, 53, 42, 0.16), transparent 62%),
    linear-gradient(180deg, #1c1c1f, #08080a 74%);
}
body[data-house="beats"] .lamp {
  background: radial-gradient(ellipse at 30% 16%, rgba(255, 245, 225, 0.16), transparent 62%);
}
body[data-house="beats"] .motes i { background: rgba(244, 242, 234, 0.35); }
body[data-house="beats"] .cabinet {
  padding: 16px 14px 12px;
}
body[data-house="beats"] .cabinet::before {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.07) 0 0.6px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(180deg, #e4e4dd, #d4d4cc 46%, #bfbfb6);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.65),
    inset 0 0 0 3px rgba(0, 0, 0, 0.22),
    inset 0 0 0 5px #c8352a;
}
body[data-house="beats"] .face {
  color: var(--ink);
  background:
    linear-gradient(90deg, #c8352a 0 18%, transparent 18%) 0 0 / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle, rgba(0, 0, 0, 0.06) 0 0.6px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(180deg, #e1e1db, #cbcbc3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 0 0 2px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.35);
}
body[data-house="beats"] .lead { color: #3a3b3f; }
body[data-house="beats"] .jewel.on {
  background: radial-gradient(circle at 35% 30%, #ffd0c8, #c8352a 46%, #6a140e);
  box-shadow: 0 0 8px rgba(200, 53, 42, 0.7);
}
body[data-house="beats"] .vfd {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a3d70, #1b2a52);
  box-shadow: inset 0 0 0 1px #12182e, inset 0 8px 16px rgba(0, 0, 0, 0.45);
}
body[data-house="beats"] .vfd span {
  color: #d5def2;
  text-shadow: none;
}
body[data-house="beats"] .vfd small { color: #9aafd4; }
body[data-house="beats"] .well,
body[data-house="beats"] .card,
body[data-house="beats"] .note,
body[data-house="beats"] .faq,
body[data-house="beats"] .nameplate,
body[data-house="beats"] .board-card,
body[data-house="beats"] .script-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(165deg, var(--paper), var(--paper2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    4px 5px 0 #c8352a,
    0 14px 24px rgba(0, 0, 0, 0.16);
}
body[data-house="beats"] .tabs button.on,
body[data-house="beats"] :is(.house-switch, .machine-switch) button.on,
body[data-house="beats"] .finder-sort button.on {
  color: #f4f8ff;
  text-shadow: 0 1px 0 rgba(8, 24, 64, 0.4);
  background: linear-gradient(180deg, #8fc0ff, #2f6fe0 70%, #1450c4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(8, 24, 70, 0.7),
    0 2px 0 1px #0a2c78,
    0 4px 3px rgba(0, 0, 0, 0.35),
    0 0 12px 1px rgba(47, 111, 224, 0.55);
}
body[data-house="beats"] .tabs button:not(.on),
body[data-house="beats"] :is(.house-switch, .machine-switch) button:not(.on) {
  color: #2a2a2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #f6f6f1, #d8d8d0 70%, #bdbdb4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(40, 40, 44, 0.4),
    0 3px 0 #8a8b90,
    0 5px 5px rgba(0, 0, 0, 0.22);
}
body[data-house="beats"] .btn {
  color: #2a2a2d;
  background: linear-gradient(180deg, #f4f4ef, #d4d4cc);
  box-shadow: 0 4px 0 #8a8b90, 0 8px 16px rgba(0, 0, 0, 0.22);
}
body[data-house="beats"] .btn.ghost {
  color: #2a2a2d;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(40, 40, 44, 0.35);
}
body[data-house="beats"] .kicker {
  background: #c8352a;
  color: #f6f4ec;
  box-shadow: 3px 3px 0 #6a140e;
}
body[data-house="beats"] .drop {
  background: #12182e;
  color: #d5def2;
  box-shadow: inset 0 2px 8px #000, 0 1px 0 rgba(255, 255, 255, 0.2);
}
body[data-house="beats"] .well input,
body[data-house="beats"] .well textarea,
body[data-house="beats"] .well select,
body[data-house="beats"] .nameplate input,
body[data-house="beats"] .composer input,
body[data-house="beats"] .composer textarea,
body[data-house="beats"] .beta input {
  color: #f4f4f0;
  background: #101114;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
body[data-house="beats"] .beta,
body[data-house="beats"] .beta p,
body[data-house="beats"] .spec { color: #2a1c10; }
body[data-house="beats"] .beta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(165deg, #e8e8e2, #d4d4cc);
  color: #2a2a2d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 3px 4px 0 #c8352a;
}
body[data-house="beats"] .beta p { color: #3a3b3f; }
body[data-house="beats"] .spec { color: #2a2a2d; }
body[data-house="beats"] .tape { color: #2a2a2d; }
body[data-house="beats"] .cork {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 0 0.6px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(180deg, #e4e4dd, #c8c8c0);
  box-shadow: inset 0 0 0 2px #f4f4ef, inset 0 0 0 4px #c8352a, 0 12px 24px rgba(0, 0, 0, 0.22);
}
body[data-house="beats"] .sleeve .mark {
  background: #c8352a;
  color: #f6f4ec;
}
body[data-house="beats"] .sleeve button,
body[data-house="beats"] .note-link,
body[data-house="beats"] .note .pull { color: #8a2a22; }
body[data-house="beats"] .oauth-stamp {
  background: #1c1c1f;
  color: #f4f4f0;
  box-shadow: 0 4px 0 #c8352a;
}
body[data-house="beats"] .oauth-stamp:hover { background: #2a2a2d; }
body[data-house="beats"] .feet i {
  background: linear-gradient(180deg, #e4e4dd, #8c8d91 55%, #3a3b3f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body[data-house="beats"] .stk-house {
  background: #c8352a;
  color: #f6f4ec;
}
body[data-house="beats"] .stk-share { background: #f6f4ec; color: #2a2a2d; }
body[data-house="beats"] .rail { color: #5d5e63; }
body[data-house="beats"] .silk { color: #5d5e63; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Drop, Walnut: figured shell, champagne face, brass, amber lamp ---------- */
body[data-house="room"] {
  --room: #110d0a;
  --ink: #2e1608;
  --label: #2e1608;
  --label-dim: #5a3a28;
  --amber: #ffb03a;
  --paper: #f3e6d0;
  --paper2: #e4d3b4;
  --line: #6b452c;
  --pop: #d3a94a;
  --muted: #5a3a28;
}
body[data-house="room"] .room {
  padding: 12px 16px 40px;
}
body[data-house="room"] .room::before {
  background:
    radial-gradient(ellipse 55% 42% at 16% 0%, rgba(255, 196, 120, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 115%, rgba(56, 31, 18, 0.55), transparent 55%),
    linear-gradient(180deg, #1a130e 0%, #0d0a08 72%);
}
body[data-house="room"] .lamp {
  background: radial-gradient(ellipse at 28% 18%, rgba(255, 186, 110, 0.22), transparent 62%);
}
body[data-house="room"] .vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
}
body[data-house="room"] .stage { padding-top: 0; }
body[data-house="room"] .cabinet {
  padding: 18px 18px 12px;
}
body[data-house="room"] .cabinet::before {
  background:
    repeating-radial-gradient(ellipse 170% 58% at 22% 28%, transparent 0 15px, rgba(30, 12, 4, 0.17) 16px 18px, transparent 19px 36px),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(87deg, transparent 0 22px, rgba(30, 14, 6, 0.22) 23px, transparent 28px, transparent 46px, rgba(120, 74, 40, 0.16) 47px, transparent 52px),
    radial-gradient(ellipse at 0% 40%, rgba(255, 220, 180, 0.12), transparent 42%),
    linear-gradient(180deg, #70492f, #4a2e1c 38%, #381f12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 150, 0.55),
    inset 0 0 0 3px rgba(40, 20, 8, 0.7),
    inset 0 0 0 4px rgba(214, 170, 90, 0.6);
}
body[data-house="room"] .face {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 20%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, rgba(60, 40, 10, 0.045) 1px 2px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 244, 214, 0.5), transparent 60%),
    linear-gradient(180deg, #e4d3b4, #c8b48c);
  box-shadow: inset 0 0 0 1px rgba(140, 100, 36, 0.55), inset 0 0 0 3px rgba(255, 244, 214, 0.35), 0 8px 16px rgba(0, 0, 0, 0.38);
}
body[data-house="room"] .lead { color: #24180f; }
body[data-house="room"] .brand em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: #5a3a28;
}
body[data-house="room"] .silk {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: none;
  color: #5a3a28;
  background: none;
  clip-path: none;
  filter: none;
  transform: none;
}
body[data-house="room"] .rail {
  display: block;
  width: auto;
  margin: 10px auto 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #e8d7bc;
  background: none;
  clip-path: none;
  filter: none;
  transform: none;
}
body[data-house="room"] .vfd {
  background: linear-gradient(180deg, #1a120b, #100c08);
  box-shadow: inset 0 0 0 1px #6b452c, inset 0 8px 16px rgba(0, 0, 0, 0.5);
}
body[data-house="room"] .vfd span {
  color: #ffb03a;
  text-shadow: 0 0 7px rgba(255, 150, 30, 0.7);
}
body[data-house="room"] .vfd small { color: #c48a3a; }
body[data-house="room"] .tabs button:not(.on),
body[data-house="room"] :is(.house-switch, .machine-switch) button:not(.on) {
  color: #2e1608;
  text-shadow: 0 1px 0 rgba(255, 236, 200, 0.35);
  background: linear-gradient(180deg, #f6e7c4, #d3a94a 64%, #8a6a2a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(74, 46, 16, 0.55),
    0 3px 0 #5a3a12,
    0 5px 5px rgba(0, 0, 0, 0.22);
}
body[data-house="room"] .tabs button.on,
body[data-house="room"] :is(.house-switch, .machine-switch) button.on,
body[data-house="room"] .finder-sort button.on {
  color: #2a1200;
  text-shadow: 0 1px 0 rgba(255, 236, 200, 0.45);
  background: linear-gradient(180deg, #ffe7c2, #ffb03a 70%, #c47a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(90, 42, 8, 0.65),
    0 2px 0 1px #8a4e10,
    0 4px 3px rgba(0, 0, 0, 0.28),
    0 0 12px 1px rgba(255, 170, 50, 0.65);
}
body[data-house="room"] .kicker {
  background: #d3a94a;
  color: #2e1608;
  box-shadow: 3px 3px 0 #5a3a12;
}
body[data-house="room"] .btn {
  color: #2e1608;
  background: linear-gradient(180deg, #f3e0b0, #d3a94a);
  box-shadow: 0 4px 0 #5a3a12, 0 8px 16px rgba(0, 0, 0, 0.22);
}
body[data-house="room"] .jewel.on {
  background: radial-gradient(circle at 35% 30%, #ffe7c2, #ffb03a 46%, #8a4e10);
  box-shadow: 0 0 8px rgba(255, 170, 50, 0.65);
}
body[data-house="room"] .stk-house { background: #d3a94a; color: #2e1608; }
body[data-house="room"] .stk-share { background: #efe2bf; color: #23150c; }
body[data-house="room"] .cork {
  background:
    repeating-linear-gradient(0deg, rgba(90, 50, 20, 0.08) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(60, 30, 10, 0.07) 0 3px, transparent 3px 9px),
    linear-gradient(165deg, #c9a36a, #a67c48);
  box-shadow: inset 0 0 0 3px #5a3a12, 0 12px 24px rgba(0, 0, 0, 0.28);
}
body[data-house="room"] .feet i {
  background: radial-gradient(circle at 50% 0%, #f7e3a8, #b8892e 60%, #4a3410);
}

/* ---------- Kingston: painted planks, mahogany face, splicing tape ---------- */
body[data-house="room"][data-skin="kingston"] {
  --ink: #2a1c10;
  --label: #2a1c10;
  --label-dim: #4a3420;
  --amber: #a6d98f;
  --paper: #f6e7bd;
  --paper2: #e6c98a;
  --line: #5a4320;
  --pop: #c9a23a;
  --muted: #4a3420;
}
body[data-house="room"][data-skin="kingston"] .room::before {
  background:
    linear-gradient(180deg, rgba(8, 5, 3, 0.04) 0%, rgba(8, 5, 3, 0.1) 70%, rgba(8, 5, 3, 0.4)),
    url("../reggae-den.jpg") center top / cover no-repeat;
}
body[data-house="room"][data-skin="kingston"] .lamp {
  background: radial-gradient(ellipse at 28% 18%, rgba(255, 196, 110, 0.16), transparent 62%);
}
body[data-house="room"][data-skin="kingston"] .cabinet::before {
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%20x='0'%20y='0'%20width='100%'%20height='100%'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.02%200.03'%20numOctaves='3'%20seed='17'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.5%20-0.21'/%3E%3C/filter%3E%3Crect%20width='100%'%20height='100%'%20filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 57px, rgba(0, 0, 0, 0.42) 57px 59px, rgba(255, 235, 190, 0.07) 59px 60px),
    linear-gradient(180deg, rgba(255, 244, 214, 0.1), transparent 30%),
    linear-gradient(180deg, #4a7a4c 0 33.33%, #c9a23a 33.33% 66.66%, #8a5348 66.66% 100%);
  background-size: 200px 200px, auto, auto, auto;
  box-shadow: inset 0 0 0 2px rgba(20, 10, 4, 0.6), inset 0 0 26px rgba(40, 20, 6, 0.28);
}
body[data-house="room"][data-skin="kingston"] .face {
  background:
    linear-gradient(180deg, #4a7a4c 0 1.5px, transparent 1.5px 3px, #c9a23a 3px 4.5px, transparent 4.5px 6px, #8a5348 6px 7.5px, transparent 7.5px) 0 5px / 100% 8px no-repeat,
    linear-gradient(180deg, rgba(255, 196, 110, 0.1), transparent 24%),
    linear-gradient(180deg, #91765e, #745e46);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 58, 0.45), 0 8px 16px rgba(0, 0, 0, 0.45);
}
body[data-house="room"][data-skin="kingston"] .lead { color: #f6e7bd; }
body[data-house="room"][data-skin="kingston"] .brand strong,
body[data-house="room"][data-skin="kingston"] .jewel-row { color: #f6e7bd; }
body[data-house="room"][data-skin="kingston"] .brand em,
body[data-house="room"][data-skin="kingston"] .silk,
body[data-house="room"][data-skin="kingston"] .rail {
  font-family: "Tape Hand", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #23150c;
}
body[data-house="room"][data-skin="kingston"] .brand em {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px 2px;
  font-size: 16px;
  background: #efe2bf;
  clip-path: polygon(1% 12%, 8% 0, 18% 8%, 31% 0, 46% 7%, 63% 0, 78% 9%, 91% 1%, 99% 10%, 100% 86%, 94% 100%, 79% 92%, 61% 100%, 44% 93%, 22% 100%, 6% 90%, 0 100%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35));
  transform: rotate(-1.1deg);
}
body[data-house="room"][data-skin="kingston"] .silk {
  display: table;
  margin: 16px auto 0;
  padding: 4px 14px 3px;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-align: center;
  background: #e6c98a;
  clip-path: polygon(0 10%, 7% 0, 19% 8%, 34% 0, 52% 6%, 70% 0, 84% 8%, 100% 2%, 99% 88%, 90% 100%, 74% 92%, 55% 100%, 36% 94%, 16% 100%, 2% 90%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35));
  transform: rotate(1deg);
}
body[data-house="room"][data-skin="kingston"] .rail {
  display: table;
  width: auto;
  max-width: calc(100% - 24px);
  margin: 14px auto 0;
  padding: 4px 14px 3px;
  font-size: 16px;
  letter-spacing: 0.01em;
  background: #d8bc86;
  clip-path: polygon(1% 14%, 12% 0, 28% 8%, 48% 0, 66% 7%, 82% 0, 99% 12%, 100% 84%, 88% 100%, 70% 92%, 48% 100%, 24% 93%, 4% 100%, 0 86%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35));
  transform: rotate(-0.6deg);
}
body[data-house="room"][data-skin="kingston"] .vfd {
  background: linear-gradient(180deg, #17110a, #0d0905);
  box-shadow: inset 0 0 0 1px #5a4320, inset 0 8px 16px rgba(0, 0, 0, 0.5);
}
body[data-house="room"][data-skin="kingston"] .vfd span {
  color: #a6d98f;
  text-shadow: 0 0 7px rgba(150, 210, 120, 0.55);
}
body[data-house="room"][data-skin="kingston"] .vfd small { color: #7eaa6c; }
body[data-house="room"][data-skin="kingston"] .jewel.on {
  background: radial-gradient(circle at 35% 30%, #e7f6d4, #6aaa58 46%, #245028);
  box-shadow: 0 0 8px rgba(120, 190, 90, 0.55);
}
body[data-house="room"][data-skin="kingston"] .stk-house { background: #4a7a4c; color: #f6e7bd; }
body[data-house="room"][data-skin="kingston"] .stk-share { background: #c9a23a; color: #2a1c10; }
body[data-house="room"][data-skin="kingston"] .kicker {
  background: #8a5348;
  color: #f6e7bd;
  box-shadow: 3px 3px 0 #3a221c;
}
body[data-house="room"][data-skin="kingston"] .tabs button.on,
body[data-house="room"][data-skin="kingston"] :is(.house-switch, .machine-switch) button.on,
body[data-house="room"][data-skin="kingston"] .finder-sort button.on {
  color: #f6e7bd;
  text-shadow: 0 1px 0 rgba(20, 40, 16, 0.4);
  background: linear-gradient(180deg, #6a9a62, #3f7344 70%, #245028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(20, 40, 16, 0.65),
    0 2px 0 1px #163318,
    0 4px 3px rgba(0, 0, 0, 0.28);
}
body[data-house="room"][data-skin="kingston"] .feet i {
  background: radial-gradient(circle at 50% 0%, #d6ad45, #6a4a28 60%, #2a1a10);
}
body[data-house="room"][data-skin="kingston"] .deck-read { color: #a6d98f; }

/* ---------- your plate, and a look at the paint / slap / kit ---------- */
.head { align-items: center; }
.jewel-row { align-items: center; }

.profile-cap {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  color: #2a1c10;
  font: inherit;
  font-weight: 800;
  background: radial-gradient(circle at 34% 28%, #fff6ea, #e4d0ae 46%, #8d7354 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 3px 0 #3a2a1c,
    0 8px 14px rgba(0, 0, 0, 0.35);
}
.profile-cap.is-still { cursor: default; }
.profile-cap span { position: relative; z-index: 1; }
.profile-cap::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(42, 28, 16, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.profile-cap:active,
.profile-cap.on {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28), 0 1px 0 #3a2a1c;
}
body[data-house="beats"] .profile-cap {
  color: #f6f4ec;
  background: radial-gradient(circle at 34% 28%, #f0b0a8, #c8352a 46%, #6a140e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 3px 0 #6a140e,
    0 0 12px rgba(200, 53, 42, 0.35);
}
body[data-house="beats"] .profile-cap:active,
body[data-house="beats"] .profile-cap.on {
  box-shadow: inset 0 2px 5px rgba(80, 16, 10, 0.4), 0 1px 0 #6a140e;
}
body[data-house="room"] .profile-cap {
  color: #2a1c10;
  background: radial-gradient(circle at 34% 28%, #fff4d2, #f0d48a 40%, #c9a23a 70%, #8a6a22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 3px 0 #5a3a12,
    0 0 12px rgba(201, 162, 58, 0.35);
}

.profile-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 8;
  width: 280px;
  padding: 18px 16px 14px;
  transform: rotate(-1.2deg);
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: #2a1c10;
  background:
    radial-gradient(ellipse 80% 40% at 8% 0%, rgba(255, 184, 74, 0.28), transparent 68%),
    linear-gradient(165deg, #f7f1e4, #e7d3b4);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 2px #6b452c,
    6px 8px 0 #c9a23a,
    0 18px 32px rgba(0, 0, 0, 0.38);
}
.profile-card[hidden] { display: none; }
body[data-house="beats"] .profile-card {
  box-shadow:
    inset 0 0 0 2px #f4f4ef,
    5px 6px 0 #c8352a,
    0 18px 32px rgba(0, 0, 0, 0.45);
}
.profile-card h2 {
  margin: 8px 0 2px;
  color: #2a1c10;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.profile-tag,
.profile-key {
  margin: 0;
  color: #4a3424;
  font-size: 13px;
  line-height: 1.35;
}
.profile-key {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  margin: 14px 0 12px;
}
.stat-grid dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a3424;
}
.stat-grid dd {
  margin: 0;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 13px;
  color: #2a1c10;
  text-align: right;
}
.profile-go {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: #2a1c10;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-go:hover { color: #7a3000; }
.plate-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 2px 0 2px;
  overflow: hidden;
  border-radius: 50%;
  color: #f6f4ec;
  background: radial-gradient(circle at 34% 28%, #f0b0a8, #c8352a 46%, #6a140e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 #6a140e;
}
.face-well { display: grid; place-items: center; }
.profile-cap .face-well { width: 100%; height: 100%; }
.visitor-mark { width: 28px; height: 28px; }
.plate-seal .visitor-mark { width: 40px; height: 40px; }
.face-shot {
  position: absolute;
  z-index: 1;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
}
.plate-shot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.plate-shot .plate-oauth { display: grid; place-items: center; }
.name-face {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.name-face .shot-btn { margin: 0; }
.shot-btn input, .plate-shot input { display: none; }
body[data-house="room"] .plate-seal {
  color: #2a1c10;
  background: radial-gradient(circle at 34% 28%, #fff4d2, #f0d48a 40%, #c9a23a 70%, #8a6a22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #5a3a12;
}
.plate-door {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
}
.plate-door[hidden] { display: none; }
.plate-oauth {
  height: 32px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a1c10;
  background: linear-gradient(180deg, #fffaf3, #e7d7bc);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #6b452c;
}
.plate-oauth.apple {
  color: #f6f4ec;
  background: linear-gradient(180deg, #3a3b3f, #141416);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 #000;
}
.plate-note {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #6a3a22;
}
.plate-note:empty { display: none; }
.plate-deal {
  margin: 12px 0 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(90, 58, 18, 0.35);
}
.plate-deal p { margin: 8px 0; font-size: 14px; line-height: 1.35; }
.plate-deal .profile-go,
.plate-deal .btn { width: 100%; margin-top: 4px; }
.plate-deal .profile-go:disabled,
.plate-deal .btn:disabled { cursor: default; opacity: 0.72; }
.pay-mail {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pay-mail[hidden] { display: none; }
.pay-mail input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  color: #23180f;
  background: #fffaf3;
  box-shadow: inset 0 0 0 1px rgba(42, 28, 16, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.plate-acts { display: flex; justify-content: space-between; gap: 12px; }
.profile-go.out { color: #8a2a22; }

.sleeve footer { flex-wrap: wrap; align-items: flex-end; }
.sleeve-acts { display: flex; gap: 12px; margin-left: auto; }
.sleeve button.on,
.note .pull.on {
  padding: 2px 8px;
  border-radius: 999px;
  color: #f6f4ec;
  background: #c8352a;
}
body[data-house="room"] .sleeve button.on,
body[data-house="room"] .note .pull.on {
  color: #2e1608;
  background: #d3a94a;
}

.look {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 4, 0.62);
}
.look[hidden] { display: none; }
.look-card {
  position: relative;
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  transform: rotate(-0.8deg);
  color: #2a1c10;
  background:
    radial-gradient(ellipse 70% 36% at 10% 0%, rgba(255, 184, 74, 0.22), transparent 70%),
    linear-gradient(165deg, #f7f1e4, #e7d3b4);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 2px #6b452c,
    6px 7px 0 #c9a23a,
    0 22px 40px rgba(0, 0, 0, 0.45);
}
body[data-house="beats"] .look-card {
  box-shadow:
    inset 0 0 0 2px #f4f4ef,
    6px 7px 0 #c8352a,
    0 22px 40px rgba(0, 0, 0, 0.5);
}
.look-card h2 {
  margin: 8px 36px 10px 0;
  color: #2a1c10;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.look-card p {
  margin: 12px 0 0;
  color: #4a3424;
  font-size: 14px;
  line-height: 1.4;
}
.look-x {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #2a1c10;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rig {
  width: min(320px, 100%);
  display: grid;
  grid-template-rows: 124px 156px;
  margin-top: 4px;
  border-radius: 12px 12px 8px 8px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}
.rig-shell {
  position: relative;
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(0, 0, 0, 0.14) 11px 12px),
    linear-gradient(180deg, var(--a) 0 33.33%, var(--b) 33.33% 66.66%, var(--c) 66.66%);
}
.rig-shell::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff8ea, var(--lamp, #a6d98f) 42%, #2a1c10 78%);
  box-shadow: 0 0 10px 2px var(--lamp, #a6d98f);
}
.rig-deck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rig-platter {
  position: absolute;
  z-index: 1;
  width: 78px;
  height: 78px;
  right: 28px;
  top: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e7c56a 0 3px, #141414 4px 16px, #0c0c0c 17px 36px, #2c2c2c 37px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.rig-face {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--face, #91765e);
  box-shadow: inset 0 10px 16px rgba(0, 0, 0, 0.12);
}
.rig.is-paint {
  display: block;
  position: relative;
  height: 280px;
}
.rig.is-paint .rig-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rig.is-paint::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 102px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff8ea, var(--lamp, #a6d98f) 42%, #2a1c10 78%);
  box-shadow: 0 0 10px 2px var(--lamp, #a6d98f);
}
.rig.is-paint.no-bulb::after { display: none; }
.look-card:has(.plate-still) {
  width: min(520px, calc(100vw - 28px));
}
.plate-still {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 620px);
  height: auto;
  margin: 4px auto 0;
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}
.slot-stage {
  position: relative;
  width: min(300px, 100%);
  height: 300px;
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 14px 24px rgba(0, 0, 0, 0.35);
}
.slot-stage.sp {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #4a4d54, #1f2125 70%);
}
.slot-stage.mp {
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #6b452c, #3a2416);
}
.slot-stage img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.35));
}

/* ---------- house key: the door ---------- */
.door {
  position: relative;
  max-width: 640px;
  margin: 4px auto 8px;
  padding: 22px 22px 18px;
  transform: rotate(-0.7deg);
  color: #2a1c10;
  background:
    radial-gradient(ellipse 80% 40% at 8% 0%, rgba(255, 184, 74, 0.28), transparent 70%),
    linear-gradient(165deg, #f7f1e4, #e7d3b4);
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 2px #6b452c,
    6px 8px 0 #c9a23a,
    0 22px 36px rgba(0, 0, 0, 0.38);
}
body[data-house="beats"] .door {
  box-shadow:
    inset 0 0 0 2px #f4f4ef,
    6px 8px 0 #c8352a,
    0 22px 36px rgba(0, 0, 0, 0.45);
}
.door h2 {
  margin: 6px 0 8px;
  color: #2a1c10;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
}
.door-lead {
  margin: 0;
  max-width: 42ch;
  color: #4a3424;
  font-size: 15px;
  line-height: 1.4;
}
.door-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 4px;
}
.door-keys[hidden] { display: none; }
.keycap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 132px;
  padding: 16px 16px 14px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.keycap span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.keycap small {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}
.keycap svg { width: 36px; height: 36px; }
.keycap.google {
  color: #1c1c1c;
  background: linear-gradient(180deg, #fff, #f4f0e8 70%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 0 #c9c2b6,
    0 12px 18px rgba(0, 0, 0, 0.16);
}
.keycap.google small { color: #6a6258; }
.keycap.apple {
  color: #f6f1e8;
  background: linear-gradient(180deg, #3a3a3a, #141414 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 0 #050505,
    0 12px 18px rgba(0, 0, 0, 0.28);
}
.keycap.apple small { color: #b7b0a4; }
.keycap:hover { transform: translateY(-1px); }
.keycap:active { transform: translateY(3px); }
.keycap.google:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 0 #c9c2b6; }
.keycap.apple:active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 1px 0 #050505; }
.lost-key {
  display: block;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b452c;
  font: inherit;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.door .house-or { color: #6b5344; margin-top: 16px; }
.door .mail-slot label,
.door .nameplate label {
  display: block;
  color: #4a3424;
}
.door .mail-slot input,
.door .nameplate input,
.door .nameplate textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: #f3e6d0;
  background: #1c140e;
  box-shadow: inset 0 0 0 1px #6b452c, inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.door .mail-slot input::placeholder,
.door .nameplate textarea::placeholder { color: #8a7564; }
.door .nameplate textarea {
  min-height: 7rem;
  margin: 0 0 10px;
  resize: vertical;
  font: inherit;
}
.door .btn.ghost,
body[data-house="beats"] .door .btn.ghost,
body[data-house="room"] .door .btn.ghost {
  color: #2a1c10;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #6b452c;
}
.door .nameplate,
body[data-house="beats"] .door .nameplate,
body[data-house="room"] .door .nameplate {
  max-width: none;
  margin-top: 18px;
  padding: 14px 0 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  border-top: 1px solid rgba(90, 58, 30, 0.28);
}
.door .nameplate h2 {
  margin: 0 0 4px;
  color: #2a1c10;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.door-out { margin-top: 8px; }
.door-out[hidden] { display: none; }
.mail-slot[hidden] { display: none; }
.forgot-key {
  display: inline-block;
  margin-top: 12px;
  color: #6b5344;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .door-keys { grid-template-columns: 1fr; }
  .door h2 { font-size: 26px; }
}

/* ---------- the crate deck: reel, glass, level ---------- */
.deck-player[hidden] { display: none; }
.deck-player {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 14px 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 16px 16px, #2a2a2c 0 0.7px, #f6f6f0 0.8px 1.7px, #6e6f74 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #2a2a2c 0 0.7px, #f6f6f0 0.8px 1.7px, #6e6f74 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #2a2a2c 0 0.7px, #f6f6f0 0.8px 1.7px, #6e6f74 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #2a2a2c 0 0.7px, #f6f6f0 0.8px 1.7px, #6e6f74 1.8px 4px, transparent 4.2px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 2px),
    radial-gradient(circle, rgba(0, 0, 0, 0.07) 0 0.45px, transparent 0.8px) 0 0 / 3px 3px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(180deg, #dcdcd4, #b0b0a8 72%, #96968e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    inset 0 0 0 4px rgba(255, 255, 255, 0.14),
    inset 0 14px 18px rgba(0, 0, 0, 0.08),
    0 10px 16px rgba(0, 0, 0, 0.16);
}
.deck-side { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.deck-reel {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 50%, #f4e6c4 0 6%, #b8925a 6.2% 8.5%, #101012 8.7% 17%, #1c1c1f 17% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -10px 14px rgba(0, 0, 0, 0.45),
    0 0 0 6px #1c1c1f,
    0 0 0 8px #d8d8d0,
    0 0 0 10px #5a5b60,
    0 0 0 12px #1a1a1c,
    0 10px 14px rgba(0, 0, 0, 0.34);
}
.deck-grooves {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0 0.6px, rgba(0, 0, 0, 0.28) 0.6px 2.4px);
  animation: deck-reel 3.2s linear infinite;
  animation-play-state: paused;
}
.deck-player.is-live .deck-grooves { animation-play-state: running; }
.deck-steps { position: absolute; inset: 0; }
.deck-steps i {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #2c2d31;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.deck-steps i.trail {
  background: #e7c56a;
  box-shadow: 0 0 5px rgba(231, 197, 106, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.deck-steps i.now {
  background: #fff6df;
  box-shadow: 0 0 7px rgba(255, 220, 150, 1), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.deck-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #f4f4ef, #8a8b90 42%, #2a2a2d 74%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #1a1a1c;
}
.deck-lamp {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a1814;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.deck-player.is-live .deck-lamp {
  background: radial-gradient(circle at 35% 30%, #ffd0c8, #c8352a 60%, #6a140e);
  box-shadow: 0 0 8px rgba(200, 53, 42, 0.85);
}
.deck-now { margin: 0; text-align: center; min-width: 0; max-width: 160px; }
.deck-now b,
.deck-now small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-now b {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #1c1c1f;
}
.deck-now small {
  margin-top: 1px;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d5e63;
}
.deck-meter { min-width: 0; display: grid; gap: 5px; }
.deck-freq {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.16em;
  color: #6a6b70;
}
.deck-glass {
  position: relative;
  display: flex;
  gap: 3px;
  height: 120px;
  padding: 16px 8px 8px;
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2c4070, #101628 70%);
  box-shadow:
    inset 0 0 0 1px #070b16,
    inset 0 0 0 3px #c8c8c0,
    inset 0 0 0 4px #3a3b3f,
    inset 0 16px 20px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35);
}
.deck-glass::before {
  content: "EQ";
  position: absolute;
  left: 8px;
  top: 4px;
  z-index: 2;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(213, 222, 242, 0.45);
}
.deck-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 68%, rgba(255, 255, 255, 0.05));
}
.eq-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.eq-col b {
  flex: 1;
  border-radius: 1px;
  background: rgba(8, 12, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.eq-col b.lit {
  background: linear-gradient(180deg, #fff8e8, #e7c56a);
  box-shadow: 0 0 6px rgba(255, 196, 90, 0.8);
}
.eq-col b:nth-child(-n + 3).lit {
  background: linear-gradient(180deg, #ffe7c4, #e0903a);
  box-shadow: 0 0 6px rgba(224, 144, 58, 0.75);
}
.eq-col b.hot {
  background: linear-gradient(180deg, #ffe0d8, #e23b3b);
  box-shadow: 0 0 7px rgba(226, 59, 59, 0.9);
}
.deck-level {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
}
.deck-dial {
  position: relative;
  width: 86px;
  height: 86px;
}
.deck-dial::before,
.deck-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  z-index: 2;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  border-radius: 1px;
  background: #2c2d31;
  transform-origin: 50% 42px;
  pointer-events: none;
}
.deck-dial::before { transform: rotate(-135deg); }
.deck-dial::after { transform: rotate(135deg); }
.deck-scale {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 225deg, #c8352a 0 270deg, rgba(0, 0, 0, 0.16) 270deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61% 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 60%, #000 61% 70%, transparent 71%);
  pointer-events: none;
}
.deck-knob {
  position: absolute;
  z-index: 1;
  inset: 11px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.38) 0 1.4deg, rgba(0, 0, 0, 0.22) 1.4deg 3deg),
    radial-gradient(circle at 38% 28%, #f4f4ee, #9a9b9f 48%, #3a3b3f 80%);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.38),
    0 1px 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -4px 6px rgba(0, 0, 0, 0.4);
}
.deck-knob::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.4), transparent 46%);
}
.deck-cap {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 22%, #5a5b60, #141416 62%, #050506);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  transform: rotate(var(--rot, -135deg));
}
.deck-cap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.34) 0 2deg, transparent 2deg 4.6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 68%, #000 72%);
  mask: radial-gradient(circle, transparent 0 68%, #000 72%);
  pointer-events: none;
}
.deck-cap i {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 3px;
  height: 28%;
  border-radius: 1px;
  transform: translateX(-50%);
  background: #f6f4ec;
  box-shadow: 0 0 4px rgba(255, 220, 160, 0.9);
}
.deck-read {
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #1c1c1f;
}
.deck-vol-name {
  margin-top: -2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d5e63;
}
.deck-park {
  margin-top: 2px;
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f6f4ec;
  background: linear-gradient(180deg, #e2554c, #a32018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 #6a140e;
  cursor: pointer;
}
.deck-park:disabled {
  color: #8a8b90;
  background: linear-gradient(180deg, #d0d0c8, #b0b0a8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 #8a8b90;
  cursor: default;
}
body[data-house="beats"] .sleeve.is-live {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px #c8352a,
    4px 5px 0 #c8352a,
    0 0 16px rgba(200, 53, 42, 0.28);
}
@keyframes deck-reel { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .deck-player { grid-template-columns: 1fr; justify-items: center; }
  .deck-meter, .deck-glass { width: 100%; }
  .profile-card { width: min(340px, calc(100vw - 36px)); }
}
@media (prefers-reduced-motion: reduce) {
  .deck-grooves { animation: none; }
}

body[data-house="room"] .deck-player {
  background:
    radial-gradient(circle at 16px 16px, #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255, 220, 160, 0.16), transparent 30%),
    linear-gradient(180deg, #70492f, #3a2416);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.28),
    inset 0 0 0 1px #2a160c,
    inset 0 0 0 3px rgba(240, 217, 126, 0.35),
    0 12px 18px rgba(0, 0, 0, 0.35);
}
body[data-house="room"] .deck-now b { color: #f6efe2; }
body[data-house="room"] .deck-now small,
body[data-house="room"] .deck-vol-name,
body[data-house="room"] .deck-freq { color: #e6d2b0; }
body[data-house="room"] .deck-read { color: #ffb03a; }
body[data-house="room"] .deck-reel {
  box-shadow:
    inset 0 -10px 14px rgba(0, 0, 0, 0.5),
    0 0 0 6px #2a160c,
    0 0 0 8px #e7c56a,
    0 0 0 10px #6a4520,
    0 0 0 12px #1a100c,
    0 10px 14px rgba(0, 0, 0, 0.4);
}
body[data-house="room"] .deck-glass {
  background:
    repeating-linear-gradient(0deg, rgba(255, 180, 60, 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #3a2410, #140c06);
  box-shadow:
    inset 0 0 0 1px #1a1008,
    inset 0 0 0 3px #e7c56a,
    inset 0 0 0 4px #4a3010,
    inset 0 16px 20px rgba(0, 0, 0, 0.5);
}
body[data-house="room"] .deck-glass::before { color: rgba(255, 196, 110, 0.7); }
body[data-house="room"] .deck-scale {
  background: conic-gradient(from 225deg, #e7c56a 0 270deg, rgba(0, 0, 0, 0.28) 270deg);
}
body[data-house="room"] .deck-dial::before,
body[data-house="room"] .deck-dial::after { background: #f0d97e; }
body[data-house="room"] .deck-knob {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 236, 180, 0.55) 0 1.4deg, rgba(60, 30, 8, 0.35) 1.4deg 3deg),
    radial-gradient(circle at 38% 28%, #f6e7b0, #c4a04a 48%, #5a3a12 82%);
}
body[data-house="room"] .deck-cap {
  background: radial-gradient(circle at 50% 22%, #6a4528, #24160e 64%, #100a06);
}
body[data-house="room"] .eq-col b.lit {
  background: linear-gradient(180deg, #fff2cc, #e7c56a);
  box-shadow: 0 0 6px rgba(231, 197, 106, 0.85);
}

/* ---------- Beats, SP mode: gunmetal sampler, red lamp, silver trim ---------- */
body[data-house="beats"][data-machine="sp"] {
  --ink: #f4f4f0;
  --label: #f4f4f0;
  --label-dim: #a9adb5;
  --paper: #2a2c32;
  --paper2: #1c1e22;
  --line: #ff3b2f;
  --pop: #ff3b2f;
  --muted: #c8ccd4;
}
body[data-house="beats"][data-machine="sp"] .room::before {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(255, 59, 47, 0.28), transparent 62%),
    linear-gradient(180deg, #17181c, #050506 74%);
}
body[data-house="beats"][data-machine="sp"] .lamp {
  background: radial-gradient(ellipse at 82% 8%, rgba(255, 70, 50, 0.32), transparent 58%);
}
body[data-house="beats"][data-machine="sp"] .cabinet::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(180deg, #3b3d42, #303236 50%, #27292c);
  box-shadow:
    inset 0 0 0 2px #9fa2a9,
    inset 0 0 0 3px #08080a,
    inset 0 0 0 4px #ff3b2f,
    0 0 20px rgba(255, 59, 47, 0.16);
}
body[data-house="beats"][data-machine="sp"] .face {
  color: #f4f4f0;
  background:
    linear-gradient(90deg, #ff3b2f 0 18%, transparent 18%) 0 0 / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 16%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #373940, #1f2125);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 2px rgba(0, 0, 0, 0.55), 0 8px 16px rgba(0, 0, 0, 0.5);
}
body[data-house="beats"][data-machine="sp"] .lead,
body[data-house="beats"][data-machine="sp"] .beta p,
body[data-house="beats"][data-machine="sp"] .silk,
body[data-house="beats"][data-machine="sp"] .rail { color: #c8ccd4; }
body[data-house="beats"][data-machine="sp"] .vfd {
  background:
    repeating-linear-gradient(0deg, rgba(255, 40, 30, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #1c0707, #0d0303);
  box-shadow: inset 0 0 0 1px #6a1a16, inset 0 8px 16px rgba(0, 0, 0, 0.55);
}
body[data-house="beats"][data-machine="sp"] .vfd span {
  color: #ff4a3a;
  text-shadow: 0 0 8px rgba(255, 60, 40, 0.85);
}
body[data-house="beats"][data-machine="sp"] .vfd small { color: #ff8a7a; }
body[data-house="beats"][data-machine="sp"] .tabs button:not(.on),
body[data-house="beats"][data-machine="sp"] :is(.house-switch, .machine-switch) button:not(.on) {
  color: #ff9a3a;
  text-shadow: 0 0 5px rgba(255, 130, 30, 0.7);
  background: linear-gradient(180deg, #2c2d32, #121316 70%, #07070a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px #040405,
    0 3px 0 #000,
    0 5px 5px rgba(0, 0, 0, 0.35);
}
body[data-house="beats"][data-machine="sp"] .drop {
  background: #0c0c0e;
  color: #ffb3a8;
  box-shadow: inset 0 2px 8px #000, inset 0 0 0 1px #6a1a16;
}
body[data-house="beats"][data-machine="sp"] .beta {
  color: #f4f4f0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(165deg, #2a2c32, #1a1c20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 3px 4px 0 #ff3b2f;
}
body[data-house="beats"][data-machine="sp"] .kicker {
  background: #ff3b2f;
  color: #1a0a08;
  box-shadow: 3px 3px 0 #6a0a06;
}
body[data-house="beats"][data-machine="sp"] .sleeve .mark {
  background: #ff3b2f;
  color: #1a0a08;
}
body[data-house="beats"][data-machine="sp"] .sleeve button,
body[data-house="beats"][data-machine="sp"] .note-link,
body[data-house="beats"][data-machine="sp"] .note .pull { color: #ff8a7a; }
body[data-house="beats"][data-machine="sp"] .stk-house { background: #ff3b2f; color: #1a0a08; }
body[data-house="beats"][data-machine="sp"] .stk-share { background: #d4d7dd; color: #14151a; }
body[data-house="beats"][data-machine="sp"] .feet i {
  background: linear-gradient(180deg, #6a6d75, #2c2e33 55%, #0c0d10);
}
body[data-house="beats"][data-machine="sp"] .cork {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a2c32, #141518);
  box-shadow: inset 0 0 0 2px #3a3c43, inset 0 0 0 4px #ff3b2f;
}
body[data-house="beats"][data-machine="sp"] .deck-player {
  background:
    radial-gradient(circle at 16px 16px, #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 22%),
    linear-gradient(#ff3b2f, #ff3b2f) 0 0 / 100% 3px no-repeat,
    linear-gradient(180deg, #3a3c43, #16181c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2px #ff3b2f,
    0 12px 18px rgba(0, 0, 0, 0.45);
}
body[data-house="beats"][data-machine="sp"] .deck-now b { color: #f4f4f0; }
body[data-house="beats"][data-machine="sp"] .deck-now small,
body[data-house="beats"][data-machine="sp"] .deck-vol-name,
body[data-house="beats"][data-machine="sp"] .deck-freq { color: #a9adb5; }
body[data-house="beats"][data-machine="sp"] .deck-read {
  color: #ff4a3a;
  text-shadow: 0 0 6px rgba(255, 60, 40, 0.7);
}
body[data-house="beats"][data-machine="sp"] .deck-reel {
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 50%, #ffc2b8 0 6%, #6a1410 6.2% 8.5%, #0c0c0e 8.7% 17%, #16181c 17% 100%);
  box-shadow:
    inset 0 -10px 14px rgba(0, 0, 0, 0.55),
    0 0 0 6px #101114,
    0 0 0 7px #ff3b2f,
    0 0 0 9px #d4d7dd,
    0 0 0 11px #0c0d10,
    0 10px 16px rgba(0, 0, 0, 0.5);
}
body[data-house="beats"][data-machine="sp"] .deck-glass {
  background:
    repeating-linear-gradient(0deg, rgba(255, 40, 30, 0.07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a0c0c, #070304);
  box-shadow:
    inset 0 0 0 1px #3a0c0a,
    inset 0 0 0 3px #c6c9d0,
    inset 0 0 0 4px #ff3b2f,
    inset 0 16px 20px rgba(0, 0, 0, 0.55);
}
body[data-house="beats"][data-machine="sp"] .deck-dial::before,
body[data-house="beats"][data-machine="sp"] .deck-dial::after { background: #e4e6ea; }
body[data-house="beats"][data-machine="sp"] .deck-glass::before { color: rgba(255, 138, 122, 0.7); }
body[data-house="beats"][data-machine="sp"] .eq-col b { background: rgba(20, 6, 6, 0.8); }
body[data-house="beats"][data-machine="sp"] .eq-col b.lit {
  background: linear-gradient(180deg, #ffd0a8, #ff7a1a);
  box-shadow: 0 0 6px rgba(255, 122, 26, 0.85);
}
body[data-house="beats"][data-machine="sp"] .eq-col b:nth-child(-n + 3).lit {
  background: linear-gradient(180deg, #ffb0a4, #ff3b2f);
  box-shadow: 0 0 6px rgba(255, 59, 47, 0.85);
}
body[data-house="beats"][data-machine="sp"] .eq-col b.hot {
  background: linear-gradient(180deg, #fff6f4, #ff4a3a);
  box-shadow: 0 0 8px rgba(255, 74, 58, 1);
}
body[data-house="beats"][data-machine="sp"] .deck-scale {
  background: conic-gradient(from 225deg, #ff3b2f 0 270deg, rgba(255, 255, 255, 0.08) 270deg);
}
body[data-house="beats"][data-machine="sp"] .profile-cap,
body[data-house="beats"][data-machine="sp"] .plate-seal {
  color: #ff4a3a;
  background: radial-gradient(circle at 34% 28%, #e4e6ea, #8a8d94 48%, #1c1e22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 2px #ff3b2f,
    0 3px 0 #000;
}
body[data-house="beats"][data-machine="sp"] .finder {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 3px #000, inset 0 0 0 1px rgba(255, 59, 47, 0.35);
}
body[data-house="beats"][data-machine="sp"] .finder-sort button:not(.on) {
  color: #ff9a3a;
  background: linear-gradient(180deg, #2c2d32, #121316);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 0 #000;
}
body[data-house="beats"][data-machine="sp"] .tabs button.on,
body[data-house="beats"][data-machine="sp"] :is(.house-switch, .machine-switch) button.on,
body[data-house="beats"][data-machine="sp"] .finder-sort button.on {
  color: #2a1200;
  text-shadow: 0 1px 0 rgba(255, 220, 160, 0.35);
  background: linear-gradient(180deg, #ffb860, #ff7a1a 62%, #b84a00);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px #040405,
    0 2px 0 1px #7a3000,
    0 4px 3px rgba(0, 0, 0, 0.35),
    0 0 12px 1px rgba(255, 122, 26, 0.7);
}

/* Shelf rows. A tape on the shelf, not a poster. */
.sleeve.is-row,
body[data-house="beats"] .sleeve.is-row,
body[data-house="room"] .sleeve.is-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 0;
  padding: 8px 12px;
  transform: rotate(calc((var(--n) % 4 - 1.5) * 0.15deg));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    3px 3px 0 var(--pop);
}
.sleeve.is-plate,
body[data-house="beats"] .sleeve.is-plate,
body[data-house="room"] .sleeve.is-plate {
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px;
}
.sleeve.is-slap,
body[data-house="beats"] .sleeve.is-slap,
body[data-house="room"] .sleeve.is-slap {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
}
.sleeve.is-kit,
body[data-house="beats"] .sleeve.is-kit,
body[data-house="room"] .sleeve.is-kit {
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px;
}
.row-copy { min-width: 0; }
.row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sleeve.is-row .who { margin: 0; flex: none; }
.sleeve.is-row .who i,
.sleeve.is-row .who-shot { width: 22px; height: 22px; font-size: 11px; }
.sleeve.is-row h3 {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sleeve.is-row p {
  margin: 2px 0 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sleeve.is-row p.readout { white-space: normal; }
.row-tags { display: flex; flex: none; gap: 4px; }
.chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.sleeve.is-row footer {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.row-art {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.row-art:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sleeve.is-plate .row-art {
  width: 220px;
  height: auto;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}
.sleeve.is-plate .cabinet-shot {
  display: block;
  width: 220px;
  height: auto;
}
.sleeve.is-plate .plate-art,
.sleeve.is-plate .plate-swatch {
  width: 220px;
  height: 128px;
  margin: 0;
  border-radius: 6px;
}
.sleeve.is-kit .row-art {
  width: 168px;
  height: 168px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 3px 4px 0 rgba(20, 16, 12, 0.35);
}
.sleeve.is-kit .kit-sleeve,
.sleeve.is-kit .kit-cover {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
}
.sleeve.is-kit.is-open .row-art {
  box-shadow: 3px 4px 0 #c45a2a;
}
.sleeve.is-slap .row-art { width: 92px; }
.sleeve.is-slap .slap {
  width: 92px;
  height: 72px;
  margin: 0;
  border-radius: 4px;
}
body[data-house="beats"] .sleeve.is-row.is-live,
body[data-house="beats"][data-machine="sp"] .sleeve.is-row.is-live {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px #c8352a,
    3px 3px 0 #c8352a,
    0 0 16px rgba(200, 53, 42, 0.28);
}
body[data-house="beats"][data-machine="sp"] .sleeve.is-row.is-live {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px #ff3b2f,
    3px 3px 0 #ff3b2f,
    0 0 16px rgba(255, 59, 47, 0.35);
}
body[data-house="beats"][data-machine="sp"] .chip {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.finder-tags {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.finder-tags:empty { display: none; }
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.tag-group b {
  margin-right: 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-dim);
}
.tag-group button {
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2a2d;
  background: linear-gradient(180deg, #f6f6f1, #d0d0c8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #8a8b90;
}
body[data-house="beats"] .tag-group button.on {
  color: #f4f8ff;
  background: linear-gradient(180deg, #8fc0ff, #2f6fe0 70%, #1450c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #0a2c78;
}
body[data-house="room"] .tag-group button {
  color: #2e1608;
  background: linear-gradient(180deg, #f6e7c4, #d3a94a 64%, #8a6a2a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #5a3a12;
}
body[data-house="room"] .tag-group button.on {
  color: #2a1200;
  background: linear-gradient(180deg, #ffe7c2, #ffb03a 70%, #c47a18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 0 #8a4e10, 0 0 10px rgba(255, 170, 50, 0.45);
}
body[data-house="beats"][data-machine="sp"] .tag-group button {
  color: #ff9a3a;
  background: linear-gradient(180deg, #2c2d32, #121316);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 0 #000;
}
body[data-house="beats"][data-machine="sp"] .tag-group button.on {
  color: #2a1200;
  background: linear-gradient(180deg, #ffb860, #ff7a1a 62%, #b84a00);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #7a3000, 0 0 10px rgba(255, 122, 26, 0.55);
}
@media (max-width: 720px) {
  .sleeve.is-plate,
  .sleeve.is-slap,
  .sleeve.is-kit,
  body[data-house="beats"] .sleeve.is-plate,
  body[data-house="beats"] .sleeve.is-slap,
  body[data-house="beats"] .sleeve.is-kit,
  body[data-house="room"] .sleeve.is-plate,
  body[data-house="room"] .sleeve.is-slap,
  body[data-house="room"] .sleeve.is-kit {
    grid-template-columns: 1fr;
  }
  .sleeve.is-plate .row-art,
  .sleeve.is-plate .plate-art,
  .sleeve.is-plate .plate-swatch,
  .sleeve.is-slap .row-art,
  .sleeve.is-slap .slap,
  .sleeve.is-kit .row-art,
  .sleeve.is-kit .kit-sleeve { width: 100%; }
  .sleeve.is-plate .row-art:has(.cabinet-shot) { width: min(220px, 72%); }
  .sleeve.is-plate .cabinet-shot { width: 100%; height: auto; }
  .sleeve.is-plate .plate-art,
  .sleeve.is-plate .plate-swatch { height: 140px; }
  .sleeve.is-kit .row-art,
  .sleeve.is-kit .kit-sleeve,
  .sleeve.is-kit .kit-cover { height: 168px; }
  .sleeve.is-kit .kit-cover { width: 100%; }
  .sleeve.is-shot { grid-template-columns: 96px minmax(0, 1fr); }
  .sleeve.is-shot footer { grid-column: 1 / -1; }
  .sleeve.is-shot .row-art,
  .sleeve.is-shot .shot-still { width: 96px; height: 96px; }
  .market { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .market-card { flex-basis: 120px; }
  .market-card.on { flex-basis: 156px; }
  .sleeve.is-row footer { align-items: flex-start; }
}

.plate-walk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 2px 0 12px;
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6ead8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  background: linear-gradient(110deg, #b86a58, #c4923a, #8a9a56, #4e8a86, #7a6a9a, #b86a58);
  background-size: 240% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 210, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 0 rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(80, 40, 20, 0.28);
  transform: rotate(-1.1deg);
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1);
  animation: guide-flow 14s linear infinite;
}
.plate-walk kbd {
  margin-left: 2px;
  padding: 2px 6px 1px;
  border-radius: 5px;
  font: 800 11px/1.2 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  color: #2a1a10;
  background: #f6ead8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.plate-walk:hover { transform: rotate(0.6deg) scale(1.02); }
.plate-walk:active { transform: translateY(2px) scale(0.98); }
.plate-walk[aria-expanded="true"] { filter: saturate(1.12) brightness(1.04); }
.guide-spark {
  width: 14px;
  height: 14px;
  background: #f3e6d0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
  animation: guide-spin 8s linear infinite;
}
@keyframes guide-flow { to { background-position: 300% 0; } }
@keyframes guide-spin { to { transform: rotate(360deg); } }
@keyframes tour-pop {
  from { opacity: 0; transform: rotate(-1.4deg) scale(0.92) translateY(14px); }
  to { opacity: 1; transform: rotate(-1.4deg); }
}

.guide.tour {
  --tour-paper: #e8e6df;
  --tour-paper2: #d4d0c6;
  --tour-blush: rgba(44, 64, 117, 0.18);
  --tour-ink: #232326;
  --tour-muted: #3a3d44;
  --tour-line: #c8352a;
  --tour-pop: #2c4075;
  --tour-pop-ink: #dfe7ff;
  --tour-glow: rgba(44, 64, 117, 0.4);
  --tour-dim: rgba(12, 12, 14, 0.55);
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.guide.tour[hidden] { display: none; }
body[data-house="beats"][data-machine="sp"] .guide.tour {
  --tour-paper: #2a2a28;
  --tour-paper2: #161614;
  --tour-blush: rgba(255, 179, 71, 0.18);
  --tour-ink: #f4ead8;
  --tour-muted: #d8c8a8;
  --tour-line: #111;
  --tour-pop: #ffb347;
  --tour-pop-ink: #1a1208;
  --tour-glow: rgba(255, 160, 40, 0.45);
  --tour-dim: rgba(6, 6, 5, 0.64);
}
body[data-house="room"] .guide.tour {
  --tour-paper: #f3e6d0;
  --tour-paper2: #dcc8a6;
  --tour-blush: rgba(255, 184, 74, 0.28);
  --tour-ink: #3a2b22;
  --tour-muted: #5c4636;
  --tour-line: #6b452c;
  --tour-pop: #ffb84a;
  --tour-pop-ink: #2a1a10;
  --tour-glow: rgba(255, 176, 74, 0.45);
  --tour-dim: rgba(18, 10, 6, 0.58);
}

.tour-spot {
  position: fixed;
  z-index: 91;
  left: 24px;
  top: 24px;
  width: 80px;
  height: 40px;
  pointer-events: none;
  border-radius: 14px;
  border: 3px solid var(--tour-pop);
  box-shadow:
    0 0 0 9999px var(--tour-dim),
    0 0 0 6px var(--tour-line),
    0 0 28px var(--tour-glow);
  transition: top 0.32s cubic-bezier(0.3, 1.35, 0.4, 1), left 0.32s cubic-bezier(0.3, 1.35, 0.4, 1), width 0.32s cubic-bezier(0.3, 1.35, 0.4, 1), height 0.32s cubic-bezier(0.3, 1.35, 0.4, 1);
}
.tour-card {
  position: fixed;
  z-index: 92;
  left: 24px;
  top: 28vh;
  width: min(340px, calc(100vw - 28px));
  padding: 16px 18px 14px;
  pointer-events: auto;
  color: var(--tour-ink);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 40% at 12% 0%, var(--tour-blush), transparent 70%),
    linear-gradient(165deg, var(--tour-paper), var(--tour-paper2));
  box-shadow:
    inset 0 0 0 2px var(--tour-line),
    inset 0 0 0 5px rgba(255, 255, 255, 0.16),
    6px 8px 0 var(--tour-pop),
    0 22px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.4deg);
}
.tour-card.is-step {
  animation: tour-pop 0.28s cubic-bezier(0.2, 1.35, 0.4, 1) both;
}
.guide-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tour-pop);
  color: var(--tour-pop-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--tour-line);
}
.guide.tour .tour-card h2 {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--tour-ink);
}
.tour-card #tour-copy {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tour-muted);
}
.tour-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.tour-keys:empty { display: none; }
.tour-keys kbd {
  display: inline-block;
  padding: 3px 7px 2px;
  border-radius: 5px;
  font: 800 11px/1 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tour-pop-ink);
  background: var(--tour-pop);
  box-shadow: 2px 2px 0 var(--tour-line);
}
.tour-nav {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 8px;
}
.tour-nav button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 10px 8px;
}
#tour-back {
  color: var(--tour-ink);
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
#tour-back:disabled { opacity: 0.35; cursor: default; }
.tour-skip {
  color: var(--tour-muted);
  background: transparent;
}
.tour-nav .guide-close {
  width: auto;
  margin: 0;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--tour-pop-ink);
  background: var(--tour-pop);
  box-shadow: 0 4px 0 var(--tour-line), 0 8px 16px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .plate-walk, .guide-spark, .tour-card, .tour-spot { animation: none; transition: none; }
}

/* Transport keys. The right side of a row had the room. */
.sleeve.is-shot,
body[data-house="beats"] .sleeve.is-shot,
body[data-house="room"] .sleeve.is-shot {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
}
.sleeve.is-shot .row-art {
  width: 112px;
  height: 112px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 3px 4px 0 rgba(20, 16, 12, 0.35);
}
.shot-still {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
}
.sleeve.is-row:not(.is-plate):not(.is-slap):not(.is-kit):not(.is-shot) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
}
.sleeve.is-row:not(.is-plate):not(.is-slap):not(.is-kit):not(.is-shot) footer {
  width: 100%;
  align-items: stretch;
}
.sleeve.is-row:not(.is-plate):not(.is-slap):not(.is-kit):not(.is-shot) .sleeve-acts {
  width: 100%;
  justify-content: flex-end;
}
.sleeve.is-row footer { gap: 8px; }
.sleeve.is-row .sleeve-acts { gap: 8px; }
.sleeve.is-plate footer,
.sleeve.is-slap footer,
.sleeve.is-kit footer { justify-content: center; align-self: center; }
.sleeve.is-row .sleeve-acts button:not(.pull) {
  flex: 1 1 128px;
  max-width: 220px;
  min-height: 48px;
  min-width: 128px;
  justify-content: center;
  padding: 0 16px 0 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  gap: 8px;
  color: #2a1c10;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 46%),
    linear-gradient(180deg, #f7f1e4, #dcc8a4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(90, 50, 24, 0.22),
    0 4px 0 #6b452c,
    0 8px 12px rgba(0, 0, 0, 0.16);
}
.sleeve.is-row .sleeve-acts button:not(.pull):first-child {
  color: #2a1200;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(180deg, #ffe7c2, #ffb03a 58%, #e09020);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px rgba(120, 60, 10, 0.28),
    0 4px 0 #8a4e10,
    0 0 14px rgba(255, 170, 50, 0.38);
}
.sleeve.is-row .sleeve-acts button:not(.pull):hover { transform: translateY(-1px); }
.sleeve.is-row .sleeve-acts button:not(.pull):active,
.sleeve.is-row .sleeve-acts button.on {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 5px rgba(60, 30, 0, 0.28),
    inset 0 0 0 1px rgba(120, 60, 10, 0.35),
    0 1px 0 #8a4e10,
    0 0 16px rgba(255, 176, 50, 0.5);
}
.sleeve.is-row .sleeve-acts .glyph,
.sleeve.is-row .sleeve-acts .glyph svg { width: 18px; height: 18px; }
body[data-house="beats"] .sleeve.is-row .sleeve-acts button:not(.pull) {
  color: #232326;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(180deg, #f6f5f0, #c9c7be);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 0 #8e1c16;
}
body[data-house="beats"] .sleeve.is-row .sleeve-acts button:not(.pull):first-child {
  color: #fff8f4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(180deg, #f07068, #c8352a 58%, #8e1c16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 0 #6a140e,
    0 0 14px rgba(200, 53, 42, 0.35);
}
body[data-house="beats"] .sleeve.is-row .sleeve-acts button.on {
  color: #fff8f4;
  box-shadow:
    inset 0 2px 5px rgba(60, 10, 8, 0.4),
    0 1px 0 #6a140e,
    0 0 16px rgba(200, 53, 42, 0.55);
}
body[data-house="beats"][data-machine="sp"] .sleeve.is-row .sleeve-acts button:not(.pull) {
  color: #ffb347;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #3a3c43, #1a1c20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 179, 71, 0.35),
    0 4px 0 #000;
}
body[data-house="beats"][data-machine="sp"] .sleeve.is-row .sleeve-acts button:not(.pull):first-child {
  color: #2a1200;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 40%),
    linear-gradient(180deg, #ffd39a, #ff7a1a 60%, #c45000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 0 #7a3000,
    0 0 16px rgba(255, 122, 26, 0.5);
}
body[data-house="beats"][data-machine="sp"] .sleeve.is-row .sleeve-acts button.on {
  color: #2a1200;
  box-shadow:
    inset 0 2px 5px rgba(80, 30, 0, 0.35),
    0 1px 0 #7a3000,
    0 0 18px rgba(255, 122, 26, 0.7);
}

/* The plate. A nameplate, not a menu. */
.profile-card {
  width: 340px;
  padding: 18px 16px 14px;
  background:
    radial-gradient(circle at 16px 16px, #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #2a160c 0 0.7px, #f0d97e 0.8px 1.7px, #6a5214 1.8px 4px, transparent 4.2px),
    radial-gradient(ellipse 80% 42% at 10% 0%, rgba(255, 184, 74, 0.34), transparent 70%),
    linear-gradient(165deg, #f7f1e4, #e4cfad);
}
.plate-id {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 12px;
}
.plate-id .plate-seal {
  width: 76px;
  height: 76px;
  margin: 0;
  flex: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 3px rgba(255, 244, 220, 0.35),
    0 4px 0 #5a3a12;
}
.plate-id .visitor-mark { width: 46px; height: 46px; }
.plate-id-copy { min-width: 0; }
.plate-id-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plate-id-copy .profile-tag { margin-top: 4px; }
.plate-id-copy .profile-key { margin-top: 3px; }
.stat-bank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 12px;
}
.stat-bank span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  padding: 7px 2px 6px;
  border-radius: 8px;
  color: #ffb03a;
  background:
    linear-gradient(180deg, rgba(255, 180, 60, 0.08), transparent 40%),
    #1a120c;
  box-shadow: inset 0 0 0 1px #3a2a1c, inset 0 3px 6px rgba(0, 0, 0, 0.45);
}
.stat-bank b {
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-bank small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a27a;
}
.profile-card .profile-go {
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf3, #e7d7bc);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #6b452c;
}
.profile-card .profile-go:not([hidden]) { display: inline-flex; }
.profile-card .profile-go:hover { color: #2a1c10; }
.profile-card .profile-go.out {
  color: #f6f4ec;
  background: linear-gradient(180deg, #a8483c, #6e221c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 0 #3a100c;
}
body[data-house="beats"] .profile-card {
  color: #232326;
  background:
    radial-gradient(circle at 16px 16px, #1a1a1c 0 0.7px, #f4f4ef 0.8px 1.7px, #8a8d92 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #1a1a1c 0 0.7px, #f4f4ef 0.8px 1.7px, #8a8d92 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #1a1a1c 0 0.7px, #f4f4ef 0.8px 1.7px, #8a8d92 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #1a1a1c 0 0.7px, #f4f4ef 0.8px 1.7px, #8a8d92 1.8px 4px, transparent 4.2px),
    radial-gradient(ellipse 70% 40% at 8% 0%, rgba(44, 64, 117, 0.16), transparent 70%),
    linear-gradient(165deg, #f4f2ea, #d8d4c8);
  box-shadow:
    inset 0 0 0 2px #2c4075,
    6px 8px 0 #c8352a,
    0 18px 32px rgba(0, 0, 0, 0.4);
}
body[data-house="beats"] .profile-card h2 { color: #232326; }
body[data-house="beats"] .profile-card .profile-go {
  background: linear-gradient(180deg, #f7f6f1, #d4d2ca);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #8e1c16;
}
body[data-house="beats"][data-machine="sp"] .profile-card {
  color: #f4ead8;
  background:
    radial-gradient(circle at 16px 16px, #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) 16px, #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at 16px calc(100% - 16px), #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #0a0a0c 0 0.7px, #e4e6ea 0.8px 1.7px, #5a5d64 1.8px 4px, transparent 4.2px),
    radial-gradient(ellipse 80% 42% at 12% 0%, rgba(255, 122, 26, 0.16), transparent 68%),
    linear-gradient(165deg, #2c2e33, #16181c);
  box-shadow:
    inset 0 0 0 2px #ffb347,
    6px 8px 0 #111,
    0 18px 32px rgba(0, 0, 0, 0.55);
}
body[data-house="beats"][data-machine="sp"] .profile-card h2 { color: #f4ead8; }
body[data-house="beats"][data-machine="sp"] .profile-tag,
body[data-house="beats"][data-machine="sp"] .profile-key { color: #d8c8a8; }
body[data-house="beats"][data-machine="sp"] .stat-bank span {
  color: #ffb347;
  background: #0c0d10;
  box-shadow: inset 0 0 0 1px #3a2c18, inset 0 3px 6px #000;
}
body[data-house="beats"][data-machine="sp"] .stat-bank small { color: #c9a27a; }
body[data-house="beats"][data-machine="sp"] .profile-card .profile-go {
  color: #ffb347;
  background: linear-gradient(180deg, #3a3c43, #1a1c20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 #000;
}
body[data-house="beats"][data-machine="sp"] .profile-card .profile-go.out { color: #ff8a7a; }
body[data-house="beats"][data-machine="sp"] .profile-card .kicker {
  background: #ffb347;
  color: #1a1208;
  box-shadow: 3px 3px 0 #111;
}

#kit-stage .foil { margin: 0 0 18px; }
.kit-stage {
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  background: #f3efe4;
  color: #1a120c;
  border-radius: 3px 12px 6px 4px;
  transform: rotate(-0.35deg);
  box-shadow: 7px 9px 0 rgba(20, 16, 12, 0.16);
}
.kit-stage .kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 7px;
  background: #c45a2a;
  color: #fff8ee;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #1a120c;
}
.kit-stage h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.kit-stage p { margin: 0 0 12px; }
.kit-pages {
  display: flex;
  gap: 8px;
  width: min(100%, 480px);
  margin: 0 auto 10px;
}
.kit-pages button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2418;
  background: linear-gradient(180deg, #f6f1e6, #d9d0c0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #8a8070;
}
.kit-pages button.on {
  color: #1a120c;
  background: linear-gradient(180deg, #f6e2b0, #c4923a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 #6a4a18;
}
.kit-bay, .kit-bed {
  --tx-pad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0 0 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tx-pad-lt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.65 0 0 0 -0.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.kit-bay, .kit-bed { margin-left: auto; margin-right: auto; }
.kit-bay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 14px;
  width: min(100%, 480px);
  padding: 16px 14px 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12px 12px, #d5d8de 0 1.2px, #6a7078 1.6px 2.8px, #1c2026 3px 4px, transparent 4.4px),
    radial-gradient(circle at calc(100% - 12px) 12px, #d5d8de 0 1.2px, #6a7078 1.6px 2.8px, #1c2026 3px 4px, transparent 4.4px),
    radial-gradient(circle at 12px calc(100% - 12px), #d5d8de 0 1.2px, #6a7078 1.6px 2.8px, #1c2026 3px 4px, transparent 4.4px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #d5d8de 0 1.2px, #6a7078 1.6px 2.8px, #1c2026 3px 4px, transparent 4.4px),
    linear-gradient(180deg, #3a3e46, #16181c);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.45);
}
.kit-pad, .kit-key {
  appearance: none;
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.kit-pad {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1.08;
  min-height: 72px;
  padding: 0 6px 10px;
  border-radius: 8px;
  color: #1c1c1e;
  background: linear-gradient(168deg, #c8c9c4 0%, #9ea09b 46%, #84867f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    inset -2px -6px 8px rgba(0, 0, 0, 0.28),
    0 0 0 3px #5c636c,
    0 0 0 4px rgba(255, 255, 255, 0.22),
    0 7px 0 3px #24282e,
    0 12px 12px 3px rgba(0, 0, 0, 0.42);
  transition: transform 70ms linear, box-shadow 70ms linear;
}
.kit-pad .pad-key {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 14px;
  top: 18%;
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: rgba(24, 24, 28, 0.78);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.kit-pad.on .pad-key,
.kit-pad:active .pad-key {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 4px rgba(90, 10, 0, 0.45);
}
.pad-map {
  width: min(100%, 480px);
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.pad-map b { letter-spacing: 0.08em; }
.kit-pad b {
  position: relative;
  z-index: 1;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}
.kit-pad::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7b8, #c47a18 58%, #6a3a08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 1px rgba(0, 0, 0, 0.45);
}
.kit-pad::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 28% at var(--ox, 44%) var(--oy, 46%), rgba(255, 255, 255, 0.42), transparent 100%),
    radial-gradient(ellipse 68% 52% at 34% 24%, rgba(255, 255, 255, 0.38), transparent 72%),
    radial-gradient(ellipse 120% 100% at 62% 82%, transparent 42%, rgba(0, 0, 0, 0.32) 100%),
    var(--tx-pad),
    var(--tx-pad-lt);
  background-size: auto, auto, auto, 70px 70px, 70px 70px;
  background-position:
    0 0,
    0 0,
    0 0,
    calc(var(--i) * 11px) calc(var(--i) * 7px),
    calc(var(--i) * 5px) calc(var(--i) * 13px);
}
.kit-pad:nth-child(3n) { --ox: 38%; --oy: 52%; }
.kit-pad:nth-child(4n) { --ox: 58%; --oy: 40%; }
.kit-pad:nth-child(5n) { --ox: 46%; --oy: 60%; }
.kit-pad:nth-child(7n) { --ox: 34%; --oy: 36%; }
.kit-pad:nth-child(4n + 2) {
  background: linear-gradient(164deg, #d0d1cb 0%, #a8aaa4 48%, #8c8e88 100%);
}
.kit-pad:nth-child(5n + 3) {
  background: linear-gradient(172deg, #b7b8b3 0%, #92948e 50%, #767872 100%);
}
.kit-pad:active,
.kit-pad.on {
  transform: translateY(6px);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.34),
    0 0 0 3px #5c636c,
    0 0 0 4px rgba(255, 255, 255, 0.16),
    0 1px 0 3px #2c3138,
    0 2px 4px 3px rgba(0, 0, 0, 0.3);
}
.kit-pad.on {
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(0, 0, 0, 0.34),
    0 0 0 3px #5c636c,
    0 0 0 4px rgba(255, 176, 58, 0.55),
    0 1px 0 3px #2c3138,
    0 0 14px 2px rgba(255, 160, 40, 0.4);
}
.kit-pad.on::before {
  background: radial-gradient(circle at 35% 30%, #fff6dc, #ffb03a 46%, #e07a18);
  box-shadow: 0 0 8px #ffb03a, inset 0 1px 0 #fff;
}
.kit-pad:active::after,
.kit-pad.on::after { opacity: 0.72; }
.kit-bed {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 92px;
  gap: 4px 3px;
  align-items: end;
  width: min(100%, 640px);
  padding: 12px 10px 14px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10px 10px, #e8d7bc 0 1px, #6b5340 1.4px 2.4px, #1a120c 2.6px 3.4px, transparent 3.8px),
    radial-gradient(circle at calc(100% - 10px) 10px, #e8d7bc 0 1px, #6b5340 1.4px 2.4px, #1a120c 2.6px 3.4px, transparent 3.8px),
    linear-gradient(180deg, #3a3026, #16120e);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.kit-key {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0 2px 8px;
  border-radius: 0 0 5px 5px;
  color: #1a120c;
  background: linear-gradient(180deg, #fffaf2 0%, #f3e6d0 42%, #d9c4a4 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    inset -1px 0 0 rgba(0, 0, 0, 0.08),
    inset 0 -10px 12px rgba(90, 60, 30, 0.16),
    0 4px 0 #8a7358,
    0 6px 6px rgba(0, 0, 0, 0.28);
  transition: transform 70ms linear, box-shadow 70ms linear;
}
.kit-key b {
  position: relative;
  z-index: 1;
  font-size: 9px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.kit-key::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c4b49a 60%, #8a7358);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.kit-key::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(0, 0, 0, 0.12), transparent 70%),
    var(--tx-pad-lt);
  background-size: auto, auto, 48px 48px;
  background-position: 0 0, 0 0, calc(var(--i) * 3px) 0;
}
.kit-key.sharp {
  height: 58%;
  align-self: start;
  color: #f6f1e6;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #3a3c42 0%, #1a1c20 55%, #0c0d10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 10px rgba(0, 0, 0, 0.55),
    0 4px 0 #000,
    0 6px 6px rgba(0, 0, 0, 0.4);
}
.kit-key.sharp b { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.65); }
.kit-key.sharp::before {
  background: radial-gradient(circle at 35% 30%, #6a6c72, #1a1c20 60%, #000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kit-key.sharp::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%),
    radial-gradient(ellipse 70% 40% at 40% 18%, rgba(255, 255, 255, 0.14), transparent 70%),
    var(--tx-pad);
  background-size: auto, auto, 48px 48px;
}
.kit-key:active,
.kit-key.on {
  transform: translateY(3px);
  box-shadow:
    inset 0 3px 5px rgba(0, 0, 0, 0.22),
    0 1px 0 #8a7358;
}
.kit-key.sharp:active,
.kit-key.sharp.on {
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.65),
    0 1px 0 #000;
}
.kit-key.on::before,
.kit-key.sharp.on::before {
  background: radial-gradient(circle at 35% 30%, #fff6dc, #ffb03a 50%, #c47a18);
  box-shadow: 0 0 7px #ffb03a;
}
@media (prefers-reduced-motion: reduce) {
  .kit-pad, .kit-key { transition: none; }
}
.kit-stage .row-btns { margin-top: 12px; }
.kit-stage .btn[disabled] { opacity: 0.45; cursor: default; }

.cart-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px;
  height: 44px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  transform: rotate(-2.5deg);
  cursor: pointer;
  color: #2a1c10;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(165deg, #f6ecd4, #e4c98a);
  box-shadow:
    inset 0 0 0 1.5px #6b452c,
    3px 3px 0 #8a5a32;
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-cap b {
  font-size: 15px;
  line-height: 1;
}
.cart-cap span {
  font-size: 8px;
  font-weight: 800;
}
.cart-cap.on {
  transform: rotate(-2.5deg) translateY(1px);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18), inset 0 0 0 1.5px #6b452c;
}
.cart-card {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 12;
  width: min(420px, calc(100vw - 28px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 28px 16px 14px;
  transform: rotate(1.4deg);
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: #2a1c10;
  background:
    radial-gradient(ellipse 70% 36% at 0% 0%, rgba(255, 184, 74, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(107, 69, 44, 0.05) 28px),
    linear-gradient(165deg, #f7f1e4, #e7d3b4);
  border-radius: 3px 14px 12px 14px;
  box-shadow:
    inset 0 0 0 2px #6b452c,
    7px 9px 0 #c9a23a,
    0 18px 32px rgba(0, 0, 0, 0.38);
}
.cart-card[hidden] { display: none; }
.cart-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #1a120c;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.65), 0 0 0 3px #f7f1e4, 0 0 0 4px #6b452c;
}
.cart-card .kicker {
  background: #c45a48;
  color: #f7f1e4;
  box-shadow: 3px 3px 0 #6b452c;
}
.cart-lead {
  margin: 8px 0 0;
  color: #4a3424;
  font-size: 13px;
  line-height: 1.35;
}
.cart-meter {
  position: relative;
  height: 22px;
  margin: 12px 0;
  border-radius: 11px;
  overflow: hidden;
  background: #2a1c10;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 0 0 1px #6b452c;
}
.cart-meter i {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: linear-gradient(90deg, #3f6e62, #e0b44a 72%, #c45a48);
}
.cart-meter span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f1e4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cart-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-empty {
  margin: 0;
  padding: 8px 2px 4px;
  color: #4a3424;
  font-size: 13px;
  line-height: 1.35;
}
.cart-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 8px 8px 10px;
  background: #fff8ec;
  box-shadow: 2px 3px 0 rgba(90, 58, 28, 0.28);
}
.cart-tag:nth-child(even) {
  transform: rotate(0.5deg);
  background: #f3e2c4;
}
.cart-tag:nth-child(odd) { transform: rotate(-0.4deg); }
.cart-tag i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f6e62;
  box-shadow: inset 0 0 0 2px #2a1c10;
}
.cart-tag[data-kind="plate"] i { background: #e0b44a; }
.cart-tag[data-kind="preset"] i { background: #c45a48; }
.cart-tag span { flex: 1; min-width: 0; }
.cart-tag b {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-tag em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b452c;
}
.cart-tag button {
  flex: 0 0 auto;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  color: #2a1c10;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cart-acts {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cart-acts .btn { flex: 1; margin-top: 8px; }
.cart-acts .btn.ghost {
  color: #2a1c10;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #6b452c;
}

.foil {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.08), transparent 40%),
    #24180f;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
}
.foil-copy h2 {
  margin: 4px 0 8px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f6f1e6;
}
.foil-copy p { margin: 0; max-width: 38ch; color: #e7d3b4; line-height: 1.4; }
.foil-copy .kicker { color: var(--amber); }
.foil-sleeve {
  position: relative;
  display: flex;
  container-type: inline-size;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #f6f1e6;
  background: #120c09;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.5);
  font: inherit;
}
.foil.is-open .foil-sleeve { cursor: default; }
.drop-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drop-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(8, 5, 3, 0.88) 0%, rgba(8, 5, 3, 0.42) 48%, transparent 100%);
  pointer-events: none;
}
.drop-type {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 0 16px 16px;
}
.drop-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.78);
}
.drop-type b {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 16cqi;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #f6f1e6;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.drop-theme {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb84a;
}
.foil-sleeve em {
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6f1e6;
}
.foil-open { display: none; }
.foil.is-open .foil-open {
  display: block;
  grid-column: 1 / -1;
}
.drop-kit { margin: 4px 0 8px; }
.drop-kit h3 {
  margin: 4px 0 6px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f6f1e6;
}
.drop-kit p { margin: 0 0 12px; max-width: 46ch; color: #e7d3b4; }
.drop-kit .kicker { color: var(--amber); }
.foil-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 200px);
  gap: 14px 18px;
  align-items: start;
}
.foil-main { min-width: 0; }
.foil-cart-rail {
  position: sticky;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px 14px;
  background:
    linear-gradient(165deg, rgba(255, 248, 230, 0.08), transparent 55%),
    #24180f;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(226, 179, 64, 0.22);
  transform: rotate(1.2deg);
}
.drop-cart-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #1a120c;
  background:
    linear-gradient(145deg, #f0d878 0%, #e2b340 42%, #c8942a 100%);
  box-shadow: 0 5px 0 #5a3a14, 0 0 0 2px #f6e7c8, 4px 6px 0 rgba(0, 0, 0, 0.35);
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.drop-cart-cta:hover {
  transform: translateY(-1px) rotate(-0.5deg);
  box-shadow: 0 6px 0 #5a3a14, 0 0 0 2px #fff8e8, 5px 8px 0 rgba(0, 0, 0, 0.38);
}
.drop-cart-cta.is-in {
  color: #f6f1e6;
  background: linear-gradient(145deg, #6b4a28, #3a2618);
  box-shadow: 0 4px 0 #1a100a, inset 0 0 0 1px rgba(226, 179, 64, 0.45);
}
.drop-cart-glyph {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.drop-cart-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drop-cart-text b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.drop-cart-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}
.foil-cart-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9b896;
}
.foil-cart-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foil-cart-chip {
  width: 100%;
  border: 0;
  padding: 8px 8px;
  cursor: pointer;
  color: #f6f1e6;
  background: #3a2a1c;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  box-shadow: inset 2px 0 0 #6b5344;
}
.foil-cart-chip.on {
  background: #8d6230;
  box-shadow: inset 2px 0 0 #e2b340;
}
.foil-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.foil-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  color: #f4efe4;
  background: #1c140e;
  box-shadow: inset 3px 0 0 #6b5344;
}
.drop-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.foil-body { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.foil-card h3 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #f6f1e6;
}
.foil-card p { margin: 0; color: #cbb89a; font-size: 14px; line-height: 1.35; }
.foil-rarity {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a89880;
}
.foil-rare { box-shadow: inset 3px 0 0 #c47a3a; }
.foil-foil { box-shadow: inset 3px 0 0 #e7c56a; }
.foil-acts { display: flex; gap: 6px; }
.foil-acts button {
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  color: #f6f1e6;
  background: #3a2a1c;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foil-acts button.on { background: #8d6230; }
@media (max-width: 720px) {
  .foil { grid-template-columns: 1fr; }
  .foil-sleeve { max-width: none; }
  .foil-split { grid-template-columns: 1fr; }
  .foil-cart-rail {
    position: static;
    transform: none;
    order: -1;
  }
  .foil-card { grid-template-columns: 56px minmax(0, 1fr); }
  .foil-acts { grid-column: 1 / -1; }
}

.market {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
  margin: 0 0 8px;
}
.market-nav {
  border: 0;
  color: #f6f1e6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    #3a2618;
  box-shadow: 0 6px 0 #1a100a;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.market-nav:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #1a100a;
}
.market-rail {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
}
.market-card {
  position: relative;
  flex: 0 0 148px;
  scroll-snap-align: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #f6f1e6;
  background: #120c09;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.market-card.on { flex-basis: 200px; box-shadow: 8px 10px 0 #c45a2a; }
.market-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.market-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(8, 5, 3, 0.78), transparent);
  pointer-events: none;
}
.market-card span,
.market-card em { position: absolute; z-index: 1; }
.market-card span {
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.market-card em {
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a120c;
  background: #e7a23a;
}

@media (max-width: 720px) {
  .market { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .market-card { flex-basis: 120px; }
  .market-card.on { flex-basis: 156px; }
  body[data-house="beats"] .sleeve.is-shot,
  body[data-house="room"] .sleeve.is-shot { grid-template-columns: 96px minmax(0, 1fr); }
  body[data-house="beats"] .sleeve.is-shot footer,
  body[data-house="room"] .sleeve.is-shot footer { grid-column: 1 / -1; }
}

/* The row grid comes later and would paint over [hidden]. The attribute has to win. */
[data-q][hidden] { display: none !important; }

#perform {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(18, 12, 8, 0.42);
}
#perform[hidden] { display: none; }
.perf-card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 22px 18px 16px;
  transform: rotate(-1.1deg);
  color: #2a1c10;
  background:
    radial-gradient(ellipse 70% 36% at 0% 0%, rgba(255, 184, 74, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(107, 69, 44, 0.05) 28px),
    linear-gradient(165deg, #f7f1e4, #e7d3b4);
  border-radius: 3px 16px 12px 14px;
  box-shadow:
    inset 0 0 0 2px #6b452c,
    8px 10px 0 #c9a23a,
    0 18px 32px rgba(0, 0, 0, 0.38);
}
.perf-card .kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 7px;
  background: #c45a2a;
  color: #fff8ee;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #1a120c;
}
.perf-card h2 {
  margin: 0 36px 6px 0;
  font-size: 26px;
  letter-spacing: 0.01em;
}
.perf-x {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: #2a1c10;
  background: #f6ecd4;
  box-shadow: inset 0 0 0 1.5px #6b452c, 2px 2px 0 #6b452c;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.perf-lead, .perf-note, .perf-status {
  margin: 0 0 12px;
  color: #4a3424;
  font-size: 13px;
  line-height: 1.35;
}
.perf-label {
  margin: 12px 0 6px;
  color: #6b452c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.perf-rate {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 14px;
}
.perf-dial {
  position: relative;
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 225deg, #c45a2a 0 270deg, rgba(0, 0, 0, 0.16) 270deg);
  box-shadow: inset 0 0 0 8px #2a1c10, 0 8px 0 #1a120c;
}
.perf-knob {
  position: absolute;
  inset: 14px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.38) 0 1.4deg, rgba(0, 0, 0, 0.22) 1.4deg 3deg),
    radial-gradient(circle at 38% 28%, #f4f4ee, #9a9b9f 48%, #3a3b3f 80%);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -4px 6px rgba(0, 0, 0, 0.4);
}
.perf-knob i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  border-radius: 2px;
  background: #1a120c;
  transform: rotate(var(--rot, -135deg));
  transform-origin: 50% 24px;
}
.perf-readout {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  align-items: baseline;
}
.perf-readout b, .perf-readout button {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.perf-readout button {
  border: 0;
  padding: 0;
  cursor: ns-resize;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
}
.perf-readout span {
  color: #6b452c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.perf-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.perf-key { position: relative; }
.perf-key > button, .perf-hold > button, .perf-scale > .perf-key > button {
  width: 100%;
  min-height: 34px;
  padding: 6px 16px 6px 8px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  color: #2a1c10;
  background: linear-gradient(180deg, #f6f1e6, #d9d0c0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #8a8070;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.perf-key > button.on {
  color: #1a120c;
  background: linear-gradient(180deg, #f6e2b0, #c4923a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 #6a4a18;
}
.perf-pip {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff, #8a7358 60%, #3a3026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.perf-pip.lit { background: radial-gradient(circle at 35% 30%, #fff6dc, #ffb03a 50%, #c47a18); }
.perf-pip.arm { box-shadow: 0 0 0 2px #c45a2a, 0 0 8px #ffb03a; }
.perf-dial .perf-pip { top: 4px; right: 4px; }
.perf-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}
.perf-oct { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perf-hold { flex: 0.8; }
.perf-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}
.perf-scale label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6b452c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.perf-scale select {
  height: 32px;
  min-width: 88px;
  border: 0;
  border-radius: 5px;
  color: #1a120c;
  background: #f6f1e6;
  box-shadow: inset 0 0 0 1.5px #6b452c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.kit-pad.scaled b { color: #6a3a12; }
[data-perform].on {
  color: #1a120c;
  background: linear-gradient(180deg, #f6e2b0, #c4923a);
}

.press-lead { max-width: 42rem; }
.press-row, .badge-row, .plate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}
.press-row > div { width: min(100%, 18rem); }
.press-row > div > .press-card { width: 100%; }
.badge-plate {
  width: 7.2rem;
  min-height: 6.4rem;
  margin: 0;
  padding: 0.45rem 0.4rem 0.5rem;
  border: 1px solid rgba(198, 165, 122, 0.35);
  background: #1a120c;
  color: rgba(243, 230, 208, 0.35);
  text-align: center;
  transform: rotate(-0.6deg);
}
.badge-plate.on {
  color: #f3e6d0;
  border-color: #e2b340;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%),
    #24180f;
  box-shadow: 3px 3px 0 rgba(226, 179, 64, 0.35);
}
.badge-plate strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.badge-plate small { display: block; margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.25; }
.press-card, .vault-card {
  position: relative;
  width: min(100%, 18rem);
  min-height: 13rem;
  margin: 0;
  padding: 0.7rem 0.7rem 0.8rem;
  border: 1px solid var(--hot, #e2b340);
  background: #140e0c;
  color: #f3e6d0;
  overflow: hidden;
  transform: rotate(-0.4deg);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--hot, #e2b340) 62%, transparent),
    8px 10px 0 rgba(0, 0, 0, 0.5);
}
.press-sleeve {
  position: relative;
  margin: 0 0 0.7rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: #120c09;
  box-shadow:
    inset 0 0 0 3px var(--paper, #f6e7c8),
    inset 0 0 0 6px color-mix(in srgb, var(--hot, #e2b340) 85%, white),
    0 0 22px color-mix(in srgb, var(--hot, #e2b340) 70%, transparent);
}
.press-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.press-foil {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.72) 47%,
    color-mix(in srgb, var(--hot, #e2b340) 75%, white) 53%,
    transparent 64%
  );
  mix-blend-mode: screen;
  animation: press-foil 5.6s ease-in-out infinite;
}
.press-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 46% at 18% 0%, color-mix(in srgb, var(--hot, #e2b340) 55%, transparent), transparent 72%);
  mix-blend-mode: screen;
}
@keyframes press-foil {
  0%, 100% { transform: translateX(-16%); }
  50% { transform: translateX(16%); }
}
@media (prefers-reduced-motion: reduce) {
  .press-foil { animation: none; transform: none; }
}
.press-card h3, .vault-card h3 {
  margin: 0.35rem 0 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
}
.press-card p, .vault-card p { margin: 0; font-size: 0.92rem; line-height: 1.35; }
.press-art { width: 100%; height: auto; display: block; }
.press-acts, .press-pads { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; position: relative; z-index: 1; }
.press-acts button, .press-pads button, .plate-row button, .season-buy {
  border: 1px solid rgba(226, 179, 64, 0.7);
  background: transparent;
  color: #f3e6d0;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}
.season-buy {
  background: #e2b340;
  color: #1a120c;
  font-weight: 700;
}
.press-meta { margin-top: 0.35rem; color: #e2b340; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.press-soon {
  margin: 0.55rem 0 0;
  color: #c9b896;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.press-soon-hero {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.82rem;
  color: #e2b340;
}
button.who {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
.shelf-note {
  margin: 0 0 0.85rem;
  color: #e2b340;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
}
.used-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.used-picks:empty { display: none; }
.used-chip, .used-menu button {
  border: 1px solid #c6a57a;
  border-radius: 2px;
  background: #fffaf2;
  color: #3a2b22;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.used-chip {
  padding: 4px 8px;
  font-size: 13px;
}
.used-chip small, .used-menu small {
  margin-left: 6px;
  color: #8a5a28;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.used-menu { display: flex; flex-direction: column; gap: 4px; }
.used-menu button { padding: 6px 8px; }
.used-menu b { font-weight: 750; }

/* ---------- Four doors, the weekly flip, made-with links, empty shelves that invite ---------- */
.door-switch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.door-switch button,
:is(.house-switch, .machine-switch).door-switch button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: auto;
  min-height: 44px;
  padding: 5px 8px;
  line-height: 1.1;
}
.door-switch button b { font-size: 12px; letter-spacing: 0.12em; }
.door-switch button small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 720px) {
  .mode-row { grid-template-columns: 1fr; }
  .mode-row .machine-switch { justify-self: end; }
  .door-switch { gap: 6px; }
  .door-switch button small { display: none; }
  .door-switch button b { font-size: 11px; letter-spacing: 0.08em; }
}

/* Phone rows: the buttons go under the words, not on top of them. */
@media (max-width: 720px) {
  .sleeve.is-row:not(.is-plate):not(.is-slap):not(.is-kit):not(.is-shot),
  body[data-house] .sleeve.is-row:not(.is-plate):not(.is-slap):not(.is-kit):not(.is-shot) {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-house] .sleeve.is-shot {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  body[data-house] .sleeve.is-shot .row-art,
  body[data-house] .sleeve.is-shot .shot-still { width: 84px; height: 84px; }
  body[data-house] .sleeve.is-shot footer { grid-column: 1 / -1; }
  .sleeve.is-row footer { width: 100%; align-items: stretch; }
  .sleeve.is-row .sleeve-acts { width: 100%; justify-content: stretch; }
  .sleeve.is-row .sleeve-acts button:not(.pull) { min-width: 0; max-width: none; flex: 1 1 0; padding: 0 10px; letter-spacing: 0.1em; }
  .sleeve.is-row .row-top { flex-wrap: wrap; row-gap: 2px; }
  .sleeve.is-row h3 { white-space: normal; }
  .sleeve.is-row p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* A card lifts a little under the hand, and sits down when pressed. */
.sleeve.is-row,
.board-card,
.vault-card.is-link,
.market-card {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
@media (hover: hover) {
  .sleeve.is-row:hover { transform: translateY(-2px) rotate(0deg); filter: brightness(1.02); }
  .board-card:hover { transform: translateY(-3px) rotate(0deg); }
  .vault-card.is-link:hover { transform: translateY(-3px); }
}
.board-card:active,
.vault-card.is-link:active { transform: translateY(1px) scale(0.99); }
.sleeve.is-row.is-live { transform: rotate(0deg); }

/* Made with: each tag goes somewhere. */
.made-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 6px 0 0;
  font-size: 11px;
}
.sleeve.is-row p.made-with { white-space: normal; overflow: visible; display: flex; }
.made-with > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.used-go,
body[data-house] .sleeve .made-with .used-go {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
  background: rgba(255, 184, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(107, 69, 44, 0.35);
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
}
body[data-house="beats"] .sleeve .made-with .used-go { background: rgba(200, 53, 42, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 53, 42, 0.35); color: #3a1a14; }
.used-go small { font-size: 9px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
body[data-house] .sleeve .made-with button.used-go:hover { background: rgba(255, 184, 74, 0.5); text-decoration: underline; text-underline-offset: 2px; }
button.used-go:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.used-go.is-flat { cursor: default; background: rgba(0, 0, 0, 0.06); }
.sleeve .who { cursor: pointer; }
.sleeve .who:hover span { text-decoration: underline; text-underline-offset: 2px; }

/* An empty shelf hands over the next move. */
.empty-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 16px;
  border-radius: 12px;
  border: 2px dashed rgba(107, 69, 44, 0.35);
  background: rgba(255, 255, 255, 0.18);
}
.empty-cta p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.4; color: var(--ink); }
.empty-cta .row-btns { justify-content: center; }
.finder-none[hidden] { display: none; }
.boards-kicker {
  grid-column: 1 / -1;
  margin: 10px 0 -4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The share folds read as an invitation. */
.fold summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-right: -4px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  background: var(--pop-strong, #d8432f);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
body[data-house="room"] .fold summary::before { background: #c27a12; }
.fold details[open] summary::before { content: "–"; }
.fold summary { justify-content: flex-start; }
.fold summary::after { margin-left: auto; }
.well.is-called { animation: called 900ms ease-out 1; }
@keyframes called {
  0% { box-shadow: inset 0 0 0 2px var(--line), 0 0 0 0 rgba(255, 184, 74, 0.9); }
  100% { box-shadow: inset 0 0 0 2px var(--line), 0 0 0 18px rgba(255, 184, 74, 0); }
}

/* Found it: the row a tag or a plate card led to. */
.is-found { animation: found 1.6s ease-out 1; }
@keyframes found {
  0%, 30% { outline: 3px solid var(--amber); outline-offset: 3px; }
  100% { outline: 3px solid transparent; outline-offset: 8px; }
}

/* The weekly flip. */
.flip-hero {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 14px;
  color: #f6ead6;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(255, 140, 40, 0.22), transparent 70%),
    linear-gradient(160deg, #2b1d14, #160f0a);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 140, 0.15), 4px 6px 0 var(--pop), 0 14px 28px rgba(0, 0, 0, 0.3);
}
.flip-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.45);
}
.flip-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flip-cover figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.flip-cover figcaption b { font-size: 26px; line-height: 1; letter-spacing: 0.02em; color: #fff; }
.flip-cover figcaption span { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.flip-clock {
  position: absolute;
  top: 10px;
  right: -6px;
  padding: 4px 12px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a1200;
  background: var(--amber);
  transform: rotate(4deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
}
.flip-copy .kicker { color: var(--amber); }
.flip-copy h2 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1; color: #fff; }
.flip-copy > p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #e8d6bc; }
.flip-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: flip; display: grid; gap: 8px; }
.flip-steps li {
  counter-increment: flip;
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  line-height: 1.4;
  color: #e8d6bc;
}
.flip-steps li::before {
  content: counter(flip);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
  color: #2a1200;
  background: var(--amber);
}
.flip-steps b { color: #fff; }
.flip-acts { flex-wrap: wrap; gap: 10px; }
.flip-acts .btn,
.foil-hear .btn { display: inline-flex; align-items: center; gap: 8px; }
.flip-acts .glyph svg,
.foil-hear .glyph svg { width: 16px; height: 16px; display: block; }
body[data-house] .flip-acts .btn.ghost { color: #f6ead6; box-shadow: inset 0 0 0 2px rgba(255, 220, 180, 0.4); background: transparent; }
.flip-go { animation: nudge 2.8s ease-in-out 1.2s 2; }
@keyframes nudge {
  0%, 100% { transform: none; }
  8% { transform: translateY(-3px) rotate(-1deg); }
  16% { transform: translateY(0) rotate(1deg); }
  24% { transform: none; }
}
.flip-wall-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.flip-wall-title b {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: var(--line);
}
.foil-hear { margin-top: 12px; }
@media (max-width: 720px) {
  .flip-hero { grid-template-columns: 1fr; padding: 14px; }
  .flip-cover { max-width: 240px; justify-self: center; }
  .flip-acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* A plate card is a door to that shelf. */
.vault-card.is-link {
  appearance: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.vault-go { display: block; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--line); }

/* You: the file pickers stay behind their labels, and the mail slot is a real field. */
.door .nameplate .shot-btn input,
.door .plate-shot input { display: none; }
.door .mail-slot input {
  min-height: 40px;
  margin: 2px 0 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .sleeve.is-row,
  .board-card,
  .vault-card.is-link,
  .market-card { transition: none; }
  .sleeve.is-row:hover,
  .board-card:hover,
  .vault-card.is-link:hover { transform: none; }
  .flip-go,
  .well.is-called,
  .is-found { animation: none; }
  .is-found { outline: 3px solid var(--amber); outline-offset: 3px; }
}

/* Phone deck: reel and knob side by side, the glass under them. Half the height, same deck. */
@media (max-width: 720px) {
  .deck-player,
  body[data-house] .deck-player {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "side level" "meter meter";
    justify-items: stretch;
    gap: 10px 12px;
  }
  .deck-player .deck-side { grid-area: side; }
  .deck-player .deck-level { grid-area: level; padding-right: 6px; }
  .deck-player .deck-meter { grid-area: meter; }
  .deck-player .deck-glass { height: 72px; padding-top: 10px; }
}

/* The one move each door wants: red on the crate, amber in the walnut room. */
body[data-house="beats"] .flip-go,
body[data-house="beats"] .empty-cta .btn:not(.ghost) {
  color: #fff4ee;
  background: linear-gradient(180deg, #ef6a55, #c8352a 60%, #a52a21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #7a1d16, 0 8px 16px rgba(0, 0, 0, 0.22);
}
body[data-house="room"] .empty-cta .btn:not(.ghost) {
  background: linear-gradient(180deg, #ffe7c2, #ffb03a 58%, #e09020);
  box-shadow: 0 4px 0 #8a4e10, 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Vault and plates sit on the light panel. Keep the dark cards readable, and the name chips solid. */
body[data-house] .vault-card h3,
body[data-house] .press-card h3 { color: #fbf1df; }
body[data-house] .vault-card p:not(.press-meta),
body[data-house] .press-card p:not(.press-meta):not(.press-soon) { color: #e6d6bd; }
body[data-house] .vault-card.is-link { min-height: 0; width: min(100%, 15rem); }
body[data-house] .vault-go { color: #e2b340; }
body[data-house] .plate-row button {
  border-color: #3a2a1e;
  background: #241912;
  color: #f3e6d0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
body[data-house] .plate-row button:hover { background: #3a2a1e; }
.badge-plate { color: rgba(243, 230, 208, 0.6); }

/* Phone: an open kit or drop fits the glass. Pads shrink before the page scrolls sideways. */
@media (max-width: 720px) {
  .foil { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .foil > *, .foil-split > *, .foil-main { min-width: 0; }
  .foil-split { grid-template-columns: minmax(0, 1fr); }
  .foil-copy h2 { font-size: 38px; }
  .kit-bay { gap: 10px 8px; padding: 12px 10px 16px; }
  .kit-pad { min-height: 0; padding: 0 3px 6px; }
  .kit-pad b { font-size: 9px; letter-spacing: 0.04em; }
}
.drop-kit .row-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
.drop-kit .row-btns .btn .glyph svg { width: 15px; height: 15px; }
body[data-machine="sp"] .empty-cta .btn.ghost { color: #f3e6d0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
body[data-machine="sp"] .empty-cta { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); }
body[data-house="beats"][data-machine="sp"] .sleeve .made-with .used-go { color: #fbe9d6; background: rgba(255, 140, 40, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 160, 70, 0.45); }
body[data-machine="sp"] .made-with > span { color: #c9b7a4; }
.press-row > .empty-cta { flex: 1 1 100%; }

/* ---------- Stamps: rubber ink, crate labels, wax, J-cards, masking tape. Earned from other people. ---------- */
.stamp { display: block; width: 92px; height: 92px; transform: rotate(var(--tilt, 0deg)); overflow: visible; }
.stamp.is-small { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.stamp.is-off { opacity: 0.32; filter: grayscale(1); }
.who-stamps { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; }
.who-stamps .stamp.is-small { width: 19px; height: 19px; }
.who-mini { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.note-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-who .who { margin: 0; }
.note-who > span { font-size: 12px; color: var(--muted); }

.plate-head {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px 24px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 6px;
  color: #2b211b;
  background:
    repeating-linear-gradient(0deg, rgba(60, 40, 20, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, #f3e9d2, #e4d4b1);
  box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.25), 3px 4px 0 rgba(0, 0, 0, 0.18);
}
.plate-name h2 { margin: 2px 0 6px; font-size: 30px; line-height: 1; letter-spacing: 0.01em; color: #1f1813; }
.plate-name .kicker { margin: 0; }
.credit {
  margin: 0;
  font-family: "SF Mono", "Courier New", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #4a3a2e;
}
.stamp-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-start; }
.stamp-card { display: grid; justify-items: center; gap: 4px; width: 104px; margin: 0; text-align: center; }
.stamp-card figcaption b { display: block; font-size: 10px; letter-spacing: 0.14em; color: #2b211b; }
.stamp-card figcaption small { display: block; font-size: 10.5px; line-height: 1.25; color: #5c4a3c; }
.stamp-card.is-next .stamp { opacity: 0.22; }
.stamp-card.is-next { border: 1px dashed rgba(60, 40, 20, 0.3); border-radius: 6px; padding: 6px 2px 8px; }
.stamp-none { margin: 0; font-size: 13px; color: #5c4a3c; }
.vault-sub { margin: 18px 0 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.old-book { margin: 0 0 6px; font-family: "SF Mono", "Courier New", monospace; font-size: 11px; color: var(--muted); }
.plate-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 10.5px;
  line-height: 1.35;
}
body[data-machine="sp"] .plate-head .credit,
body[data-machine="sp"] .stamp-card figcaption small { color: #4a3a2e; }

/* The quiet moment: one thunk on the window, a sticker on the plate. */
.vfd.is-thunk { animation: thunk 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 1; }
@keyframes thunk {
  0% { transform: translateY(0); }
  35% { transform: translateY(2px) scale(0.995); filter: brightness(1.25); }
  100% { transform: none; filter: none; }
}
.stamp-card.is-fresh .stamp { animation: land 520ms cubic-bezier(0.2, 0.8, 0.3, 1) 1 both; }
@keyframes land {
  0% { transform: translateY(-10px) rotate(calc(var(--tilt, 0deg) - 8deg)) scale(1.12); opacity: 0; }
  70% { transform: translateY(1px) rotate(var(--tilt, 0deg)) scale(0.98); opacity: 1; }
  100% { transform: rotate(var(--tilt, 0deg)); }
}
.profile-cap { position: relative; }
.cap-stamp {
  position: absolute;
  right: -6px;
  bottom: -6px;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.cap-stamp .stamp.is-small { width: 26px; height: 26px; animation: land 520ms cubic-bezier(0.2, 0.8, 0.3, 1) 1 both; }
.cap-stamp.is-gone { opacity: 0; }

@media (max-width: 720px) {
  .plate-head { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .stamp-card { width: calc(33% - 10px); min-width: 92px; }
  .stamp { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .vfd.is-thunk,
  .stamp-card.is-fresh .stamp,
  .cap-stamp .stamp.is-small { animation: none; }
  .cap-stamp { transition: none; }
}
.plate-credit em { font-style: normal; }
.plate-credit-stamps { display: inline-flex; flex: none; gap: 2px; }
.plate-credit-stamps .stamp.is-small { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .profile-card { width: min(340px, calc(100vw - 64px)); }
}

/* ---------- License, credit, and the quiet report flag ---------- */
.license-link,
body[data-house] .license-link {
  appearance: none;
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rail .license-link { color: #b39a84; }
.own-line { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.care-line { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.care-line a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.credit-check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13px; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.credit-check input { margin-top: 2px; }
.chip-credit { background: rgba(45, 74, 134, 0.14); box-shadow: inset 0 0 0 1px rgba(45, 74, 134, 0.45); color: #2d4a86; }
.sleeve.is-row p.credit-line { margin: 4px 0 0; font-size: 11px; font-style: italic; white-space: normal; color: #2d4a86; }

.sleeve .flag,
body[data-house] .sleeve .flag {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border-radius: 50%;
  vertical-align: middle;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  opacity: 0.38;
  transition: opacity 140ms ease, background 140ms ease;
}
.sleeve .flag svg { width: 13px; height: 13px; display: block; }
.sleeve .flag:hover,
.sleeve .flag:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.08); }
.sleeve .flag:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
@media (hover: none) { .sleeve .flag { opacity: 0.55; width: 32px; height: 32px; } }

.report-form fieldset { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 6px; }
.report-form legend { margin-bottom: 6px; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.report-why { display: flex; align-items: center; gap: 8px; font-size: 15px; text-transform: none; letter-spacing: 0; }
.report-form label[for] { display: block; margin: 8px 0 4px; font-size: 12px; }
.report-form textarea,
.report-form input[type="email"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  color: #f3e6d0;
  background: #1c140e;
  box-shadow: inset 0 0 0 1px #6b452c;
}
.report-form textarea { min-height: 80px; resize: vertical; }
.report-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.report-status { margin: 10px 0 0; font-size: 14px; }
.report-done { margin: 6px 0 0; font-size: 16px; line-height: 1.45; }
.license section { margin: 0 0 14px; }
.license h3 { margin: 0 0 4px; font-size: 16px; }
.license p { margin: 0; font-size: 14.5px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .sleeve .flag { transition: none; } }
.look-card { max-height: calc(100vh - 32px); overflow-y: auto; }
#sample-form .credit-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
#sample-form .credit-check input {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.report-lead { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }

/* ---------- A shared tape: the crate opens on it ---------- */
.tape-spot[hidden] { display: none; }
.tape-spot {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 12px;
  color: #f6ead6;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(255, 140, 40, 0.2), transparent 70%),
    linear-gradient(160deg, #2b1d14, #160f0a);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 140, 0.15), 4px 6px 0 var(--pop), 0 14px 28px rgba(0, 0, 0, 0.3);
}
.spot-sleeve { position: relative; margin: 0; aspect-ratio: 1; }
.spot-sleeve img,
.spot-plain {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86%;
  height: 86%;
  object-fit: cover;
  border: 5px solid #efe4cc;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.45);
  background: #2b2119;
  font-family: "Tape Hand", cursive;
  font-size: 22px;
  color: #efe4cc;
  text-align: center;
}
.spot-disc {
  position: absolute;
  top: 7%;
  right: 0;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0d0b0a 0 2%, #a3302a 2.5% 17%, #0d0b0a 17.5% 100%),
    #0d0b0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.spot-copy .kicker { color: var(--amber); }
.spot-copy h2 { margin: 4px 0 6px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1; color: #fff; }
.spot-who { margin: 0 0 6px; }
.spot-who .who span { color: #f6ead6; }
.tape-spot .credit { color: #e2c99c; }
.spot-note { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: #e8d6bc; }
.spot-acts { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.spot-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
.spot-acts .glyph svg { width: 18px; height: 18px; display: block; }
body[data-house] .tape-spot .spot-spin { font-size: 17px; padding: 14px 30px; color: #fff4ee; background: linear-gradient(180deg, #ef6a55, #c8352a 60%, #a52a21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #7a1d16, 0 0 22px rgba(239, 106, 85, 0.35); }
body[data-house] .tape-spot .btn.ghost { color: #f6ead6; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 220, 180, 0.4); }
.spot-hint { margin: 10px 0 0; font-size: 13px; color: #c9b39a; }
.sleeve.is-row.is-shared { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (max-width: 720px) {
  .tape-spot { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .spot-sleeve { max-width: 220px; }
  .spot-acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- The share sheet ---------- */
.share-said { min-height: 1.2em; margin: 0 0 8px; font-weight: 700; }
.share-link { display: block; font-size: 12px; }
.share-link input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 0; border-radius: 8px; font: inherit; font-size: 13px; color: #f3e6d0; background: #1c140e; }
.share-line { margin: 8px 0 0; font-size: 14px; font-style: italic; }
.share-cards-kicker { margin-top: 14px; }
.share-cards { display: grid; grid-template-columns: 0.56fr 1fr; gap: 12px; align-items: end; }
.share-cards figure { display: grid; gap: 8px; margin: 0; }
.share-cards canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); background: #15100c; }
.share-cards .btn { margin: 0; font-size: 11px; letter-spacing: 0.08em; padding: 9px 8px; }
.look-card:has(.share-sheet) { width: min(520px, 100%); }

/* ---------- Phones: the cart stays in reach, and the open cart fits the glass ---------- */
.cart-float { display: none; }
@media (max-width: 720px) {
  .cart-float:not([hidden]) {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font: inherit;
    color: #2a1c10;
    background: radial-gradient(circle at 40% 30%, #fbe9c6, #e2b866 70%, #b78a3e);
    box-shadow: inset 0 0 0 2px #6b452c, 0 4px 0 #6b452c, 0 10px 18px rgba(0, 0, 0, 0.45);
    cursor: pointer;
  }
  .cart-float b { font-size: 20px; line-height: 1; }
  .cart-float span { margin-top: -10px; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
  .cart-float:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px #6b452c, 0 2px 0 #6b452c; }
  body.cart-open .cart-float { background: radial-gradient(circle at 40% 30%, #ffd9cf, #e0705a 70%, #a8392a); color: #fff4ee; }
  .cart-card,
  body[data-house] .cart-card {
    position: fixed;
    top: auto;
    right: 12px;
    left: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(68vh, 560px);
    transform: none;
    z-index: 39;
  }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .cart-float:active { transform: none; }
}
@media (max-width: 720px) {
  .sleeve.is-row .sleeve-acts { flex-wrap: wrap; }
  .sleeve.is-row .sleeve-acts button:not(.pull) { flex: 1 1 calc(50% - 8px); }
}
@media (min-width: 721px) {
  .sleeve.is-kit .sleeve-acts { display: grid; grid-template-columns: repeat(2, minmax(128px, 168px)); gap: 8px; }
  .sleeve.is-kit .sleeve-acts button:not(.pull) { max-width: none; min-height: 42px; }
}
.chip-tab { background: rgba(0, 0, 0, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); color: inherit; text-transform: none; letter-spacing: 0.02em; font-weight: 700; }
.tape-spot .chip-tab { color: #f6ead6; box-shadow: inset 0 0 0 1px rgba(255, 220, 180, 0.4); background: transparent; vertical-align: 1px; }
.tab-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.share-tab { margin: 8px 0 0; font-size: 13px; }

/* The house's numbers (admin only) */
.you-numbers { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.you-numbers .numbers-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.you-numbers .chop-modes { display: flex; gap: 6px; }
.you-numbers .chop-modes button { padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; font: inherit; font-size: 11px; cursor: pointer; opacity: 0.7; }
.you-numbers .chop-modes button.on { opacity: 1; font-weight: 700; }
.you-numbers table.numbers { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.you-numbers th, .you-numbers td { padding: 5px 4px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); text-align: left; }
.you-numbers .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Pay: the price on the button, "Already paid?" beside it, the note on a locked shelf ---------- */
.pay-back,
body[data-house] .pay-back {
  appearance: none;
  display: inline-block;
  margin: 8px 0 0 10px;
  padding: 2px 2px;
  border: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pay-back[hidden] { display: none; }
.pay-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.shelf-note:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 184, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(107, 69, 44, 0.3);
}
.shelf-note > span:first-child { flex: 1 1 280px; font-size: 14.5px; line-height: 1.4; }
.shelf-note .btn { margin: 0; }
.shelf-note .pay-back { margin: 0; }
.shelf-pay-note { flex: 1 1 100%; font-size: 13px; }
.shelf-pay-note:empty { display: none; }
.shelf-note > span:first-child { font-style: normal; font-family: inherit; color: var(--ink); }
.shelf-note:not([hidden]) { color: var(--ink); font-family: inherit; font-style: normal; font-size: inherit; }
.shelf-note .btn { font-family: inherit; font-style: normal; }
body[data-house="beats"] .shelf-note .btn.shelf-pay { color: #fff4ee; background: linear-gradient(180deg, #ef6a55, #c8352a 60%, #a52a21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #7a1d16; }
