body {
  margin: 0;
  overflow: hidden;
}
#three-container {
  width: 100vw;
  height: 100vh;
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: sans-serif;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.loading-text {
  font-size: 1.5em;
  color: #333;
  animation: blink 1.5s ease-in-out infinite;
}
#ar-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffffe6;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  font-family: sans-serif;
}
.ar-loading-box {
  text-align: center;
}
.ar-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #bbb;
  border-top-color: #444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
.ar-loading-message {
  font-size: 1.4em;
  color: #444;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.disabled-label {
  opacity: 0.6;
  pointer-events: none;
}
#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px #0000001a;
  z-index: 9999;
}
#controls details {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
#controls details > summary {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 6px 0;
  font-weight: 600;
}
#controls select,
#controls button,
#controls input[type="range"] {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
}
#controls::-webkit-scrollbar {
  width: 10px;
}
#controls::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
#controls::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}
#controls::-webkit-scrollbar-thumb:hover {
  background: #b3b3b3;
}
canvas {
  image-rendering: auto;
}
