:root {
	--bg-deep: #0c0e14;
	--bg-card: #141824;
	--bg-hover: #1a2030;
	--bg-sidebar: #0f1219;
	--text: #e8ecf4;
	--text-muted: #9aa3b5;
	--gold: #f1c40f;
	--accent: #5865f2;
	--accent-hover: #4752c4;
	--border: rgba(255, 255, 255, 0.08);
	--radius: 12px;
	--sidebar-w: 260px;
	--header-h: 52px;
	--app-header-h: var(--header-h);
}
* { box-sizing: border-box; }
html {
	overflow-x: clip;
}
body {
	margin: 0;
	overflow-x: clip;
	font-family: "Inter", system-ui, sans-serif;
	background: var(--bg-deep);
	color: var(--text);
	line-height: 1.55;
}
body.wiki-app {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}
body.wiki-app .play-header {
	flex: 0 0 auto;
}
body.wiki-app .wiki-wrap {
	flex: 1;
	min-height: 0;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
	border-bottom: 1px solid var(--border);
	background: rgba(12, 14, 20, 0.92);
	backdrop-filter: blur(8px);
	position: sticky;
	top: 0;
	z-index: 30;
}
.site-header .inner {
	max-width: none;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.logo { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1rem; font-size: 0.9rem; align-items: center; }
.nav-links a { color: var(--text-muted); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s, transform 0.15s;
	white-space: nowrap;
}
.nav-cta:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	text-decoration: none !important;
}

.wiki-wrap {
	margin: 0;
	padding: 0;
	min-height: calc(100vh - var(--app-header-h, var(--header-h)));
}

.wiki-shell {
	display: grid;
	grid-template-columns: var(--sidebar-w) 1fr;
	min-height: calc(100vh - var(--app-header-h, var(--header-h)));
}

.wiki-sidebar {
	background: var(--bg-sidebar);
	border-right: 1px solid var(--border);
	padding: 0.85rem 0.65rem 1.5rem;
	position: sticky;
	top: var(--app-header-h, var(--header-h));
	height: calc(100vh - var(--app-header-h, var(--header-h)));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sidebar-section {
	margin-bottom: 1.1rem;
}
.sidebar-section-title {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	padding: 0.35rem 0.55rem 0.25rem;
	margin: 0;
}
.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.sidebar-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--text-muted);
	padding: 0.42rem 0.55rem;
	font: inherit;
	font-size: 0.88rem;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover {
	background: var(--bg-hover);
	color: var(--text);
}
.sidebar-link.active {
	background: rgba(88, 101, 242, 0.22);
	color: #fff;
	font-weight: 600;
}
.sidebar-link.park-link {
	padding-left: 0.75rem;
}
.sidebar-link.sub-link {
	padding-left: 1.35rem;
	font-size: 0.82rem;
}
.sidebar-link.ride-link {
	padding-left: 1.85rem;
}
.sidebar-link.collect-link {
	padding-left: 2.35rem;
	font-size: 0.78rem;
}
.sidebar-nav-nested {
	margin-left: 0.35rem;
	padding-left: 0.25rem;
	border-left: 1px solid var(--border);
}
.sidebar-land-group {
	margin-bottom: 0.1rem;
}
.sidebar-progress {
	position: relative;
	flex: 0 0 3.25rem;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}
.sidebar-progress.compact {
	flex: 0 0 2.75rem;
	height: 5px;
}
.sidebar-progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5865f2, #3ba55d);
	border-radius: 999px;
}
.sidebar-progress-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.card-progress {
	margin-top: 0.45rem;
}
.card-progress .sidebar-progress {
	width: 100%;
	flex: 1 1 auto;
	height: 8px;
}
.collection-stats {
	margin: 0.75rem 0 1rem;
}
.collection-stats-summary {
	margin: 0 0 0.65rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}
.collection-stat .meta {
	font-weight: 400;
}
.collection-pct {
	margin-top: 0.35rem;
	color: var(--gold);
}

.game-guide {
	max-width: 40rem;
}
.game-guide-lead {
	font-size: 1.02rem;
	color: var(--text);
	margin: 0 0 1.25rem;
}
.game-guide-steps {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.game-guide-steps li {
	color: var(--text-muted);
}
.game-guide-steps strong {
	color: var(--text);
}
.game-guide-steps code {
	font-size: 0.88em;
	background: var(--bg-card);
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
}
.game-guide h2 {
	font-size: 1rem;
	margin: 0 0 0.65rem;
	color: var(--text);
}
.game-guide-extras {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.game-guide-extras strong {
	color: var(--text);
}
.game-guide-foot {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.patch-notes {
	max-width: 44rem;
	margin: 0 auto;
	width: 100%;
}
.patch-notes-lead {
	font-size: 0.95rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.55;
}
.patch-notes-h2 {
	margin: 1.35rem 0 0.55rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text);
}
.patch-notes-h2:first-child {
	margin-top: 0;
}
.patch-notes-h3 {
	margin: 1rem 0 0.45rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
}
.patch-notes-p {
	margin: 0 0 0.75rem;
	color: var(--text-muted);
}
.patch-notes-list {
	margin: 0 0 0.85rem;
	padding-left: 1.2rem;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.patch-notes-list strong {
	color: var(--text);
}
.patch-notes-sep {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 1.25rem 0;
}
.patch-notes-foot {
	margin-top: 1.25rem;
}
.patch-notes-empty {
	color: var(--text-muted);
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg-card);
}

.patch-notes-layout {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-height: 0;
	align-content: flex-start;
}

.patch-notes-page-head {
	margin: 0;
	flex-shrink: 0;
	padding-bottom: 0.15rem;
}

.patch-notes-page-eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gold);
}

.patch-notes-page-title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--text);
	line-height: 1.15;
}

.patch-notes-page-meta {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: var(--text-muted);
}

.patch-notes-intro-card {
	flex-shrink: 0;
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg-card);
	border-left: 3px solid rgba(241, 196, 15, 0.55);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.patch-notes-intro-card .patch-notes-p:last-child,
.patch-notes-intro-card .patch-notes-lead:last-child {
	margin-bottom: 0;
}

.patch-notes-release-nav {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	flex-shrink: 0;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(20, 24, 36, 0.72);
}

.patch-notes-nav-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

.patch-notes-release-select {
	width: 100%;
	max-width: 100%;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font: inherit;
	font-size: 0.88rem;
}

.patch-notes-release-chips {
	display: none;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.patch-notes-release-chip {
	padding: 0.32rem 0.55rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text-muted);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.patch-notes-release-chip:hover {
	border-color: rgba(241, 196, 15, 0.35);
	color: var(--text);
}

.patch-notes-release-chip.active {
	border-color: rgba(241, 196, 15, 0.45);
	color: var(--gold);
	background: rgba(241, 196, 15, 0.08);
}

.patch-notes-release-card {
	flex: 0 0 auto;
	min-height: 0;
	padding: 1rem 1.05rem 1.05rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg-card);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.patch-notes-release-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
	padding: 0 0 0.55rem;
	border-bottom: 1px solid var(--border);
}

.patch-notes-date-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	border: 1px solid rgba(241, 196, 15, 0.35);
	background: rgba(241, 196, 15, 0.1);
	color: var(--gold);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.patch-notes-release-title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--text);
}

.patch-notes-section-label {
	margin: 0 0 0.45rem;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
}

/* Override landing page `section { padding: 3.5rem 0 }` from styles.css */
.patch-notes-highlights,
.patch-notes-also-improved {
	margin: 0;
	padding: 0;
}

.patch-notes-highlight-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.patch-notes-highlight-card {
	margin: 0;
	padding: 0.72rem 0.8rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(12, 14, 20, 0.55);
	border-left: 3px solid rgba(241, 196, 15, 0.42);
}

.patch-notes-highlight-title {
	display: block;
	margin: 0 0 0.28rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text);
}

.patch-notes-highlight-body {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--text-muted);
}

.patch-notes-highlight-body strong,
.patch-notes-highlight-title strong {
	color: var(--text);
}

.patch-notes-also-improved {
	margin-top: 0.85rem;
}

.patch-notes-also-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.patch-notes-also-item {
	margin: 0;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
}

.patch-notes-also-body {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--text-muted);
}

.patch-notes-also-body strong {
	color: var(--text);
}

.patch-notes-foot {
	margin-top: 0.15rem;
	flex-shrink: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	padding-top: 0.35rem;
}

.patch-notes-home-btn {
	border-color: rgba(241, 196, 15, 0.28);
}

.patch-notes-foot .meta {
	margin: 0;
	font-size: 0.78rem;
}

@media (min-width: 720px) {
	.patch-notes-release-chips {
		display: flex;
	}

	.patch-notes-release-card {
		padding: 1.15rem 1.2rem 1.2rem;
	}

	.patch-notes-release-title {
		font-size: 1.2rem;
	}
}

.sidebar-resort {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	padding: 0.65rem 0.55rem 0.2rem;
	margin: 0;
}
.sidebar-park-group {
	margin-bottom: 0.15rem;
}

.wiki-main {
	padding: 1.1rem 1.35rem 2rem;
	min-width: 0;
	width: 100%;
}

.wiki-main .detail {
	max-width: 42rem;
}

.wiki-toolbar {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}
.sidebar-toggle {
	display: none;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
.wiki-auth {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}
.wiki-auth-banner {
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	background: rgba(88, 101, 242, 0.15);
	border: 1px solid rgba(88, 101, 242, 0.35);
	font-size: 0.88rem;
	color: var(--text);
}
.wiki-auth-user {
	font-size: 0.88rem;
	color: var(--text-muted);
}
.wiki-auth-hint {
	font-size: 0.78rem;
	color: var(--text-muted);
}
.wiki-discord-login {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	background: #5865f2;
	color: #fff !important;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none !important;
}
.wiki-discord-login:hover {
	background: #4752c4;
}
.wiki-auth-btn {
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-muted);
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
}
.wiki-play-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}
.wiki-play-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	font: inherit;
	font-size: 0.88rem;
	cursor: pointer;
}
.wiki-play-btn.primary {
	background: #5865f2;
	border-color: #5865f2;
	color: #fff;
	font-weight: 600;
}
.collection-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.85rem;
}
.collection-filters-label {
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-right: 0.25rem;
}
.collection-filters button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-muted);
	padding: 0.32rem 0.6rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}
.collection-filters button.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.card-owned {
	border-color: rgba(46, 204, 113, 0.45);
}
.card-missing {
	opacity: 0.82;
}
.wiki-collection-status {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}
.wiki-collection-status--collected {
	color: #6ee7a0;
	background: rgba(46, 204, 113, 0.12);
	border: 1px solid rgba(46, 204, 113, 0.35);
}
.wiki-collection-status--missing {
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.wiki-retired-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: middle;
	background: rgba(241, 196, 15, 0.18);
	border: 1px solid rgba(241, 196, 15, 0.45);
	color: #f1c40f;
}

.wiki-toolbar input[type="search"] {
	flex: 1 1 auto;
	min-width: 8rem;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font: inherit;
	line-height: 1.35;
}

.wiki-hero { margin-bottom: 1.25rem; }
.wiki-hero h1 { margin: 0 0 0.35rem; font-size: 1.75rem; }
.wiki-hero h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }

/* Wiki home — navigation hub (mobile: one screen, no scroll) */
.wiki-home-hub {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-height: 0;
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
}

.wiki-home-head {
	flex-shrink: 0;
}

.wiki-home-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.15;
}

.wiki-home-lead {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.wiki-home-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	flex-shrink: 0;
}

/* Three section tiles fit one row on wider screens — no orphaned empty cell. */
@media (min-width: 600px) {
	.wiki-home-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.wiki-home-tile {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.6rem;
	min-height: 3.35rem;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.wiki-home-tile:hover {
	border-color: rgba(88, 101, 242, 0.45);
	background: var(--bg-hover);
	transform: translateY(-1px);
}

.wiki-home-tile-icon {
	font-size: 1.4rem;
	line-height: 1;
	flex-shrink: 0;
}

.wiki-home-tile-copy {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.wiki-home-tile--link {
	text-decoration: none;
	color: inherit;
}

.wiki-home-collection-inline {
	font-weight: 400;
	color: var(--text-muted);
}

.wiki-home-collection-inline strong {
	color: var(--gold);
	font-weight: 700;
}

.wiki-home-tile-label {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
}

.wiki-home-tile-sub {
	font-size: 0.72rem;
	color: var(--text-muted);
	line-height: 1.25;
}

.wiki-home-collection {
	margin: 0;
	flex-shrink: 0;
	font-size: 0.82rem;
	color: var(--text-muted);
}

.wiki-home-collection strong {
	color: var(--gold);
}

.wiki-home-parks {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.wiki-home-section-title {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	flex-shrink: 0;
}

.wiki-home-parks-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	overflow: hidden;
}

.wiki-home-resort {
	flex-shrink: 0;
}

.wiki-home-resort-name {
	margin: 0 0 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}

.wiki-home-park-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem;
}

.wiki-home-park-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	min-height: 2.35rem;
	padding: 0.4rem 0.55rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
}

.wiki-home-park-btn:hover {
	border-color: rgba(241, 196, 15, 0.35);
	background: var(--bg-hover);
}

.wiki-home-park-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wiki-home-park-pct {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--gold);
}

html.wiki-app-home,
body.wiki-app-home {
	height: 100%;
	overflow: hidden;
}

body.wiki-app-home .wiki-wrap {
	height: calc(100dvh - var(--app-header-h, var(--header-h)));
	min-height: 0;
	overflow: hidden;
}

body.wiki-app-home .wiki-shell {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.wiki-app-home .wiki-main--home {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: 0.65rem;
}

body.wiki-app-home .wiki-main--home #content {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

body.wiki-app-home .wiki-main--home .wiki-toolbar {
	margin-bottom: 0.45rem;
	flex-shrink: 0;
}

body.wiki-app-home .wiki-main--home .wiki-auth,
body.wiki-app-home .wiki-main--home .wiki-auth-banner {
	margin-bottom: 0.35rem;
	flex-shrink: 0;
}

body.wiki-app-home .wiki-main--home .wiki-auth-user {
	font-size: 0.78rem;
}

body.wiki-app-home .wiki-main--home .wiki-auth-btn {
	padding: 0.32rem 0.55rem;
	font-size: 0.75rem;
}

.wiki-auth--home {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-bottom: 0.25rem;
}

.wiki-auth--home .wiki-auth-user,
.wiki-auth--home .wiki-auth-hint {
	display: none;
}

.wiki-discord-login--compact {
	padding: 0.35rem 0.7rem;
	font-size: 0.78rem;
}

.wiki-toolbar--home {
	margin-bottom: 0.35rem;
}

.wiki-toolbar--home .sidebar-toggle {
	min-height: 2.15rem;
	padding: 0.35rem 0.7rem;
	font-size: 0.82rem;
}

.wiki-toolbar--home input[type="search"] {
	min-height: 2.15rem;
	padding: 0.35rem 0.65rem;
	font-size: 0.82rem;
}

@media (max-width: 860px) {
	body.wiki-app-home .wiki-wrap {
		height: calc(100dvh - var(--app-header-h, var(--header-h)));
	}

	body.wiki-app-home .wiki-main--home {
		padding: 0.55rem 0.85rem 0.5rem;
	}

	body.wiki-app-home .wiki-home-hub {
		gap: 0.45rem;
	}

	body.wiki-app-home .wiki-home-tile {
		min-height: 2.55rem;
		padding: 0.38rem 0.48rem;
	}

	body.wiki-app-home .wiki-home-tile-label {
		font-size: 0.8rem;
	}

	body.wiki-app-home .wiki-home-tile-sub {
		font-size: 0.68rem;
	}

	body.wiki-app-home .wiki-home-park-btn {
		min-height: 1.85rem;
		padding: 0.32rem 0.48rem;
		font-size: 0.76rem;
	}

	body.wiki-app-home .wiki-home-resort-name,
	body.wiki-app-home .wiki-home-section-title {
		margin-bottom: 0.22rem;
	}

	body.wiki-app-home .wiki-home-parks-body {
		gap: 0.32rem;
	}
}

html.wiki-app-compact,
body.wiki-app-compact {
	height: 100%;
}

body.wiki-app-compact .wiki-wrap {
	height: calc(100dvh - var(--app-header-h, var(--header-h)));
	min-height: 0;
	overflow: hidden;
}

body.wiki-app-compact .wiki-shell--compact {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.wiki-app-compact .wiki-main--compact {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: 0.65rem;
}

body.wiki-app-compact .wiki-main--compact #content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.wiki-app-compact .wiki-main--compact .wiki-toolbar {
	margin-bottom: 0.45rem;
	flex-shrink: 0;
}

body.wiki-app-compact .wiki-main--compact .wiki-auth,
body.wiki-app-compact .wiki-main--compact .wiki-auth-banner {
	margin-bottom: 0.35rem;
	flex-shrink: 0;
}

/* Patch notes — scroll the main column; avoid a tall empty #content flex slot on mobile */
body.wiki-app-compact.wiki-app-patch-notes .wiki-main--compact {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.wiki-app-compact.wiki-app-patch-notes .wiki-main--compact #content {
	flex: 0 1 auto;
	overflow: visible;
	min-height: 0;
}

body.wiki-app-patch-notes .wiki-main--compact #content,
body.wiki-app-patch-notes .wiki-main #content {
	flex: 0 1 auto;
	min-height: 0;
	overflow: visible;
}

body.wiki-app-compact.wiki-app-patch-notes .patch-notes-layout {
	min-height: auto;
	flex: 0 0 auto;
}

body.wiki-app-compact.wiki-app-patch-notes .patch-notes-lead {
	margin-bottom: 0;
}

body.wiki-app-compact.wiki-app-patch-notes .patch-notes-intro-card {
	padding: 0.72rem 0.85rem;
}

@media (max-width: 860px) {
	body.wiki-app-compact.wiki-app-patch-notes .wiki-main--compact .wiki-auth,
	body.wiki-app-compact.wiki-app-patch-notes .wiki-main--compact .wiki-auth-banner {
		margin-bottom: 0.25rem;
	}

	body.wiki-app-compact.wiki-app-patch-notes .patch-notes-page-head {
		margin-bottom: 0.2rem;
	}

	body.wiki-app-compact.wiki-app-patch-notes .patch-notes-page-title {
		font-size: 1.35rem;
	}

	body.wiki-app-compact.wiki-app-patch-notes .patch-notes-release-card {
		padding: 0.85rem 0.9rem 0.95rem;
	}
}

@media (max-width: 860px) {
	body.wiki-app-compact .wiki-wrap {
		height: calc(100dvh - var(--app-header-h, var(--header-h)));
	}

	body.wiki-app-compact .wiki-main--compact {
		padding: 0.55rem 0.85rem 0.5rem;
	}
}
.updated { font-size: 0.82rem; color: var(--text-muted); }
.park-context {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: -0.15rem 0 0.5rem;
}
.park-context strong { color: var(--gold); }

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.75rem;
	align-items: stretch;
}
.card-grid > .card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
}
.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
}
.wiki-card-body {
	flex: 1 1 auto;
	min-width: 0;
}
.wiki-card-footer,
.wiki-item-card-footer {
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.card:hover {
	background: var(--bg-hover);
	border-color: rgba(241, 196, 15, 0.35);
}
.card:focus-visible,
.wiki-home-tile:focus-visible,
.wiki-home-park-btn:focus-visible,
.sidebar-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.card .meta { font-size: 0.78rem; color: var(--text-muted); }
.card .snippet {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-top: 0.35rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rarity {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.12em 0.45em;
	border-radius: 4px;
	margin-right: 0.35rem;
}
.rarity-Common { background: #4a5568; }
.rarity-Uncommon { background: #276749; }
.rarity-Rare { background: #2b6cb0; }
.rarity-Epic { background: #6b46c1; }
.rarity-Legendary { background: #b7791f; }
.rarity-Mythic { background: #c53030; }
.rarity-Quest { background: #1abc9c; }

/* Item art (composited render URLs) */
.wiki-item-art-frame {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem;
	border-radius: 16px;
	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.1),
		rgba(255, 255, 255, 0.02)
	);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(255, 255, 255, 0.07);
	flex-shrink: 0;
}
.wiki-item-art-frame.rarity-frame-Epic,
.wiki-item-art-frame.rarity-frame-Legendary,
.wiki-item-art-frame.rarity-frame-Mythic {
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 0 24px rgba(155, 89, 182, 0.22);
}
.wiki-item-art {
	display: block;
	border-radius: 12px;
	object-fit: contain;
	background: rgba(0, 0, 0, 0.28);
}
.wiki-item-art--hero {
	width: 176px;
	height: 176px;
}
.wiki-item-art--card,
.wiki-item-art--thumb {
	width: 100%;
	height: 100%;
}

.wiki-item-detail {
	padding: 1.35rem 1.5rem 1.5rem;
}
.wiki-item-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.5rem;
	align-items: flex-start;
	margin-top: 0.35rem;
}
.wiki-item-hero-copy {
	flex: 1 1 220px;
	min-width: 0;
}
.wiki-item-hero-copy h1 {
	margin: 0.35rem 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	line-height: 1.15;
}
.wiki-item-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}
.wiki-item-type-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.12em 0.5em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-muted);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.wiki-item-stats {
	margin: 0.65rem 0 0;
	font-size: 0.95rem;
}
/* Jobs model: gear class-level requirement */
.wiki-item-req-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.12em 0.5em;
	border-radius: 999px;
	background: rgba(255, 180, 168, 0.14);
	color: #ffb4a8;
	border: 1px solid rgba(255, 180, 168, 0.3);
}
.wiki-item-req {
	margin: 0.4rem 0 0;
	font-size: 0.85rem;
	color: #ffb4a8;
}
.wiki-loot-req {
	color: #ffb4a8;
}
/* Class lock (req_class) — amber-gold to read distinct from the salmon level lock. */
.wiki-item-class-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.12em 0.5em;
	border-radius: 999px;
	background: rgba(255, 215, 106, 0.14);
	color: #ffd76a;
	border: 1px solid rgba(255, 215, 106, 0.34);
}
.wiki-loot-class {
	color: #ffd76a;
}
.wiki-item-stats strong {
	margin-right: 0.35rem;
	color: var(--text-muted);
	font-weight: 600;
}
.wiki-item-owned {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	font-weight: 600;
}
.wiki-item-owned--yes {
	color: #6ee7a8;
}
.wiki-item-owned--no {
	color: var(--text-muted);
}
.wiki-share-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.85rem;
}
.wiki-share-label {
	flex: 1 1 100%;
	margin: 0 0 0.1rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--text-primary, #e2e8f0);
}
.wiki-share-toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: min(92vw, 28rem);
	margin: 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.wiki-achievement-detail .body {
	margin-top: 1.15rem;
}
.wiki-item-flavor {
	margin-top: 1.35rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wiki-item-source a {
	color: var(--accent, #7eb8ff);
}

.wiki-item-card {
	cursor: pointer;
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.wiki-item-card-layout {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.85rem 1rem 0.65rem;
	flex: 1 1 auto;
	min-height: 0;
}
.wiki-item-card-footer {
	padding: 0.55rem 1rem 0.75rem;
}
.wiki-item-card-layout .wiki-item-art-frame {
	width: 80px;
	height: 80px;
}
.wiki-item-card-body {
	min-width: 0;
	flex: 1;
}
.wiki-item-card-body h3 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	line-height: 1.25;
}

.wiki-loot-list {
	list-style: none;
	margin: 0.5rem 0 1rem;
	padding: 0;
}
.wiki-loot-row {
	margin: 0.45rem 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.wiki-loot-row.wiki-loot-owned {
	background: rgba(46, 204, 113, 0.1);
	border-color: rgba(46, 204, 113, 0.22);
}
.wiki-loot-row.wiki-loot-missing {
	opacity: 0.82;
}
.wiki-loot-link {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.55rem 0.65rem;
	color: inherit;
	text-decoration: none;
}
.wiki-loot-link:hover {
	color: inherit;
}
.wiki-loot-link .wiki-item-art-frame {
	width: 56px;
	height: 56px;
	padding: 0.25rem;
}
.wiki-loot-copy {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	flex: 1;
}
.wiki-loot-name {
	font-weight: 600;
	font-size: 0.95rem;
}
.wiki-loot-meta {
	font-size: 0.78rem;
	color: var(--text-muted);
}
.wiki-loot-status {
	display: flex;
	padding: 0 0.65rem 0.55rem 4.6rem;
}

.detail {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.detail h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.detail .back { display: inline-block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.detail .body { margin-top: 1rem; }
.detail .body p { margin: 0.5rem 0; }
.beat-list { margin-top: 1rem; }
.raid-detail-intro { margin-top: 0.75rem; }
.raid-loot-list,
.raid-link-list {
	margin: 0.35rem 0 1rem;
	padding-left: 0;
	list-style: none;
}
.raid-loot-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
	padding: 0.4rem 0.55rem;
	margin: 0.35rem 0;
	border-radius: 6px;
}
.raid-loot-owned {
	background: rgba(46, 204, 113, 0.12);
	border-left: 3px solid rgba(46, 204, 113, 0.55);
}
.raid-loot-missing {
	opacity: 0.78;
}
.raid-loot-status {
	font-size: 0.72rem;
	font-weight: 600;
	flex-shrink: 0;
}
.raid-loot-owned .raid-loot-status {
	color: #6ee7a0;
}
.raid-loot-missing .raid-loot-status {
	color: var(--text-muted);
}
.raid-link-list li { margin: 0.3rem 0; padding-left: 1.25rem; }
.raid-home-grid { margin-bottom: 1.5rem; }
.raid-home-grid .card { cursor: pointer; }
.beat {
	border-left: 3px solid #e74c3c;
	padding: 0.65rem 0 0.65rem 0.85rem;
	margin-bottom: 0.75rem;
	background: rgba(0,0,0,0.15);
	border-radius: 0 8px 8px 0;
}
.beat h4 { margin: 0 0 0.35rem; }
.quest-step {
	border-top: 1px solid var(--border);
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}
.empty, .error-box, .loading {
	text-align: center;
	padding: 2rem;
	color: var(--text-muted);
}
.error-box { color: #f28b82; }
.stats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.stat-pill {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--text-muted);
}
.stat-pill strong { color: var(--text); }

.profile-page { margin-bottom: 1.25rem; }
.profile-xp-bar {
	height: 10px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	overflow: hidden;
	margin: 0.75rem 0 0.35rem;
	max-width: 420px;
}
.profile-xp-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #9b59b6);
	border-radius: 999px;
}
.profile-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.65rem;
	margin: 1rem 0 1.5rem;
}
.profile-stat {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.65rem 0.75rem;
}
.profile-stat .label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}
.profile-stat .val {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 0.2rem;
}
.profile-collection {
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
	color: var(--text-muted);
}
.profile-foot {
	margin-top: 1.5rem;
}

.shop-balance {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: var(--radius);
	background: rgba(241, 196, 15, 0.1);
	border: 1px solid rgba(241, 196, 15, 0.28);
}
.shop-balance strong {
	font-size: 1.35rem;
	color: var(--gold);
}
.shop-foot {
	margin-bottom: 1.25rem;
}
.shop-section {
	margin-bottom: 1.75rem;
}
.shop-section h2 {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
}
.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 0.75rem;
}
.shop-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.shop-card-owned {
	border-color: rgba(46, 204, 113, 0.45);
	opacity: 0.92;
}
.shop-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}
.shop-card-head h3 {
	margin: 0;
	font-size: 1rem;
}
.shop-price {
	font-weight: 700;
	color: var(--gold);
	white-space: nowrap;
}
.shop-meta,
.shop-desc,
.shop-stats {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}
.shop-card-foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.35rem;
}
.shop-card-buy-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-width: 0;
}
.shop-status {
	font-size: 0.78rem;
	font-weight: 600;
}
.shop-status.owned {
	color: #6ee7a0;
}
.shop-status.need-gold {
	color: #f39c12;
}
.shop-buy-btn {
	background: var(--accent);
	border: none;
	color: #fff;
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.shop-buy-btn:hover:not(:disabled) {
	filter: brightness(1.08);
}
.shop-buy-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.shop-detail-link {
	font-size: 0.82rem;
	flex-shrink: 0;
}
a.wiki-auth-btn {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.wiki-offline-banner {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	border: 1px solid rgba(46, 204, 113, 0.45);
	background: rgba(46, 204, 113, 0.1);
	font-size: 0.88rem;
}

.wiki-offline-badge {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.12rem 0.4rem;
	border-radius: 4px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(46, 204, 113, 0.2);
	color: #2ecc71;
}

.wiki-ride-stats {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	border: 1px solid rgba(155, 89, 182, 0.35);
	background: rgba(155, 89, 182, 0.08);
}

.wiki-ride-stats-title {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.wiki-ride-stats-grid {
	margin: 0;
	display: grid;
	gap: 0.55rem 1.25rem;
}

.wiki-ride-stat-row {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) 1fr;
	gap: 0.35rem 0.75rem;
	align-items: baseline;
}

.wiki-ride-stat-row dt {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.wiki-ride-stat-row dd {
	margin: 0;
	font-size: 0.95rem;
}

.wiki-info-btn {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text-muted);
	font-size: 0.68rem;
	font-weight: 800;
	font-style: italic;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
}

.wiki-info-btn:hover,
.wiki-info-btn[aria-expanded="true"] {
	color: var(--gold);
	border-color: rgba(241, 196, 15, 0.45);
}

.wiki-devotion-info-panel {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--border);
	font-size: 0.88rem;
	color: var(--text-muted);
}

.wiki-devotion-info-panel p {
	margin: 0 0 0.5rem;
}

.wiki-devotion-tier-list {
	margin: 0.35rem 0 0;
	padding-left: 1.15rem;
	font-size: 0.82rem;
}

.wiki-devotion-tier-list li {
	margin: 0.2rem 0;
}

@media (max-width: 860px) {
	.wiki-shell {
		grid-template-columns: 1fr;
	}

	.wiki-shell.sidebar-open::before {
		content: "";
		position: fixed;
		inset: var(--app-header-h, var(--header-h)) 0 0 0;
		z-index: 20;
		background: rgba(0, 0, 0, 0.55);
		pointer-events: none;
	}

	.wiki-sidebar {
		position: fixed;
		left: 0;
		top: var(--app-header-h, var(--header-h));
		width: min(var(--sidebar-w), 88vw);
		z-index: 25;
		transform: translateX(-105%);
		transition: transform 0.2s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
	}
	.wiki-shell.sidebar-open .wiki-sidebar {
		transform: translateX(0);
	}
	.sidebar-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		min-width: 44px;
		padding: 0.5rem 0.9rem;
	}
	.wiki-main {
		padding: 0.85rem 1rem 1.5rem;
	}

	.play-header-inner {
		padding-left: max(0px, env(safe-area-inset-left, 0px));
		padding-right: max(0px, env(safe-area-inset-right, 0px));
	}

	.wiki-play-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.wiki-play-btn {
		width: 100%;
		min-height: 44px;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.wiki-main {
		padding: 0.75rem 0.85rem 1.25rem;
	}

	.wiki-hero h1 {
		font-size: 1.45rem;
	}

	.wiki-hero h2 {
		font-size: 1.15rem;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.collection-filters {
		gap: 0.45rem;
	}

	.collection-filters-label {
		flex: 1 1 100%;
	}

	.collection-filters button {
		min-height: 44px;
		padding: 0.45rem 0.85rem;
		font-size: 0.85rem;
	}

	.wiki-ride-stat-row {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.wiki-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.wiki-toolbar input[type="search"] {
		width: 100%;
		flex: 0 0 auto;
		min-width: 0;
		min-height: 44px;
		padding: 0.5rem 0.75rem;
	}

	.wiki-discord-login {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
	}

	.nav-links {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.nav-links .nav-cta {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* ---------------------------------------------------------------------------
   Gear sets (wiki park overview + item pages). Violet theme matches the /play
   full-set glow. Collection progress shows when the player is logged in.
   --------------------------------------------------------------------------- */
.wiki-set-section-head { margin-top: 2rem; }
.wiki-set-intro { color: var(--muted, #9aa4b2); font-size: 0.92rem; margin: 0.25rem 0 1rem; }
.wiki-set-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 0.85rem;
}
.wiki-set-card {
	border: 1px solid rgba(149, 110, 255, 0.25);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(149, 110, 255, 0.06), rgba(0, 0, 0, 0.12));
	padding: 0.85rem 0.9rem;
}
.wiki-set-card.is-complete {
	border-color: rgba(181, 140, 255, 0.7);
	box-shadow: 0 0 14px rgba(181, 140, 255, 0.35);
}
.wiki-set-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wiki-set-name { margin: 0; font-size: 1.05rem; flex: 1 1 auto; }
.wiki-set-diff {
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.12rem 0.45rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	color: #cdd3dc;
}
.wiki-set-diff--novice { background: rgba(149, 165, 166, 0.22); color: #c9d1d3; }
.wiki-set-diff--seasoned { background: rgba(46, 204, 113, 0.2); color: #8fe6b4; }
.wiki-set-diff--veteran { background: rgba(52, 152, 219, 0.2); color: #88c6f0; }
.wiki-set-diff--heroic { background: rgba(155, 89, 182, 0.24); color: #d2a6e8; }
.wiki-set-diff--mythic { background: rgba(231, 76, 60, 0.22); color: #f0a79e; }
.wiki-set-progress {
	font-size: 0.78rem;
	font-weight: 700;
	color: #c0a6ff;
	white-space: nowrap;
}
.wiki-set-progress.is-complete { color: #ece0ff; }
.wiki-set-sub { margin: 0.3rem 0 0.45rem; font-size: 0.8rem; color: var(--muted, #9aa4b2); }
.wiki-set-statbonus { color: #b8f0cf; }
.wiki-set-sig {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.45rem 0.55rem;
	margin-bottom: 0.55rem;
	border-radius: 8px;
	background: rgba(149, 110, 255, 0.12);
}
.wiki-set-sig-name { font-weight: 800; color: #d9c7ff; }
.wiki-set-sig-desc { font-size: 0.82rem; color: #cdd3dc; }
.wiki-set-pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.wiki-set-piece { display: flex; align-items: center; gap: 0.4rem; }
/* The piece thumb uses .wiki-item-art--thumb (width/height:100%), so its frame MUST
   be sized — without this the 100% art falls back to the PNG's intrinsic size and the
   sprite balloons across the page. Mirrors .wiki-item-card-layout .wiki-item-art-frame. */
.wiki-set-piece .wiki-item-art-frame {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.2rem;
	border-radius: 9px;
}
.wiki-set-piece-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	padding: 0.2rem 0.3rem;
	border-radius: 7px;
}
.wiki-set-piece-link:hover { background: rgba(255, 255, 255, 0.05); }
.wiki-set-piece-copy { display: flex; flex-direction: column; min-width: 0; }
.wiki-set-piece-name { font-weight: 600; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-set-piece-meta { font-size: 0.72rem; color: var(--muted, #9aa4b2); }
.wiki-set-piece-src { color: var(--muted, #9aa4b2); }
.wiki-set-piece-check { flex-shrink: 0; font-weight: 800; width: 1.2rem; text-align: center; }
.wiki-set-piece--owned .wiki-set-piece-check { color: #7ce0a0; }
.wiki-set-piece--missing { opacity: 0.6; }
.wiki-set-piece--missing .wiki-set-piece-check { color: #6b7280; }
/* "part of a set" markers on loot rows + item pages */
.wiki-loot-set { display: block; font-size: 0.7rem; font-weight: 600; color: #c0a6ff; margin-top: 0.1rem; }
.wiki-item-set { color: #c0a6ff; }
