* { margin: 0; box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; }
body { background: #0a0f1a; font-family: system-ui, Arial, sans-serif; overflow: hidden; }
canvas { display: block; }

/* VR- + AR-Button nebeneinander unten */
.xrbtns {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.xrbtns > button, button.VRButton {
  position: static; transform: none;
  padding: 12px 22px; border: 1px solid #3b82f6; border-radius: 10px;
  background: #1b2433; color: #eaf0fa; font-weight: 700; cursor: pointer;
}
.overlay {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  color: #8aa0bd; font-size: 14px; z-index: 10; text-align: center; pointer-events: none;
}
.overlay b { color: #eaf0fa; }
.overlay .logout { pointer-events: auto; cursor: pointer; color: #7aa2ff; }

/* ---- Login/Registrierung ---- */
.login-wrap {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #15233f, #0a0f1a); padding: 20px; overflow: auto;
}
.login-card {
  width: 100%; max-width: 380px; background: #111b2e; border: 1px solid #243352;
  border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45); color: #eaf0fa;
}
.login-card h1 { font-size: 20px; }
.login-card .sub { color: #8aa0bd; font-size: 14px; margin-top: -6px; margin-bottom: 6px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #9fb3d1; }
.login-card input {
  padding: 11px 12px; border-radius: 10px; border: 1px solid #2a3b5c; background: #0c1626;
  color: #eaf0fa; font-size: 15px;
}
.login-card input:focus { outline: none; border-color: #3b82f6; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  padding: 12px; border-radius: 10px; border: 1px solid #2a3b5c; background: #1b2433;
  color: #eaf0fa; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn.primary { background: #2563eb; border-color: #2563eb; margin-top: 4px; }
.btn.primary:disabled { opacity: .6; }
.btn.google { background: #fff; color: #1f2937; border-color: #fff; }
.btn.google span { font-weight: 900; color: #4285f4; }
.or { display: flex; align-items: center; gap: 10px; color: #5d7193; font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #243352; }
.login-err { color: #fca5a5; font-size: 13px; }
.login-card .switch { font-size: 13px; color: #8aa0bd; text-align: center; margin-top: 4px; }
.login-card .switch a { color: #7aa2ff; cursor: pointer; }
