:root {
  color-scheme: dark;
  --ink: #fff;
  --muted: #aab5c2;
  --line: rgba(255,255,255,.19);
  --cyan: #6bd6ff;
  --teal: #61f2da;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #010204; color: var(--ink); }
body { position: relative; isolation: isolate; }
button, a { font: inherit; }
button { color: inherit; cursor: pointer; }

#vrCanvas { position: fixed; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#vrCanvas:active { cursor: grabbing; }

.vr-topbar {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.vr-topbar > * { pointer-events: auto; }
.back-link, .vr-brand, .xr-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(6,7,11,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05);
}

.back-link { color: #dce5ed; text-decoration: none; font-size: 12px; font-weight: 650; }
.back-link:hover { border-color: rgba(107,214,255,.55); }
.vr-brand { justify-self: center; padding: 6px 15px 6px 9px; }
.vr-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(107,214,255,.38); border-radius: 50%; color: var(--cyan); box-shadow: inset 0 0 18px rgba(73,180,231,.12); }
.vr-brand strong, .vr-brand small { display: block; }
.vr-brand strong { font-size: 13px; }
.vr-brand small { margin-top: 2px; color: #83a9bf; font-size: 7px; font-weight: 750; letter-spacing: .24em; }
.xr-status { justify-self: end; color: #d8e0e7; font-size: 11px; }
.xr-status i { width: 7px; height: 7px; border-radius: 50%; background: #e8b76c; box-shadow: 0 0 10px rgba(232,183,108,.7); }
.xr-status.ready i { background: var(--teal); box-shadow: 0 0 11px rgba(97,242,218,.8); }

.vr-ui { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.vr-welcome, .vr-object-panel { pointer-events: auto; border: 1px solid var(--line); background: rgba(5,7,11,.94); box-shadow: 0 30px 100px rgba(0,0,0,.66), inset 0 1px rgba(255,255,255,.045); }
.vr-welcome { position: absolute; top: 50%; left: 50%; width: min(430px, calc(100% - 32px)); transform: translate(-50%, -50%); padding: 30px; border-radius: 22px; text-align: center; }
.eyebrow { color: #80c9ec; font-size: 9px; font-weight: 750; letter-spacing: .2em; }
.vr-welcome h1 { margin: 10px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.055em; }
.vr-welcome > p { margin: 0 auto 20px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.enter-vr-slot { min-height: 54px; display: grid; place-items: center; }
#enterVrButton { position: static !important; left: auto !important; bottom: auto !important; width: 100% !important; max-width: 300px; height: 50px !important; padding: 0 18px !important; border: 1px solid #71d4ff !important; border-radius: 14px !important; background: #0b78ac !important; color: #fff !important; font: 700 13px/50px Inter, system-ui, sans-serif !important; opacity: 1 !important; box-shadow: 0 0 28px rgba(64,174,226,.22), inset 0 1px rgba(255,255,255,.15) !important; }
.preview-button { margin-top: 8px; padding: 8px 12px; border: 0; background: transparent; color: #9bcce4; font-size: 11px; }
.preview-button:hover { color: #fff; }
.vr-welcome .vr-help { margin: 12px auto 0; color: #748292; font-size: 10px; }

.vr-object-panel { position: absolute; right: 18px; top: 82px; width: min(370px, calc(100% - 36px)); padding: 25px; border-radius: 20px; }
.vr-object-panel > button { position: absolute; top: 11px; right: 11px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #12151b; }
.vr-object-panel h2 { margin: 8px 36px 12px 0; font-size: 28px; letter-spacing: -.04em; }
.vr-object-panel > p { color: #b7c1cb; font-size: 12px; line-height: 1.6; }
.vr-object-panel dl { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vr-object-panel dl div { padding: 13px; }
.vr-object-panel dl div:nth-child(2) { border-left: 1px solid var(--line); }
.vr-object-panel dl .wide { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.vr-object-panel dt { color: #77879a; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.vr-object-panel dd { margin: 6px 0 0; color: #e6edf2; font-size: 10px; line-height: 1.5; }

.vr-time-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 18px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px 42px 36px minmax(185px, 250px) minmax(130px, 190px) auto;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(6,7,11,.95);
  box-shadow: 0 22px 65px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.05);
}
.vr-time-dock button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: #12151b; }
.vr-time-dock .primary { width: 42px; height: 42px; border-color: #6bd6ff; background: #0b78ac; }
.vr-time-readout, .vr-place { min-width: 0; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.13); }
.vr-time-readout span, .vr-place span { display: block; color: #78899a; font-size: 8px; letter-spacing: .1em; }
.vr-time-readout strong, .vr-place strong { display: block; margin-top: 4px; overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#vrNow { width: auto; padding: 0 12px; color: #a2e2ff; }
.drag-hint { position: fixed; z-index: 20; left: 50%; bottom: 88px; transform: translateX(-50%); color: #536273; font-size: 9px; pointer-events: none; }

@media (max-width: 720px) {
  .vr-topbar { top: 9px; left: 9px; right: 9px; grid-template-columns: auto 1fr auto; gap: 6px; }
  .back-link { width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: 0; }
  .back-link span { font-size: 18px; }
  .vr-brand { min-height: 44px; justify-self: stretch; justify-content: center; }
  .xr-status { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .xr-status span { display: none; }
  .vr-welcome { padding: 25px 20px; }
  .vr-object-panel { top: auto; right: 8px; left: 8px; bottom: 78px; width: auto; max-height: 66vh; overflow: auto; }
  .vr-time-dock { left: 8px; right: 8px; bottom: 8px; transform: none; grid-template-columns: 32px 38px 32px minmax(0,1fr) auto; }
  .vr-time-dock button { width: 32px; }
  .vr-time-dock .primary { width: 38px; height: 38px; }
  .vr-place { display: none; }
  .vr-time-readout { padding: 0 8px; }
  .drag-hint { display: none; }
}
