*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #030508;
  user-select: none;
  -webkit-user-select: none;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 48%, #0a131c 0%, #05080d 55%, #020305 100%);
}

#crystal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: ns-resize;
  opacity: 0;
  transition: opacity 420ms ease-out;
}

#crystal-canvas.is-ready {
  opacity: 1;
}

/* Bare-minimum textless entry point to workspace; zero visible typography */
.portal-mark {
  position: fixed;
  top: clamp(18px, 3vw, 30px);
  right: clamp(18px, 3vw, 30px);
  z-index: 10;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(214, 238, 250, 0.24);
  text-decoration: none;
  border-radius: 50%;
  transition: color 240ms ease, transform 240ms ease;
}

.portal-mark:hover {
  color: rgba(235, 248, 255, 0.82);
  transform: scale(1.08);
}

.portal-mark:focus-visible {
  outline: 1px solid rgba(190, 232, 250, 0.72);
  outline-offset: 4px;
  color: rgba(235, 248, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  #crystal-canvas {
    transition: none;
  }
}
