@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: linear-gradient(180deg, #1e1418 0%, #281c1c 50%, #1a1418 100%);
  color: #e8d4c8;
  font-family: "Press Start 2P", monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

h1 {
  font-size: 8px;
  font-weight: normal;
  margin: 0;
  opacity: 0.85;
  letter-spacing: 0;
  line-height: 1.6;
}

#wrap {
  position: relative;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  padding: 14px;
  background: linear-gradient(145deg, #4a3838, #241818);
  border-radius: 6px;
  box-shadow:
    0 0 0 3px #0a0c10,
    0 0 0 7px #6a5048,
    0 16px 40px rgba(0, 0, 0, 0.55);
}

#wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 14px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.015) 3px,
    rgba(0, 0, 0, 0.015) 4px
  );
  border-radius: 2px;
}

#game {
  display: block;
  width: 960px;
  height: 864px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 980px) {
  #game {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 288;
  }
}

#hint {
  font-size: 8px;
  opacity: 0.65;
  text-align: center;
  max-width: 28rem;
  line-height: 2;
}
