/* ==========================================================================
   PURE WebAR Camera - PSO 3D Logo Mobile Screen Optimized
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}

.ar-screen-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Fullscreen Camera Stream */
#webcamVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000000;
}

/* Fullscreen Three.js 3D Overlay Canvas */
#arThreeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Tap to Start Camera Glassmorphism Modal */
.tap-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tap-start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tap-card {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 56, 101, 0.85);
  border: 2px solid #00a859;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 168, 89, 0.4);
}

.tap-icon {
  font-size: 2.2rem;
  width: 64px;
  height: 64px;
  background: rgba(0, 168, 89, 0.2);
  border: 2px solid #00a859;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 168, 89, 0.5);
}

.tap-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.tap-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.tap-btn {
  padding: 12px 26px;
  background: linear-gradient(135deg, #00a859, #00d672);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 168, 89, 0.5);
}
