:root {
  --bg: #ffffff;
  --bar: #f2f4f7;
  --ink: #1b2230;
  --muted: #5d6676;
  --line: #d9dee6;
  --field: #ffffff;
  --accent: #2f6fec;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --bar: #1d2128; --ink: #e9edf3; --muted: #9aa3b1; --line: #2e343e; --field: #262b33; --accent: #6f9dff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
body { display: flex; flex-direction: column; overflow: hidden; }
.bar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--bar); border-bottom: 1px solid var(--line); }
.bar[hidden] { display: none; }
.bar button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.bar button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar button:focus-visible, .bar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#go { flex: 1; min-width: 0; }
#addr { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 18px; padding: 0 14px; background: var(--field); color: var(--ink); font: inherit; }
#stage { position: relative; flex: 1; min-height: 0; }
#stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.note { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); background: var(--bg); }
.note[hidden] { display: none; }
.note p { max-width: 420px; margin: 0; }
.credits { position: fixed; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); opacity: .7; }
body.running .credits { display: none; }
