* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: #160b32;
  color: #fff8ff;
}

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

body {
  min-height: 100dvh;
  overflow: hidden;
  background: #160b32;
}

button,
canvas {
  -webkit-tap-highlight-color: transparent;
}

.menu-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  isolation: isolate;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  touch-action: none;
  cursor: pointer;
  outline: none;
}

#game-canvas:focus-visible {
  outline: 3px solid #fff6c8;
  outline-offset: -0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
