/* pikap app styles. Tokens come from tokens.css.
   Layout idea: the photo is loud, the interface is wax and paper.
   Shape rule: squares (sleeves, panels) and circles (anything you press). */

@property --lend-1 { syntax: "<color>"; inherits: true; initial-value: #3a3530; }
@property --lend-2 { syntax: "<color>"; inherits: true; initial-value: #5a5148; }
@property --lend-3 { syntax: "<color>"; inherits: true; initial-value: #c9bfae; }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--wax); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; overflow-x: hidden;
  background: var(--wax); color: var(--paper);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: --lend-1 1.1s var(--ease-out), --lend-2 1.1s var(--ease-out), --lend-3 1.1s var(--ease-out);
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; }
h1, h2, p, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 2px; }

/* ---------- the room ---------- */
.glow {
  position: fixed; inset: -12%; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  background:
    radial-gradient(55% 45% at 16% 6%, color-mix(in oklab, var(--lend-1) 72%, transparent), transparent 72%),
    radial-gradient(46% 40% at 90% 24%, color-mix(in oklab, var(--lend-3) 40%, transparent), transparent 70%),
    radial-gradient(72% 55% at 50% 104%, color-mix(in oklab, var(--lend-2) 62%, transparent), transparent 72%);
}
body[data-view="record"] .glow { opacity: 0.6; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px));
  background: linear-gradient(var(--wax) 35%, rgba(12, 11, 10, 0));
}
.brand { display: block; padding: 4px 0; transition: transform var(--d-snap, 300ms) var(--spring-snap); }
.brand svg { height: 30px; width: auto; display: block; overflow: visible; }
.brand:active { transform: scale(0.96); }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 15px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--wax-4); transition: transform var(--d-snap, 300ms) var(--spring-snap), background var(--t-fast); }
.chip:hover { background: var(--wax-2); }
.chip:active { transform: scale(0.95); }
.chip .count { color: var(--dust); }

main { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 6px max(18px, env(safe-area-inset-right, 0px)) calc(72px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); }
.kicker { color: var(--dust); }

/* ---------- the deck ---------- */
.deck { display: grid; justify-items: center; text-align: center; gap: 16px; padding-top: 3vh; }
.hero-line {
  font-family: var(--voice); font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-size: clamp(3.1rem, 14vw, 7rem); line-height: 0.94; letter-spacing: -0.025em; text-wrap: balance;
}
.hero-line em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.hero-sub { max-width: 30ch; color: var(--dust); font-size: var(--fs-lead); text-wrap: balance; }

.slot {
  position: relative; width: min(70vw, 300px); aspect-ratio: 1; border-radius: 50%; margin-top: 14px;
  display: grid; place-items: center;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.045) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    radial-gradient(circle, var(--wax-3), var(--wax-2) 70%);
  box-shadow: 0 0 0 1px var(--wax-4), 0 34px 70px -24px rgba(0, 0, 0, 0.9);
  transition: transform var(--d-snap, 300ms) var(--spring-snap), box-shadow var(--t-mid);
}
.slot-sheen {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen;
  background: conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.15) 18deg, rgba(255, 255, 255, 0) 44deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 255, 255, 0.1) 200deg, rgba(255, 255, 255, 0) 228deg);
  animation: turn 6s linear infinite;
}
.slot-core { position: relative; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; padding-top: 22%; }
.slot-core::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12%; height: 12%; translate: -50% -50%; border-radius: 50%; background: var(--wax); }
.slot-core .label { font-size: 0.58rem; }
.slot:hover { transform: scale(1.03); }
.slot:active { transform: scale(0.96); }
body.is-dragging .slot { transform: scale(1.07); box-shadow: 0 0 0 2px var(--paper), 0 34px 70px -24px rgba(0, 0, 0, 0.9); }
.slot-hint { color: var(--dust); font-size: var(--fs-small); max-width: 34ch; text-wrap: balance; }

.samples { width: 100%; margin-top: 18px; text-align: left; }
.samples-title { color: var(--dust); padding-left: 2px; }
.samples-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px 18px 16px; margin: 0 -18px; scrollbar-width: none; }
.samples-row::-webkit-scrollbar { display: none; }
.sample { flex: 0 0 auto; width: 108px; scroll-snap-align: start; text-align: left; display: grid; align-content: start; }
.sample canvas { width: 108px; height: 108px; display: block; border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); transition: transform var(--d-snap, 300ms) var(--spring-snap); }
.sample:hover canvas { transform: translateY(-5px) rotate(-1.6deg); }
.sample:active canvas { transform: scale(0.95); }
.sample .label { display: block; margin-top: 9px; color: var(--dust); font-size: 0.6rem; }
.fine { color: var(--dust); font-size: var(--fs-small); max-width: 46ch; text-wrap: balance; }

/* ---------- a record ---------- */
.record { display: grid; gap: 26px; padding-top: 6px; }
.hero { display: grid; gap: 16px; justify-items: center; min-width: 0; }
/* The sleeve is two thirds of the rig. The disc is the same size and slides out by half. */
.rig { position: relative; width: min(100%, 540px); aspect-ratio: 3 / 2; }
.sleeve {
  position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1; z-index: 2; overflow: hidden;
  border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); background: var(--wax-2);
  rotate: -1.2deg; container-type: inline-size;
  transition: rotate var(--d-settle, 600ms) var(--spring-settle);
}
.rig.is-playing .sleeve { rotate: -2.2deg; }
.sleeve canvas { width: 100%; height: 100%; display: block; }
.sleeve-meta { position: absolute; top: 5cqw; left: 6cqw; right: 6cqw; display: flex; justify-content: space-between; font-size: max(7px, 2.5cqw); color: var(--paper); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.5s 0.2s; }
.sleeve-type { position: absolute; inset: auto 0 0 0; padding: 16cqw 6cqw 6cqw; background: linear-gradient(rgba(12, 11, 10, 0), rgba(12, 11, 10, 0.78)); opacity: 0; transition: opacity 0.5s; }
.sleeve-title {
  font-family: var(--voice); font-weight: 400; font-size: 11.5cqw; line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance;
  transform: translateY(12px); transition: transform var(--d-settle, 600ms) var(--spring-settle) 0.05s;
}
.rig.is-ready .sleeve-type, .rig.is-ready .sleeve-meta { opacity: 1; }
.rig.is-ready .sleeve-title { transform: none; }
.sleeve[data-style="soft"] .sleeve-title { font-style: italic; font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1; }
.sleeve[data-style="old"] .sleeve-title { font-variation-settings: "opsz" 144, "wght" 780, "SOFT" 100, "WONK" 0; }
.sleeve[data-style="loud"] .sleeve-title { font-family: var(--machine); font-variation-settings: "wdth" 50, "wght" 900; text-transform: uppercase; font-size: 17cqw; line-height: 0.84; letter-spacing: 0; }
.sleeve[data-style="cool"] .sleeve-title { font-family: var(--machine); font-variation-settings: "wdth" 150, "wght" 320; text-transform: uppercase; font-size: 6.6cqw; line-height: 1.22; letter-spacing: 0.12em; }

.tt {
  position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1; z-index: 1; border-radius: 50%;
  container-type: inline-size; translate: 0 0;
  transition: translate var(--d-settle, 700ms) var(--spring-settle);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55));
}
.rig.is-out .tt { translate: 50% 0; }
.tt-spin { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.tt-spin canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.tt-label { position: absolute; inset: 34.5%; border-radius: 50%; background: var(--lend-3); color: var(--lend-ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); }
.tt-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11%; height: 11%; translate: -50% -50%; border-radius: 50%; background: var(--wax); }
.tt-label .label { position: absolute; left: 0; right: 0; text-align: center; font-size: max(4.5px, 1.85cqw); letter-spacing: 0.1em; }
#label-side { top: 17%; }
#label-no { bottom: 17%; }
.tt-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.17) 18deg, rgba(255, 255, 255, 0) 42deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 255, 255, 0.11) 200deg, rgba(255, 255, 255, 0) 226deg);
}
.tt-needle {
  position: absolute; left: 0; top: 0; width: max(9px, 3.4cqw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: var(--needle); box-shadow: 0 0 0 2px rgba(12, 11, 10, 0.6), 0 0 16px 2px color-mix(in srgb, var(--needle) 70%, transparent);
  opacity: 0; transition: opacity 0.35s;
}
.rig.is-cutting .tt-needle, .rig.is-playing .tt-needle { opacity: 1; }
.tt-hit { position: absolute; inset: 0; border-radius: 50%; touch-action: none; cursor: grab; }
.tt-hit:active { cursor: grabbing; }
.status { color: var(--dust); min-height: 1.3em; text-align: center; }

.notes { display: grid; gap: 12px; max-width: 58ch; min-width: 0; }
.notes > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform var(--d-settle, 600ms) var(--spring-settle); }
.notes.is-in > * { opacity: 1; transform: none; }
.notes.is-in > :nth-child(2) { transition-delay: 0.07s; }
.notes.is-in > :nth-child(3) { transition-delay: 0.14s; }
.notes.is-in > :nth-child(4) { transition-delay: 0.21s; }
.big-read { font-size: clamp(1.5rem, 5.4vw, 2.1rem); line-height: 1.1; }
.liner { color: var(--dust); font-family: var(--voice); font-variation-settings: "opsz" 14, "wght" 400, "SOFT" 50; font-size: 1.02rem; line-height: 1.5; }
.swatches { display: flex; gap: 7px; align-items: center; color: var(--dust); flex-wrap: wrap; }
.swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.swatches .label { margin-left: 6px; font-size: 0.6rem; }
.runout { color: var(--dust); font-size: 0.6rem; opacity: 0.8; word-spacing: 0.3em; }
.readout summary { list-style: none; cursor: pointer; color: var(--dust); display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; }
.readout summary::-webkit-details-marker { display: none; }
.readout summary::after { content: "+"; font-family: var(--text); font-size: 1rem; line-height: 1; }
.readout[open] summary::after { content: "\2212"; }
.meters { display: grid; gap: 7px; padding: 8px 0 2px; max-width: 420px; }
.meter { display: grid; grid-template-columns: 6.6em 1fr 2.2em; gap: 12px; align-items: center; color: var(--dust); }
.meter .label { font-size: 0.6rem; }
.meter i { position: relative; height: 3px; border-radius: 2px; background: var(--wax-4); }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 2px; background: var(--paper); }
.meter .label:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tags { color: var(--dust); padding-top: 6px; line-height: 1.7; }

.sides { min-width: 0; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--wax-4); }
.side-tab { position: relative; display: grid; gap: 3px; padding: 14px 4px 13px; text-align: left; color: var(--dust); transition: color var(--t-fast); }
.side-tab small { font-size: var(--fs-small); }
.side-tab.is-on { color: var(--paper); }
.side-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--paper); }
.tracks { list-style: none; padding: 0; }
.track { position: relative; padding: 13px 0 11px; border-bottom: 1px solid var(--wax-3); animation: rise var(--d-settle, 600ms) var(--spring-settle) both; animation-delay: calc(var(--i, 0) * 80ms); }
.track-main { display: grid; grid-template-columns: 2.1em 46px minmax(0, 1fr) 42px; gap: 12px; align-items: center; width: 100%; text-align: left; }
.track-no { position: relative; color: var(--dust); }
.track.is-playing .track-no { color: transparent; }
.track.is-playing .track-no::after { content: ""; position: absolute; left: 0.25em; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--needle); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--needle) 70%, transparent); }
.track-art { width: 46px; height: 46px; background: var(--wax-3); border-radius: var(--r-card); overflow: hidden; }
.track-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-title, .track-artist { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-title { font-weight: 600; }
.track-artist { color: var(--dust); font-size: var(--fs-small); }
.track-state { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--wax-4); transition: transform var(--d-snap, 300ms) var(--spring-snap), background var(--t-fast); }
.track-main:hover .track-state { background: var(--wax-2); }
.track-main:active .track-state { transform: scale(0.9); }
.track-state::before { content: ""; margin-left: 3px; border-left: 10px solid var(--paper); border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
.track.is-playing .track-state { background: var(--paper); }
.track.is-playing .track-state::before { margin: 0; border: 0; width: 11px; height: 12px; background: linear-gradient(90deg, var(--ink) 0 36%, transparent 36% 64%, var(--ink) 64%); }
.track-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 9px 0 0 calc(2.1em + 12px); color: var(--dust); }
.track-links a { text-decoration: none; font-size: 0.6rem; padding: 4px 0; }
.track-links a:hover { color: var(--paper); }
.track-links a::after { content: " \2197"; }
.dig { margin-left: auto; padding: 8px 14px; border-radius: var(--r-pill); color: var(--paper); box-shadow: inset 0 0 0 1px var(--wax-4); font-size: 0.6rem; transition: transform var(--d-snap, 300ms) var(--spring-snap), background var(--t-fast), color var(--t-fast); }
.dig:active { transform: scale(0.9); }
.dig[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.track-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--paper); }
.track.is-current .track-bar i { width: var(--p, 0%); }
.track-empty { padding: 22px 0; color: var(--dust); }
.courtesy { color: var(--dust); font-size: 0.75rem; padding-top: 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { padding: 15px 22px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); transition: transform var(--d-snap, 300ms) var(--spring-snap), opacity var(--t-fast); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.95); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--wax-4); }
.btn.ghost:hover { background: var(--wax-2); }
.btn:disabled { opacity: 0.55; transform: none; }

/* ---------- the crate ---------- */
.crate { display: grid; gap: 14px; padding-top: 3vh; }
.crate-title { font-family: var(--voice); font-style: italic; font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-size: clamp(2.6rem, 10vw, 4.6rem); line-height: 1; }
.crate-empty { color: var(--dust); font-size: var(--fs-lead); }
.crate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 16px; padding: 10px 0 18px; }
.crate-card { display: grid; gap: 6px; justify-items: start; animation: rise var(--d-settle, 600ms) var(--spring-settle) both; }
.crate-open { display: grid; gap: 4px; text-align: left; width: 100%; }
.crate-open img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); margin-bottom: 8px; transition: transform var(--d-snap, 300ms) var(--spring-snap); }
.crate-open:hover img { transform: translateY(-6px) rotate(-1.4deg); }
.crate-open b { font-family: var(--voice); font-style: italic; font-weight: 400; font-size: 1.1rem; line-height: 1.1; }
.crate-open .label, .crate-remove { color: var(--dust); font-size: 0.6rem; }
.crate-remove { padding: 4px 0; }
.crate-remove:hover { color: var(--paper); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  translate: -50% 16px; opacity: 0; pointer-events: none;
  padding: 13px 20px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.25s, translate var(--d-snap, 300ms) var(--spring-snap);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- wide screens: the record on the left, the words on the right ---------- */
@media (min-width: 940px) {
  main { padding-top: 20px; }
  .record { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 56px; row-gap: 26px; align-items: start; }
  .hero { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 96px; }
  .rig { width: 100%; max-width: 620px; }
  .record > .notes, .record > .sides, .record > .actions, .record > .report-why { grid-column: 2; }
  .deck { padding-top: 5vh; }
  .samples-row { justify-content: center; flex-wrap: wrap; overflow: visible; max-width: 760px; margin: 0 auto; }
  .samples-title { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

/* ==========================================================================
   The first screen that sells, the floor, and your table (added 19 Nov)
   ========================================================================== */

.top-nav { display: flex; gap: 8px; }
.kicker-quiet { color: var(--dust); }

/* The instruction line takes turns. It swaps in place and never moves the page. */
.kicker { min-height: 1.3em; color: var(--paper); transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out); }
.kicker.is-out { opacity: 0; transform: translateY(-5px); }

/* The headline. Two details, both still enough to ignore:
   the o's catch a slow turning light, the way a record does,
   and the full stop is the needle: the one red point on the page. */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero-line .o {
  background: conic-gradient(from var(--turn) at 50% 60%, var(--paper) 0deg, var(--paper) 24deg, #857d71 52deg, var(--paper) 84deg, var(--paper) 204deg, #a39a8d 230deg, var(--paper) 262deg, var(--paper) 360deg);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
.hero-line .o:nth-of-type(2) { animation-delay: -3s; }
.hero-line .o:nth-of-type(3) { animation-delay: -6s; }
.hero-line .stop { display: inline-block; color: var(--needle); animation: needle-drop 0.9s var(--spring-snap) 0.5s both; }
@keyframes sheen { to { --turn: 360deg; } }
@keyframes needle-drop { from { opacity: 0; transform: translateY(-0.55em); } }

.hero-belief {
  font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 60, "wght" 360, "SOFT" 100, "WONK" 0;
  font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.12; max-width: 22ch; text-wrap: balance; margin-top: 4px;
}
.hero-sub { max-width: 34ch; }
/* One sentence, one unbroken piece: the line breaks between sentences where it can. */
.hero-sub .s, .hero-belief .s { display: inline-block; max-width: 100%; text-wrap: balance; }
.fine.left { text-align: left; }

/* ---------- the floor: what was just pressed ---------- */
.deck-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; width: 100%; }
.deck-main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; min-width: 0; }
.floor { order: 2; min-width: 0; text-align: left; }
.floor-title { color: var(--paper); }
.floor-sub { font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 40, "wght" 380, "SOFT" 100; font-size: 1.5rem; line-height: 1.1; margin-top: 2px; }
.floor-list { list-style: none; padding: 0; margin: 12px -18px 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 18px 10px; }
.floor-list::-webkit-scrollbar { display: none; }
.floor-item { flex: 0 0 auto; animation: rise var(--d-settle, 600ms) var(--spring-settle) both; }
.floor-item button { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; width: 230px; padding: 6px 0; }
.floor-item img { width: 52px; height: 52px; object-fit: cover; display: block; border-radius: var(--r-card); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8); transition: transform var(--d-snap, 300ms) var(--spring-snap); }
.floor-item button:hover img { transform: translateY(-3px) rotate(-2deg); }
.floor-item b { display: block; font-family: var(--voice); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 24, "wght" 400, "SOFT" 100; font-size: 1.02rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-item .label { display: block; color: var(--dust); font-size: 0.56rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-empty { color: var(--dust); font-size: var(--fs-small); padding: 8px 0; }

.sample img { width: 108px; height: 108px; object-fit: cover; display: block; border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); transition: transform var(--d-snap, 300ms) var(--spring-snap); }
.sample:hover img { transform: translateY(-5px) rotate(-1.6deg); }
.sample:active img { transform: scale(0.95); }

/* ---------- a record: who it is from, and reporting ---------- */
.btn.small { padding: 10px 16px; }
.btn.round { padding: 10px 14px; min-width: 40px; }
.btn.is-on { background: var(--paper); color: var(--ink); box-shadow: none; }
.report-why { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dust); }

/* ---------- your table ---------- */
.table-view { display: grid; gap: 16px; padding-top: 2vh; }
.table-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; }
.table-title { font-family: var(--voice); font-style: italic; font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1; }
.table-tools { display: flex; gap: 8px; align-items: center; }
.table {
  position: relative; height: min(70vh, 760px); min-height: 380px; overflow: hidden; touch-action: none; cursor: grab;
  border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--wax-3);
  background-color: var(--wax);
  background-image: radial-gradient(circle, rgba(242, 237, 227, 0.16) 1px, rgba(242, 237, 227, 0) 1.5px);
  background-size: var(--gz, 28px) var(--gz, 28px); background-position: var(--gx, 0px) var(--gy, 0px);
}
.table.is-panning { cursor: grabbing; }
body.is-dragging .table { box-shadow: inset 0 0 0 2px var(--paper); }
.table-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.table-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 12%; color: var(--dust); pointer-events: none; text-wrap: balance; }
.tile { position: absolute; left: 0; top: 0; width: 180px; cursor: grab; user-select: none; -webkit-user-select: none; }
.table-world.is-tidy .tile { transition: transform var(--d-settle, 600ms) var(--spring-settle); }
.tile-sleeve { position: relative; z-index: 2; width: 180px; height: 180px; display: block; object-fit: cover; background: var(--wax-2); border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); transition: scale var(--d-snap, 300ms) var(--spring-snap), box-shadow var(--t-mid); pointer-events: none; }
.tile-disc { position: absolute; left: 0; top: 0; width: 180px; height: 180px; z-index: 1; transition: translate var(--d-settle, 700ms) var(--spring-settle); }
.tile-disc canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.tile.is-ready .tile-disc { translate: 44% 0; }
.tile.is-held { cursor: grabbing; }
.tile.is-held .tile-sleeve { scale: 1.05; box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.9); }
.tile.is-cutting .tile-sleeve { animation: breathe 0.9s ease-in-out infinite alternate; }
.tile-title { font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 24, "wght" 400, "SOFT" 100; font-size: 1.05rem; line-height: 1.12; margin-top: 12px; pointer-events: none; }
.tile-read { color: var(--dust); font-family: var(--voice); font-style: italic; font-size: 0.8rem; line-height: 1.2; margin-top: 3px; pointer-events: none; }
.tile-x { position: absolute; z-index: 3; top: 6px; left: 6px; padding: 6px 9px; border-radius: var(--r-pill); background: var(--wax); color: var(--paper); font-size: 0.5rem; opacity: 0; transition: opacity var(--t-fast); }
.tile:hover .tile-x, .tile-x:focus-visible { opacity: 0.92; }
@keyframes breathe { from { opacity: 0.55; } }

/* ---------- the label sheet ---------- */
.sheet { border: 0; padding: 26px 22px; width: min(92vw, 440px); background: var(--wax-2); color: var(--paper); border-radius: var(--r-card); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8); }
.sheet::backdrop { background: rgba(12, 11, 10, 0.72); }
.sheet form { display: grid; gap: 14px; }
.sheet-title { font-family: var(--voice); font-style: italic; font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-size: 2.2rem; line-height: 1; }
.sheet-sub { color: var(--dust); }
.sheet-problem { color: var(--paper); font-size: var(--fs-small); }
.field { display: grid; gap: 4px; }
.field .label { color: var(--dust); font-size: 0.6rem; }
.field input { font: inherit; font-size: 1.05rem; color: var(--paper); background: none; border: 0; border-bottom: 1px solid var(--wax-4); padding: 9px 0; outline: none; border-radius: 0; }
.field input:focus { border-bottom-color: var(--paper); }
.field input::placeholder { color: var(--wax-4); }

@media (min-width: 940px) {
  .samples-title { text-align: center; }
}
}
@media (prefers-reduced-motion: reduce) {
  .hero-line .o { color: var(--paper); background: none; }
}

/* zoom buttons carry a plain sign, not a label */
.btn.round .glyph { font-family: var(--text); font-size: 20px; line-height: 1; display: block; width: 14px; text-align: center; }

/* a chip that stays pressed ("It's a meme") */
.chip.toggle { margin-top: 2px; color: var(--dust); transition: background var(--t-fast), color var(--t-fast), transform var(--d-snap, 300ms) var(--spring-snap); }
.chip.toggle[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }

/* ---------- the counter (the pay screen) ---------- */
.pay { display: grid; gap: 12px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--wax-3); color: var(--paper); }
.pay-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.pay-row small { color: var(--dust); font-size: var(--fs-small); line-height: 1.35; }
.pay-friend { border-top: 1px solid var(--wax-3); cursor: pointer; transition: opacity var(--t-fast); }
.pay-friend:hover { opacity: 0.8; }
#pay-packs { max-height: 34vh; overflow-y: auto; scrollbar-width: thin; }
#pay-sheet { width: min(92vw, 480px); }

/* ---------- the sign-up, asked at the record ---------- */
.unlock { display: none; gap: 12px; padding: 20px; background: var(--wax-2); box-shadow: inset 0 0 0 1px var(--wax-3); border-radius: var(--r-card); justify-items: start; }
.unlock p:not(.label) { color: var(--dust); max-width: 46ch; }
.record.is-locked .unlock { display: grid; animation: rise var(--d-settle, 600ms) var(--spring-settle) both; }
.record.is-locked .sides, .record.is-locked .actions { display: none; }
@media (min-width: 940px) { .record > .unlock { grid-column: 2; } }

/* ---------- the floor: a live belt across the top ---------- */
body { overflow-x: clip; }
.floor { order: 0; justify-self: stretch; margin: 0 calc(50% - 50vw) 10px; padding: 10px 0 12px; border-block: 1px solid var(--wax-3); text-align: left; overflow: hidden; min-width: 0; }
.floor-head { display: flex; align-items: center; gap: 10px; padding: 0 max(18px, calc(50vw - 542px)); margin: 0 0 8px; }
.floor-sub { font-family: var(--text); font-style: normal; font-variation-settings: normal; font-size: var(--fs-small); line-height: 1; color: var(--dust); margin: 0; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; transform: scale(0.7); } }
.floor-belt { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.floor-list { display: flex; gap: 0; margin: 0; padding: 2px 0; width: max-content; overflow: visible; }
.floor-list.is-belt { animation: belt var(--secs, 90s) linear infinite; }
.floor:hover .floor-list.is-belt, .floor:focus-within .floor-list.is-belt { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.floor-list:not(.is-belt) { padding-inline: max(18px, calc(50vw - 542px)); max-width: 100vw; overflow-x: auto; scrollbar-width: none; }
.floor-item { padding-right: 36px; }
.floor-item button { width: auto; max-width: 330px; grid-template-columns: 44px minmax(0, 1fr); padding: 2px 0; }
.floor-item img { width: 44px; height: 44px; }
.floor-song { display: block; color: var(--paper); opacity: 0.78; font-size: 0.8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-item .label { margin-top: 2px; }
.floor-empty { padding-inline: max(18px, calc(50vw - 542px)); }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }

/* ---------- the long player ---------- */
.lp-tools { display: grid; gap: 10px; justify-items: start; padding: 16px 0 4px; }
.lp-tools p { color: var(--dust); font-size: var(--fs-small); max-width: 56ch; }
.side-tab small { text-wrap: balance; }

/* ---------- labels ---------- */
[hidden] { display: none !important; }
.linkish { color: var(--dust); text-decoration: underline; text-underline-offset: 3px; justify-self: start; padding: 4px 0; }
.linkish:hover { color: var(--paper); }
.agree { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--dust); font-size: var(--fs-small); }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--paper); }
.agree a, .fine a { color: var(--paper); text-underline-offset: 3px; }
.label-view { display: grid; gap: 18px; padding-top: 3vh; }
.lv-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
@media (min-width: 720px) { .lv-head { grid-template-columns: auto minmax(0, 1fr); gap: 36px; } }
.lv-who { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.lv-bio { color: var(--dust); max-width: 52ch; }
.lv-link { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lv-counts { color: var(--dust); }
.lv-actions { justify-content: flex-start; padding-top: 6px; }
/* The picture on wax: a black disc, the label's own paper around the picture, a spindle hole */
.lv-disc { --paper-c: var(--paper); position: relative; width: clamp(150px, 34vw, 220px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #171513 0 1.5px, #0a0908 1.5px 3px); box-shadow: var(--shadow-sleeve), inset 0 0 0 1px rgba(242, 237, 227, 0.07); }
.lv-disc.small { width: 86px; }
.lv-disc::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--paper-c); }
.lv-disc img { position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.lv-disc b { position: relative; font-family: var(--voice); font-style: italic; font-weight: 380; font-size: clamp(2rem, 8vw, 3.4rem); color: var(--ink); line-height: 1; text-transform: uppercase; }
.lv-disc.small b { font-size: 1.5rem; }
.lv-hole { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: var(--wax); box-shadow: 0 0 0 2px rgba(242, 237, 227, 0.5); }
.lv-disc[data-paper="red"] { --paper-c: #a8442e; } .lv-disc[data-paper="mustard"] { --paper-c: #c9a23a; } .lv-disc[data-paper="sage"] { --paper-c: #8fa08a; }
.lv-disc[data-paper="sky"] { --paper-c: #8fb0c4; } .lv-disc[data-paper="plum"] { --paper-c: #7d5674; }
.lv-five .tracks { max-width: 620px; }
.lv-cat { padding-top: 8px; }
.crate-card .lv-open { display: grid; gap: 6px; justify-items: start; text-align: left; }
.crate-card .lv-open img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); }
.crate-card .lv-open .label { color: var(--dust); font-size: 0.6rem; }
.arrivals .sample .label b { color: var(--paper); font-weight: inherit; }
.find { width: min(100%, 340px); display: grid; gap: 8px; text-align: left; }
.find-list { display: grid; gap: 4px; }
.find-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-card); text-align: left; }
.find-item:hover { background: var(--wax-2); }
.find-item i { width: 26px; height: 26px; border-radius: 50%; background: var(--wax-4) center / cover; flex: none; }
.find-item small { color: var(--dust); }
.edit-pic { display: flex; gap: 16px; align-items: center; }
.papers { display: flex; gap: 10px; padding-top: 6px; }
.paper { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--wax-4); }
.paper[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wax-2), 0 0 0 4px var(--paper); }
.five-pick { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; max-height: 190px; overflow-y: auto; }
.five-song { padding: 7px 11px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--wax-4); font-size: var(--fs-small); color: var(--dust); text-align: left; }
.five-song[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.edit-more { display: flex; gap: 18px; padding-top: 4px; }
.edit-delete { display: grid; gap: 10px; }
#edit-sheet { max-height: 92vh; overflow-y: auto; }
.top-nav { flex-wrap: wrap; justify-content: flex-end; }

.label-view .samples-title { text-align: left; }

/* Continue with Apple / Google: our pill and spacing, their mark and their words, white as both ask for */
.sso { display: grid; gap: 10px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: var(--r-pill); background: #fff; color: #000;
  font-family: var(--body, "Hanken Grotesk", system-ui, sans-serif); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; text-decoration: none;
  transition: transform var(--d-snap, 300ms) var(--spring-snap), background var(--t-fast); }
.sso-btn:hover { background: #f1f1f1; }
.sso-btn:active { transform: scale(0.97); }
.sso-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.sso-btn svg { width: 19px; height: 19px; flex: none; }
#sso-apple svg { width: 17px; height: 21px; margin-top: -3px; }
.sso-or { display: flex; align-items: center; gap: 12px; color: var(--dust); font-size: 0.6rem; padding-top: 4px; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: var(--wax-4); }

/* ==========================================================================
   Polish pass, 20 Nov 2026 (night): the phone header, track rows, the action grid, form contrast
   ========================================================================== */

/* The header is one row on every screen. On a phone the buttons lose "Your" and tighten up,
   and the bar is solid enough that the page does not show through the buttons as it scrolls under. */
.top { background: linear-gradient(var(--wax) 72%, rgba(12, 11, 10, 0)); gap: 12px; }
.top-nav { flex-wrap: nowrap; min-width: 0; }
.chip { white-space: nowrap; min-width: 0; }
#label-chip { overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
@media (max-width: 560px) {
  .wide-only { display: none; }
  .top-nav { gap: 6px; }
  .chip { padding: 9px 12px; }
  .chip .label { font-size: 0.6rem; letter-spacing: 0.1em; }
  #label-chip { max-width: 11ch; }
  .brand svg { height: 26px; }
}

/* A track's links and its Dig button share one line, on a phone too. */
.track-links { flex-wrap: nowrap; }
.track-links a { white-space: nowrap; }
@media (max-width: 560px) {
  .track-links { padding-left: 0; gap: 0 9px; }
  .track-links a { font-size: 0.56rem; letter-spacing: 0.09em; }
  .dig { padding: 8px 12px; }
}

/* The buttons under a record: the main action across the full width, the rest in rows of two, all the same size.
   (Batu on the phone app, 20 Nov: "buttons feel randomly placed". Same answer here as ActionGrid there.) */
.record .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.record .actions .btn { padding-inline: 10px; text-align: center; min-height: 50px; }
.record .actions .btn:nth-child(1 of :not([hidden])) { grid-column: 1 / -1; }
/* The long player is the other full-width one: ten songs is the thing a pass is for. A last button left alone fills its row. */
.record .actions #playlist { grid-column: 1 / -1; }
.record .actions:has(#like:not([hidden])) .btn:nth-last-child(1 of :not([hidden])):nth-child(odd of :not([hidden])) { grid-column: 1 / -1; }
.record .actions:has(#like[hidden]) .btn:nth-last-child(1 of :not([hidden])):nth-child(even of :not([hidden])) { grid-column: 1 / -1; }

.status { text-wrap: balance; }

/* Form hints were nearly invisible on the sheet. */
.field input::placeholder { color: var(--dust); opacity: 0.5; }
.linkish { text-align: left; text-wrap: balance; }

/* A label's numbers: three figures with their names under them, never a line that wraps mid-count. */
.lv-stats { display: flex; gap: 26px; margin: 4px 0 0; }
.lv-stats div { display: grid; gap: 2px; }
.lv-stats dd { margin: 0; font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 40, "wght" 380, "SOFT" 100; font-size: 1.6rem; line-height: 1; }
.lv-stats dt { color: var(--dust); font-size: 0.56rem; }
/* Two buttons, two equal halves. */
.lv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); }
.lv-actions .btn { padding-inline: 10px; text-align: center; }
.lv-actions .btn:only-child, .lv-actions .btn:nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: 1 / -1; }

@media (min-width: 940px) { .record .actions { max-width: 520px; } }

.edit-ways { display: grid; gap: 8px; padding-top: 4px; }
.edit-ways .sso-btn { justify-content: center; }

/* ---------- the counter in the header (20 Nov 2026): the records left, the same on the site and both phones ---------- */
.chip-coins { gap: 7px; }
.disc-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--paper); position: relative; flex: none; }
.disc-dot::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--paper); }
.pay-have { color: var(--paper); padding: 10px 0 2px; border-top: 1px solid var(--wax-3); }
@media (max-width: 560px) {
  /* Four chips on a phone: each gives up a little so the row still fits. */
  .top-nav { gap: 6px; }
  .chip { padding: 9px 10px; }
  #label-chip { max-width: 8ch; }
}

/* ---------- the seat, the limit and the email way in (20 Nov 2026, late) ---------- */
.pay-seat { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--wax-3); }
.seat-friends { display: flex; flex-wrap: wrap; gap: 6px; }
.seat-friends:empty { display: none; }
.pay-arr { color: var(--paper); }
.pay-arr a { color: var(--paper); text-underline-offset: 3px; }
.mail { display: grid; gap: 12px; }
#mail-code { letter-spacing: 0.3em; }

/* ---------- the code a phone points its camera at (20 Nov 2026) ---------- */
.pay-qr { display: grid; justify-items: center; gap: 12px; padding: 6px 0 4px; }
.pay-qr svg { width: 188px; height: 188px; border-radius: 6px; }
.pay-qr .fine { text-align: center; max-width: 34ch; }



/* ---------- the shop radio: a small player ----------
   Layout: a title bar with pinstripes; a row with the clock and its meter on the left and the song's name, a
   flag and the seek bar on the right; a row of keys; a short list of what is next. The panel is glass: behind
   it sits the playing song's sleeve, blurred, so the player takes that record's colour. It changes on a cut,
   with the song. The one red thing is the needle on the seek bar. */
.amp { position: relative; isolation: isolate; overflow: hidden; width: min(100%, 400px); margin-top: 22px; text-align: left; border-radius: var(--r-card);
  background: linear-gradient(rgba(12, 11, 10, 0.56), rgba(12, 11, 10, 0.8)); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.16), inset 0 1px 0 rgba(242, 237, 227, 0.14), var(--shadow-sleeve);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.amp-art { position: absolute; inset: -30%; z-index: -1; background: var(--wax-2) center / cover no-repeat; filter: blur(34px) saturate(1.6); opacity: 0.55; }
.amp[data-state="off"] .amp-art { opacity: 0.22; }
.amp-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px 6px; border-bottom: 1px solid rgba(242, 237, 227, 0.1); }
.amp-bar i { flex: 1; height: 7px; background: repeating-linear-gradient(to bottom, rgba(242, 237, 227, 0.3) 0 1px, transparent 1px 3px); }
.amp-bar .label { font-size: 0.56rem; color: var(--paper); }
.amp-lamp { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 8px rgba(242, 237, 227, 0.8); }
.amp[data-state="off"] .amp-lamp { background: var(--wax-4); box-shadow: none; }
.amp-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 10px 8px; }
.amp-lcd { display: grid; gap: 4px; padding: 7px 8px 6px; background: rgba(0, 0, 0, 0.46); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.1), inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.amp-clock { display: flex; align-items: center; gap: 7px; }
.amp-mode { width: 8px; height: 8px; fill: var(--paper); flex: none; }
.amp-time { font-family: var(--machine); font-variation-settings: "wdth" 96, "wght" 700; font-size: 1.5rem; line-height: 1; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; color: var(--paper); text-shadow: 0 0 12px rgba(242, 237, 227, 0.35); }
.amp-scope { display: block; width: 76px; height: 26px; }
.amp .is-play, .amp[data-state="play"] .is-off { display: none; }
.amp[data-state="play"] .is-play { display: inline; }
.amp-side { display: grid; gap: 7px; align-content: space-between; min-width: 0; }
.amp-tick { display: block; overflow: hidden; white-space: nowrap; padding: 6px 8px; color: var(--paper); text-decoration: none; background: rgba(0, 0, 0, 0.46); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.1);
  font-family: var(--machine); font-variation-settings: "wdth" 118, "wght" 600; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.25; }
.amp-tick span { display: inline-block; padding-right: 0; }
.amp-tick.runs span { animation: amp-tick var(--amp-secs, 14s) steps(var(--amp-steps, 60)) infinite; }
@keyframes amp-tick { to { transform: translateX(-50%); } }
.amp-flags { display: flex; justify-content: space-between; padding: 0 2px; }
.amp-flags .label { font-size: 0.5rem; color: rgba(242, 237, 227, 0.55); }
.amp[data-state="play"] .amp-flag { color: var(--paper); }
.amp-seek { position: relative; height: 14px; cursor: pointer; touch-action: none; }
.amp-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(242, 237, 227, 0.2); }
.amp-seek i { position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: rgba(242, 237, 227, 0.75); }
.amp-seek b { position: absolute; top: 1px; left: 0; width: 3px; height: 12px; margin-left: -1px; background: var(--needle); }
.amp-seek:focus-visible { outline: 1px solid var(--paper); outline-offset: 3px; }
.amp-keys { display: flex; align-items: center; gap: 8px; padding: 2px 10px 10px; }
.amp-key { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--paper); background: rgba(242, 237, 227, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.22); transition: transform var(--t-fast) var(--spring-snap), background var(--t-fast); }
.amp-key svg { width: 12px; height: 12px; fill: currentColor; }
.amp-key:hover { background: rgba(242, 237, 227, 0.14); }
.amp-key:active { transform: scale(0.92); }
.amp[data-state="play"] #radio-toggle { background: var(--paper); color: var(--ink); box-shadow: none; }
.amp-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); color: var(--dust); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.16); }
.amp-chip .label { font-size: 0.52rem; }
.amp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--wax-4); }
.amp-chip[aria-pressed="true"] { color: var(--paper); }
.amp-chip[aria-pressed="true"] .amp-dot { background: var(--paper); }
.amp-list { list-style: none; margin: 0; padding: 4px 0; border-top: 1px solid rgba(242, 237, 227, 0.1); background: rgba(0, 0, 0, 0.4); }
.amp-list:empty { display: none; }
.amp-row { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 6px; align-items: baseline; width: 100%; padding: 5px 12px; text-align: left; color: rgba(242, 237, 227, 0.62); text-decoration: none; font-size: 0.78rem; line-height: 1.3; }
.amp-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amp-row span:first-child, .amp-row span:last-child { font-family: var(--machine); font-variation-settings: "wdth" 110, "wght" 600; font-size: 0.6rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.amp-row.now { color: var(--paper); background: rgba(242, 237, 227, 0.08); }
.amp-row:hover { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .amp-tick.runs span { animation: none; } .amp-tick { text-overflow: ellipsis; } }

/* ---------- lacquer: the look of pikap all access (docs/member-look/CONCEPT.md) ----------
   Nothing moves and nothing is added to the layout. Three things change for a member and the friend in their seat:
   1. the room catches light (two lights drawn by js/lacquer.js)
   2. every hairline and outline turns from wax to metal
   3. a disc cut to lacquer has the bare metal rim a real lacquer has
   The light sits behind the page, so it never crosses a photo. */
.beam { position: fixed; z-index: 0; transform-origin: 50% 100%; opacity: 0; pointer-events: none; transition: opacity 0.7s var(--ease-out); will-change: transform, opacity; }
body[data-look="lacquer"] .beam, body[data-room="lacquer"] .beam { opacity: 1; }
/* On a record the light shares the room with the photo's own glow, so it is quieter there. */
body[data-view="record"][data-look="lacquer"] .beam { opacity: 0.7; }

/* the pass lockup: beside the logo where there is room, under it on a phone */
.brand, .pay-lockup, .lq-title-lockup { color: var(--paper); }
.brand svg.pk-lockup[data-layout="under"] { display: none; }
.pay-lockup { display: block; }
.pay-lockup svg { height: 26px; width: auto; display: block; overflow: visible; }
.lv-pass { color: var(--paper); font-variation-settings: "wdth" 140, "wght" 900; }
@media (max-width: 720px) {
  .brand svg.pk-lockup[data-layout="beside"] { display: none; }
  .brand svg.pk-lockup[data-layout="under"] { display: block; height: 44px; }
}
/* A phone's top bar has no room to spare once the pass is named in it: the buttons give some back. */
@media (max-width: 560px) {
  .brand svg.pk-lockup[data-layout="under"] { height: 38px; }
  body[data-look="lacquer"] .top { gap: 8px; }
  body[data-look="lacquer"] .top-nav { gap: 5px; }
  body[data-look="lacquer"] .top .chip { padding: 9px 10px; }
  body[data-look="lacquer"] #label-chip { max-width: 8ch; }
}

/* metal outlines: a ring drawn over the wax one, lit from above */
body[data-look="lacquer"] :is(.chip, .btn.ghost, .track-state) { position: relative; }
body[data-look="lacquer"] :is(.chip, .btn.ghost, .track-state)::after,
.tt[data-lacquer]::after, .lv-disc[data-lacquer]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal-lo));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* A small glint slides along the outlines where the first light crosses them. Only where there is a mouse:
   it is repainted as the light moves, and it is the first thing a phone can do without. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body[data-look="lacquer"] :is(.chip, .btn.ghost, .track-state)::after {
    background:
      linear-gradient(calc(90deg + var(--lq-deg, -5deg)), rgba(250, 247, 240, 0) calc(50% + var(--lq-off, 0px) - 120px), var(--metal-glint) calc(50% + var(--lq-off, 0px)), rgba(250, 247, 240, 0) calc(50% + var(--lq-off, 0px) + 120px)) fixed,
      linear-gradient(180deg, var(--metal-hi), var(--metal-lo));
  }
}
/* thin lines between rows */
body[data-look="lacquer"] :is(.track, .pay-row, .pay-have, .pay-seat) { border-color: var(--metal-lo); }
body[data-look="lacquer"] .side-tabs { border-bottom-color: var(--metal-lo); }
body[data-look="lacquer"] .sheet { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8), inset 0 1px 0 var(--metal-lo); }
/* the rim. It belongs to the record, not to who is looking: a record cut to lacquer keeps it for good. It does not turn with the record. */
.tt[data-lacquer]::after, .lv-disc[data-lacquer]::after {
  padding: 1.5px; z-index: 3;
  background: conic-gradient(from calc(205deg + var(--lq-deg, -5deg) * 4), var(--metal-lo), var(--metal-glint) 9%, var(--metal-lo) 22%, rgba(242, 237, 227, 0.1) 48%, rgba(242, 237, 227, 0.75) 59%, var(--metal-lo) 72%, var(--metal-lo));
}

/* ---------- the first time: ten seconds. Lights switch, scenes cut, words sit on a title card. Nothing fades over anything. ---------- */
.lq-cut { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 30; opacity: 0; pointer-events: none; }
.lq-still { position: fixed; z-index: 29; left: 50%; top: 50%; translate: -50% -50%; height: min(84vh, 150vw); width: auto; border-radius: var(--r-card); box-shadow: var(--shadow-sleeve); pointer-events: none; }
.lq-label { position: fixed; left: 0; right: 0; top: 60%; z-index: 31; text-align: center; color: var(--dust); visibility: hidden; pointer-events: none; }
.lq-label.on { visibility: visible; }
.lq-title { position: fixed; left: max(18px, calc(50% - 280px)); right: 18px; top: 46%; translate: 0 -50%; z-index: 31; display: none; gap: 14px; pointer-events: none; }
.lq-title.on { display: grid; }
.lq-title-lockup svg { height: 84px; width: auto; display: block; overflow: visible; margin-bottom: 14px; }
.lq-title-line { font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1; font-size: clamp(58px, 9vw, 96px); line-height: 0.96; padding-right: 6px; }
.lq-etch { color: var(--dust); font-size: 0.6rem; }
.lq-catch { position: fixed; inset: 0; z-index: 60; display: none; }
body.lq-hero .lq-catch { display: block; }
body.lq-hero { overflow: hidden; }
body.lq-hero .toast { display: none; }
body.lq-dark main, body.lq-dark .top, body.lq-dark .glow, body.lq-pic main, body.lq-pic .top { visibility: hidden; }
/* the slip: solid and square like every pikap sheet. It moves, it never fades. */
.lq-slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; gap: 6px; padding: 20px max(18px, calc(50% - 280px)) calc(26px + env(safe-area-inset-bottom, 0px)); pointer-events: none; background: var(--wax-2); box-shadow: 0 -1px 0 var(--wax-4); transform: translateY(calc(100% + 2px)); transition: transform 0.6s var(--spring-settle); }
.lq-slip.on { transform: none; }
body[data-look="lacquer"] .lq-slip { box-shadow: 0 -1px 0 var(--metal-hi); }
.lq-slip-title { font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1; font-size: 30px; line-height: 1.05; }
.lq-slip-sub { color: var(--dust); max-width: 34ch; }
@media (prefers-reduced-motion: reduce) { .lq-slip, .beam { transition: none; } }
@media (max-width: 380px) {
  body[data-look="lacquer"] .top .chip { padding: 9px 8px; }
  body[data-look="lacquer"] #label-chip { max-width: 6ch; }
}

/* ---------- the player: a pane of glass along the foot of a record (the long player, and Apple Music in full) ----------
   Glass, not chrome: it takes its colour from whatever is behind it, the photo's own glow included. The title is in
   the sleeve voice, large. The only red thing is the needle on the seek line. */
.glass {
  position: fixed; z-index: 25; left: 50%; translate: -50% 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(680px, calc(100vw - 24px));
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto auto; grid-template-rows: auto auto; gap: 4px 10px; align-items: center;
  padding: 10px 14px 12px 10px; border-radius: 30px; color: var(--paper);
  background: linear-gradient(180deg, rgba(242, 237, 227, 0.16), rgba(242, 237, 227, 0.06));
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(250, 247, 240, 0.34), inset 0 0 0 1px rgba(242, 237, 227, 0.12), 0 24px 50px -18px rgba(0, 0, 0, 0.85);
  animation: rise var(--d-settle, 600ms) var(--spring-settle) both;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(33, 30, 27, 0.96); } }
.glass-art { grid-row: 1 / 3; width: 54px; height: 54px; border-radius: 16px; background: var(--wax-3) center / cover; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); }
.glass-text { min-width: 0; }
.glass-title { font-family: var(--voice); font-style: italic; font-variation-settings: "opsz" 60, "wght" 420, "SOFT" 100, "WONK" 1; font-size: 1.32rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 3px; }
.glass-artist { color: rgba(242, 237, 227, 0.72); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-key { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--d-snap, 300ms) var(--spring-snap), background var(--t-fast); }
.glass-key svg { width: 13px; height: 13px; fill: currentColor; }
.glass-key:hover { background: rgba(242, 237, 227, 0.12); }
.glass-key:active { transform: scale(0.9); }
.glass-key.big { width: 48px; height: 48px; background: var(--paper); color: var(--ink); }
.glass-key.big svg { width: 15px; height: 15px; }
.glass-key .is-play, .glass[data-state="play"] .glass-key .is-off { display: none; }
.glass[data-state="play"] .glass-key .is-play { display: block; }
.glass-seek { grid-column: 2 / 5; position: relative; height: 14px; cursor: pointer; touch-action: none; }
.glass-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: rgba(242, 237, 227, 0.22); }
.glass-seek i { position: absolute; left: 0; top: 6px; height: 2px; border-radius: 1px; width: 0; background: var(--paper); }
.glass-seek b { position: absolute; top: 3px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--needle); }
.glass-flag { grid-column: 5; justify-self: end; font-size: 0.5rem; color: rgba(242, 237, 227, 0.6); }
body:not([data-view="record"]) .glass { display: none; }
/* room under the page for the glass, so the last button is never behind it */
body[data-glass] .record { padding-bottom: 96px; }
body[data-glass] .toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.lp-apple { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 520px; }
.lp-apple p { grid-column: 1 / 3; }
.lp-apple .btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
@media (max-width: 560px) { .glass { grid-template-columns: 46px minmax(0, 1fr) auto auto; } .glass-art { width: 46px; height: 46px; border-radius: 14px; } #glass-back { display: none; } .glass-seek { grid-column: 2 / 4; } .glass-flag { grid-column: 4; } .glass-title { font-size: 1.16rem; } }
@media (prefers-reduced-motion: reduce) { .glass { animation: none; } }
