/* Shared styles for index.html and dashboard.html
   Theme: vintage record player — cream paper, walnut wood, brass trim, oxblood labels. */
:root {
  --bg: #f3ead7;            /* aged paper */
  --surface: #fbf6ea;       /* card stock */
  --ink: #2a1d16;           /* espresso ink */
  --ink-2: #5a4638;
  --ink-3: #8a7563;
  --line: #e1d3b8;
  --wood-1: #5a3522;        /* walnut */
  --wood-2: #3d2316;
  --brass: #b8862b;         /* decoration only */
  --brass-soft: #ecdcb4;
  --accent: #9b2d20;        /* oxblood — main data color, links */
  --accent-soft: #f1ddd2;
  --series-1: #9b2d20;      /* validated pair (CVD-safe) */
  --series-2: #1b7fa3;
  --vinyl: #151210;
  --placeholder-bg: #fff3c9;
  --placeholder-line: #c79a1c;
  --radius: 6px;
  --font: "Lora", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, serif;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1410; --surface: #241b16; --ink: #f3e8d4; --ink-2: #cdb99f; --ink-3: #9a8570;
    --line: #3e3027; --wood-1: #3b2417; --wood-2: #24150d; --brass: #c9a24e; --brass-soft: #3d3120;
    --accent: #c75443; --accent-soft: #3d231c; --series-1: #c75443; --series-2: #2f9dba;
    --vinyl: #0b0908; --placeholder-bg: #3a2f14; --placeholder-line: #c79d00;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1410; --surface: #241b16; --ink: #f3e8d4; --ink-2: #cdb99f; --ink-3: #9a8570;
  --line: #3e3027; --wood-1: #3b2417; --wood-2: #24150d; --brass: #c9a24e; --brass-soft: #3d3120;
  --accent: #c75443; --accent-soft: #3d231c; --series-1: #c75443; --series-2: #2f9dba;
  --vinyl: #0b0908; --placeholder-bg: #3a2f14; --placeholder-line: #c79d00;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg) var(--paper-noise); color: var(--ink); font-family: var(--font);
       font-size: 17px; line-height: 1.65; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
code { font-size: .85em; background: var(--brass-soft); padding: .05em .3em; border-radius: 3px; }

/* ---------- navigation: a walnut cabinet with brass trim ---------- */
.nav { position: sticky; top: 0; z-index: 10;
       background: linear-gradient(180deg, var(--wood-1), var(--wood-2));
       border-bottom: 3px solid var(--brass); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: .7rem 16px; display: flex;
             align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #f6ead2;
         text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--brass); font-style: italic; }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-links a { color: #e6d6b8; text-decoration: none; font-family: var(--font-display); font-weight: 500;
               letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; padding: .25rem 0;
               border-bottom: 2px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: #fff; border-bottom-color: var(--brass); }


main { max-width: 1080px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
footer { max-width: 1080px; margin: 0 auto; padding: 1.5rem 16px 3rem; color: var(--ink-3);
         font-size: .875rem; border-top: 1px solid var(--line); }

/* ---------- hero with a period photograph ---------- */
.hero { padding-bottom: 2rem; border-bottom: 3px double var(--brass); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em;
           font-size: .78rem; color: var(--brass); font-weight: 700; margin-bottom: .6rem; }
.byline { color: var(--ink-3); margin-bottom: 1rem; font-style: italic; }

/* ---------- page layout: report + record-player rail ---------- */
main.page { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
.rail { position: sticky; top: 76px; }
@media (max-width: 1060px) {
  main.page { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- the record player ---------- */
.player .deck { display: block; width: 100%; height: auto; }
.d-record { cursor: pointer; }
.d-band .d-band-hi { stroke: #d9b35c; stroke-opacity: 0; transition: stroke-opacity .25s; }
.d-band:hover .d-band-hi { stroke-opacity: .16; }
.d-band.on .d-band-hi { stroke-opacity: .10; }
.d-arc { font-family: var(--font-display); font-size: 6.4px; font-weight: 700; letter-spacing: 1.3px; fill: #f6e8cc; }
.d-arc-sm { font-size: 3.7px; letter-spacing: .7px; font-weight: 500; }
.d-lab-k { font-family: var(--font); font-size: 3.6px; letter-spacing: 1.1px; fill: rgba(246,232,204,.8); }
.d-lab-t { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 5.6px; fill: #fff3da; }
.d-plate { font-family: var(--font-display); font-weight: 700; font-size: 6.2px; letter-spacing: 1.6px; fill: #3b2a0c; }
.d-knob-t { font-family: var(--font); font-size: 5px; fill: #e9d7b3; }
.player-now { margin: .9rem 0 .5rem; min-height: 2.9em; }
.player-now .k { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em;
                 font-size: .68rem; font-weight: 700; color: var(--brass); }
.player-now .t { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tracklist { list-style: none; margin: 0; padding: .4rem 0 0; border-top: 3px double var(--brass); }
.tracklist a { display: flex; gap: .7rem; align-items: baseline; padding: .32rem .2rem; color: var(--ink-2);
               text-decoration: none; border-bottom: 1px dotted var(--line); font-size: .93rem; }
.tracklist .no { font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--ink-3);
                 font-variant-numeric: lining-nums tabular-nums; }
.tracklist a:hover { color: var(--ink); }
.tracklist a.on { color: var(--accent); font-weight: 600; }
.tracklist a.on .no { color: var(--accent); }
@media (max-width: 1060px) { .tracklist { columns: 2; column-gap: 1.25rem; } }

/* ---------- headline numbers: record-label cards ---------- */
.headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
            margin: 2.25rem 0 3rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass);
        border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.stat .value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--accent);
               font-variant-numeric: lining-nums tabular-nums; }
.stat .label { color: var(--ink-2); font-size: .92rem; }

/* ---------- report sections: each finding is a track ---------- */
.finding { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
           padding: 1.75rem; margin-bottom: 1.75rem; position: relative;
           box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 20px -14px rgba(60,30,10,.35); }
.finding .num { display: block; color: var(--brass); padding-bottom: .4rem; border-bottom: 1px solid var(--line);
                font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .16em;
                text-transform: uppercase; }
.finding h2 { font-size: 1.65rem; margin-top: .35rem; }
.keynums { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.keynums li { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line);
              border-radius: 999px; padding: .2rem .8rem; font-size: .88rem; font-variant-numeric: lining-nums tabular-nums; }
.chart-box { position: relative; height: 340px; margin-top: 1rem; }
.chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.chart-row .chart-box { height: 280px; }
.chart-title { font-size: .9rem; color: var(--ink-2); margin: 1rem 0 0; font-weight: 600; font-style: italic; }
details.table-view { margin-top: .75rem; font-size: .88rem; }
details.table-view summary { cursor: pointer; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: lining-nums tabular-nums; margin-top: .5rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-2); font-weight: 600; font-family: var(--font-display); }
td.n, th.n { text-align: right; }

/* placeholder text the author must replace */
.placeholder { background: var(--placeholder-bg); border: 1.5px dashed var(--placeholder-line);
               border-radius: 6px; padding: .6rem .8rem; color: var(--ink); }
.placeholder::before { content: "TO WRITE — "; font-family: var(--font); font-weight: 700; font-size: .72rem;
                       letter-spacing: .05em; }

/* liner notes (about the data) */
.about { background: transparent; border: none; box-shadow: none; padding: 0; }
.about dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; }
.about dt { font-weight: 700; font-family: var(--font-display); }
.about dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) {
  .about dl { grid-template-columns: 1fr; }
  .chart-box { height: 280px; }
  .finding { padding: 1.1rem; }
}

/* ---------- dashboard ---------- */
.dash-head { padding-bottom: .75rem; border-bottom: 3px double var(--brass); margin-bottom: .5rem; }
.filters { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass);
           border-radius: var(--radius); padding: 1rem;
           display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
           gap: .75rem 1rem; align-items: end; margin: 1rem 0 1.25rem; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .25rem;
               font-family: var(--font-display); letter-spacing: .03em; }
.field select, .field input { width: 100%; font: inherit; font-size: .9rem; padding: .45rem .5rem;
           border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); height: 2.4rem; }
.btn { font: inherit; font-weight: 700; font-size: .9rem; padding: .5rem .9rem; border-radius: 999px;
       border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent-soft); }
.switches { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-wrap: wrap;
       background: var(--surface); }
.seg button { font: inherit; font-size: .85rem; border: 0; background: transparent; color: var(--ink-2);
              padding: .4rem .85rem; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff8ee; }
.seg-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: .25rem;
             font-family: var(--font-display); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 1.25rem; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .panel-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0;
         box-shadow: 0 8px 20px -14px rgba(60,30,10,.35); }
.panel h3 { font-size: 1.05rem; margin: 0; }
.panel .sub { font-size: .8rem; color: var(--ink-3); margin: 0 0 .5rem; font-style: italic; }
.panel .chart-box { height: 300px; margin-top: .25rem; }
.status { font-size: .88rem; color: var(--ink-3); font-style: italic; }

/* ---------- interactive report visuals (assets/report.js) ---------- */
.viz { position: relative; margin-top: .75rem; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz text { font-family: var(--font); }
.viz text:not([fill]) { fill: var(--ink-2); }
.viz .ax text { font-size: 11px; fill: var(--ink-3); }
.viz .ax line, .viz .ax path { stroke: var(--line); }
.viz .grid line { stroke: var(--line); stroke-dasharray: 2 3; }
.viz-controls { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .25rem 0 .6rem; }
.viz-readout { font-size: .95rem; color: var(--ink-2); min-height: 1.6em; margin: .2rem 0 .4rem; }
.viz-readout b { font-family: var(--font-display); color: var(--accent); font-size: 1.15em; }
.viz-readout i { color: var(--ink); }
.viz input[type=range] { width: min(420px, 100%); accent-color: var(--accent); }
.viz .hint { font-size: .8rem; color: var(--ink-3); font-style: italic; }
.viz-tip { position: fixed; z-index: 50; pointer-events: none; max-width: 280px; padding: .5rem .7rem;
  background: var(--wood-2); color: #f6ead2; border: 1px solid var(--brass); border-radius: 4px;
  font: .82rem/1.4 var(--font); box-shadow: 0 6px 16px rgba(0,0,0,.3); opacity: 0; transition: opacity .12s; }
.viz-tip.on { opacity: 1; }
.viz-tip b { font-family: var(--font-display); color: #fff; }
.viz-tip .m { color: #d9c49a; font-size: .76rem; }
.viz-tip .v { color: #e2c27a; }
.versions { font-size: .78em; color: var(--ink-3); font-style: italic; white-space: nowrap; }
.viz-tip .versions { color: #d9c49a; }

/* 1 — record grid */
.v1-wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 640px) { .v1-wrap { grid-template-columns: 1fr; } }
.v1-rec { cursor: pointer; transition: opacity .2s; }
.v1-rec .lab { transition: fill .2s; }
.v1-legend { list-style: none; margin: 0; padding: 0; }
.v1-legend li { display: grid; grid-template-columns: 2.6rem 1.4rem 1fr auto; gap: .5rem; align-items: center; padding: .28rem .4rem;
  border-radius: 4px; cursor: pointer; font-size: .92rem; }
.v1-legend li:hover, .v1-legend li.on { background: var(--accent-soft); }
.v1-legend .dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--surface) 0 18%, var(--accent) 20% 48%, #151210 50%); }
.v1-legend li.mid .dot { background: radial-gradient(circle, var(--surface) 0 18%, #9c8466 20% 48%, #151210 50%); }
.v1-legend li.rest .dot { background: radial-gradient(circle, var(--surface) 0 18%, #b9ab94 20% 48%, #8d8373 50%); }
.v1-legend .rk { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--ink-3); text-align: right;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.v1-legend .pct { font-variant-numeric: lining-nums tabular-nums; color: var(--ink-3); font-size: .85rem; }
.v1-legend .n { font-family: var(--font-display); color: var(--accent); font-weight: 700; }

/* shared segmented toggle for visuals */
.tgl { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.tgl button { font: inherit; font-size: .82rem; border: 0; background: transparent; color: var(--ink-2); padding: .32rem .8rem; cursor: pointer;
  border-right: 1px solid var(--line); }
.tgl button:last-child { border-right: 0; }
.tgl button[aria-pressed="true"] { background: var(--accent); color: #fff8ee; }
.play { font: 600 .82rem var(--font); border: 1.5px solid var(--accent); color: var(--accent); background: transparent;
  border-radius: 999px; padding: .3rem .9rem; cursor: pointer; }
.play:hover { background: var(--accent-soft); }
/* small screens: keep wide visuals readable and let them scroll sideways inside their box */
@media (max-width: 700px) {
  .viz { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .viz > svg { min-width: 660px; }
  #v7 > svg { min-width: 760px; }
}

/* ---------- music: listening booth, play buttons, dock ---------- */
.rail { max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 1060px) { .rail { max-height: none; overflow: visible; } }
.booth { margin: .2rem 0 .9rem; }
.booth-now { margin: 0 0 .45rem; }
.booth-now .k { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em;
                font-size: .68rem; font-weight: 700; color: var(--brass); }
.booth-now .t { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--ink); }
.booth-now .a { display: block; font-size: .85rem; color: var(--ink-3); }
.booth-note { font-size: .74rem; color: var(--ink-3); font-style: italic; margin: .35rem 0 0; line-height: 1.35; }
#spotify-embed, .booth iframe { border-radius: 12px; display: block; }
.play-btn { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; margin-right: .45em; vertical-align: -.2em;
  border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer;
  font-size: .8rem; line-height: 1; padding: 0 0 0 .12em; }
.play-btn::before { content: "▶"; font-size: .7em; }
.play-btn:hover, .play-btn.is-playing { background: var(--accent); color: #fff8ee; }
.play-btn.is-playing::before { content: "♪"; font-size: .85em; }
.song-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-style: italic; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.song-link:hover, .song-link.is-playing { color: var(--accent); }
.music-dock { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(340px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 8px;
  padding: .5rem .6rem .6rem; box-shadow: 0 12px 30px -10px rgba(40,20,8,.5); }
.music-dock-k { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; color: var(--brass); margin-bottom: .35rem; }
.music-dock-x { background: none; border: 0; font-size: 1.2rem; color: var(--ink-3); cursor: pointer; line-height: 1; }

/* ---------- 3D stages (assets/scenes3d.js) ---------- */
.stage3d { position: relative; margin: 1.6rem 0 .4rem; height: 460px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(184,134,43,.16), transparent 72%),
              radial-gradient(ellipse at 50% 100%, rgba(60,36,20,.10), transparent 60%); }
.stage3d[hidden] { display: none; }
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: move; }
.stage-btn { position: absolute; top: .9rem; right: .9rem; background: var(--surface); }
.stage-hint { position: absolute; left: 1rem; bottom: .55rem; margin: 0; font-size: .78rem; font-style: italic; color: var(--ink-3); pointer-events: none; }
.stage-now { position: absolute; left: 1rem; top: .9rem; right: 13rem; margin: 0; font-size: .92rem; color: var(--ink-2); pointer-events: none; }
.stage-now .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; color: var(--brass); margin-right: .35rem; }
.stage-now i { color: var(--ink); font-weight: 600; }
.skyline { height: 520px; margin-top: .6rem; }
.skyline .stage-now { top: auto; bottom: .6rem; right: 1rem; pointer-events: auto; }

/* ---------- the #1 race ---------- */
.race-ctl { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.race-ctl .play { min-width: 9.5rem; }
.race-ctl input[type=range] { flex: 1 1 200px; accent-color: var(--accent); }
.race-lead i { color: var(--ink); }
.race-lead b { font-size: 1em; }
.race-row text { pointer-events: none; }

/* ---------- phones (700px and narrower). Nothing below changes the laptop view. ---------- */
.rail-toggle { display: none; }
@media (max-width: 700px) {
  /* shorter nav bar: brand and links on one line */
  .nav-inner { flex-wrap: nowrap; padding: .5rem 12px; gap: .75rem; }
  .brand { font-size: 1rem; white-space: nowrap; }
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .74rem; }
  main, main.page { padding: 1.5rem 12px 3rem; gap: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }

  /* the record player becomes a small player bar pinned to the bottom of the screen */
  body.has-rail { padding-bottom: 88px; }
  body.has-rail.music-on { padding-bottom: 180px; }
  .rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; order: 0; max-width: none; width: auto;
    margin: 0; max-height: 78vh; overflow-y: auto; background: var(--surface); border-top: 3px solid var(--brass);
    box-shadow: 0 -8px 24px -10px rgba(40, 20, 8, .5); padding: .45rem 12px calc(.5rem + env(safe-area-inset-bottom)); }
  .player { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; column-gap: .7rem; align-items: center;
    grid-template-areas: "deck now btn" "booth booth booth" "list list list"; }
  .player .deck { grid-area: deck; width: 58px; pointer-events: none; }
  .player-now { grid-area: now; margin: 0; min-height: 0; }
  .player-now .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .1em; }
  .player-now .t { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-toggle { display: block; grid-area: btn; font: 600 .78rem var(--font); color: var(--accent); background: transparent;
    border: 1.5px solid var(--accent); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
  .booth { grid-area: booth; margin: .5rem 0 0; }
  .booth-now, .booth-note { display: none; }
  body:not(.music-on) .rail:not(.open) .booth { position: absolute; left: -9999px; width: 320px; }   /* kept loaded, just off screen */
  .rail.open .booth-note { display: block; }
  .tracklist { grid-area: list; display: none; columns: 1; margin-top: .6rem; }
  .rail.open .tracklist { display: block; }
  .finding { scroll-margin-top: 60px; }
  /* phones: captions sit under the 3D scene instead of on top of it */
  .stage3d { height: auto; overflow: visible; }
  .stage-canvas { position: relative; height: 300px; }
  .skyline .stage-canvas { height: 340px; }
  .stage-now, .skyline .stage-now { position: static; margin: .4rem .2rem 0; font-size: .85rem; }
  .stage-hint { position: static; margin: .2rem .2rem 0; font-size: .72rem; }
  .stage-btn { top: .6rem; right: .6rem; font-size: .76rem; }
  .viz.race > svg { min-width: 0; }
}
