/* Shared per-game achievements modal frame.
   Row + tier styles live in topbar.css; keyframes achv-enter / achv-trophy-bob also live there. */

.fstl-achv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.achv-modal-idx {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
    border: 1px solid rgba(99,102,241,0.22);
    border-radius: 22px;
    width: 580px;
    max-width: 95vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 90px rgba(0,0,0,0.7), 0 0 0 1px rgba(99,102,241,0.1);
    overflow: hidden;
    animation: achv-enter 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}

.achv-modal-idx .achv-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: linear-gradient(120deg, rgba(79,70,229,0.24) 0%, rgba(168,85,247,0.16) 100%);
    border-bottom: 1px solid rgba(99,102,241,0.18);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.achv-modal-idx .achv-hdr::before {
    content: '';
    position: absolute;
    top: -55px; right: -30px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(168,85,247,0.32) 0%, transparent 70%);
    pointer-events: none;
}

.achv-modal-idx .achv-hdr::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 20px;
    width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.achv-modal-idx .achv-ttl {
    font-size: 1.2rem;
    font-weight: 900;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 14px rgba(99,102,241,0.65);
    letter-spacing: -0.3px;
    position: relative;
}

.achv-modal-idx .achv-ttl svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(251,191,36,0.8));
    animation: achv-trophy-bob 2.5s ease-in-out infinite;
}

.achv-modal-idx .achv-cls,
.achv-modal-idx .achv-close-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    font-family: 'Heebo', sans-serif;
    position: relative;
}

.achv-modal-idx .achv-cls:hover,
.achv-modal-idx .achv-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #e2e8f0;
}

.achv-modal-idx .achv-body {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.achv-modal-idx .achv-body::-webkit-scrollbar { width: 5px; }
.achv-modal-idx .achv-body::-webkit-scrollbar-track { background: transparent; }
.achv-modal-idx .achv-body::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 99px; }
