/* GeeKPress Aurelian — game.css
   Theme-side extras for the game single (split archetype refinements). */

/* Subtle gilded backdrop behind the whole game page */
.aur-game { position: relative; }
.aur-game::before {
	content: ""; position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1;
	background:
		radial-gradient(900px 380px at 70% -80px, rgba(var(--aur-violet-rgb), 0.10), transparent 70%),
		radial-gradient(700px 300px at 18% -60px, rgba(var(--aur-gold-rgb), 0.06), transparent 70%);
	pointer-events: none;
}

/* ── Hero key-art backdrop (2026-06-11) ───────────────────────────
   The game's hero image (first image after the poster — the plugin's
   own --gx-hero-bg rule) printed full-bleed behind the page top, with
   a soft overlay that slides into the theme background colour both
   downward and at the side edges, so the art melts into the canvas. */
/* The 100vw layer must not add a horizontal scrollbar — but the clip
   MUST live on a FULL-WIDTH ancestor: clipping on .aur-game (a centered
   1320px container) was cutting the backdrop at the container edges.
   overflow-x: clip (not hidden) keeps the sticky rail working. */
.aur-site-content { overflow-x: clip; }
.aur-game-backdrop {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 100vw; height: clamp(560px, 70vh, 860px); z-index: -1;
	pointer-events: none;
	/* fit the art to the full viewport WIDTH, pinned to the top —
	   the gradient owns whatever the image doesn't reach */
	background-size: 100% auto;
	background-position: center top;
	background-repeat: no-repeat;
	/* bright/saturated key-art (pixel screenshots etc.) must not shout */
	filter: saturate(0.82) brightness(0.9);
	/* the image must NEVER show its own hard bottom edge: the whole
	   layer (art + overlays) dissolves to transparent — whatever the
	   art's aspect ratio, its cut-off lands inside this fade and the
	   page bg takes over seamlessly (no lighter strip below). */
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.5) 75%, transparent 92%);
	        mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.5) 75%, transparent 92%);
}
/* bg-tinted veil so the art sits BEHIND the page, not on it —
   strong enough that bright screenshots stay an ambient texture */
.aur-game-backdrop::before {
	content: ""; position: absolute; inset: 0;
	background: color-mix(in srgb, var(--aur-bg, var(--aur-bg)) 48%, transparent);
}
/* the gradient slide into the page bg: VERTICAL only — the art runs
   edge-to-edge with NO side melts, and hands off to the bg LOW */
.aur-game-backdrop::after {
	content: ""; position: absolute; inset: 0;
	background:
		/* hand-off starts higher but rides a LIGHTER ramp — long, soft
		   blend instead of a dark veil */
		linear-gradient(180deg, rgba(var(--aur-bg-rgb), 0.82) 0%, rgba(var(--aur-bg-rgb), 0.40) 24%, rgba(var(--aur-bg-rgb), 0.50) 50%, rgba(var(--aur-bg-rgb), 0.74) 70%, rgba(var(--aur-bg-rgb), 0.92) 82%, var(--aur-bg, var(--aur-bg)) 90%);
}

/* Rail enters slightly raised on large screens */
@media (min-width: 1024px) {
	.aur-game-rail { margin-top: 2px; }
}

/* Demo / fallback shells for gp_* singles */
.aur-gp-shell .aur-game-app { margin-top: 4px; }

/* Rails: gentle fade hint at the right edge */
.aur-games--rail {
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	        mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.aur-games--rail::-webkit-scrollbar { height: 8px; }
.aur-games--rail::-webkit-scrollbar-thumb { background: rgba(var(--aur-gold-rgb), 0.25); border-radius: 99px; }
.aur-games--rail::-webkit-scrollbar-track { background: transparent; }

/* ===================================================================
   Rail side-cards (2026-06-11) — the plugin app's in-app side rail
   (Websites / Release Dates / Studios / Game Details / Alt Titles /
   Language Support / Age Rating) re-rendered server-side under the
   poster. Gilt frame language matches the other rail cards.
   =================================================================== */

.aur-side-card { padding: 16px 18px 18px; display: grid; gap: 11px; }

/* websites — icon chips */
.aur-side-webs { display: flex; flex-wrap: wrap; gap: 7px; }
.aur-side-web {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 11px; border: 1px solid rgba(var(--aur-gold-rgb), 0.18); border-radius: 6px;
	background: rgba(var(--aur-gold-rgb), 0.05);
	font-family: var(--aur-font-mono); font-size: 11.5px; letter-spacing: 0.04em;
	color: var(--aur-text-dim); text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.aur-side-web:hover { border-color: var(--aur-gold); color: var(--aur-gold-bright); }
.aur-side-web img { width: 15px; height: 15px; display: block; border-radius: 3px; }

/* release dates — platform·region | date rows */
.aur-side-releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aur-side-releases li {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	border-bottom: 1px solid rgba(var(--aur-gold-rgb), 0.10); padding-bottom: 7px;
}
.aur-side-releases li:last-child { border-bottom: 0; padding-bottom: 0; }
.aur-side-rel-plat {
	font-family: var(--aur-font-mono); font-size: 10.5px; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--aur-text-mute);
}
.aur-side-rel-date {
	font-family: var(--aur-font-mono); font-size: 12.5px; color: var(--aur-gold-bright);
	white-space: nowrap;
}

/* key/value rows — studios + game details + alt titles */
.aur-side-kv { display: grid; gap: 9px; }
.aur-side-row, .aur-side-aka { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.aur-side-key {
	font-family: var(--aur-font-mono); font-size: 10px; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--aur-text-mute);
}
.aur-side-val { font-size: 13px; color: var(--aur-text-dim); }
.aur-side-val a { color: var(--aur-gold); text-decoration: none; }
.aur-side-val a:hover { color: var(--aur-gold-bright); }
.aur-side-vsep { color: var(--aur-gold-dim); }
.aur-side-aka .aur-side-val { font-size: 12.5px; }

/* language support — compact A/S/I matrix */
.aur-side-langs { display: grid; gap: 5px; }
.aur-side-lang {
	display: grid; grid-template-columns: minmax(0, 1fr) 22px 22px 22px; gap: 4px;
	align-items: center; font-size: 12.5px; color: var(--aur-text-dim);
}
.aur-side-lang i { font-style: normal; text-align: center; font-size: 11px; color: rgba(194, 80, 62, 0.75); }
.aur-side-lang i.is-on { color: var(--aur-gold); }
.aur-side-lang--head { padding-bottom: 4px; border-bottom: 1px solid rgba(var(--aur-gold-rgb), 0.14); }
.aur-side-lang--head span, .aur-side-lang--head i {
	font-family: var(--aur-font-mono); font-size: 9.5px; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--aur-text-mute);
}

/* age ratings — official board icon strip */
.aur-side-ages { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.aur-side-age img { height: 52px; width: auto; display: block; border-radius: 4px; }

/* storefront tiles — icon-only strip ABOVE the regular website chips,
   mirroring the app's gx-side-stores */
.aur-side-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.aur-side-store {
	display: grid; place-items: center; width: 38px; height: 38px;
	border: 1px solid rgba(var(--aur-gold-rgb), 0.22); border-radius: 8px;
	background: rgba(var(--aur-gold-rgb), 0.06);
	transition: border-color 0.15s ease, transform 0.12s ease;
}
.aur-side-store:hover { border-color: var(--aur-gold); transform: translateY(-1px); }
.aur-side-store img { width: 20px; height: 20px; display: block; border-radius: 4px; }

/* expandable card bodies — long lists collapse to data-max px with a
   bottom fade; the gold Read More toggle is wired in assets/js/theme.js */
.aur-expandable { position: relative; }
.aur-expandable.is-collapsed {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
	        mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.aur-expand-btn {
	margin: 2px auto 0; display: block; padding: 5px 14px;
	background: transparent; border: 0; cursor: pointer;
	font-family: var(--aur-font-mono); font-size: 10.5px; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--aur-gold); border-bottom: 1px solid rgba(var(--aur-gold-rgb), 0.35);
	transition: color 0.15s ease, border-color 0.15s ease;
}
.aur-expand-btn:hover { color: var(--aur-gold-bright); border-color: var(--aur-gold); }
