:root {
  color-scheme: dark;
  --gold: #f0d078;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

canvas {
  display: block;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

button {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 2;
  appearance: none;
  margin: 0;
  border: 1px solid rgba(240, 208, 120, 0.45);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px 6px;
  border-radius: 999px;
  cursor: pointer;
}

button:hover {
  background: rgba(48, 36, 8, 0.72);
}

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  button {
    font-size: 10px;
    padding: 6px 10px 5px;
  }
}
