:root { color-scheme: dark; --fg: #eef2f6; --muted: #9aa7b4; --accent: #ffb020; --bg: #0d1218; --panel: rgba(13, 18, 24, 0.78); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.card { max-width: 22rem; margin: 12vh auto 0; padding: 2rem; background: #151c25; border-radius: 12px; }
.card h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.card p { margin: 0 0 1.25rem; color: var(--muted); }
.card label { display: block; margin: 0.75rem 0 0.25rem; color: var(--muted); font-size: 0.9rem; }
.card input { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #2c3846; border-radius: 8px; background: #0d1218; color: var(--fg); }
.card button { width: 100%; margin-top: 1.25rem; padding: 0.7rem; border: 0; border-radius: 8px; background: var(--accent); color: #111; font-weight: 600; cursor: pointer; }
.card .error { min-height: 1.4em; margin-top: 0.75rem; color: #ff7a7a; }
.card a { color: var(--accent); }
#stage { position: fixed; inset: 0; touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
#stage canvas { display: block; width: 100%; height: 100%; }
#bar { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 0.4rem; padding: 0.4rem; background: var(--panel); border-radius: 999px; backdrop-filter: blur(6px); }
#bar button { min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; }
#bar button:hover, #bar button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); }
#bar button[hidden] { display: none; }
#status { position: fixed; top: max(1rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 0.45rem 0.9rem; background: var(--panel); border-radius: 999px; font-size: 0.9rem; pointer-events: none; }
#status .dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.45rem; border-radius: 50%; background: #6b7785; vertical-align: 0.05rem; }
#status.live .dot { background: #ff3b3b; }
#tap { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); border: 0; color: var(--fg); font-size: 1.25rem; cursor: pointer; }
#tap[hidden] { display: none; }
#vr { display: contents; }
#vr button { position: static !important; width: auto !important; left: auto !important; bottom: auto !important; }
