.motivation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.motivation-overlay.fade-in {
  opacity: 1;
}

.motivation-overlay.fade-out {
  opacity: 0;
}

.motivation-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  color: white;
  max-width: 600px;
  margin: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transform: translateY(50px) scale(0.8);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.motivation-overlay.fade-in .motivation-content {
  transform: translateY(0) scale(1);
}

.motivation-overlay.fade-out .motivation-content {
  transform: translateY(-30px) scale(0.9);
}

.motivation-content.perfect {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.motivation-content.excellent {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.motivation-content.good {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.motivation-content.average {
  background: linear-gradient(135deg, #ff7b7b 0%, #667eea 100%);
}

.motivation-content.poor {
  background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
}

.motivation-content.terrible {
  background: linear-gradient(135deg, #c94b4b 0%, #4b134f 100%);
}

.score-display {
  font-size: 4.5rem;
  font-weight: 900;
  margin: 25px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: -2px;
}

.motivation-message {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 25px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.philosophy-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 25px 0;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 400;
  padding: 0 20px;
}

.result-stats {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  backdrop-filter: blur(5px);
}

.result-stats .stat-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.close-motivation {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-motivation:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.close-motivation:active {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .motivation-overlay {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .motivation-overlay {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .motivation-content {
    padding: 30px 20px;
    margin: 15px;
    border-radius: 20px;
  }

  .score-display {
    font-size: 3.5rem;
  }

  .motivation-message {
    font-size: 1.3rem;
    margin: 20px 0;
  }

  .philosophy-quote {
    font-size: 1rem;
    padding: 0 10px;
  }
}
