body {
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: system-ui, sans-serif;
}

#canvas-container {
  position: fixed;
  inset: 0;
}

#info {
  position: fixed;
  top: 1rem;
  left: 1rem;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1rem 1rem 0.75rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

#info h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
}

#info p {
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #ddd;
}

#close-info {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
}

#controls {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 0.75rem;
  max-width: 220px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  user-select: none;
  pointer-events: none;
}

#controls p {
  margin: 0.25rem 0;
}

#controls p:first-child {
  margin-top: 0;
}

#artifact-info-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1rem 1rem 0.9rem;
  border-radius: 0.75rem;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 10000;
}

#artifact-info-popup h2 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

#artifact-info-popup p {
  margin: 0 0 0.5rem 0;
  color: #ddd;
}

#artifact-info-popup .meta {
  font-size: 0.7rem;
  color: #aaa;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    #dcdcdc 60%,
    #000000 100%
  );
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* di atas canvas */
  transition: opacity 0.5s ease;
}

#loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

.loading-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px 32px;
  width: min(320px, 80vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  font-family: system-ui, sans-serif;
  text-align: center;
}

.loading-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.loading-sub {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 16px;
}

#loading-bar {
  width: 100%;
  height: 6px;
  background: #ccc;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

#loading-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #000 0%, #666 100%);
  transition: width 0.3s ease;
}

#loading-text {
  font-size: 0.75rem;
  color: #000;
  opacity: 0.8;
}
