html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #fff;
}

/* MindAR mounts its camera + canvas inside this element */
#ar-root {
  position: fixed;
  inset: 0;
}

/* Tap-to-start gate (required by iOS for camera + video autoplay) */
#start-gate {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
}

#start-gate button {
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

#start-gate p {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Hide A-Frame's enter-VR / enter-AR goggles button */
.a-enter-vr,
.a-enter-ar,
.a-enter-vr-button,
.a-enter-ar-button,
.a-orientation-modal { display: none !important; }

/* Status / hint line over the camera feed */
#status {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 9;
  pointer-events: none;
}

#status.hidden { display: none; }

/* Back button overlay (visible during AR session) */
#back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
}

/* Simple menu list (index.html) */
.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  max-width: 28rem;
  margin: 0 auto;
}

.menu a {
  display: block;
  padding: 1.25rem 1.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 0.75rem;
  border: 1px solid #333;
  font-size: 1.1rem;
}
