/* GG image system v4 — consistent 600x900 WebP artwork throughout the site.
   Blurred backdrops fill off-ratio cards without cutting off cover art. */
.gg-cover-art{
 position:absolute;inset:0;display:block;overflow:hidden;isolation:isolate;
 pointer-events:none;border-radius:inherit;
 background:linear-gradient(145deg,var(--gg-cover-accent,#356f86),#10273e 52%,#071522 100%);
}
.gg-cover-art>.gg-cover-photo,.gg-cover-art>.gg-cover-backdrop{
 position:absolute;display:block;inset:0;width:100%;height:100%;
 border:0;max-width:none!important;max-height:none!important;min-width:0;
 object-fit:cover;object-position:50% 32%;pointer-events:none;
}
.gg-cover-art>.gg-cover-backdrop{
 inset:-7%;width:114%;height:114%;
 filter:blur(13px) brightness(.55) saturate(1.18);
 transform:scale(1.03);
}
.gg-cover-art>.gg-cover-photo{
 z-index:0;object-position:center center;
 object-fit:contain;
 filter:saturate(1.07) contrast(1.03);
 transition:transform .25s ease;
}
.gg-cover-art:after{
 content:"";position:absolute;z-index:1;inset:0;
 background:linear-gradient(180deg,transparent 0%,transparent 55%,#0615223b 78%,#061522aa 100%);
 pointer-events:none;
}
a:hover .gg-cover-art>.gg-cover-photo,a:focus-visible .gg-cover-art>.gg-cover-photo{
 transform:scale(1.025);
}
/* Compact homepage cards also use their corresponding full game covers. */
.gg-shot-game{isolation:isolate}
.gg-shot-game>.gg-cover-art{z-index:0}
.gg-shot-game>.gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center center}
.gg-shot-game>.gg-cover-art:after{
 background:linear-gradient(180deg,#06152308 10%,#06152322 50%,#061523e5 100%);
}
body.gg-production .gg-shot-game:has(.gg-cover-art)::before{display:none}
body.gg-production .gg-shot-game .gg-shot-game-bottom,
body.gg-production .gg-shot-game .gg-shot-arrow{z-index:3;position:absolute}
body.gg-production .gg-shot-game .gg-shot-arrow{right:9px;bottom:9px}
/* Popular games have full-image portrait art, with readable separate names. */
.game-card{
 position:relative;overflow:hidden!important;isolation:isolate;min-height:210px;
 background:#10263a!important;
}
.game-card>.gg-cover-art{z-index:0}
.game-card:after{z-index:1;pointer-events:none}
.game-card>.game-emblem{display:none!important}
.game-card>span:last-child{
 position:relative;z-index:3;margin-top:auto;padding:12px 10px 10px;
 text-shadow:0 2px 9px #030e18ed;
}
.game-card>span:last-child b{font-size:clamp(12px,1.05vw,15px);line-height:1.2}
.game-card>span:last-child small{font-size:10px;color:#a9f8e4;font-weight:700}
.game-card>.gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center}
.game-card>.gg-cover-art:after{
 background:linear-gradient(180deg,#03142200 8%,#0314220a 50%,#031422c7 82%,#031422f2);
}
/* Discovery cards must show full posters behind category descriptions. */
.gg-discovery-tile{position:relative;overflow:hidden!important;isolation:isolate;background:#0e2438!important}
.gg-discovery-tile>.gg-cover-art{z-index:0}
.gg-discovery-tile>.gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center}
.gg-discovery-tile>.gg-cover-art:after{
 background:linear-gradient(180deg,#04121e20 0%,#04121e20 27%,#04121e99 59%,#04121ef4 100%);
}
.gg-discovery-tile>.gg-discovery-top,.gg-discovery-tile>.gg-discovery-copy{position:relative;z-index:3}
/* 24-directory posters and related games render the whole 2:3 cover. */
.gx-game-card{display:flex;flex-direction:column;min-height:0}
.gx-game-poster{position:relative;isolation:isolate;overflow:hidden!important;aspect-ratio:2/3;flex:0 0 auto;background:#0d2438}
.gx-game-poster>.gg-cover-art{inset:0}
.gx-game-poster>.gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center center}
.gx-game-poster>.gg-cover-art:after{background:none}
.gx-game-poster:after{content:none!important}
.gx-game-caption{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;min-height:90px;gap:4px}
.gx-game-caption strong{font-size:clamp(12px,1.1vw,15px);line-height:1.25}
.gx-game-open{margin-top:auto}
.gx-game-card:hover .gg-cover-art>.gg-cover-photo{transform:scale(1.02)}
/* Dedicated game details: no cropping of titles, characters or cover edges. */
.gx-detail-art{
 position:relative;overflow:hidden!important;isolation:isolate;
 aspect-ratio:2/3;min-height:360px;max-height:520px;
 background:#12263b;
}
.gx-detail-art>.gg-cover-art{position:absolute;inset:0;border-radius:inherit}
.gx-detail-art>.gg-cover-art>.gg-cover-photo,
.gx-detail-art>.gg-cover-art>.gg-cover-backdrop{max-height:none!important;height:100%!important}
.gx-detail-art>.gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center center}
.gx-detail-art>.gg-cover-art:after{background:linear-gradient(180deg,transparent 62%,#05142238)}
/* Admin preview displays the full default portrait rather than cropping it. */
.gg-media-cover .gg-cover-art{inset:0}
.gg-media-cover .gg-cover-art>.gg-cover-photo{object-fit:contain;object-position:center center}
.gg-media-cover .gg-cover-art:after{background:none}
@media(max-width:680px){
 .gx-detail-art{min-height:300px;max-height:420px;width:min(100%,330px);margin-inline:auto}
 .game-card{min-height:178px}
 .gg-cover-art>.gg-cover-backdrop{filter:blur(9px) brightness(.55)}
 .gx-game-caption{min-height:80px;padding:10px}
}
@media(prefers-reduced-motion:reduce){
 .gg-cover-art>.gg-cover-photo{transition:none!important}
 a:hover .gg-cover-art>.gg-cover-photo{transform:none!important}
}
