* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #222;
  font-family: system-ui, sans-serif;
}
.doll-shell {
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
}
#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.82);
  transition: opacity 160ms ease, visibility 160ms ease;
}
#loadingOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: white;
}
.loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: white;
  border-radius: 50%;
  animation: doll-spin 0.8s linear infinite;
}
@keyframes doll-spin {
  to { transform: rotate(360deg); }
}
#dollCanvas {
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
