/* Achievement modal */
.achievement-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.achievement-modal.show { opacity: 1; visibility: visible; }
.achievement-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.achievement-modal-content { position: relative; z-index: 1; background: white; border-radius: 16px; padding: 40px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.8) translateY(50px); transition: transform 0.3s ease; }
.achievement-modal.show .achievement-modal-content { transform: scale(1) translateY(0); }

.achievement-celebration { text-align: center; position: relative; }
.achievement-confetti { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 100%; height: 100px; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; width: 10px; height: 10px; background: #ffd700; animation: confetti-fall 3s ease-out infinite; }
.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ff6b6b; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.2s; background: #4ecdc4; }
.confetti:nth-child(3) { left: 30%; animation-delay: 0.4s; background: #45b7d1; }
.confetti:nth-child(4) { left: 40%; animation-delay: 0.6s; background: #96ceb4; }
.confetti:nth-child(5) { left: 60%; animation-delay: 0.8s; background: #ffeaa7; }
.confetti:nth-child(6) { left: 70%; animation-delay: 1s; background: #dda0dd; }
.confetti:nth-child(7) { left: 80%; animation-delay: 1.2s; background: #98d8c8; }
.confetti:nth-child(8) { left: 90%; animation-delay: 1.4s; background: #f7dc6f; }

@keyframes confetti-fall { 0%{ transform: translateY(-100px) rotate(0deg); opacity: 1; } 100%{ transform: translateY(400px) rotate(720deg); opacity: 0; } }

.achievement-icon-large { font-size: 5rem; margin: 20px 0; display: block; animation: achievement-bounce 1s ease-out; }
@keyframes achievement-bounce { 0%{ transform: scale(0) rotate(-180deg); opacity: 0; } 50%{ transform: scale(1.2) rotate(-90deg); opacity: 1; } 100%{ transform: scale(1) rotate(0deg); opacity: 1; } }
.achievement-title-large { color: #1f2937; font-size: 2rem; font-weight: 700; margin-bottom: 15px; animation: achievement-title-slide 0.8s ease-out 0.3s both; }
@keyframes achievement-title-slide { 0%{ transform: translateY(30px); opacity: 0; } 100%{ transform: translateY(0); opacity: 1; } }
.achievement-description-large { color: #6b7280; font-size: 1.125rem; margin-bottom: 30px; line-height: 1.6; animation: achievement-description-fade 0.8s ease-out 0.5s both; }
@keyframes achievement-description-fade { 0%{ opacity: 0; } 100%{ opacity: 1; } }
.achievement-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; animation: achievement-buttons-slide 0.8s ease-out 0.7s both; }
@keyframes achievement-buttons-slide { 0%{ transform: translateY(20px); opacity: 0; } 100%{ transform: translateY(0); opacity: 1; } }
.achievement-btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; min-width: 140px; }
.achievement-btn-primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; }
.achievement-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59,130,246,0.4); }
.achievement-btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.achievement-btn-secondary:hover { background: #e5e7eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

@media (max-width: 768px) {
  .achievement-modal-content { padding: 30px 20px; margin: 20px; }
  .achievement-icon-large { font-size: 4rem; margin: 15px 0; }
  .achievement-title-large { font-size: 1.5rem; margin-bottom: 12px; }
  .achievement-description-large { font-size: 1rem; margin-bottom: 25px; }
  .achievement-buttons { flex-direction: column; gap: 10px; }
  .achievement-btn { width: 100%; min-width: auto; }
}


