* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #120d18;
}

body {
  position: fixed;
  inset: 0;
  background: #120d18 radial-gradient(circle at 50% 22%, #38254a 0%, #150e1c 68%);
  color: #d9cfe4;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#stage {
  position: relative;
  line-height: 0;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .7));
}

canvas {
  display: block;
  touch-action: none;
  cursor: pointer;
  border-radius: 14px;
  background: #2b2036;
}

#hint {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: .7;
  text-align: center;
}

@media (pointer: coarse), (max-height: 720px) {
  #stage { filter: none; }
  canvas { border-radius: 0; }
  #hint { display: none; }
  body { gap: 0; padding: 0; }
}
