body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Sora", "Segoe UI", sans-serif;
  background: #0b0f14;
}

a-scene {
  position: fixed !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}

a-scene canvas,
a-scene video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#camera {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
}

#qr-canvas {
  display: none;
}

.hidden {
  display: none !important;
}

#overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  color: #eef3f8;
  z-index: 10;
}

#overlay .panel {
  pointer-events: auto;
  background: rgba(10, 15, 22, 0.78);
  border: 1px solid rgba(54, 194, 165, 0.3);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(5, 10, 14, 0.45);
}

#topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 8px;
  max-width: 45vw;
}

#controls {
  position: absolute;
  bottom: 20px;
  right: 16px;
  left: auto;
  transform: none;
  display: grid;
  gap: 12px;
  width: min(420px, 50vw);
  max-height: 50vh;
  overflow: auto;
  transform-origin: bottom right;
}

.btn-row {
  display: flex;
  gap: 10px;
}

button, input[type="range"] {
  pointer-events: auto;
}

button {
  background: #36c2a5;
  color: #051016;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #121c28;
  color: #eef3f8;
  border: 1px solid #223243;
}

label {
  font-size: 0.85rem;
  color: #9fb0c3;
}

.slider {
  display: grid;
  gap: 6px;
}

.repo-meta {
  font-size: 0.85rem;
  color: #b6c4d4;
}

#repo-title {
  font-weight: 700;
}

@media (max-width: 720px) {
  #controls {
    width: calc(100% - 32px);
  }
  .btn-row {
    flex-wrap: wrap;
  }
}
