#gameOverOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Arial Black', sans-serif;
  animation: fadeIn 1s ease-in-out;
}

.gameover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 100%);
  opacity: 0.9;
  z-index: -1;
}

.gameover-content {
  text-align: center;
  color: white;
  animation: popIn 1s ease-out;
}

.scene {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #ffdd57;
  animation: flash 2s infinite;
}

#go-winner {
  font-size: 2em;
  margin: 20px 0;
  color: #00ff88;
}

#go-reason {
  font-size: 1.2em;
  margin-bottom: 20px;
}

#go-next, #go-replay {
  font-size: 1.1em;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 12px;
  background: #222;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

#go-next:hover, #go-replay:hover {
  background: #444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes flash {
  0%, 100% { color: #ffdd57; }
  50% { color: #ff4444; }
}
