:root {
  color-scheme: dark;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 16px 16px 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#container {
  position: relative;
  width: min(960px, 100%, calc((100vh - 68px) * 4 / 3));
  width: min(960px, 100%, calc((100dvh - 68px) * 4 / 3));
  height: auto;
  aspect-ratio: 4 / 3;
}

#container canvas,
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#overlay {
  display: flex;
  background: #000;
}

#instructions {
  margin: auto;
  padding: 24px;
  text-align: center;
}

#instructions h1 {
  color: gold;
}

#instructions p {
  margin: 8px 0;
}

#instructions .start-hint {
  color: greenyellow;
}

#playerHealth {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  border-radius: 3px;
  background: greenyellow;
}

#playerScore {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  width: 100%;
  height: 20px;
  color: #fff;
}
