* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #f5f5f4;
  overflow: hidden;
  touch-action: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

#switch {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  border: 1px solid rgba(22, 22, 22, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #161616;
  font-family: Inconsolata, ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 24, 24, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

#switch:hover {
  background: #fff;
  transform: translateY(-1px);
}

#switch.down,
#switch:active {
  transform: translateY(2px) scale(0.96);
  background: #f2f2f1;
  box-shadow: 0 1px 3px rgba(24, 24, 24, 0.12);
}

#switch.switching {
  background: var(--tint, #fff);
  transform: translateY(2px) scale(0.96);
}
