/* Homepage cabinet: a 1987 TV and VCR between two cubbies of tapes.
   Tokens and the .rb-ext / .rb-cond voices live in site-header.css; .rb-key, .rb-btn and .rb-sr-only come from store.css.
   The TV screen is a playback surface, so scanlines and tape noise belong inside .rb-tv__screen and nowhere else. */

.rb-cabinet [hidden] { display: none !important; }
.rb-cabinet { padding-top: 0; }
.rb-cabinet__frame {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr);
  grid-template-areas: "new set also"; align-items: start;
  padding: 16px;
  background: linear-gradient(oklch(20% 0.014 50), oklch(13% 0.012 45));
  border: 1px solid oklch(90% 0.02 80 / 0.12);
  border-top: 10px solid oklch(17% 0.014 50);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.06), 0 34px 60px -30px oklch(0% 0 0 / 0.95);
}
.rb-cubby--new { grid-area: new; }
.rb-cubby--also { grid-area: also; }

/* ---------- Cubbies ---------- */
.rb-cubby {
  align-self: stretch; padding: 12px 12px 16px;
  background: oklch(9% 0.01 45);
  border: 1px solid oklch(0% 0 0 / 0.7);
  box-shadow: inset 0 14px 22px -6px oklch(0% 0 0 / 0.9), inset 0 -1px 0 var(--rb-line);
}
.rb-cubby__label { color: var(--rb-silver-dim); font-size: 8.5px; letter-spacing: 0.28em; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--rb-line); }
.rb-cubby__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; align-items: end; }
.rb-cubby__row > li { container-type: inline-size; }

/* ---------- Sleeves: sized from their own width (cqi), so one design works in every layout ---------- */
.rb-tape {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; gap: 5cqi;
  aspect-ratio: 11 / 20; padding: 8cqi 7cqi 6cqi 11cqi;
  background: var(--rb-stock);
  border: 1px solid oklch(90% 0.02 80 / 0.1);
  box-shadow: 0 1px 0 oklch(0% 0 0 / 0.7), 0 20px 30px -20px oklch(0% 0 0 / 0.95);
  color: var(--rb-paper); overflow: hidden;
  transition: transform 260ms var(--rb-ease), border-color 260ms var(--rb-ease);
}
.rb-tape::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: max(4px, 3.4cqi); z-index: 1;
  background: var(--rb-stock-edge); border-right: 1px solid oklch(90% 0.02 80 / 0.08);
}
.rb-tape > * { min-width: 0; }
#rb-store .rb-tape__hit { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
#rb-store .rb-tape__hit:focus-visible { outline: 2px solid var(--rb-coral); outline-offset: -3px; }
.rb-tape:has(.rb-tape__hit:is(:hover, :focus-visible)) { transform: translateY(-8px); border-color: var(--rb-line-strong); }
.rb-tape__out { position: relative; z-index: 4; text-decoration: none; }
.rb-tape__brand { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.rb-tape__brand .rb-ext { color: var(--rb-silver); font-size: clamp(6px, 5.4cqi, 8.5px); letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; }
.rb-tape__brand .rb-cond { color: var(--rb-silver-dim); white-space: nowrap; font-size: clamp(8px, 6cqi, 11.5px); }
.rb-tape__title { font: 400 clamp(15px, 14.5cqi, 34px) / 0.88 var(--rb-display); text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.rb-tape__line2 { display: block; }
.rb-tape__sub { font-size: clamp(11px, 6.4cqi, 13.5px); line-height: 1.4; color: var(--rb-silver); align-self: start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* Too narrow to read: keep the one-liner for screen readers, show the art instead. */
@container (max-width: 150px) {
  .rb-tape__foot .rb-ext { display: none; }
  .rb-tape__sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.rb-tape__art { position: relative; align-self: end; height: 38cqi; margin: 0 -7cqi 0 -11cqi; overflow: hidden; }
.rb-tape__art i { position: absolute; left: -12%; right: -12%; height: 14px; transform: skewY(-9deg); transform-origin: left center; }
.rb-tape__art i:nth-child(1) { top: 36%; background: var(--rb-coral); }
.rb-tape__art i:nth-child(2) { top: 36%; margin-top: 18px; height: 8px; background: linear-gradient(90deg, var(--rb-silver-deep), var(--rb-silver), var(--rb-silver-deep)); }
.rb-tape__art i:nth-child(3) { top: 36%; margin-top: 30px; height: 5px; background: var(--rb-coral-deep); }
.rb-tape__art b { position: absolute; right: 6cqi; bottom: -2px; font: 400 clamp(22px, 25cqi, 52px) / 1 var(--rb-ext); color: var(--rb-silver); letter-spacing: -0.02em; }
.rb-tape__foot { display: flex; align-items: center; gap: 4cqi; padding-top: 4cqi; border-top: 1px solid var(--rb-line); }
.rb-tape__foot .rb-ext { font-size: clamp(6px, 4.4cqi, 9px); color: var(--rb-silver-dim); white-space: nowrap; }
.rb-tape__foot .rb-cond { margin-left: auto; color: var(--rb-silver-dim); font-size: clamp(8px, 5.6cqi, 11.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rb-vhs {
  display: inline-block; padding: 2px 4px 1px; border: 1.5px solid var(--rb-silver);
  font: 900 italic clamp(7px, 5.2cqi, 11px) / 1 var(--rb-sans); font-variation-settings: "wdth" 90; letter-spacing: 0.02em; color: var(--rb-silver);
}

/* The tape is in the deck: an empty open box stays in the cubby. */
.rb-tape[data-out] { background: var(--rb-stock-edge); border-style: dashed; border-color: var(--rb-line-strong); box-shadow: inset 0 10px 18px oklch(0% 0 0 / 0.8); }
.rb-tape[data-out] > :not(.rb-tape__hit, .rb-tape__foot) { opacity: 0.08; }
.rb-tape[data-out] .rb-tape__foot { opacity: 0.6; }
.rb-tape[data-out]::after {
  content: "In deck"; position: absolute; left: 0; right: 0; top: 46%; z-index: 2; text-align: center;
  font: 400 clamp(7px, 6cqi, 10px) / 1 var(--rb-ext); letter-spacing: 0.24em; text-transform: uppercase; color: var(--rb-coral);
}
.rb-tape-ghost { position: fixed; z-index: 50; pointer-events: none; container-type: inline-size; }
.rb-tape-ghost .rb-tape { height: 100%; transition: none; }

/* b: coral (RB·01) */
.rb-tape--b { background: var(--rb-coral); color: var(--rb-coral-ink); border-color: oklch(0% 0 0 / 0.25); }
.rb-tape--b::before { background: var(--rb-coral-deep); border-right-color: oklch(0% 0 0 / 0.15); }
.rb-tape--b :is(.rb-tape__brand, .rb-tape__foot) :is(.rb-ext, .rb-cond), .rb-tape--b .rb-tape__sub { color: var(--rb-coral-ink); }
.rb-tape--b .rb-tape__foot { border-top-color: oklch(0% 0 0 / 0.25); }
.rb-tape--b .rb-vhs { border-color: var(--rb-coral-ink); color: var(--rb-coral-ink); }
.rb-tape--b .rb-tape__art i { transform: none; left: 0; right: 0; height: 6px; }
.rb-tape--b .rb-tape__art i:nth-child(1) { top: 28%; margin: 0; background: var(--rb-coral-ink); }
.rb-tape--b .rb-tape__art i:nth-child(2) { top: 28%; margin-top: 12px; height: 16px; background: var(--rb-paper); }
.rb-tape--b .rb-tape__art i:nth-child(3) { top: 28%; margin-top: 34px; height: 3px; background: var(--rb-coral-ink); }
.rb-tape--b .rb-tape__art b { color: var(--rb-coral-ink); right: 7cqi; bottom: 0; }

/* c: black halftone orb (RB·02) */
.rb-tape--c .rb-tape__art i { transform: none; left: auto; right: auto; margin: 0; }
.rb-tape--c .rb-tape__art i:nth-child(1) {
  top: 4%; right: -8px; width: 56%; aspect-ratio: 1; height: auto; border-radius: 50%;
  background: radial-gradient(circle, var(--rb-coral) 0 1.3px, transparent 1.8px) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(circle at 35% 35%, oklch(0% 0 0) 20%, transparent 72%); mask: radial-gradient(circle at 35% 35%, oklch(0% 0 0) 20%, transparent 72%);
}
.rb-tape--c .rb-tape__art i:nth-child(2) { top: 4%; right: -8px; width: 56%; aspect-ratio: 1; height: auto; border-radius: 50%; border: 2px solid var(--rb-silver); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(35deg); }
.rb-tape--c .rb-tape__art i:nth-child(3) { display: none; }
.rb-tape--c .rb-tape__art b { right: auto; left: 11cqi; font-size: clamp(14px, 13cqi, 26px); letter-spacing: 0.06em; bottom: 4px; }

/* d: cream bars (RB·03) */
.rb-tape--d { background: var(--rb-paper); color: var(--rb-paper-ink); border-color: oklch(0% 0 0 / 0.2); }
.rb-tape--d::before { background: oklch(84% 0.03 86); border-right-color: oklch(0% 0 0 / 0.1); }
.rb-tape--d :is(.rb-tape__brand, .rb-tape__foot) :is(.rb-ext, .rb-cond), .rb-tape--d .rb-tape__sub { color: var(--rb-paper-ink); }
.rb-tape--d .rb-tape__foot { border-top-color: oklch(0% 0 0 / 0.2); }
.rb-tape--d .rb-vhs { border-color: var(--rb-paper-ink); color: var(--rb-paper-ink); }
.rb-tape--d .rb-tape__art i { transform: none; top: 10%; bottom: 0; height: auto; margin: 0; left: auto; right: auto; }
.rb-tape--d .rb-tape__art i:nth-child(1) { left: 10.5cqi; width: 8.5cqi; background: var(--rb-coral); }
.rb-tape--d .rb-tape__art i:nth-child(2) { left: 22cqi; width: 3.8cqi; background: var(--rb-paper-ink); }
.rb-tape--d .rb-tape__art i:nth-child(3) { left: 28.5cqi; width: 12.4cqi; background: var(--rb-coral-deep); }
.rb-tape--d .rb-tape__art b { color: var(--rb-paper-ink); }

/* e: black chevrons (RB·04) */
.rb-tape--e .rb-tape__art i { transform: none; left: auto; right: -6px; height: 17%; width: 44%; margin: 0; clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 30% 50%); }
.rb-tape--e .rb-tape__art i:nth-child(1) { top: 2%; background: var(--rb-silver-deep); }
.rb-tape--e .rb-tape__art i:nth-child(2) { top: 23%; background: var(--rb-silver); }
.rb-tape--e .rb-tape__art i:nth-child(3) { top: 44%; background: var(--rb-coral); }
.rb-tape--e .rb-tape__art b { right: auto; left: 11cqi; bottom: 2px; color: var(--rb-coral); font-size: clamp(20px, 21cqi, 44px); }

/* f: black, wireframe globe (RB·05 Orbis) */
.rb-tape--f .rb-tape__art i { transform: none; margin: 0; left: auto; right: -4%; top: 2%; width: 58%; height: auto; aspect-ratio: 1; border-radius: 50%; background: none; border: 1.5px solid var(--rb-silver); }
.rb-tape--f .rb-tape__art i:nth-child(2) { transform: scaleX(0.42); }
.rb-tape--f .rb-tape__art i:nth-child(3) { transform: scaleY(0.2); border-color: var(--rb-coral); }
.rb-tape--f .rb-tape__art b { right: auto; left: 11cqi; }

/* g: silver stock, three frames of a timeline (RB·06 Vantage) */
.rb-tape--g { background: var(--rb-silver); color: var(--rb-paper-ink); border-color: oklch(0% 0 0 / 0.2); }
.rb-tape--g::before { background: oklch(66% 0.012 75); border-right-color: oklch(0% 0 0 / 0.12); }
.rb-tape--g :is(.rb-tape__brand, .rb-tape__foot) :is(.rb-ext, .rb-cond), .rb-tape--g .rb-tape__sub { color: var(--rb-paper-ink); }
.rb-tape--g .rb-tape__foot { border-top-color: oklch(0% 0 0 / 0.2); }
.rb-tape--g .rb-vhs { border-color: var(--rb-paper-ink); color: var(--rb-paper-ink); }
.rb-tape--g .rb-tape__art i { transform: none; margin: 0; top: 6%; height: 42%; width: 24%; right: auto; background: none; border: 1.5px solid var(--rb-paper-ink); }
.rb-tape--g .rb-tape__art i:nth-child(1) { left: 11cqi; }
.rb-tape--g .rb-tape__art i:nth-child(2) { left: calc(11cqi + 27%); background: var(--rb-coral); border-color: var(--rb-coral-deep); }
.rb-tape--g .rb-tape__art i:nth-child(3) { left: calc(11cqi + 54%); }
.rb-tape--g .rb-tape__art b { color: var(--rb-paper-ink); bottom: -4px; }

/* h: coral, striped sunset (RB·07 Solara) */
.rb-tape--h { background: var(--rb-coral); color: var(--rb-coral-ink); border-color: oklch(0% 0 0 / 0.25); }
.rb-tape--h::before { background: var(--rb-coral-deep); border-right-color: oklch(0% 0 0 / 0.15); }
.rb-tape--h :is(.rb-tape__brand, .rb-tape__foot) :is(.rb-ext, .rb-cond), .rb-tape--h .rb-tape__sub { color: var(--rb-coral-ink); }
.rb-tape--h .rb-tape__foot { border-top-color: oklch(0% 0 0 / 0.25); }
.rb-tape--h .rb-vhs { border-color: var(--rb-coral-ink); color: var(--rb-coral-ink); }
.rb-tape--h .rb-tape__art i { transform: none; margin: 0; }
.rb-tape--h .rb-tape__art i:nth-child(1) {
  left: 18%; right: auto; top: 4%; width: 64%; height: auto; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--rb-paper);
  -webkit-mask: repeating-linear-gradient(to bottom, oklch(0% 0 0) 0 18%, transparent 18% 26%); mask: repeating-linear-gradient(to bottom, oklch(0% 0 0) 0 18%, transparent 18% 26%);
}
.rb-tape--h .rb-tape__art i:nth-child(2) { left: 0; right: 0; top: 56%; height: 3px; background: var(--rb-coral-ink); }
.rb-tape--h .rb-tape__art i:nth-child(3) { display: none; }
.rb-tape--h .rb-tape__art b { color: var(--rb-coral-ink); font-size: clamp(16px, 16cqi, 32px); bottom: 2px; }

/* i: cream, ink ensō with a coral seal (RB·08 Kaiden) */
.rb-tape--i { background: var(--rb-paper); color: var(--rb-paper-ink); border-color: oklch(0% 0 0 / 0.2); }
.rb-tape--i::before { background: oklch(84% 0.03 86); border-right-color: oklch(0% 0 0 / 0.1); }
.rb-tape--i :is(.rb-tape__brand, .rb-tape__foot) :is(.rb-ext, .rb-cond), .rb-tape--i .rb-tape__sub { color: var(--rb-paper-ink); }
.rb-tape--i .rb-tape__foot { border-top-color: oklch(0% 0 0 / 0.2); }
.rb-tape--i .rb-vhs { border-color: var(--rb-paper-ink); color: var(--rb-paper-ink); }
.rb-tape--i .rb-tape__art i { transform: none; margin: 0; background: none; }
.rb-tape--i .rb-tape__art i:nth-child(1) { left: auto; right: 8%; top: 0; width: 36%; height: auto; aspect-ratio: 1; border-radius: 50%; border: max(3px, 2.6cqi) solid var(--rb-paper-ink); border-top-color: transparent; transform: rotate(-30deg); }
.rb-tape--i .rb-tape__art i:nth-child(2) { left: auto; right: 6%; top: 34%; width: 7cqi; height: 7cqi; background: var(--rb-coral-deep); }
.rb-tape--i .rb-tape__art i:nth-child(3) { display: none; }
.rb-tape--i .rb-tape__art b { right: auto; left: 11cqi; color: var(--rb-paper-ink); font-size: clamp(16px, 17cqi, 36px); }

/* ---------- The set ---------- */
.rb-set { grid-area: set; padding: 0 16px; display: grid; gap: 12px; container-type: inline-size; }
.rb-tv {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 10cqi; gap: 2.4cqi;
  padding: 2.6cqi 2.6cqi 5cqi;
  background: linear-gradient(165deg, oklch(26% 0.008 60), oklch(16% 0.008 55) 60%, oklch(13% 0.008 50));
  border-radius: 2.6cqi;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.12), inset 0 -2px 0 oklch(0% 0 0 / 0.6), 0 26px 40px -22px oklch(0% 0 0 / 0.95);
}
.rb-tv__bezel { padding: 2cqi; background: oklch(7% 0.006 50); border-radius: 2cqi; box-shadow: inset 0 3px 10px oklch(0% 0 0 / 0.95), 0 1px 0 oklch(100% 0 0 / 0.08); }
.rb-tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size;
  border-radius: 5% / 6.5%;
  background: radial-gradient(ellipse at 30% 22%, oklch(24% 0.012 200), oklch(10% 0.01 220) 70%);
}
.rb-tv__screen::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 6cqi oklch(0% 0 0 / 0.75); }
.rb-tv__canvas, .rb-tv__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rb-tv__video { object-fit: cover; opacity: 0; }
.rb-tv__screen--plain .rb-tv__video { opacity: 1; }
.rb-tv__screen--plain::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, oklch(0% 0 0 / 0.28) 2px 3px), radial-gradient(ellipse at center, transparent 55%, oklch(0% 0 0 / 0.55));
}
.rb-tv__blue { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 3cqi; text-align: center; background: oklch(44% 0.2 264); }
.rb-tv__blue::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, oklch(0% 0 0 / 0.18) 2px 3px); }
.rb-tv__blue .rb-osd { position: static; }
.rb-osd {
  position: absolute; z-index: 3; margin: 0;
  font: 800 clamp(11px, 5cqi, 26px) / 1.1 var(--rb-dots); letter-spacing: 0.06em; text-transform: uppercase;
  color: oklch(97% 0.03 150); text-shadow: 0 0 0.35em oklch(85% 0.12 150 / 0.7), 0.06em 0.06em 0 oklch(0% 0 0 / 0.6);
}
.rb-osd--tl { top: 7%; left: 7%; }
.rb-osd--tr { top: 7%; right: 7%; }
.rb-osd--bl { bottom: 7%; left: 7%; font-size: clamp(10px, 4cqi, 20px); }
.rb-tv__screen:has(.rb-tv__lower:not([hidden]), .rb-tv__end:not([hidden])) .rb-osd--bl { display: none; }
/* Captions ride above the lower-third while it is up. */
.rb-tv__screen:has(.rb-tv__lower:not([hidden])) .rb-tv__caption { bottom: 38%; }
.rb-tv__prompt { font-size: clamp(9px, 3.6cqi, 18px); }
.rb-tv__caption {
  position: absolute; z-index: 3; left: 50%; bottom: 12%; transform: translateX(-50%); max-width: 82%; margin: 0; padding: 0.2em 0.5em;
  background: oklch(0% 0 0); color: oklch(98% 0 0); text-align: center;
  font: 700 clamp(11px, 3.6cqi, 19px) / 1.3 var(--rb-sans); text-transform: uppercase; letter-spacing: 0.03em;
}
.rb-tv__lower {
  position: absolute; z-index: 4; left: 5%; right: 5%; bottom: 6%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 3cqi; align-items: center;
  padding: 2.2cqi 3cqi; background: oklch(8% 0.01 45 / 0.86); border-top: 2px solid var(--rb-coral);
  animation: rb-lower-in 420ms var(--rb-ease) both;
}
.rb-tv__title { font: 400 clamp(16px, 5.4cqi, 30px) / 0.95 var(--rb-display); color: var(--rb-paper); text-transform: uppercase; letter-spacing: 0.02em; }
.rb-tv__sub { grid-column: 1; font-size: clamp(10px, 2.8cqi, 14px); line-height: 1.35; color: var(--rb-silver); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rb-tv__lower .rb-btn { grid-column: 2; grid-row: 1 / span 2; padding: 1.6cqi 2.4cqi; font-size: clamp(9px, 2.6cqi, 13px); }
@keyframes rb-lower-in { from { opacity: 0; transform: translateY(12px); } }
.rb-tv__end {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 4cqi; text-align: center; padding: 8%;
  background-color: oklch(8% 0.01 45); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 100vmax oklch(8% 0.01 45 / 0.72);
}
.rb-tv__end .rb-tv__title { font-size: clamp(20px, 8cqi, 44px); }
.rb-tv__end-actions { display: flex; flex-wrap: wrap; gap: 2cqi; justify-content: center; }
.rb-tv__end .rb-btn { padding: 1.8cqi 2.8cqi; font-size: clamp(10px, 2.8cqi, 13px); }
.rb-tv__side { display: flex; flex-direction: column; align-items: center; gap: 2.4cqi; padding-top: 1cqi; }
.rb-tv__channel { font: 800 clamp(11px, 3.4cqi, 18px) / 1 var(--rb-dots); color: var(--rb-vfd); background: var(--rb-vfd-bg); padding: 0.3em 0.4em; border: 1px solid oklch(0% 0 0 / 0.8); }
.rb-tv__knob { width: 6.4cqi; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, oklch(78% 0.01 80), oklch(42% 0.01 70) 48%, oklch(20% 0.01 60)); box-shadow: 0 2px 4px oklch(0% 0 0 / 0.8), inset 0 -2px 3px oklch(0% 0 0 / 0.5); }
.rb-tv__grille { flex: 1; width: 6.4cqi; min-height: 12cqi; background: repeating-linear-gradient(to bottom, oklch(9% 0.006 50) 0 2px, oklch(22% 0.008 55) 2px 4px); border-radius: 2px; }
.rb-tv__power { width: 1.4cqi; aspect-ratio: 1; border-radius: 50%; background: var(--rb-coral); box-shadow: 0 0 8px var(--rb-coral); }
.rb-tv__badge { position: absolute; left: 4cqi; bottom: 1.6cqi; margin: 0; color: var(--rb-silver-dim); font-size: clamp(6px, 1.6cqi, 9px); letter-spacing: 0.4em; }

/* ---------- The VCR ---------- */
.rb-vcr {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "model slot display" "keys keys keys"; gap: 2cqi 2.4cqi; align-items: center;
  padding: 2cqi 2.6cqi 2.4cqi;
  background: linear-gradient(oklch(25% 0.008 65), oklch(18% 0.008 60) 55%, oklch(15% 0.008 55));
  border: 1px solid oklch(0% 0 0 / 0.7); border-radius: 0.8cqi;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.1), 0 18px 28px -18px oklch(0% 0 0 / 0.95);
}
.rb-vcr__model { grid-area: model; display: grid; gap: 2px; }
.rb-vcr__model .rb-ext { color: var(--rb-paper); font-size: clamp(9px, 2cqi, 11px); }
.rb-vcr__model .rb-cond { color: var(--rb-silver-dim); font-size: clamp(8px, 1.8cqi, 10px); }
.rb-vcr__slot { grid-area: slot; height: clamp(18px, 4.4cqi, 26px); display: grid; padding: 4px 8px; background: linear-gradient(oklch(4% 0 0), oklch(11% 0.008 50)); border-radius: 2px; box-shadow: inset 0 2px 4px oklch(0% 0 0), 0 1px 0 oklch(100% 0 0 / 0.08); }
.rb-vcr__slot i { background: oklch(14% 0.008 50); border-top: 1px solid oklch(32% 0.01 60); border-radius: 1px; }
.rb-vcr__display {
  grid-area: display; min-width: 9ch; padding: 0.35em 0.6em; text-align: right; white-space: nowrap;
  background: var(--rb-vfd-bg); border: 1px solid oklch(0% 0 0 / 0.8); box-shadow: inset 0 2px 6px oklch(0% 0 0 / 0.85);
  color: var(--rb-vfd); font: 800 clamp(12px, 2.8cqi, 17px) / 1 var(--rb-dots); letter-spacing: 0.06em;
}
.rb-vcr__keys { grid-area: keys; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.rb-vcr__keys .rb-key { padding: 9px 4px 7px; }
.rb-vcr__keys .rb-key small { font-size: 9px; letter-spacing: 0.1em; }
.rb-key__icon { display: block; width: 0.8em; height: 0.8em; margin: 0.1em auto 0; }
.rb-vcr__keys .rb-key[aria-pressed="true"] { border-color: var(--rb-coral); color: var(--rb-coral); }
.rb-vcr__keys .rb-key[aria-disabled="true"] { opacity: 0.4; cursor: default; pointer-events: none; }
#rb-store .rb-key--visit { color: var(--rb-coral); }
html:not(.rb-js) :is(.rb-vcr__keys, .rb-tv__js), .rb-cabinet[data-empty] :is(.rb-vcr__keys, .rb-tv__js) { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rb-cabinet__frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "set" "new" "also"; gap: 16px; }
  .rb-set { padding: 0; max-width: 720px; width: 100%; justify-self: center; }
  .rb-cubby__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rb-cabinet__frame { padding: 10px; }
  .rb-cubby { padding: 10px 0 12px; }
  .rb-cubby__label { margin: 0 10px 10px; }
  .rb-cubby__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 10px 6px; scrollbar-width: none; }
  .rb-cubby__row::-webkit-scrollbar { display: none; }
  /* Two and a half sleeves per row on a phone, so the half-cut one says the row scrolls. */
  .rb-cubby__row > li { flex: 0 0 min(calc((100% - 20px) / 2.5), 180px); scroll-snap-align: start; }
  .rb-vcr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "model display" "slot slot" "keys keys"; }
  .rb-vcr__keys { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
