:root {
  color-scheme: light;
  --bg: #0a0b14;
  --glow: #1b1f3b;
  --text: #e7e7f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  /* Use dynamic viewport height for mobile browsers */
  display: flex;
  /* Flexbox is often safer for single centered structure than grid */
  justify-content: center;
  align-items: center;
  background: #000;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  overflow: hidden;
  /* Prevent scrollbars if not needed */
}

.stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  /* Increased gap slightly */
  padding: 24px;
}

.orb-frame {
  /* Use vmin to respect both width and height constraints (landscape/portrait) */
  width: min(80vmin, 420px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Optional: explicit max-height to ensure it never overflows vertically on short screens */
  max-height: 80dvh;
}

#canvas {
  display: block;
}

.orb-caption {
  font-family: "Space Grotesk", sans-serif;
  /* Ensure font is applied here too */
  font-size: clamp(14px, 4vmin, 18px);
  /* Increased size for better readability */
  letter-spacing: 0.15em;
  /* Slightly reduced spacing for better fit on small screens */
  text-transform: uppercase;
  opacity: 0.8;
  /* Increased opacity slightly */
  text-align: center;
  white-space: nowrap;
}