:root {
  color-scheme: dark;
  background: #080808;
}

* {
  box-sizing: border-box;
}

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

body {
  cursor: crosshair;
  user-select: none;
  font-family: ui-monospace, "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #050505;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #000;
}

.compat-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #000;
  color: #e8e8e8;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.compat-screen[hidden] {
  display: none;
}

.start-screen.is-hidden {
  display: none;
}

.begin-button {
  min-width: 118px;
  min-height: 42px;
  border: 2px solid #e8e8e8;
  background: #000;
  color: #e8e8e8;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: lowercase;
  cursor: pointer;
}

.begin-button:hover,
.begin-button:focus-visible {
  background: #e8e8e8;
  color: #000;
  outline: none;
}

.panel {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d8d8d8;
  pointer-events: none;
}

.panel-toggle,
.reset {
  border: 2px solid #050505;
  background: #d4ff15;
  color: #050505;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.panel-toggle {
  width: 30px;
  height: 30px;
  font-weight: 700;
}

.panel-body {
  width: 196px;
  padding: 10px;
  border: 2px solid #050505;
  background: rgba(5, 5, 5, 0.82);
  box-shadow: 4px 4px 0 #0044d8;
  pointer-events: auto;
}

.panel.is-collapsed .panel-body {
  display: none;
}

label {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: lowercase;
}

input[type="range"] {
  width: 100%;
  accent-color: #f630b0;
}

select {
  width: 100%;
  min-width: 0;
  border: 1px solid #5a5a5a;
  background: #090909;
  color: #d8d8d8;
  font: inherit;
  font-size: 11px;
}

.reset {
  width: 100%;
  height: 24px;
  margin-top: 2px;
  background: #00d6ff;
}
