@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@400;500;700&display=swap');

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: #f3e7c4;
  font-family: 'Montserrat', system-ui, sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

#game-shell {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

canvas {
  width: min(100vw, 56.25svh);
  height: min(100svh, 177.78vw);
  max-height: 100svh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: block;
  outline: none;
}

@supports (height: 100dvh) {
  #game-shell {
    height: calc(100dvh - 8px);
    min-height: calc(100dvh - 8px);
  }

  canvas {
    width: min(100vw, calc((100dvh - 8px) * 0.5625));
    height: min(calc(100dvh - 8px), 177.78vw);
    max-height: calc(100dvh - 8px);
  }
}