body {
  background: #181828;
  color: #fff;
  font-family: "Press Start 2P", monospace;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  text-align: center;
  margin-top: 16px;
}
.back-link {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
canvas {
  background: linear-gradient(#181828, #23234a 80%, #181828);
  border: 4px solid #fff;
  box-shadow: 0 0 32px #23234a;
  image-rendering: pixelated;
}
.controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dpad > div {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.dpad button {
  background: #23234a;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 2rem;
  margin: 4px;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px #000a;
}
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #23234aee;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  z-index: 10;
}
.hidden {
  display: none !important;
}
footer {
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #aaa;
}
@media (pointer: coarse) {
  #mobile-controls {
    display: flex !important;
  }
}
