/* ==========================================================================
   GameFolio — Modern Light  (indigo / blue accent, editorial)
   ========================================================================== */

:root {
	--gg-bg:        #f7f8fc;
	--gg-surface:   #ffffff;
	--gg-text:      #0f1222;
	--gg-muted:     #5b6178;
	--gg-border:    #e7e9f2;
	--gg-border-2:  #eef0f6;

	--gg-primary:   #4f46e5;   /* indigo */
	--gg-primary-d: #4338ca;
	--gg-primary-l: #818cf8;   /* light accent, for use on the dark chrome */
	--gg-orange:    #6366f1;
	--gg-pink:      #2563eb;
	--gg-green:     #16a34a;   /* success */
	--gg-green-d:   #15803d;

	/* Dark chrome — header, footer and the promo banner. */
	--gg-navy:      #1a1740;
	--gg-navy-d:    #131132;

	--gg-grad:        linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #2563eb 100%);
	--gg-grad-soft:   linear-gradient(135deg, #eef0fe 0%, #eaf1ff 100%);
	--gg-grad-accent: linear-gradient(135deg, #4f46e5, #06b6d4);
	--gg-soft:        #eef0fe;

	--gg-radius:    14px;
	--gg-radius-sm: 10px;
	--gg-shadow:        0 1px 2px rgba(15,18,34,.04), 0 8px 24px rgba(15,18,34,.06);
	--gg-shadow-hover:  0 12px 30px rgba(79,70,229,.12), 0 22px 46px rgba(15,18,34,.08);
	--gg-shadow-accent: 0 8px 20px rgba(79,70,229,.30);

	--gg-container: 1180px;
	--gg-font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--gg-display: 'Sora', var(--gg-font);
}

/* ==========================================================================
   Color schemes — selected in GameROM → Color Scheme (body.gg-scheme-KEY).
   Each block only re-maps the accent variables; everything else inherits.
   ========================================================================== */
body.gg-scheme-indigo {
	--gg-navy:      #1a1740; --gg-navy-d:    #131132;
	--gg-primary:   #4f46e5; --gg-primary-d: #4338ca;
	--gg-primary-l: #818cf8;
	--gg-grad:        linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #2563eb 100%);
	--gg-grad-accent: linear-gradient(135deg, #4f46e5, #06b6d4);
	--gg-grad-soft:   linear-gradient(135deg, #eef0fe 0%, #eaf1ff 100%);
	--gg-soft:        #eef0fe;
	--gg-shadow-accent: 0 8px 20px rgba(79,70,229,.30);
	--gg-shadow-hover:  0 12px 30px rgba(79,70,229,.14), 0 22px 46px rgba(15,18,34,.08);
}
body.gg-scheme-violet {
	--gg-navy:      #1d1533; --gg-navy-d:    #150f26;
	--gg-primary:   #7c3aed; --gg-primary-d: #6d28d9;
	--gg-primary-l: #c084fc;
	--gg-grad:        linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #c026d3 100%);
	--gg-grad-accent: linear-gradient(135deg, #7c3aed, #ec4899);
	--gg-grad-soft:   linear-gradient(135deg, #f5edff 0%, #fbe9f7 100%);
	--gg-soft:        #f5edff;
	--gg-shadow-accent: 0 8px 20px rgba(124,58,237,.32);
	--gg-shadow-hover:  0 12px 30px rgba(124,58,237,.16), 0 22px 46px rgba(15,18,34,.08);
}
body.gg-scheme-neon {
	--gg-navy:      #171a35; --gg-navy-d:    #111328;
	--gg-primary:   #6d28d9; --gg-primary-d: #5b21b6;
	--gg-primary-l: #22d3ee;
	--gg-grad:        linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
	--gg-grad-accent: linear-gradient(135deg, #8b5cf6, #22d3ee);
	--gg-grad-soft:   linear-gradient(135deg, #eef2ff 0%, #e0f7fb 100%);
	--gg-soft:        #eef2ff;
	--gg-shadow-accent: 0 8px 20px rgba(139,92,246,.34);
	--gg-shadow-hover:  0 12px 30px rgba(139,92,246,.16), 0 22px 46px rgba(15,18,34,.08);
}
body.gg-scheme-sunset {
	--gg-navy:      #241419; --gg-navy-d:    #190e12;
	--gg-primary:   #e11d48; --gg-primary-d: #be123c;
	--gg-primary-l: #fb923c;
	--gg-grad:        linear-gradient(135deg, #fb923c 0%, #f43f5e 50%, #e11d48 100%);
	--gg-grad-accent: linear-gradient(135deg, #f97316, #e11d48);
	--gg-grad-soft:   linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
	--gg-soft:        #fff1f2;
	--gg-shadow-accent: 0 8px 20px rgba(225,29,72,.30);
	--gg-shadow-hover:  0 12px 30px rgba(225,29,72,.14), 0 22px 46px rgba(15,18,34,.08);
}
body.gg-scheme-crimson {
	--gg-navy:      #1c1517; --gg-navy-d:    #141011;
	--gg-primary:   #dc2626; --gg-primary-d: #b91c1c;
	--gg-primary-l: #f87171;
	--gg-grad:        linear-gradient(135deg, #ef4444 0%, #dc2626 45%, #991b1b 100%);
	--gg-grad-accent: linear-gradient(135deg, #dc2626, #f97316);
	--gg-grad-soft:   linear-gradient(135deg, #fef2f2 0%, #fff5f4 100%);
	--gg-soft:        #fef2f2;
	--gg-shadow-accent: 0 8px 20px rgba(220,38,38,.30);
	--gg-shadow-hover:  0 12px 30px rgba(220,38,38,.14), 0 22px 46px rgba(15,18,34,.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--gg-font);
	color: var(--gg-text);
	background: var(--gg-bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html { overflow-x: hidden; max-width: 100%; }

/* Mobile-safety: nothing should force horizontal scroll. */
img, video, iframe, table, pre { max-width: 100%; }
.entry-content { overflow-wrap: anywhere; }
.entry-content pre { overflow-x: auto; }
.gg-details__table, .gg-downloads__table { table-layout: fixed; }
.gg-details__table th, .gg-details__table td,
.gg-downloads__table th, .gg-downloads__table td { overflow-wrap: anywhere; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gg-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gg-primary-d); }
::selection { background: var(--gg-soft); background: color-mix(in srgb, var(--gg-primary) 18%, transparent); }
h1, h2, h3, h4 { font-family: var(--gg-display); letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--gg-container); margin: 0 auto; padding: 0 22px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--gg-surface);
	border-bottom: 1px solid var(--gg-border);
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15,18,34,.07); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.site-title {
	font-family: var(--gg-display); font-size: 20px; font-weight: 800; letter-spacing: -.03em;
	color: var(--gg-text); white-space: nowrap;
}
.site-title:hover { color: var(--gg-text); }
/* Second word of the site name picks up the accent, e.g. "Game<em>Folio</em>". */
.site-title em { font-style: normal; color: var(--gg-primary); }
.custom-logo, .gg-logo { max-height: 42px; width: auto; display: block; }
.site-branding { display: flex; align-items: center; }

.main-nav { margin-left: auto; }
.main-nav__menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav__menu a {
	display: block; padding: 7px 14px; border-radius: 8px;
	color: var(--gg-muted); font-weight: 600; font-size: 13.5px; position: relative;
	white-space: nowrap;   /* keep each menu item on one line on desktop */
}
.main-nav__menu a:hover, .main-nav__menu .current-menu-item > a { color: var(--gg-primary); background: var(--gg-soft); }

/* dropdown sub-menus */
.main-nav__menu li { position: relative; }
.main-nav__menu .menu-item-has-children > a::after { content: "\25BE"; margin-left: 6px; font-size: 11px; opacity: .6; }
.main-nav__menu .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 4px); left: 0; min-width: 210px;
	background: #fff; border: 1px solid var(--gg-border); border-radius: 14px;
	box-shadow: var(--gg-shadow-hover); z-index: 200;
	display: flex; flex-direction: column; gap: 2px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.main-nav__menu li:hover > .sub-menu,
.main-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* the dropdown panel is light, so its links need the light-surface colours back */
.main-nav__menu .sub-menu a { font-size: 14px; padding: 8px 12px; color: var(--gg-text); }
.main-nav__menu .sub-menu a:hover { color: var(--gg-primary); background: var(--gg-soft); }
.main-nav__menu .sub-menu .menu-item-has-children > a::after { content: "\203A"; } /* nested */

.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.site-header__actions .search-form { width: 250px; }
.site-header__actions .search-form__field {
	background: var(--gg-bg); border-color: var(--gg-border); color: var(--gg-text); border-radius: 8px;
}
.site-header__actions .search-form__field::placeholder { color: #8a8f9e; }
.site-header__actions .search-form__field:focus {
	border-color: var(--gg-primary);
	box-shadow: 0 0 0 3px var(--gg-soft);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gg-primary) 20%, transparent);
}
.site-header__actions .search-form__submit { border-radius: 7px; width: 36px; height: 30px; right: 4px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 9px; border-radius: 9px; }
.nav-toggle:hover { background: var(--gg-soft); }
.nav-toggle span { display: block; height: 2.5px; background: var(--gg-text); margin: 4px 0; border-radius: 3px; transition: transform .22s ease, opacity .16s ease; }
/* Open state rides on the aria-expanded the toggle script already maintains. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* Search inside the mobile nav panel; the desktop header bar has its own. */
.main-nav__search { display: none; }

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; }
.search-form__field {
	width: 100%; padding: 11px 44px 11px 16px;
	border: 1.5px solid var(--gg-border); border-radius: 999px;
	background: #fff; font: inherit; font-size: 14px; color: var(--gg-text);
	transition: border-color .15s, box-shadow .15s;
}
.search-form__field::placeholder { color: #a79ea8; }
.search-form__field:focus { outline: none; border-color: var(--gg-primary); box-shadow: 0 0 0 4px var(--gg-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gg-primary) 16%, transparent); }
.search-form__submit {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
	background: var(--gg-grad); color: #fff; border: 0; border-radius: 999px;
	width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; transition: transform .15s, filter .15s;
}
.search-form__submit:hover { filter: brightness(1.05); transform: translateY(-50%) scale(1.06); }

/* ---------- Layout ---------- */
.site-content { padding: 30px 0 54px; }
.layout--with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.layout__main { min-width: 0; }   /* allow the column to shrink so content never overflows */
.layout__main--wide { max-width: 840px; margin: 0 auto; min-width: 0; }

/* ---------- Hero (Modern Light, left-aligned editorial) ---------- */
.hero { position: relative; margin: 8px 0 6px; padding: 52px 0 20px; text-align: left; }
.hero__inner { position: relative; max-width: 720px; margin: 0; }
.hero__title {
	font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; margin: 0 0 14px;
	line-height: 1.08; letter-spacing: -.03em; color: var(--gg-text);
}
.hero__title span, .hero__title em {
	font-style: normal;
	background: var(--gg-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { font-size: clamp(16px, 2.2vw, 20px); color: var(--gg-muted); margin: 0 0 26px; font-weight: 400; max-width: 560px; }
.hero__search .search-form { max-width: 560px; margin: 0; }
.hero__search .search-form__field { padding: 16px 56px 16px 20px; font-size: 16px; border: 1px solid var(--gg-border); background: var(--gg-surface); box-shadow: var(--gg-shadow); }
.hero__search .search-form__submit { width: 42px; height: 42px; }
/* Popular category chips under the hero search */
.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero__chips-label { color: var(--gg-muted); font-size: 14px; font-weight: 700; }
.hero__chip { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--gg-muted); transition: .15s; }
.hero__chip:hover { border-color: var(--gg-primary); color: var(--gg-primary); background: var(--gg-soft); }

/* ==========================================================================
   Homepage — poster grid + ranked list
   Section headings sit on the light page (accent tick + underline) rather than
   in solid bars; "Most Popular" is a ranked list, not a second poster grid.
   ========================================================================== */

/* ---- Centred intro ---- */
.sr-intro { max-width: 740px; margin: 30px auto 46px; text-align: center; }
.sr-intro__title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.2; margin: 0 0 14px; }
.sr-intro__title em { font-style: normal; background: var(--gg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-intro__text { color: var(--gg-muted); font-size: 15px; line-height: 1.8; }
.sr-intro__text p { margin: 0 0 .8em; }
.sr-intro__text p:last-child { margin-bottom: 0; }
.sr-intro__search { max-width: 520px; margin: 24px auto 0; }
.sr-intro__search .search-form__field { padding: 14px 52px 14px 20px; font-size: 15px; box-shadow: var(--gg-shadow); }
.sr-intro__search .search-form__submit { width: 38px; height: 38px; }
.sr-intro__chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.sr-intro__chips b { font-size: 12.5px; font-weight: 700; color: var(--gg-muted); }
.sr-chip { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--gg-muted); transition: .15s; }
.sr-chip:hover { border-color: var(--gg-primary); color: var(--gg-primary); background: var(--gg-soft); }

/* ---- Section heading ---- */
.sr-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 20px; padding-bottom: 13px; border-bottom: 2px solid var(--gg-border);
}
.sr-head__title { font-family: var(--gg-display); font-size: 20px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 11px; }
.sr-head__title::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--gg-grad); flex: none; }
.sr-head__more {
	font-size: 13px; font-weight: 700; color: var(--gg-primary); background: var(--gg-soft);
	padding: 7px 16px; border-radius: 999px; white-space: nowrap; transition: .15s;
}
.sr-head__more:hover { background: var(--gg-primary); color: #fff; }

.sr-block { margin-bottom: 38px; }

/* ---- Poster grid ---- */
.sr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }

/* The cover floats inside the card with a small inset, which keeps the
   rounded corners doubled and reads differently from a flush-bleed cover. */
.sr-card {
	background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: 14px;
	padding: 8px; display: flex; flex-direction: column; min-width: 0;
	transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
.sr-card:hover { transform: translateY(-5px); box-shadow: var(--gg-shadow-hover); border-color: var(--gg-primary-l); border-color: color-mix(in srgb, var(--gg-primary) 34%, var(--gg-border)); }
.sr-card__media { position: relative; display: block; aspect-ratio: 3 / 4; background: #eef0f6; overflow: hidden; border-radius: 9px; }
.sr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sr-card:hover .sr-card__media img { transform: scale(1.06); }
.sr-card__ph {
	position: absolute; inset: 0; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 10px;
	padding: 16px; text-align: center;
	background: var(--gg-grad-soft); color: var(--gg-primary);
	box-shadow: inset 0 0 0 1px rgba(15,18,34,.05);
}
.sr-card__mono { font-family: var(--gg-display); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: -.02em; opacity: .5; }
.sr-card__ph-title { font-family: var(--gg-display); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.sr-card__tag {
	position: absolute; top: 7px; left: 7px; z-index: 2;
	background: rgba(12,10,32,.72); color: #fff; backdrop-filter: blur(5px);
	font-size: 10px; font-weight: 700; letter-spacing: .04em;
	padding: 4px 10px; border-radius: 999px;
	max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-card__body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sr-card__title { font-family: var(--gg-display); font-size: 14.5px; font-weight: 700; line-height: 1.32; margin: 0; }
.sr-card__title a { color: var(--gg-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sr-card__title a:hover { color: var(--gg-primary); }
.sr-card__meta { font-size: 12px; font-weight: 600; color: var(--gg-muted); overflow-wrap: anywhere; }
/* One stat row that is always present, so every card ends at the same height
   whether or not the game has been rated yet. */
.sr-card__stats { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid var(--gg-border-2); }
.sr-card__stats .gg-dlstat { font-size: 12px; }
.sr-card__stats .gg-dlstat__icon { width: 13px; height: 13px; }
.sr-card__rate { display: inline-flex; align-items: center; gap: 4px; }
.sr-card__rate b { font-size: 12px; font-weight: 700; color: #b9820a; }
.sr-card__rate .gg-stars { font-size: 12px; }
.sr-card__new { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gg-soft); color: var(--gg-primary); }
.sr-card__btn {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 2px; height: 34px; border-radius: 9px;
	background: var(--gg-grad); color: #fff; box-shadow: var(--gg-shadow-accent);
	font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
	transition: transform .18s, filter .18s, box-shadow .18s;
}
.sr-card__btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }
.sr-card__btn svg { width: 14px; height: 14px; }

/* ---- Most Popular: two ranked columns ---- */
.sr-ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

/* ---- Promo banner ---- */
.sr-promo {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px;
	margin-bottom: 38px; padding: 20px 26px 20px 30px;
	background: var(--gg-navy); border-radius: 14px; color: #fff;
}
.sr-promo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--gg-grad); }
.sr-promo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 88% 0%, rgba(129,140,248,.22), transparent 65%); pointer-events: none; }
.sr-promo > * { position: relative; z-index: 1; }
.sr-promo__ic { width: 46px; height: 46px; border-radius: 13px; background: var(--gg-grad); display: grid; place-items: center; flex: none; }
.sr-promo__body { flex: 1; min-width: 0; }
.sr-promo__t { font-family: var(--gg-display); font-size: 16.5px; font-weight: 800; margin: 0 0 3px; color: #fff; }
.sr-promo__p { font-size: 13px; margin: 0; color: rgba(255,255,255,.7); }
.sr-promo__btn {
	flex: none; background: var(--gg-grad); color: #fff; font-weight: 700; font-size: 13.5px;
	padding: 11px 24px; border-radius: 999px; box-shadow: var(--gg-shadow-accent); transition: transform .15s;
}
.sr-promo__btn:hover { transform: translateY(-2px); color: #fff; }

/* ---- Info panels (emulators, FAQs …) ---- */
.sr-phead { background: var(--gg-grad); border-radius: 12px 12px 0 0; padding: 14px 24px; }
.sr-phead__title { font-family: var(--gg-display); font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.sr-panel {
	background: var(--gg-surface); border: 1px solid var(--gg-border); border-top: 0;
	border-radius: 0 0 12px 12px; box-shadow: var(--gg-shadow); overflow: hidden;
}
.sr-panel__grid { display: grid; grid-template-columns: 1fr 1fr; }
.sr-item { padding: 20px 24px; border-bottom: 1px solid var(--gg-border-2); min-width: 0; }
.sr-item:nth-child(odd) { border-right: 1px solid var(--gg-border-2); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.sr-item__t { font-family: var(--gg-display); font-size: 14.5px; font-weight: 700; margin: 0 0 8px; color: var(--gg-primary); overflow-wrap: anywhere; }
.sr-item__d { font-size: 13px; line-height: 1.75; color: var(--gg-muted); margin: 0; overflow-wrap: anywhere; }
.sr-item__d p { margin: 0 0 .7em; }
.sr-item__d p:last-child { margin-bottom: 0; }
/* Q&A variant — the question reads as text, with a small accent marker */
.sr-panel--qa .sr-item__t { color: var(--gg-text); font-size: 13.5px; display: flex; gap: 8px; }
.sr-panel--qa .sr-item__t::before { content: "?"; flex: none; width: 19px; height: 19px; border-radius: 6px; background: var(--gg-soft); color: var(--gg-primary); font-size: 12px; display: grid; place-items: center; margin-top: 1px; }

@media (max-width: 1100px) {
	.sr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sr-ranks { grid-template-columns: 1fr; }
	.sr-panel__grid { grid-template-columns: 1fr; }
	.sr-item:nth-child(odd) { border-right: 0; }
	.sr-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--gg-border-2); }
	.sr-promo { flex-wrap: wrap; }
	.sr-promo__body { flex: 1 1 100%; order: 2; }
	.sr-promo__btn { order: 3; }
}
@media (max-width: 560px) {
	.sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sr-card__mono { font-size: 32px; }
	.sr-card__title { font-size: 13.5px; }
	/* Roomier tap target once the card is thumb-sized. */
	.sr-card__btn { height: 42px; }
	.sr-head__title { font-size: 17px; }
	.sr-intro { margin: 18px auto 32px; }
}


/* ---------- Card grid ---------- */
.gg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gg-grid--4 { grid-template-columns: repeat(4, 1fr); }

.gg-card {
	background: var(--gg-surface); border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius); overflow: hidden;
	box-shadow: var(--gg-shadow); transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
	display: flex; flex-direction: column;
}
.gg-card { min-width: 0; }
.gg-card__title, .gg-card__meta span, .gg-card__cat { overflow-wrap: anywhere; }
.gg-card:hover { transform: translateY(-6px); box-shadow: var(--gg-shadow-hover); border-color: var(--gg-primary-l); border-color: color-mix(in srgb, var(--gg-primary) 34%, var(--gg-border)); }
.gg-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eef0f6; overflow: hidden; }
.gg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gg-card:hover .gg-card__media img { transform: scale(1.07); }
.gg-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(26,19,32,.34) 0%, rgba(26,19,32,0) 42%);
	opacity: 0; transition: opacity .22s;
}
.gg-card:hover .gg-card__media::after { opacity: 1; }
.gg-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center;
	background: var(--gg-grad-soft); color: var(--gg-primary); font-family: var(--gg-display); font-weight: 700; font-size: 16px;
}
.gg-card__badge {
	position: absolute; top: 11px; right: 11px; z-index: 2;
	background: rgba(255,255,255,.92); color: #1a1320; backdrop-filter: blur(6px);
	font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.gg-card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.gg-card__cat {
	align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	color: var(--gg-primary); background: var(--gg-soft); padding: 4px 9px; border-radius: 7px;
}
.gg-card__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 0; font-family: var(--gg-display); }
.gg-card__title a { color: var(--gg-text); }
.gg-card__title a:hover { color: var(--gg-primary); }
.gg-card__meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.gg-card__meta span { font-size: 12px; font-weight: 600; color: var(--gg-muted); background: #eef0f6; padding: 4px 9px; border-radius: 7px; }

/* ---------- Star rating ---------- */
.gg-stars { --gg-rating: 0; position: relative; display: inline-block; font-size: 14px; line-height: 1; white-space: nowrap; vertical-align: middle; }
.gg-stars::before { content: "★★★★★"; color: #d7dae8; }
.gg-stars__fill { position: absolute; top: 0; left: 0; overflow: hidden; width: calc(var(--gg-rating) / 5 * 100%); }
.gg-stars__fill::before { content: "★★★★★"; color: #ffab00; }

/* ---------- Card stats (downloads + rating) ---------- */
.gg-card__stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--gg-border-2); }
.gg-card__rating { display: inline-flex; align-items: center; gap: 6px; }
.gg-card__rating b { font-size: 13px; font-weight: 700; color: #b9820a; }
.gg-dlstat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--gg-muted); }
.gg-dlstat__icon { color: var(--gg-primary); }
.gg-dlstat__label { font-weight: 600; }
.js-gg-dlcount { transition: transform .2s ease, color .2s ease; display: inline-block; }
.js-gg-dlcount.gg-bump { transform: scale(1.25); color: var(--gg-green); }

/* ---------- Category cloud ---------- */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 13px; }
.cat-cloud__item {
	display: flex; align-items: center; gap: 9px; padding: 11px 18px;
	background: var(--gg-surface); border: 1.5px solid var(--gg-border); border-radius: 999px;
	box-shadow: var(--gg-shadow); font-weight: 700; color: var(--gg-text); transition: .18s;
}
.cat-cloud__item:hover { border-color: transparent; background: var(--gg-grad); color: #fff; transform: translateY(-3px); box-shadow: var(--gg-shadow-accent); }
.cat-cloud__count { font-size: 12px; color: var(--gg-primary); background: var(--gg-soft); border-radius: 999px; padding: 2px 9px; transition: .18s; }
.cat-cloud__item:hover .cat-cloud__count { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- Page header / archive ---------- */
.page-header { margin-bottom: 26px; }
.page-title { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.page-title span { background: var(--gg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.archive-description { color: var(--gg-muted); font-size: 16px; }

/* ==========================================================================
   Archive — header card, toolbar, filter chips and sort menu
   ========================================================================== */
.sr-arch {
	position: relative; overflow: hidden;
	background: var(--gg-surface); border: 1px solid var(--gg-border);
	border-radius: 16px; box-shadow: var(--gg-shadow);
	padding: 26px 30px 24px 34px; margin: 26px 0 26px;
}
/* same left accent stripe as the homepage promo banner, for family resemblance */
.sr-arch::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--gg-grad); }
.sr-arch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 180px at 92% -10%, var(--gg-soft), transparent 70%); pointer-events: none; }
.sr-arch > * { position: relative; z-index: 1; }

.sr-arch__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gg-muted); margin-bottom: 14px; }
.sr-arch__crumb a { color: var(--gg-muted); font-weight: 600; }
.sr-arch__crumb a:hover { color: var(--gg-primary); }
.sr-arch__crumb span { opacity: .45; }

.sr-arch__row { display: flex; align-items: center; gap: 16px; }
.sr-arch__ic {
	width: 52px; height: 52px; border-radius: 14px; flex: none;
	background: var(--gg-grad); color: #fff; display: grid; place-items: center;
	font-family: var(--gg-display); font-weight: 800; font-size: 23px;
	box-shadow: var(--gg-shadow-accent);
}
.sr-arch__title { font-size: clamp(23px, 3.2vw, 31px); font-weight: 800; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.sr-arch__desc { color: var(--gg-muted); font-size: 14.5px; line-height: 1.75; max-width: 680px; margin: 14px 0 0; }
.sr-arch__desc p { margin: 0; }


/* ---- Toolbar: a rule, not a floating card ---- */
.sr-tools {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
	margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px solid var(--gg-border);
}
.sr-tools__count { font-size: 13.5px; font-weight: 600; color: var(--gg-muted); }
.sr-tools__count b { color: var(--gg-text); font-weight: 800; }
.sr-tools__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-tools__right { margin-left: auto; }

/* ---- Filter chips ---- */
.gg-fchip { font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--gg-border); color: var(--gg-muted); background: #fff; transition: .15s; }
.gg-fchip:hover { border-color: var(--gg-primary); color: var(--gg-primary); }
.gg-fchip.is-active { background: var(--gg-grad); color: #fff; border-color: transparent; }

/* ---- Sort menu ---- */
.gg-sort { position: relative; }
.gg-sort > summary { list-style: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--gg-border); border-radius: 10px; padding: 9px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; white-space: nowrap; }
.gg-sort > summary::-webkit-details-marker { display: none; }
.gg-sort > summary svg { color: var(--gg-muted); }
.gg-sort[open] > summary { border-color: var(--gg-primary); }
.gg-sort__menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--gg-border); border-radius: 12px; box-shadow: var(--gg-shadow-hover); padding: 6px; min-width: 200px; z-index: 20; display: flex; flex-direction: column; gap: 2px; }
.gg-sort__menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--gg-text); }
.gg-sort__menu a:hover { background: var(--gg-soft); color: var(--gg-primary); }
.gg-sort__menu a.is-active { background: var(--gg-grad); color: #fff; }

@media (max-width: 700px) {
	.sr-arch { padding: 22px 20px 20px 24px; }
	.sr-tools__right { margin-left: 0; width: 100%; }
	.sr-tools__right .gg-sort, .sr-tools__right .gg-sort > summary { width: 100%; justify-content: space-between; }
	.sr-tools__right .gg-sort__menu { left: 0; right: auto; width: 100%; }
}

/* ---------- Single ---------- */
.single-game, .single-page {
	background: var(--gg-surface); border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius); padding: 34px; box-shadow: var(--gg-shadow);
}
.single-game__cat {
	display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	color: #fff; background: var(--gg-grad); padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; box-shadow: var(--gg-shadow-accent);
}
.single-game__title { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.gg-entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--gg-muted); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.gg-entry-meta span { display: inline-flex; align-items: center; }
.single-game__cover { margin: 24px 0; border-radius: var(--gg-radius-sm); overflow: hidden; box-shadow: 0 14px 36px rgba(26,19,32,.14); }
.single-game__cover img, .single-page__cover img { width: 100%; }

/* developer / publisher chips */
.single-game__taxo { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.single-game__taxo-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.single-game__taxo-label { color: var(--gg-muted); font-weight: 700; }
.single-game__taxo-item a {
	font-weight: 600; color: var(--gg-primary); background: var(--gg-soft);
	padding: 4px 11px; border-radius: 999px; transition: .15s;
}
.single-game__taxo-item a:hover { background: var(--gg-grad); color: #fff; }

/* details */
.gg-details { margin: 26px 0; }
.gg-details__title, .gg-downloads__title, .related__title { font-size: 21px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 11px; }
.gg-details__title::before, .gg-downloads__title::before, .related__title::before { content: ""; width: 6px; height: 22px; border-radius: 6px; background: var(--gg-grad); }
.gg-details__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--gg-border); border-radius: var(--gg-radius-sm); overflow: hidden; }
.gg-details__table th, .gg-details__table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--gg-border-2); font-size: 15px; }
.gg-details__table tr:last-child th, .gg-details__table tr:last-child td { border-bottom: 0; }
.gg-details__table th { width: 38%; background: #f4f5fb; color: var(--gg-muted); font-weight: 700; }
.gg-details__table td { font-weight: 600; }
.gg-details__table tr:hover td, .gg-details__table tr:hover th { background: #f4f5fb; }

/* content */
.entry-content { font-size: 17px; color: #2a2330; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { font-size: 25px; font-weight: 800; margin: 1.7em 0 .6em; }
.entry-content h3 { font-size: 20px; font-weight: 700; margin: 1.4em 0 .5em; }
.entry-content img { border-radius: var(--gg-radius-sm); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.6em; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gg-grad); }
.entry-content blockquote { border-left: 4px solid var(--gg-primary); margin: 1.3em 0; padding: .6em 1.3em; background: var(--gg-grad-soft); border-radius: 0 12px 12px 0; color: #4a3f50; }
.entry-content a { color: var(--gg-primary); text-decoration: underline; text-underline-offset: 2px; }

/* downloads */
.gg-downloads { margin: 30px 0 8px; padding: 26px; background: var(--gg-grad-soft); border: 1px solid #e7e9f2; border-radius: var(--gg-radius); }
.gg-downloads__buttons { display: flex; flex-wrap: wrap; gap: 13px; }
.gg-downloads__note { font-size: 13px; color: var(--gg-muted); margin: 16px 0 0; }

/* download-box info fields */
.gg-downloads__table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 18px; background: #fff; border: 1px solid #e7e9f2; border-radius: var(--gg-radius-sm); overflow: hidden; }
.gg-downloads__table th, .gg-downloads__table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--gg-border-2); font-size: 15px; }
.gg-downloads__table tr:last-child th, .gg-downloads__table tr:last-child td { border-bottom: 0; }
.gg-downloads__table th { width: 32%; color: var(--gg-muted); font-weight: 700; background: #f7f8fc; }
.gg-downloads__table td { font-weight: 600; }

/* linked detail values */
.gg-details__table td a { color: var(--gg-primary); font-weight: 700; text-decoration: none; }
.gg-details__table td a:hover { text-decoration: underline; }

/* compact [game_rating] box */
.gg-ratingbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 18px 22px; margin: 22px 0; background: var(--gg-grad-soft); border: 1px solid #e7e9f2; border-radius: var(--gg-radius); }
.gg-ratingbox__item { display: inline-flex; align-items: center; gap: 9px; }
.gg-ratingbox__val { font-family: var(--gg-display); font-size: 20px; font-weight: 800; color: #b9820a; line-height: 1; }
.gg-ratingbox__val small { font-size: 13px; color: var(--gg-muted); font-weight: 600; }
.gg-ratingbox__dl .js-gg-dlcount { font-family: var(--gg-display); font-size: 20px; font-weight: 800; color: var(--gg-text); }
.gg-ratingbox__btn { margin-left: auto; }
@media (max-width: 520px) { .gg-ratingbox__btn { margin-left: 0; width: 100%; justify-content: center; } }

/* download-section stats */
.gg-downloads__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 20px; }
.gg-rate { display: inline-flex; align-items: center; gap: 9px; }
.gg-rate__val { font-family: var(--gg-display); font-size: 22px; font-weight: 800; color: #b9820a; line-height: 1; }
.gg-rate__count { font-size: 14px; color: var(--gg-muted); font-weight: 600; }
.gg-dlbig { display: inline-flex; align-items: baseline; }
.gg-dlbig .gg-dlstat { font-size: 16px; }
.gg-dlbig .js-gg-dlcount { font-family: var(--gg-display); font-size: 22px; font-weight: 800; color: var(--gg-text); }
.gg-dlbig .gg-dlstat__icon { width: 18px; height: 18px; }
.gg-dlbig .gg-dlstat__label { font-size: 14px; color: var(--gg-muted); font-weight: 600; }

.gg-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 13px;
	background: var(--gg-grad); color: #fff !important; font-weight: 700; font-size: 15px; font-family: var(--gg-display);
	text-decoration: none !important; transition: transform .15s, box-shadow .15s, filter .15s; border: 0; cursor: pointer;
	box-shadow: var(--gg-shadow-accent);
}
.gg-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: var(--gg-shadow-accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--gg-primary) 42%, transparent); }
.gg-btn--download { background: var(--gg-grad); box-shadow: var(--gg-shadow-accent); }
.gg-btn--download:hover { box-shadow: var(--gg-shadow-accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--gg-primary) 42%, transparent); }

/* download countdown timer states */
.gg-btn--download.is-counting {
	background: #8b90a3 !important; box-shadow: none; cursor: progress;
	pointer-events: none; transform: none; font-variant-numeric: tabular-nums;
}
.gg-btn--download.is-ready {
	background: linear-gradient(135deg, var(--gg-green), var(--gg-green-d)) !important;
	box-shadow: 0 8px 20px rgba(22,163,74,.30);
}
.gg-btn--download.is-ready:hover { box-shadow: 0 12px 28px rgba(22,163,74,.42); }

/* tags */
.single-game__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.single-game__tags span { color: var(--gg-muted); font-weight: 700; margin-right: 4px; }
.single-game__tags a { font-size: 13px; background: #eef0f6; padding: 5px 12px; border-radius: 999px; color: #4a3f50; font-weight: 600; transition: .15s; }
.single-game__tags a:hover { background: var(--gg-grad); color: #fff; }

/* related */
.related { margin-top: 40px; }

/* ==========================================================================
   Single game — cover hero + quick specs + sticky "Get the Game" sidebar
   ========================================================================== */

/* ---- Hero ---- */
/* Full-bleed hero: break out of the header container to span the viewport,
   while the inner .container keeps hero content aligned with the page body. */
.ghero { position: relative; overflow: hidden; border-bottom: 1px solid var(--gg-border); width: 100vw; margin: -30px 0 32px calc(50% - 50vw); }
.ghero__bg { position: absolute; inset: 0; background: var(--gg-surface); }
/* Faint accent wash in the top corner so the white band still has some depth. */
.ghero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 340px at 88% -18%, var(--gg-soft), transparent 68%); }
.ghero__inner { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 34px; align-items: center; padding: 46px 0 42px; }
.ghero__cover {
	aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
	box-shadow: var(--gg-shadow); border: 1px solid var(--gg-border);
	background: var(--gg-grad-soft); display: grid; place-items: center;
}
.ghero__cover img { width: 100%; height: 100%; object-fit: cover; }
.ghero__cover span { font-family: var(--gg-display); font-weight: 800; font-size: 54px; color: var(--gg-primary); }
.ghero__body { color: var(--gg-text); min-width: 0; }
.ghero__crumb { font-size: 13px; color: var(--gg-muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ghero__crumb a { color: var(--gg-muted); font-weight: 600; }
.ghero__crumb a:hover { color: var(--gg-primary); }
.ghero__crumb span { opacity: .45; }
.ghero__title { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--gg-text); margin: 0 0 16px; overflow-wrap: anywhere; }
.ghero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gbadge {
	background: var(--gg-soft); border: 1px solid var(--gg-border); color: var(--gg-primary);
	font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px;
}
.gbadge--accent { background: var(--gg-grad); border-color: transparent; color: #fff; }
.ghero__stats { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; font-size: 14.5px; color: var(--gg-muted); }
.ghero__stat { display: inline-flex; align-items: center; gap: 7px; }
.ghero__stat b { color: var(--gg-text); font-weight: 700; }
.ghero__stat-sub { opacity: .7; }
.ghero__stats .gg-stars { font-size: 16px; }
.ghero__stats .gg-dlstat { color: var(--gg-muted); }
.ghero__stats .gg-dlstat__icon { color: var(--gg-primary); }
.ghero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Only used beside the download button in the single-post hero. */
.gg-btn--ghost { background: var(--gg-surface); color: var(--gg-primary) !important; border: 1px solid var(--gg-border); box-shadow: none; }
.gg-btn--ghost:hover { background: var(--gg-soft); border-color: var(--gg-primary); box-shadow: none; }

/* ---- Quick specs strip ---- */
.gspecs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.gspec { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius-sm); padding: 14px 16px; box-shadow: var(--gg-shadow); min-width: 0; }
.gspec b { display: block; font-family: var(--gg-font); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gg-muted); margin-bottom: 3px; }
.gspec span { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.gspec span a { color: var(--gg-primary); font-weight: 700; }

/* Quick specs live in the hero: a third column beside the title on desktop,
   stacked so the card column lines up with the 3/4 cover art. Below 980px it
   drops to a full-width row under the hero body and the plain .gspecs grid
   rules (further down) take back over. */
.ghero__inner--specs { grid-template-columns: 210px minmax(0, 1fr) minmax(250px, 300px); }
.ghero__specs { align-self: center; grid-template-columns: 1fr; gap: 9px; margin-bottom: 0; }
/* Slightly tighter than the standalone row so four stacked cards stay in
   proportion with the 3/4 cover art next to them. */
.ghero__specs .gspec { padding: 11px 14px; }
.ghero__specs .gspec span { font-size: 14px; }
@media (max-width: 980px) {
	.ghero__inner--specs { grid-template-columns: 210px minmax(0, 1fr); }
	.ghero__specs { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
}

/* ---- Two-column layout ---- */
.glayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; padding-bottom: 50px; }
.gmain { min-width: 0; }
.gpanel { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 26px 28px; box-shadow: var(--gg-shadow); margin-bottom: 24px; }
.gpanel .gg-details { margin: 0; }
.gpanel .entry-content { font-size: 16.5px; }

/* ---- Sidebar ---- */
.gside { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 24px; }
.gside__card { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 22px 24px; box-shadow: var(--gg-shadow); }
.gside__title { font-size: 16px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.gside__title::before { content: ""; width: 5px; height: 18px; border-radius: 5px; background: var(--gg-grad); }
.gratebox { display: flex; gap: 14px; background: var(--gg-grad-soft); border: 1px solid #dfe3fb; border-radius: var(--gg-radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.gratebox__col { flex: 1; min-width: 0; }
.gratebox__col + .gratebox__col { border-left: 1px solid #dfe3fb; padding-left: 14px; }
.gratebox__num { font-family: var(--gg-display); font-size: 30px; font-weight: 800; line-height: 1; color: var(--gg-primary); margin-bottom: 6px; }
.gratebox__num small { font-size: 14px; color: var(--gg-muted); font-weight: 600; }
.gratebox__sub { font-size: 12.5px; color: var(--gg-muted); }
.gfacts { list-style: none; margin: 0 0 18px; padding: 0; }
.gfacts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gg-border-2); font-size: 14px; }
.gfacts li:last-child { border-bottom: 0; }
.gfacts b { color: var(--gg-muted); font-weight: 600; white-space: nowrap; }
.gfacts span { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.gfacts span a { color: var(--gg-primary); font-weight: 700; }
.gg-btn--full { width: 100%; justify-content: center; }

/* ---- Screenshots "Preview" carousel ---- */
.gg-preview { margin: 0; }
.gg-preview__title { font-size: 21px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.gg-preview__title svg { color: var(--gg-primary); }
.gg-preview__viewport { position: relative; }
.gg-preview__track {
	list-style: none; margin: 0; padding: 4px; display: flex; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
}
.gg-preview__track::-webkit-scrollbar { display: none; }
.gg-preview__slide { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; min-width: 0; }
.gg-preview__link { display: block; border-radius: var(--gg-radius-sm); overflow: hidden; box-shadow: var(--gg-shadow); border: 1px solid var(--gg-border); aspect-ratio: 16 / 9; background: #eef0f6; }
.gg-preview__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gg-preview__link:hover img { transform: scale(1.04); }
.gg-preview__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(15,18,34,.55); color: #fff; display: grid; place-items: center;
	backdrop-filter: blur(3px); transition: background .15s, transform .15s, opacity .15s;
}
.gg-preview__nav:hover { background: var(--gg-primary); }
.gg-preview__nav:active { transform: translateY(-50%) scale(.92); }
.gg-preview__nav--prev { left: 8px; }
.gg-preview__nav--next { right: 8px; }
.gg-preview__nav[disabled] { opacity: 0; pointer-events: none; }
.gg-preview__dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.gg-preview__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #cdd2e6; transition: background .15s, width .15s; }
.gg-preview__dot.is-active { background: var(--gg-primary); width: 20px; border-radius: 999px; }
@media (max-width: 600px) {
	.gg-preview__slide { flex-basis: 100%; }
}

/* ---- Share buttons ---- */
.gshare { display: flex; gap: 10px; flex-wrap: wrap; }
.gshare__btn {
	width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
	background: var(--gg-soft); color: var(--gg-primary); border: 1px solid var(--gg-border); transition: .15s; position: relative;
}
.gshare__btn:hover { background: var(--gg-primary); color: #fff; border-color: transparent; transform: translateY(-2px); }
.gshare__btn.is-copied::after {
	content: "Copied!"; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: var(--gg-text); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}

@media (max-width: 980px) {
	.glayout { grid-template-columns: minmax(0, 1fr); }
	.gside { position: static; flex-direction: row; flex-wrap: wrap; }
	.gside__card { flex: 1 1 260px; }
}
@media (max-width: 720px) {
	.ghero__inner { grid-template-columns: 130px 1fr; gap: 20px; padding: 34px 0 30px; }
	.gspecs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ghero__inner { grid-template-columns: 1fr; }
	.ghero__cover { max-width: 160px; }
	.gspecs { grid-template-columns: 1fr 1fr; }
	.gpanel { padding: 20px; }
	.gside { flex-direction: column; }
}

/* ---------- Top Downloads ---------- */
.gg-top { width: 100%; }
.gg-top__banner { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 36px 24px 30px; border-radius: var(--gg-radius); background: var(--gg-grad); box-shadow: var(--gg-shadow-accent); box-shadow: 0 18px 44px color-mix(in srgb, var(--gg-primary) 28%, transparent); margin-bottom: 30px; }
.gg-top__banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 80% 0%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.gg-top__trophy { position: relative; display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.18); margin-bottom: 12px; }
.gg-top__title { position: relative; font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; margin: 0 0 8px; }
.gg-top__sub { position: relative; opacity: .95; margin: 0 auto 18px; max-width: 560px; font-size: 15px; }
.gg-top__total { position: relative; display: inline-block; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding: 9px 20px; border-radius: 999px; font-size: 15px; }
.gg-top__total strong { font-family: var(--gg-display); font-weight: 800; font-size: 18px; }

/* podium */
.gg-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; margin-bottom: 34px; }
.gg-podium__card { position: relative; background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 16px; box-shadow: var(--gg-shadow); text-align: center; }
.gg-podium__card.is-1 { border-color: #ffd56a; box-shadow: 0 14px 34px rgba(255,171,0,.28); transform: translateY(-14px); }
.gg-podium__medal { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--gg-display); font-weight: 800; font-size: 14px; color: #fff; padding: 4px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.is-1 .gg-podium__medal { background: linear-gradient(120deg,#ffb300,#ff8f00); }
.is-2 .gg-podium__medal { background: linear-gradient(120deg,#b9c2cc,#8fa0ad); }
.is-3 .gg-podium__medal { background: linear-gradient(120deg,#e08a4e,#b5662f); }
.gg-podium__media { display: block; aspect-ratio: 16/10; border-radius: var(--gg-radius-sm); overflow: hidden; background: #eef0f6; margin: 8px 0 12px; }
.gg-podium__media img { width: 100%; height: 100%; object-fit: cover; }
.gg-podium__title { font-family: var(--gg-display); font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; min-height: 2.4em; }
.gg-podium__title a { color: var(--gg-text); }
.gg-podium__title a:hover { color: var(--gg-primary); }
.gg-podium__rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.gg-podium__rate b { color: #b9820a; }
.gg-podium__dl { display: flex; justify-content: center; }

/* ranked list */
.gg-rank-list { list-style: none; counter-reset: none; margin: 0; padding: 0; background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); overflow: hidden; }
.gg-rank-row { display: grid; grid-template-columns: 44px 90px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--gg-border-2); }
.gg-rank-row:last-child { border-bottom: 0; }
.gg-rank-row:hover { background: #f4f5fb; }
.gg-rank-row__num { font-family: var(--gg-display); font-weight: 800; font-size: 18px; color: var(--gg-muted); text-align: center; }
.gg-rank-row__thumb { display: block; width: 90px; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: #eef0f6; }
.gg-rank-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gg-rank-row__main { min-width: 0; }
.gg-rank-row__title { display: block; font-weight: 700; color: var(--gg-text); overflow-wrap: anywhere; }
.gg-rank-row__title:hover { color: var(--gg-primary); }
.gg-rank-row__rate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 3px; }
.gg-rank-row__rate b { color: #b9820a; }
.gg-rank-row__dl { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
	.gg-podium { grid-template-columns: 1fr; gap: 26px; }
	.gg-podium__card.is-1 { transform: none; order: -1; }
	.gg-rank-row { grid-template-columns: 32px 64px 1fr; row-gap: 4px; }
	.gg-rank-row__thumb { width: 64px; }
	.gg-rank-row__dl { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Full ROMs List (A–Z) ---------- */
.gg-romlist { width: 100%; }
.gg-romlist__head { text-align: center; }
.gg-romlist__head .page-title { font-size: clamp(28px, 5vw, 42px); }
.gg-romlist__intro { color: var(--gg-muted); font-size: 17px; max-width: 680px; margin: 4px auto 0; }
.gg-romlist__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 36px; }
.gg-romlist__nav a, .gg-romlist__nav span {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
	border-radius: 11px; font-weight: 800; font-family: var(--gg-display); font-size: 15px;
	background: var(--gg-surface); border: 1.5px solid var(--gg-border); color: var(--gg-text); transition: .15s;
}
.gg-romlist__nav a:hover { background: var(--gg-grad); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--gg-shadow-accent); }
.gg-romlist__nav span.is-empty { color: #cdc4cc; background: transparent; cursor: default; }
.gg-romlist__group { margin: 0 0 30px; scroll-margin-top: 90px; }
.gg-romlist__letter {
	font-family: var(--gg-display); font-size: 22px; font-weight: 800; color: var(--gg-text);
	margin: 0 0 16px; padding: 12px 18px; border-radius: var(--gg-radius-sm);
	background: var(--gg-grad-soft); border-left: 6px solid transparent;
	border-image: var(--gg-grad) 1; border-image-slice: 0 0 0 1; background-clip: padding-box;
	position: relative;
}
.gg-romlist__letter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 6px 0 0 6px; background: var(--gg-grad); }
.gg-romlist__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 28px; }
.gg-romlist__items li { padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid var(--gg-border-2); }
.gg-romlist__items li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--gg-grad); }
.gg-romlist__items li a { color: var(--gg-text); font-weight: 600; }
.gg-romlist__items li a:hover { color: var(--gg-primary); }

/* ---------- Sidebar / widgets ---------- */
.layout__sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
.widget { background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 22px; box-shadow: var(--gg-shadow); }
.widget-title { font-size: 16px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.widget-title::before { content: ""; width: 5px; height: 18px; border-radius: 5px; background: var(--gg-grad); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--gg-border-2); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--gg-text); font-weight: 500; }
.widget ul li a:hover { color: var(--gg-primary); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 13px;
	background: var(--gg-surface); border: 1.5px solid var(--gg-border); border-radius: 13px; color: var(--gg-text); font-weight: 700;
	transition: .15s;
}
.pagination .page-numbers.current { background: var(--gg-grad); color: #fff; border-color: transparent; box-shadow: var(--gg-shadow-accent); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gg-primary); color: var(--gg-primary); transform: translateY(-2px); }

/* ---------- Empty / 404 ---------- */
.gg-empty { text-align: center; background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 56px 26px; box-shadow: var(--gg-shadow); }
.gg-empty .search-form { max-width: 400px; margin: 20px auto; }
.gg-empty--404 h1 { font-size: 88px; font-weight: 800; font-family: var(--gg-display); margin: 0; line-height: 1; background: var(--gg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gg-empty .gg-btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gg-navy); color: rgba(255,255,255,.72); margin-top: 56px; padding: 36px 0 0; }

/* Compact footer: brand and social share one line, then every link — menu
   items and categories alike — wraps across a single row. No column headings. */
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.site-footer__brand { display: inline-block; margin-bottom: 10px; }
.site-footer__brand img { max-height: 48px; width: auto; }
.site-footer__name { font-family: var(--gg-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #fff; }
.site-footer__name em { font-style: normal; color: var(--gg-primary-l); }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
.footer-menu, .site-footer__cats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; }
.footer-menu a, .site-footer__cats a { color: rgba(255,255,255,.66); font-size: 13.5px; font-weight: 500; }
.footer-menu a:hover, .site-footer__cats a:hover { color: #fff; }

/* "Advertise with us" — optional; a slim banner rather than a centred block,
   so it matches the homepage promo and does not reintroduce the height the
   compact footer just saved. */
.site-footer__ad { display: flex; align-items: center; gap: 18px; margin: 0 0 30px; padding: 20px 24px; border-radius: var(--gg-radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.site-footer__ad-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gg-grad); color: #fff; }
.site-footer__ad-body { flex: 1; min-width: 0; }
.site-footer__ad-title { font-family: var(--gg-display); font-size: 17px; font-weight: 800; margin: 0 0 3px; color: #fff; }
.site-footer__ad-text { color: rgba(255,255,255,.62); margin: 0; font-size: 13.5px; line-height: 1.6; }
.site-footer__ad-btn { flex: none; box-shadow: var(--gg-shadow-accent); }

.site-footer__about { margin: 0; color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.7; max-width: 420px; }
.site-footer__about strong { color: #fff; font-weight: 700; }

.site-footer__social { display: flex; gap: 10px; flex: none; }
.site-footer__social-link {
	width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
	background: rgba(255,255,255,.10); color: rgba(255,255,255,.72);
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.site-footer__social-link:hover { transform: translateY(-3px); color: #fff; }
.site-footer__social-link.is-facebook:hover { background: #1877f2; }
.site-footer__social-link.is-youtube:hover { background: #ff0000; }
.site-footer__social-link.is-twitter:hover { background: #000; }
.site-footer__social-link.is-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 90%); }

.site-footer__bottom { margin-top: 28px; background: var(--gg-navy-d); padding: 15px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer__totop { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.site-footer__totop:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-footer__totop svg { width: 13px; height: 13px; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 36px; background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: 26px; box-shadow: var(--gg-shadow); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; padding: 11px 15px; border: 1.5px solid var(--gg-border); border-radius: 11px; font: inherit; margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gg-primary); box-shadow: 0 0 0 4px var(--gg-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gg-primary) 16%, transparent); }
.comment-form input[type=submit], .comments-area .submit { background: var(--gg-grad); color: #fff; border: 0; padding: 12px 26px; border-radius: 12px; font-weight: 700; cursor: pointer; box-shadow: var(--gg-shadow-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout--with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.layout__sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
	.layout__sidebar .widget { flex: 1 1 240px; min-width: 0; }
	.gg-grid--4 { grid-template-columns: repeat(3, 1fr); }

	/* Tablet + mobile: collapse the horizontal nav into the hamburger menu. */
	.site-header__actions .search-form { display: none; }
	.site-header__actions { margin-left: auto; }   /* push hamburger to the right */
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; top: 60px; left: 0; right: 0; background: var(--gg-surface);
		border-bottom: 1px solid var(--gg-border); padding: 12px 22px;
		box-shadow: 0 16px 30px rgba(15,18,34,.14);
		opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
		transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	}
	.main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
	/* Don't let the page scroll behind an open panel. */
	body.nav-open { overflow: hidden; }
	/* The admin bar is fixed above the sticky header, so push the panel clear. */
	.admin-bar .main-nav { top: 92px; }

	.main-nav__menu { flex-direction: column; gap: 2px; align-items: stretch; }
	.main-nav__menu a { padding: 11px 14px; font-size: 15px; }

	.main-nav__search { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gg-border); }
	.main-nav__search .search-form__field { background: var(--gg-bg); border-color: var(--gg-border); color: var(--gg-text); }
	.main-nav__search .search-form__field::placeholder { color: #8a8f9e; }
	.main-nav__search .search-form__field:focus { border-color: var(--gg-primary); box-shadow: 0 0 0 3px var(--gg-soft); }
	.main-nav__menu a { white-space: normal; }   /* full-width rows can wrap fine in the panel */
	/* sub-menus expand inline inside the panel (no hover needed on touch) */
	.main-nav__menu .menu-item-has-children > a::after { display: none; }
	.main-nav__menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 2px 0;
		margin: 2px 0 6px 12px; border-left: 2px solid var(--gg-border); border-radius: 0;
	}
	.main-nav__menu .sub-menu a { padding: 7px 12px; font-size: 14px; color: var(--gg-muted); background: none; }
	.main-nav__menu .sub-menu a:hover { color: var(--gg-primary); background: var(--gg-soft); }

	.site-footer__about { max-width: none; }
}
/* Below 782px WordPress grows the admin bar from 32px to 46px. */
@media (max-width: 782px) {
	.admin-bar .main-nav { top: 106px; }
}
@media (max-width: 860px) {
	.gg-grid { grid-template-columns: repeat(2, 1fr); }
	.gg-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hero { border-radius: 0 0 28px 28px; padding: 56px 22px 64px; }
	.single-game, .single-page { padding: 24px; }
}
@media (max-width: 520px) {
	.container { padding: 0 16px; }
	.gg-grid, .gg-grid--4 { grid-template-columns: 1fr; }
	.single-game, .single-page { padding: 18px; }
	.gg-details__table th { width: 44%; }
	.gg-details__table th, .gg-details__table td,
	.gg-downloads__table th, .gg-downloads__table td { padding: 11px 13px; font-size: 14px; }
	.hero { padding: 48px 18px 56px; }
	.site-footer__top { flex-direction: column; gap: 22px; }
	.site-footer__ad { flex-wrap: wrap; gap: 14px; }
	.site-footer__ad-body { flex: 1 1 100%; order: 2; }
	.site-footer__ad-btn { order: 3; width: 100%; justify-content: center; }
}

/* ==========================================================================
   Visitor rating — interactive stars
   ========================================================================== */
.grate-ask { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin-bottom: 18px;
	background: var(--gg-surface); border: 1px solid var(--gg-border); border-radius: var(--gg-radius-sm); }
.grate-ask__label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--gg-muted); }

.gg-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gg-rate__stars { display: inline-flex; gap: 2px; }
.gg-rate__star { appearance: none; background: none; border: 0; padding: 0 1px; margin: 0; cursor: pointer;
	font-size: 26px; line-height: 1; color: #d7dae8; transition: color .12s ease, transform .12s ease; }
.gg-rate__star:hover { transform: scale(1.12); }
.gg-rate__star.is-on,
.gg-rate__star.is-hot { color: #ffab00; }
.gg-rate__star:focus-visible { outline: 2px solid var(--gg-primary); outline-offset: 2px; border-radius: 4px; }
.gg-rate__msg { font-size: 12.5px; color: var(--gg-muted); }
.gg-rate.is-done .gg-rate__star { cursor: default; }
.gg-rate.is-done .gg-rate__star:hover { transform: none; }
.gg-rate.is-done .gg-rate__msg { color: var(--gg-green); font-weight: 600; }
.gg-rate.is-busy { opacity: .55; pointer-events: none; }
.gg-rate--compact .gg-rate__star { font-size: 20px; }

/* Number bump when a vote lands. */
.gg-rate-bump { animation: gg-rate-bump .4s ease; }
@keyframes gg-rate-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* Registering the custom property lets the fill animate to its new width
   when a vote updates it; browsers without @property just snap instead. */
@property --gg-rating { syntax: '<number>'; inherits: true; initial-value: 0; }
.gg-stars { transition: --gg-rating .35s ease; }
