/* Shared styling across all XR demos */
:root { color-scheme: dark; }
html, body {
  margin: 0; height: 100%; background: #000; color: #ddd;
  font-family: ui-sans-serif, system-ui, sans-serif; overflow: hidden;
}
#app { position: fixed; inset: 0; }
canvas { display: block; }

#ui {
  position: fixed; top: 10px; left: 10px; z-index: 10;
  background: rgba(10,10,14,0.72); backdrop-filter: blur(8px);
  padding: 10px 12px; border-radius: 10px; font-size: 12px;
  max-width: 300px; line-height: 1.4;
  border: 1px solid rgba(255,255,255,0.08);
}
#ui h1 { font-size: 13px; margin: 0 0 6px 0; font-weight: 600; letter-spacing: 0.02em; }
#ui .small { opacity: 0.6; font-size: 10.5px; margin-bottom: 8px; }
#ui label { display: block; margin: 6px 0 2px; font-size: 11px; opacity: 0.75; }
#ui input[type=range] { width: 100%; }
#ui select { background: #0d131a; color: #dfe8f0; border: 1px solid #263440; border-radius: 4px; padding: 3px 4px; font-size: 11px; width: 100%; }
#ui .hint { opacity: 0.55; font-size: 10.5px; margin-top: 8px; line-height: 1.45; }

#xrbtn-wrap {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; gap: 10px;
}
#xrbtn-wrap button {
  border: 0; padding: 10px 16px; border-radius: 8px; background: #3a6; color: #fff;
  font: 500 13px ui-sans-serif, system-ui; cursor: pointer;
}
#xrbtn-wrap button[disabled] { background: #444; color: #888; cursor: not-allowed; }

#scene-switch {
  position: fixed; top: 10px; right: 10px; z-index: 11;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,10,14,0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
  padding: 4px 4px 4px 12px; font-size: 11.5px;
}
#scene-switch .label { opacity: 0.7; }
#scene-switch select {
  background: rgba(255,255,255,0.04); color: #dfe8f0;
  border: 0; border-radius: 999px; padding: 5px 28px 5px 10px;
  font: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23dfe8f0'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
#scene-switch select:hover { background-color: rgba(255,255,255,0.10); }

#fps {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10;
  font: 500 12px ui-monospace, monospace; color: #9ab;
  background: rgba(10,10,14,0.6); padding: 4px 10px; border-radius: 999px;
}
#log {
  position: fixed; bottom: 70px; left: 10px; z-index: 10;
  font: 11px ui-monospace, monospace; color: #f86; max-width: 80%;
}
a { color: #7cf; }
