/* Site Advertisement — Mini Server Hero */
.gt-site-ad-shell {
    position: fixed;
    z-index: 2000;
    right: 0;
    bottom: 24px;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    direction: ltr;
}

#popup.gt-site-ad {
    position: relative;
    display: grid;
    grid-template-columns: minmax(270px, 46%) 1fr;
    width: min(100%, 900px);
    min-height: 158px;
    overflow: hidden;
    border: 1px solid rgba(125, 164, 221, .24);
    border-radius: 15px;
    color: #fff;
    background: #0b1727;
    box-shadow: 0 22px 48px rgba(8, 18, 31, .28), 0 5px 14px rgba(8, 18, 31, .12);
    transition: opacity .25s ease, transform .25s ease, box-shadow .3s ease;
    pointer-events: auto;
    isolation: isolate;
}

#popup.gt-site-ad:focus-within,
#popup.gt-site-ad:hover {
    box-shadow: 0 27px 58px rgba(8, 18, 31, .34), 0 0 0 3px rgba(63, 125, 240, .08);
}

.gt-site-ad-shell.is-dismissed {
    pointer-events: none;
}

.gt-site-ad-shell.is-dismissed #popup.gt-site-ad {
    opacity: 0;
    transform: translateY(14px) scale(.98);
    pointer-events: none;
}

#popup.gt-site-ad .gt-site-ad__close {
    position: absolute;
    z-index: 6;
    top: 10px;
    left: 10px;
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 9, 17, .62);
    background-image: none;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#popup.gt-site-ad .gt-site-ad__close:hover,
#popup.gt-site-ad .gt-site-ad__close:focus-visible {
    border-color: rgba(255, 255, 255, .6);
    background: #3f7df0;
    transform: rotate(8deg) scale(1.05);
}

.gt-site-ad__media {
    position: relative;
    z-index: 1;
    min-height: 158px;
    overflow: hidden;
    background: #0b1727;
}

.gt-site-ad__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .86;
    filter: saturate(.88) contrast(1.03);
    transform: scale(1.012);
    transition: transform .75s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, rgba(0, 0, 0, .9) 72%, rgba(0, 0, 0, .36) 94%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 55%, rgba(0, 0, 0, .9) 72%, rgba(0, 0, 0, .36) 94%, transparent 100%);
    animation: gtSiteAdMediaDrift 14s ease-in-out infinite alternate;
}

.gt-site-ad__media:after {
    content: '';
    position: absolute;
    inset: 0 -1px 0 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 13, 23, .06), transparent 42%, rgba(7, 13, 23, .68) 100%), radial-gradient(circle at 18% 44%, transparent 0%, rgba(7, 13, 23, .08) 58%, rgba(11, 16, 25, .32) 100%);
}

.gt-site-ad__media:before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    opacity: .7;
    background: linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, .08) 48%, transparent 68%);
    transform: translateX(-120%);
    animation: gtSiteAdMediaSweep 9s ease-in-out infinite;
}

#popup.gt-site-ad:hover .gt-site-ad__media img,
#popup.gt-site-ad:focus-within .gt-site-ad__media img {
    filter: saturate(1.03) contrast(1.06);
    transform: scale(1.055);
}

.gt-site-ad__map-caption {
    position: absolute;
    z-index: 3;
    left: 14px;
    bottom: 12px;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: 0;
    color: #fff;
    direction: ltr;
    text-align: left;
    text-shadow: 0 2px 8px #000;
}

.gt-site-ad__map-caption small {
    color: #9ec1ff !important;
    font: 800 10px/1.3 'Heebo', sans-serif;
}

.gt-site-ad__map-caption strong {
    color: #fff !important;
    font: 700 13px 'JetBrains Mono', monospace;
}

.gt-site-ad__content {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    min-height: 158px;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
    color: #fff;
    background: linear-gradient(90deg, rgba(8, 18, 31, .76), #0b1727 18%, #0b1727 100%);
    text-align: right;
}

.gt-site-ad__status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: #53dda0 !important;
    font: 800 10px 'JetBrains Mono', monospace;
    letter-spacing: .06em;
}

.gt-site-ad__live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #53dda0;
    box-shadow: 0 0 0 0 rgba(83, 221, 160, .45);
    animation: gtSiteAdLivePulse 2.2s ease-out infinite;
}

#popup.gt-site-ad .gt-site-ad__game {
    margin: 0;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#popup.gt-site-ad .gt-site-ad__name {
    display: block;
    margin: 4px 0 2px;
    overflow: hidden;
    color: #fff !important;
    direction: ltr;
    font-size: clamp(18px, 2.35vw, 24px);
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#popup.gt-site-ad .gt-site-ad__name:hover {
    color: #dceaff !important;
}

#popup.gt-site-ad .gt-site-ad__meta {
    color: #9aabc2 !important;
    font: 500 12px/1.35 'Heebo', sans-serif;
}

.gt-site-ad__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

#popup.gt-site-ad .gt-site-ad__tags span {
    padding: 3px 7px;
    border: 1px solid rgba(151, 185, 231, .25);
    border-radius: 5px;
    color: #b9cce5 !important;
    background: rgba(255, 255, 255, .06);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.gt-site-ad__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 8px;
    direction: rtl;
}

.gt-site-ad__players {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #a9b8cb !important;
    font-size: 10px;
    white-space: nowrap;
}

#popup.gt-site-ad .gt-site-ad__players span {
    color: #a9b8cb !important;
}

#popup.gt-site-ad .gt-site-ad__players strong {
    color: #fff !important;
    font-size: 18px;
    line-height: 1;
}

.gt-site-ad__actions {
    display: flex;
    gap: 7px;
}

#popup.gt-site-ad .gt-site-ad__action {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 36px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: #eaf2ff !important;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

#popup.gt-site-ad .gt-site-ad__action--primary {
    border-color: transparent;
    color: #fff !important;
    background: #3f7df0;
}

#popup.gt-site-ad .gt-site-ad__action:hover,
#popup.gt-site-ad .gt-site-ad__action:focus-visible {
    border-color: rgba(111, 176, 255, .7);
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 7px 17px rgba(3, 10, 20, .25), 0 0 0 3px rgba(63, 125, 240, .1);
    transform: translateY(-2px) scale(1.04);
}

#popup.gt-site-ad .gt-site-ad__action--primary:hover,
#popup.gt-site-ad .gt-site-ad__action--primary:focus-visible {
    background: #4d8af4;
}

.gt-site-ad__toast {
    position: absolute;
    bottom: -34px;
    left: 50%;
    padding: 6px 10px;
    border: 1px solid #c8e9d8;
    border-radius: 7px;
    color: #177445;
    background: #effbf4;
    box-shadow: 0 8px 18px rgba(19, 77, 47, .12);
    font-size: 11px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}

.gt-site-ad__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes gtSiteAdMediaDrift {
    0% { transform: scale(1.012) translate3d(0, 0, 0); }
    100% { transform: scale(1.045) translate3d(-1.2%, -0.5%, 0); }
}

@keyframes gtSiteAdMediaSweep {
    0%, 55% { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}

@keyframes gtSiteAdLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(83, 221, 160, .42); }
    55% { box-shadow: 0 0 0 5px rgba(83, 221, 160, 0); }
}

@media (max-width: 700px) {
    .gt-site-ad-shell {
        bottom: 12px;
        padding: 0 10px;
    }

    #popup.gt-site-ad {
        display: flex;
        width: 100%;
        min-height: 0;
        flex-direction: column;
    }

    .gt-site-ad__content {
        order: 1;
        min-height: 0;
        padding: 15px 16px 14px;
        background: linear-gradient(180deg, #0b1727 0%, rgba(11, 23, 39, .94) 100%);
    }

    .gt-site-ad__media {
        order: 2;
        min-height: 112px;
    }

    .gt-site-ad__media img {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 44%, #000 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 44%, #000 100%);
    }

    .gt-site-ad__media:after {
        background: linear-gradient(180deg, rgba(11, 23, 39, .9) 0%, rgba(7, 13, 23, .05) 43%, rgba(5, 10, 18, .7) 100%);
    }

    .gt-site-ad__name {
        font-size: 21px !important;
    }

    .gt-site-ad__footer {
        position: relative;
        justify-content: flex-start;
        gap: 10px;
    }

    .gt-site-ad__actions {
        position: absolute;
        z-index: 6;
        right: 0;
        bottom: -100px;
    }

    #popup.gt-site-ad .gt-site-ad__action,
    #popup.gt-site-ad .gt-site-ad__action--primary,
    #popup.gt-site-ad .gt-site-ad__action--primary:hover,
    #popup.gt-site-ad .gt-site-ad__action--primary:focus-visible {
        border-color: rgba(255, 255, 255, .2);
        color: #f4f8ff !important;
        background: rgba(8, 17, 30, .82);
        box-shadow: 0 6px 16px rgba(2, 8, 16, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

