html, body, ul, li {
  margin: 0;
  border: 0;
  padding: 0;
}

#game-root {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000;
}

canvas {
  display: block;
  max-width: min(100vw, calc(100vh * 762 / 720));
  max-height: min(100vh, calc(100vw * 720 / 762));
  width: min(100vw, calc(100vh * 762 / 720));
  height: min(100vh, calc(100vw * 720 / 762));
  margin: 0 auto;
  background-color: blue;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

p {
  text-align: center;
}

body {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
}

.info {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 12px;
  font: 14px system-ui, sans-serif;
  background: rgba(255,255,255,0.9);
  max-width: min(420px, 96vw);
}

.kiosk .info {
  display: none;
}

.kiosk-hint {
  font-size: 12px;
  color: #444;
  margin: 6px 0 0;
}

html.kiosk, html.kiosk body {
  background: #000;
}

html.kiosk #game-root {
  min-height: 100vh;
}
