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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: none;
  overscroll-behavior: none;
}

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

#scene-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 22px 20px 28px;
  text-align: center;
  color: #1a1a1a;
  pointer-events: none;
  z-index: 10;
}

#overlay #count-label {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: #e0862c;
  font-variant-numeric: tabular-nums;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1rem;
  opacity: 0.6;
  z-index: 20;
  transition: opacity 0.4s ease;
  background: #ffffff;
}

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