* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #3f9be8;
  color: #ffffff;
  font-family:
    "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

#app {
  position: relative;
  height: 100%;
}

canvas {
  display: block;
}

/* HUD */
.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-shadow:
    0 2px 0 #1b1b2a,
    0 0 6px rgba(27, 27, 42, 0.6);
}

.hud-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.hud-stat {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: pre;
}

.hud-hint {
  font-size: 13px;
  font-weight: 700;
}

.hud-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.hud-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 0 #1b1b2a;
}

.hud-sub {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

/* Touch controls, only on touch screens. */
.touch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px;
}

@media (pointer: coarse) {
  .touch {
    display: flex;
  }
}

.touch-pad {
  display: flex;
  gap: 14px;
}

.touch button {
  pointer-events: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #1b1b2a;
  background: rgba(255, 255, 255, 0.85);
  color: #1b1b2a;
  font-size: 28px;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
