/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (c) 2026 Eric Helgeson — part of bluescsi-powerview */

:root {
  --bg: #0c0d10;
  --panel: #181a20;
  --line: #2a2d36;
  --fg: #d7dae0;
  --muted: #8b909c;
  --accent: #3b9dff;
  --rec: #ff4040;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- top bar ---- */
#bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.brand { font-weight: 700; letter-spacing: 0.2px; margin-right: 4px; }
.brand::before { content: "▎"; color: var(--accent); }

.sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }

button {
  background: #23262f;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  cursor: pointer;
}
button:hover { background: #2c303b; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }

#connect { background: var(--accent); border-color: var(--accent); color: #06203a; font-weight: 600; }
#connect.connected { background: #23262f; color: var(--fg); font-weight: 400; }

.group { display: inline-flex; }
.group button { border-radius: 0; border-left-width: 0; }
.group button:first-child { border-radius: 6px 0 0 6px; border-left-width: 1px; }
.group button:last-child { border-radius: 0 6px 6px 0; }
.group button.active { background: var(--accent); color: #06203a; border-color: var(--accent); }

#record.recording { background: var(--rec); border-color: var(--rec); color: #fff; }

.status { color: var(--muted); margin-left: auto; }

/* ---- stage / canvas ---- */
#stage {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: auto;
}

/* The canvas backing store is sized in device pixels and its CSS width/height
   are set explicitly in JS (app.js _blit), so the browser does no extra
   scaling. image-rendering:pixelated is just belt-and-suspenders. The flex
   stage centers/letterboxes it on black. */
#screen {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

/* Fullscreen: the stage element itself goes fullscreen. */
#stage:fullscreen { background: #000; }

#hint {
  position: absolute;
  max-width: 560px;
  padding: 24px 28px;
  color: var(--muted);
  text-align: center;
}
#hint h1 { color: var(--fg); font-size: 20px; margin: 0 0 12px; }
#hint p { margin: 8px 0; }
#hint .req { font-size: 12px; color: #6a6f7b; margin-top: 16px; }
#hint.hidden { display: none; }

/* ---- footer ---- */
#foot {
  display: flex;
  gap: 16px;
  padding: 5px 10px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
}
#foot .shortcuts { margin-left: auto; color: #6a6f7b; }
