:root {
  --night: #16233f;
  --ink: #5b3a5e;
  --paper: #fff4dc;
  --pink: #ff9fb5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  overflow: hidden;
  overscroll-behavior: none;
}

canvas {
  position: fixed;
  inset: 0 auto auto 0;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

canvas.hot { cursor: pointer; }

dialog {
  border: 4px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  width: min(300px, calc(100vw - 32px));
  font: 16px/1.3 ui-monospace, "DejaVu Sans Mono", monospace;
  box-shadow: 6px 6px 0 #1d3f6e;
}

dialog::backdrop { background: #16233f66; }

label { display: block; margin-bottom: 8px; }

input {
  width: 100%;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

form div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

button {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

button.ok { background: var(--pink); }
