/* Popup giới thiệu game Gánh Phố (views/partials/ganhPhoPopup.ejs) */
.gpp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(92, 75, 71, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: gppFade 0.25s ease;
}

.gpp-overlay[hidden] {
    display: none;
}

@keyframes gppFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gppPop {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gpp-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #fffcfb 0%, #fff5f2 100%);
    border: 2px solid #ffe6e0;
    border-radius: 28px;
    box-shadow: 0 24px 60px -18px rgba(214, 125, 99, 0.55);
    animation: gppPop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.gpp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #8a7772;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(92, 75, 71, 0.15);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.gpp-close:hover {
    background: #fbc1b0;
    color: #fff;
    transform: rotate(90deg);
}

.gpp-art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f6e3c4;
}

.gpp-body {
    padding: 18px 22px 16px;
    text-align: center;
}

.gpp-flags {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gpp-flag {
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8563b;
    background: #ffe9b3;
    padding: 5px 12px;
    border-radius: 999px;
}

.gpp-flag.free {
    color: #1e6b42;
    background: #b8e0c8;
}

.gpp-title {
    margin: 10px 0 6px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.3;
    color: #e59882;
}

.gpp-sub {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #8a7772;
}

.gpp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fad0c4 0%, #fbc1b0 100%);
    box-shadow: 0 6px 18px rgba(250, 208, 196, 0.6);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #5c4b47;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.gpp-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 22px rgba(250, 208, 196, 0.75);
    color: #5c4b47;
}

.gpp-cta svg {
    width: 17px;
    height: 17px;
}

.gpp-later {
    margin-top: 10px;
    border: none;
    background: none;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #b8a6a1;
    cursor: pointer;
    text-decoration: underline dotted;
}

.gpp-later:hover {
    color: #d67d63;
}

@media (max-width: 480px) {
    .gpp-card {
        border-radius: 24px;
    }

    .gpp-body {
        padding: 16px 18px 12px;
    }

    .gpp-title {
        font-size: 1.16rem;
    }
}
