/**
 * Quest Mode Styles
 * Styles for Daily Quest dashboard, intro, gameplay, and completion screens
 */

/* ==================== Quest Dashboard ==================== */

.quest-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.quest-dashboard-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quest-dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quest Streak Card */
.quest-streak-card {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 20px;
  padding: 20px 30px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

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

.quest-streak-icon {
  font-size: 2.5rem;
  animation: flame-flicker 0.5s infinite alternate;
}

@keyframes flame-flicker {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.quest-streak-number {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.quest-streak-label {
  font-size: 1rem;
  opacity: 0.9;
}

.quest-streak-message {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Quest Progress Dots */
.quest-progress-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.quest-progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.quest-progress-dot.completed {
  background: rgba(255, 255, 255, 0.9);
  color: #ee5a24;
  font-weight: bold;
}

/* Quest Cards Container */
.quest-cards-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

/* Single Quest Card - centered and larger */
.quest-card.single-quest {
  max-width: 500px;
  width: 100%;
}

.quest-card.single-quest .quest-card-header {
  padding: 20px 25px;
}

.quest-card.single-quest .quest-card-icon {
  font-size: 2.5rem;
}

.quest-card.single-quest .quest-card-type {
  font-size: 1.4rem;
}

.quest-card.single-quest .quest-card-body {
  padding: 25px;
}

.quest-card.single-quest .quest-character-emoji {
  font-size: 2.5rem;
}

.quest-card.single-quest .quest-title {
  font-size: 1.5rem;
}

.quest-card.single-quest .quest-description {
  font-size: 1rem;
  line-height: 1.5;
}

.quest-card.single-quest .quest-start-btn {
  font-size: 1.2rem;
  padding: 14px 35px;
}

.quest-card.single-quest .quest-status-text {
  font-size: 1.1rem;
}

/* Individual Quest Card */
.quest-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.quest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quest-card.completed {
  opacity: 0.8;
}

.quest-card.completed:hover {
  transform: none;
}

.quest-card-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.quest-card-icon {
  font-size: 1.8rem;
}

.quest-card-type {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.quest-completed-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.quest-card-body {
  padding: 20px;
}

.quest-character {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.quest-character-emoji {
  font-size: 2rem;
}

.quest-character-name {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.quest-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.quest-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.quest-details {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.quest-operation {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.quest-op-icon {
  font-size: 1rem;
  font-weight: 700;
}

.quest-questions {
  font-size: 0.85rem;
  color: #888;
}

.quest-rewards {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-xp {
  background: linear-gradient(135deg, #f5d742 0%, #f5a742 100%);
  color: #333;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.quest-bonus {
  font-size: 0.75rem;
  color: #888;
}

.quest-card-footer {
  padding: 15px 20px;
  background: #f8f8f8;
  text-align: center;
}

.quest-start-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quest-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.quest-status-text {
  color: #4CAF50;
  font-weight: 600;
}

/* ==================== Quest Intro Screen ==================== */

.quest-intro-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.quest-intro-character-container {
  margin-bottom: 30px;
}

.quest-intro-character {
  font-size: 6rem;
  animation: character-bounce 2s infinite;
}

@keyframes character-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.quest-intro-character-name {
  font-size: 1.2rem;
  color: #666;
  margin-top: 10px;
}

.quest-intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
}

.quest-intro-narrative {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
  background: #f8f8f8;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 20px;
  min-height: 100px;
}

.quest-intro-context {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 30px;
}

.quest-intro-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quest-intro-btn {
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quest-intro-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.quest-intro-btn.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.quest-intro-btn.secondary {
  background: #e0e0e0;
  color: #666;
}

.quest-intro-btn.secondary:hover {
  background: #d0d0d0;
}

/* ==================== Quest Game Screen ==================== */

/* --- Themed Scene Backgrounds --- */

.quest-scene-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: background 0.8s ease;
  overflow: hidden;
  display: none;
}

/* Only show scene bg when quest game screen is active */
#quest-game-screen.active .quest-scene-bg {
  display: block;
}

.quest-scene-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Forest theme (Addition) */
.quest-scene-bg.theme-forest {
  background: linear-gradient(180deg, #87CEEB 0%, #98D8A0 40%, #4A8B3F 70%, #2D5A27 100%);
}

.quest-scene-bg.theme-forest .quest-scene-decorations::before {
  content: '🌲';
  position: absolute;
  bottom: 8%;
  left: 5%;
  font-size: 4rem;
  opacity: 0.5;
  animation: tree-sway 4s ease-in-out infinite;
}

.quest-scene-bg.theme-forest .quest-scene-decorations::after {
  content: '🌳🌲🌿🍄🌲🌳';
  position: absolute;
  bottom: 5%;
  right: 3%;
  font-size: 2.5rem;
  letter-spacing: 15px;
  opacity: 0.4;
}

@keyframes tree-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Underwater theme (Subtraction) */
.quest-scene-bg.theme-underwater {
  background: linear-gradient(180deg, #0A3D62 0%, #1A6B8A 30%, #2E86AB 60%, #1A4B7A 100%);
}

.quest-scene-bg.theme-underwater .quest-scene-decorations::before {
  content: '🐠';
  position: absolute;
  top: 20%;
  left: 8%;
  font-size: 2.5rem;
  opacity: 0.5;
  animation: fish-swim 6s ease-in-out infinite;
}

.quest-scene-bg.theme-underwater .quest-scene-decorations::after {
  content: '🪸🐚🌊🐡🪸🐠';
  position: absolute;
  bottom: 5%;
  left: 5%;
  font-size: 2.5rem;
  letter-spacing: 12px;
  opacity: 0.4;
}

@keyframes fish-swim {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(30px) scaleX(1); }
}

/* Sky Castle theme (Multiplication) */
.quest-scene-bg.theme-sky {
  background: linear-gradient(180deg, #4A90D9 0%, #87CEEB 30%, #E8F0FF 60%, #F0F0FF 100%);
}

.quest-scene-bg.theme-sky .quest-scene-decorations::before {
  content: '☁️';
  position: absolute;
  top: 15%;
  left: 10%;
  font-size: 4rem;
  opacity: 0.5;
  animation: cloud-drift 8s ease-in-out infinite;
}

.quest-scene-bg.theme-sky .quest-scene-decorations::after {
  content: '🏰☁️🌈🕊️☁️🏰';
  position: absolute;
  bottom: 8%;
  right: 5%;
  font-size: 2.5rem;
  letter-spacing: 10px;
  opacity: 0.35;
}

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

/* Crystal Cave theme (Division) */
.quest-scene-bg.theme-cave {
  background: linear-gradient(180deg, #1A1A2E 0%, #2D1B4E 30%, #3D2B5E 60%, #1A1A2E 100%);
}

.quest-scene-bg.theme-cave .quest-scene-decorations::before {
  content: '💎';
  position: absolute;
  top: 18%;
  right: 10%;
  font-size: 3rem;
  opacity: 0.5;
  animation: crystal-glow 3s ease-in-out infinite;
}

.quest-scene-bg.theme-cave .quest-scene-decorations::after {
  content: '🪨💎🔮✨💎🪨';
  position: absolute;
  bottom: 5%;
  left: 5%;
  font-size: 2.5rem;
  letter-spacing: 12px;
  opacity: 0.35;
}

@keyframes crystal-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Floating particles for each theme */
.quest-scene-particle {
  position: absolute;
  pointer-events: none;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.theme-forest .quest-scene-particle { animation-name: particle-fall; }
.theme-underwater .quest-scene-particle { animation-name: particle-rise; }
.theme-sky .quest-scene-particle { animation-name: particle-drift; }
.theme-cave .quest-scene-particle { animation-name: particle-glow-float; }

@keyframes particle-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes particle-rise {
  0% { transform: translateY(20px) scale(0.5); opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

@keyframes particle-drift {
  0% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(30px, -20px); opacity: 0.7; }
  100% { transform: translate(60px, 0); opacity: 0; }
}

@keyframes particle-glow-float {
  0% { transform: translateY(0) scale(0.8); opacity: 0.3; }
  50% { transform: translateY(-15px) scale(1); opacity: 0.7; }
  100% { transform: translateY(-30px) scale(0.8); opacity: 0; }
}

/* --- Quest Game Container (above scene bg) --- */

.quest-game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

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

.quest-game-progress {
  flex: 1;
  margin: 0 20px;
}

.quest-progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.quest-progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  transition: width 0.5s ease;
  border-radius: 10px;
}

.quest-progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.quest-game-context {
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.quest-game-character {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  animation: gentle-sway 3s infinite ease-in-out;
}

@keyframes gentle-sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.quest-question-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-bottom: 25px;
  backdrop-filter: blur(8px);
}

.quest-question-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.quest-question-display .quest-num {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quest-question-display .quest-operator {
  color: #ff6b6b;
}

.quest-answer-input {
  width: 200px;
  padding: 15px 25px;
  font-size: 1.8rem;
  text-align: center;
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.quest-answer-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.quest-game-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.quest-game-btn {
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quest-game-btn.submit {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
}

.quest-game-btn.submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.quest-game-btn.quit {
  background: #e0e0e0;
  color: #666;
}

.quest-feedback {
  margin-top: 20px;
  text-align: center;
}

.quest-feedback-correct,
.quest-feedback-incorrect {
  padding: 15px 25px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  animation: feedback-pop 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@keyframes feedback-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.quest-feedback-correct {
  background: rgba(255, 255, 255, 0.95);
  color: #2e7d32;
}

.quest-feedback-incorrect {
  background: rgba(255, 255, 255, 0.95);
  color: #c62828;
}

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

/* ==================== Quest Complete Screen ==================== */

.quest-complete-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.quest-complete-character {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: celebration-bounce 0.5s infinite alternate;
}

@keyframes celebration-bounce {
  from { transform: scale(1); }
  to { transform: scale(1.1) rotate(5deg); }
}

.quest-complete-conclusion {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
  border: 2px solid #e0e0e0;
}

.quest-complete-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.quest-stat-item {
  text-align: center;
}

.quest-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quest-stat-label {
  font-size: 0.9rem;
  color: #888;
  margin-top: 5px;
}

/* XP Display */
.quest-complete-xp {
  background: linear-gradient(135deg, #f5d742 0%, #f5a742 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
}

.xp-earned,
.xp-bonus,
.xp-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.xp-total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.xp-label {
  color: #333;
}

.xp-value {
  color: #333;
  font-weight: 600;
}

/* Daily Progress */
.quest-complete-daily-progress {
  background: #f8f8f8;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
}

.daily-progress-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.daily-progress-dots .progress-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.daily-progress-dots .progress-dot.completed {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
}

.daily-progress-text {
  color: #666;
  margin: 10px 0 0 0;
}

.all-complete-celebration,
.daily-complete-celebration {
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border-radius: 15px;
  font-weight: 600;
  animation: celebration-glow 1s infinite alternate;
  font-size: 1.3rem;
}

.daily-comeback-text {
  color: #888;
  font-size: 0.9rem;
  margin-top: 10px;
}

@keyframes celebration-glow {
  from { box-shadow: 0 0 10px rgba(238, 90, 36, 0.5); }
  to { box-shadow: 0 0 25px rgba(238, 90, 36, 0.8); }
}

.quest-complete-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quest-complete-btn {
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quest-complete-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.quest-complete-btn.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.quest-complete-btn.secondary {
  background: #e0e0e0;
  color: #666;
}

.quest-complete-btn.secondary:hover {
  background: #d0d0d0;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
  .quest-cards-container {
    grid-template-columns: 1fr;
  }

  .quest-dashboard-title {
    font-size: 1.5rem;
  }

  .quest-streak-number {
    font-size: 2.5rem;
  }

  .quest-intro-character {
    font-size: 4rem;
  }

  .quest-intro-title {
    font-size: 1.5rem;
  }

  .quest-question-display {
    font-size: 2rem;
    gap: 10px;
  }

  .quest-answer-input {
    width: 150px;
    font-size: 1.5rem;
  }

  .quest-complete-stats {
    flex-direction: column;
    gap: 15px;
  }

  .quest-stat-value {
    font-size: 2rem;
  }
}

/* ==================== Animations ==================== */

.quest-card-enter {
  animation: card-slide-in 0.5s ease forwards;
}

@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for quest cards */
.quest-card:nth-child(1) { animation-delay: 0.1s; }
.quest-card:nth-child(2) { animation-delay: 0.2s; }
.quest-card:nth-child(3) { animation-delay: 0.3s; }

/* ==================== Pet Rewards Section ==================== */

.quest-complete-pet-rewards {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  color: white;
}

.pet-rewards-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pet-reward-display {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pet-reward-emoji {
  font-size: 3rem;
  animation: celebration-bounce 0.5s infinite alternate;
}

.pet-reward-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pet-reward-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.pet-reward-xp {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pet-level-up-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
  color: #333;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  animation: pulse 1s infinite;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* ==================== Chest Rewards Section ==================== */

.quest-complete-chest-rewards {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  color: white;
}

.chests-earned-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.chests-earned-title {
  font-size: 1.3rem;
  margin: 0;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.chests-earned-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.chest-reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.chest-reward-item:hover {
  transform: scale(1.05);
}

.chest-reward-item.bronze { border: 2px solid #CD7F32; }
.chest-reward-item.silver { border: 2px solid #C0C0C0; }
.chest-reward-item.golden { border: 2px solid #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
.chest-reward-item.legendary { border: 2px solid #E040FB; box-shadow: 0 0 15px rgba(224, 64, 251, 0.3); }

.chest-reward-emoji {
  font-size: 2.5rem;
  animation: float 2s ease-in-out infinite;
}

.chest-reward-name {
  font-size: 0.85rem;
  color: #ccc;
}

.chests-earned-hint {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

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

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

/* ==================== Mixed Operation Badge ==================== */

.mixed-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== Recall/Review Badge ==================== */

.recall-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f5d742 0%, #f5a742 100%);
  color: #333;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 600;
  animation: recall-glow 1.5s ease-in-out infinite;
}

@keyframes recall-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(245, 167, 66, 0.4); }
  50% { box-shadow: 0 0 15px rgba(245, 167, 66, 0.8); }
}

/* ==================== Current Operation Display ==================== */

.current-operation {
  display: inline-block;
  background: #f0f0f0;
  color: #667eea;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 600;
}

/* ==================== Review Mode Button ==================== */

.quest-review-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f5d742 0%, #f5a742 100%);
  color: #333;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.quest-review-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(245, 167, 66, 0.4);
}

.quest-review-btn .review-icon {
  font-size: 1.3rem;
}

.quest-review-badge {
  display: none;
  background: #ff4444;
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* ==================== Review Mode Styles ==================== */

.review-mode-label {
  display: inline-block;
  background: linear-gradient(135deg, #f5d742 0%, #f5a742 100%);
  color: #333;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  animation: review-pulse 2s ease-in-out infinite;
}

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

.review-complete {
  padding: 20px 30px;
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  animation: feedback-pop 0.3s ease;
}

.review-complete .feedback-icon {
  font-size: 2rem;
}
