/* MAGE DEFEAT */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.defeat-container {
  text-align: center;
  padding: 40px;
  border: 2px solid #4a4a4a;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.8) 100%);
  box-shadow:
    inset 0 0 50px rgba(139, 0, 0, 0.3),
    0 0 100px rgba(0, 0, 0, 0.8);
  position: relative;
  max-width: 600px;
}

.defeat-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #8b0000, #4a4a4a, #2faf2f, #8b0000);
  z-index: -1;
  border-radius: 4px;
}

.main-text {
  font-size: 3.5rem;
  font-weight: 600;
  color: #8b0000;
  text-shadow:
    2px 2px 4px #000000,
    0 0 20px rgba(139, 0, 0, 0.5);
  margin-bottom: 20px;
  letter-spacing: 3px;
  animation: fadeIn 2.5s ease-out 0.5s both;
}

.sub-text {
  font-size: 1.2rem;
  color: #999999;
  text-shadow: 1px 1px 2px #000000;
  margin-bottom: 30px;
  font-style: italic;
  animation: fadeIn 3s ease-out 1s both;
}

.souls-lost {
  font-size: 1rem;
  color: #666666;
  text-shadow: 1px 1px 2px #000000;
  border-top: 1px solid #4a4a4a;
  padding-top: 20px;
  animation: fadeIn 3.5s ease-out 1.5s both;
}

.respawn-hint {
  font-size: 0.9rem;
  color: #4a4a4a;
  text-shadow: 1px 1px 2px #000000;
  margin-top: 15px;
  animation: fadeIn 4s ease-out 2s both;
}

/* SHIP VICTORY */

@keyframes glow {
  0%,100% { filter:drop-shadow(0 0 4px #ff004c) drop-shadow(0 0 14px #ffe600) drop-shadow(0 0 28px #ff004c); }
  50% { filter:drop-shadow(0 0 14px #ff004c) drop-shadow(0 0 32px #ffe600) drop-shadow(0 0 48px #ff004c); }
}
@keyframes wobble {
  0%,100% { transform:skewX(0deg) scale(1); }
  25% { transform:skewX(5deg) scale(1.02); }
  50% { transform:skewX(-4deg) scale(0.98); }
  75% { transform:skewX(3deg) scale(1.01); }
}
@keyframes flash {
  0%,20%,40%,60%,80%,100% { opacity:1; }
  10%,30%,50%,70%,90% { opacity:0.3; }
}
@keyframes glow2 {
  0%,100% { filter:drop-shadow(0 0 4px #0ff) drop-shadow(0 0 18px #0ff); }
  50% { filter:drop-shadow(0 0 10px #0ff) drop-shadow(0 0 36px #0ff); }
}
@keyframes scan {
  0% { background-position:0 0,50% 50%; }
  100% { background-position:600px 0,50% 50%; }
}
@keyframes twinkle {
  0%,100% { transform:scale(0.6) rotate(0deg);opacity:0.4; }
  50% { transform:scale(1.4) rotate(45deg);opacity:1; }
}
