/* ============================================================
   Geeky Inc Hub Overlay
   ------------------------------------------------------------
   Spec: Jony — JRPG main menu metaphor for game guide hubs.
   Scope: tag-ff6-pixel-remaster, tag-sea-of-stars, page-template-custom-arcade.
   Loaded conditionally via default.hbs on hub/page contexts only.
   ------------------------------------------------------------ */


/* ----------------------------------------------------------
   1. Brand tokens (constant across all hubs)
   ---------------------------------------------------------- */
:root {
	--hub-bg-night: #0B0E1A;
	--hub-surface: #161B2E;
	--hub-surface-raised: #1F2540;
	--hub-border-subtle: #2C3552;
	--hub-text-primary: #E8EAF2;
	--hub-text-muted: #8B92A8;
	--hub-brand-gold: #FFD56B;

	/* hub-* colors are overridden per-hub below; these are inert defaults */
	--hub-primary: var(--hub-brand-gold);
	--hub-secondary: var(--hub-brand-gold);
	--hub-tertiary: var(--hub-brand-gold);
	--hub-gradient: linear-gradient(135deg, #161B2E 0%, #1F2540 100%);

	--hub-corner-size: 6px;
	--hub-radius: 12px;
	--hub-easing: cubic-bezier(0.4, 0, 0.2, 1);
	--hub-duration: 200ms;
}


/* ----------------------------------------------------------
   2. Per-hub overlays (scoped to body class)
   ---------------------------------------------------------- */
body.tag-ff6-pixel-remaster {
	--hub-primary: #7B4FCB;       /* Esper purple */
	--hub-secondary: #D4A547;     /* Magitek brass */
	--hub-tertiary: #A8324E;      /* Kefka crimson */
	--hub-gradient: linear-gradient(135deg, #1F1538 0%, #3D2860 50%, #6B4A2E 100%);
}

body.tag-sea-of-stars {
	--hub-primary: #F4B860;       /* Solstice gold */
	--hub-secondary: #5B7BB0;     /* Lunar blue */
	--hub-tertiary: #C97B47;      /* Coast sunset */
	--hub-gradient: linear-gradient(180deg, #1A2540 0%, #4A5C8B 50%, #C97B47 100%);
}

/* Default hero image per hub — overridden by inline style if the
   Ghost tag has a feature_image set. */
body.tag-ff6-pixel-remaster .hub-hero:not([style*="background-image"]) {
	background-image: url("../images/hubs/ff6-hub-hero.webp");
}
body.tag-sea-of-stars .hub-hero:not([style*="background-image"]) {
	background-image: url("../images/hubs/sea-of-stars-hub-hero.webp");
}
/* Ghost emits two body classes for slug-based page templates
   (page-template AND page-{slug}). Match the slug class directly. */
body.page-play .arcade-hero,
body.page-template-custom-arcade .arcade-hero {
	background-image: url("../images/hubs/arcade-hero.webp");
}


/* ----------------------------------------------------------
   3. Reading progress bar (post-progress already exists in
   Reiro post.hbs). Re-style in hub gold for hub posts only.
   ---------------------------------------------------------- */
body.tag-ff6-pixel-remaster .post-progress::-webkit-progress-value,
body.tag-sea-of-stars .post-progress::-webkit-progress-value {
	background: var(--hub-brand-gold);
}
body.tag-ff6-pixel-remaster .post-progress::-moz-progress-bar,
body.tag-sea-of-stars .post-progress::-moz-progress-bar {
	background: var(--hub-brand-gold);
}


/* ----------------------------------------------------------
   4. Hub hero (60vh banner with feature image background)
   ---------------------------------------------------------- */
.hub-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	background-color: var(--hub-bg-night);
	overflow: hidden;
}

.hub-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(11, 14, 26, 0.20) 0%,
		rgba(11, 14, 26, 0.60) 65%,
		rgba(11, 14, 26, 0.95) 100%
	);
	pointer-events: none;
}

.hub-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem 4rem;
}

.hub-hero-eyebrow {
	font-family: 'VT323', monospace;
	font-size: 1.25rem;
	letter-spacing: 0.2em;
	color: var(--hub-secondary);
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.hub-hero-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	color: var(--hub-text-primary);
	margin: 0 0 1rem;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hub-hero-subtitle {
	font-family: 'VT323', monospace;
	font-size: 1.5rem;
	color: var(--hub-text-muted);
	margin: 0;
	letter-spacing: 0.05em;
}


/* ----------------------------------------------------------
   5. Save File panel — the JRPG menu wrapper that contains
   the article grid on hub pages.
   ---------------------------------------------------------- */
.hub-savefile {
	max-width: 1400px;
	margin: -3rem auto 4rem;
	position: relative;
	z-index: 2;
	background: var(--hub-surface);
	border: 2px solid var(--hub-primary);
	border-radius: var(--hub-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	padding: 0;
	overflow: hidden;
}

.hub-savefile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.5rem;
	background: var(--hub-surface-raised);
	border-bottom: 1px solid var(--hub-border-subtle);
	font-family: 'VT323', monospace;
	font-size: 1.125rem;
	letter-spacing: 0.1em;
	color: var(--hub-secondary);
	text-transform: uppercase;
}

.hub-savefile-header-meta {
	color: var(--hub-text-muted);
	font-size: 0.95rem;
}

.hub-savefile-body {
	padding: 2rem;
}

.hub-savefile-layout {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.hub-savefile-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}


/* ----------------------------------------------------------
   6. Article grid inside the Save File
   ---------------------------------------------------------- */
.hub-article-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.hub-article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.hub-article-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hub-article-card {
	position: relative;
	background: var(--hub-surface-raised);
	border: 1px solid var(--hub-border-subtle);
	border-radius: 8px;
	padding: 1.5rem;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	transition: transform var(--hub-duration) var(--hub-easing),
	            border-color var(--hub-duration) var(--hub-easing),
	            box-shadow var(--hub-duration) var(--hub-easing);
	overflow: hidden;
}

.hub-article-card:hover {
	transform: translateY(-4px);
	border-color: var(--hub-primary);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* 4 corner triangle accents (the JRPG menu callback) */
.hub-article-card::before,
.hub-article-card::after {
	content: "";
	position: absolute;
	width: var(--hub-corner-size);
	height: var(--hub-corner-size);
	background: var(--hub-secondary);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hub-article-card::before { top: 0; left: 0; }
.hub-article-card::after  { top: 0; right: 0; transform: scaleX(-1); }

.hub-article-card-corner-bl,
.hub-article-card-corner-br {
	position: absolute;
	width: var(--hub-corner-size);
	height: var(--hub-corner-size);
	background: var(--hub-secondary);
	clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hub-article-card-corner-bl { bottom: 0; left: 0; transform: scaleX(-1); }
.hub-article-card-corner-br { bottom: 0; right: 0; }

.hub-article-card-tier {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--hub-primary);
	color: var(--hub-bg-night);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'VT323', monospace;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	flex-shrink: 0;
}

.hub-article-card-title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
	color: var(--hub-text-primary);
}

.hub-article-card-title a {
	color: inherit;
	text-decoration: none;
}

.hub-article-card-title a:hover {
	color: var(--hub-secondary);
}

.hub-article-card-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--hub-text-muted);
	margin: 0 0 1rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hub-article-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: 'VT323', monospace;
	font-size: 0.95rem;
	color: var(--hub-text-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hub-article-card-readtime::before {
	content: "· ";
}
.hub-article-card-readtime::after {
	content: " ·";
}

.hub-article-card-checkmark {
	color: var(--hub-secondary);
	display: none;
}

.hub-article-card.is-read .hub-article-card-checkmark {
	display: inline-block;
}


/* ----------------------------------------------------------
   7. Sticky right-rail Table of Contents (desktop only)
   ---------------------------------------------------------- */
.hub-toc-rail {
	display: none;
}

@media (min-width: 1024px) {
	.hub-toc-rail {
		display: block;
		position: sticky;
		top: 6rem;
		align-self: start;
		max-height: calc(100vh - 8rem);
		overflow-y: auto;
		padding: 1.5rem;
		background: var(--hub-surface-raised);
		border: 1px solid var(--hub-border-subtle);
		border-radius: 8px;
	}
}

.hub-toc-rail-title {
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.15em;
	color: var(--hub-secondary);
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.hub-toc-rail-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.hub-toc-rail-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--hub-border-subtle);
}

.hub-toc-rail-list li:last-child {
	border-bottom: none;
}

.hub-toc-rail-list a {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: var(--hub-text-primary);
	text-decoration: none;
	flex: 1;
	line-height: 1.4;
}

.hub-toc-rail-list a:hover {
	color: var(--hub-secondary);
}

.hub-toc-rail-status {
	display: inline-block;
	width: 10px;
	height: 10px;
	border: 1.5px solid var(--hub-text-muted);
	border-radius: 50%;
	flex-shrink: 0;
	transition: background-color var(--hub-duration) var(--hub-easing),
	            border-color var(--hub-duration) var(--hub-easing);
}

.hub-toc-rail-list li.is-read .hub-toc-rail-status {
	background: var(--hub-secondary);
	border-color: var(--hub-secondary);
}

.hub-toc-rail-lastvisit {
	font-family: 'VT323', monospace;
	font-size: 0.875rem;
	color: var(--hub-text-muted);
	letter-spacing: 0.08em;
	border-top: 1px solid var(--hub-border-subtle);
	padding-top: 1rem;
	margin: 0;
}


/* ----------------------------------------------------------
   8. Cross-hub callout (bottom of hub page)
   ---------------------------------------------------------- */
.hub-crosslink {
	max-width: 1400px;
	margin: 0 auto 4rem;
	padding: 2rem;
	background: var(--hub-gradient);
	border-radius: var(--hub-radius);
	border: 1px solid var(--hub-border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.hub-crosslink-text {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--hub-text-primary);
	margin: 0;
}

.hub-crosslink-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: var(--hub-brand-gold);
	color: var(--hub-bg-night);
	font-family: 'VT323', monospace;
	font-size: 1.125rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	transition: transform var(--hub-duration) var(--hub-easing),
	            box-shadow var(--hub-duration) var(--hub-easing);
}

.hub-crosslink-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 213, 107, 0.35);
}


/* ----------------------------------------------------------
   9. Arcade page (/play/) — game select screen
   ---------------------------------------------------------- */
body.page-play,
body.page-template-custom-arcade {
	background: var(--hub-bg-night);
	color: var(--hub-text-primary);
}

.arcade-hero {
	position: relative;
	min-height: 60vh;
	background-size: cover;
	background-position: center;
	background-color: var(--hub-bg-night);
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
}

@media (max-width: 767px) {
	.arcade-hero {
		min-height: 50vh;
		background-attachment: scroll;
	}
}

/* Vignette overlay grounds the title */
.arcade-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center,
		rgba(11, 14, 26, 0.30) 0%,
		rgba(11, 14, 26, 0.65) 60%,
		rgba(11, 14, 26, 0.92) 100%);
	pointer-events: none;
	z-index: 0;
}

/* Twinkling-star atmospheric layer (CSS-only, no images) */
.arcade-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1px 1px at 12% 22%, rgba(255, 213, 107, 0.85), transparent 50%),
		radial-gradient(1px 1px at 78% 38%, rgba(123, 79, 203, 0.85), transparent 50%),
		radial-gradient(1.5px 1.5px at 44% 66%, rgba(244, 184, 96, 0.85), transparent 50%),
		radial-gradient(1px 1px at 88% 80%, rgba(91, 123, 176, 0.85), transparent 50%),
		radial-gradient(1.5px 1.5px at 22% 84%, rgba(255, 213, 107, 0.85), transparent 50%);
	animation: arcade-twinkle 4s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 0;
}

@keyframes arcade-twinkle {
	from { opacity: 0.4; }
	to   { opacity: 1; }
}

.arcade-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 4rem 2rem;
	text-align: center;
}

.arcade-hero-eyebrow {
	font-family: 'VT323', monospace;
	font-size: 1.25rem;
	letter-spacing: 0.3em;
	color: var(--hub-brand-gold);
	text-transform: uppercase;
	margin: 0 0 1rem;
	opacity: 0.9;
}

.arcade-hero-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: clamp(2.5rem, 8vw, 5.5rem);
	letter-spacing: 0.18em;
	color: var(--hub-brand-gold);
	margin: 0 0 1.25rem;
	line-height: 1;
	text-shadow:
		0 0 24px rgba(255, 213, 107, 0.55),
		0 0 48px rgba(255, 213, 107, 0.35),
		0 4px 32px rgba(0, 0, 0, 0.8);
	animation: arcade-title-glow 3s ease-in-out infinite alternate;
}

@keyframes arcade-title-glow {
	from {
		text-shadow:
			0 0 24px rgba(255, 213, 107, 0.55),
			0 0 48px rgba(255, 213, 107, 0.35),
			0 4px 32px rgba(0, 0, 0, 0.8);
	}
	to {
		text-shadow:
			0 0 36px rgba(255, 213, 107, 0.85),
			0 0 80px rgba(255, 213, 107, 0.55),
			0 0 120px rgba(123, 79, 203, 0.35),
			0 4px 32px rgba(0, 0, 0, 0.8);
	}
}

.arcade-hero-subtitle {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 500;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--hub-text-primary);
	margin: 0 0 1.5rem;
	opacity: 0.92;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.arcade-hero-stats {
	display: inline-flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: center;
	font-family: 'VT323', monospace;
	font-size: 1.125rem;
	letter-spacing: 0.18em;
	color: var(--hub-text-muted);
	text-transform: uppercase;
	margin: 0;
	padding: 0.75rem 1.5rem;
	border-top: 1px solid rgba(255, 213, 107, 0.25);
	border-bottom: 1px solid rgba(255, 213, 107, 0.25);
}

.arcade-hero-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.arcade-hero-stat-icon {
	color: var(--hub-brand-gold);
}

.arcade-hero-prompt {
	margin: 1.75rem 0 0;
	font-family: 'VT323', monospace;
	font-size: 0.95rem;
	letter-spacing: 0.4em;
	color: var(--hub-text-muted);
	text-transform: uppercase;
	animation: arcade-prompt-blink 1.4s steps(2, start) infinite;
}

@keyframes arcade-prompt-blink {
	to { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.arcade-hero::after,
	.arcade-hero-title,
	.arcade-hero-prompt {
		animation: none;
	}
}


.arcade-filter {
	max-width: 1400px;
	margin: 2rem auto 1rem;
	padding: 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.arcade-filter-label {
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.15em;
	color: var(--hub-text-muted);
	text-transform: uppercase;
	margin-right: 0.5rem;
}

.arcade-filter-button {
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.1em;
	background: var(--hub-surface);
	color: var(--hub-text-primary);
	border: 1px solid var(--hub-border-subtle);
	padding: 0.4rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color var(--hub-duration) var(--hub-easing),
	            border-color var(--hub-duration) var(--hub-easing),
	            color var(--hub-duration) var(--hub-easing);
}

.arcade-filter-button:hover,
.arcade-filter-button.is-active {
	background: var(--hub-brand-gold);
	color: var(--hub-bg-night);
	border-color: var(--hub-brand-gold);
}


.arcade-grid {
	max-width: 1400px;
	margin: 0 auto 5rem;
	padding: 0 2rem;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.arcade-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.arcade-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.arcade-card {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--hub-surface);
	border: 1px solid var(--hub-border-subtle);
	border-radius: var(--hub-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--hub-text-primary);
	display: flex;
	flex-direction: column;
	transition: transform var(--hub-duration) var(--hub-easing),
	            box-shadow var(--hub-duration) var(--hub-easing);
}

.arcade-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 0 24px rgba(255, 213, 107, 0.35),
	            0 16px 40px rgba(0, 0, 0, 0.5);
}

.arcade-card-art {
	position: relative;
	flex: 0 0 60%;
	background-size: cover;
	background-position: center;
	background-color: var(--hub-surface-raised);
}

.arcade-card-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, var(--hub-surface) 100%);
	pointer-events: none;
}

.arcade-card-body {
	flex: 1;
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--hub-surface);
	position: relative;
	z-index: 1;
}

.arcade-card-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.2;
	letter-spacing: 0.04em;
	margin: 0 0 0.75rem;
	color: var(--hub-text-primary);
}

.arcade-card-stats {
	font-family: 'VT323', monospace;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	color: var(--hub-text-muted);
	text-transform: uppercase;
	line-height: 1.6;
}

.arcade-card-stats .arcade-card-stat {
	display: block;
}

.arcade-card-cta {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%) translateY(8px);
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.2em;
	color: var(--hub-brand-gold);
	text-transform: uppercase;
	opacity: 0;
	transition: opacity var(--hub-duration) var(--hub-easing),
	            transform var(--hub-duration) var(--hub-easing);
	white-space: nowrap;
	pointer-events: none;
}

.arcade-card:hover .arcade-card-cta {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}


/* Empty (coming-soon) slot */
.arcade-card.is-empty {
	background: transparent;
	border: 1.5px dashed var(--hub-border-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	animation: hub-empty-pulse 2s var(--hub-easing) infinite alternate;
}

.arcade-card.is-empty .arcade-card-empty-text {
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.2em;
	color: var(--hub-text-muted);
	text-transform: uppercase;
	text-align: center;
	line-height: 1.6;
}

@keyframes hub-empty-pulse {
	from { opacity: 0.45; }
	to   { opacity: 0.85; }
}


/* ----------------------------------------------------------
   10. Completion toast (rendered by hub-stickiness.js)
   ---------------------------------------------------------- */
.hub-toast {
	position: fixed;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%) translateY(12px);
	padding: 0.875rem 1.5rem;
	background: var(--hub-surface);
	color: var(--hub-brand-gold);
	border: 1.5px solid var(--hub-brand-gold);
	border-radius: 8px;
	font-family: 'VT323', monospace;
	font-size: 1rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
	            0 0 24px rgba(255, 213, 107, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms var(--hub-easing),
	            transform 400ms var(--hub-easing);
	z-index: 9999;
}

.hub-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}


/* ----------------------------------------------------------
   11. Reduced-motion respect
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.hub-article-card,
	.arcade-card,
	.arcade-card-cta,
	.hub-crosslink-cta,
	.hub-toast {
		transition: none;
	}
	.arcade-card.is-empty {
		animation: none;
		opacity: 0.7;
	}
}


/* ----------------------------------------------------------
   12. Mobile padding (375px+) — keep hubs comfortable
   ---------------------------------------------------------- */
@media (max-width: 767px) {
	.hub-hero-content       { padding: 0 1.25rem 2.5rem; }
	.hub-savefile           { margin: -2rem 1rem 3rem; }
	.hub-savefile-body      { padding: 1.25rem; }
	.hub-crosslink          { margin: 0 1rem 3rem; padding: 1.5rem; }
	.arcade-grid            { padding: 0 1rem; }
	.arcade-filter          { padding: 0 1rem; }
}
