/* ===========================================
   OLYMPUS RISING - Enhanced Features Styles
   Event Battles, Enhanced Chat, Raid Animations
   =========================================== */

/* ═══════════════════════════════════════════════════════════════════════════════
   EVENT BOSS BATTLE SCREEN
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-overlay.fullscreen .modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  margin: 0;
}

.event-battle-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  position: relative;
  overflow: hidden;
}

.event-battle-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,215,0,0.05)" stroke-width="0.5"/></svg>');
  background-size: 200px;
  animation: battle-bg-rotate 60s linear infinite;
  pointer-events: none;
}

@keyframes battle-bg-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.event-battle-screen.danger-flash {
  animation: danger-flash 0.3s ease;
}

@keyframes danger-flash {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(231, 76, 60, 0.3); }
}

/* Battle Header */
.battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 10;
}

.battle-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.timer-value {
  font-family: 'Cinzel', serif;
  font-weight: bold;
}

.timer-value.warning {
  color: #f39c12;
  animation: pulse 1s ease infinite;
}

.timer-value.critical {
  color: #e74c3c;
  animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.battle-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  margin: 0;
}

.forfeit-btn {
  padding: 0.5rem 1rem;
}

/* Battle Arena */
.battle-arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
  min-height: 300px;
}

/* Boss Section */
.boss-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.boss-sprite {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  position: relative;
  animation: boss-float 3s ease-in-out infinite;
}

@keyframes boss-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.boss-sprite.attacking {
  animation: boss-attack 0.3s ease;
}

@keyframes boss-attack {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) translateY(-20px); }
  100% { transform: scale(1); }
}

.boss-sprite.enraged {
  animation: boss-enraged 0.5s ease infinite;
}

@keyframes boss-enraged {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.3) hue-rotate(10deg); }
}

.boss-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
}

.enrage-aura {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.3) 0%, transparent 70%);
  animation: aura-pulse 1s ease infinite;
}

@keyframes aura-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.boss-info {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.boss-info h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: 'Cinzel', serif;
}

.boss-level {
  color: #e74c3c;
  font-size: 0.9rem;
}

.boss-hp-bar {
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(231, 76, 60, 0.5);
}

.boss-hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  transition: width 0.3s ease;
  position: relative;
}

.boss-hp-bar .hp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
}

.boss-hp-bar .hp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Status Effects */
.boss-status-effects,
.player-status-effects {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  min-height: 30px;
}

.status-effect {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
}

.status-effect.poison { border-color: #9b59b6; }
.status-effect.burn { border-color: #e74c3c; }
.status-effect.debuff { border-color: #e67e22; }

.status-effect .duration {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.2);
  padding: 0 0.25rem;
  border-radius: 2px;
}

/* Battle Effects Layer */
.battle-effects-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}

/* Damage Numbers */
.damage-number {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 28px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  animation: damage-float 1s ease-out forwards;
  z-index: 1000;
}

.damage-number.critical {
  font-size: 36px;
  color: #ff6b6b;
  text-shadow: 0 0 10px #ff6b6b, 2px 2px 4px rgba(0,0,0,0.8);
  animation: damage-float-crit 1.2s ease-out forwards;
}

.damage-number.boss {
  top: 20%;
}

.damage-number.player {
  top: 60%;
}

@keyframes damage-float {
  0% { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.8);
  }
}

@keyframes damage-float-crit {
  0% { 
    opacity: 1;
    transform: translateY(0) scale(0.5);
  }
  20% {
    transform: translateY(-10px) scale(1.3);
  }
  50% {
    opacity: 1;
    transform: translateY(-40px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.8);
  }
}

/* Player Section */
.player-section {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.player-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-hp-bar,
.player-mana-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar-label {
  width: 30px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}

.player-hp-bar .bar-container,
.player-mana-bar .bar-container {
  flex: 1;
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.player-hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  transition: width 0.3s ease;
}

.player-mana-bar .mana-fill {
  height: 100%;
  background: linear-gradient(90deg, #2980b9, #3498db);
  transition: width 0.3s ease;
}

.bar-text {
  width: 80px;
  text-align: right;
  font-size: 0.8rem;
  color: #fff;
}

/* Battle Log */
.battle-log-container {
  height: 100px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.battle-log {
  height: 100%;
  overflow-y: auto;
  padding: 0.5rem;
}

.log-entry {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: #bdc3c7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry.player-attack {
  color: #3498db;
}

.log-entry.boss-attack {
  color: #e74c3c;
}

.log-entry.mechanic-entry {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
}

/* Action Buttons */
.battle-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.5);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  min-width: 80px;
  background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
  border: 2px solid #3498db;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  border-color: #5dade2;
}

.action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn.attack-btn {
  border-color: #e74c3c;
}

.action-btn.attack-btn:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-label {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Battle Stats */
.battle-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  color: #95a5a6;
}

/* Battle Result Screens */
.battle-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.battle-result.victory {
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.1) 0%, transparent 100%);
}

.battle-result.defeat {
  background: linear-gradient(180deg, rgba(231, 76, 60, 0.1) 0%, transparent 100%);
}

.result-banner {
  margin-bottom: 2rem;
}

.result-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.result-banner h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin: 0;
}

.victory .result-banner h2 {
  color: #f1c40f;
  text-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
}

.defeat .result-banner h2 {
  color: #e74c3c;
}

.battle-stats-summary {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  min-width: 250px;
}

.battle-stats-summary h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #bdc3c7;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

.rewards-section {
  margin-bottom: 1.5rem;
}

.rewards-section h3 {
  margin: 0 0 1rem;
  color: #f1c40f;
}

.reward-items {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  min-width: 80px;
}

.reward-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.reward-amount {
  font-weight: bold;
  color: #2ecc71;
}

.reward-label {
  font-size: 0.75rem;
  color: #95a5a6;
}

.rewards-section.partial {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ENHANCED CHAT
   ═══════════════════════════════════════════════════════════════════════════════ */

.enhanced-chat {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: rgba(15, 15, 35, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-tabs {
  display: flex;
  gap: 0.25rem;
}

.channel-tab {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: #95a5a6;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.channel-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.channel-tab.active {
  background: rgba(52, 152, 219, 0.3);
  color: #3498db;
}

.emote-picker-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.emote-picker-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.chat-messages,
#enhanced-chat-messages {
  height: 100%;
  overflow-y: auto;
  padding: 0.5rem;
}

.chat-message {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chat-message.own {
  background: rgba(52, 152, 219, 0.1);
  border-left-color: #3498db;
}

.chat-message.mention {
  background: rgba(241, 196, 15, 0.1);
  border-left-color: #f1c40f;
}

.msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.msg-sender {
  font-weight: bold;
}

.sender-name {
  cursor: pointer;
}

.sender-name:hover {
  text-decoration: underline;
}

.sender-level {
  font-size: 0.75rem;
  color: #95a5a6;
  margin-left: 0.25rem;
}

.msg-time {
  font-size: 0.75rem;
  color: #7f8c8d;
}

.msg-content {
  color: #ecf0f1;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-mention {
  color: #f1c40f;
  font-weight: bold;
}

.chat-item-link {
  color: #9b59b6;
  cursor: pointer;
  text-decoration: underline;
}

.msg-reactions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.reaction-btn.reacted {
  background: rgba(52, 152, 219, 0.3);
  border-color: #3498db;
}

.reaction-count {
  font-size: 0.7rem;
  color: #95a5a6;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #95a5a6;
  font-style: italic;
}

.typing-dots {
  animation: typing-dots 1s ease infinite;
}

@keyframes typing-dots {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Emote Picker */
.emote-picker {
  position: absolute;
  bottom: 60px;
  right: 10px;
  width: 250px;
  background: rgba(20, 20, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.emote-categories {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  gap: 0.25rem;
}

.emote-cat {
  padding: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

.emote-cat:hover,
.emote-cat.active {
  background: rgba(255, 255, 255, 0.1);
}

.emote-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
}

.emote-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.emote-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

/* Chat Input */
.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#enhanced-chat-input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}

#enhanced-chat-input:focus {
  outline: none;
  border-color: #3498db;
}

.send-btn {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RAID ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Raid Damage Numbers */
.raid-damage-number {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
}

.raid-damage-number.animate {
  animation: raid-damage-float 1s ease-out forwards;
}

.raid-damage-number.critical.animate {
  animation: raid-damage-crit 1.2s ease-out forwards;
}

@keyframes raid-damage-float {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.8); }
}

@keyframes raid-damage-crit {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-10px) scale(1.3); }
  40% { transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(0.8); }
}

/* Attack Effects */
.attack-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.effect-slash {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
  animation: slash-effect 0.3s ease-out forwards;
}

@keyframes slash-effect {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(-45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5) rotate(45deg); opacity: 0; }
}

.effect-magic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.8) 0%, transparent 70%);
  animation: magic-effect 0.5s ease-out forwards;
}

@keyframes magic-effect {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.effect-fire {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.8) 0%, rgba(241, 196, 15, 0.5) 50%, transparent 70%);
  animation: fire-effect 0.4s ease-out forwards;
}

@keyframes fire-effect {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, -100%) scale(1.5); opacity: 0; }
}

.effect-lightning {
  width: 60px;
  height: 120px;
  background: linear-gradient(180deg, #f1c40f 0%, #fff 50%, #3498db 100%);
  clip-path: polygon(50% 0%, 30% 40%, 60% 40%, 40% 100%, 70% 55%, 40% 55%);
  animation: lightning-effect 0.2s ease-out forwards;
}

@keyframes lightning-effect {
  0% { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
  50% { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
  100% { opacity: 0; }
}

/* Particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: particle-float 0.5s ease-out forwards;
}

.particle.spark {
  background: #f1c40f;
  box-shadow: 0 0 10px #f1c40f;
}

.particle.ember {
  background: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
}

.particle.droplet {
  background: #3498db;
  box-shadow: 0 0 8px #3498db;
}

@keyframes particle-float {
  0% { 
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% { 
    transform: translate(calc(-20px + 40px * var(--rand, 0.5)), -40px) scale(0);
    opacity: 0;
  }
}

/* Boss States */
.boss-idle { /* default state */ }

.boss-damaged {
  animation: boss-damaged 0.3s ease;
}

@keyframes boss-damaged {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(2) saturate(0); }
}

.boss-weakened {
  filter: saturate(0.7) brightness(0.8);
}

.boss-enraged {
  filter: saturate(1.5) brightness(1.2);
  animation: boss-enraged-pulse 0.5s ease infinite;
}

@keyframes boss-enraged-pulse {
  0%, 100% { filter: saturate(1.5) brightness(1.2); }
  50% { filter: saturate(2) brightness(1.4); }
}

.boss-dying {
  filter: saturate(0.3) brightness(0.5);
  animation: boss-dying 1s ease infinite;
}

@keyframes boss-dying {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

.boss-dead {
  filter: grayscale(1) brightness(0.3);
  transform: rotate(15deg);
}

/* Milestone Messages */
.milestone-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #f1c40f;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #f1c40f;
  text-shadow: 0 0 20px #f1c40f;
  z-index: 2000;
  animation: milestone-appear 3s ease forwards;
}

@keyframes milestone-appear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  30% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.milestone-flash {
  animation: milestone-screen-flash 0.5s ease;
}

@keyframes milestone-screen-flash {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 100px rgba(241, 196, 15, 0.3); }
}

/* Screen Shake */
.shake {
  animation: screen-shake 0.3s ease;
}

@keyframes screen-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Raid Leaderboard */
.raid-leaderboard {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.raid-leaderboard h4 {
  margin: 0 0 1rem;
  color: #f1c40f;
  text-align: center;
}

.leaderboard-entries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.leaderboard-entry.is-me {
  background: rgba(52, 152, 219, 0.2);
}

.entry-rank {
  width: 40px;
  font-weight: bold;
}

.entry-name {
  flex: 1;
}

.entry-damage {
  font-weight: bold;
  color: #e74c3c;
}

.entry-stats {
  font-size: 0.75rem;
  color: #7f8c8d;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .battle-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    min-width: 70px;
    padding: 0.5rem;
  }
  
  .btn-icon {
    font-size: 1.2rem;
  }
  
  .enhanced-chat {
    height: 300px;
  }
  
  .channel-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }
  
  .channel-tab {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
}
