:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #030712;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 133, 164, 0.2), transparent 45%),
    #030712;
}

.game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #062b44;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  outline: none;
  touch-action: none;
}

canvas:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(125, 246, 238, 0.75);
}

.legal {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  color: rgba(216, 235, 242, 0.38);
  font-size: clamp(8px, 1vw, 12px);
  pointer-events: none;
}

noscript {
  padding: 24px;
  color: #fff;
}
