/* Achievement System Styles */

/* Floating Achievement Button */
.achievement-floating-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #2196f3;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 8000; /* High but below modal */
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse 2s infinite;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.achievement-floating-button:hover,
.achievement-floating-button:active {
  transform: scale(1.1);
  background-color: #0d8aee;
}

.achievement-floating-button i {
  color: white;
  font-size: 22px;
  line-height: 1;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

/* Tooltip */
.achievement-floating-button .tooltip {
  position: absolute;
  top: -60px;
  right: 0;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  width: 160px;
  text-align: center;
  font-weight: 400;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.achievement-floating-button .tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  right: 25px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.achievement-floating-button:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Hide tooltip on mobile devices */
@media (max-width: 768px) {
  .achievement-floating-button .tooltip {
    display: none;
  }
}

/* Achievement notification */
.achievement-notification {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background-color: #fff;
  border-left: 5px solid #2196f3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  z-index: 10000; /* Higher than anything else */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  transform: translateY(0);
  max-width: 350px;
  animation: glow 2s infinite alternate;
  width: calc(100% - 40px);
  box-sizing: border-box;
  pointer-events: auto; /* Ensure it can be interacted with */
  overflow: hidden; /* Prevent content overflow */
}

.achievement-notification.visible {
  transform: translateY(-120px);
}

/* All notifications appear in the same position */
.achievement-notification {
  /* All notifications have the same base position */
  z-index: 10000; /* Base z-index */
}

/* Increase z-index for each subsequent notification to ensure proper stacking */
.achievement-notification + .achievement-notification {
  z-index: 10001;
}

.achievement-notification
  + .achievement-notification
  + .achievement-notification {
  z-index: 10002;
}

@media (max-width: 480px) {
  .achievement-notification {
    right: 10px;
    width: calc(100% - 20px);
    padding: 10px 12px;
    max-width: none;
  }

  .achievement-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 12px;
    background-size: 20px;
  }

  .achievement-notification.visible {
    transform: translateY(-90px);
  }

  /* All mobile notifications appear in the same position with increasing z-index */
  .achievement-notification + .achievement-notification.visible,
  .achievement-notification
    + .achievement-notification
    + .achievement-notification.visible {
    transform: translateY(-90px);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8),
      0 0 30px rgba(33, 150, 243, 0.5);
  }
}

.achievement-content {
  display: flex;
  align-items: flex-start; /* Align to top instead of center */
  position: relative; /* For proper positioning of elements */
}

.achievement-icon {
  width: 40px; /* Slightly smaller */
  height: 40px;
  min-width: 40px; /* Prevent shrinking */
  background-color: #2196f3;
  border-radius: 50%;
  margin-right: 15px;
  margin-top: 3px; /* Add a small top margin */
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0; /* Prevent icon from shrinking */
  position: relative; /* Ensure icon stays in place */
  z-index: 1; /* Keep icon above other elements */
}

.achievement-text {
  flex-grow: 1;
  min-width: 0; /* Allow text to wrap properly */
  padding-right: 20px; /* Make space for close button */
}

.achievement-text h3 {
  margin: 0;
  font-size: 16px;
  color: #2196f3;
  line-height: 1.3;
  word-break: break-word; /* Prevent text from overflowing */
}

.achievement-text h4 {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word; /* Prevent text from overflowing */
}

.achievement-text p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  word-break: break-word; /* Prevent text from overflowing */
}

.achievement-close {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: absolute; /* Position absolutely */
  top: 0;
  right: 0;
  z-index: 2; /* Ensure it's above other elements */
}

.achievement-close:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Modal overrides for achievement popup */
.modal.achievements-modal {
  z-index: 9999; /* Ensure it's on top of everything */
}

.modal.achievements-modal .modal-content {
  max-width: 800px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border: none;
  transform: translateY(0) !important; /* Override any transform */
}

.modal.achievements-modal .modal-header {
  background: linear-gradient(135deg, #2196f3, #0d47a1);
  padding: 20px 25px;
  position: relative;
  border-bottom: none;
}

.modal.achievements-modal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #ff9800 0%,
    #f44336 20%,
    #9c27b0 40%,
    #2196f3 60%,
    #4caf50 80%,
    #ffeb3b 100%
  );
  opacity: 0.8;
}

.modal.achievements-modal .modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.modal.achievements-modal .modal-header h2::before {
  content: '\f091'; /* Trophy icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 12px;
  font-size: 24px;
}

.modal.achievements-modal .close {
  color: white;
  opacity: 0.8;
  font-size: 30px;
  transition: all 0.2s ease;
}

.modal.achievements-modal .close:hover {
  color: white;
  opacity: 1;
  transform: rotate(90deg);
}

.modal.achievements-modal .modal-body {
  padding: 30px;
  font-size: 16px;
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Achievement sections */
.achievements-section {
  margin-bottom: 40px;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.earned-section .section-title {
  color: #2196f3;
  border-bottom: 2px solid rgba(33, 150, 243, 0.3);
}

.locked-section .section-title {
  color: #757575;
  border-bottom: 2px solid rgba(117, 117, 117, 0.3);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: currentColor;
  border-radius: 50%;
  margin-right: 12px;
}

.section-icon i {
  color: white;
  font-size: 16px;
}

.trophies-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* Trophy Case */
.trophy-case {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .trophy-case {
    grid-template-columns: 1fr;
  }

  .modal.achievements-modal {
    padding-top: 50px; /* Reduce top padding to show more content */
  }

  .modal.achievements-modal .modal-content {
    width: 95%;
    margin: 0 auto;
    max-height: 85vh; /* Slightly shorter to ensure it fits */
  }

  .modal.achievements-modal .modal-header {
    padding: 12px 15px;
  }

  .modal.achievements-modal .modal-header h2 {
    font-size: 20px;
  }

  .modal.achievements-modal .modal-body {
    padding: 12px;
    padding-bottom: 30px; /* Extra padding at the bottom */
    max-height: calc(85vh - 50px); /* Adjusted to ensure content is visible */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .achievement-progress {
    padding: 15px;
    margin-bottom: 20px;
  }

  .achievement-progress h3 {
    font-size: 18px;
  }

  .achievements-section {
    margin-bottom: 25px;
  }
}

/* Achievement progress bar */
.achievement-progress {
  margin: 0 0 30px 0;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(33, 150, 243, 0.1);
}

.achievement-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #ff9800 0%,
    #f44336 20%,
    #9c27b0 40%,
    #2196f3 60%,
    #4caf50 80%,
    #ffeb3b 100%
  );
  opacity: 0.7;
}

.achievement-progress h3 {
  margin-top: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-progress h3::before {
  content: '\f091'; /* Trophy icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 10px;
  font-size: 18px;
  color: #2196f3;
}

.achievement-progress p {
  color: #555;
  margin: 10px 0;
  font-size: 15px;
}

.achievement-progress p strong {
  color: #2196f3;
  font-weight: 600;
}

.progress-container {
  height: 14px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2196f3 0%, #03a9f4 50%, #00bcd4 100%);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: move-stripes 2s linear infinite;
  z-index: 1;
}

/* Shine effect on progress bar */
.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shine 3s infinite;
  z-index: 2;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20%,
  100% {
    left: 100%;
  }
}

@keyframes move-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.trophy {
  display: flex;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background-color: white;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.trophy:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.trophy.earned {
  border-left: 5px solid #2196f3;
  background: linear-gradient(135deg, white 0%, #f0f7ff 100%);
}

.trophy.earned::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(33, 150, 243, 0.1) 50%
  );
}

.trophy.locked {
  border-left: 5px solid #ccc;
  opacity: 0.8;
  filter: grayscale(0.6);
  background: linear-gradient(135deg, white 0%, #f8f8f8 100%);
}

.trophy-icon {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.trophy-info {
  flex: 1;
}

.trophy-info h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.trophy-info p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Achievement badge icons with fallback icons using FontAwesome */

/* Base badge style */
.trophy-icon {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.trophy-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  z-index: 2;
  pointer-events: none;
}

/* Explorer badges */
.explorer-badge {
  background-color: #2196f3;
  /* Remove background-image to ensure the icon is visible */
}
.explorer-badge::after {
  content: '\f0ac'; /* FontAwesome globe icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

.explorer-badge-gold {
  background-color: #ffc107;
  /* Remove background-image to ensure the icon is visible */
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}
.explorer-badge-gold::after {
  content: '\f521'; /* FontAwesome crown icon - more gold-like */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3); /* Add subtle glow */
}

.explorer-badge-diamond {
  background: linear-gradient(135deg, #00bcd4 0%, #2196f3 50%, #673ab7 100%);
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.7);
  /* Remove background-image to ensure the icon is visible */
}
.explorer-badge-diamond::after {
  content: '\f0e8'; /* FontAwesome certificate icon - more diamond-like */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Add glow effect */
}

/* Project badges */
.project-badge-bronze {
  background-color: #cd7f32;
  /* Remove background-image to ensure the icon is visible */
}
.project-badge-bronze::after {
  content: '\f0eb'; /* FontAwesome lightbulb icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

.project-badge {
  background-color: #4caf50;
  /* Remove background-image to ensure the icon is visible */
}
.project-badge::after {
  content: '\f0eb'; /* FontAwesome lightbulb icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

.project-badge-gold {
  background-color: #ffc107;
  /* Remove background-image to ensure the icon is visible */
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}
.project-badge-gold::after {
  content: '\f12e'; /* FontAwesome puzzle piece icon - more advanced */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3); /* Add subtle glow */
}

/* Photo badge */
.photo-badge {
  background-color: #ff9800;
  /* Remove background-image to ensure the icon is visible */
}
.photo-badge::after {
  content: '\f030'; /* FontAwesome camera icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

/* Visit badges */
.visit-badge {
  background-color: #607d8b;
  /* Remove background-image to ensure the icon is visible */
}
.visit-badge::after {
  content: '\f015'; /* FontAwesome home icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

.return-badge {
  background-color: #9c27b0;
  /* Remove background-image to ensure the icon is visible */
}
.return-badge::after {
  content: '\f133'; /* FontAwesome calendar icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

.return-badge-gold {
  background-color: #ffc107;
  /* Remove background-image to ensure the icon is visible */
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}
.return-badge-gold::after {
  content: '\f274'; /* FontAwesome calendar check icon - more advanced */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3); /* Add subtle glow */
}

/* Contact badge */
.contact-badge {
  background-color: #f44336;
  /* Remove background-image to ensure the icon is visible */
}
.contact-badge::after {
  content: '\f0e0'; /* FontAwesome envelope icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

/* Gaming badge */
.gaming-badge {
  background-color: #e91e63;
  /* Remove background-image to ensure the icon is visible */
}
.gaming-badge::after {
  content: '\f11b'; /* FontAwesome gamepad icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

/* Tech badge */
.tech-badge {
  background-color: #3f51b5;
  /* Remove background-image to ensure the icon is visible */
}
.tech-badge::after {
  content: '\f085'; /* FontAwesome cogs icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1; /* Always show the icon */
}

/* Hunter badge */
.hunter-badge {
  background: linear-gradient(135deg, #ff9800 0%, #f44336 50%, #e91e63 100%);
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.6);
}
.hunter-badge::after {
  content: '\f14e'; /* FontAwesome compass icon as fallback */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 1;
}

/* Locked badge */
.trophy-icon.locked {
  background-color: #ccc;
  background-image: none;
}
.trophy-icon.locked::after {
  content: '\f023'; /* FontAwesome lock icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* Achievement milestone */
.achievement-milestone {
  margin-top: 15px;
  padding: 10px;
  background: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  animation: pulse-milestone 2s infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.achievement-milestone i {
  margin-right: 6px;
  animation: rotate-star 3s infinite linear;
  display: inline-block;
}

@keyframes pulse-milestone {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
  }
}

@keyframes rotate-star {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .achievement-floating-button {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }

  .achievement-floating-button i {
    font-size: 20px;
  }

  .achievement-notification {
    max-width: calc(100% - 40px);
    right: 10px;
  }

  .trophy {
    padding: 12px;
  }

  .trophy-icon {
    min-width: 35px;
    width: 35px;
    height: 35px;
    margin-right: 10px;
  }

  .trophy-info h4 {
    font-size: 14px;
  }

  .trophy-info p {
    font-size: 12px;
  }
}
