body {
    background-color: #121213;
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.navbar {
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a3c;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.header {
    border-bottom: 1px solid #3a3a3c;
    padding: 10px 0;
}

.wordle-title {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.2rem;
}

.game-board {
    max-width: 350px;
    margin: 20px auto;
}

.letter-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.letter-box {
    border: 2px solid #3a3a3c;
    width: 80px;
    height: 70px;
    margin: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.filled-box {
    border: 2px solid #565758;
}

.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

/* Animation classes for reveal effect */
.letter-box.animating {
    transform: scaleX(0);
    transform-origin: left;
}

.letter-box.reveal {
    transform: scaleX(1);
}

.keyboard {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 10px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 4px;
}

.key-button {
    background-color: #818384;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    height: 65px;
    min-width: 43px;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    flex: 1;
    max-width: 43px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.key-button-wide {
    min-width: 75px;
    max-width: 75px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .game-board {
        max-width: 420px;
    }
    
    .letter-box {
        width: 70px;
        height: 60px;
        font-size: 1.8rem;
        margin: 0 3px;
    }
    
    .keyboard {
        max-width: 100%;
        padding: 0 5px;
        margin: 20px auto;
    }
    
    .keyboard-row {
        gap: 3px;
        margin-bottom: 6px;
    }
    
    .key-button {
        max-width: 35px;
        font-size: 1rem;
        margin: 0;
    }
    
    .key-button-wide {
        min-width: 65px;
        max-width: 65px;
        font-size: 0.9rem;
    }
    
    .spacer {
        width: 10px !important;
    }
    
    .navbar-nav.flex-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav.flex-row .nav-item {
        flex-shrink: 0;
    }
    
    .navbar-nav.flex-row .nav-link {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .game-board {
        max-width: 380px;
    }
    
    .letter-box {
        width: 65px;
        height: 55px;
        font-size: 1.6rem;
        margin: 0 2px;
    }
    
    .keyboard {
        padding: 0 2px;
    }
    
    .keyboard-row {
        gap: 2px;
        margin-bottom: 5px;
    }
    
    .key-button {
        height: 50px;
        min-width: 30px;
        max-width: 30px;
        font-size: 0.9rem;
    }
    
    .key-button-wide {
        min-width: 55px;
        max-width: 55px;
        font-size: 0.8rem;
    }
    
    .spacer {
        width: 8px !important;
    }
}

/* Add these styles for a cleaner game message */
#game-message {
    height: 30px;
    margin-bottom: 20px;
}

.message-text {
    font-weight: bold;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0;
}

.message-error {
    background-color: #dc3545;
    color: white;
}

.message-warning {
    background-color: #ffc107;
    color: #212529;
}

.message-success {
    background-color: #198754;
    color: white;
}

.message-info {
    background-color: #0dcaf0;
    color: #212529;
}

.key-button.absent {
    background-color: #3a3a3c;
}

.key-button.absent:hover {
    background-color: #4a4a4c;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* PWA-specific styles for native app feel */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
    
    .game-board {
        margin-top: calc(20px + env(safe-area-inset-top));
    }
}

/* This file is already created, just making sure it's properly linked */ 

/* Completed challenge view styles */
.completed-challenge .letter-box {
    border: 2px solid #3a3a3c;
    transition: none;
}

.completed-challenge .letter-box.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.completed-challenge .letter-box.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.completed-challenge .letter-box.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

/* Game results card styles */
.game-results-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #3a3a3c;
}

.game-results-card .card-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3a3a3c;
}

/* Historical challenge link styles */
.historical-challenge-link {
    text-decoration: none;
    color: inherit;
}

.historical-challenge-link:hover {
    text-decoration: none;
    color: inherit;
}

.dropdown-menu {
    min-width: 200px;
} 

/* XP and Level System Styles */
.xp-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.xp-earned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.xp-icon {
  font-size: 1.2rem;
  animation: pulse 1s infinite;
}

.xp-amount {
  font-weight: bold;
  color: #ffd700;
  font-size: 1.1rem;
}

.level-up-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  padding: 8px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 6px;
  color: #333;
  font-weight: bold;
  animation: bounce 0.6s ease-in-out;
}

.level-up-icon {
  font-size: 1.3rem;
}

.level-up-text {
  font-size: 1rem;
}

.tier-icon {
  font-size: 1.2rem;
}

.xp-progress {
  margin: 12px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.xp-to-next {
  font-size: 0.9rem;
  color: #b0b0b0;
  text-align: center;
  display: block;
}

.performance-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.performance-label {
  font-size: 0.9rem;
  color: #b0b0b0;
}

.performance-value {
  font-weight: bold;
  color: #4CAF50;
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tier Colors */
.tier-bronze { color: #cd7f32; }
.tier-silver { color: #c0c0c0; }
.tier-gold { color: #ffd700; }
.tier-platinum { color: #e5e4e2; }
.tier-diamond { color: #b9f2ff; }
.tier-master { color: #ff6b6b; }

/* Level Display */
.level-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin: 8px 0;
}

.level-number {
  font-weight: bold;
  color: #4CAF50;
  font-size: 1.1rem;
}

.tier-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tier-name {
  font-size: 0.9rem;
  color: #b0b0b0;
  text-transform: capitalize;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .xp-info {
    padding: 10px;
  }
  
  .level-up-notification {
    padding: 6px;
    font-size: 0.9rem;
  }
  
  .xp-amount {
    font-size: 1rem;
  }
  
  .performance-score {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
} 

/* Game Mode Indicator */
.game-mode-indicator {
  margin-bottom: 10px;
}

.game-mode-indicator .badge {
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-mode-indicator .badge i {
  font-size: 0.9em;
}

/* Responsive adjustments for game mode indicator */
@media (max-width: 768px) {
  .game-mode-indicator .badge {
    padding: 6px 12px;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .game-mode-indicator .badge {
    padding: 5px 10px;
    font-size: 0.8rem !important;
  }
} 

/* Game Completion Modal Styles */
.modal-content.bg-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border: 1px solid #3a3a3c;
}

.modal-header.border-secondary {
  border-bottom-color: #3a3a3c !important;
}

.modal-footer.border-secondary {
  border-top-color: #3a3a3c !important;
}

.target-word-display {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4CAF50;
  text-align: center;
  padding: 10px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.attempts-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2196F3;
  text-align: center;
  padding: 10px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.xp-earned-display {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
}

.xp-amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffd700;
}

.performance-score-display {
  margin-top: 8px;
}

.performance-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4CAF50;
}

.level-progress-display {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.level-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4CAF50;
}

.tier-icon {
  font-size: 1.4rem;
}

/* Enhanced XP Progress Bar */
.level-progress-display .progress {
  height: 16px !important;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.level-progress-display .progress-bar {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 8px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-progress-display .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 1.5s ease-out;
}

/* Ensure modal progress bar matches stats page exactly */
.level-progress-display .progress {
  height: 20px !important;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.level-progress-display .progress-bar {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 8px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-progress-display .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 1.5s ease-out;
}

/* Modal Progress Bar Specific Styles */
#modal-progress-bar {
  background: linear-gradient(90deg, #4CAF50, #8BC34A) !important;
  border-radius: 8px !important;
  transition: width 1.5s ease-out !important;
  position: relative;
  overflow: hidden;
}

#modal-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 1.5s ease-out;
}

#modal-progress-percentage {
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.level-progress-display small {
  font-size: 0.9rem;
  color: #b0b0b0;
  display: block;
  text-align: center;
  margin-top: 4px;
}

.level-up-notification {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: bold;
  animation: bounce 0.6s ease-in-out;
}

.level-up-icon {
  font-size: 1.3rem;
  margin-right: 8px;
}

.level-up-text {
  font-size: 1rem;
}

/* Modal animations */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .target-word-display {
    font-size: 1.2rem;
  }
  
  .attempts-display {
    font-size: 1rem;
  }
  
  .xp-amount {
    font-size: 1.1rem;
  }
  
  .level-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .target-word-display {
    font-size: 1.1rem;
    padding: 8px;
  }
  
  .attempts-display {
    font-size: 0.9rem;
    padding: 8px;
  }
  
  .xp-earned-display {
    padding: 8px;
  }
  
  .level-progress-display {
    padding: 8px;
  }
} 

/* Stat cards in modal */
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-progress-card {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
}

.level-progress-card .level-text {
  font-size: 1rem;
  font-weight: bold;
  color: #4CAF50;
}

.level-progress-card .tier-icon {
  font-size: 1.1rem;
}

/* Responsive adjustments for stat cards */
@media (max-width: 768px) {
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .level-progress-card .level-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 8px !important;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .level-progress-card {
    padding: 8px !important;
  }
  
  .level-progress-card .level-text {
    font-size: 0.8rem;
  }
} 

/* Level Up Celebration */
.level-up-celebration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  border-radius: 8px;
}

.celebration-content {
  text-align: center;
  color: white;
  animation: celebrationPulse 2s ease-in-out infinite;
}

.celebration-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: celebrationBounce 0.6s ease-in-out infinite alternate;
}

.celebration-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.celebration-subtitle {
  font-size: 1.5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
  font-weight: bold;
}

.celebration-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.celebration-tier .tier-icon {
  font-size: 1.5rem;
}

.celebration-tier .tier-name {
  font-weight: bold;
  color: #ffd700;
}

.celebration-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.celebration-particle {
  position: absolute;
  font-size: 1.5rem;
  animation: particleFloat 1s ease-out forwards;
}

/* Celebration Animations */
@keyframes celebrationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.5);
  }
}

/* Enhanced XP Animation Styles */
.xp-earned-display {
  position: relative;
  overflow: hidden;
}

.xp-earned-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  animation: xpShine 2s ease-out;
}

@keyframes xpShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Progress Bar Animation Enhancements */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 1.5s ease-out;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Progress Bar Gradient Animation */
@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sparkle Animation */
.progress-sparkle {
  animation: sparkleFloat 1s ease-out forwards;
}

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

/* Enhanced Modal Entrance */
.modal.fade .modal-dialog {
  transform: scale(0.8) translateY(-50px) rotateX(10deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0) rotateX(0deg);
}

/* Responsive adjustments for celebrations */
@media (max-width: 768px) {
  .celebration-icon {
    font-size: 3rem;
  }
  
  .celebration-title {
    font-size: 1.5rem;
  }
  
  .celebration-subtitle {
    font-size: 1.2rem;
  }
  
  .celebration-tier {
    font-size: 1rem;
  }
  
  .celebration-tier .tier-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .celebration-icon {
    font-size: 2.5rem;
  }
  
  .celebration-title {
    font-size: 1.3rem;
  }
  
  .celebration-subtitle {
    font-size: 1rem;
  }
  
  .celebration-tier {
    font-size: 0.9rem;
  }
  
  .celebration-tier .tier-icon {
    font-size: 1.1rem;
  }
} 

/* XP Breakdown Styles */
.xp-breakdown-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.5s ease-out;
  animation: slideInFromBottom 0.6s ease-out;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.xp-breakdown-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% { 
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

.xp-breakdown-icon {
  font-size: 1.2rem;
  animation: rotateSlow 3s linear infinite;
}

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

.xp-breakdown-items {
  margin-bottom: 12px;
}

.xp-breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease-out;
  position: relative;
  overflow: hidden;
  animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.xp-breakdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.xp-breakdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--component-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.xp-breakdown-item:hover::before {
  opacity: 1;
}

.xp-component-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.xp-component-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xp-component-name {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
}

.xp-component-description {
  font-size: 0.85rem;
  color: #b0b0b0;
  font-style: italic;
}

.xp-component-amount {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
  transition: all 0.3s ease;
  text-align: right;
  min-width: 80px;
  animation: numberPulse 0.8s ease-out;
}

@keyframes numberPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.xp-total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  animation: slideInFromBottom 0.8s ease-out 0.5s both;
}

.xp-total-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  animation: xpShine 2s ease-out;
}

.xp-total-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
}

.xp-total-amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: finalPulse 1s ease-out;
}

@keyframes finalPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Enhanced XP Pulse Animation */
@keyframes xpPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* XP Shine Animation */
@keyframes xpShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive adjustments for XP breakdown */
@media (max-width: 768px) {
  .xp-breakdown-container {
    padding: 12px;
  }
  
  .xp-breakdown-title {
    font-size: 1rem;
  }
  
  .xp-breakdown-item {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  
  .xp-component-icon {
    font-size: 1.2rem;
    width: 28px;
  }
  
  .xp-component-name {
    font-size: 0.9rem;
  }
  
  .xp-component-description {
    font-size: 0.8rem;
  }
  
  .xp-component-amount {
    font-size: 1rem;
    min-width: 70px;
  }
  
  .xp-total-section {
    padding: 12px;
  }
  
  .xp-total-label {
    font-size: 1rem;
  }
  
  .xp-total-amount {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .xp-breakdown-container {
    padding: 10px;
  }
  
  .xp-breakdown-title {
    font-size: 0.9rem;
  }
  
  .xp-breakdown-item {
    padding: 8px 10px;
    margin-bottom: 6px;
  }
  
  .xp-component-icon {
    font-size: 1.1rem;
    width: 24px;
  }
  
  .xp-component-name {
    font-size: 0.85rem;
  }
  
  .xp-component-description {
    font-size: 0.75rem;
  }
  
  .xp-component-amount {
    font-size: 0.9rem;
    min-width: 60px;
  }
  
  .xp-total-section {
    padding: 10px;
  }
  
  .xp-total-label {
    font-size: 0.9rem;
  }
  
  .xp-total-amount {
    font-size: 1.1rem;
  }
} 