/* Hard Copy — component styles. Real things: every part has a face, a side wall and a cast shadow.
   Keys travel down when pressed. Recesses are cut in. Screens are glass. Every value is a token. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ra-band: var(--band-sm);
  --ra-sheen: linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,0) 55%);
  --ra-ridges: repeating-linear-gradient(to bottom, rgba(255,255,255,0) 0 3px, rgba(255,255,255,.04) 3px 4px);
  --ra-glare: linear-gradient(115deg, rgba(255,255,255,.13) 0 20%, rgba(255,255,255,0) 20.4%);
  /* Static surface grain: grey noise drawn by the browser. Sits under the content, never over text. */
  --ra-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  /* A thing with thickness lying on the table: top highlight, side wall, cast shadow */
  --ra-thick: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side), 0 2px 0 var(--side), 0 3px 0 var(--side), 0 4px 0 var(--side-lo), var(--cast-md);
  /* A sheet of paper or thin card */
  --ra-thin: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side-lo), var(--cast-xs);
}
@media (min-width: 600px) { :root { --ra-band: var(--band-md); } }
@media (min-width: 900px) { :root { --ra-band: var(--band-lg); } }
body { margin: 0; padding: var(--space-4); background-color: var(--sleeve); background-image: var(--ra-grain); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }

/* The wide display face */
.display-xl, .display-lg, .display-md, .length-mark, .series, .ra-mark, .ra-series { font-family: var(--font-display); font-stretch: 125%; }
.ra-mark { margin: 0; font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.ra-mark--lg { font-size: 56px; }
.ra-series { margin: 0; font-weight: 800; font-style: italic; font-size: 20px; line-height: 24px; }
.ra-fineprint { margin: 0; font-family: var(--font-label); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }

.ra-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.ra-stack { display: flex; flex-direction: column; gap: var(--space-4); }
/* Layout — mobile first. Base styles are the phone; each min-width step adds room.
   Breakpoints (tokens bp-sm, bp-md, bp-lg, bp-xl): 600px, 900px, 1200px, 1536px. */
.ra-page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-4); }
.ra-section { margin-top: var(--space-8); }
.ra-grid { display: grid; gap: var(--space-6) var(--space-4); grid-template-columns: minmax(0, 1fr); }
.ra-grid--tight { gap: var(--space-4) var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ra-split { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  body { padding: var(--space-6); }
  .ra-page { padding: 0 var(--space-6); }
  .ra-grid { gap: var(--space-8) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-grid--tight { gap: var(--space-6) var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ra-page { padding: 0 var(--space-8); }
  .ra-section { margin-top: var(--space-12); }
  .ra-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-grid--tight { gap: var(--space-8) var(--space-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .ra-page { padding: 0 var(--space-12); }
  .ra-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ra-grid--tight { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ra-split { gap: var(--space-8); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1536px) {
  .ra-page { max-width: var(--page-max-wide); }
  .ra-grid--tight { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.ra-label { font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.ra-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.ra-btn:focus-visible, .ra-tbtn:focus-visible, .ra-tab:focus-visible, .ra-input:focus-visible, .ra-select:focus-visible,
.ra-qty__btn:focus-visible, .ra-nav__link:focus-visible, .ra-nav__brand:focus-visible, .ra-vcard:focus-visible, .ra-link:focus-visible,
.ra-slider:focus-visible, .ra-check input:focus-visible, .ra-toggle input:focus-visible + .ra-toggle__track,
.ra-bottombar__item:focus-visible, .ra-track__title a:focus-visible, .ra-album__title a:focus-visible,
.ra-action:focus-visible, .ra-sheet__item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* StripeBand — printed on things. Flat bands, hard edges, no gaps, even though the thing it is printed on has depth. */
.ra-stripes { display: block; flex: none; height: calc(var(--ra-band) * 5); background: linear-gradient(to bottom,
  var(--stripe-yellow) 0 calc(var(--ra-band) * 1), var(--stripe-gold) 0 calc(var(--ra-band) * 2), var(--stripe-orange) 0 calc(var(--ra-band) * 3),
  var(--stripe-redorange) 0 calc(var(--ra-band) * 4), var(--stripe-red) 0); }
.ra-stripes--neon { background: linear-gradient(to bottom,
  var(--yellow) 0 calc(var(--ra-band) * 1), var(--lime) 0 calc(var(--ra-band) * 2), var(--cyan) 0 calc(var(--ra-band) * 3),
  var(--pink) 0 calc(var(--ra-band) * 4), var(--purple) 0); }
.ra-stripes--signal { height: calc(var(--ra-band) * 3); background: linear-gradient(to bottom,
  var(--pink) 0 calc(var(--ra-band) * 1), var(--yellow) 0 calc(var(--ra-band) * 2), var(--cyan) 0); }
.ra-stripes--full { height: calc(var(--ra-band) * 12); background: linear-gradient(to bottom,
  var(--stripe-yellow) 0 calc(var(--ra-band) * 1), var(--stripe-gold) 0 calc(var(--ra-band) * 2), var(--stripe-orange) 0 calc(var(--ra-band) * 3),
  var(--stripe-redorange) 0 calc(var(--ra-band) * 4), var(--stripe-red) 0 calc(var(--ra-band) * 5), var(--stripe-magenta) 0 calc(var(--ra-band) * 6),
  var(--stripe-violet) 0 calc(var(--ra-band) * 7), var(--stripe-indigo) 0 calc(var(--ra-band) * 8), var(--stripe-navy) 0 calc(var(--ra-band) * 9),
  var(--stripe-blue) 0 calc(var(--ra-band) * 10), var(--stripe-teal) 0 calc(var(--ra-band) * 11), var(--stripe-cyan) 0); }
.ra-stripes--thin { --ra-band: var(--band-thin); }
/* A band on its own: a strip of printed card lying on the table */
.ra-stripes--ruled { border-radius: var(--radius-sm); box-shadow: 0 1px 0 var(--side), 0 2px 0 var(--side-lo), var(--cast-xs); }

/* Keys — every pressable part. A face on a side wall; pressing pushes the face down the wall. */
.ra-btn, .ra-tbtn, .ra-qty__btn, .ra-action {
  --ra-side: var(--side); --ra-travel: 4px;
  border: 1px solid var(--rule); border-radius: var(--radius-md); background-color: var(--card); background-image: var(--ra-sheen); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--gloss), inset 0 -1px 0 var(--shade), 0 var(--ra-travel) 0 var(--ra-side), 0 calc(var(--ra-travel) + 1px) 0 var(--side-lo), var(--cast-sm);
  cursor: pointer; transition: transform .07s ease-out, box-shadow .07s ease-out; }
.ra-btn:active, .ra-btn[aria-pressed="true"], .ra-tbtn:active, .ra-tbtn[aria-pressed="true"], .ra-qty__btn:active, .ra-action:active, .ra-action[aria-pressed="true"] {
  transform: translateY(calc(var(--ra-travel) - 1px)); background-image: none;
  box-shadow: inset 0 2px 3px var(--shade), 0 1px 0 var(--ra-side), 0 2px 0 var(--side-lo), 0 2px 2px rgba(0,0,0,.2); }

/* Button */
.ra-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-6); font-family: var(--font-label); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ra-btn[aria-pressed="true"] { background-color: var(--well); }
.ra-btn--primary { background-color: var(--accent); color: var(--on-accent); --ra-side: var(--pink-side); }
.ra-btn--cyan { background-color: var(--cyan); color: var(--on-cyan); --ra-side: var(--cyan-side); }
.ra-btn--lime { background-color: var(--lime); color: var(--on-lime); --ra-side: var(--lime-side); }
.ra-btn--yellow { background-color: var(--yellow); color: var(--on-yellow); --ra-side: var(--yellow-side); }
.ra-btn--purple { background-color: var(--purple); color: var(--on-purple); --ra-side: var(--purple-side); }
.ra-btn--ghost, .ra-btn--ghost:active { border-color: rgba(0,0,0,0); background: none; box-shadow: none; transform: none; color: var(--link); text-decoration: underline; text-underline-offset: 4px; padding: 0 var(--space-3); }
.ra-btn--sm { --ra-travel: 3px; height: 36px; padding: 0 var(--space-4); font-size: 13px; }
.ra-btn--lg { --ra-travel: 5px; height: 52px; padding: 0 var(--space-8); font-size: 17px; }
.ra-btn--block { display: flex; width: 100%; }
/* Disabled: the key is stuck down flush, with nothing left to press */
.ra-btn:disabled, .ra-btn[aria-disabled="true"], .ra-qty__btn:disabled { border-style: dashed; background-color: var(--well); background-image: none; color: var(--ink-muted); box-shadow: inset 0 1px 2px var(--shade); transform: translateY(3px); cursor: not-allowed; }

/* TransportButton — deck keys */
.ra-transport { display: inline-flex; align-items: flex-start; gap: var(--space-2); padding-bottom: 6px; }
.ra-tbtn { --ra-travel: 5px; display: inline-grid; place-items: center; width: 48px; height: 44px; padding: 0; flex: none; }
.ra-tbtn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.ra-tbtn[aria-pressed="true"] { background-color: var(--well); }
.ra-tbtn--play { width: 64px; height: 56px; background-color: var(--accent); color: var(--on-accent); --ra-side: var(--pink-side); }
.ra-tbtn--play[aria-pressed="true"] { background-color: var(--accent); }
.ra-tbtn--play svg { width: 28px; height: 28px; }
.ra-tbtn--rec { background-color: var(--pink); color: var(--on-pink); --ra-side: var(--pink-side); }
.ra-tbtn--sm { --ra-travel: 3px; width: 36px; height: 34px; }
.ra-tbtn--sm svg { width: 16px; height: 16px; }

/* TextField — a recessed write-on label */
.ra-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 220px; }
.ra-field__label { font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ra-input, .ra-select { width: 100%; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--well); color: var(--ink); box-shadow: var(--recess), 0 1px 0 var(--gloss); font-family: var(--font-body); font-size: 16px; line-height: 24px; }
.ra-input::placeholder { color: var(--ink-muted); opacity: 1; }
.ra-input--area { height: auto; min-height: 96px; padding: var(--space-2) var(--space-4); line-height: 28px; resize: vertical; background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 27px, var(--shade) 27px 28px); background-position: 0 var(--space-2); background-attachment: local; }
.ra-selectwrap { position: relative; }
.ra-select { appearance: none; -webkit-appearance: none; padding-right: var(--space-8); cursor: pointer; }
.ra-selectwrap::after { content: ""; position: absolute; right: var(--space-4); top: 50%; margin-top: -3px; border: 6px solid rgba(0,0,0,0); border-top-color: var(--ink); border-bottom-width: 0; pointer-events: none; }
.ra-field__help { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.ra-field--error .ra-input, .ra-field--error .ra-select { border: 2px solid var(--danger); }
.ra-field--error .ra-field__help { color: var(--danger); }

/* Toggle — a slide switch: a ridged cap in a slot, with OFF and ON printed in the slot */
.ra-toggle { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.ra-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ra-toggle__track { position: relative; flex: none; width: 70px; height: 32px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--well); box-shadow: var(--recess), 0 1px 0 var(--gloss); }
.ra-toggle__track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 30px; height: 24px; border: 1px solid var(--rule); border-radius: 4px; background-color: var(--card); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 4px, var(--shade) 4px 6px); box-shadow: inset 0 1px 0 var(--gloss), 0 2px 0 var(--side), 0 3px 0 var(--side-lo), 0 4px 3px rgba(0,0,0,.3); transition: transform .12s ease-out; }
.ra-toggle__track::after { content: "OFF"; position: absolute; top: 0; bottom: 0; right: 6px; display: grid; place-items: center; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--ink); }
.ra-toggle input:checked + .ra-toggle__track { background: var(--lime); }
.ra-toggle input:checked + .ra-toggle__track::before { transform: translateX(34px); }
.ra-toggle input:checked + .ra-toggle__track::after { content: "ON"; right: auto; left: 9px; color: var(--on-lime); }
.ra-toggle input:disabled + .ra-toggle__track { border-style: dashed; box-shadow: none; }
.ra-toggle input:disabled + .ra-toggle__track::before { box-shadow: none; background-image: none; background-color: var(--well); border-style: dashed; }
.ra-toggle input:disabled + .ra-toggle__track::after { color: var(--ink-muted); }

/* Checkbox and radio — a recessed box; ticking it drops a pink cap in */
.ra-check { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.ra-check input { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--well); box-shadow: var(--recess), 0 1px 0 var(--gloss); cursor: pointer; }
.ra-check input::after { content: ""; width: 13px; height: 7px; border-left: 4px solid var(--on-accent); border-bottom: 4px solid var(--on-accent); transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.ra-check input:checked { background-color: var(--accent); background-image: var(--ra-sheen); box-shadow: inset 0 1px 0 var(--gloss), 0 2px 0 var(--pink-side), 0 3px 2px rgba(0,0,0,.25); }
.ra-check input:checked::after { opacity: 1; }
.ra-check input[type="radio"] { border-radius: var(--radius-round); }
.ra-check input[type="radio"]::after { width: 10px; height: 10px; border: 0; border-radius: var(--radius-round); background: var(--on-accent); transform: none; }

/* Slider — a fader: a cap with a pink centre line riding in a slot */
.ra-slider { appearance: none; -webkit-appearance: none; width: 100%; height: 32px; margin: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); }
.ra-slider::-webkit-slider-runnable-track { height: 10px; border: 1px solid var(--rule); border-radius: var(--radius-round); background: linear-gradient(to right, var(--cyan) var(--ra-value, 50%), var(--well) var(--ra-value, 50%)); box-shadow: var(--recess); }
.ra-slider::-moz-range-track { height: 8px; border: 1px solid var(--rule); border-radius: var(--radius-round); background: var(--well); }
.ra-slider::-moz-range-progress { height: 8px; border-radius: var(--radius-round); background: var(--cyan); }
.ra-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 28px; margin-top: -11px; border: 1px solid var(--rule); border-radius: 4px; background: linear-gradient(90deg, var(--card) 0 40%, var(--pink) 40% 60%, var(--card) 60%); box-shadow: inset 0 1px 0 var(--gloss), 0 2px 0 var(--side), 0 3px 0 var(--side-lo), 0 5px 4px rgba(0,0,0,.35); }
.ra-slider::-moz-range-thumb { width: 20px; height: 28px; border: 1px solid var(--rule); border-radius: 4px; background: linear-gradient(90deg, var(--card) 0 40%, var(--pink) 40% 60%, var(--card) 60%); box-shadow: inset 0 1px 0 var(--gloss), 0 2px 0 var(--side), 0 3px 0 var(--side-lo), 0 5px 4px rgba(0,0,0,.35); }

/* Tabs — index tabs with real height. The selected tab stands taller and joins the surface below it. */
.ra-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; display: flex; align-items: flex-end; gap: 2px; padding: 4px 4px 0; box-shadow: inset 0 -1px 0 var(--rule); }
.ra-tab { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--well); color: var(--ink); box-shadow: inset 0 1px 0 var(--gloss), inset 0 -5px 5px -3px var(--shade); font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ra-tab[aria-selected="true"] { height: 42px; border-bottom-color: var(--sleeve); background: var(--sleeve); font-weight: 700; box-shadow: inset 0 4px 0 var(--pink), inset 0 5px 0 var(--gloss); }
.ra-tab[aria-selected="true"]::before { content: ""; width: 8px; height: 8px; background: var(--ink); }

/* Badge — stickers. LED — a small lit lamp. */
.ra-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border: 1px solid var(--rule); border-radius: var(--radius-sticker); background-color: var(--card); background-image: var(--ra-sheen); color: var(--ink); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side-lo), 0 2px 3px rgba(0,0,0,.2); font-family: var(--font-label); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ra-badge--pink { background-color: var(--pink); color: var(--on-pink); }
.ra-badge--cyan { background-color: var(--cyan); color: var(--on-cyan); }
.ra-badge--lime { background-color: var(--lime); color: var(--on-lime); }
.ra-badge--yellow { background-color: var(--yellow); color: var(--on-yellow); }
.ra-badge--purple { background-color: var(--purple); color: var(--on-purple); }
.ra-badge--ink { background-color: var(--shell); color: var(--shell-ink); }
.ra-led { flex: none; display: inline-block; width: 10px; height: 10px; border: 1px solid var(--shell-lo); border-radius: var(--radius-round); background-color: var(--shell-hi); background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75) 0 14%, rgba(255,255,255,0) 45%); }
.ra-led--pink { background-color: var(--pink); box-shadow: var(--glow-pink); }
.ra-led--cyan { background-color: var(--cyan); box-shadow: var(--glow-cyan); }
.ra-led--lime { background-color: var(--lime); box-shadow: var(--glow-lime); }
.ra-led--yellow { background-color: var(--yellow); }
.ra-led--danger { background-color: var(--stripe-red); }

/* Readout — a display window: dark glass set into the surface, digits lit from behind */
.ra-readout { display: inline-flex; align-items: baseline; gap: var(--space-2); padding: 2px var(--space-2); border: 1px solid var(--shell-lo); border-radius: 4px; background-color: var(--screen); background-image: var(--ra-glare); box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 var(--gloss); color: var(--lime); text-shadow: 0 0 6px color-mix(in srgb, currentColor 55%, rgba(0,0,0,0)); font-family: var(--font-readout); font-size: 22px; line-height: 24px; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-readout--lg { padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: 40px; line-height: 40px; }
.ra-readout--pink { color: var(--pink); }
.ra-readout--cyan { color: var(--cyan); }
.ra-readout--yellow { color: var(--yellow); }
.ra-readout--cream { color: var(--screen-ink); }
.ra-readout__unit { font-family: var(--font-label); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--screen-ink-muted); text-shadow: none; }

/* Panel — a paper label lying on the surface */
.ra-panel { position: relative; overflow: hidden; padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thin); }
@media (min-width: 600px) { .ra-panel { padding: var(--space-6); } }
.ra-panel--sunken { background: var(--well); box-shadow: var(--recess), 0 1px 0 var(--gloss); }
.ra-panel--striped { padding-top: calc(var(--space-4) + var(--band-thin) * 3); }
.ra-panel--striped::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--band-thin) * 3); background: linear-gradient(to bottom, var(--pink) 0 var(--band-thin), var(--yellow) 0 calc(var(--band-thin) * 2), var(--cyan) 0); }
@media (min-width: 600px) { .ra-panel--striped { padding-top: calc(var(--space-6) + var(--band-thin) * 3); } }
.ra-panel__label { margin: 0 0 var(--space-3); font-family: var(--font-label); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ra-panel > :last-child { margin-bottom: 0; }

/* SpecTable — the "tape recording time" table, printed on a label */
.ra-spec { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 2px 0 var(--side-lo), var(--cast-xs); font-size: 14px; line-height: 20px; }
.ra-spec caption { padding: 0 0 var(--space-2); text-align: left; font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.ra-spec th, .ra-spec td { padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.ra-spec th { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ra-spec thead th { background: var(--shell); color: var(--shell-ink); }
.ra-spec td { font-family: var(--font-label); font-weight: 700; font-size: 17px; letter-spacing: .04em; }

/* Screen — picture glass in a black plastic bezel. Glare and scan lines are still, and sit on the picture only. */
.ra-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 6px solid var(--shell); border-radius: var(--radius-md); background: var(--screen); color: var(--screen-ink); box-shadow: 0 0 0 1px var(--shell-lo), 0 1px 0 1px var(--gloss); }
.ra-screen::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--ra-glare); box-shadow: inset 0 3px 8px rgba(0,0,0,.65), inset 0 0 0 1px rgba(0,0,0,.6); }
.ra-screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.07) 2px 3px); }
.ra-screen img, .ra-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-testcard { position: absolute; inset: 0; background: linear-gradient(90deg, var(--screen-ink) 0 14.28%, var(--yellow) 0 28.57%, var(--cyan) 0 42.85%, var(--lime) 0 57.14%, var(--pink) 0 71.42%, var(--stripe-red) 0 85.71%, var(--stripe-blue) 0); }
.ra-screen__time { position: absolute; z-index: 2; right: var(--space-2); bottom: var(--space-2); }
.ra-screen__flag { position: absolute; z-index: 2; left: var(--space-2); top: var(--space-2); }
.ra-screen--blue { background: var(--blue-screen); color: var(--osd-ink); }
/* OSD — on-screen display text, only inside a screen */
.ra-osd { position: absolute; z-index: 2; margin: 0; color: var(--osd-ink); font-family: var(--font-readout); font-size: 20px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--osd-edge); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-osd--tl { left: 5%; top: 7%; } .ra-osd--tr { right: 5%; top: 7%; }
.ra-osd--bl { left: 5%; bottom: 7%; } .ra-osd--br { right: 5%; bottom: 7%; }
.ra-osd--center { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; white-space: normal; }
@media (min-width: 600px) { .ra-osd { font-size: 28px; } }

/* VideoCard — a cardboard tape sleeve with the tape showing at its open end. It is a link: it lifts on hover and presses flat. */
.ra-vcard { position: relative; display: flex; flex-direction: column; margin-right: 9px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thick); color: var(--ink); text-decoration: none; transition: transform .1s ease-out, box-shadow .1s ease-out; }
.ra-vcard::after { content: ""; position: absolute; top: 7px; bottom: 3px; right: -10px; width: 9px; border-radius: 0 3px 3px 0; background-color: var(--shell); background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0) 0 5px, rgba(255,255,255,.1) 5px 6px); box-shadow: inset -1px 0 0 var(--shell-hi), 0 3px 0 var(--shell-lo), var(--cast-sm); }
@media (hover: hover) { .ra-vcard:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side), 0 2px 0 var(--side), 0 3px 0 var(--side), 0 4px 0 var(--side-lo), var(--cast-lg); } }
.ra-vcard:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side-lo), 0 2px 2px rgba(0,0,0,.25); }
.ra-vcard .ra-screen { border: 0; border-bottom: 1px solid var(--rule); border-radius: 2px 2px 0 0; box-shadow: none; }
.ra-vcard__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); }
.ra-vcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.ra-vcard__title, .ra-pcard__name { margin: 0; font-family: var(--font-label); font-weight: 700; font-size: 22px; line-height: 26px; letter-spacing: .02em; text-transform: uppercase; }
.ra-vcard__meta { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }

/* VideoPlayer — a black plastic set: the screen in its body, keys along the bottom */
.ra-player { display: flex; flex-direction: column; gap: var(--space-2); max-width: 960px; padding: var(--space-2); border-radius: var(--radius-lg); background-color: var(--shell); background-image: var(--ra-ridges); color: var(--shell-ink); box-shadow: inset 0 1px 0 var(--shell-hi), inset 0 -2px 0 var(--shell-lo), 0 4px 0 var(--shell-lo), var(--cast-md); }
.ra-player .ra-screen { border-width: 2px; border-color: var(--shell-lo); box-shadow: 0 1px 0 var(--shell-hi); }
.ra-player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-1); }
.ra-player__bar .ra-slider { order: -1; flex: 1 1 100%; min-width: 0; }
.ra-player .ra-slider::-webkit-slider-runnable-track, .ra-miniplayer .ra-slider::-webkit-slider-runnable-track { border-color: var(--shell-lo); background: linear-gradient(to right, var(--cyan) var(--ra-value, 50%), var(--shell-lo) var(--ra-value, 50%)); box-shadow: 0 1px 0 var(--shell-hi); }
.ra-player .ra-slider::-moz-range-track, .ra-miniplayer .ra-slider::-moz-range-track { border-color: var(--shell-lo); background: var(--shell-lo); }
@media (min-width: 600px) {
  .ra-player { gap: var(--space-3); padding: var(--space-3); }
  .ra-player__bar { flex-wrap: nowrap; gap: var(--space-4); padding: var(--space-1) var(--space-2); }
  .ra-player__bar .ra-slider { order: 0; flex: 1; }
}

/* NavBar — a strip of sleeve card along the top, with the three-band stripe printed along its bottom edge */
.ra-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) calc(var(--space-3) + var(--band-thin) * 3); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: linear-gradient(to top, var(--cyan) 0 var(--band-thin), var(--yellow) 0 calc(var(--band-thin) * 2), var(--pink) 0 calc(var(--band-thin) * 3), var(--card) 0); box-shadow: var(--ra-thick); }
.ra-nav__brand { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ra-nav .ra-btn--sm { padding: 0 var(--space-3); }
.ra-nav__links { display: none; order: 10; flex: 1 1 100%; flex-direction: column; gap: var(--space-1); margin: 0; padding: var(--space-2) 0 0; list-style: none; border-top: 1px solid var(--rule); }
.ra-nav--open .ra-nav__links { display: flex; }
.ra-nav__cta { display: none; }
@media (min-width: 600px) {
  .ra-nav { gap: var(--space-4); padding: var(--space-3) var(--space-4) calc(var(--space-4) + var(--band-thin) * 3); }
  .ra-nav__brand { font-size: 20px; }
  .ra-nav .ra-btn--sm { padding: 0 var(--space-4); }
  .ra-nav__cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .ra-nav { flex-wrap: nowrap; gap: var(--space-6); padding-left: var(--space-6); padding-right: var(--space-6); }
  .ra-nav__brand { flex: 0 0 auto; }
  .ra-nav__links, .ra-nav--open .ra-nav__links { display: flex; order: 0; flex: 0 1 auto; flex-direction: row; gap: var(--space-2); margin: 0 auto 0 0; padding: 0; border-top: 0; }
  .ra-nav__menu { display: none; }
}
.ra-nav__link { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3); border: 1px solid rgba(0,0,0,0); border-radius: var(--radius-md); color: var(--ink); font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ra-nav__link:hover { border-color: var(--rule); }
/* The current page is a key that is held down */
.ra-nav__link[aria-current="page"] { border-color: var(--rule); background: var(--well); font-weight: 700; box-shadow: var(--recess), 0 1px 0 var(--gloss); }

/* ProductCard — a boxed product on the shelf */
.ra-pcard { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thick); }
.ra-pcard__photo { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; margin: var(--space-2) var(--space-2) 0; border: 1px solid var(--rule); border-radius: 2px; background: var(--well); box-shadow: var(--recess); color: var(--ink-muted); }
.ra-pcard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-pcard__flag { position: absolute; left: var(--space-2); top: var(--space-2); }
.ra-pcard__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3); }
.ra-pcard__name { font-size: 18px; line-height: 22px; }
.ra-vcard__title, .ra-album__title { font-size: 20px; line-height: 24px; }
@media (min-width: 600px) {
  .ra-pcard__name { font-size: 20px; line-height: 24px; }
  .ra-vcard__title, .ra-album__title { font-size: 22px; line-height: 26px; }
}
.ra-pcard__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.ra-pcard .ra-btn { margin-bottom: 5px; }
.ra-grid--tight .ra-pcard .ra-btn { padding: 0 var(--space-2); font-size: 13px; }
.ra-pcard__status { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); display: inline-flex; align-items: center; gap: var(--space-2); }
.ra-pcard__sku { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--rule); }
.ra-barcode { flex: none; width: 64px; height: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, rgba(0,0,0,0) 2px 4px, var(--ink) 4px 5px, rgba(0,0,0,0) 5px 8px, var(--ink) 8px 11px, rgba(0,0,0,0) 11px 13px); }
/* The price tag: a sticker with a punched hole, slightly lifted */
.ra-price { display: inline-block; padding: 0 var(--space-2) 0 20px; border: 1px solid var(--rule); border-radius: var(--radius-sticker); background-color: var(--yellow); background-image: radial-gradient(circle at 10px 50%, var(--sleeve) 0 3px, var(--yellow-side) 3px 4px, rgba(0,0,0,0) 4.5px), var(--ra-sheen); color: var(--on-yellow); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--yellow-side), 0 3px 4px rgba(0,0,0,.28); font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 18px; line-height: 30px; transform: rotate(-3deg); }

/* QtyStepper */
.ra-qty { display: inline-flex; align-items: flex-start; gap: var(--space-2); padding-bottom: 5px; }
.ra-qty__btn { --ra-travel: 3px; width: 36px; height: 34px; padding: 0; font-family: var(--font-label); font-weight: 700; font-size: 22px; line-height: 1; }
.ra-qty .ra-readout { min-width: 48px; height: 36px; justify-content: center; align-items: center; }

/* Alert — a label with a raised status mark */
.ra-alert { display: flex; align-items: flex-start; gap: var(--space-3); max-width: 480px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thin); }
.ra-alert__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: var(--radius-sticker); background-color: var(--well); background-image: var(--ra-sheen); color: var(--ink); box-shadow: inset 0 1px 0 var(--gloss), 0 2px 0 var(--side-lo), 0 3px 3px rgba(0,0,0,.2); font-family: var(--font-label); font-weight: 700; font-size: 18px; line-height: 1; }
.ra-alert--success .ra-alert__mark { background-color: var(--lime); color: var(--on-lime); }
.ra-alert--warning .ra-alert__mark { background-color: var(--yellow); color: var(--on-yellow); }
.ra-alert--danger .ra-alert__mark { background-color: var(--stripe-red); background-image: none; color: var(--screen-ink); }
.ra-alert--info .ra-alert__mark { background-color: var(--cyan); color: var(--on-cyan); }
.ra-alert__title { margin: 0; font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.ra-alert__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.ra-alert--success .ra-alert__title { color: var(--success); }
.ra-alert--warning .ra-alert__title { color: var(--warning); }
.ra-alert--danger .ra-alert__title { color: var(--danger); }
.ra-alert--info .ra-alert__title { color: var(--info); }

/* BottomBar — the front panel of the deck: black plastic with four keys. Phone and tablet only; the NavBar links take over from 900px. */
.ra-bottombar { display: flex; gap: var(--space-1); padding: var(--space-1) var(--space-1) 6px; border-radius: var(--radius-md); background-color: var(--shell); background-image: var(--ra-ridges); box-shadow: inset 0 1px 0 var(--shell-hi), 0 3px 0 var(--shell-lo), var(--cast-md); }
.ra-bottombar--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border-radius: 0; box-shadow: inset 0 1px 0 var(--shell-hi), 0 -6px 10px rgba(0,0,0,.3); }
.ra-bottombar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border: 1px solid rgba(0,0,0,0); border-radius: var(--radius-md); color: var(--shell-ink); font-family: var(--font-label); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.ra-bottombar__item svg { width: 22px; height: 22px; fill: currentColor; }
.ra-bottombar__item[aria-current="page"] { border-color: var(--shell-lo); background-color: var(--yellow); background-image: var(--ra-sheen); color: var(--on-yellow); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 0 var(--yellow-side), 0 4px 0 var(--shell-lo); }
.ra-bottombar__item:focus-visible { outline-color: var(--yellow); outline-offset: -4px; }
@media (min-width: 900px) { .ra-bottombar { display: none; } }

/* Sleeve — placeholder cover art: a black sleeve with one tilted stripe band */
.ra-sleeve { position: absolute; inset: 0; overflow: hidden; background: var(--screen); }
.ra-sleeve::before { content: ""; position: absolute; left: -30%; right: -30%; top: 50%; height: 34%; transform: translateY(-50%) rotate(var(--stripe-tilt)); background: linear-gradient(to bottom, var(--pink) 0 25%, var(--stripe-redorange) 0 50%, var(--stripe-orange) 0 75%, var(--stripe-yellow) 0); }

/* TrackList — a printed track card. The playing row is a black tape spine slotted into it. */
.ra-tracklist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thin); }
.ra-tracklist__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--rule); font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.ra-track { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) calc(var(--space-2) + 4px) var(--space-2); color: var(--ink); }
.ra-track + .ra-track { border-top: 1px solid var(--rule); }
.ra-track[aria-current="true"] { background-color: var(--shell); background-image: var(--ra-ridges); color: var(--shell-ink); box-shadow: inset 0 2px 0 var(--shell-lo), inset 0 -1px 0 var(--shell-hi); }
.ra-track[aria-current="true"] .ra-track__artist, .ra-track[aria-current="true"] .ra-track__num, .ra-track[aria-current="true"] .ra-track__extra { color: var(--shell-ink); }
.ra-track__num { display: none; flex: none; width: 24px; text-align: right; font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: .12em; color: var(--ink-muted); }
.ra-track__text { flex: 1; min-width: 0; }
.ra-track__title { margin: 0; overflow: hidden; font-family: var(--font-label); font-weight: 700; font-size: 17px; line-height: 20px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.ra-track__title a, .ra-album__title a { color: inherit; text-decoration: none; }
.ra-track__artist { display: flex; align-items: center; gap: var(--space-2); margin: 0; overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; text-overflow: ellipsis; }
.ra-track__artist .ra-led { margin-left: 2px; }
.ra-track__extra { display: none; flex: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.ra-track .ra-readout { flex: none; font-size: 18px; line-height: 20px; }
@media (min-width: 600px) { .ra-track__num { display: block; } .ra-track { gap: var(--space-4); padding-right: var(--space-4); } }
@media (min-width: 900px) { .ra-track__extra { display: block; width: 30%; } }

/* AlbumCard — a cassette case: a black hinge spine and a clear lid over the cover */
.ra-album { display: flex; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--ra-thick); color: var(--ink); }
.ra-album__spine { flex: none; display: flex; align-items: center; width: 28px; padding: var(--space-2) 0; overflow: hidden; border-radius: 0 2px 2px 0; background-color: var(--shell); background-image: repeating-linear-gradient(to right, rgba(255,255,255,0) 0 3px, rgba(255,255,255,.05) 3px 4px); box-shadow: inset 1px 0 0 var(--shell-hi), inset -2px 0 0 var(--shell-lo); color: var(--shell-ink); font-family: var(--font-label); font-weight: 700; font-size: 12px; line-height: 24px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }
.ra-album__front { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ra-album__cover { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--screen); }
.ra-album__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.2) 0 16%, rgba(255,255,255,0) 16.4% 26%, rgba(255,255,255,.08) 26.4% 30%, rgba(255,255,255,0) 30.4%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 0 2px rgba(0,0,0,.4); }
.ra-album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-album__play { position: absolute; z-index: 1; right: var(--space-3); bottom: calc(var(--space-3) + 5px); }
.ra-album__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); }
.ra-album__title { margin: 0; font-family: var(--font-label); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.ra-album__meta { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }

/* TapeDeck — the full music player, holding a real cassette */
.ra-deck { display: flex; flex-direction: column; gap: var(--space-3); max-width: 560px; padding: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--ra-thick); }
/* The cassette: a black shell with four screws, a paper label, and a window onto the reels */
.ra-cassette { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-6) var(--space-4); border-radius: var(--radius-lg); background-color: var(--shell);
  background-image: radial-gradient(circle at 12px 12px, var(--shell-hi) 0 1.5px, var(--shell-lo) 2px 4.5px, rgba(0,0,0,0) 5px), radial-gradient(circle at calc(100% - 12px) 12px, var(--shell-hi) 0 1.5px, var(--shell-lo) 2px 4.5px, rgba(0,0,0,0) 5px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--shell-hi) 0 1.5px, var(--shell-lo) 2px 4.5px, rgba(0,0,0,0) 5px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--shell-hi) 0 1.5px, var(--shell-lo) 2px 4.5px, rgba(0,0,0,0) 5px), var(--ra-ridges);
  box-shadow: inset 0 1px 0 var(--shell-hi), inset 0 -2px 0 var(--shell-lo), 0 3px 0 var(--shell-lo), var(--cast-md); }
.ra-cassette__label { overflow: hidden; padding: var(--space-2) var(--space-3) calc(var(--space-2) + var(--band-thin) * 3); border-radius: 2px; background: linear-gradient(to top, var(--cyan) 0 var(--band-thin), var(--yellow) 0 calc(var(--band-thin) * 2), var(--pink) 0 calc(var(--band-thin) * 3), var(--paper) 0); color: var(--on-paper); box-shadow: 0 1px 0 var(--shell-lo), 0 2px 2px rgba(0,0,0,.5); font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.ra-cassette__window { position: relative; display: flex; align-items: center; justify-content: center; gap: 16%; margin: 0 10%; padding: var(--space-4) 0; overflow: hidden; border-radius: var(--radius-md); background: var(--screen); box-shadow: inset 0 3px 6px #000, 0 1px 0 var(--shell-hi), 0 0 0 1px var(--shell-lo); }
.ra-cassette__window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ra-glare); }
/* A reel: a toothed hub with tape wound round it. The left reel carries more tape. */
.ra-reel { position: relative; flex: none; width: 20%; max-width: 88px; aspect-ratio: 1; border: 5px solid var(--screen-ink); border-radius: var(--radius-round); background: radial-gradient(circle, var(--screen) 0 30%, rgba(0,0,0,0) 31%), repeating-conic-gradient(var(--screen-ink) 0 14deg, var(--screen) 14deg 60deg); box-shadow: 0 0 0 5px var(--tape), 0 0 0 6px #000; }
.ra-reel:first-child { box-shadow: 0 0 0 14px var(--tape), 0 0 0 15px #000; }
.ra-reel::after { content: ""; position: absolute; inset: 34%; border-radius: var(--radius-round); background: var(--pink); }
/* Visualizer — the reels drawn on a canvas so they move with the music (components/Visualizer/visualizer.js) */
.ra-cassette__window--viz { margin: 0; padding: 0; }
.ra-viz { display: block; width: 100%; aspect-ratio: 16 / 5; }
.ra-deck__info { padding: 0 var(--space-1); }
.ra-deck__seek { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-1); }
.ra-deck__seek .ra-slider { flex: 1; min-width: 0; }
.ra-deck__seek .ra-readout { font-size: 18px; line-height: 20px; }
.ra-deck__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 0 var(--space-1); }
.ra-deck__volume { display: none; flex: 1; align-items: center; gap: var(--space-2); max-width: 180px; }
@media (min-width: 600px) {
  .ra-deck { gap: var(--space-4); padding: var(--space-4); }
  .ra-deck__controls { justify-content: space-between; }
  .ra-deck__volume { display: flex; }
}

/* MiniPlayer — the now-playing bar that follows you around the site: a slim black deck */
.ra-miniplayer { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) calc(var(--space-2) + 4px) var(--space-2); overflow: hidden; border-radius: var(--radius-md); background-color: var(--shell); background-image: var(--ra-ridges); color: var(--shell-ink); box-shadow: inset 0 1px 0 var(--shell-hi), 0 3px 0 var(--shell-lo), var(--cast-md); }
.ra-miniplayer--fixed { position: fixed; left: 0; right: 0; bottom: 60px; z-index: 20; border-radius: 0; box-shadow: inset 0 1px 0 var(--shell-hi), 0 -6px 10px rgba(0,0,0,.3); }
.ra-miniplayer .ra-track__artist { color: var(--shell-ink-muted); }
.ra-miniplayer .ra-transport { padding-bottom: 4px; }
.ra-miniplayer__cover { position: relative; flex: none; width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--shell-lo); border-radius: 2px; background: var(--screen); box-shadow: 0 1px 0 var(--shell-hi); }
.ra-miniplayer__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-miniplayer__text { flex: 1; min-width: 0; }
.ra-miniplayer__extra { display: none; }
.ra-miniplayer__seek { display: none; flex: 2; align-items: center; gap: var(--space-3); min-width: 0; }
.ra-miniplayer__seek .ra-slider { flex: 1; min-width: 0; }
.ra-miniplayer__seek .ra-readout { font-size: 18px; line-height: 20px; }
.ra-miniplayer__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: var(--shell-lo); }
.ra-miniplayer__progress span { display: block; width: var(--ra-value, 0%); height: 100%; background: var(--cyan); }
@media (min-width: 600px) { .ra-miniplayer__extra { display: inline-grid; } }
@media (min-width: 900px) {
  .ra-miniplayer { gap: var(--space-4); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); }
  .ra-miniplayer--fixed { bottom: 0; }
  .ra-miniplayer__text { flex: 1 1 200px; }
  .ra-miniplayer__seek { display: flex; }
  .ra-miniplayer__progress { display: none; }
}

/* LevelMeter — a row of LEDs behind dark glass */
.ra-meter { display: inline-flex; align-items: center; gap: 3px; padding: var(--space-2); border: 1px solid var(--shell-lo); border-radius: var(--radius-md); background-color: var(--screen); background-image: var(--ra-glare); box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 var(--gloss); }
.ra-meter__label { margin-right: var(--space-1); font-family: var(--font-label); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--screen-ink-muted); }
.ra-meter i { display: block; width: 6px; height: 18px; border-radius: 1px; background: var(--shell-hi); }
.ra-meter i.is-on { background: var(--lime); box-shadow: 0 0 6px rgba(124,255,79,.7); }
.ra-meter i.is-on.is-hot { background: var(--yellow); box-shadow: 0 0 6px rgba(255,224,26,.7); }
.ra-meter i.is-on.is-peak { background: var(--pink); box-shadow: 0 0 6px rgba(255,46,136,.8); }
@media (min-width: 600px) { .ra-meter i { width: 8px; height: 22px; } }

/* ActionBar — like, share, add to playlist */
.ra-actions { display: flex; gap: var(--space-3); padding-bottom: 6px; }
.ra-action { flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: var(--space-1) var(--space-2); font-family: var(--font-label); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ra-action svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.ra-action[aria-pressed="true"] { background-color: var(--well); }
.ra-action[aria-pressed="true"] svg { fill: var(--pink-ink); }
@media (min-width: 600px) {
  .ra-action { flex: 0 0 auto; flex-direction: row; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); font-size: 13px; line-height: 16px; letter-spacing: .12em; }
}
.ra-action.ra-action--icon { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; }

/* Sheet — ShareSheet and PlaylistSheet. A thick card held above the page: a bottom sheet on phones, floating from 600px. */
.ra-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(18,16,20,0.6); }
.ra-sheet { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side), 0 2px 0 var(--side), 0 3px 0 var(--side), 0 4px 0 var(--side-lo), var(--cast-lg); color: var(--ink); }
.ra-sheet--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 80vh; overflow: auto; border-width: 1px 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: inset 0 1px 0 var(--gloss), 0 -10px 24px rgba(0,0,0,.35); }
.ra-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 var(--gloss); }
.ra-sheet__title { margin: 0; font-family: var(--font-label); font-weight: 700; font-size: 17px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; }
.ra-sheet__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--well); box-shadow: var(--recess); }
.ra-sheet__list li + li { border-top: 1px solid var(--rule); }
.ra-sheet__item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; background: none; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 24px; text-align: left; text-decoration: none; cursor: pointer; }
.ra-sheet__item:hover { background: var(--card); box-shadow: inset 0 1px 0 var(--gloss); }
.ra-sheet__item:active { background: var(--well); box-shadow: var(--recess); }
.ra-sheet__item svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.ra-sheet__meta { margin-left: auto; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.ra-sheet__row { display: flex; align-items: flex-end; gap: var(--space-3); }
.ra-sheet__row .ra-btn { margin-bottom: 5px; }
.ra-sheet__row .ra-field { flex: 1; min-width: 0; }
@media (min-width: 600px) {
  .ra-sheet { width: 360px; max-width: 100%; }
  .ra-sheet--fixed { position: absolute; left: auto; right: auto; bottom: auto; max-height: none; border-width: 1px; border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--side), 0 2px 0 var(--side), 0 3px 0 var(--side), 0 4px 0 var(--side-lo), var(--cast-lg); }
  .ra-scrim { display: none; }
}

/* Type steps down on small screens. The tokens hold the largest (desktop) size. */
@media (max-width: 899px) {
  .display-xl { font-size: 56px; }
  .display-lg { font-size: 40px; }
  .display-md { font-size: 28px; }
  .length-mark, .ra-mark--lg { font-size: 44px; }
  .heading-lg { font-size: 24px; line-height: 28px; }
  .readout-lg, .ra-readout--lg { font-size: 32px; line-height: 32px; }
}
@media (max-width: 599px) {
  .display-xl { font-size: 36px; }
  .display-lg { font-size: 30px; }
  .display-md { font-size: 24px; }
  .length-mark, .ra-mark--lg { font-size: 36px; }
  .heading-lg { font-size: 22px; line-height: 26px; }
  .readout-lg, .ra-readout--lg { font-size: 28px; line-height: 28px; }
}

/* Touch screens: every small key grows to the 44px touch target */
@media (pointer: coarse) {
  .ra-btn--sm, .ra-tab, .ra-nav__link { height: var(--touch-target); }
  .ra-tab[aria-selected="true"] { height: 50px; }
  .ra-tbtn--sm, .ra-qty__btn { width: var(--touch-target); height: var(--touch-target); }
  .ra-check input { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-btn, .ra-tbtn, .ra-vcard, .ra-action, .ra-qty__btn, .ra-toggle__track::before { transition: none; }
}
