/* Shared Game Over overlay — used by all games */

.go-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 6, 14, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.go-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.go-overlay.go-container { position: absolute; }

.go-card {
  width: min(92vw, 340px);
  background: #1a1e33;
  border: 1px solid #2c3155;
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  color: #f4f6ff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.go-overlay.show .go-card { transform: scale(1); }

.go-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.go-overlay.show .go-icon { animation: go-icon-pop 0.5s ease-out; }

.go-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #f4f6ff;
}
.go-message {
  color: #c5c9e4;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.go-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.go-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 0.5px solid #2c3155;
}
.go-stat:last-child { border-bottom: none; }
.go-stat-label { color: #8a8aa0; }
.go-stat-value { color: #7c5cff; font-weight: 600; }

.go-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.go-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: #7c5cff;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.go-btn:hover { background: #9a7dff; }
.go-btn.go-secondary { background: #2c3155; color: #e8e8f0; }
.go-btn.go-secondary:hover { background: #3a4066; }

.go-overlay.go-win .go-title { color: #51cf66; }
.go-overlay.go-lose .go-title { color: #ff6b6b; }

@keyframes go-icon-pop {
  0% { transform: scale(0.6); opacity: 0.2; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  .go-card { width: min(92vw, 320px); padding: 1.25rem; }
}
