﻿

    /* =========================================================
            ACHIEVEMENT POPUP OVERLAY
           ========================================================= */
    .achievement-overlay

{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(20, 27, 43, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.30s ease, visibility 0.30s ease;
}


/* SHOW POPUP */

.achievement-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* ================================================================================================================================
   POPUP
========================================================= */

.achievement-popup {
    position: relative;
    width: 680px;
    max-width: 88vw;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(25px) scale(0.97);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}


.achievement-overlay.show .achievement-popup {
    transform: translateY(0) scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.achievement-header {
    position: relative;
    min-height: 78px;
    padding: 15px 58px 14px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient( 110deg, #080d22 0%, #151b31 45%, #8b3f08 100% );
    color: #ffffff;
}


/* TITLE */

.achievement-title {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}


    /* GOLD TEXT */

    .achievement-title .gold {
        color: #ffd21c;
    }


/* SUBTITLE */

.achievement-subtitle {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #ffffff;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.achievement-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 27px;
    font-weight: 300;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}


    .achievement-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }


/* =========================================================
   IMAGE SECTION
========================================================= */

.achievement-image-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #07152c;
    overflow: hidden;
}


/* IMAGE */

.achievement-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.achievement-footer {
    min-height: 72px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ffffff;
}


/* MESSAGE */

.achievement-message {
    flex: 1;
    margin: 0;
    padding: 0;
    color: #4b5b72;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}


/* =========================================================
   CONTINUE BUTTON
========================================================= */

.achievement-button {
    flex-shrink: 0;
    min-width: 175px;
    padding: 12px 18px;
    border: none;
    border-radius: 11px;
    background: #079b70;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 155, 112, 0.22);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}


    .achievement-button:hover {
        background: #07865f;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 9px 20px rgba(0, 155, 112, 0.30);
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .achievement-overlay {
        padding: 12px;
    }


    .achievement-popup {
        width: 100%;
        max-width: 95vw;
        border-radius: 14px;
    }


    /* HEADER */

    .achievement-header {
        min-height: 72px;
        padding: 14px 52px 13px 18px;
    }


    .achievement-title {
        font-size: 16px;
    }


    .achievement-subtitle {
        font-size: 13px;
    }


    /* CLOSE */

    .achievement-close {
        top: 15px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 25px;
        line-height: 35px;
    }


    /* IMAGE */

    .achievement-image {
        max-height: none;
        width: 100%;
        object-fit: contain;
    }


    /* FOOTER */

    .achievement-footer {
        min-height: auto;
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }


    .achievement-message {
        font-size: 13px;
        line-height: 1.4;
    }


    /* BUTTON */

    .achievement-button {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .achievement-overlay {
        padding: 8px;
    }


    .achievement-popup {
        max-width: 96vw;
        border-radius: 12px;
    }


    /* HEADER */

    .achievement-header {
        min-height: 68px;
        padding: 13px 48px 12px 15px;
    }


    .achievement-title {
        font-size: 14px;
        letter-spacing: 0.2px;
    }


    .achievement-subtitle {
        font-size: 12px;
    }


    /* CLOSE */

    .achievement-close {
        top: 14px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 23px;
        line-height: 31px;
    }


    /* FOOTER */

    .achievement-footer {
        padding: 12px;
    }


    .achievement-message {
        font-size: 12px;
    }


    .achievement-button {
        position: relative;
        z-index: 100001;
        display: inline-block;
        min-width: 175px;
        padding: 12px 18px;
        border: none;
        border-radius: 11px;
        background: #079b70;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        pointer-events: auto;
        transition: all 0.25s ease;
    }

        .achievement-button:hover {
            background: #07865f;
            color: #ffffff;
            text-decoration: none;
            transform: translateY(-2px);
        }

    /* =========================================================
   VERY SMALL SCREEN
========================================================= */

    @media (max-width: 360px) {

        .achievement-title {
            font-size: 13px;
        }


        .achievement-subtitle {
            font-size: 11px;
        }


        .achievement-message {
            font-size: 11px;
        }
    }
}

