@font-face {
	font-family: "Young Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/static/fonts/young-serif-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/static/fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/static/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

/* Dark "noche" theme: yellow sale sticker for discounts, mint for interactive highlights. */
:root {
	color-scheme: dark;
	--bg: #0d1120;
	--bg-glow: #161c33;
	--surface: #141a2b;
	--surface-2: #1b2238;
	--line: #2a3350;
	--fg: #edf0f8;
	--muted: #9ba4c0;
	--faint: #8089a8;
	--tile: #ffffff;
	--accent: #ffcf3d;
	--accent-ink: #1d1604;
	--hl: #7fe7c4;
	--ok: #5fd38f;
	--warn: #f2b04c;
	--bad: #f07a6a;
	--font-display: "Young Serif", Georgia, "Times New Roman", serif;
	--font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--radius: 14px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
	background: var(--bg);
}

body {
	min-height: 100vh;
	background:
		radial-gradient(1200px 600px at 50% -200px, var(--bg-glow), transparent 70%),
		var(--bg);
	background-attachment: fixed;
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--hl);
	outline-offset: 2px;
	border-radius: 6px;
}

.page {
	max-width: 1320px;
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

/* Header */
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 24px;
}

.topbar-links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-block: 8px;
	color: var(--muted);
	font-size: 0.85rem;
	text-decoration: none;
}

.contact-link:hover {
	color: var(--fg);
}

/* Legal pages: a <details> menu, so it opens with a tap and needs no script. */
.legal-menu {
	position: relative;
}

.legal-menu summary {
	cursor: pointer;
	list-style: none;
}

.legal-menu summary::-webkit-details-marker {
	display: none;
}

.legal-menu summary::after {
	content: "▾";
	font-size: 0.7em;
}

.legal-menu[open] summary {
	color: var(--fg);
}

.legal-menu-list {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	display: grid;
	min-width: max-content;
	padding: 6px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}

.legal-menu-list a {
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 0.85rem;
	text-decoration: none;
}

.legal-menu-list a:hover,
.legal-menu-list a:focus-visible {
	background: var(--surface);
	color: var(--fg);
}

.site-brand svg {
	flex: none;
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.15rem;
}

.freshness {
	display: inline-flex;
	text-decoration: none;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 0.85rem;
	white-space: nowrap;
}

.pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ok);
	animation: pulse 2.4s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
	70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

.hero {
	display: grid;
	gap: 14px;
	padding-block: clamp(16px, 4vw, 40px) 4px;
}

.hero-main {
	display: grid;
	gap: 14px;
	align-content: start;
}

/* Pages with a hero column (Black Friday): figures beside the title. */
.hero-aside {
	display: grid;
	gap: 10px;
	align-content: start;
}

.hero-aside h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.2;
}

.hero-aside .landing-highlight-value {
	font-size: 1.3rem;
}

@media (min-width: 960px) {
	.hero-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(32px, 4vw, 64px);
		align-items: end;
	}

	.hero-split-card {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
		align-items: start;
	}
}

/* One column with the campaign card: the card goes after the intro and the
   search after the card, next to the results. */
@media (max-width: 959px) {
	.hero-split-card .hero-main {
		display: contents;
	}

	.hero-split-card .search-container {
		order: 1;
	}
}

h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-wrap: balance;
	max-width: 22ch;
}

.intro-text,
.stats-text {
	color: var(--muted);
	max-width: 65ch;
	font-size: 1rem;
}

/* Short titles and intros that read well across the whole width. */
.hero-wide h1,
.hero-wide .intro-text {
	max-width: none;
}

/* Fill each line instead of splitting long titles into two halves. */
.hero-wide h1 {
	text-wrap: pretty;
}

.stats-text b {
	color: var(--fg);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.shops-trigger {
	font-weight: 600;
	color: var(--fg);
	text-decoration: underline;
	text-decoration-color: var(--hl);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.freshness:hover,
.shops-trigger:hover {
	color: var(--hl);
}

/* Search */
.search-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 6px;
}

.search-input-wrapper {
	position: relative;
	flex: 1 1 420px;
	max-width: 720px;
	min-width: 0;
}

.search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	translate: 0 -50%;
	color: var(--faint);
	pointer-events: none;
}

.search-box {
	width: 100%;
	height: 56px;
	padding: 0 48px 0 52px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 1.05rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.search-box::placeholder {
	color: var(--faint);
}

.search-box:focus {
	border-color: var(--hl);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 18%, transparent);
	background: var(--surface-2);
}

.search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	translate: 0 -50%;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.search-clear:hover {
	background: var(--surface-2);
	color: var(--fg);
}

.search-clear[hidden] {
	display: none;
}

.switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 0.95rem;
	cursor: pointer;
	user-select: none;
}

.switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.switch-track {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 99px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	transition: background-color 0.2s;
}

.switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--muted);
	transition: transform 0.2s, background-color 0.2s;
}

.switch input:checked + .switch-track {
	background: color-mix(in srgb, var(--hl) 30%, var(--surface-2));
	border-color: var(--hl);
}

.switch input:checked + .switch-track::after {
	transform: translateX(16px);
	background: var(--hl);
}

.switch input:focus-visible + .switch-track {
	outline: 2px solid var(--hl);
	outline-offset: 2px;
}

/* Tabs */
.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin-top: 2px;
	border-bottom: 1px solid var(--line);
}

.site-nav-wrap {
	position: relative;
}

.nav-more {
	display: none;
}

/* Phones: one scrollable row, so every page keeps the same header height. */
@media (max-width: 600px) {
	.nav-more {
		position: absolute;
		top: 0;
		bottom: 1px;
		display: flex;
		align-items: center;
		width: 48px;
		padding: 0;
		border: 0;
		color: var(--fg);
		cursor: pointer;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.15s;
	}

	.nav-more-left {
		left: 0;
		justify-content: flex-start;
		background: linear-gradient(to left, transparent, var(--bg) 55%);
	}

	.nav-more-right {
		right: 0;
		justify-content: flex-end;
		background: linear-gradient(to right, transparent, var(--bg) 55%);
	}

	.more-left .nav-more-left,
	.more-right .nav-more-right {
		opacity: 1;
		pointer-events: auto;
	}

	.site-nav {
		flex-wrap: nowrap;
		gap: 0 22px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}
}

.site-nav a {
	padding: 12px 0;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a:hover {
	color: var(--fg);
}

.site-nav a[aria-current="page"] {
	color: var(--fg);
	border-color: var(--hl);
}

/* Black Friday campaign: highlighted until Cyber Monday. */
.site-nav a.nav-campaign {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--accent);
}

.site-nav a.nav-campaign[aria-current="page"] {
	border-color: var(--accent);
}

.live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--accent);
}

.live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--accent);
	animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
	from {
		opacity: 0.7;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(2.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.live-dot::after {
		animation: none;
	}
}

.campaign-banner {
	display: grid;
	gap: 14px;
	margin-bottom: 32px;
	padding: 18px 20px;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
	border-radius: 14px;
	background:
		radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
		var(--surface);
	color: var(--fg);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.hero .campaign-banner {
	margin-bottom: 0;
	align-self: center;
}

.campaign-banner:hover {
	border-color: var(--accent);
}

.campaign-banner-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
}

.campaign-banner-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.campaign-banner-countdown {
	color: var(--muted);
	font-size: 0.85rem;
}

.campaign-banner-main {
	display: flex;
	align-items: center;
	gap: 14px;
}

.campaign-banner-figure {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.campaign-banner-text {
	display: grid;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.campaign-banner-detail {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 400;
}

.campaign-banner-cta {
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

/* The Telegram channel card takes the campaign card's place in Telegram blue. */
.telegram-banner {
	--telegram: #2aabee;
	border-color: color-mix(in srgb, var(--telegram) 45%, var(--line));
	background:
		radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--telegram) 22%, transparent), transparent 60%),
		var(--surface);
}

.telegram-banner:hover {
	border-color: var(--telegram);
}

.telegram-banner .campaign-banner-label {
	color: var(--telegram);
}

.telegram-banner-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--telegram);
	color: #fff;
}

.telegram-banner-icon svg {
	margin-left: -3px;
}

.telegram-banner .campaign-banner-cta {
	background: var(--telegram);
	color: #fff;
}

/* /rebajas/: a one-row invitation to the channel, quieter than the card. */
.telegram-strip {
	--telegram: #2aabee;
	display: flex;
	align-items: center;
	gap: 12px;
	/* As wide as its content on desktop; phones still fill the column. */
	width: fit-content;
	max-width: 100%;
	margin: 12px 0 16px;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--telegram) 45%, var(--line));
	border-radius: 12px;
	background: color-mix(in srgb, var(--telegram) 8%, var(--surface));
	color: var(--fg);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.telegram-strip:hover {
	border-color: var(--telegram);
}

.telegram-strip-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--telegram);
	color: #fff;
}

.telegram-strip-icon svg {
	margin-left: -2px;
}

.telegram-strip-text {
	flex: 1;
	padding-right: 12px;
	line-height: 1.3;
}

.telegram-strip-cta {
	flex: none;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--telegram);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
}

/* Main */
.container {
	padding-block: 28px 64px;
}

.legal {
	max-width: 70ch;
	line-height: 1.6;
	color: var(--fg);
}

.legal h1 {
	margin-bottom: 0.35em;
}

.legal h2 {
	margin-top: 1.75em;
}

.legal ul,
.legal ol {
	padding-left: 1.25em;
}

.legal a {
	color: var(--accent);
}

.legal li {
	margin-block: 0.5em;
}

.section-head {
	display: grid;
	gap: 4px;
	margin-bottom: 20px;
}

.section-head h2,
.landing-content h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.2;
}

.games-grid + .related-offers {
	margin-top: 40px;
}

.section-head p {
	color: var(--faint);
	font-size: 0.9rem;
}

.section-head p a,
.ranking-note a {
	color: inherit;
	text-decoration: underline;
}

/* Search results without game pages: how they are ordered (TRLGDCU art. 20.3). */
.ranking-note {
	color: var(--faint);
	font-size: 0.9rem;
	margin: 0 0 12px;
}

/* Trading card game landings: link to ofertasdecartas.net */
.card-game-callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 32px;
	padding: 18px 20px;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--accent) 10%, var(--surface));
	color: var(--muted);
}

.card-game-callout-title {
	color: var(--fg);
	font-weight: 600;
	font-size: 1.05rem;
}

.card-game-callout-link {
	flex-shrink: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: none;
}

.card-game-callout-link:hover,
.card-game-callout-link:focus-visible {
	filter: brightness(1.08);
}

/* Game landing */
.landing-quickbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 24px;
}

.landing-quick-best {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.landing-quick-info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.landing-quick-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
}

.landing-quick-price strong {
	color: var(--hl);
	font-size: 1.35rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.landing-quick-store {
	color: var(--muted);
	font-size: 0.85rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.landing-quick-cta {
	margin-left: 8px;
	flex: 0 0 auto;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--hl);
	color: var(--bg);
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	white-space: nowrap;
}

.landing-quick-cta:hover,
.landing-quick-cta:focus-visible {
	filter: brightness(1.08);
}

.landing-jumps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

#base-offers-title,
#price-history-title,
#other-offers-title,
#related-offers-title,
#releases-title,
#preorders-title {
	scroll-margin-top: 16px;
}

.landing-content {
	display: grid;
	gap: 14px;
	margin-bottom: 32px;
}

.landing-summary {
	display: grid;
	gap: 8px;
	max-width: 72ch;
	color: var(--muted);
}

.landing-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 6px;
}

.landing-highlight {
	display: grid;
	align-content: start;
	gap: 2px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	min-width: 0;
}

.landing-highlight-label {
	color: var(--faint);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.landing-highlight-value {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.landing-highlight-value[data-size="small"] {
	font-size: 1rem;
	letter-spacing: 0;
	white-space: nowrap;
	overflow-wrap: normal;
}

.landing-highlight-detail {
	color: var(--muted);
	font-size: 0.85rem;
	overflow-wrap: anywhere;
}

/* Games index */
.game-profile {
	margin-top: 32px;
}

.profile-edition, .profile-sources {
	color: var(--faint);
	font-size: 0.85rem;
}

.profile-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.profile-facts div {
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.profile-facts dt { color: var(--faint); font-size: 0.85rem; }
.profile-facts dd { margin: 4px 0 0; font-weight: 600; }
.profile-advice { padding-left: 20px; max-width: 72ch; color: var(--muted); }
.profile-advice li + li { margin-top: 8px; }

/* Game landings: texts across the whole width on desktop. */
.landing-page .landing-summary,
.landing-page .profile-advice {
	max-width: none;
}
.profile-sources a { display: inline-block; margin-left: 8px; text-decoration: underline; }

/* Game directory: filter and A–Z index above the letter groups. */
.games-index-tools {
	display: grid;
	gap: 14px;
	margin-bottom: 24px;
}

.games-index-search {
	max-width: 520px;
}

.games-index-filter {
	display: block;
	height: 48px;
}

/* One row that stays on screen while scrolling the letters. */
.letter-index-wrap {
	position: sticky;
	top: 0;
	z-index: 5;
	margin-bottom: 24px;
	background: var(--bg);
}

.letter-index {
	display: flex;
	gap: 6px;
	padding: 8px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.letter-index-wrap .nav-more {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	width: 48px;
	padding: 0;
	border: 0;
	color: var(--fg);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}

.letter-index-wrap .nav-more-left {
	left: 0;
	justify-content: flex-start;
	background: linear-gradient(to left, transparent, var(--bg) 55%);
}

.letter-index-wrap .nav-more-right {
	right: 0;
	justify-content: flex-end;
	background: linear-gradient(to right, transparent, var(--bg) 55%);
}

.letter-index-wrap.more-left .nav-more-left,
.letter-index-wrap.more-right .nav-more-right {
	opacity: 1;
	pointer-events: auto;
}

.letter-index::-webkit-scrollbar { display: none; }

.letter-index a {
	flex: none;
	min-width: 34px;
	padding: 6px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.letter-index a[aria-current="page"] {
	border-color: var(--hl);
	color: var(--hl);
}

.letter-next {
	display: block;
	margin: 28px 0;
	text-align: center;
	font-weight: 600;
}

.letter-index a:hover,
.letter-index a:focus-visible {
	border-color: var(--hl);
	color: var(--hl);
}

/* Browsers skip rendering letters far from the viewport; "auto" remembers
   each group's real height once it has been rendered. */
.letter-group {
	scroll-margin-top: 64px;
	content-visibility: auto;
	contain-intrinsic-size: auto 900px;
}

.letter-group + .letter-group {
	margin-top: 28px;
}

.letter-heading {
	margin-bottom: 12px;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
}

/* Below a letter: the noindex games only its search finds. */
.letter-unlisted {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.9rem;
}

.letter-unlisted a {
	color: var(--accent);
	text-decoration: underline;
}

.catalog-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	list-style: none;
}

/* The link fills its grid cell so every card in a row has the same height. */
.catalog-list li {
	display: flex;
	min-width: 0;
}

.catalog-list a {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color 0.18s, background-color 0.18s;
}

.catalog-list a:hover {
	background: var(--surface-2);
	border-color: color-mix(in srgb, var(--hl) 55%, var(--line));
}

.catalog-list a:hover .catalog-name {
	color: var(--hl);
}

.catalog-image {
	position: relative;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 9px;
	background: var(--tile);
}

/* The die placeholder lives in CSS so long lists do not repeat an inline SVG. */
.catalog-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bg);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='2' y='2' width='26' height='26' rx='7' fill-opacity='.18'/%3E%3Cg fill-opacity='.45'%3E%3Ccircle cx='9.5' cy='9.5' r='2.3'/%3E%3Ccircle cx='15' cy='15' r='2.3'/%3E%3Ccircle cx='20.5' cy='20.5' r='2.3'/%3E%3C/g%3E%3C/svg%3E") center / 40px 40px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='2' y='2' width='26' height='26' rx='7' fill-opacity='.18'/%3E%3Cg fill-opacity='.45'%3E%3Ccircle cx='9.5' cy='9.5' r='2.3'/%3E%3Ccircle cx='15' cy='15' r='2.3'/%3E%3Ccircle cx='20.5' cy='20.5' r='2.3'/%3E%3C/g%3E%3C/svg%3E") center / 40px 40px no-repeat;
}

.catalog-image img {
	position: absolute;
	inset: 4px;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	object-fit: contain;
	background: var(--tile);
}

.catalog-details {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.catalog-name {
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
	transition: color 0.18s;
}

.catalog-count {
	color: var(--faint);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.catalog-price {
	color: var(--hl);
	font-size: 1rem;
	font-weight: 700;
}

.novelties {
	margin-bottom: 40px;
}

.related-games {
	margin-top: 40px;
}

.related-hubs {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.related-hubs a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.related-hubs a:hover {
	color: var(--ink);
}

.search-landing-price {
	display: grid;
	justify-items: end;
	margin-left: auto;
	padding-left: 8px;
}

.search-landing-from {
	color: var(--faint);
	font-size: 0.75rem;
}

.search-landings .price-current {
	color: var(--hl);
}

.search-landings .catalog-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.search-landings .catalog-name {
	overflow-wrap: break-word;
}

.novelties[hidden] {
	display: none;
}

.novelty-badge {
	justify-self: start;
	color: var(--hl);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.novelty-badge[data-kind="preorder"] {
	color: var(--warn);
}

.novelties-more {
	display: inline-block;
	margin-top: 14px;
	color: var(--hl);
	font-weight: 600;
	text-decoration: none;
}

.novelties-more:hover {
	text-decoration: underline;
}

/* One column on phones: keep the deals close to the top */
@media (max-width: 600px) {
	.novelties-home .catalog-list li:nth-child(n+7) {
		display: none;
	}
}

/* Two rows of drops on phones, so the novelties stay close */
@media (max-width: 560px) {
	.home-drops .game-card:nth-child(n+5) {
		display: none;
	}
}

/* Game grid */
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
	gap: 18px;
}

.game-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s, background-color 0.18s;
}

/* Each part of a card (store, name, meta, note, price, stock, link) sits in
   a row track shared by the cards of the same grid row, so their prices line
   up, and a part no card of the row has (the meta line of stores without
   publishers) takes no space. Spacing goes on the parts instead of the gap
   so empty tracks collapse whole. */
@supports (grid-template-rows: subgrid) {
	/* The grid's row gap would also open between the empty tracks inside each
	   card, so cards are spaced by their bottom margin instead. */
	.games-grid {
		row-gap: 0;
	}

	.games-grid > .game-card {
		display: grid;
		grid-row: span 8;
		grid-template-rows: subgrid;
		row-gap: 0;
		margin-bottom: 18px;
	}

	.games-grid > .loading-sentinel,
	.games-grid > .black-friday-end {
		margin-bottom: 18px;
	}

	.game-card > .game-body {
		display: grid;
		grid-row: 2 / span 7;
		grid-template-rows: subgrid;
		row-gap: 0;
	}

	.game-body > .game-shop { grid-row: 1; }
	/* The cap keeps clamped names from sizing the track by their full text. */
	.game-body > .game-name { grid-row: 2; max-height: 2.6em; margin-top: 8px; align-self: start; }
	.game-body > .game-meta { grid-row: 3; align-self: start; }
	.game-body > .game-meta:not(:empty) { margin-top: 8px; }
	.game-body > .novelty-badge { grid-row: 4; margin-top: 8px; align-self: start; }
	.game-body > .game-price { grid-row: 5; margin-top: 8px; align-self: start; }
	.game-body > .game-stock { grid-row: 6; margin-top: 8px; align-self: end; }
	.game-body > .game-compare { grid-row: 7; margin-top: 10px; align-self: end; }
}

.game-card:hover {
	transform: translateY(-3px);
	background: var(--surface-2);
	border-color: color-mix(in srgb, var(--hl) 55%, var(--line));
}

.game-cover {
	position: relative;
	aspect-ratio: 1;
	max-width: 100%;
	margin: 8px 8px 0;
	border-radius: 9px;
	background: var(--tile);
}

.game-image {
	position: absolute;
	inset: 6%;
	width: 88%;
	height: 88%;
	object-fit: contain;
}

.cover-fallback {
	display: none;
	position: absolute;
	inset: 0;
	place-items: center;
	color: var(--bg);
}

.game-cover.no-img .cover-fallback {
	display: grid;
}

.sticker {
	position: absolute;
	top: -8px;
	left: -6px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	rotate: -10deg;
	box-shadow: 0 3px 0 rgb(0 0 0 / 0.25);
	transition: rotate 0.25s ease;
}

.sticker::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--accent-ink) 35%, transparent);
}

.sticker-big {
	width: 66px;
	height: 66px;
	font-size: 1.2rem;
}

.game-card:hover .sticker {
	rotate: 4deg;
}

.game-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	min-width: 0;
	padding: 12px 14px 14px;
}

.game-shop {
	overflow: hidden;
	color: var(--faint);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.game-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.game-link {
	color: inherit;
	text-decoration: none;
}

/* The store link covers the whole card; the landing button sits above it. */
.game-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--radius);
}

.game-link:focus-visible {
	outline: none;
}

.game-card:has(.game-link:focus-visible) {
	outline: 2px solid var(--hl);
	outline-offset: 2px;
}

.game-compare {
	position: relative;
	z-index: 2;
	display: block;
	margin-top: 2px;
	padding: 7px 10px;
	border: 1px solid color-mix(in srgb, var(--hl) 45%, var(--line));
	border-radius: 8px;
	color: var(--hl);
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s, border-color 0.18s;
}

.game-compare:hover,
.game-compare:focus-visible {
	background: color-mix(in srgb, var(--hl) 14%, transparent);
	border-color: var(--hl);
}

/* One line at most, so it never pushes one card's price below the others. */
.game-meta {
	display: flex;
	gap: 12px;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.3;
	white-space: nowrap;
}

.game-meta span {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
}

.game-meta span:first-child {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-meta svg {
	color: var(--faint);
}

.game-price {
	display: grid;
	gap: 2px;
	padding-top: 10px;
}

.price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.price-current {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.price-original {
	color: var(--faint);
	font-size: 0.9rem;
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.price-shipping {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 6px;
	padding: 5px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: color-mix(in srgb, var(--fg) 5%, transparent);
	color: var(--fg);
	font-size: 0.78rem;
	line-height: 1.35;
}

.price-shipping svg {
	flex: none;
	margin-top: 1px;
	color: var(--muted);
}

.shipping-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shipping-text strong {
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.price-shipping .shipping-threshold {
	color: var(--muted);
}

.price-shipping.is-free,
.price-shipping.is-free svg {
	color: var(--ok);
	font-weight: 600;
}

.game-stock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 7px;
	min-width: 0;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8rem;
}

.game-stock::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dot, var(--faint));
}

.game-stock[data-stock="in_stock"] { --dot: var(--ok); }
.game-stock[data-stock="preorder"] { --dot: var(--warn); color: var(--warn); }
.game-stock[data-stock="backorder"] { --dot: var(--warn); }
.game-stock[data-stock="out_of_stock"] { --dot: var(--bad); }

.stock-label {
	flex: none;
}

.game-stock small {
	order: 3;
	flex-basis: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-left: 14px;
	color: var(--faint);
	font-size: 0.75rem;
	line-height: 1.35;
}

.game-go {
	flex: none;
	margin-left: auto;
	color: var(--hl);
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.18s;
}

.game-card:hover .game-go,
.game-card:focus-within .game-go {
	opacity: 1;
}

/* Hide the store hint while the game page button is hovered or focused. */
.game-card:has(.game-compare:hover, .game-compare:focus-visible) .game-go {
	opacity: 0;
}

.game-card.is-out .game-cover {
	filter: grayscale(0.85) brightness(0.75);
}

.game-card.is-out .price-current {
	color: var(--muted);
}

/* Loading sentinel for infinite scroll */
.htmx-indicator {
	display: none;
}

.htmx-indicator.htmx-request {
	display: block;
}

.loading-sentinel {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 16px;
	color: var(--faint);
	font-size: 0.9rem;
}

.loading-die {
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: var(--fg);
	animation: roll 1.4s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

.loading-die b {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bg);
}

.loading-die b:nth-child(1) { top: 6px; left: 6px; }
.loading-die b:nth-child(2) { top: 12px; left: 12px; }
.loading-die b:nth-child(3) { bottom: 6px; right: 6px; }

@keyframes roll {
	0% { transform: rotate(0) translateY(0); }
	30% { transform: rotate(90deg) translateY(-8px); }
	50%, 100% { transform: rotate(180deg) translateY(0); }
}

/* Empty state */
.empty-state {
	padding: 56px 16px;
	color: var(--muted);
	text-align: center;
}

.empty-state-title {
	margin-bottom: 6px;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 1.4rem;
}

.empty-state-card {
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 560px;
	margin: 24px auto;
	padding: 32px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.empty-state-card .empty-state-title {
	margin-bottom: 0;
	overflow-wrap: anywhere;
}

.empty-state-cta {
	margin-top: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--hl);
	color: var(--bg);
	font-weight: 700;
	text-decoration: none;
}

/* "Mostrar agotados" sits below the message of a search without offers. */
.empty-state .empty-state-cta[data-mostrar-agotados] {
	display: inline-block;
	margin-top: 14px;
}

.empty-state-cta:hover,
.empty-state-cta:focus-visible {
	background: color-mix(in srgb, var(--hl) 85%, white);
}

/* Stores page */
.stores-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* Black Friday: link from the block of new drops to all of them. */
.black-friday-all-new {
	display: table;
	margin: 22px auto 0;
}

/* Black Friday: back from the new drops to all of them. */
.black-friday-back-inline {
	color: var(--hl);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.black-friday-back-inline:hover,
.black-friday-back-inline:focus-visible {
	text-decoration: underline;
}

.black-friday-back {
	display: inline-block;
}

.black-friday-end {
	grid-column: 1 / -1;
	margin-top: 24px;
	padding: 28px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: center;
}

.drops-order {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 18px 0 4px;
}

.drops-order-label {
	margin-right: 4px;
	color: var(--muted);
	font-size: 0.9rem;
}

.drops-order a {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--fg);
	font-size: 0.9rem;
	text-decoration: none;
}

.drops-order a:hover {
	border-color: var(--hl);
}

.drops-order a[aria-current="page"] {
	border-color: var(--hl);
	background: var(--hl);
	color: var(--bg);
	font-weight: 600;
}

.games-grid > .drops-day {
	grid-column: 1 / -1;
	margin: 18px 0 2px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--line);
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 400;
}

.games-grid > .drops-day:first-child {
	margin-top: 0;
}

.recap-table-wrap {
	overflow-x: auto;
	margin-top: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.recap-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.recap-table th,
.recap-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: baseline;
}

.recap-table thead th {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.recap-table tbody tr:last-child > * {
	border-bottom: 0;
}

.recap-table tbody th {
	font-weight: 600;
}

.recap-table tbody th a {
	color: var(--fg);
}

.recap-table .num {
	text-align: right;
	font-family: var(--font-mono);
	white-space: nowrap;
}

.recap-table s {
	color: var(--faint);
}

.recap-percent {
	color: var(--hl);
	font-weight: 600;
}

@media (max-width: 640px) {
	.recap-table th,
	.recap-table td {
		padding: 8px 10px;
	}

	.recap-table thead th:nth-child(4),
	.recap-table tbody td:nth-child(4) {
		display: none;
	}
}

.black-friday-end p {
	margin: 0 0 6px;
	color: var(--muted);
}

.black-friday-end .black-friday-back {
	align-self: center;
	padding: 14px 28px;
	font-size: 1.1rem;
}

/* Black Friday: search above the drops. */
.black-friday-search {
	margin: 0 0 24px;
}

.black-friday-method .profile-advice,
.black-friday-balance .profile-advice {
	max-width: none;
}

.search-input-wrapper.stores-filter {
	flex: 0 1 320px;
}

.store-list {
	display: grid;
	gap: 8px;
	list-style: none;
}

.store-row {
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px auto;
	align-items: center;
	gap: 8px 24px;
	padding: 14px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.store-shipping {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	min-width: 0;
}

.store-shipping svg {
	flex: none;
	color: var(--faint);
}

.store-row:hover,
.store-row:focus-visible {
	border-color: var(--hl);
}

.store-row:hover .store-name strong {
	color: var(--hl);
}

.store-name {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.store-name strong {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.store-domain {
	color: var(--faint);
	font-size: 0.85rem;
	overflow-wrap: anywhere;
}

.store-figures {
	display: grid;
	grid-template-columns: 80px 110px 120px;
	gap: 16px;
}

.store-figures div {
	display: grid;
	gap: 2px;
}

.store-figures dt {
	color: var(--faint);
	font-size: 0.78rem;
}

.store-figures dd {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.store-figures dd.is-stale {
	color: var(--warn);
}

.store-breadcrumb {
	color: var(--faint);
	font-size: 0.88rem;
}

.store-breadcrumb a {
	color: var(--muted);
}

.store-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.store-visit-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: none;
}

.store-visit-button:hover {
	background: color-mix(in srgb, var(--accent) 85%, white);
}

.store-shipping-box {
	flex: 1 1 100%;
	display: grid;
	gap: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
	color: var(--muted);
}

.store-shipping-line {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.store-shipping-line svg {
	flex: none;
	color: var(--hl);
	transform: translateY(2px);
}

.store-shipping-line strong {
	color: var(--fg);
	font-weight: 600;
}

.store-shipping-note {
	color: var(--faint);
	font-size: 0.78rem;
}

.store-page ~ section,
.store-empty {
	margin-top: 40px;
}

.store-deal-note {
	color: var(--faint);
	font-size: 0.82rem;
}

.stores-method {
	display: grid;
	gap: 10px;
	margin-top: 40px;
	color: var(--muted);
	font-size: 0.92rem;
}

.stores-method h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	color: var(--fg);
}

.stores-method b {
	color: var(--fg);
	font-weight: 600;
}

@media (max-width: 720px) {
	.store-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.store-shipping:empty {
		display: none;
	}

	/* Domain beside the name, so each card takes one line less. */
	.store-name {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px 8px;
	}

	.store-figures {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Toast notifications */
#toast-container {
	position: fixed;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.toast {
	min-width: 300px;
	max-width: 500px;
	padding: 14px 18px;
	background: var(--surface);
	border: 1px solid var(--bad);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
	color: var(--fg);
	pointer-events: auto;
	animation: slideIn 0.3s ease-out;
}

.toast.fade-out {
	animation: fadeOut 0.3s ease-out forwards;
}

.toast-title {
	margin-bottom: 2px;
	color: var(--bad);
	font-weight: 600;
}

.toast-message {
	font-size: 0.875rem;
}

@keyframes slideIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}

@media (max-width: 600px) {
	#toast-container {
		left: 16px;
		right: 16px;
		transform: none;
	}

	.toast {
		min-width: auto;
		width: 100%;
	}
}

@media (max-width: 560px) {
	/* The brand takes its own line so its name never wraps. */
	.topbar {
		flex-wrap: wrap;
		gap: 6px 16px;
		padding-block: 14px 8px;
	}

	.site-brand {
		flex: 1 0 100%;
	}

	.brand-name {
		white-space: nowrap;
	}

	.topbar-actions {
		flex: 1 1 100%;
		justify-content: space-between;
		gap: 12px;
	}

	.topbar-links {
		margin-left: auto;
		gap: 10px;
	}

	.games-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	@supports (grid-template-rows: subgrid) {
		.games-grid > .game-card {
			margin-bottom: 12px;
		}
	}

	.game-body {
		padding: 10px 10px 12px;
	}

	.game-price {
		padding-top: 4px;
	}

	.price-row {
		gap: 2px 6px;
	}

	.price-current {
		font-size: 1.18rem;
	}

	.price-original {
		font-size: 0.78rem;
	}

	.sticker {
		top: -6px;
		left: -4px;
		width: 46px;
		height: 46px;
		font-size: 0.88rem;
	}

	.sticker-big {
		width: 52px;
		height: 52px;
		font-size: 0.98rem;
	}

	.game-meta,
	.game-go,
	.freshness-long {
		display: none;
	}

	.game-compare {
		padding: 6px 4px;
		white-space: nowrap;
	}

	.search-box {
		height: 52px;
	}

	.brand-name {
		font-size: 1rem;
	}

	/* Icons only, so the header fits; screen readers still get the label. */
	.contact-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.contact-link {
		padding-inline: 6px;
	}

	.landing-highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.price-history .landing-highlights {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.landing-highlight {
		padding: 10px 12px;
	}

	.landing-highlight-value {
		font-size: 1.05rem;
	}

	.landing-quick-best {
		flex: 1 1 100%;
		padding: 10px 12px;
		gap: 10px;
	}

	.landing-quick-price strong {
		font-size: 1.2rem;
	}

	.landing-quick-cta {
		margin-left: auto;
		padding: 7px 12px;
		font-size: 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Price history */
.price-chart {
	display: grid;
	gap: 6px;
	margin-top: 6px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.price-chart-plot {
	position: relative;
}

.price-chart svg {
	display: block;
	width: 100%;
	height: 160px;
	overflow: visible;
}

.price-chart-area {
	fill: var(--hl);
	opacity: 0.12;
}

.price-chart-line {
	fill: none;
	stroke: var(--hl);
	stroke-width: 2;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.price-chart-low {
	stroke: var(--accent);
	stroke-width: 1;
	stroke-dasharray: 4 4;
	vector-effect: non-scaling-stroke;
}

.price-chart-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.price-chart-y {
	color: var(--faint);
	font-family: var(--font-mono);
	font-size: 0.7rem;
}

.price-chart-min {
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
}

.price-chart-x {
	display: flex;
	justify-content: space-between;
	color: var(--faint);
	font-family: var(--font-mono);
	font-size: 0.7rem;
}

.price-chart figcaption {
	color: var(--faint);
	font-size: 0.8rem;
}

.price-chart-plot {
	cursor: crosshair;
	touch-action: pan-y;
	border-radius: 4px;
}

.price-chart-plot:focus-visible {
	outline: 2px solid var(--hl);
	outline-offset: 4px;
}

.price-chart-guide {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--muted);
	opacity: 0.5;
	pointer-events: none;
}

.price-chart-dot {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: var(--hl);
	box-shadow: 0 0 0 3px var(--surface);
	pointer-events: none;
}

.price-chart-tip {
	position: absolute;
	top: 0;
	padding: 6px 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 0.8rem;
	line-height: 1.4;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	z-index: 1;
}

.price-chart-guide[hidden], .price-chart-dot[hidden], .price-chart-tip[hidden] {
	display: none;
}

/* /enlaces/: recommended sites with their logos */
.links-section + .links-section {
	margin-top: 48px;
}

.link-cards {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(340px, calc((100% - 20px) / 2))), 1fr));
	gap: 20px;
}

.link-cards li {
	display: flex;
}

.link-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s, transform 0.15s;
}

.link-card:hover,
.link-card:focus-visible {
	border-color: var(--hl);
	transform: translateY(-2px);
}

.link-card-logo {
	display: grid;
	place-items: center;
	height: 150px;
	padding: 20px 28px;
	background:
		radial-gradient(120% 90% at 50% 0%, var(--bg-glow), transparent 75%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}

.link-card-logo img {
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.link-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.link-card-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.link-card-title strong {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.2;
}

.link-card-domain {
	color: var(--faint);
	font-size: 0.85rem;
}

.link-card-tagline {
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 600;
}

.link-card-text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.link-card-cta {
	margin-top: auto;
	padding-top: 6px;
	color: var(--hl);
	font-size: 0.9rem;
	font-weight: 600;
}

.link-card:hover .link-card-cta,
.link-card:focus-visible .link-card-cta {
	text-decoration: underline;
}

.links-section .section-head p {
	max-width: none;
}

/* /mejores-juegos-de-mesa/: lists of the best rated games by kind */
.best-hubs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 16px;
}

.best-hubs li {
	display: flex;
}

.best-hub {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	color: inherit;
	text-decoration: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s, transform 0.15s;
}

.best-hub:hover,
.best-hub:focus-visible {
	border-color: var(--hl);
	transform: translateY(-2px);
}

.best-hub-covers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.best-hub-covers .catalog-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}

.best-hub-body {
	display: grid;
	gap: 6px;
}

.best-hub-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.2;
}

.best-hub:hover .best-hub-title {
	color: var(--hl);
}

.best-hub-text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.best-hub-count {
	color: var(--faint);
	font-size: 0.85rem;
}

.best-games-position {
	flex: 0 0 auto;
	min-width: 1.6em;
	color: var(--faint);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.best-games-others {
	margin-top: 40px;
}

.best-games-others ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.best-games-others a {
	display: inline-block;
	padding: 6px 14px;
	color: var(--fg);
	text-decoration: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.best-games-others a:hover {
	border-color: var(--hl);
	color: var(--hl);
}

/* /juegos-de-mesa-para-regalar/: gift ideas by price range */
.gift-ranges {
	margin: 0 0 28px;
}

.gift-section {
	margin-bottom: 40px;
	scroll-margin-top: 16px;
}

.gift-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.gift-label {
	padding: 1px 8px;
	color: var(--muted);
	font-size: 0.75rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 999px;
}
