* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(circle at 50% 18%, rgba(116, 78, 130, 0.28), transparent 58%),
    radial-gradient(circle at 50% 100%, rgba(214, 141, 62, 0.14), transparent 55%),
    #120d14;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#stage {
  width: min(100vw, 48.9vh, 460px);
  aspect-ratio: 440 / 900;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 220, 150, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  touch-action: none;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: rgba(14, 9, 16, 0.94);
  color: #fff2d4;
  text-align: center;
  padding: 24px;
}

.rotate-hint .phone {
  width: 44px;
  height: 74px;
  border: 3px solid #ffd45e;
  border-radius: 9px;
  box-shadow: 0 0 24px rgba(255, 212, 94, 0.35);
}

.rotate-hint strong {
  font-size: 19px;
  letter-spacing: 0.2px;
}

.rotate-hint span {
  font-size: 13px;
  color: rgba(255, 242, 212, 0.7);
}

@media (orientation: landscape) and (max-height: 520px) {
  .rotate-hint {
    display: flex;
  }
}
