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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08060c;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 45%, #221631 0%, #0b0712 60%, #050309 100%);
}

#stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}

canvas {
  display: block;
  image-rendering: auto;
  max-width: 100vw;
  max-height: 100vh;
  box-shadow:
    0 0 0 1px rgba(255, 190, 80, .22),
    0 0 55px rgba(180, 80, 255, .18),
    0 30px 100px rgba(0, 0, 0, .8);
  border-radius: 6px;
  cursor: default;
}

#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: #0a0710;
  color: #ffd166;
  font-size: 22px;
  text-align: center;
  padding: 30px;
  z-index: 10;
}

@media (orientation: portrait) and (max-width: 700px) {
  #rotate-hint { display: flex; }
}
