html, body {
  margin: 0;
  padding: 0;
  background: #030204;
  color: #cbbfb5;
  font-family: "Crimson Pro", Georgia, serif;
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #120810 0%, #030204 70%);
}
#wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  box-shadow: 0 0 60px rgba(160, 20, 40, 0.25), 0 0 0 1px #2a1018;
  touch-action: none;
}
/* overlaid on the bottom edge of the canvas so it is always on screen */
#bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  box-sizing: border-box;
  font-size: 13px;
  color: #8a7a7a;
  letter-spacing: 0.3px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.75));
  pointer-events: none;
}
#bar button {
  pointer-events: auto;
  background: rgba(22, 10, 16, 0.85);
  color: #d8b8c0;
  border: 1px solid #5a2a38;
  border-radius: 4px;
  padding: 3px 10px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}
#bar button:hover { background: #3a1828; color: #fff; }
@media (max-width: 700px) {
  #bar .hint { display: none; }
}
