/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
}

/* ============================================================
   Utility
   ============================================================ */
.hidden {
  display: none !important;
}

/* ============================================================
   Permission Screen
   ============================================================ */
#permission-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  z-index: 1000;
  padding: 1.5rem;
}

.permission-card {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.permission-card h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.permission-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #ccc;
}

.permission-card .subtle {
  font-size: 0.8rem;
  color: #999;
}

#start-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #00b894;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#start-btn:hover {
  background: #00a383;
}

.error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ============================================================
   Loading Overlay
   ============================================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 900;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #00b894;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   AR Container
   ============================================================
   When visible, it fills the entire viewport so the A-Frame
   scene covers the screen.
   ============================================================ */
#ar-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}
