@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: #6c7594;
	--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;
}

.site-brand svg {
	flex: none;
}

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

.freshness {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	cursor: pointer;
	display: inline-flex;
	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;
}

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;
}

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

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

.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: 28px;
	border-bottom: 1px solid var(--line);
}

.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);
}

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

.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;
}

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

/* Game landing */
.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;
	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-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; }
.profile-sources a { display: inline-block; margin-left: 8px; text-decoration: underline; }

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

.catalog-list a {
	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);
}

.catalog-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--bg);
}

.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;
}

.novelties {
	margin-bottom: 40px;
}

.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;
	}
}

/* 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;
}

.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-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	color: var(--muted);
	font-size: 0.8rem;
}

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

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

.game-price {
	display: grid;
	gap: 2px;
	margin-top: auto;
	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-saving {
	color: var(--ok);
	font-size: 0.82rem;
	font-weight: 600;
}

.game-stock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 7px;
	min-width: 0;
	margin-top: 4px;
	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="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-visible .game-go {
	opacity: 1;
}

.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;
}

/* Shops dialog */
.shops-dialog {
	width: min(720px, calc(100vw - 32px));
	max-height: min(78vh, 760px);
	margin: auto;
	background: var(--surface);
	color: var(--fg);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}

.shops-dialog::backdrop {
	background: rgb(0 0 0 / 0.6);
	backdrop-filter: blur(3px);
}

.shops-dialog[open] {
	display: flex;
	flex-direction: column;
	animation: dialogIn 0.2s ease-out;
}

@keyframes dialogIn {
	from { opacity: 0; transform: translateY(12px); }
}

.shops-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}

.shops-title {
	flex: 1;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.35rem;
}

.shops-filter {
	width: 170px;
	max-width: 40vw;
	height: 36px;
	padding: 0 12px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	outline: none;
}

.shops-filter:focus {
	border-color: var(--hl);
}

.shops-close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-size: 1.4rem;
	cursor: pointer;
}

.shops-close:hover {
	background: var(--surface-2);
	color: var(--fg);
}

.shops-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2px 20px;
	padding: 12px 20px 20px;
	overflow-y: auto;
	list-style: none;
	scrollbar-color: var(--line) transparent;
}

.shop-link {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	padding: 9px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
	font-size: 0.92rem;
	text-decoration: none;
}

a.shop-link:hover .shop-link-name {
	color: var(--hl);
}

.shop-link-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shop-updated {
	color: var(--faint);
	font-size: 0.82rem;
	white-space: nowrap;
}

.shop-updated.is-stale {
	color: var(--warn);
}

/* 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) {
	.games-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

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

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

	.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;
	}

	.search-box {
		height: 52px;
	}

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

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

/* TCG navigation and filters. */
.site-brand svg { overflow: visible; }
.filters { display: grid; gap: 14px; margin-top: 10px; }
.filters .search-input-wrapper { width: 100%; max-width: 800px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; }
.select-filter { display: grid; gap: 5px; flex: 1 1 165px; max-width: 280px; min-width: 0; }
.select-filter > span { color: var(--muted); font-size: .78rem; }
select { width: 100%; min-width: 0; height: 42px; padding: 0 30px 0 12px; color: var(--fg); font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.filter-row .switch { padding-block: 9px; font-size: .85rem; }
.search-submit { border: 0; border-radius: 10px; background: var(--hl); color: var(--accent-ink); padding: 11px 18px; font-weight: 600; cursor: pointer; }
.search-submit:hover { filter: brightness(1.1); }
.search-progress { color: var(--hl); font-size: .85rem; }
.filters:has(.htmx-request) .search-progress { display: block; }
.game-card { overflow: visible; }
.game-cover { display: block; }
.game-name a { text-decoration: none; }
.game-name a:hover { color: var(--hl); }
.game-body .game-shop { color: var(--muted); }
.more-link { color: var(--hl); text-decoration: none; font-weight: 600; }
.novelty-price { font-weight: 700; color: var(--fg); }
.novelty-count { color: var(--muted); font-size: .85rem; margin-block: 18px; }
.novelty-filters { display: grid; gap: 14px; }
.novelty-filters .search-input-wrapper { width: 100%; max-width: 800px; }
.catalog-list a { height: 100%; }
.breadcrumb { color: var(--muted); font-size: .85rem; }
.breadcrumb span { padding-inline: 7px; color: var(--faint); }
.game-directory { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.game-directory.directory-page { margin-top: 0; padding-top: 0; border-top: 0; }
.game-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.game-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.game-links a:hover { color: var(--hl); border-color: var(--hl); }
.game-links a span { color: var(--hl); }
.site-footer { display: grid; gap: 5px; padding-block: 24px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.shops-list [hidden] { display: none; }
.shop-link { align-items: center; }
.shop-updated { max-width: 45%; white-space: normal; text-align: right; }
.shops-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.freshness.is-stale .pulse { background: var(--warn); animation: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 10px 16px; background: var(--hl); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 8px; }
@media (max-width: 600px) {
    .topbar { gap: 10px; }
    .freshness { font-size: .7rem; gap: 5px; }
    .select-filter { max-width: none; flex-basis: 130px; }
    .game-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-links a { padding: 12px; font-size: .85rem; overflow-wrap: anywhere; }
    .shops-head { flex-wrap: wrap; gap: 8px; padding: 14px; }
    .shops-filter { width: 130px; }
    .game-meta { display: flex; font-size: .7rem; }
    .game-name { font-size: .9rem; -webkit-line-clamp: 3; }
    .game-shop { font-size: .6rem; }
    .game-stock { font-size: .72rem; }
}

.novelty-batch > .novelty-batch { margin-top: 12px; }
