/* ================================================================
   Session Tapes v4 — design tokens
   Walnut #2A2019 · Ink #171009 · Label Cream #F1E7D3
   Tube Amber #E9A23B · Oxide #7A5335 · Faded Denim #8195A6
   Display: Fraunces · Handwriting: Caveat · UI: Instrument Sans
   Counter: Space Mono
   ================================================================ */

:root {
  --walnut: #2A2019;
  --walnut-deep: #211913;
  --walnut-spine: #34281E;
  --ink: #171009;
  --cream: #F1E7D3;
  --cream-dim: #D9CDB6;
  --amber: #E9A23B;
  --amber-hi: #F2B455;
  --amber-soft: rgba(233, 162, 59, 0.16);
  --oxide: #7A5335;
  --oxide-deep: #5C3E27;
  --denim: #8195A6;
  --line: rgba(241, 231, 211, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --font-ui: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --transport-h: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--walnut);
  background-image:
    radial-gradient(130% 90% at 50% -20%, #3D2E21 0%, var(--walnut) 52%),
    radial-gradient(120% 120% at 50% 110%, #1D1610 0%, var(--walnut) 60%);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(var(--transport-h) + env(safe-area-inset-bottom) + 26px);
  -webkit-font-smoothing: antialiased;
}

/* Faint tape-stock grain over the whole surface */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'/%3E%3CfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.6%200'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

main { max-width: 640px; margin: 0 auto; padding: 0 20px; position: relative; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---- Masthead: quiet overline; the cassette is the hero ---- */

.masthead {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.masthead-text { min-width: 0; }

/* Snapshot of Michael, taped into the archive */
.snapshot {
  position: relative;
  flex: 0 0 auto;
  display: block;
  transform: rotate(2.5deg);
}

.snapshot img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid var(--cream);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.snapshot::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -13px;
  width: 48px;
  height: 16px;
  background: var(--amber);
  opacity: 0.82;
  transform: rotate(-32deg);
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--denim);
}

.artist-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.1;
  margin-top: 6px;
  color: var(--cream);
}

.collection-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 16px;
  color: var(--amber);
  margin-top: 1px;
}

/* ---- The deck (signature element) ---- */

.deck { margin-top: 18px; }

.cassette-shell {
  position: relative;
  background: linear-gradient(180deg, #3B2D21 0%, #2B2118 34%, var(--walnut-deep) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(241, 231, 211, 0.10),
    inset 0 -10px 24px rgba(0, 0, 0, 0.28);
}

/* top-light so the shell reads as plastic */
.cassette-shell::before {
  content: "";
  position: absolute;
  inset: 1px 10px auto 10px;
  height: 34px;
  border-radius: 18px 18px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 244, 224, 0.10), rgba(255, 244, 224, 0));
  pointer-events: none;
}

.screws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screws::before,
.screws::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(241, 231, 211, 0.34), rgba(241, 231, 211, 0.08));
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.75);
}

.screws::before { left: 10px; }
.screws::after { right: 10px; }

/* ---- Handwritten label ---- */

.cassette-label {
  position: relative;
  background:
    linear-gradient(180deg, rgba(122, 83, 53, 0.06), rgba(122, 83, 53, 0) 40%),
    #F4EBD9;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 16px 12px;
  overflow: hidden;
  transform: rotate(-0.4deg);
  box-shadow: inset 0 0 0 1px rgba(92, 62, 39, 0.16), inset 0 -14px 22px rgba(122, 83, 53, 0.08);
}

.cassette-label::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--amber);
}

.label-side {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 17px;
  color: var(--oxide);
  margin-top: 5px;
  line-height: 1;
}

.label-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 31px;
  line-height: 1.05;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* hand-ruled line */
  padding-bottom: 8px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='8'%3E%3Cpath%20d='M2%205%20C%2040%202,%2080%207,%20120%204%20S%20200%206,%20238%203'%20stroke='%237A5335'%20stroke-width='2'%20fill='none'%20stroke-linecap='round'%20opacity='0.55'/%3E%3C/svg%3E") no-repeat left bottom / 100% 8px;
}

.label-meta {
  font-size: 12.5px;
  color: #55432E;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---- Window and reels ---- */

.cassette-window {
  margin-top: 13px;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(241, 231, 211, 0.05), rgba(241, 231, 211, 0) 50%),
    var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(241, 231, 211, 0.09);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.55);
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: relative;
}

.tape-run {
  position: absolute;
  left: 108px;
  right: 108px;
  top: 50%;
  height: 3px;
  background: var(--oxide-deep);
  transform: translateY(-50%);
}

.reel {
  width: 116px;
  height: 116px;
  position: relative;
  display: grid;
  place-items: center;
}

.reel-tape {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #8A6040 0%, var(--oxide) 34%, var(--oxide-deep) 82%);
  transform: scale(var(--wind, 1));
  transition: transform 0.35s linear;
}

.reel-hub {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}

.reel-hub span {
  position: absolute;
  width: 6px;
  height: 10px;
  background: var(--oxide-deep);
  border-radius: 2px;
  left: calc(50% - 3px);
  top: 5px;
  transform-origin: 3px 18px;
}

.reel-hub span:nth-child(2) { transform: rotate(120deg); }
.reel-hub span:nth-child(3) { transform: rotate(240deg); }

@keyframes reel-spin { to { transform: rotate(360deg); } }

.reel-hub { animation: reel-spin 1.9s linear infinite paused; }
.reel-right .reel-hub { animation-duration: 1.4s; }
.is-playing .reel-hub { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .reel-hub { animation: none; }
  .reel-tape { transition: none; }
  .track-row, .key { transition: none !important; }
}

/* ---- LCD counter ---- */

.lcd {
  margin-top: 13px;
  background: #150E08;
  border-radius: 9px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(233, 162, 59, 0.10);
  padding: 9px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lcd-time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--amber-hi);
  text-shadow: 0 0 7px rgba(233, 162, 59, 0.45);
  min-width: 58px;
}

.lcd-end { text-align: right; color: rgba(242, 180, 85, 0.55); text-shadow: none; }

.lcd-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(242, 180, 85, 0.8);
  text-transform: uppercase;
}

/* ---- Seek ---- */

.seek-slot { margin-top: 10px; padding: 0 2px; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--fill, 0%), rgba(241, 231, 211, 0.16) var(--fill, 0%));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF6E6, var(--cream));
  margin-top: -7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(241, 231, 211, 0.16);
}

input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--amber); }

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
}

.chip-retry { margin-top: 10px; width: 100%; justify-content: center; display: inline-flex; }

.chip-retry[hidden] { display: none; }

/* ---- Track shelf: cassette spines ---- */

#shelves { margin-top: 8px; }

.shelf-section { margin-top: 34px; }

.shelf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.shelf-head h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  flex: 1;
  min-width: 0;
}

.shelf-count { font-family: var(--font-mono); font-size: 12px; color: var(--denim); white-space: nowrap; }

.shelf-art {
  margin-top: 12px;
  height: 74px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.shelf-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 32, 25, 0.55), transparent 30%, transparent 70%, rgba(42, 32, 25, 0.55));
}

.track-list { list-style: none; margin-top: 12px; }

.shelf-empty { padding: 24px 4px; color: var(--cream-dim); font-size: 14px; }

.track-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--walnut-spine) 0%, #2B2016 100%);
  border: 1px solid rgba(241, 231, 211, 0.10);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(241, 231, 211, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.track-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 10px 0;
  min-height: 54px;
  color: inherit;
  text-decoration: none;
}

.track-cap {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 46px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--oxide) 0%, var(--oxide-deep) 100%);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.track-body { flex: 1; min-width: 0; }

.track-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.track-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--cream-dim);
  margin-top: 1px;
  overflow-wrap: anywhere;
}

.track-state {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.track-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  white-space: nowrap;
  padding-right: 2px;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}

/* Currently playing: the spine sits in the deck */
.track-row.is-current {
  border-color: rgba(233, 162, 59, 0.55);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.45),
    inset 3px 0 0 var(--amber),
    0 0 0 1px rgba(233, 162, 59, 0.18);
  transform: translateX(5px);
}

.track-row.is-current .track-cap {
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 100%);
  color: var(--ink);
}

.track-row.is-current .track-title { color: var(--amber-hi); }

/* ---- Chips ---- */

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  background: rgba(23, 16, 9, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 32px;
  cursor: pointer;
}

.chip:active { background: var(--amber-soft); }

.chip.is-saved { color: var(--amber); border-color: var(--amber); }

.chip-playside { white-space: nowrap; }

/* ---- Colophon: the reverse of the J-card ---- */

.colophon {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--denim);
}

/* ---- Transport: the deck faceplate ---- */

.transport {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 16px env(safe-area-inset-bottom);
  background: linear-gradient(180deg, #261D15 0%, #1A130D 100%);
  border-top: 1px solid rgba(241, 231, 211, 0.14);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(241, 231, 211, 0.07);
}

.transport-inner {
  max-width: 640px;
  margin: 0 auto;
  height: var(--transport-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.key {
  min-width: 58px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 11px;
  background: linear-gradient(180deg, #3D2F22 0%, #241B14 100%);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(241, 231, 211, 0.16),
    inset 0 -3px 5px rgba(0, 0, 0, 0.45),
    0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.key svg { width: 24px; height: 24px; fill: currentColor; }

.key:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.key-play {
  min-width: 88px;
  min-height: 54px;
  background: linear-gradient(180deg, var(--amber-hi) 0%, #D98F2B 100%);
  color: var(--ink);
  border-color: rgba(92, 62, 39, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.55),
    inset 0 -4px 6px rgba(120, 70, 10, 0.45),
    0 4px 10px rgba(233, 162, 59, 0.30);
}

.key-play svg { width: 28px; height: 28px; }

.key-small { min-width: 48px; }

.volume-group { display: none; }

/* ---- Video dialog ---- */

.video-dialog {
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  padding: 0;
  max-width: min(96vw, 640px);
  width: 100%;
  overflow: hidden;
}

.video-dialog::backdrop { background: rgba(10, 7, 4, 0.82); }

.video-dialog video { display: block; width: 100%; max-height: 78vh; background: #000; }

.video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 16, 9, 0.72);
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--transport-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 50;
  background: var(--cream);
  color: var(--ink);
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 88vw;
  text-align: center;
}

/* ---- Wider screens ---- */

@media (min-width: 700px) {
  .masthead { justify-content: center; gap: 30px; }
  .snapshot img { width: 108px; height: 108px; }
  .cassette-window { height: 168px; }
  .reel { width: 132px; height: 132px; }
  .tape-run { left: 124px; right: 124px; }
  .label-title { font-size: 35px; }
  .volume-group { display: flex; align-items: center; gap: 8px; }
  #vol { width: 110px; height: 28px; }
  #vol::-webkit-slider-runnable-track { box-shadow: none; height: 5px; }
  #vol::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; }
}

/* ---- v9: queue, shuffle, AirPlay, listen panel ---- */

.key { position: relative; }

.key.is-on { color: var(--amber); box-shadow: inset 0 1px 0 rgba(233,162,59,0.35), inset 0 -3px 5px rgba(0,0,0,0.45), 0 0 0 1px rgba(233,162,59,0.4), 0 3px 6px rgba(0,0,0,0.4); }

.queue-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.queue-dialog {
  border: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #33271D 0%, var(--walnut-deep) 100%);
  color: var(--cream);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 640px;
  margin: auto auto 0;
  max-height: 72dvh;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.queue-dialog::backdrop { background: rgba(10, 7, 4, 0.7); }

.queue-head { display: flex; align-items: center; gap: 10px; }

.queue-head h2 {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.queue-close { position: static; }

.queue-now {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cream-dim);
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.queue-list { list-style: none; margin-top: 4px; }

.queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-height: 48px;
}

.queue-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.queue-btn { min-width: 36px; min-height: 32px; padding: 5px 8px; text-align: center; }

.queue-btn:disabled { opacity: 0.3; }

.queue-empty { color: var(--cream-dim); font-size: 13.5px; padding: 14px 0; }

.chip-queue { min-width: 32px; padding: 7px 10px; font-weight: 700; }

/* ---- Listen anywhere ---- */

.listen { margin-top: 40px; }

.listen-blurb { font-size: 13.5px; color: var(--cream-dim); margin-top: 12px; }

.listen-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.listen-chip { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }

/* ---- Narrow transport: five keys must fit at 320px ---- */

@media (max-width: 374px) {
  .transport-inner { gap: 8px; }
  .key { min-width: 46px; min-height: 46px; }
  .key-small { min-width: 40px; }
  .key-play { min-width: 68px; min-height: 52px; }
}

/* Narrow rows: tighter chips so three-action rows clear the duration */
@media (max-width: 374px) {
  .track-main { gap: 8px; }
  .track-cap { min-width: 40px; }
  .track-actions { gap: 4px; padding-right: 8px; }
  .chip { padding: 6px 8px; font-size: 10px; min-height: 30px; }
  .chip-queue { min-width: 26px; padding: 6px 7px; }
  .track-time { font-size: 11px; }
}


/* ---- v10: self-updating shell ---- */

.update-pill {
  position: fixed;
  left: 50%;
  bottom: calc(var(--transport-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 55;
  background: var(--amber);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  min-height: 44px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.listen-url { margin-top: 10px; }

.listen-url code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  background: rgba(23, 16, 9, 0.4);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
  overflow-wrap: anywhere;
}

.listen-note { font-size: 12px; color: var(--denim); margin-top: 10px; }
