/* ===============================================
   CARDSNAP HOST GAME OVER MODAL
   ===============================================

   Game completion modal with cyberpunk styling
   =============================================== */

.game-over-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.game-over-content {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
  border: 2px solid #00ffff;
  border-radius: 15px;
  padding: 2rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
  position: relative;
}

.game-over-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 98px,
    rgba(0, 255, 255, 0.03) 100px
  );
  pointer-events: none;
}

/* Header Styling */
.game-over-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  color: #00ffff;
  text-align: center;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  letter-spacing: 3px;
}

.game-over-subtitle {
  text-align: center;
  color: #87ceeb;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Winner Display */
.winner-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
}

.winner-avatar-container {
  position: relative;
}

.winner-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.winner-crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: crown-glow 2s ease-in-out alternate;
}

@keyframes crown-glow {
  from {
    filter: drop-shadow(0 0 5px gold);
  }
  to {
    filter: drop-shadow(0 0 15px gold);
  }
}

.winner-info {
  text-align: center;
}

.winner-name {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  color: #00ffff;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.winner-score {
  font-size: 1.3rem;
  color: #87ceeb;
  font-weight: 600;
}

/* Final Standings */
.final-standings {
  margin-bottom: 2rem;
}

.standings-title,
.stats-title {
  font-family: "Orbitron", monospace;
  color: #00ffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.standings-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00ffff transparent;
}

.standings-list::-webkit-scrollbar {
  width: 6px;
}

.standings-list::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
}

.standings-list::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 3px;
}

.standing-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.standing-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
}

.standing-item.winner {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.4);
}

.standing-rank {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ffff;
  min-width: 40px;
  text-align: center;
}

.standing-rank.first {
  color: #ffd700;
}

.standing-rank.second {
  color: #c0c0c0;
}

.standing-rank.third {
  color: #cd7f32;
}

.standing-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.5);
}

.standing-name {
  flex: 1;
  font-size: 1.1rem;
  color: #87ceeb;
  font-weight: 500;
}

.standing-score {
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
  color: #00ffff;
  font-weight: 600;
}

/* Game Statistics */
.game-statistics {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  color: #00ffff;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.stat-label {
  color: #87ceeb;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Action Buttons */
.game-over-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.biometric-action-btn {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: #00ffff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: "Orbitron", monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 140px;
}

.biometric-action-btn.primary {
  background: linear-gradient(135deg, #0a4d4d 0%, #166666 100%);
  border-color: #00ffff;
}

.biometric-action-btn:hover {
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.biometric-action-btn.primary:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.biometric-action-btn:hover .btn-glow {
  left: 100%;
}

.btn-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.btn-text {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Scan Line Animation */
.scan-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  margin: 0.5rem 0;
}

@keyframes scan-sweep {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-over-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .game-over-title {
    font-size: 2rem;
  }

  .winner-display {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-over-actions {
    flex-direction: column;
    align-items: center;
  }

  .biometric-action-btn {
    width: 100%;
    max-width: 300px;
  }
}
