:root {
  color-scheme: light;
  background: #15191d;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 151, 163, 0.2), transparent 48%),
    linear-gradient(180deg, #252a2e 0%, #0e1012 100%);
}

.shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.stage {
  position: relative;
  width: min(100vw, calc(100svh * 1.6666667));
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: clamp(6px, 1.2vw, 16px);
  background:
    linear-gradient(rgba(248, 248, 244, 0.16), rgba(248, 248, 244, 0.16)),
    url("assets/blueprint-paper.png") center / cover no-repeat,
    #f3f2ed;
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.safe-note {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: rgba(41, 50, 55, 0.46);
  font-size: clamp(8px, 1.15vw, 14px);
  letter-spacing: 0.18em;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-aspect-ratio: 1 / 1) {
  .safe-note {
    display: none;
  }
}
