/* ===== EPIC QUEST TODO - Mobile-First Responsive Styles ===== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --secondary: #8B5CF6;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  
  /* Difficulty Colors */
  --easy: #10B981;
  --normal: #3B82F6;
  --hard: #8B5CF6;
  --epic: #F59E0B;
  
  /* Rarity Colors */
  --common: #9CA3AF;
  --uncommon: #10B981;
  --rare: #3B82F6;
  --rarity-epic: #8B5CF6;
  --legendary: #F59E0B;
  
  /* Neutral Colors */
  --bg-primary: #1F2937;
  --bg-secondary: #374151;
  --bg-card: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #FFFFFF;
  --border: #E5E7EB;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Fredoka', 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== PROFILE SELECTION SCREEN ===== */
.profile-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: none;
  align-items: flex-start;  /* Always use flex-start to prevent top cutoff */
  justify-content: center;
  z-index: 10001;
  overflow-y: auto;
  padding: 40px 20px;  /* Add top padding to center content visually */
}

.profile-container {
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

.profile-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  text-shadow: 4px 4px 0 #2D3748, 8px 8px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.profile-subtitle {
  font-size: 24px;
  color: var(--text-light);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.profile-section {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.section-heading {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.hero-input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-family: inherit;
  border: 3px solid #2D3748;
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px var(--shadow);
  transition: all 0.2s;
}

.hero-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.character-classes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.class-card {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border: 3px solid #2D3748;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px var(--shadow);
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.class-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.class-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.class-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.class-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-start-adventure {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  font-size: 20px;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 0 #2D3748, 0 8px 20px var(--shadow);
  transition: all 0.1s;
}

.btn-start-adventure:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #2D3748, 0 10px 24px var(--shadow);
}

.btn-start-adventure:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #2D3748, 0 5px 12px var(--shadow);
}

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

.returning-hero-section {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  font-size: 64px;
  animation: spin 2s linear infinite;
}

.loading-text {
  color: var(--text-light);
  font-size: 24px;
  font-weight: bold;
  margin-top: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.switch-hero-btn,
.sound-btn {
  background: var(--bg-card);
  border: 3px solid #2D3748;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3748, 0 6px 12px var(--shadow);
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-hero-btn:hover,
.sound-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3748, 0 8px 16px var(--shadow);
}

.switch-hero-btn:active,
.sound-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3748, 0 4px 8px var(--shadow);
}

.sound-btn.muted {
  background: var(--accent-red);
  color: var(--text-light);
}

.game-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 4px 4px 0 #2D3748, 8px 8px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  letter-spacing: 2px;
  animation: titleFloat 3s ease-in-out infinite;
}

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

.tagline {
  font-size: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
}

/* Panel Styles */
.panel-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 15px 20px;
  border-radius: 12px 12px 0 0;
  border: 4px solid #2D3748;
  border-bottom: none;
  box-shadow: 0 4px 12px var(--shadow);
}

.panel-header h2 {
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Character Panel */
.character-panel {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.character-card {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  box-shadow: 0 8px 16px var(--shadow);
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: 4px solid #2D3748;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 0 6px 12px var(--shadow);
}

.level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--accent-gold);
  color: var(--text-primary);
  border: 3px solid #2D3748;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 8px var(--shadow);
}

.level-badge.pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.character-name {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.character-class {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Stats */
.stat-container {
  margin-bottom: 20px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}

.stat-value {
  color: var(--text-secondary);
}

.progress-bar {
  height: 24px;
  background: var(--bg-secondary);
  border: 3px solid #2D3748;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  transition: width 0.5s ease;
  position: relative;
}

.xp-fill {
  background: linear-gradient(90deg, var(--accent-green) 0%, #34D399 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.health-fill {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: width 0.5s ease, background 0.3s ease;
}

.health-fill.medium {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
}

.health-fill.low {
  background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
  animation: healthPulse 1s ease-in-out infinite;
}

@keyframes healthPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 8px var(--shadow);
}

.stat-icon {
  font-size: 32px;
}

.stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stat-label-sm {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-value-lg {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
}

.quest-stats {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px var(--shadow);
}

.quest-stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.quest-stat-item:last-child {
  margin-bottom: 0;
}

.quest-stat-label {
  font-weight: bold;
}

.quest-stat-value {
  color: var(--primary);
  font-weight: bold;
}

/* Active Buffs */
.active-buffs-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #E5E7EB;
}

.buffs-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.active-buffs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buff-item {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px var(--shadow);
  animation: slideIn 0.3s ease;
}

.buff-item.xp_boost {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: var(--accent-green);
}

.buff-item.gold_boost {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: var(--accent-gold);
}

.buff-item.loot_boost {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border-color: var(--secondary);
}

.buff-item.penalty_reduction {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-color: var(--accent-red);
}

.buff-item.guaranteed_loot {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: var(--legendary);
}

.buff-icon {
  font-size: 24px;
}

.buff-info {
  flex: 1;
  font-size: 13px;
}

.buff-name {
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.buff-details {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Quest Board */
.quest-board {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-radius: 12px;
  box-shadow: 0 8px 16px var(--shadow);
}

.quest-input-container {
  padding: 20px;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border-bottom: 3px solid #E5E7EB;
}

.quest-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quest-input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-family: inherit;
  border: 3px solid #2D3748;
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: inset 0 2px 4px var(--shadow);
  transition: all 0.2s;
}

.quest-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.quest-date-input {
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
}

.quest-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  font-size: 18px;
}

.quest-form-row {
  display: flex;
  gap: 12px;
}

.difficulty-select {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  font-family: inherit;
  font-weight: bold;
  border: 3px solid #2D3748;
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3748;
  transition: all 0.1s;
}

.difficulty-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3748;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 18px;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 0 #2D3748, 0 8px 16px var(--shadow);
  transition: all 0.1s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #2D3748, 0 10px 20px var(--shadow);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #2D3748, 0 5px 10px var(--shadow);
}

.btn-icon {
  font-size: 20px;
}

/* Quests Section */
.quests-section {
  padding: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title.clickable {
  cursor: pointer;
  user-select: none;
}

.section-title.clickable:hover {
  color: var(--primary);
}

.toggle-icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}

.quests-list.collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Quest Card */
.quest-card {
  background: var(--bg-card);
  border: 3px solid #2D3748;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px var(--shadow);
  transition: all 0.3s;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quest-card.removing {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.quest-card.difficulty-easy {
  border-left: 6px solid var(--easy);
}

.quest-card.difficulty-normal {
  border-left: 6px solid var(--normal);
}

.quest-card.difficulty-hard {
  border-left: 6px solid var(--hard);
}

.quest-card.difficulty-epic {
  border-left: 6px solid var(--epic);
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.quest-card.completed {
  opacity: 0.75;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border-color: #9CA3AF;
  position: relative;
}

.quest-card.completed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(156, 163, 175, 0.05) 10px,
    rgba(156, 163, 175, 0.05) 20px
  );
  pointer-events: none;
  border-radius: 8px;
}

.quest-card.completed .quest-title {
  color: #6B7280;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.quest-card.quest-overdue {
  border-left-width: 6px;
  border-left-color: #EF4444;
  animation: overdueCardPulse 2s ease-in-out infinite;
}

@keyframes overdueCardPulse {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 0 rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 15px rgba(239, 68, 68, 0.5);
  }
}

.quest-card.quest-due-today {
  border-left-width: 6px;
  border-left-color: #F97316;
}

.quest-card.quest-approaching {
  border-left-width: 6px;
  border-left-color: #F59E0B;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quest-difficulty-badge {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  border: 2px solid #2D3748;
  background: var(--bg-card);
}

.quest-delete-btn {
  background: var(--accent-red);
  color: var(--text-light);
  border: 2px solid #2D3748;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s;
}

.quest-delete-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.quest-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.quest-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.quest-due-date {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 10px;
  display: inline-block;
}

.quest-due-date.normal {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
  border: 2px solid #3B82F6;
}

.quest-due-date.approaching {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 2px solid #F59E0B;
  animation: approachingPulse 2s ease-in-out infinite;
}

@keyframes approachingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.quest-due-date.due-today {
  background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
  color: #7C2D12;
  border: 2px solid #F97316;
  font-weight: 700;
  animation: dueTodayPulse 1s ease-in-out infinite;
}

@keyframes dueTodayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.quest-due-date.overdue {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: #991B1B;
  border: 2px solid #EF4444;
  font-weight: 700;
  animation: overduePulse 1s ease-in-out infinite;
}

@keyframes overduePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  }
}

.quest-due-date .due-date-text {
  font-weight: 500;
  opacity: 0.8;
}

.quest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #E5E7EB;
  flex-wrap: wrap;
  gap: 10px;
}

.quest-rewards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-badge {
  font-size: 14px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  border: 2px solid #2D3748;
}

.xp-badge {
  background: linear-gradient(135deg, var(--accent-green) 0%, #34D399 100%);
  color: var(--text-light);
}

.gold-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #FBBF24 100%);
  color: var(--text-primary);
}

.btn-complete {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3748;
  transition: all 0.1s;
}

.btn-complete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3748;
}

.btn-complete:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3748;
}

.btn-reinstate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-primary);
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3748;
  transition: all 0.1s;
}

.btn-reinstate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3748;
  background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 100%);
}

.btn-reinstate:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3748;
}

.btn-reinstate .btn-icon {
  font-size: 18px;
}

.completed-badge {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-green);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.empty-text {
  font-size: 16px;
}

/* Loot Panel */
.loot-panel {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.loot-container {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  box-shadow: 0 8px 16px var(--shadow);
  max-height: 500px;
  overflow-y: auto;
}

.loot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loot-item {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  animation: slideIn 0.3s ease;
}

.loot-item.rarity-common {
  border-left: 5px solid var(--common);
}

.loot-item.rarity-uncommon {
  border-left: 5px solid var(--uncommon);
}

.loot-item.rarity-rare {
  border-left: 5px solid var(--rare);
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.loot-item.rarity-epic {
  border-left: 5px solid var(--rarity-epic);
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
}

.loot-item.rarity-legendary {
  border-left: 5px solid var(--legendary);
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.loot-icon {
  font-size: 32px;
}

.loot-info {
  flex: 1;
}

.loot-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.loot-type {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.btn-use-item {
  padding: 8px 16px;
  min-height: 44px;
  font-size: 14px;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: 3px solid #2D3748;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3748;
  transition: all 0.1s;
  white-space: nowrap;
}

.btn-use-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3748;
}

.btn-use-item:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3748;
}

.loot-stats {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 15px 20px;
  margin-top: -4px;
  box-shadow: 0 8px 16px var(--shadow);
}

.loot-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.loot-stat-row:last-child {
  margin-bottom: 0;
}

.loot-rarity {
  font-weight: bold;
}

.loot-count {
  font-weight: bold;
  color: var(--text-secondary);
}

/* Mobile FAB */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  border: 4px solid #2D3748;
  border-radius: 50%;
  box-shadow: 0 6px 0 #2D3748, 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s;
}

.mobile-fab:hover {
  transform: scale(1.1);
}

.mobile-fab:active {
  transform: scale(0.95) translateY(3px);
  box-shadow: 0 3px 0 #2D3748, 0 5px 12px rgba(0, 0, 0, 0.3);
}

.fab-icon {
  color: var(--text-light);
  font-size: 36px;
  font-weight: bold;
  line-height: 56px;
  text-align: center;
}

/* Notifications */
.notification-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: var(--bg-card);
  border: 4px solid #2D3748;
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  box-shadow: 0 8px 16px var(--shadow);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: all;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-icon {
  font-size: 40px;
}

.notification-text h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.notification-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.notification.level-up {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-5deg); }
  75% { transform: translateX(10px) rotate(5deg); }
}

.notification.quest-complete,
.notification.welcome {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: var(--accent-green);
}

.notification.loot-drop {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border-color: var(--secondary);
}

.notification.error {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-color: var(--accent-red);
}

.level-up-text {
  color: var(--accent-gold);
  font-weight: bold;
  margin-top: 5px;
}

.loot-name.common { color: var(--common); }
.loot-name.uncommon { color: var(--uncommon); }
.loot-name.rare { color: var(--rare); }
.loot-name.epic { color: var(--rarity-epic); }
.loot-name.legendary { color: var(--legendary); font-weight: bold; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== MOBILE RESPONSIVE BREAKPOINTS ===== */

/* Tablets and below (Portrait iPad, large phones landscape) */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .character-panel,
  .loot-panel {
    position: static;
    max-width: 100%;
  }
}

/* Tablets and below (768px) */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header-top {
    flex-wrap: wrap;
  }

  .switch-hero-btn,
  .sound-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  /* Make character panel horizontal on mobile */
  .character-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
  }

  .avatar-container {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .avatar {
    font-size: 48px;
  }

  .level-badge {
    font-size: 14px;
    padding: 4px 8px;
  }

  .character-name {
    font-size: 20px;
    text-align: left;
  }

  .character-class {
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Stack quest form on mobile */
  .quest-form-row {
    flex-direction: column;
  }

  .difficulty-select,
  .btn-primary {
    width: 100%;
  }

  /* Show mobile FAB */
  .mobile-fab {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Adjust notifications for mobile */
  .notification-overlay {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .notification {
    min-width: auto;
    max-width: 100%;
  }

  /* Profile screen adjustments - keep centered on tablets */
  .profile-screen {
    padding: 20px 15px;
  }

  .profile-container {
    margin-top: 0;
    padding: 10px;
  }

  .profile-section {
    padding: 20px;
  }

  .character-classes {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .class-card {
    padding: 15px;
  }

  /* Character dropdown menu on mobile */
  .character-dropdown {
    min-width: 180px;
    right: 0;
    left: auto;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 14px;
  }

  .dropdown-icon {
    font-size: 16px;
  }

  /* Collapse completed quests by default on mobile */
  #completed-quests {
    max-height: 300px;
    overflow-y: auto;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .profile-screen {
    padding: 15px 10px;
  }

  .profile-title {
    margin-bottom: 8px;
  }

  .profile-subtitle {
    margin-bottom: 20px;
  }

  .profile-section {
    padding: 15px;
    margin-bottom: 15px;
  }

  .character-classes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .class-card {
    padding: 12px;
  }

  .quest-card {
    padding: 12px;
  }

  .btn-complete {
    padding: 8px 16px;
  }
}

/* Very small phones (375px and below) */
@media (max-width: 375px) {
  .container {
    padding: 10px;
  }

  .header-top {
    flex-direction: column;
    width: 100%;
  }

  .switch-hero-btn,
  .sound-btn {
    width: 100%;
  }

  .avatar-container {
    width: 70px;
    height: 70px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .mobile-fab {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }

  .profile-container {
    padding: 5px;
  }

  .hero-input {
    padding: 12px;
  }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
  .header {
    margin-bottom: 15px;
  }

  .tagline {
    display: none;
  }

  .character-panel,
  .loot-panel {
    position: static;
  }

  .profile-screen {
    padding: 10px;
  }

  .profile-container {
    padding: 15px;
  }
}

/* Manual Login Section */
.manual-login-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-prompt {
  text-align: center;
  color: #2D3748;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-login {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Forgot Password Link */
.forgot-password-container {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forgot-password-link {
  color: #4F46E5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
}

.forgot-password-link:hover {
  color: #6366F1;
  text-decoration: underline;
}

/* Password Hint Text */
.password-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  line-height: 1.4;
}

/* Password Input with Toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.password-input-wrapper .hero-input {
  margin-bottom: 0;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: background 0.2s;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

.toggle-icon {
  user-select: none;
  pointer-events: none;
}

/* Character Menu Dropdown */
.character-menu {
  position: relative;
  display: inline-block;
}

.menu-arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s;
}

.character-menu.open .menu-arrow {
  transform: rotate(180deg);
}

.character-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: white;
  border: 3px solid #2D3748;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.character-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #2D3748;
  text-decoration: none;
  transition: background 0.2s;
  font-weight: 600;
  font-size: 16px;
}

.dropdown-item:hover {
  background: #F3F4F6;
}

.dropdown-icon {
  font-size: 18px;
}

/* Success Notification Styles */
.notification.success {
  background: linear-gradient(135deg, #10B981, #059669);
}

.notification.success .notification-icon {
  font-size: 32px;
}

/* ===================================
   WOUNDED STATE MODAL STYLES
   =================================== */

.wounded-modal,
.recovery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.wounded-modal.hidden,
.recovery-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.wounded-modal-content,
.recovery-modal-content {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(239, 68, 68, 0.3);
  border: 3px solid #EF4444;
  animation: woundedPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.recovery-modal-content {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border: 3px solid #10B981;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(16, 185, 129, 0.3);
  animation: recoveryGlow 2s ease-in-out infinite;
}

@keyframes woundedPulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(239, 68, 68, 0.6);
  }
}

@keyframes recoveryGlow {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(16, 185, 129, 0.6);
  }
}

.wounded-header,
.recovery-header {
  text-align: center;
  margin-bottom: 30px;
}

.wounded-character-graphic,
.recovery-character-graphic {
  font-size: 80px;
  margin-bottom: 10px;
  animation: woundedShake 0.5s ease-in-out infinite;
}

.recovery-character-graphic {
  animation: recoveryBounce 1s ease-in-out infinite;
}

@keyframes woundedShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-5deg); }
  75% { transform: translateX(5px) rotate(5deg); }
}

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

.wounded-title,
.recovery-title {
  font-size: 32px;
  font-weight: 700;
  color: #FEE2E2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
  animation: titlePulse 1s ease-in-out infinite;
}

.recovery-title {
  color: #D1FAE5;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wounded-body,
.recovery-body {
  color: #E5E7EB;
  line-height: 1.6;
}

.wounded-main-text,
.recovery-main-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 25px;
  color: #F3F4F6;
}

.recovery-sub-text {
  font-size: 16px;
  text-align: center;
  color: #D1FAE5;
  margin-top: 10px;
}

.wounded-penalty-box {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.wounded-penalty-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: #FCA5A5;
  margin: 0 0 15px 0;
}

.wounded-penalty-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wounded-penalty-list li {
  font-size: 16px;
  padding: 8px 0;
  color: #FEE2E2;
}

.wounded-penalty-list li strong {
  color: #FCA5A5;
}

.wounded-recovery-box {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10B981;
  border-radius: 12px;
  padding: 20px;
}

.wounded-recovery-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: #6EE7B7;
  margin: 0 0 10px 0;
}

.wounded-recovery-text {
  font-size: 16px;
  color: #D1FAE5;
  margin: 0;
}

.wounded-recovery-text strong {
  color: #6EE7B7;
}

.wounded-modal-button,
.recovery-modal-button {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.recovery-modal-button {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.wounded-modal-button:hover,
.recovery-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.recovery-modal-button:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.wounded-modal-button:active,
.recovery-modal-button:active {
  transform: translateY(0);
}

/* Wounded State Visual Indicators */
.character-panel.wounded {
  border: 3px solid #EF4444;
  animation: woundedBorderPulse 2s ease-in-out infinite;
}

@keyframes woundedBorderPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.6); }
}

.character-wounded-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  animation: badgePulse 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.health-fill.wounded {
  background: linear-gradient(90deg, #7C2D12 0%, #991B1B 100%) !important;
  animation: woundedHealthPulse 1s ease-in-out infinite;
}

@keyframes woundedHealthPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.character-avatar.wounded::after {
  content: '🩹';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 24px;
  animation: bandageFloat 2s ease-in-out infinite;
}

@keyframes bandageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wounded-modal-content,
  .recovery-modal-content {
    padding: 30px 20px;
    max-width: 90%;
  }

  .wounded-character-graphic,
  .recovery-character-graphic {
    font-size: 60px;
  }

  .wounded-title,
  .recovery-title {
    font-size: 24px;
  }

  .wounded-main-text,
  .recovery-main-text {
    font-size: 16px;
  }

  .wounded-penalty-box h3,
  .wounded-recovery-box h3 {
    font-size: 18px;
  }

  .wounded-penalty-list li,
  .wounded-recovery-text {
    font-size: 14px;
  }
}

/* Wounded Quest Completion Notification */
.notification.wounded-completion {
  background: linear-gradient(135deg, #7C2D12 0%, #991B1B 100%);
}

.wounded-completion .wounded-warning {
  color: #FCA5A5;
  font-weight: 600;
  font-size: 14px;
  margin: 5px 0;
}

.wounded-completion .recovery-hint {
  color: #6EE7B7;
  font-size: 12px;
  font-style: italic;
  margin-top: 5px;
}

/* ===================================
   OVERDUE COMPLETION NOTIFICATION
   =================================== */

.notification.overdue-completion {
  background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
  border: 3px solid #F97316;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

.overdue-completion .notification-icon {
  font-size: 48px;
}

.overdue-completion .overdue-penalty {
  color: #C2410C;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0;
  padding: 8px;
  background: rgba(194, 65, 12, 0.1);
  border-radius: 6px;
  border-left: 3px solid #EA580C;
}

.overdue-completion .original-rewards {
  color: #92400E;
  font-size: 12px;
  font-style: italic;
  opacity: 0.8;
  margin: 5px 0;
}

/* ===================================
   REINSTATE NOTIFICATION
   =================================== */

.notification.reinstate-notification {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 100%);
  border: 3px solid #F59E0B;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.reinstate-notification .notification-icon {
  font-size: 40px;
}

.reinstate-notification h3 {
  color: #92400E;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.reinstate-notification p {
  color: #78350F;
  font-size: 14px;
  margin: 5px 0;
  font-weight: 600;
}

.reinstate-notification .level-down {
  color: #DC2626;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0;
  padding: 8px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 6px;
  border-left: 3px solid #DC2626;
}

.reinstate-notification .loot-removed {
  color: #7C2D12;
  font-weight: 600;
  font-size: 13px;
  margin: 8px 0;
  padding: 8px;
  background: rgba(124, 45, 18, 0.1);
  border-radius: 6px;
  border-left: 3px solid #7C2D12;
}

/* ===================================
   KONAMI CODE NOTIFICATION
   =================================== */

.notification.konami-notification {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c2d12 100%);
  border: 3px solid #FFD700;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4),
              0 0 60px rgba(255, 215, 0, 0.3);
  animation: konamiGlow 1s ease-in-out infinite;
}

@keyframes konamiGlow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4),
                0 0 60px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.6),
                0 0 80px rgba(255, 215, 0, 0.5);
    border-color: #FFA500;
  }
}

.konami-notification .notification-icon {
  font-size: 48px;
  animation: konamiSpin 2s linear infinite;
}

@keyframes konamiSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.konami-notification h3 {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  font-size: 24px;
  margin: 0 0 8px 0;
  animation: konamiTextPulse 1s ease-in-out infinite;
}

@keyframes konamiTextPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.konami-notification p {
  color: #E5E7EB;
  margin: 5px 0;
}

.konami-notification .konami-hint {
  color: #FFA500;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-top: 10px;
  font-size: 16px;
}
