/* Theme ad slot layout and responsive ad sizing. */

.theme-ad-slot{
    --gsc-ad-width: 728px;
    --gsc-ad-height: 90px;
    display: block;
    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 728px 90px;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    min-height: var(--gsc-ad-height);
    margin: 18px auto 24px;
    clear: both;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    touch-action: pan-y;
}

.theme-ad-slot--managed-banner{
    height: var(--gsc-ad-height);
    max-height: var(--gsc-ad-height);
}

.theme-ad-slot__frame{
    display: grid;
    place-items: center;
    position: relative;
    width: min(100%, var(--gsc-ad-width));
    max-width: 100%;
    min-width: 0;
    min-height: var(--gsc-ad-height);
    height: var(--gsc-ad-height);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-align: center;
    line-height: normal;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    contain: strict;
    isolation: isolate;
}

.gsc-ad-cold-start .theme-ad-slot__content,
.gsc-cold-visit-paint-guard .theme-ad-slot__content{
    transition: none;
}

.gsc-user-is-scrolling .theme-ad-slot__content iframe,
.gsc-user-is-scrolling .theme-ad-slot__content ins{
    pointer-events: none;
}


.theme-ad-slot__placeholder,
.theme-ad-slot__content{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--gsc-ad-height);
    height: var(--gsc-ad-height);
    overflow: hidden;
    text-align: center;
}

.theme-ad-slot__placeholder{
    z-index: 1;
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.46;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.theme-ad-slot__placeholder span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
}

.theme-ad-slot__content{
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    contain: layout paint;
    isolation: isolate;
}

.theme-ad-slot.is-ad-mounted .theme-ad-slot__content,
.theme-ad-slot.is-ad-loaded .theme-ad-slot__content,
.theme-ad-slot[data-gsc-ad-state="mounting"] .theme-ad-slot__content,
.theme-ad-slot[data-gsc-ad-state="loading"] .theme-ad-slot__content,
.theme-ad-slot[data-gsc-ad-state="loaded"] .theme-ad-slot__content{
    opacity: 1;
    visibility: visible;
}

.theme-ad-slot.is-ad-mounted .theme-ad-slot__placeholder,
.theme-ad-slot.is-ad-loaded .theme-ad-slot__placeholder,
.theme-ad-slot[data-gsc-ad-state="mounting"] .theme-ad-slot__placeholder,
.theme-ad-slot[data-gsc-ad-state="loading"] .theme-ad-slot__placeholder,
.theme-ad-slot[data-gsc-ad-state="loaded"] .theme-ad-slot__placeholder{
    opacity: 0;
}

.theme-ad-slot__content > *{
    max-width: 100%;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
}

.theme-ad-slot__content > ins,
.theme-ad-slot__content > iframe,
.theme-ad-slot__content > div{
    margin-left: auto !important;
    margin-right: auto !important;
}

.theme-ad-slot__content iframe,
.theme-ad-slot__content img,
.theme-ad-slot__content ins{
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.theme-ad-slot__content iframe{
    display: block;
    border: 0;
}

.theme-ad-slot__content img{
    display: inline-block;
    height: auto;
}

.theme-ad-slot__content ins.adsbygoogle{
    display: block !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

.theme-ad-slot--managed-banner .theme-ad-slot__content > *,
.theme-ad-slot--managed-banner .theme-ad-slot__content iframe,
.theme-ad-slot--managed-banner .theme-ad-slot__content img,
.theme-ad-slot--managed-banner .theme-ad-slot__content ins,
.theme-ad-slot--managed-banner .theme-ad-slot__content ins.adsbygoogle{
    width: var(--gsc-ad-width) !important;
    max-width: 100% !important;
    min-height: var(--gsc-ad-height) !important;
    height: var(--gsc-ad-height) !important;
    max-height: var(--gsc-ad-height) !important;
    contain: layout paint;
}

.home-page .theme-ad-slot.container{
    margin-top: 0;
}

.single-game-page .theme-ad-slot--single-bottom{
    margin-top: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .theme-ad-slot{
        --gsc-ad-width: 320px;
        --gsc-ad-height: 100px;
        contain-intrinsic-size: 320px 100px;
        margin: 14px auto 20px;
    }
}
