:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  background: #040616;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#chrome {
  position: fixed;
  top: calc(8px + var(--sat));
  right: calc(8px + var(--sar));
  display: flex;
  gap: 8px;
  z-index: 2;
}

#chrome button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #2a3a66;
  border-radius: 8px;
  background: rgba(4, 6, 22, 0.72);
  color: #6eb4ff;
  font: bold 16px ui-monospace, monospace;
  touch-action: manipulation;
}

#boot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + var(--sab));
  margin: 0;
  text-align: center;
  color: #6eb4ff;
  font: bold 14px ui-monospace, monospace;
}
