:root {
  --bg: #06050c;
  --panel: #0E0B1A;
  --gold: #E7C77B;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(120% 80% at 50% -10%, #211741 0%, #0d0a1a 52%, #06050c 100%);
  color: #F7F3FF;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(231, 199, 123, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.65);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.safe-probe {
  position: fixed;
  left: 0;
  width: 1px;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

#safe-top {
  top: 0;
  height: env(safe-area-inset-top, 0px);
}

#safe-bottom {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 380px) {
  #stage {
    max-width: none;
  }
}
