:root {
  color-scheme: light;
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  background: #f7f2e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  background: #f7f2e8;
}

.game-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  -webkit-touch-callout: none;
}

.toolbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
  z-index: 2;
}

.toolbar button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(53, 48, 38, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.82);
  color: #343028;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(63, 49, 31, 0.12);
  backdrop-filter: blur(10px);
}

.toolbar button:focus-visible {
  outline: 3px solid rgba(46, 121, 164, 0.35);
  outline-offset: 3px;
}

.toolbar button:hover {
  background: rgba(255, 255, 255, 0.94);
}
