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

html, body {
  height: 100%;
  overflow: hidden;
  background: #0b0e14;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  z-index: 10;
  pointer-events: none;
}

#title {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 18px;
  color: #ff2e2e;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

#counter {
  font-weight: 800;
  font-size: 18px;
  background: rgba(0,0,0,.55);
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #ff2e2e;
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 14, .82);
  backdrop-filter: blur(4px);
  z-index: 20;
  transition: opacity .3s;
}

#overlay.hidden { opacity: 0; pointer-events: none; }

.card {
  background: #12161f;
  border: 2px solid #ff2e2e;
  border-radius: 18px;
  padding: 28px 26px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

#ov-eagle {
  width: 128px;
  height: auto;
  margin: -70px auto 6px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5));
}
.card p { font-size: 16px; line-height: 1.5; color: #c9d1e0; margin-bottom: 22px; white-space: pre-line; }

#ov-btn {
  background: #ff2e2e;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

#ov-btn:active { transform: scale(.97); }
