html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #0e0a1e;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  color: #fff;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
#score {
  font-size: 56px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1;
}
#best {
  font-size: 15px;
  opacity: .65;
  margin-top: 4px;
}

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 10;
  background: rgba(14, 10, 30, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}
.hidden { display: none; }

.screen h1 {
  font-size: 52px;
  margin: 0;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.screen p {
  margin: 0;
  font-size: 17px;
  opacity: .8;
  max-width: 320px;
  line-height: 1.6;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
}
button.big {
  font-size: 22px;
  font-weight: 700;
  padding: 16px 56px;
  background: linear-gradient(135deg, #ff5470, #ff8a5c);
  box-shadow: 0 8px 24px rgba(255, 84, 112, .4);
}
button.big:active { transform: scale(.95); }
button.revive {
  background: linear-gradient(135deg, #2dd4bf, #4ade80);
  box-shadow: 0 8px 24px rgba(74, 222, 128, .35);
}
button.small {
  font-size: 18px;
  padding: 10px 16px;
  background: rgba(255,255,255,.12);
}
#go-score { font-size: 72px !important; }
