/* SUBASHTON LIVE (made from the desktop app by tools/port-live.js; the start screen styles are at the end) */
  :root { --cy: #3ff2ff; --pk: #ff6ec7; --line: rgba(255,255,255,.22); --ink: #eefcff; }
  * { box-sizing: border-box; -webkit-user-select: none; user-select: none; }
  html, body { margin: 0; height: 100%; background: #000; overflow: hidden; color: var(--ink);
    font: 600 12px/1 Bahnschrift, "Segoe UI", system-ui, sans-serif; letter-spacing: .12em; }
  canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; object-fit: contain; background: #000; }
  #ui { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; align-items: center;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)); transition: opacity .35s; pointer-events: none; }
  #ui > * { pointer-events: auto; }
  .row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
  button, a.chip { font: inherit; letter-spacing: inherit; color: var(--ink); background: rgba(0,8,14,.66); border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 13px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
  button:hover, a.chip:hover { border-color: var(--cy); }
  button.on { background: var(--cy); color: #001318; border-color: var(--cy); }
  button.scene.on { box-shadow: 0 0 18px var(--cy); }
  button.open { border-color: var(--pk); color: var(--pk); }
  #drop { padding: 14px 34px; font-size: 16px; font-weight: 700; border: 2px solid var(--pk); color: var(--pk); background: rgba(20,0,12,.6); }
  #drop.hold { background: var(--pk); color: #1a0010; box-shadow: 0 0 34px var(--pk); }
  #bpm { cursor: ns-resize; min-width: 92px; }
  #rec.on { background: #ff2e9a; border-color: #ff2e9a; color: #fff; }
  .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
  .panel { display: none; width: min(760px, 100%); max-height: 46vh; overflow: auto; background: rgba(2,8,12,.9); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .panel.show { display: block; }
  .panel h3 { margin: 10px 0 7px; font-size: 10.5px; font-weight: 600; opacity: .6; }
  .panel h3:first-child { margin-top: 0; }
  .panel .row { justify-content: flex-start; }
  .panel button { padding: 7px 11px; font-size: 11px; }
  .panel p { margin: 6px 0 0; font: 400 13px/1.45 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; opacity: .8; }
  .sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px; }
  .sliders label { display: flex; align-items: center; gap: 10px; font-size: 10.5px; }
  #meter { flex: 1; max-width: 420px; height: 14px; border: 1px solid var(--cy); border-radius: 7px; overflow: hidden; position: relative; background: #0008; }
  #meter i { position: absolute; left: 0; top: 0; height: 50%; width: 0; background: var(--cy); }
  #meter #mhi { top: 50%; background: var(--pk); }
  .tin { -webkit-user-select: text; user-select: text; font: inherit; letter-spacing: inherit; color: var(--ink); background: #000; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; outline: none; width: 170px; text-transform: uppercase; }
  .scnrow { margin-bottom: 6px; } .scnname { width: 104px; font-size: 11px; flex: none; }
  .sliders label span { width: 76px; flex: none; opacity: .85; }
  input[type=range] { flex: 1; min-width: 0; accent-color: var(--cy); cursor: ew-resize; height: 22px; }
  input[type=color] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
  #txt { -webkit-user-select: text; user-select: text; width: 100%; font: 700 18px Bahnschrift, "Segoe UI", sans-serif; letter-spacing: .08em; color: var(--ink);
    background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; text-transform: uppercase; }
  #txt:focus { border-color: var(--cy); }
  #hint { position: fixed; top: 14px; left: 0; right: 0; text-align: center; font-size: 13px; opacity: .85;
    text-shadow: 0 0 12px #000, 0 0 4px #000; pointer-events: none; transition: opacity 1.2s; padding: 0 12px; line-height: 1.5; }
  #stat { position: fixed; top: 10px; right: 12px; font-size: 10px; opacity: .45; pointer-events: none; }
  #err { position: fixed; inset: 0; display: none; padding: 24px; background: #100; color: #fbb; font: 13px/1.5 Consolas, monospace; white-space: pre-wrap; overflow: auto; letter-spacing: 0; }
  #showui { position: fixed; top: 10px; left: 12px; display: none; opacity: 0; transition: opacity .3s; }
  #pvbox { position: fixed; top: 40px; left: 12px; width: min(340px, 42vw); display: none; border: 2px solid var(--pk); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 24px #000; z-index: 3; }
  #pvbox canvas { width: 100%; display: block; transform: scaleY(-1); }
  #pvbox div { padding: 6px 8px; font-size: 10px; color: var(--pk); background: #000; text-align: center; }
  #onair { position: fixed; top: 12px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--pk); display: none; pointer-events: none; text-shadow: 0 0 8px #000, 0 0 3px #000; }
  body.priv #pvbox, body.priv #onair { display: block; }
  body.clean #pvbox, body.clean #onair, body.embed #pvbox, body.embed #onair { display: none !important; }
  #send { border-color: var(--pk); color: var(--pk); }
  #send.pending { background: var(--pk); color: #1a0010; box-shadow: 0 0 22px var(--pk); }
  body.clean #ui, body.clean #hint, body.clean #stat { opacity: 0; pointer-events: none; }
  body.clean #ui > * { pointer-events: none; }
  body.clean #showui { display: block; }
  body.clean.peek #showui { opacity: .8; }
  body.clean canvas#gl { cursor: none; }
  body.clean.peek canvas#gl { cursor: crosshair; }
  body.embed #ui, body.embed #hint, body.embed #stat, body.embed #showui { display: none !important; }

/* ---- start screen + how-to (web only, SUBASHTON green Matrix style) ---- */
#start { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(0,20,10,.78), rgba(0,4,0,.94)); overflow-y: auto; -webkit-user-select: text; user-select: text; }
#start[hidden] { display: none; }
#start * { -webkit-user-select: text; user-select: text; }
.st-box { width: min(620px, 100%); margin: auto; padding: 26px 22px 20px; border: 1px solid rgba(0,255,110,.4); border-radius: 14px; background: rgba(0,20,10,.9);
  box-shadow: 0 0 34px rgba(0,255,110,.22); color: #b8ffd0; font: 15px/1.5 "Share Tech Mono", Consolas, ui-monospace, monospace; letter-spacing: .02em; text-align: left; }
#start h1 { margin: 0; font: 900 clamp(26px, 6vw, 40px)/1.1 "Orbitron", Bahnschrift, system-ui, sans-serif; letter-spacing: .08em; color: #00ff6e; text-shadow: 0 0 12px rgba(0,255,110,.6); text-align: center; }
#start h1 b { color: #c6ff00; }
.st-sub { margin: 8px 0 18px; text-align: center; font-size: 12px; letter-spacing: .16em; color: rgba(184,255,208,.7); }
.st-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.st-steps li { position: relative; padding: 2px 0 0 42px; min-height: 30px; }
.st-steps li span { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #00ff6e; color: #00ff6e; font-weight: bold; }
.st-steps b, .st-note b, .st-fine b { color: #eafff1; }
.st-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#start button { font: bold 15px/1 "Share Tech Mono", Consolas, monospace; letter-spacing: .1em; padding: 15px 18px; border-radius: 10px; cursor: pointer;
  color: #b8ffd0; background: rgba(0,20,10,.8); border: 1px solid rgba(0,255,110,.45); }
#start button:hover, #start button:focus-visible { border-color: #00ff6e; box-shadow: 0 0 18px rgba(0,255,110,.35); outline: none; }
#start button.st-main { flex: 1 1 100%; font-size: 18px; padding: 18px; color: #000400; background: #00ff6e; border-color: #00ff6e; box-shadow: 0 0 22px rgba(0,255,110,.45); }
#start button.st-main:hover { background: #c6ff00; border-color: #c6ff00; }
#start button:disabled { opacity: .45; cursor: default; box-shadow: none; }
#start button.st-busy { opacity: .7; }
.st-msg { min-height: 1.5em; margin: 12px 0 0; text-align: center; color: #ffc400; }
.st-note { margin: 6px 0 0; text-align: center; font-size: 13px; }
.st-fine { margin: 14px 0 0; text-align: center; font-size: 12px; color: rgba(184,255,208,.6); }
.st-fine a { color: #00ff6e; }
@media (max-width: 520px) { .st-box { padding: 20px 16px 16px; font-size: 14px; } #start button { flex: 1 1 100%; } }
