* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: transparent;
}

/* Scanning overlay */
#scanning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#scanning-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.scanning-frame {
  width: 70vw;
  height: 70vw;
  max-width: 400px;
  max-height: 400px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  position: relative;
  animation: pulse 2s infinite;
}

.scanning-frame::before,
.scanning-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #00ff88;
  border-style: solid;
}

.scanning-frame::before {
  top: -3px;
  left: -3px;
  border-width: 3px 0 0 3px;
  border-radius: 12px 0 0 0;
}

.scanning-frame::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 12px 0;
}

.scanning-text {
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  margin-top: 24px;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

/* Sound hint */
#sound-hint {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

#sound-hint span {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 16px;
}

#sound-hint .tap-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tap-bounce 1s ease-in-out infinite;
}

#sound-hint .tap-icon svg {
  fill: #333;
}

@keyframes tap-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
}

#sound-hint.hidden {
  opacity: 0;
  visibility: hidden;
}

/* A-Frame scene styling */
a-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* deployed Mon Jan 26 15:40:20 EET 2026 */
