/* Cadance Radio in the Pragma Research theme (floatingpragma.ai, assets/stealth.css): black, the cyan glow, the
   mono font, bracketed links; the visuals are the show, so the only effect over them is a faint scanline. */
:root {
  --bg: #000;
  --glow: #4af1f2;
  --glow-soft: rgba(74, 241, 242, .55);
  --ink: #c9fbfb;
  --dim: rgba(74, 241, 242, .62);
  --faint: rgba(74, 241, 242, .28);
  --red: #ff2a6d;
  --blue: #2a6dff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 13px/1.5 var(--mono); overflow: hidden; }
a { color: var(--glow); text-decoration: none; }
button, select, input { font: inherit; color: var(--ink); }
#stage { position: fixed; inset: 0; }
#viz, #hero, #djv, #mixv, #scrv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero, #djv, #mixv, #scrv { background: var(--bg); }
#viz[hidden], #hero[hidden], #djv[hidden], #mixv[hidden], #scrv[hidden], #devices[hidden], .scan[hidden] { display: none; }
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px); }

/* the header: the wordmark as on the social card (site/brand/social-card.html), the caret with PRAGMA RESEARCH, the claim */
.brand { position: fixed; top: 14px; left: 16px; z-index: 4; pointer-events: auto; }
.word { font-size: 26px; line-height: 1; font-weight: 600; letter-spacing: .04em; color: #eaffff; text-shadow: 0 0 14px rgba(74, 241, 242, .3); }
.word .a { color: var(--glow); text-shadow: 0 0 5px var(--glow), 0 0 16px var(--glow-soft), 0 0 34px rgba(74, 241, 242, .45); }
.by { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 9px; letter-spacing: .32em; color: var(--dim); }
.by:hover, .by:focus-visible { color: var(--glow); }
.mark { width: 12px; color: var(--glow); filter: drop-shadow(0 0 3px var(--glow)) drop-shadow(0 0 8px var(--glow-soft)); }
.claim { margin: 8px 0 0; max-width: min(420px, calc(100vw - 32px)); font-size: 11px; line-height: 1.4; color: var(--ink); text-shadow: 0 0 12px rgba(0, 0, 0, .9); }
.claim em { font-style: normal; color: var(--glow); }

/* the large play button before the first click */
#bigPlay { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
#bigPlay[hidden] { display: none; }
#bigPlayB { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 40px; cursor: pointer;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--faint); box-shadow: 0 0 28px rgba(74, 241, 242, .15); color: var(--glow); }
#bigPlayB .tri { width: 0; height: 0; border-left: 34px solid var(--glow); border-top: 21px solid transparent; border-bottom: 21px solid transparent;
  filter: drop-shadow(0 0 8px var(--glow)); }
#bigPlayB:hover, #bigPlayB:focus-visible { border-color: var(--glow); box-shadow: 0 0 34px rgba(74, 241, 242, .3); }
#bigPlayB[disabled] { cursor: default; opacity: .7; }

/* the bar: controls and links */
#bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); }
.controls { display: flex; align-items: center; gap: 8px; }
.ic { width: 32px; height: 28px; padding: 0; display: grid; place-items: center; cursor: pointer; background: rgba(0, 0, 0, .6);
  border: 1px solid var(--faint); color: var(--glow); font-size: 14px; }
.ic:hover, .ic:focus-visible { border-color: var(--glow); text-shadow: 0 0 8px var(--glow); }
.vol { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11px; letter-spacing: .12em; }
.vol input { width: 90px; accent-color: var(--glow); }
.links { display: flex; gap: 14px; font-size: 11px; letter-spacing: .14em; text-transform: lowercase; }
.links a { color: var(--dim); transition: color .15s, text-shadow .15s; }
.links a::before { content: "["; opacity: .6; }
.links a::after { content: "]"; opacity: .6; }
.links a:hover, .links a:focus-visible { color: var(--glow); text-shadow: 0 0 8px var(--glow); }

/* the settings panel and the tutorial cards */
.panel { position: fixed; z-index: 8; width: min(420px, calc(100% - 32px)); padding: 16px 18px; background: rgba(0, 0, 0, .94);
  border: 1px solid var(--faint); box-shadow: 0 0 24px rgba(74, 241, 242, .14); color: var(--ink); }
.panel[hidden] { display: none; }
#settings { right: 16px; bottom: 96px; }
.panel h2 { margin: 0 0 10px; font-size: 12px; font-weight: 400; letter-spacing: .3em; color: var(--glow); text-transform: lowercase; }
.panel label { display: block; font-size: 12px; margin-bottom: 6px; }
.panel input { width: 100%; background: #000; border: 1px solid var(--faint); padding: 6px 8px; }
.panel input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 8px rgba(74, 241, 242, .3); }
.panel .help, .panel .state { font-size: 11px; color: var(--dim); margin: 8px 0 0; }
.panel .state:empty { display: none; }
.panel a { color: var(--glow); border-bottom: 1px dotted var(--dim); }
.panel .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.panel button { background: #000; border: 1px solid var(--faint); padding: 4px 12px; cursor: pointer; color: var(--glow); }
.panel button:hover, .panel button:focus-visible { border-color: var(--glow); text-shadow: 0 0 8px var(--glow); }
.panel button.go { border-color: var(--glow); }
.tour { left: 50%; top: 14%; transform: translateX(-50%); }
.toggles label { display: block; margin-top: 8px; font-size: 12px; } .toggles input { width: auto; margin-right: 6px; accent-color: var(--glow); }
.tour .step { margin: 0 0 8px; font-size: 10px; letter-spacing: .3em; color: var(--dim); }
.tour .body p { margin: 0 0 8px; }
#ring { position: fixed; z-index: 7; pointer-events: none; border: 1px solid var(--glow); box-shadow: 0 0 0 4px rgba(74, 241, 242, .18), 0 0 22px rgba(74, 241, 242, .5); }
#ring[hidden] { display: none; }
.ring2 { position: fixed; z-index: 7; pointer-events: none; border: 1px solid var(--glow); box-shadow: 0 0 0 4px rgba(74, 241, 242, .18), 0 0 22px rgba(74, 241, 242, .5); }

/* the consent bar (assets/consent.js), as on the main site */
.consent { position: fixed; left: 50%; bottom: 16px; z-index: 9; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex;
  align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 16px; font-size: .72rem; line-height: 1.6;
  letter-spacing: .06em; color: rgba(201, 251, 251, .8); background: rgba(0, 0, 0, .92); border: 1px solid rgba(74, 241, 242, .28);
  box-shadow: 0 0 24px rgba(74, 241, 242, .12); }
.consent p { margin: 0; }
.consent p a { color: var(--glow); border-bottom: 1px dotted var(--dim); }
.consent .links a { color: var(--glow); }

/* a phone: one row of icons (the volume is the phone's own, the links are in the settings), so the bar stays low */
@media (max-width: 640px) {
  #bar { padding: 8px 10px 10px; gap: 6px; }
  #bar .links { display: none; }
  .links { width: 100%; flex-wrap: wrap; row-gap: 6px; }
  .controls { gap: 4px; }
  .ic { width: 28px; height: 28px; }
  .vol { display: none; }
}
.panel-links { margin-top: 14px; }
@media (min-width: 641px) { .panel-links { display: none; } }
/* over the devices, which scroll under it, the bar is solid */
body[data-view="devices"] #bar { background: rgba(0, 0, 0, .94); }
@media (prefers-reduced-motion: reduce) {
  .scan { display: none; }
  * { transition: none !important; animation: none !important; }
}

/* the devices view (devices.js): a canvas as tall as its devices, in a view that scrolls */
#devices { position: absolute; inset: 0; z-index: 1; overflow: auto; padding: 108px 16px 120px; background: var(--bg); }
#devices .devhead { max-width: 1100px; margin: 0 auto 8px; font-size: 12px; color: var(--dim); }
#devNote { color: var(--red); }
#devCanvas { display: block; width: 100%; max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { #devices { padding: 116px 12px 72px; } }

/* the controls are icons; the visuals button lit while its menu is open */
.ic svg, .vol svg { width: 16px; height: 16px; fill: currentColor; }
.ic svg .w, .vol svg .w { fill: none; stroke: currentColor; stroke-width: 1.3; }
.vol svg { color: var(--dim); }
.ic[aria-expanded="true"] { border-color: var(--glow); color: #e8ffff; box-shadow: 0 0 10px rgba(74, 241, 242, .35); }

/* the visuals menu: three groups of views above the bar (a sheet across the bottom on a phone) */
.visuals { left: 16px; bottom: 64px; width: min(560px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.visuals[hidden] { display: none; }
.visuals h3 { margin: 0 0 8px; font-size: 10px; font-weight: 400; letter-spacing: .3em; color: var(--dim); text-transform: lowercase; }
.visuals button { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 6px 10px; text-align: left; font-size: 12px; color: var(--ink); }
.visuals button[hidden] { display: none; }
.visuals button svg { width: 16px; height: 16px; flex: none; fill: var(--glow); }
.visuals button svg .w { fill: none; stroke: var(--glow); stroke-width: 1.3; }
.visuals button[aria-current="true"] { border-color: var(--glow); color: #e8ffff; box-shadow: 0 0 10px rgba(74, 241, 242, .3); }
@media (max-width: 640px) {
  .visuals { left: 0; right: 0; bottom: 46px; width: auto; grid-template-columns: 1fr; gap: 4px; padding: 14px 16px 16px; border-left: 0; border-right: 0; }
  .visuals .vgroup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .visuals h3 { grid-column: 1 / -1; margin: 6px 0 0; }
  .visuals button { margin: 0; padding: 8px 6px; flex-direction: column; gap: 4px; font-size: 11px; text-align: center; }
}
