/* B"H
Boruch Hashem
Blessed is He
Games index foundation: the games tokens re-based as aliases of the
foundation palette, the shell ground, the skip link, and the mobile
shell padding and scroll-margin rules folded in from integrity.
*/

/* Games tokens: aliases of the foundation --aw-* palette.
   The per-game --game-hue custom property stays as art identity
   in the card palette sheets and is not re-based here. */
:root {
	--games-bg: var(--aw-ink);
	--games-line: var(--aw-line);
	--games-line-soft: rgba(245, 237, 220, 0.1);
	--games-text: var(--aw-text);
	--games-text-soft: var(--aw-text-muted);
	--games-muted: var(--aw-text-muted);
	--games-gold: var(--aw-gold);
	--games-cyan: var(--aw-gold-bright);
	--games-shadow: rgba(0, 0, 0, 0.62);
	--games-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.62);
	--games-radius-xl: 30px;
}

/* Page ground */
* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--games-bg);
}

body {
	min-height: 100%;
	margin: 0;
	overflow-x: clip;
	color: var(--games-text);
	background:
		radial-gradient(circle at 12% 5%, rgba(215, 179, 106, 0.22), transparent 34rem),
		radial-gradient(circle at 88% 15%, rgba(233, 201, 121, 0.14), transparent 28rem),
		linear-gradient(155deg, var(--aw-surface) 0%, var(--aw-ink) 58%, var(--aw-surface) 100%);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
	color: var(--aw-text);
}

::selection {
	color: var(--aw-ink);
	background: var(--games-gold);
}

/* Generic interactive states, carried from the token sheet */
a:hover {
	filter: brightness(1.08);
}

a:active {
	transform: scale(0.98);
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

button:hover {
	filter: brightness(1.08);
}

button:active {
	transform: scale(0.98);
}

button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Shell layout */
.gamesShell {
	box-sizing: border-box;
	width: min(1280px, 100%);
	margin: 0 auto;
	padding:
		clamp(18px, 3vw, 38px)
		clamp(16px, 3vw, 34px)
		calc(clamp(34px, 5vw, 64px) + env(safe-area-inset-bottom));
}

.gamesCatalog {
	scroll-margin-top: 18px;
}

/* Breadcrumb chip: the shared trail script paints its words in a
   dim legacy brown that vanishes over this page's cover art. The
   trail wears a solid ink chip here, and the script answers with
   the on-chip palette (ivory words, gold links) on this route. */
.awtsmoos-breadcrumbs {
	width: fit-content;
	max-width: calc(100% - 2rem);
	margin: 0 0 1rem clamp(16px, 3vw, 34px);
	border: 1px solid var(--aw-line);
	border-radius: 999px;
	background: var(--aw-surface);
	box-shadow: var(--aw-shadow);
}
