/* IGDB ratings + game info block on the game page */
.gsx-igdb { margin: 28px 0; }
.gsx-igdb__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--surface, rgba(127,127,127,.1)); border: 1px solid var(--border, rgba(127,127,127,.28)); box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.gsx-igdb__info dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 6px; }
.gsx-igdb__info dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gsx-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: inherit; background: rgba(127,127,127,.16); border: 1px solid rgba(127,127,127,.3); transition: background .15s, border-color .15s, color .15s; }
a.gsx-chip:hover, a.gsx-chip:focus-visible { background: var(--primary, #2ee66b); border-color: var(--primary, #2ee66b); color: var(--on-primary, #021207); }
.gsx-chip--plain { cursor: default; }

/* Star rating above the product title */
.gsx-stars { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.gsx-stars__bar { font-size: 24px; letter-spacing: 3px; line-height: 1; background: linear-gradient(90deg, #ffc83d calc(var(--s) / 5 * 100%), #3b403d 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter:drop-shadow(0 2px 4px rgba(0,0,0,.9)); /* The empty part is an opaque grey: a see-through one lets the drop-shadow show inside the stars. */ }
.gsx-stars__num { font-weight: 700; opacity: .85; font-size: 15px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.9));}

/* Blurred game background: sits under the site's animated background blobs, so the animation stays visible. */
/* Height in 'large viewport' units: with inset:0 the picture was resized every time the phone's address bar slid away while scrolling, so it seemed to move and grow. */
.gsx-game-bg { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; background-size: cover; background-position: center top; filter: blur(7px) saturate(1.1); transform: scale(1.05); opacity: .62; }
.gsx-game-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,6,.1), rgba(5,7,6,.55) 65%, rgba(5,7,6,.85)); }

/* Platform tags under the game title */
.gsx-plats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px;filter:drop-shadow(0 3px 8px rgba(0,0,0,.6));}
.gsx-plat { display: inline-block; min-width: 54px; text-align: center; padding: 8px 14px; font-size: 16px; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--primary, #2ee66b); background: rgba(5,7,6,.7); border: 1px solid var(--gsx-plat, var(--primary, #2ee66b)); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important; transform: translateZ(0); backface-visibility: hidden; }
a.gsx-plat:hover, a.gsx-plat:focus, a.gsx-plat:focus-visible, a.gsx-plat:active { background: var(--gsx-plat, var(--primary, #2ee66b)); color: var(--on-primary, #021207); }
.gsx-stars--none .gsx-stars__bar { background: none; -webkit-text-fill-color: rgba(127,127,127,.55); color: rgba(127,127,127,.55); }
.gsx-stars--none .gsx-stars__num { font-weight: 500; opacity: .6; font-size: 13px; }

/* 0-100 user and critic scores: round yellow rings in their own container, right under the description */
.gsx-scores { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 0 0 14px; padding: 16px 20px; border-radius: 14px; background: var(--surface, rgba(127,127,127,.1)); border: 1px solid var(--border, rgba(127,127,127,.28)); box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.gsx-score { display: flex; align-items: center; gap: 14px; }
.gsx-score__ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, #2ee66b) calc(var(--p) * 1%), rgba(127,127,127,.3) 0); position: relative; }
.gsx-score__ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface, #111); }
.gsx-score__num { position: relative; font-weight: 800; font-size: 22px; color: var(--c, #2ee66b); }
.gsx-score__txt { display: flex; flex-direction: column; gap: 2px; }
.gsx-score__txt strong { font-size: 15px; }
.gsx-score__txt small { font-size: 12px; opacity: .65; }

/* Age rating badges (styled squares, not the official artwork) */
.gsx-age { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 6px; color: #fff; line-height: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset; }
.gsx-age b { font-size: 22px; font-weight: 800; }
.gsx-age small { margin-top: 4px; font-size: 9px; letter-spacing: .12em; font-weight: 700; opacity: .95; }
.gsx-age--p3 { background: #00964b; }
.gsx-age--p7 { background: #6aa818; }
.gsx-age--p12 { background: #f4a300; color: #1a1200; }
.gsx-age--p16 { background: #ee6a00; }
.gsx-age--p18 { background: #d0021b; }
.gsx-age--esrb { background: #111; }
.gsx-age--esrb b { font-size: 24px; }
.gsx-igdb__info .gsx-igdb__wide { grid-column: 1 / -1; }
.gsx-chip--sm { padding: 3px 10px; font-size: 12px; font-weight: 500; }
.gsx-igdb .gsx-igdb__info dd img.gsx-age-img { height: 72px; width: auto; max-width: none; max-height: 72px; flex: 0 0 auto; display: inline-block; vertical-align: middle; border-radius: 0; object-fit: contain; }
.gsx-igdb .gsx-igdb__info dd { align-items: center; }
.gsx-age--gen { background: #1b2420; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.gsx-age--gen b { font-size: 18px; }
.gsx-igdb__info dd .gsx-age, .gsx-igdb__info dd .gsx-age-img { margin-right: 6px; }

.gsx-scores__rings { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.gsx-scores__ages { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gsx-scores__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.gsx-scores__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gsx-scores .gsx-scores__badges .gsx-age, .gsx-scores .gsx-scores__badges .gsx-age-img { margin: 0; }
.gsx-scores .gsx-igdb__info dd img.gsx-age-img, .gsx-scores .gsx-scores__badges img.gsx-age-img { height: 56px; max-height: 56px; width: auto; }
@media (max-width: 640px) { .gsx-scores__ages { margin-left: 0; align-items: flex-start; } .gsx-scores__badges { justify-content: flex-start; } }

/* Trailer + screenshots */
.gsx-media{margin:0 0 22px}
.gsx-media__stage{position:relative;aspect-ratio:16/9;background:#06080d;overflow:hidden;border-radius:12px;border:1px solid var(--border,rgba(127,127,127,.28))}
.gsx-media__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease}
.gsx-media__slide.is-on{opacity:1;visibility:visible}
.gsx-media__slide img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.gsx-media__slide[data-type=video] img{cursor:pointer}
.gsx-media__slide iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.gsx-media__play{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:rgba(8,10,16,.6);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s,background .2s}
.gsx-media__play:hover{transform:scale(1.08);background:var(--primary,#2ee66b);color:#06080d}
.gsx-media__tag{position:absolute;left:12px;top:12px;padding:3px 10px;background:rgba(8,10,16,.75);color:#fff;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.gsx-media__nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:56px;border:0;background:rgba(8,10,16,.55);color:#fff;font-size:30px;line-height:1;cursor:pointer;opacity:0;transition:opacity .2s,background .2s;z-index:2}
.gsx-media__stage:hover .gsx-media__nav,.gsx-media__nav:focus-visible{opacity:1}
.gsx-media__nav:hover{background:rgba(8,10,16,.85)}
.gsx-media__nav--prev{left:0}.gsx-media__nav--next{right:0}
.gsx-media__thumbs{display:flex;justify-content:safe center;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.gsx-media__thumb{flex:0 0 auto;width:112px;aspect-ratio:16/9;padding:2px;border:0;background:rgba(46,230,107,.3);cursor:pointer;opacity:.6;position:relative;transition:opacity .2s,background .2s;clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px)}
.gsx-media__thumb img{width:100%;height:100%;object-fit:cover;display:block;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
.gsx-media__thumb:hover{opacity:.9}
.gsx-media__thumb.is-on{opacity:1;background:var(--primary,#2ee66b);filter:drop-shadow(0 0 6px rgba(46,230,107,.55))}
.gsx-media__thumb.is-video:after{content:"\25B6";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;text-shadow:0 0 6px #000}
.gsx-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(3,5,9,.94);display:flex;align-items:center;justify-content:center}
.gsx-lightbox img{max-width:92vw;max-height:88vh;display:block}
.gsx-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.1);color:#fff;font-size:30px;cursor:pointer;width:48px;height:64px}
.gsx-lightbox button.gsx-lightbox__x{top:14px;right:14px;height:48px}
.gsx-lightbox__p{left:10px;top:50%;margin-top:-32px}.gsx-lightbox__n{right:10px;top:50%;margin-top:-32px}
@media(max-width:600px){.gsx-media__thumb{width:84px}.gsx-media__nav{opacity:1;width:34px;height:46px}}

.gsx-media-card{margin:0 0 14px;padding:16px;border-radius:14px;background:var(--surface,rgba(127,127,127,.1));border:1px solid var(--border,rgba(127,127,127,.28));box-shadow:0 8px 24px rgba(0,0,0,.65);}.gsx-media-card .gsx-media{margin:0}.gsx-igdb .gsx-wc-card--desc{margin:0 0 14px}

/* Australian (ACB) rating: drawn badge used when igdb.com has no picture for it */
.gsx-age--acb { border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.9) inset; }
.gsx-age--acb b { font-size: 15px; letter-spacing: -.02em; }
.gsx-age--acb-g { background: #1f9d55; }
.gsx-age--acb-pg { background: #f2c200; color: #1a1400; }
.gsx-age--acb-m { background: #2b6cc4; }
.gsx-age--acb-ma15 { background: #d8381e; }
.gsx-age--acb-r18, .gsx-age--acb-rc { background: #111; }

/* Game description (formatted from the Xbox plain text): headings, paragraphs and lists. */
.gsx-desc h4 { margin: 18px 0 4px; font-size: 17px; line-height: 1.3; text-transform: none; letter-spacing: 0; color: #fff; }
.gsx-desc > :first-child { margin-top: 0; }
.gsx-desc h4 + h4 { margin-top: 6px; font-size: 15px; }
.gsx-desc p.gsx-desc__lang { margin: 0 0 4px; }
.gsx-desc .gsx-desc__lang + h4 { margin-top: 18px; }
.gsx-desc em { overflow-wrap: anywhere; }
.gsx-desc p { margin: 0 0 12px; }
.gsx-desc ul { margin: 0 0 12px; padding: 0; list-style: none; }
.gsx-desc li { position: relative; margin: 0 0 6px; padding-left: 26px; }
.gsx-desc li::before { content: ""; position: absolute; left: 0; top: .35em; width: 15px; height: 15px; background: var(--gsx-green, #2ee66b); -webkit-mask: var(--gsx-desc-icon) center / contain no-repeat; mask: var(--gsx-desc-icon) center / contain no-repeat; }
.gsx-desc { --gsx-desc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l2.2 5.3L16 8l-5.8 2.7L8 16l-2.2-5.3L0 8l5.8-2.7z'/%3E%3C/svg%3E"); }
.gsx-desc ul.gsx-desc__emoji li { padding-left: 0; }
.gsx-desc ul.gsx-desc__emoji li::before { display: none; }
.gsx-desc .gsx-desc__legal { font-size: 12.5px; line-height: 1.5; opacity: .65; text-align: left; hyphens: none; }
.gsx-desc .gsx-desc__quote { font-style: italic; }
