html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a14;
  color: #e6e6f0;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#frame {
  position: relative;
  box-shadow: 0 0 0 4px #1a1a2e, 0 20px 60px rgba(0,0,0,0.7);
  background: #000;
}

canvas#game {
  display: block;
  width: min(96vw, calc(96vh * 256 / 240));
  height: auto;
  aspect-ratio: 256 / 240;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 4vw, 40px);
  color: #fff;
  text-shadow: 0 3px 0 #000, 0 0 12px rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 200ms ease;
}

#overlay.show {
  opacity: 1;
}

#hint {
  margin: 14px 0 0 0;
  font-size: 13px;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

#hint b {
  color: #ffd24a;
  font-weight: 600;
}
