/* Achievements Toast */
.achievement-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    z-index: 10000002;
    border-left: 5px solid #f59e0b;
    max-width: 300px;
}

.achievement-toast-icon {
    font-size: 2rem;
    background: #fef3c7;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-toast-content {
    flex: 1;
}

.achievement-toast-title {
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.achievement-toast-name {
    font-size: 1rem;
    color: #1f2937;
    font-weight: bold;
    margin-bottom: 2px;
}

.achievement-toast-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
}

.slide-up { animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.slide-down { animation: slideDown 0.5s forwards; }

/* Modal Panel */
#achievementsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000001;
    justify-content: center;
    align-items: center;
}

.achievements-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.badge-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s;
}

.badge-item.unlocked {
    opacity: 1;
    filter: none;
    background: #fffbeb;
    border-color: #fcd34d;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.badge-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2px;
}

.badge-desc {
    font-size: 0.7rem;
    color: #6b7280;
}

.stats-panel {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}
