/* =========================================================================
   Store home page (/ru/, /tm/): the catalog front laid out like the Steam
   store. Store bar with search, featured carousel, launcher banner, genre
   tiles, tag picks, tabbed lists with a preview, browse buttons.
   Tokens and shared components come from theme.css; scripts/store.js fills it.
   ========================================================================= */

.gg-store main {
	overflow-x: clip;
}

.st-section {
	position: relative;
	padding: var(--gg-space-8) 0 0;
}

.st-section--last {
	padding-bottom: var(--gg-space-8);
}

.st-title {
	margin: 0 0 var(--gg-space-4);
	color: var(--gg-text-1);
	font-size: 22px;
}

/* lit panel, like Steam's carousel backgrounds */
.st-tagbox,
.st-preview {
	border: 1px solid rgba(91, 200, 244, 0.12);
	border-radius: var(--gg-radius-l);
	background:
		radial-gradient(circle at 8% 0%, rgba(94, 174, 255, 0.14), transparent 45%),
		linear-gradient(0deg, rgba(31, 49, 74, 0.45) 5%, rgba(33, 54, 77, 0.6) 20%, rgba(28, 50, 70, 0.45) 65%, rgba(40, 70, 98, 0.4) 95%, rgba(43, 83, 118, 0.5) 100%);
	box-shadow: var(--gg-shadow-2);
}

/* loading placeholders */
@keyframes stShimmer {
	from { background-position: 100% 0; }
	to { background-position: -100% 0; }
}

.st-skel-line,
.st-cover--skel,
.st-row--skel .st-row__thumb,
.st-feat--skel .st-feat__main,
.st-preview__ph {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
	background-size: 200% 100%;
	animation: stShimmer 1.4s linear infinite;
}

.st-skel-line {
	display: block;
	width: 80%;
	height: 12px;
	border-radius: 4px;
}

.st-skel-line--short {
	width: 50%;
}

/* ---------- Store bar ---------- */

.st-bar-wrap {
	position: relative;
	z-index: 5;
	padding-top: var(--gg-space-4);
}

.st-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--gg-space-4);
	min-height: 46px;
	padding: 0 7px 0 6px;
	border: 1px solid rgba(91, 200, 244, 0.2);
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(48, 96, 150, 0.92) 10%, rgba(52, 118, 180, 0.8) 28%, rgba(20, 42, 112, 0.95) 100%);
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.st-bar__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
}

.st-bar__nav > a,
.st-drop__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 46px;
	padding: 0 13px;
	color: #e8f1f8;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.st-bar__nav > a:hover,
.st-drop__btn:hover,
.st-drop[open] .st-drop__btn {
	background: rgba(255, 255, 255, 0.1);
	color: var(--gg-text-1);
}

.st-drop {
	position: relative;
}

.st-drop__btn {
	list-style: none;
}

.st-drop__btn::-webkit-details-marker {
	display: none;
}

.st-drop__btn .gg-caret {
	width: 10px;
	height: 10px;
	transition: transform 0.15s ease;
}

.st-drop[open] .st-drop__btn .gg-caret {
	transform: rotate(180deg);
}

.st-drop__menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(180px, 1fr));
	gap: var(--gg-space-4);
	padding: var(--gg-space-4);
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-m);
	background: #17212e;
	box-shadow: var(--gg-shadow-3);
}

.st-drop__col {
	display: flex;
	flex-direction: column;
}

.st-drop__head {
	margin: 0 0 4px;
	padding: 0 10px;
	color: var(--gg-text-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.st-drop__head:not(:first-child) {
	margin-top: var(--gg-space-3);
}

.st-drop__col a {
	padding: 6px 10px;
	border-radius: var(--gg-radius-s);
	color: var(--gg-text-2);
	font-size: 14px;
}

.st-drop__col a:hover {
	background: var(--gg-row-hover);
	color: var(--gg-text-1);
}

/* search with suggestions */
.st-search {
	position: relative;
	display: flex;
	flex: 0 1 320px;
	margin-left: auto;
}

.st-search__input {
	flex: 1;
	min-width: 0;
	height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: rgba(9, 18, 32, 0.55);
	color: var(--gg-text-1);
	font-size: 14px;
	outline: none;
}

.st-search__input::placeholder {
	color: rgba(220, 232, 244, 0.6);
}

.st-search__input:focus {
	border-color: rgba(91, 200, 244, 0.6);
	background: rgba(9, 18, 32, 0.8);
}

.st-search__input::-webkit-search-cancel-button {
	filter: invert(1);
	opacity: 0.6;
}

.st-search__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 34px;
	border: 1px solid var(--gg-blue-border);
	border-radius: 0 4px 4px 0;
	background: var(--gg-gradient);
	color: #fff;
	cursor: pointer;
}

.st-search__btn:hover {
	background: linear-gradient(180deg, var(--gg-blue-hover-1), var(--gg-blue-hover-2));
}

.st-suggest {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	width: max(100%, 360px);
	padding: 6px;
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-m);
	background: #17212e;
	box-shadow: var(--gg-shadow-3);
}

.st-suggest__item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 5px 8px 5px 5px;
	border-radius: var(--gg-radius-s);
	color: var(--gg-text-1);
}

.st-suggest__item:hover,
.st-suggest__item.is-active {
	background: var(--gg-selection);
}

.st-suggest__thumb {
	display: block;
	width: 36px;
	height: 48px;
	overflow: hidden;
	border-radius: 3px;
	background: #223042;
}

.st-suggest__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-suggest__name {
	overflow: hidden;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-suggest__kind {
	color: var(--gg-text-3);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.st-suggest__empty {
	margin: 0;
	padding: 10px;
	color: var(--gg-text-3);
	font-size: 14px;
}

.st-suggest__all {
	display: block;
	margin-top: 4px;
	padding: 9px 10px 5px;
	border-top: 1px solid var(--gg-line);
	color: var(--gg-accent);
	font-size: 13px;
}

.st-suggest__all:hover {
	color: var(--gg-accent-light);
}

/* ---------- Arrows (carousel and rails) ---------- */

.st-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: rgba(8, 14, 22, 0.65);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.15s ease, opacity 0.2s ease;
}

.st-arrow:hover {
	background: rgba(91, 200, 244, 0.35);
}

.st-arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.st-arrow--prev {
	left: 6px;
}

.st-arrow--next {
	right: 6px;
}

.st-rail.is-static .st-arrow {
	display: none;
}

/* wide screens: arrows outside the content, like on Steam */
@media (min-width: 1380px) {
	.st-arrow {
		width: 44px;
		height: 96px;
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
	}

	.st-arrow--prev {
		left: -60px;
	}

	.st-arrow--next {
		right: -60px;
		background: linear-gradient(270deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
	}
}

/* ---------- Event banner ---------- */

/* One picture cut into layers (assets/events/fast-launch, scratchpad
   make_event_banner.py): the ghost and the rocket are painted out of the base
   and float above it, the neon breathes, light runs over the letters, fog
   drifts, fireflies rise, now and then lightning. Layer boxes are percent of
   the 2120x742 picture. The pointer tilts the layers (--px, --py from store.js). */

.st-event-wrap {
	position: relative;
	z-index: 1;
	padding-top: var(--gg-space-5);
	padding-inline: 0;
}

/* full page width; above 620px of height the picture stops growing and
   a blurred copy of it fills the sides */
.st-event {
	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 2120 / 742;
	min-height: 168px;
	max-height: 620px;
	background: #0b1a4a;
	box-shadow: var(--gg-shadow-2), 0 0 34px rgba(110, 255, 90, 0.1);
	transition: box-shadow 0.25s ease;
}

/* the green lines sit on top: a real border would shrink the picture box and
   leave strips at the sides */
.st-event::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-block: 1px solid rgba(120, 255, 100, 0.22);
	pointer-events: none;
	transition: border-color 0.25s ease;
}

.st-event:hover,
.st-event:focus-visible {
	box-shadow: var(--gg-shadow-2), 0 0 44px rgba(110, 255, 90, 0.22);
}

.st-event:hover::after,
.st-event:focus-visible::after {
	border-color: rgba(120, 255, 100, 0.5);
}

.st-event:focus-visible {
	outline: 2px solid var(--gg-accent);
	outline-offset: -4px;
}

/* the picture keeps its proportions; on narrow screens the sides are cut */
.st-event__stage {
	position: absolute;
	top: 0;
	left: 50%;
	height: 100%;
	aspect-ratio: 2120 / 742;
	transform: translateX(-50%);
	pointer-events: none;
}

.st-event__scene,
.st-event__ghost,
.st-event__rocket {
	position: absolute;
	inset: 0;
}

.st-event__scene {
	scale: 1.03;
	translate: calc(var(--px, 0) * -9px) calc(var(--py, 0) * -6px);
	transition: translate 0.5s ease-out;
	animation: stEvZoom 26s ease-in-out infinite alternate;
}

.st-event__base,
.st-event__base img,
.st-event__glow {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.st-event__glow {
	mix-blend-mode: screen;
	opacity: 0.2;
	animation: stEvBreathe 3.4s ease-in-out infinite alternate;
}

/* light sweep, only over the lettering */
.st-event__shine {
	position: absolute;
	left: 26.415%;
	top: 1.348%;
	width: 41.509%;
	height: 86.253%;
	overflow: hidden;
	-webkit-mask-image: url("/assets/events/fast-launch/letters.webp");
	mask-image: url("/assets/events/fast-launch/letters.webp");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.st-event__shine::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 45%;
	background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%);
	transform: translateX(-120%);
	animation: stEvShine 7s ease-in-out infinite;
}

.st-event__ghost {
	transform-origin: 7% 57%;
	translate: calc(var(--px, 0) * -7px) calc(var(--py, 0) * -5px);
	transition: translate 0.5s ease-out;
	animation: stEvFloat 6.5s ease-in-out infinite;
}

.st-event__ghost-halo,
.st-event__ghost-img,
.st-event__rocket-halo,
.st-event__rocket-img {
	position: absolute;
	display: block;
	max-width: none;
}

.st-event__ghost-img {
	left: 1.274%;
	top: 39.892%;
	width: 11.462%;
	height: 34.367%;
	animation: stEvFlicker 9s linear infinite;
}

.st-event__ghost-halo {
	left: -0.708%;
	top: 34.232%;
	width: 15.425%;
	height: 45.687%;
	opacity: 0.5;
	animation: stEvBreathe 2.6s ease-in-out infinite alternate;
}

.st-event__rocket {
	transform-origin: 72% 37.4%;
	translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 4px);
	transition: translate 0.5s ease-out;
	animation: stEvThrust 3.2s ease-in-out infinite;
}

.st-event__rocket-img {
	left: 65.425%;
	top: 18.868%;
	width: 13.16%;
	height: 37.062%;
	animation: stEvShake 0.14s linear infinite alternate;
}

.st-event__rocket-halo {
	left: 64.009%;
	top: 14.825%;
	width: 15.991%;
	height: 45.148%;
	opacity: 0.55;
	animation: stEvBreathe 0.32s ease-in-out infinite alternate;
}

/* fog: a strip twice as wide as the picture, the tile repeats every half */
.st-event__fog {
	position: absolute;
	left: 0;
	bottom: -2%;
	width: 200%;
	background: url("/assets/events/fast-launch/fog.webp") repeat-x left bottom / 50% 100%;
	translate: calc(var(--px, 0) * -14px) 0;
	transition: translate 0.5s ease-out;
}

.st-event__fog--back {
	height: 48%;
	opacity: 0.45;
	animation: stEvDrift 70s linear infinite;
}

.st-event__fog--front {
	height: 30%;
	background-position: 37% bottom;
	opacity: 0.6;
	animation: stEvDrift 38s linear infinite reverse;
}

.st-event__motes {
	position: absolute;
	inset: 0;
	translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -10px);
	transition: translate 0.5s ease-out;
}

.st-event__motes i {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: #c8ff9a;
	box-shadow: 0 0 6px 2px rgba(120, 255, 90, 0.8), 0 0 16px 4px rgba(120, 255, 90, 0.35);
	opacity: 0;
	animation: stEvMote var(--d) ease-in-out var(--t) infinite;
}

.st-event__flash {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(200, 222, 255, 0.95), rgba(150, 190, 255, 0.25) 55%, transparent 80%);
	mix-blend-mode: screen;
	opacity: 0;
	animation: stEvFlash 13s linear 4s infinite;
}

@media (min-width: 1760px) {
	.st-event::before {
		content: "";
		position: absolute;
		inset: -40px;
		background: #0b1a4a url("/assets/events/fast-launch/base.webp") center / cover no-repeat;
		background-image: image-set(url("/assets/events/fast-launch/base.avif") type("image/avif"), url("/assets/events/fast-launch/base.webp") type("image/webp"));
		filter: blur(22px) brightness(0.6) saturate(1.2);
	}

	.st-event__stage {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	}
}

.st-event.is-paused *,
.st-event.is-paused *::before {
	animation-play-state: paused;
}

@keyframes stEvZoom {
	from { scale: 1.03; }
	to { scale: 1.07; }
}

@keyframes stEvBreathe {
	from { opacity: 0.15; }
	to { opacity: 0.75; }
}

@keyframes stEvShine {
	0%, 55% { transform: translateX(-120%); }
	85%, 100% { transform: translateX(260%); }
}

@keyframes stEvFloat {
	0%, 100% { transform: translate(0, 0) rotate(-2deg); }
	50% { transform: translate(0.35%, -2.4%) rotate(2.5deg); }
}

@keyframes stEvFlicker {
	0%, 61%, 64%, 66%, 100% { opacity: 1; }
	62%, 65% { opacity: 0.55; }
}

@keyframes stEvThrust {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(0.3%, -0.85%) rotate(1.2deg); }
}

@keyframes stEvShake {
	from { transform: translate(-0.04%, 0.06%); }
	to { transform: translate(0.04%, -0.06%); }
}

@keyframes stEvDrift {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes stEvMote {
	0% { opacity: 0; transform: translate(0, 0); }
	20% { opacity: 1; }
	50% { opacity: 0.35; transform: translate(10px, -26px); }
	70% { opacity: 0.9; }
	100% { opacity: 0; transform: translate(-6px, -58px); }
}

@keyframes stEvFlash {
	0%, 86%, 100% { opacity: 0; }
	87% { opacity: 0.5; }
	88% { opacity: 0.05; }
	89.5% { opacity: 0.4; }
	92% { opacity: 0; }
}

/* ---------- Featured carousel ---------- */

.st-featured {
	position: relative;
	isolation: isolate;
	padding: var(--gg-space-6) 0 0;
}

/* the current game's art lights the section, fading to the page */
.st-featured__bg {
	position: absolute;
	top: -96px;
	right: 0;
	bottom: -40px;
	left: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%);
}

.st-featured__bg span {
	position: absolute;
	inset: -20px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(8px) saturate(1.15);
	opacity: 0;
	transition: opacity 0.9s ease;
}

.st-featured__bg span.is-on {
	opacity: 0.32;
}

.st-carousel {
	position: relative;
}

.st-carousel > .st-arrow {
	top: calc(50% - 14px);
}

.st-feat {
	display: grid;
	grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
	overflow: hidden;
	border-radius: var(--gg-radius-m);
	background: #142131;
	box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
	animation: stFeatIn 0.35s ease;
}

@keyframes stFeatIn {
	from { opacity: 0; }
}

.st-feat__main {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b1118;
}

.st-feat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-feat__caption {
	display: none;
}

.st-feat__side {
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-3);
	min-width: 0;
	padding: 18px 20px;
	background:
		radial-gradient(circle at 100% 0%, rgba(91, 200, 244, 0.14), transparent 55%),
		linear-gradient(180deg, #1b2c40 0%, #142131 100%);
}

.st-feat--skel .st-feat__side {
	justify-content: center;
}

.st-feat__name {
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
}

.st-feat__name a:hover {
	color: var(--gg-accent-light);
}

.st-feat__sub {
	margin: -6px 0 0;
	overflow: hidden;
	color: var(--gg-text-3);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-feat__shots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.st-feat__shot {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	background: #0b1118;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.st-feat__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.8;
	transition: opacity 0.15s ease;
}

.st-feat__shot:hover {
	border-color: var(--gg-accent);
}

.st-feat__shot:hover img {
	opacity: 1;
}

.st-feat__reason {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0;
	color: var(--gg-text-1);
	font-size: 14px;
	font-weight: 600;
}

.st-feat__reason svg {
	flex: none;
	color: var(--gg-accent);
}

.st-feat__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-feat__tags li {
	padding: 2px 8px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--gg-text-2);
	font-size: 12px;
	line-height: 1.5;
}

.st-feat__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: auto;
}

.st-feat__size {
	padding: 7px 10px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--gg-text-2);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.st-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	min-height: 8px;
	margin-top: 14px;
}

.st-dots button {
	width: 16px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.st-dots button:hover {
	background: rgba(255, 255, 255, 0.4);
}

.st-dots button.is-active {
	background: var(--gg-accent);
}

.st-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gg-space-2);
	padding: var(--gg-space-7) var(--gg-space-5);
	border: 1px dashed var(--gg-line-strong);
	border-radius: var(--gg-radius-l);
	text-align: center;
}

.st-error__title {
	margin: 0;
	font-family: var(--gg-font-display);
	font-size: 20px;
	font-weight: 600;
}

.st-error__text {
	margin: 0 0 var(--gg-space-2);
	color: var(--gg-text-3);
}

/* ---------- Launcher banner ---------- */

.st-section--promo {
	padding-top: var(--gg-space-7);
}

.st-promo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gg-space-6);
	overflow: hidden;
	padding: var(--gg-space-6) var(--gg-space-7);
	border: 1px solid rgba(91, 200, 244, 0.25);
	border-radius: var(--gg-radius-xl);
	background: #142030;
	box-shadow: var(--gg-shadow-2);
}

/* game covers on the right, dark under the text */
.st-promo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(90deg, #142030 0%, rgba(20, 32, 48, 0.94) 40%, rgba(20, 32, 48, 0.45) 100%),
		url("/assets/home/hero-backdrop.webp");
	background-image:
		linear-gradient(90deg, #142030 0%, rgba(20, 32, 48, 0.94) 40%, rgba(20, 32, 48, 0.45) 100%),
		image-set(url("/assets/home/hero-backdrop.avif") type("image/avif"), url("/assets/home/hero-backdrop.webp") type("image/webp"));
	background-position: center;
	background-size: cover;
}

.st-promo__copy {
	max-width: 620px;
}

.st-promo__copy .gg-eyebrow {
	margin-bottom: var(--gg-space-2);
}

.st-promo__title {
	margin: 0;
	font-size: 28px;
}

.st-promo__text {
	margin: var(--gg-space-2) 0 0;
	color: var(--gg-text-2);
}

.st-promo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-3);
}

/* ---------- Genre tiles ---------- */

.st-rail {
	position: relative;
}

.st-rail__track {
	display: grid;
	grid-auto-columns: calc((100% - 4 * 14px) / 5);
	grid-auto-flow: column;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.st-rail__track::-webkit-scrollbar {
	display: none;
}

.st-genre {
	position: relative;
	isolation: isolate;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--gg-radius-m);
	background:
		radial-gradient(120% 90% at 50% 0%, var(--genre), transparent 72%),
		#101925;
	scroll-snap-align: start;
	transition: border-color 0.2s ease;
}

.st-genre::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(8, 12, 18, 0) 40%, rgba(8, 12, 18, 0.92));
}

.st-genre__art {
	position: absolute;
	top: 12%;
	right: 6%;
	left: 6%;
	display: flex;
	justify-content: center;
}

.st-genre__art img {
	width: 34%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
	transition: transform 0.25s ease;
}

/* spare covers (scripts/store.js) stay hidden until one in front drops out */
.st-genre__art img:nth-child(n + 4),
.st-tagbox__grid > :nth-child(n + 9) {
	display: none;
}

.st-genre__art img:nth-child(1) {
	transform: translate(18%, 10%) rotate(-9deg);
}

.st-genre__art img:nth-child(2) {
	position: relative;
	z-index: 1;
}

.st-genre__art img:nth-child(3) {
	transform: translate(-18%, 10%) rotate(9deg);
}

.st-genre:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

.st-genre:hover .st-genre__art img:nth-child(1) {
	transform: translate(8%, 6%) rotate(-12deg);
}

.st-genre:hover .st-genre__art img:nth-child(2) {
	transform: translateY(-4%);
}

.st-genre:hover .st-genre__art img:nth-child(3) {
	transform: translate(-8%, 6%) rotate(12deg);
}

.st-genre__name {
	position: absolute;
	right: 8px;
	bottom: 12px;
	left: 8px;
	z-index: 2;
	color: #fff;
	font-family: var(--gg-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.15;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
	text-transform: uppercase;
}

/* ---------- Tag picks ---------- */

.st-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gg-space-5);
}

.st-tagbox {
	padding: var(--gg-space-4);
}

.st-tagbox__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--gg-space-3);
}

.st-tagbox__title {
	margin: 0;
	font-size: 20px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.st-tagbox__title span {
	color: var(--gg-accent);
}

.st-tagbox__sub {
	margin: 2px 0 0;
	color: var(--gg-text-3);
	font-size: 13px;
}

.st-tagbox__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: var(--gg-space-4);
}

.st-cover {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 1px solid var(--gg-line);
	border-radius: 6px;
	background: #1a2533;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.st-cover img,
.st-row__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-cover__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.18);
	font-family: var(--gg-font-display);
	font-size: 26px;
	font-weight: 600;
}

.st-cover__name {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 18px 6px 6px;
	background: linear-gradient(180deg, transparent, rgba(8, 12, 18, 0.92));
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.st-cover:hover,
.st-cover:focus-visible {
	border-color: rgba(91, 200, 244, 0.5);
	box-shadow: var(--gg-shadow-1);
	transform: translateY(-2px);
}

.st-cover:hover .st-cover__name,
.st-cover:focus-visible .st-cover__name {
	opacity: 1;
}

/* ---------- Tabbed lists ---------- */

.st-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: var(--gg-space-4);
	overflow-x: auto;
	border-bottom: 1px solid var(--gg-line);
	scrollbar-width: none;
}

.st-tabs::-webkit-scrollbar {
	display: none;
}

.st-tab {
	flex: none;
	margin-bottom: -1px;
	padding: 10px 16px 11px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--gg-text-3);
	font-family: var(--gg-font-display);
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.st-tab:hover {
	color: var(--gg-text-1);
}

.st-tab.is-active {
	border-bottom-color: var(--gg-accent);
	color: var(--gg-text-1);
}

.st-lists {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 14px;
	align-items: start;
}

.st-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: opacity 0.2s ease;
}

.st-list.is-loading {
	opacity: 0.55;
}

.st-row {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 6px 16px 6px 6px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.22);
	color: var(--gg-text-1);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.st-row:hover,
.st-row.is-current {
	border-color: rgba(91, 200, 244, 0.3);
	background: linear-gradient(90deg, rgba(91, 200, 244, 0.18), rgba(57, 154, 237, 0.06));
}

.st-row__thumb {
	position: relative;
	display: block;
	width: 54px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 4px;
	background: #1a2533;
}

.st-row__thumb .st-cover__ph {
	font-size: 18px;
}

.st-row__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	line-height: 1.35;
}

.st-row--skel .st-row__body {
	gap: 8px;
}

.st-row__name,
.st-row__meta,
.st-row__tags {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-row__name {
	font-size: 15px;
	font-weight: 600;
}

.st-row__meta {
	color: var(--gg-text-2);
	font-size: 13px;
}

.st-row__tags {
	color: var(--gg-text-3);
	font-size: 12px;
}

.st-row__side {
	color: var(--gg-text-2);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.st-preview {
	position: sticky;
	top: calc(var(--gg-header-h) + 16px);
	min-height: 320px;
	padding: var(--gg-space-4);
}

.st-preview__name {
	margin: 0;
	font-size: 20px;
}

.st-preview__sub {
	margin: 4px 0 var(--gg-space-3);
	color: var(--gg-text-3);
	font-size: 13px;
}

.st-preview__shots {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: var(--gg-space-3);
}

.st-preview__shots img,
.st-preview__ph {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}

.st-lists__more {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: var(--gg-space-3) 0 0;
	color: var(--gg-text-3);
	font-size: 14px;
}

/* ---------- Browse buttons ---------- */

.st-browse {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.st-browse__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 8px 12px;
	border: 1px solid rgba(91, 200, 244, 0.35);
	border-radius: 6px;
	background: linear-gradient(135deg, #2f7ad8 0%, #1d4fa8 100%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-family: var(--gg-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.st-browse__btn:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1099px) {
	.st-lists {
		grid-template-columns: minmax(0, 1fr);
	}

	.st-preview {
		display: none;
	}
}

@media (max-width: 900px) {
	.st-section {
		padding-top: var(--gg-space-7);
	}

	.st-bar {
		flex-wrap: wrap;
		gap: 0;
		padding: 0 6px 8px;
	}

	.st-bar__nav > a,
	.st-drop__btn {
		height: 40px;
		padding: 0 10px;
	}

	/* the genres menu opens under the whole bar */
	.st-drop {
		position: static;
	}

	.st-drop__menu {
		right: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.st-search {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.st-suggest {
		width: 100%;
	}

	.st-feat {
		grid-template-columns: minmax(0, 1fr);
	}

	.st-feat__shots,
	.st-feat__sub {
		display: none;
	}

	.st-feat__side {
		padding: 14px 16px 16px;
	}

	.st-feat__name {
		font-size: 22px;
	}

	.st-promo {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--gg-space-5);
	}

	.st-promo__title {
		font-size: 24px;
	}

	.st-rail__track {
		grid-auto-columns: calc((100% - 2 * 12px) / 3);
		gap: 12px;
	}

	.st-pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.st-browse {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.st-browse__btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.st-featured {
		padding-top: var(--gg-space-5);
	}

	.st-carousel > .st-arrow {
		display: none;
	}

	.st-promo__actions,
	.st-promo__actions .gg-btn {
		width: 100%;
	}

	.st-event-wrap {
		padding-top: var(--gg-space-4);
	}

	.st-rail__track {
		grid-auto-columns: 44%;
	}

	.st-rail .st-arrow {
		display: none;
	}

	.st-tagbox__grid {
		gap: 8px;
	}

	.st-tab {
		padding: 8px 12px 9px;
		font-size: 16px;
	}

	.st-row {
		gap: 12px;
		padding-right: 12px;
	}

	.st-row__side {
		display: none;
	}

	.st-browse__btn {
		min-height: 56px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.st-skel-line,
	.st-cover--skel,
	.st-row--skel .st-row__thumb,
	.st-feat--skel .st-feat__main,
	.st-preview__ph {
		animation: none;
	}

	.st-featured__bg span {
		transition: none;
	}

	.st-feat {
		animation: none;
	}

	.st-event *,
	.st-event *::before {
		animation: none !important;
		transition: none !important;
	}

	.st-event__motes,
	.st-event__flash,
	.st-event__shine {
		display: none;
	}
}
