:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0e1519;
  color: #e0e6de;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow: hidden;
}

main { width: 100%; height: 100%; position: relative; }

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* The game fills its space edge to edge; it takes no keyboard input to show focus for. */
canvas:focus, canvas:focus-visible { outline: none; }

#status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  background: #0e1519;
}

#status[hidden] { display: none; }
h1 { font-size: 28px; letter-spacing: 0.1em; }
p { max-width: 32ch; line-height: 1.5; }
button {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #78daae;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
noscript { position: fixed; inset: 45% 24px auto; text-align: center; }
