/* ToyPix phone app. Black everywhere, dim text, nothing static. */
:root { color-scheme: dark; --dim: #8a93a3; --line: #2a2f38; --panel: rgba(14, 16, 20, 0.94); }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--dim);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* #app is the picture's frame: the chosen orientation. When the window
 * doesn't match it (lock refused, auto-rotate off), app.js sizes it to the
 * swapped window and turns it 90 degrees, sheet and messages included. */
#app { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; transform-origin: 0 0; }
#app.rot90 #sheet { touch-action: pan-x pan-y; }
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#wrap { position: relative; will-change: transform; transition: transform 1s linear; }
#screen { display: block; image-rendering: auto; background: #000; }
/* LED pixel look: the LED-resolution canvas scaled up without smoothing,
 * under a static opaque-black mask with one rounded-square hole per LED.
 * No glow: gaps, unlit LEDs and the background are pure black. */
#screen.pixel { image-rendering: pixelated; }
#mask { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
#mask.on { display: block; }

#toast { position: fixed; left: 0; right: 0; top: 18%; text-align: center; padding: 0 24px; pointer-events: none;
  font-size: 15px; color: #6f7888; opacity: 0; transition: opacity 0.6s ease; }
#toast.show { opacity: 1; }
#toast.fade { opacity: 0; transition: opacity 3.5s ease; }

#debug { position: fixed; left: 8px; top: 8px; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace;
  color: #7f8a9a; background: rgba(0, 0, 0, 0.55); padding: 6px 8px; border-radius: 6px; white-space: pre;
  pointer-events: none; display: none; }
#debug.on { display: block; }

#sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; touch-action: pan-y;
  background: var(--panel); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  padding: 10px 18px 24px; box-sizing: border-box; transform: translateY(105%); transition: transform 0.3s ease; }
#sheet.open { transform: none; }
#sheet h2 { font-size: 15px; font-weight: 600; margin: 4px 0 10px; color: #a9b2c0; display: flex;
  justify-content: space-between; align-items: center; }
#sheet button { font: inherit; color: #c9d1dc; background: #1c2027; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #1a1d23; }
.row label { flex: 0 0 auto; }
.row select, .row input[type=range] { flex: 1 1 auto; max-width: 60%; }
.row select { font: inherit; color: #c9d1dc; background: #1c2027; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 6px; }
.row input[type=checkbox] { width: 22px; height: 22px; accent-color: #3a6ea5; }
.row output.info { flex: 1 1 auto; text-align: right; font-variant-numeric: tabular-nums; }
.seg { flex-wrap: wrap; justify-content: flex-end; }
.row output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; }
.seg button.on { background: #24384f; border-color: #3a6ea5; }
.note { font-size: 13px; color: #6a7383; margin: 10px 0 0; }
