/**
 * Skin.
 *
 * The source site's layout language: full-bleed artwork behind a floating
 * content panel, a two-row header with icon navigation, an overlay hero
 * card, ribboned covers, tabbed rows, and the decorated footer.
 *
 * Everything still reads from the tokens in tokens.css, so a different site
 * on this framework restyles without touching this file — and dropping the
 * `skin` feature removes all of it.
 */

/* ==========================================================================
   Page background
   ========================================================================== */

.wpx-has-bg::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image: var(--wpx-site-bg-image);
	background-size: cover;
	background-position: center top;
	background-attachment: var(--wpx-site-bg-attachment, fixed);
}

.wpx-has-bg::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgb(from var(--wpx-bg) r g b / var(--wpx-site-bg-dim, 30%));
}

/* The artwork should stay visible at the edges, so the content sits on its
   own panel rather than a full-width background. */
.wpx-has-bg.wpx-boxed .wpx-shell,
.wpx-has-bg.wpx-boxed .wpx-slider,
.wpx-has-bg.wpx-boxed .wpx-hero {
	background: rgb(from var(--wpx-surface-1) r g b / 0.94);
	backdrop-filter: blur(2px);
}

.wpx-has-bg.wpx-boxed .wpx-shell {
	padding-inline: var(--wpx-space-5);
	border-radius: var(--wpx-radius-lg);
}

@media (max-width: 600px) {
	.wpx-has-bg.wpx-boxed .wpx-shell { padding-inline: var(--wpx-space-3); }
}

/* ==========================================================================
   Header — two rows
   ========================================================================== */

.wpx-header {
	background: rgb(from var(--wpx-surface-1) r g b / 0.97);
	border-block-end: 0;
}

.wpx-header__inner { min-height: 92px; align-items: stretch; }

/* Icon navigation: icon, label, subtitle stacked, with dividers between
   items — the arrangement the source site used. */
.wpx-header__inner .wpx-menu { gap: 0; height: 100%; }

.wpx-header__inner .wpx-menu > li {
	display: flex;
	border-inline-start: 1px solid var(--wpx-border);
}

.wpx-header__inner .wpx-menu > li:last-child {
	border-inline-end: 1px solid var(--wpx-border);
}

.wpx-header__inner .wpx-menu > li > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: var(--wpx-space-3) var(--wpx-space-5);
	border-radius: 0;
	text-align: center;
}

.wpx-menu__icon { color: var(--wpx-text-muted); transition: color var(--wpx-transition); }

.wpx-menu__label {
	font-size: var(--wpx-text-sm);
	font-weight: var(--wpx-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpx-text);
}

.wpx-menu__sub {
	font-size: var(--wpx-text-xs);
	color: var(--wpx-text-dim);
	font-weight: var(--wpx-weight-normal);
	text-transform: none;
	letter-spacing: 0;
}

.wpx-header__inner .wpx-menu > li > a:hover { background: var(--wpx-surface-3); }
.wpx-header__inner .wpx-menu > li > a:hover .wpx-menu__icon { color: var(--wpx-accent); }
.wpx-header__inner .wpx-menu > li > a::after { display: none; }

/* Second row: social, extras, search on the far side. */
.wpx-header__top {
	background: var(--wpx-surface-3);
	border-block: 1px solid var(--wpx-border);
}

.wpx-header__top .wpx-row-builder { min-height: 46px; }

.wpx-header__top .wpx-social__link {
	width: 44px;
	height: 46px;
	border-radius: 0;
	border-inline-end: 1px solid var(--wpx-border);
	background: var(--wpx-surface-2);
}

.wpx-header__top .wpx-social {
	gap: 0;
	border-inline-start: 1px solid var(--wpx-border);
}

.wpx-header__top .wpx-social__link:hover {
	background: var(--wpx-accent);
	color: var(--wpx-accent-ink);
	transform: none;
}

.wpx-header__top .wpx-button--header {
	height: 46px;
	border-radius: 0;
	text-transform: uppercase;
	font-weight: var(--wpx-weight-bold);
	letter-spacing: 0.04em;
}

.wpx-header__top .wpx-button--header:hover { transform: none; }

.wpx-header__top .wpx-search { min-width: 0; }

.wpx-header__top .wpx-search__input {
	background: var(--wpx-surface-2);
	border-radius: 0;
	border-color: var(--wpx-border);
}

.wpx-header__top .wpx-search__submit {
	width: 46px;
	background: var(--wpx-accent);
	color: var(--wpx-accent-ink);
}

.wpx-header__top .wpx-search__submit:hover { background: var(--wpx-accent-hover); color: var(--wpx-accent-ink); }

@media (max-width: 899px) {
	.wpx-header__inner { min-height: 64px; }
	.wpx-header__inner .wpx-menu > li { border: 0; }
	.wpx-header__inner .wpx-menu > li > a { flex-direction: row; gap: var(--wpx-space-3); justify-content: flex-start; text-align: start; }
	.wpx-menu__sub { display: none; }
}

/* ==========================================================================
   Hero — overlay card on artwork
   ========================================================================== */

.wpx-hero {
	display: grid;
	place-items: stretch;
	padding: 0;
	text-align: start;
	border-radius: var(--wpx-radius-lg);
}

.wpx-hero__inner {
	display: grid;
	align-items: center;
	width: 100%;
	max-width: none;
	min-height: var(--wpx-hero-height, 420px);
	padding: var(--wpx-space-6);
}

.wpx-hero--left   .wpx-hero__inner { justify-items: start; }
.wpx-hero--center .wpx-hero__inner { justify-items: center; text-align: center; }
.wpx-hero--right  .wpx-hero__inner { justify-items: end; text-align: end; }

.wpx-hero__card {
	width: min(100%, 520px);
	padding: var(--wpx-space-6);
	background: rgb(from var(--wpx-bg) r g b / 0.72);
	border: 1px solid rgb(255 255 255 / 0.08);
	border-radius: var(--wpx-radius);
	backdrop-filter: blur(6px);
}

.wpx-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--wpx-space-2);
	margin-block-end: var(--wpx-space-4);
	padding: var(--wpx-space-2) var(--wpx-space-4);
	border: 1px solid var(--wpx-accent);
	border-radius: var(--wpx-radius-sm);
	color: var(--wpx-accent);
	font-size: var(--wpx-text-xs);
	font-weight: var(--wpx-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.wpx-hero__title {
	margin-block-end: var(--wpx-space-3);
	font-size: var(--wpx-text-3xl);
	line-height: 1.1;
	text-transform: uppercase;
}

/* The accent words inside the headline. */
.wpx-hero__title em { font-style: normal; color: var(--wpx-accent); }

.wpx-hero__subtitle {
	margin-block-end: var(--wpx-space-5);
	font-size: var(--wpx-text-base);
	color: var(--wpx-text-muted);
}

.wpx-hero__cta { text-transform: uppercase; letter-spacing: 0.04em; font-weight: var(--wpx-weight-bold); }

.wpx-hero__search { max-width: 420px; margin-inline: 0; }

/* --- Cover strip under the hero ----------------------------------------- */

.wpx-strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(110px, 1fr);
	gap: var(--wpx-space-3);
	padding: var(--wpx-space-3);
	margin-block: calc(var(--wpx-space-5) * -1) var(--wpx-space-6);
	position: relative;
	z-index: 2;
	background: rgb(from var(--wpx-surface-1) r g b / 0.92);
	border: 1px solid var(--wpx-border);
	border-radius: var(--wpx-radius);
	overflow-x: auto;
	scrollbar-width: thin;
}

.wpx-strip__item {
	display: block;
	border-radius: var(--wpx-radius-sm);
	overflow: hidden;
	border: 1px solid var(--wpx-border);
	transition: transform var(--wpx-duration) var(--wpx-ease-out), border-color var(--wpx-transition);
}

.wpx-strip__item:hover {
	transform: translateY(-4px);
	border-color: var(--wpx-accent);
}

.wpx-strip__item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* ==========================================================================
   Cards — corner ribbons and title bar
   ========================================================================== */

.wpx-cards-ribbon .wpx-card {
	background: var(--wpx-surface-3);
	padding: var(--wpx-space-2);
	border-radius: var(--wpx-radius-sm);
}

.wpx-cards-ribbon .wpx-card__media { border-radius: 2px; }

.wpx-cards-ribbon .wpx-card__title {
	padding: var(--wpx-space-3) var(--wpx-space-2);
	margin-block-start: var(--wpx-space-2);
	background: var(--wpx-surface-2);
	border-radius: 2px;
	text-align: center;
	font-size: var(--wpx-text-sm);
}

/* Diagonal ribbons in the top corner, one per release type. The clip-path
   keeps them as a single element rather than the source site's images. */
.wpx-cards-ribbon .wpx-badges {
	inset-block-start: 0;
	inset-inline-start: 0;
	flex-direction: column;
	gap: 0;
	max-width: none;
	pointer-events: none;
}

.wpx-cards-ribbon .wpx-badge {
	position: relative;
	width: 92px;
	padding: 3px 0 3px 6px;
	background: var(--wpx-accent);
	border-radius: 0;
	font-size: 10px;
	font-weight: var(--wpx-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	backdrop-filter: none;
	clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.wpx-cards-ribbon .wpx-badge--free         { background: var(--wpx-success); }
.wpx-cards-ribbon .wpx-badge--demo         { background: var(--wpx-secondary); color: #1a1a1a; }
.wpx-cards-ribbon .wpx-badge--early-access { background: var(--wpx-secondary); color: #1a1a1a; }
.wpx-cards-ribbon .wpx-badge--new          { background: var(--wpx-accent); }

/* --- View-count strip ---------------------------------------------------- */

.wpx-card__views {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wpx-space-2);
	margin-block-start: var(--wpx-space-2);
	padding: var(--wpx-space-2);
	background: var(--wpx-surface-2);
	border-radius: 2px;
	font-size: var(--wpx-text-xs);
	color: var(--wpx-text-dim);
}

.wpx-card__views .wpx-icon { color: var(--wpx-accent); }

.wpx-card__views strong { color: var(--wpx-text); font-weight: var(--wpx-weight-bold); }

/* ==========================================================================
   Tabs
   ========================================================================== */

.wpx-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-block-end: var(--wpx-space-5);
	padding: 0;
	list-style: none;
	background: var(--wpx-surface-3);
	border-radius: var(--wpx-radius) var(--wpx-radius) 0 0;
	overflow: hidden;
}

.wpx-tabs__tab {
	display: flex;
	align-items: center;
	gap: var(--wpx-space-2);
	padding: var(--wpx-space-4) var(--wpx-space-5);
	background: transparent;
	border: 0;
	border-inline-end: 1px solid var(--wpx-border);
	color: var(--wpx-text-dim);
	font-size: var(--wpx-text-sm);
	font-weight: var(--wpx-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: color var(--wpx-transition), background var(--wpx-transition);
}

.wpx-tabs__tab:hover { color: var(--wpx-text); background: var(--wpx-surface-4); transform: none; box-shadow: none; }

.wpx-tabs__tab[aria-selected="true"] {
	color: var(--wpx-accent);
	background: var(--wpx-surface-2);
	box-shadow: inset 0 -2px 0 var(--wpx-accent);
}

.wpx-tabs__tab .wpx-icon { color: currentColor; }

.wpx-tabs__panel[hidden] { display: none; }

@media (max-width: 600px) {
	.wpx-tabs__tab { flex: 1; justify-content: center; padding-inline: var(--wpx-space-3); }
	.wpx-tabs__tab .wpx-menu__label { display: none; }
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.wpx-sidebar .wpx-widget__title {
	color: var(--wpx-accent);
	font-weight: var(--wpx-weight-bold);
	letter-spacing: 0.08em;
}

/* Category lists get a chevron and a divider per row. */
.wpx-sidebar .wpx-widget li {
	margin: 0;
	border-block-end: 1px solid var(--wpx-border);
}

.wpx-sidebar .wpx-widget li:last-child { border-block-end: 0; }

.wpx-sidebar .wpx-widget li a {
	display: block;
	padding: var(--wpx-space-3) 0 var(--wpx-space-3) var(--wpx-space-5);
	position: relative;
	text-transform: uppercase;
	font-size: var(--wpx-text-sm);
	font-weight: var(--wpx-weight-medium);
	letter-spacing: 0.03em;
	transition: color var(--wpx-transition), padding-inline-start var(--wpx-transition);
}

.wpx-sidebar .wpx-widget li a::before {
	content: "";
	position: absolute;
	inset-inline-start: 4px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-top: 2px solid var(--wpx-accent);
	border-right: 2px solid var(--wpx-accent);
	transform: rotate(45deg);
}

.wpx-sidebar .wpx-widget li a:hover { padding-inline-start: var(--wpx-space-6); color: var(--wpx-accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.wpx-footer { background: rgb(from var(--wpx-surface-1) r g b / 0.97); }

.wpx-footer .wpx-widget__title {
	position: relative;
	padding-block-end: var(--wpx-space-5);
	text-align: center;
	color: var(--wpx-accent);
	font-size: var(--wpx-text-lg);
	letter-spacing: 0.06em;
}

/* The divider with a mark in the middle. */
.wpx-footer .wpx-widget__title::after {
	content: "✳";
	position: absolute;
	inset-inline: 0;
	bottom: var(--wpx-space-2);
	display: block;
	color: var(--wpx-accent);
	font-size: 12px;
	line-height: 1;
}

.wpx-footer .wpx-widget__title::before {
	content: "";
	position: absolute;
	inset-inline: 25%;
	bottom: calc(var(--wpx-space-2) + 5px);
	height: 1px;
	background: var(--wpx-accent);
	opacity: 0.5;
}

.wpx-footer .wpx-widget li a {
	display: block;
	padding: var(--wpx-space-2) 0 var(--wpx-space-2) var(--wpx-space-4);
	position: relative;
	border-block-end: 1px solid var(--wpx-border);
	text-transform: uppercase;
	font-size: var(--wpx-text-sm);
}

.wpx-footer .wpx-widget li a::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -3px;
	border-top: 2px solid var(--wpx-accent);
	border-right: 2px solid var(--wpx-accent);
	transform: rotate(45deg);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.wpx-to-top {
	position: fixed;
	inset-block-end: var(--wpx-space-5);
	inset-inline-end: var(--wpx-space-5);
	z-index: var(--wpx-z-sticky);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: var(--wpx-accent);
	color: var(--wpx-accent-ink);
	border: 0;
	border-radius: var(--wpx-radius);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity var(--wpx-transition), transform var(--wpx-transition), visibility var(--wpx-transition), background var(--wpx-transition);
}

.wpx-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.wpx-to-top:hover { background: var(--wpx-accent-hover); transform: translateY(-2px); box-shadow: var(--wpx-shadow-accent); }

/* ==========================================================================
   Pagination — total-pages label
   ========================================================================== */

.wpx-pagination { display: flex; align-items: center; justify-content: center; gap: var(--wpx-space-4); flex-wrap: wrap; margin-block-start: var(--wpx-space-6); padding: var(--wpx-space-4); background: var(--wpx-surface-2); border-radius: var(--wpx-radius); }

.wpx-pagination ul { margin: 0; }

.wpx-pagination__total { color: var(--wpx-text-dim); font-size: var(--wpx-text-sm); }

/* ==========================================================================
   Fixes
   ========================================================================== */

/* The cover strip used auto-flow columns, so a single game stretched to the
   full container width. Fixed track size instead, aligned to the start. */
.wpx-strip {
	grid-auto-columns: 150px;
	justify-content: start;
}

@media (max-width: 600px) {
	.wpx-strip { grid-auto-columns: 116px; }
}

/* Same problem in the card grid: with two or three games the tracks stretched
   to fill four columns, so a card could end up 340px wide. Cap the track. */
.wpx-grid {
	grid-template-columns: repeat(auto-fill, minmax(var(--wpx-card-min), 220px));
	justify-content: start;
}

/* A page-background gradient, so the layered look is there before any image
   is uploaded. The uploaded image replaces it when one is set. */
body:not(.wpx-has-bg)::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(1200px 600px at 12% -10%, rgb(from var(--wpx-accent) r g b / 0.16), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgb(from var(--wpx-secondary) r g b / 0.10), transparent 55%),
		var(--wpx-bg);
}

body:not(.wpx-has-bg).wpx-boxed .wpx-shell,
body:not(.wpx-has-bg).wpx-boxed .wpx-hero,
body:not(.wpx-has-bg).wpx-boxed .wpx-slider {
	background: rgb(from var(--wpx-surface-1) r g b / 0.9);
}

/* The hero card was invisible against a dark hero with no image behind it. */
.wpx-hero:not(.has-image) .wpx-hero__card {
	background: rgb(from var(--wpx-surface-2) r g b / 0.9);
	border-color: var(--wpx-border);
}

/* The header sat flush against the page with no separation. */
.wpx-header { box-shadow: 0 1px 0 var(--wpx-border); }

/* Give the whole page a little breathing room at the top. */
.wpx-shell { padding-block-start: var(--wpx-space-5); }

/* ==========================================================================
   Hover and motion — stronger, closer to the reference
   ========================================================================== */

/* The default lift was a 4px nudge, which reads as nothing on a dark grid.
   Scale, an accent frame and a coloured glow together make the hovered card
   unmistakable — still transform and opacity only, so it stays cheap. */
.wpx-cards-ribbon .wpx-card {
	transition:
		transform 220ms var(--wpx-ease-out),
		box-shadow 220ms var(--wpx-ease),
		background 220ms var(--wpx-ease);
}

.wpx-cards-ribbon .wpx-card:hover,
.wpx-cards-ribbon .wpx-card:focus-within {
	transform: translateY(-6px) scale(1.02);
	background: var(--wpx-surface-4);
	box-shadow: 0 14px 34px rgb(0 0 0 / 0.55), 0 0 0 2px var(--wpx-accent);
	z-index: 2;
}

.wpx-cards-ribbon .wpx-card:hover .wpx-card__cover { transform: scale(1.06); }

.wpx-cards-ribbon .wpx-card:hover .wpx-card__title {
	background: var(--wpx-accent);
	color: var(--wpx-accent-ink);
}

.wpx-cards-ribbon .wpx-card:hover .wpx-badge { transform: translateX(-2px); }

.wpx-badge { transition: transform var(--wpx-transition); }

/* Cover strip gets the same language. */
.wpx-strip__item:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 12px 28px rgb(0 0 0 / 0.5), 0 0 0 2px var(--wpx-accent);
}

/* --- Buttons ------------------------------------------------------------ */

/* Square-cornered, uppercase, with a sheen that sweeps across on hover. */
.wpx-button,
.wpx-hero__cta {
	position: relative;
	overflow: hidden;
	border-radius: var(--wpx-radius-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: var(--wpx-weight-bold);
}

.wpx-button::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.28), transparent);
	transform: skewX(-18deg);
	transition: left 520ms var(--wpx-ease-out);
}

.wpx-button:hover::after { left: 120%; }

.wpx-motion-off .wpx-button::after,
.wpx-hover-none .wpx-button::after { display: none; }

@media (prefers-reduced-motion: reduce) {
	.wpx-button::after { display: none; }
}

/* --- Tabs --------------------------------------------------------------- */

/* The inactive tabs were the same red as the active one, so the selection
   was invisible. Inactive is now flat; active carries the accent. */
.wpx-tabs__tab {
	background: var(--wpx-surface-3);
	color: var(--wpx-text-dim);
	box-shadow: none;
}

.wpx-tabs__tab:hover {
	background: var(--wpx-surface-4);
	color: var(--wpx-text);
}

.wpx-tabs__tab[aria-selected="true"] {
	background: var(--wpx-accent);
	color: var(--wpx-accent-ink);
	box-shadow: none;
}

.wpx-tabs__tab[aria-selected="true"] .wpx-icon { color: var(--wpx-accent-ink); }

/* --- Header nav --------------------------------------------------------- */

/* An accent bar grows under the hovered item, the way the reference header
   marked its sections. */
.wpx-header__inner .wpx-menu > li > a {
	position: relative;
	transition: background var(--wpx-transition), color var(--wpx-transition);
}

.wpx-header__inner .wpx-menu > li > a::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: var(--wpx-accent);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform var(--wpx-transition);
}

.wpx-header__inner .wpx-menu > li > a:hover::before,
.wpx-header__inner .wpx-menu > .current-menu-item > a::before { transform: scaleY(1); }

/* --- Section entrance --------------------------------------------------- */

/* Rows fade up as they arrive rather than snapping in. Applied only where
   motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
	.wpx-grid > .wpx-card {
		animation: wpx-rise 380ms var(--wpx-ease-out) backwards;
	}

	.wpx-grid > .wpx-card:nth-child(1)  { animation-delay: 0ms; }
	.wpx-grid > .wpx-card:nth-child(2)  { animation-delay: 40ms; }
	.wpx-grid > .wpx-card:nth-child(3)  { animation-delay: 80ms; }
	.wpx-grid > .wpx-card:nth-child(4)  { animation-delay: 120ms; }
	.wpx-grid > .wpx-card:nth-child(5)  { animation-delay: 160ms; }
	.wpx-grid > .wpx-card:nth-child(6)  { animation-delay: 200ms; }
	.wpx-grid > .wpx-card:nth-child(n+7){ animation-delay: 240ms; }
}

@keyframes wpx-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wpx-motion-off .wpx-grid > .wpx-card { animation: none; }

/* --- Footer ------------------------------------------------------------- */

.wpx-footer__widgets { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.wpx-footer .wpx-widget p { color: var(--wpx-text-dim); font-size: var(--wpx-text-sm); }

/* --- Back to top -------------------------------------------------------- */

/* It was rendering as a blank red square because the sprite reference was
   the only child; give it a guaranteed glyph as well. */
.wpx-to-top::after {
	content: "\2191";
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.wpx-to-top .wpx-icon { display: none; }

/* ==========================================================================
   Layout corrections
   ========================================================================== */

/* 1. The hero, slider and cover strip are printed above the content grid by
      wpx_skin_front_banner(), so they take the full page width without the
      negative-offset trick that used to paint them over the sidebar. */
.wpx-banner {
	padding-block-start: var(--wpx-space-5);
}

.wpx-banner .wpx-hero,
.wpx-banner .wpx-slider,
.wpx-banner .wpx-strip {
	width: 100%;
	margin-inline: 0;
}

/* The grid below the banner should not add a second top gap. */
.wpx-banner + .wpx-shell { padding-block-start: var(--wpx-space-4); }

/* 2. Category widgets put the post count outside the link, so `display:block`
      on the link pushed every count onto its own line. Lay the row out as a
      flex line and let the count sit at the end. */
.wpx-sidebar .wpx-widget li,
.wpx-footer .wpx-widget li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wpx-space-2);
	color: var(--wpx-text-dim);
	font-size: var(--wpx-text-xs);
}

.wpx-sidebar .wpx-widget li a,
.wpx-footer .wpx-widget li a { flex: 1; }

.wpx-sidebar .wpx-widget li ul,
.wpx-footer .wpx-widget li ul { flex-basis: 100%; }

/* 3. Footer columns stretched to fill the row, so two columns sat at opposite
      ends with a gap between them. Cap the track and centre the set. */
.wpx-footer__widgets {
	grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
	justify-content: center;
	gap: var(--wpx-space-6);
}

@media (max-width: 700px) {
	.wpx-footer__widgets { grid-template-columns: 1fr; justify-content: stretch; }
	.wpx-footer .wpx-widget__title { text-align: start; }
	.wpx-footer .wpx-widget__title::before,
	.wpx-footer .wpx-widget__title::after { inset-inline: 0 auto; }
}

/* 4. The cover strip is a row of covers; with one or two games it was a wide
      empty panel. Drop the panel styling until there is a row to show. */
.wpx-strip { padding: var(--wpx-space-2); }

.wpx-strip:not(:has(.wpx-strip__item:nth-child(3))) {
	background: none;
	border: 0;
	padding: 0;
	margin-block: 0 var(--wpx-space-5);
}

/* 5. Sticky header was translucent, so cards scrolled visibly through it. */
.wpx-header.is-sticky {
	background: var(--wpx-surface-1);
	border-block-end: 1px solid var(--wpx-border);
}

.wpx-header.is-scrolled { box-shadow: 0 6px 20px rgb(0 0 0 / 0.5); }

/* The top bar folds away on scroll, so the sticky header is a slim strip
   rather than half the viewport. */
.wpx-header__top {
	max-height: 60px;
	overflow: hidden;
	transition: max-height 260ms var(--wpx-ease), opacity 200ms var(--wpx-ease);
}

.wpx-header.is-scrolled .wpx-header__top { max-height: 0; opacity: 0; }

.wpx-header__inner { transition: min-height 260ms var(--wpx-ease); }
.wpx-header.is-scrolled .wpx-header__inner { min-height: 64px; }
.wpx-header.is-scrolled .wpx-menu__sub { opacity: 0; }
.wpx-menu__sub { transition: opacity 200ms var(--wpx-ease); }

/* ==========================================================================
   Entrance motion
   ========================================================================== */

/* Sections rise into place as they reach the viewport. Applied by
   skin.js adding .wpx-reveal, so anything above the fold is not hidden if
   JavaScript never runs. */
@media (prefers-reduced-motion: no-preference) {
	.wpx-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 520ms var(--wpx-ease-out), transform 520ms var(--wpx-ease-out);
	}

	.wpx-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	/* The hero's own parts stagger in on load. */
	.wpx-hero__badge    { animation: wpx-rise 500ms var(--wpx-ease-out) 60ms backwards; }
	.wpx-hero__title    { animation: wpx-rise 500ms var(--wpx-ease-out) 140ms backwards; }
	.wpx-hero__subtitle { animation: wpx-rise 500ms var(--wpx-ease-out) 220ms backwards; }
	.wpx-hero__cta,
	.wpx-hero__search   { animation: wpx-rise 500ms var(--wpx-ease-out) 300ms backwards; }
	.wpx-hero__card     { animation: wpx-fade-in 600ms var(--wpx-ease-out) backwards; }
}

@keyframes wpx-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.wpx-motion-off .wpx-reveal { opacity: 1; transform: none; transition: none; }
.wpx-motion-off .wpx-hero__card,
.wpx-motion-off .wpx-hero__title,
.wpx-motion-off .wpx-hero__badge,
.wpx-motion-off .wpx-hero__subtitle,
.wpx-motion-off .wpx-hero__cta { animation: none; }
