/* FIND THE GEM POPUP OVERLAY */
.gem-game-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.gem-game-popup-overlay.show {
  display: flex;
}

.gem-game-popup-overlay.show .gem-game-popup {
  opacity: 1;
  transform: translateY(0);
}

/* FIND THE GEM POPUP */
.gem-game-popup {
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    padding: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.gem-game-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #777;
    cursor: pointer;
}

.gem-game-popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d946ef, #8b5cf6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gem-game-popup-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.gem-game-popup-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.gem-game-popup-box {
    background: #fdf0ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
}

.gem-game-popup-box p {
    display: inline-block;
    color: #9b4de2;
    margin-top: 2px;
}

.gem-game-popup-box svg {
    width: 18px;
    height: 18px;
    fill: #9b4de2;
    vertical-align: middle;
    margin-bottom: 2px;
    display: inline-block;
    margin-left: 6px;
    margin-right: 6px;
}

.gem-game-popup-description {
    margin: 10px 0;
    color: #333 !important;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}

.gem-game-popup-description strong {
    font-weight: bold;
}

.gem-game-popup-btn-download {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.gem-game-popup-btn-download svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 6px;
    vertical-align: middle;
}

.gem-game-popup-btn-download:hover, .gem-game-popup-contest-link:hover {
    transform: translateY(-2px);
}

.gem-game-popup-footer {
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}

.gem-game-popup-contest-link {
    display: none;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.gem-game-popup-contest-link svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 6px;
    vertical-align: middle;
}

@media screen and (max-width: 340px) {
    .gem-game-popup-box p {
        font-size: 14px;
    }

    .gem-game-popup-box svg {
        width: 15px;
        height: 15px;
    }
}

/* FIND THE GEM BANNER */
.gem-game-banner {
    max-width: 940px;
    width: 100%;
    background: linear-gradient(135deg, #fdf2ff, #ffe6f5);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
}

.gem-game-banner-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    background: #f4e2ff;
    color: #7e22ce;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
}

.gem-game-banner-title {
    font-size: 24px;
    font-weight: bold;
    color: #111;
}

.gem-game-banner-description {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

.gem-game-banner-description strong {
    font-weight: bold;
    color: #000;
}

.gem-game-banner-description .highlight {
    color: #db2777;
    font-weight: bold;
}

.gem-game-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.gem-game-banner-button:hover {
    transform: translateY(-2px);
}

.gem-game-banner-footer {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gem-game-banner-footer svg {
    width: 22px;
    height: 22px;
    min-width: 19px;
    min-height: 19px;
}

#gem-icon {
    display: inline-block;
    margin-left: 5px;
    position: absolute;
}

@media screen and (max-width: 576px) {
    .gem-game-banner {
        padding: 16px;
    }
    .gem-game-banner-header {
        font-size: 12px;
    }
    .gem-game-banner-title {
        font-size: 16px;
    }
    .gem-game-banner-description {
        font-size: 13px;
    }
    .gem-game-banner-button {
        width: 100%;
        font-size: 13px;
    }
    .gem-game-banner-footer {
        font-size: 13px;
    }
}

@media screen and (max-width: 234px) {
    .gem-game-banner-button {
        font-size: 12px;
    }
}

