* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #140c12;
  background-image: radial-gradient(circle at 50% 40%, #2a1520 0%, #140c12 70%);
  color: #c9b28a;
  font-family: "Press Start 2P", "Courier New", monospace;
}

/* 384x544 portrait playfield, scaled to fit with room for the cafe link */
.stage {
  position: fixed;
  left: 50%;
  top: calc(50% - 12px);
  height: min(calc(100dvh - 40px), calc(100vw * 544 / 384));
  aspect-ratio: 384 / 544;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #d9a441, 0 0 0 5px #7d2019, 0 10px 40px rgba(0, 0, 0, 0.6);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  outline: none;
}

.home {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  color: #c9b28a;
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.home:hover, .home:focus-visible { color: #f2c14e; }

.nojs {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  font-size: 12px;
}
