html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1f24; font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app canvas { display: block; }
#hud { position: fixed; left: 12px; top: 12px; max-width: min(430px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 10px; background: rgba(16, 20, 26, 0.82); color: #eef2f6; font-size: 14px; line-height: 1.5; }
#hud h1 { margin: 0 0 8px; font-size: 17px; }
#hud-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
#hud-list button, #enter-vr { border: 1px solid #56606c; background: #2a313a; color: #eef2f6; border-radius: 6px; padding: 5px 9px; font: inherit; cursor: pointer; }
#hud-list button.on { background: #2f6fb3; border-color: #7fb7ff; }
#hud-list kbd { font: 11px ui-monospace, monospace; opacity: 0.7; margin-right: 4px; }
#hud-list button:focus-visible, #enter-vr:focus-visible { outline: 2px solid #ffd54a; outline-offset: 2px; }
#enter-vr { margin-top: 8px; width: 100%; padding: 9px; font-weight: 600; background: #2f6fb3; }
#enter-vr:disabled { background: #3a3f46; color: #a9b1bb; cursor: not-allowed; }
.row { min-height: 1.4em; }
.last { color: #ffd54a; }
.perf { color: #8fa3b3; font-size: 12px; }
details { margin-top: 6px; color: #c7d0da; font-size: 13px; }
details p { margin: 4px 0; }
#status { color: #ffb4a8; margin-top: 4px; }
#crosshair { position: fixed; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,0.5); }
body.in-xr #hud, body.in-xr #crosshair { display: none; }
