

.dungeon-root {
  background-color: #0c0704;
  color: #d97706; /* Amber */
  font-family: 'MedievalSharp', cursive;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.dungeon-title {
  font-family: 'Cinzel Decorative', cursive;
}

.dungeon-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(180, 20, 20, 0.15) 0%, rgba(0, 0, 0, 0.9) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Embers Animation */
.ember {
  position: absolute;
  bottom: -20px;
  background: #ff5722;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff5722, 0 0 20px #ff0000;
  animation: floatUp linear infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) scale(0.2); opacity: 0; }
}

/* Generate 20 different embers with varying delays and durations */
.ember:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; width: 4px; height: 4px; }
.ember:nth-child(2) { left: 20%; animation-duration: 6s; animation-delay: 1s; width: 6px; height: 6px; }
.ember:nth-child(3) { left: 30%; animation-duration: 9s; animation-delay: 2s; width: 3px; height: 3px; }
.ember:nth-child(4) { left: 40%; animation-duration: 5s; animation-delay: 0.5s; width: 5px; height: 5px; }
.ember:nth-child(5) { left: 50%; animation-duration: 10s; animation-delay: 3s; width: 7px; height: 7px; }
.ember:nth-child(6) { left: 60%; animation-duration: 7s; animation-delay: 1.5s; width: 4px; height: 4px; }
.ember:nth-child(7) { left: 70%; animation-duration: 8.5s; animation-delay: 2.5s; width: 5px; height: 5px; }
.ember:nth-child(8) { left: 80%; animation-duration: 6.5s; animation-delay: 0.8s; width: 6px; height: 6px; }
.ember:nth-child(9) { left: 90%; animation-duration: 7.5s; animation-delay: 4s; width: 3px; height: 3px; }
.ember:nth-child(10) { left: 25%; animation-duration: 9.5s; animation-delay: 1.2s; width: 5px; height: 5px; }
.ember:nth-child(11) { left: 45%; animation-duration: 5.5s; animation-delay: 3.5s; width: 4px; height: 4px; }
.ember:nth-child(12) { left: 65%; animation-duration: 8.2s; animation-delay: 0.2s; width: 6px; height: 6px; }
.ember:nth-child(13) { left: 85%; animation-duration: 7.8s; animation-delay: 2.8s; width: 5px; height: 5px; }
.ember:nth-child(14) { left: 15%; animation-duration: 6.2s; animation-delay: 1.7s; width: 3px; height: 3px; }
.ember:nth-child(15) { left: 35%; animation-duration: 9.1s; animation-delay: 4.5s; width: 7px; height: 7px; }
.ember:nth-child(16) { left: 55%; animation-duration: 5.8s; animation-delay: 0.9s; width: 4px; height: 4px; }
.ember:nth-child(17) { left: 75%; animation-duration: 8.7s; animation-delay: 3.1s; width: 5px; height: 5px; }
.ember:nth-child(18) { left: 95%; animation-duration: 6.9s; animation-delay: 2.1s; width: 6px; height: 6px; }
.ember:nth-child(19) { left: 5%; animation-duration: 7.3s; animation-delay: 4.8s; width: 3px; height: 3px; }
.ember:nth-child(20) { left: 50%; animation-duration: 11s; animation-delay: 0.3s; width: 8px; height: 8px; }

/* Damage Shake Animation */
.dungeon-shake {
  animation: dShake 0.3s ease-in-out;
}

@keyframes dShake {
  0% { transform: translateX(0); filter: brightness(1); }
  25% { transform: translateX(-5px) rotate(-1deg); filter: brightness(1.5) hue-rotate(-20deg); }
  50% { transform: translateX(5px) rotate(1deg); filter: brightness(1); }
  75% { transform: translateX(-5px) rotate(-1deg); filter: brightness(0.8); }
  100% { transform: translateX(0); filter: brightness(1); }
}

.monster-card {
  background: rgba(20, 10, 5, 0.8);
  border: 2px solid #5a3a22;
  box-shadow: 0 4px 15px rgba(0,0,0,0.8), inset 0 0 20px rgba(139, 69, 19, 0.3);
  position: relative;
}
.monster-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border: 1px solid #a67c52;
  pointer-events: none;
  opacity: 0.3;
}
.monster-target {
  border-color: #ff3b3b;
  box-shadow: 0 0 25px rgba(255, 59, 59, 0.4), inset 0 0 30px rgba(255, 0, 0, 0.2);
}
.boss-card {
  background: rgba(40, 5, 5, 0.9);
  border: 2px solid #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
}
.boss-target {
  border-color: #ff0000;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
}

