* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
  overscroll-behavior: none;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  touch-action: none;
}

/* HUD score, shown only during gameplay */
#hud {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #2e2e2e;
  pointer-events: none;
  z-index: 5;
}

.hidden {
  display: none !important;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #ffffff;
  z-index: 10;
}

.title {
  font-size: 42px;
  color: #3ca832;
  letter-spacing: 1px;
  text-align: center;
}

.gameover-title {
  font-size: 34px;
  color: #2e2e2e;
  letter-spacing: 1px;
}

.score-line {
  font-size: 20px;
  color: #2e2e2e;
}

.btn {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: #3ca832;
  border: none;
  border-radius: 12px;
  padding: 14px 36px;
  cursor: pointer;
}

.btn:active {
  background: #339129;
}
