:root {
	--bg: #0c0e12;
	--bg-deep: #090b0f;
	--surface: rgba(12, 16, 22, 0.8);
	--surface-strong: rgba(18, 23, 31, 0.94);
	--line: rgba(201, 165, 76, 0.24);
	--gold: #c9a54c;
	--gold-bright: #f0d478;
	--gold-deep: #a97b2f;
	--text: #f5edd8;
	--muted: rgba(245, 237, 216, 0.72);
	--shadow-blue: rgba(77, 114, 177, 0.28);
	--shadow-red: rgba(140, 52, 34, 0.28);
	--radius-xl: 30px;
	--radius-lg: 22px;
	--radius-md: 16px;
	--radius-pill: 999px;
	--content: min(1220px, calc(100% - 2.2rem));
	--border-soft: 1px solid rgba(255, 255, 255, 0.08);
	--shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);
	--shadow-md: 0 18px 45px rgba(0, 0, 0, 0.3);
	--glow-luminist: 0 24px 50px rgba(49, 78, 133, 0.16);
	--glow-luminist-hover: 0 26px 54px rgba(77, 114, 177, 0.28);
	--glow-shadow: 0 24px 50px rgba(122, 49, 33, 0.16);
	--glow-shadow-hover: 0 26px 54px rgba(140, 52, 34, 0.32);
	--glow-gold: 0 20px 44px rgba(169, 123, 47, 0.14);
	--glow-gold-hover: 0 24px 52px rgba(224, 187, 97, 0.22);
	--glow-steam: 0 24px 50px rgba(66, 139, 202, 0.22);
	--glow-steam-hover: 0 28px 58px rgba(102, 192, 244, 0.34);
	--glow-discord-hover: 0 24px 52px rgba(88, 101, 242, 0.28);
	--glow-instagram-hover: 0 24px 52px rgba(193, 53, 132, 0.24);
	--glow-x-hover: 0 24px 52px rgba(255, 255, 255, 0.1);
	--glow-facebook-hover: 0 24px 52px rgba(24, 119, 242, 0.26);
	--glow-reddit-hover: 0 24px 52px rgba(255, 69, 0, 0.22);
	/* Roster-wide ability tooltip max (Long Mei / Golden Reversal @ ~551px panel width). */
	--character-stage-ability-panel-height: 27.5rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background-color: var(--bg-deep);
}

/* Viewport-fixed Luminist/Shadow atmosphere — avoids section seams and scroll-away glow. */
body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg-deep);
	background-image:
		radial-gradient(ellipse 120% 165% at -10% 40%, rgba(184, 142, 56, 0.30), rgba(9, 11, 15, 0) 66%),
		radial-gradient(ellipse 105% 155% at 110% 36%, rgba(64, 92, 151, 0.14), rgba(9, 11, 15, 0) 64%),
		linear-gradient(118deg, #141820 0%, #10141b 38%, #0c0e12 52%, #07080b 100%);
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: var(--text);
	font-family: 'Sora', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Author rules like `display: grid` must not defeat the `hidden` attribute (e.g. `#portal-dashboard`). */
[hidden] {
	display: none !important;
}

img,
video {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--gold-bright);
	outline-offset: 3px;
}

.shell {
	width: var(--content);
	margin: 0 auto;
}

.eyebrow {
	margin: 0 0 0.9rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: 'Cinzel', 'Cormorant Garamond', serif;
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(3.4rem, 8vw, 6.7rem);
	max-width: 11ch;
}

h2 {
	font-size: clamp(1.95rem, 3.4vw, 3.35rem);
	max-width: none;
}

.section-heading h2 {
	max-width: 22ch;
}

.hero-panel-cinematic h1 {
	font-size: clamp(2.85rem, 6.5vw, 5.5rem);
}

h3 {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	margin-bottom: 0.75rem;
}

p {
	margin: 0;
	color: var(--muted);
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Reserve header space while partial HTML is in flight (empty #site-header host). */
#site-header:empty {
	min-height: 3.35rem;
}

.header-shell-nav-only {
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.header-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	color: var(--text-primary, #f4efe3);
	text-decoration: none;
	font-family: Cinzel, serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.header-brand img {
	display: block;
	border-radius: 4px;
}

.header-brand:hover,
.header-brand:focus-visible {
	color: #f0d78a;
}

.header-shell-nav-only .main-nav {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* Hide auth-dependent nav slots until header mount (prevents Log In ↔ Portal flash). */
html:not(.nav-synced) #menu .nav-auth-volatile,
html:not(.nav-synced) .footer-links .nav-auth-volatile {
	visibility: hidden;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0.85rem 0;
	background: rgba(9, 11, 15, 0.6);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
	background: rgba(9, 11, 15, 0.82);
	border-bottom-color: var(--line);
}

.header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	flex-shrink: 0;
	min-width: 0;
}

.brand-lockup picture,
.brand-lockup img {
	display: block;
	height: 54px;
	width: auto;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.brand-copy {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

.brand-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--gold-bright);
	line-height: 1;
}

.brand-tag {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.64);
}

.main-nav {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.main-nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li {
	flex-shrink: 0;
}

.main-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1rem;
	border-radius: var(--radius-pill);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	color: rgba(245, 237, 216, 0.8);
	transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.main-nav a.nav-play,
.main-nav a.nav-steam,
.main-nav a.nav-cta,
.main-nav a.nav-account-portal {
	padding: 0.72rem 1.15rem;
	min-height: 2.45rem;
	line-height: 1;
}

.main-nav a:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	transform: translateY(-1px);
}

.main-nav a.active {
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
}

.main-nav .nav-play {
	border: 1px solid rgba(224, 187, 97, 0.42);
	background: rgba(224, 187, 97, 0.1);
	color: var(--gold-bright);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.main-nav .nav-play:hover {
	background: rgba(224, 187, 97, 0.18);
	color: var(--text);
	border-color: rgba(224, 187, 97, 0.55);
}

.main-nav .nav-play.is-beta-play {
	border-color: rgba(122, 180, 255, 0.35);
	background: rgba(64, 92, 151, 0.22);
	color: rgba(214, 226, 255, 0.95);
}

.main-nav .nav-play.is-beta-play:hover {
	background: rgba(64, 92, 151, 0.32);
	color: var(--text);
}

.main-nav .nav-steam {
	border: 1px solid rgba(102, 192, 244, 0.45);
	background: linear-gradient(135deg, rgba(27, 40, 56, 0.95) 0%, rgba(42, 71, 94, 0.92) 100%);
	color: #d8f1ff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.main-nav .nav-steam:hover {
	background: linear-gradient(135deg, rgba(34, 52, 72, 0.98) 0%, rgba(52, 88, 118, 0.95) 100%);
	color: #fff;
	border-color: rgba(136, 210, 255, 0.62);
}

.main-nav .nav-account-portal {
	border: 1px solid rgba(196, 168, 255, 0.35);
	background: rgba(88, 62, 140, 0.22);
	color: rgba(232, 220, 255, 0.95);
}

.main-nav .nav-account-portal:hover {
	background: rgba(88, 62, 140, 0.34);
	color: var(--text);
	border-color: rgba(210, 188, 255, 0.5);
}

.main-nav .nav-cta {
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
	color: #18120a;
	box-shadow: 0 16px 36px rgba(169, 123, 47, 0.26);
}

.main-nav a[hidden],
.footer-links a[hidden] {
	display: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--text);
}

.hero-panel {
	position: relative;
	padding: 4rem 0 3rem;
	min-height: calc(100vh - 86px);
	overflow: clip;
}

.hero-backdrop,
.hero-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero-backdrop {
	opacity: 0;
	transition: opacity 480ms ease;
	--hero-bg-image:
		image-set(
			url('../img/battlefield_backgrounds/background3-1920.avif') type('image/avif'),
			url('../img/battlefield_backgrounds/background3-1920.webp') type('image/webp'),
			url('../img/battlefield_backgrounds/background3.png') type('image/png')
		);
	background:
		linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.62) 42%, rgba(8, 10, 14, 0.88) 100%),
		var(--hero-bg-image) center/cover no-repeat;
}

@media (max-width: 1100px) {
	.hero-backdrop {
		--hero-bg-image:
			image-set(
				url('../img/battlefield_backgrounds/background3-1280.avif') type('image/avif'),
				url('../img/battlefield_backgrounds/background3-1280.webp') type('image/webp'),
				url('../img/battlefield_backgrounds/background3.png') type('image/png')
			);
	}
}

@media (max-width: 640px) {
	.hero-backdrop {
		--hero-bg-image:
			image-set(
				url('../img/battlefield_backgrounds/background3-960.avif') type('image/avif'),
				url('../img/battlefield_backgrounds/background3-960.webp') type('image/webp'),
				url('../img/battlefield_backgrounds/background3.png') type('image/png')
			);
	}
}

.hero-panel.hero-surface-ready .hero-backdrop {
	opacity: 1;
}

.hero-glow-left {
	background: radial-gradient(circle at 18% 34%, rgba(232, 191, 95, 0.18), transparent 26%);
}

.hero-glow-right {
	background: radial-gradient(circle at 82% 34%, rgba(88, 124, 189, 0.16), transparent 24%);
}

.hero-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: 2rem;
	align-items: end;
	padding-top: 4rem;
}

.hero-copy {
	padding: 2rem 0;
}

.hero-intro {
	max-width: 61ch;
	margin-top: 1.35rem;
	font-size: 1.03rem;
	color: rgba(245, 237, 216, 0.8);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.35rem;
	border-radius: var(--radius-pill);
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button,
.shot-button,
.gallery-close,
.gallery-nav {
	cursor: pointer;
}

.button-primary {
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
	color: #1a1207;
	box-shadow: 0 20px 40px rgba(169, 123, 47, 0.25);
}

.button-secondary {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.09);
	color: var(--text);
}

.button-tertiary {
	background: transparent;
	border-color: rgba(224, 187, 97, 0.28);
	color: var(--gold-bright);
}

.button-steam {
	background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
	border-color: rgba(102, 192, 244, 0.42);
	color: #d8f1ff;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.button-steam:hover {
	border-color: rgba(136, 210, 255, 0.58);
	color: #fff;
}

.hero-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	max-width: 52rem;
}

.hero-metrics li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.62rem 1.05rem;
	border: var(--border-soft);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.83rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgba(245, 237, 216, 0.86);
	text-align: center;
	white-space: nowrap;
}

/* Hero ghost controls — frosted chips readable over busy battlefield backdrop */
.hero-panel .button-secondary {
	background: rgba(8, 10, 14, 0.82);
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--text);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(12px);
}

.hero-panel .button-secondary:hover {
	background: rgba(14, 18, 24, 0.94);
	border-color: rgba(255, 255, 255, 0.34);
}

.hero-panel .button-tertiary {
	background: rgba(8, 10, 14, 0.78);
	border-color: rgba(224, 187, 97, 0.52);
	color: var(--gold-bright);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(224, 187, 97, 0.1);
	backdrop-filter: blur(12px);
}

.hero-panel .button-tertiary:hover {
	background: rgba(18, 14, 8, 0.92);
	border-color: rgba(224, 187, 97, 0.68);
	color: #f5e8c8;
}

.hero-panel .hero-metrics li {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 10, 14, 0.78);
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(245, 237, 216, 0.96);
	line-height: 1.15;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
}

.hero-showcase {
	display: grid;
	gap: 1rem;
	align-self: stretch;
}

.faction-spotlight {
	position: relative;
	display: block;
	min-height: clamp(360px, 34vw, 460px);
	padding: 1.5rem 1rem 0 1.5rem;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}


.spotlight-copy {
	position: relative;
	z-index: 2;
	display: grid;
	align-content: start;
	gap: 0.25rem;
	max-width: min(19rem, 56%);
	min-width: 0;
	padding-bottom: 1.5rem;
	padding-right: 0.5rem;
}

.spotlight-art {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 1.15rem 1.35rem;
	pointer-events: none;
}

.faction-spotlight .spotlight-portrait {
	display: block;
	position: relative;
	right: auto;
	bottom: auto;
	width: auto;
	max-width: none;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	object-fit: contain;
	object-position: center right;
	transform-origin: center right;
	transform: translateY(var(--spotlight-visual-shift-y, 0)) translateX(var(--spotlight-visual-shift, 0))
		scale(var(--spotlight-visual-scale, 1));
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
}

.faction-spotlight .spotlight-portrait--sprite {
	min-height: 0;
}

/* HUD sprites are centered in canvas — shift so opaque pixels align, not the PNG box. */
.luminists .spotlight-art {
	padding-block: 0.5rem;
	padding-right: 1.1rem;
}

.luminists .spotlight-portrait--sprite {
	--spotlight-visual-shift: 20%;
	--spotlight-visual-shift-y: -4.1%;
	--spotlight-visual-scale: 1.1;
}

.shadows .spotlight-portrait--sprite {
	--spotlight-visual-shift: 17%;
	--spotlight-visual-shift-y: -1.4%;
}

.luminists {
	background: rgba(16, 23, 33, 0.96);
	box-shadow: var(--glow-luminist);
}

.shadows {
	background: rgba(24, 15, 15, 0.96);
	box-shadow: var(--glow-shadow);
}

.faction-spotlight h2 {
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	max-width: 7ch;
	margin-bottom: 0.65rem;
}

.spotlight-label {
	margin-bottom: 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--gold-bright);
}

.section-shell {
	padding: 4.25rem 0;
	position: relative;
}

.page-home .section-shell {
	padding: 3.75rem 0;
}

.page-home .connect-shell {
	padding-bottom: 2.5rem;
}

.page-home .cta-shell {
	padding-top: 3rem;
}

.page-hero {
	padding: 7rem 0 3.5rem;
	position: relative;
}

.page-hero-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
	gap: 2rem;
	align-items: start;
}

.page-copy {
	display: grid;
	gap: 1rem;
}

/* Interior `.page-hero` only (index uses `.hero-panel`). Wider measure for sentence-length titles; modestly smaller than global `h1`. */
.page-hero .page-copy h1 {
	max-width: min(26ch, 100%);
	font-size: clamp(3.05rem, 7.1vw, 5.95rem);
}

.page-intro {
	max-width: 62ch;
	font-size: 1.04rem;
	color: rgba(245, 237, 216, 0.8);
}

.page-stat-panel,
.detail-card,
.comparison-panel,
.signup-form-card,
.video-card,
.empty-state,
.filter-bar {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-lg);
}

.page-stat-panel {
	padding: 1.6rem;
	align-self: stretch;
}

.asset-placeholder {
	position: relative;
	display: grid;
	place-items: stretch;
	min-height: 180px;
	border: 1px solid rgba(224, 187, 97, 0.18);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(135deg, rgba(224, 187, 97, 0.08), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 10, 14, 0.88));
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.asset-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 18px),
		radial-gradient(circle at top right, rgba(224, 187, 97, 0.12), transparent 32%);
	pointer-events: none;
}

.asset-placeholder-inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: end;
	gap: 0.65rem;
	height: 100%;
	padding: 1.1rem;
}

.placeholder-kicker {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.placeholder-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 0.96;
	color: var(--text);
}

.small-title {
	font-size: 1.28rem;
	line-height: 1.02;
}

.placeholder-copy {
	max-width: 32ch;
	color: rgba(245, 237, 216, 0.76);
}

.placeholder-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.placeholder-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(224, 187, 97, 0.22);
	background: rgba(224, 187, 97, 0.08);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.asset-placeholder:empty::after,
.asset-placeholder-inner:empty::after,
.empty-art-slot::after {
	content: '';
	position: absolute;
	inset: 18px;
	border-radius: calc(var(--radius-lg) - 8px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.compact-placeholder {
	min-height: 132px;
	margin-bottom: 1rem;
}

.hero-showpiece {
	min-height: 220px;
}

/* Homepage hero key art (wide illustration — contain inside framed panel) */
figure.hero-showpiece {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(224, 187, 97, 0.22);
	box-shadow: var(--shadow-md);
	background: radial-gradient(ellipse at center, rgba(46, 38, 28, 0.45), rgba(8, 10, 14, 0.96));
}

figure.hero-showpiece img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(48vh, 460px);
	object-fit: contain;
	object-position: center center;
}

.gameplay-shell,
.conflict-shell,
.cta-shell {
	background: transparent;
}

.split-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	gap: 2rem;
	align-items: center;
}

.section-copy {
	display: grid;
	gap: 1rem;
}

.narrow-copy {
	max-width: 38rem;
}

.feature-list {
	display: grid;
	gap: 0.8rem;
	margin-top: 0.35rem;
}

.feature-list li {
	position: relative;
	padding-left: 1.4rem;
	color: rgba(245, 237, 216, 0.82);
}

.feature-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.7rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 14px rgba(224, 187, 97, 0.5);
}

.media-frame {
	padding: 1rem;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-lg);
}

.media-frame video {
	width: 100%;
	border-radius: calc(var(--radius-xl) - 8px);
	background: #000;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.section-heading {
	display: grid;
	gap: 0.9rem;
	margin-bottom: 1.8rem;
	max-width: 52rem;
}

.compact-heading {
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.section-heading h2 {
	max-width: 20ch;
	text-wrap: balance;
}

/* In-card headings: use the card width and a smaller title scale (no ch clamps). */
.video-card .section-heading,
.portal-admin-shell > .section-heading.compact-heading {
	max-width: none;
	margin-bottom: 1rem;
}

.video-card .section-heading h2,
.portal-admin-shell > .section-heading.compact-heading h2,
.detail-card h2 {
	max-width: none;
	font-size: clamp(1.65rem, 2.4vw, 2.35rem);
	line-height: 1.08;
	text-wrap: balance;
}

.pillar-grid,
.roster-grid,
.media-grid {
	display: grid;
	gap: 1rem;
}

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

.pillar-card,
.conflict-card,
.roster-card,
.shot-card,
.cta-band {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-lg);
}

.pillar-card {
	padding: 1.5rem;
	height: 100%;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pillar-card:hover {
	transform: translateY(-2px);
	border-color: rgba(224, 187, 97, 0.22);
	box-shadow: var(--glow-gold-hover);
}

.pillar-visual-placeholder {
	min-height: 136px;
}

figure.pillar-visual {
	margin: 0 0 1rem 0;
	padding: 0;
	overflow: hidden;
	border-radius: calc(var(--radius-lg) - 6px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(4, 6, 10, 0.55);
}

figure.pillar-visual img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 120px;
	max-height: 200px;
	object-fit: cover;
	object-position: center;
}

.conflict-layout {
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.conflict-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.conflict-card {
	padding: 1.4rem;
	min-height: 100%;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.crest-placeholder {
	display: grid;
	justify-items: start;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.crest-mark {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.crest-caption {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.68);
}

.luminist-card,
.shadow-card {
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.luminist-card {
	box-shadow: var(--glow-luminist);
}

.shadow-card {
	box-shadow: var(--glow-shadow);
}

.luminist-card:hover,
.roster-card.luminist-card:hover,
.character-card.luminist-card:hover {
	box-shadow: var(--glow-luminist-hover);
	border-color: rgba(77, 114, 177, 0.3);
}

.shadow-card:hover,
.roster-card.shadow-card:hover,
.character-card.shadow-card:hover {
	box-shadow: var(--glow-shadow-hover);
	border-color: rgba(140, 52, 34, 0.3);
}

.conflict-name,
.roster-faction,
.footer-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.conflict-card li {
	padding: 0.95rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(245, 237, 216, 0.82);
}

.conflict-card li:first-child {
	margin-top: 0.5rem;
}

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

.roster-card {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	height: 100%;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.roster-card:hover {
	transform: translateY(-2px);
}

.roster-media-frame,
.character-media-frame {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 0.8rem 0.8rem 0.2rem;
	background: radial-gradient(circle at top, rgba(224, 187, 97, 0.08), transparent 46%);
	overflow: hidden;
}

.roster-card div {
	padding: 1.2rem;
	display: grid;
	align-content: start;
	gap: 0.45rem;
}

.section-action {
	display: flex;
	justify-content: center;
	margin-top: 1.6rem;
}

.filter-bar {
	display: grid;
	grid-template-columns: 1.3fr 220px;
	gap: 1rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.media-plan-grid,
.world-art-layout {
	display: grid;
	gap: 1rem;
}

.page-hero-roster {
	padding: 5.25rem 0 1.15rem;
}

.page-hero-roster .page-copy h1 {
	max-width: min(20ch, 100%);
	font-size: clamp(2.55rem, 5.4vw, 4.35rem);
}

.page-hero-roster .page-intro {
	max-width: 48ch;
}

.roster-hero-shell {
	align-items: center;
	gap: 2rem 2.5rem;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.roster-hero-aside {
	display: grid;
	gap: 1rem;
	align-self: start;
	justify-items: center;
	width: 100%;
	max-width: 540px;
	justify-self: end;
}

.roster-hero-medallion {
	margin: 0;
	width: 100%;
	max-width: min(100%, 520px);
	aspect-ratio: 1 / 1;
}

.roster-hero-medallion img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.48));
}

.roster-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.roster-hero-stats li {
	padding: 0.7rem 0.45rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	text-align: center;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.72);
}

.roster-hero-stats strong {
	display: block;
	margin-bottom: 0.2rem;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gold-bright);
}

.roster-browser-shell.section-shell {
	padding-top: 0.85rem;
}

/* Interior heroes with copy + stat panel aside (About, Media, Signup). */
.page-hero-world,
.page-hero-media,
.page-hero-signup {
	padding: 5.25rem 0 1.15rem;
}

.page-hero-world .page-copy h1,
.page-hero-media .page-copy h1,
.page-hero-signup .page-copy h1 {
	font-size: clamp(2.55rem, 5.4vw, 4.35rem);
}

.page-hero-world .page-copy h1,
.page-hero-signup .page-copy h1 {
	max-width: min(22ch, 100%);
}

.page-hero-media .page-copy h1 {
	max-width: min(24ch, 100%);
}

.page-hero-world .page-intro,
.page-hero-media .page-intro,
.page-hero-signup .page-intro {
	max-width: 48ch;
}

.world-hero-shell,
.media-hero-shell,
.signup-hero-shell {
	align-items: start;
	gap: 2rem 2.5rem;
	grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.88fr);
}

.page-hero-world .page-stat-panel,
.page-hero-media .page-stat-panel,
.page-hero-signup .page-stat-panel {
	align-self: start;
	justify-self: end;
	width: 100%;
	max-width: 420px;
	padding: 1.35rem 1.45rem;
}

.page-hero-world + .world-lore-shell.section-shell,
.page-hero-media + .section-shell,
.page-hero-signup + .signup-shell.section-shell {
	padding-top: 0.85rem;
}

.page-hero-play {
	padding: 5.25rem 0 1.15rem;
}

.page-hero-play .page-copy h1 {
	max-width: min(16ch, 100%);
	font-size: clamp(2.55rem, 5.4vw, 4.35rem);
}

.page-hero-play .page-intro {
	max-width: 48ch;
}

.page-hero-play + .connect-shell.section-shell {
	padding-top: 0.85rem;
}

@media (max-width: 992px) {
	.page-hero-world .page-stat-panel,
	.page-hero-media .page-stat-panel,
	.page-hero-signup .page-stat-panel {
		justify-self: stretch;
		max-width: none;
	}

	.roster-hero-aside {
		justify-self: stretch;
		max-width: none;
	}

	.roster-hero-medallion {
		max-width: min(100%, 480px);
		margin-inline: auto;
	}
}

.featured-art-split {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1.08fr);
	gap: 1.35rem 2rem;
	align-items: center;
}

.featured-art-split .featured-art-copy {
	margin-bottom: 0;
	max-width: 38ch;
}

.featured-art-split .featured-art-copy h2 {
	max-width: none;
}

.featured-art-note {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(245, 237, 216, 0.72);
	max-width: 44ch;
}

.featured-art-split .promo-crop-featured {
	justify-content: flex-end;
	padding: 0;
}

@media (max-width: 960px) {
	.featured-art-split {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.featured-art-split .featured-art-copy {
		max-width: none;
	}

	.featured-art-split .promo-crop-featured {
		justify-content: center;
	}

	.featured-art-split .promo-crop-featured .roster-medallion-figure {
		max-width: min(100%, 520px);
	}
}

/* Single featured roster art (no placeholder grid). */
.promo-crop-featured {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 0.35rem 0 0.15rem;
}

.promo-crop-featured .roster-medallion-figure {
	margin: 0;
	max-width: min(100%, 640px);
	width: 100%;
	aspect-ratio: 1 / 1;
}

.featured-art-split .promo-crop-featured .roster-medallion-figure {
	max-width: min(100%, 680px);
}

.promo-crop-featured .roster-medallion-figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.5));
}

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

.media-plan-card {
	min-height: 170px;
}

.world-art-layout {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
}

.world-art-placeholder {
	min-height: 320px;
}

/* World lore page (redesign/about.html) */
.world-lore-shell {
	background: transparent;
}

.world-lore-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: 2rem;
	align-items: start;
}

.world-lore-split--flip {
	direction: rtl;
}

.world-lore-split--flip > * {
	direction: ltr;
}

.world-lore-prose p {
	margin: 0 0 1rem;
	max-width: 62ch;
	color: rgba(245, 237, 216, 0.82);
}

.world-lore-prose p:last-child {
	margin-bottom: 0;
}

.world-lore-art-figure {
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.world-lore-art-figure--inline {
	margin-top: 1.25rem;
	max-width: 100%;
}

.world-lore-art-caption {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(245, 237, 216, 0.55);
	max-width: 52ch;
}

.world-lore-art-caption code {
	font-size: 0.85em;
	color: rgba(243, 216, 141, 0.85);
}

.world-map-placeholder {
	min-height: 360px;
}

.world-lore-realm-image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow-md);
	background: rgba(6, 8, 12, 0.85);
}

.world-lore-realm-image img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.world-lore-realm-image--wide img {
	object-fit: cover;
	max-height: 280px;
}

.heart-art-placeholder {
	min-height: 340px;
}

.world-timeline {
	display: grid;
	gap: 1rem;
	margin-top: 0.5rem;
}

.world-timeline-item {
	padding: 1.25rem 1.4rem;
	border: var(--border-soft);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
}

.world-timeline-item .era-label {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.world-timeline-title {
	margin: 0 0 0.45rem;
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--text);
}

.world-timeline-copy {
	margin: 0;
	color: rgba(245, 237, 216, 0.82);
	max-width: 72ch;
}

.detail-card ul {
	margin: 0.75rem 0 0;
	padding-left: 1.15rem;
	display: grid;
	gap: 0.4rem;
	color: rgba(245, 237, 216, 0.78);
	font-size: 0.95rem;
}

.detail-card ul li {
	padding-left: 0.15rem;
}

.biome-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.biome-cell {
	padding: 0.85rem 1rem;
	border-radius: var(--radius-md);
	border: var(--border-soft);
	background: rgba(255, 255, 255, 0.035);
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(245, 237, 216, 0.88);
	text-align: center;
}

.world-lore-note {
	margin: 1.35rem 0 0;
	max-width: 62ch;
	color: rgba(245, 237, 216, 0.72);
	font-size: 0.96rem;
}

.biome-strip-placeholder {
	min-height: 160px;
}

.world-hooks-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 0.35rem;
}

.world-hook-card {
	padding: 1.35rem 1.45rem;
	border: var(--border-soft);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
}

.world-hook-title {
	margin: 0 0 0.55rem;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--text);
}

.world-hook-card p {
	margin: 0;
	color: rgba(245, 237, 216, 0.8);
	font-size: 0.95rem;
	max-width: 52ch;
}

.world-key-art-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 0.35rem;
}

.world-key-art-slot {
	min-height: 220px;
}

.korvac-art-placeholder {
	min-height: 260px;
}

.placeholder-copy code,
.world-lore-prose code {
	font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
	font-size: 0.86em;
	color: rgba(243, 216, 141, 0.88);
	word-break: break-word;
}

.search-control {
	display: grid;
	gap: 0.45rem;
}

.search-control span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.search-control input,
.search-control select,
.redesign-beta-form input {
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(7, 9, 12, 0.75);
	color: var(--text);
}

.character-grid,
.detail-grid,
.comparison-panels,
.gallery-grid {
	display: grid;
	gap: 1rem;
}

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

.character-card {
	display: grid;
	grid-template-rows: auto 1fr;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: 100%;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card:hover {
	transform: translateY(-2px);
}

.character-card:not(.luminist-card):not(.shadow-card):hover {
	border-color: rgba(224, 187, 97, 0.26);
	box-shadow: var(--glow-gold-hover);
}

.character-media {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: var(--art-position, center 42%);
	transform: scale(var(--art-scale, 1));
	transform-origin: var(--art-position, center 42%);
}

/* Shared portrait frame for Characters grid and homepage roster preview. */
.character-card .character-grid-portrait,
.roster-card .character-grid-portrait,
.character-detail-portrait.character-grid-portrait {
	--character-card-art-inset: clamp(0.85rem, 3vw, 1.35rem);
	aspect-ratio: 3 / 4;
	box-sizing: border-box;
	min-height: 360px;
	padding: 0;
	position: relative;
	overflow: hidden;
}

.character-detail-portrait.character-grid-portrait {
	--character-card-art-inset: clamp(0.5rem, 1.5vw, 0.8rem);
	display: block;
	width: 100%;
	aspect-ratio: unset;
	height: min(62vh, 560px);
	min-height: 420px;
	max-height: min(62vh, 560px);
	background: none;
}

/* Wide detail art (Aurora, Firesoul): use full art-column width; clip overflow on the left only. */
.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor {
	--character-card-art-inset: clamp(0.35rem, 1vw, 0.55rem);
}

.character-card .character-grid-portrait picture,
.roster-card .character-grid-portrait picture {
	position: absolute;
	inset: var(--character-card-art-inset);
	display: block;
	width: calc(100% - (var(--character-card-art-inset) * 2));
	height: calc(100% - (var(--character-card-art-inset) * 2));
}

.character-card .character-grid-portrait picture .character-media,
.roster-card .character-grid-portrait picture .character-media {
	position: static;
	inset: auto;
	width: 100%;
	height: 100%;
}

.character-card .character-grid-portrait .character-media,
.roster-card .character-grid-portrait .character-media {
	position: absolute;
	inset: var(--character-card-art-inset);
	width: calc(100% - (var(--character-card-art-inset) * 2));
	height: calc(100% - (var(--character-card-art-inset) * 2));
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: var(--art-position, center bottom);
	transform: scale(var(--art-scale, 1));
	transform-origin: var(--art-position, center bottom);
}

/* Wide roster art height-fills the card; excess width clips on the left only (Firesoul faces right). */
.character-card .character-grid-portrait.character-grid-portrait--firesoul,
.roster-card .character-grid-portrait.character-grid-portrait--firesoul {
	overflow: hidden;
}

.character-card .character-grid-portrait.character-grid-portrait--firesoul picture,
.roster-card .character-grid-portrait.character-grid-portrait--firesoul picture {
	top: var(--character-card-art-inset);
	right: var(--character-card-art-inset);
	bottom: var(--character-card-art-inset);
	left: 0;
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	width: auto;
	max-width: none;
	overflow: visible;
}

.character-card .character-grid-portrait.character-grid-portrait--firesoul picture .character-media,
.roster-card .character-grid-portrait.character-grid-portrait--firesoul picture .character-media {
	width: auto;
	height: 100%;
	object-position: right center;
	transform: none;
}

/* Detail hero + gallery thumbnails — height-fill centered figures; right-anchor: flush right, clip left. */
.character-detail-portrait.character-grid-portrait > .art-display-button,
.art-gallery-card .character-detail-portrait.character-grid-portrait {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: var(--character-card-art-inset);
	padding-bottom: var(--character-card-art-inset);
	box-sizing: border-box;
	border: 0;
	background: transparent;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) > .art-display-button > picture,
.art-gallery-card .character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) > picture {
	position: static;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	width: auto;
	height: 100%;
	max-width: 100%;
	flex: 0 1 auto;
	min-height: 0;
}

.character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) .character-media,
.art-gallery-card .character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) .character-media {
	position: static;
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: var(--art-position, center bottom);
	transform: scale(var(--art-scale, 1));
	transform-origin: center bottom;
	flex-shrink: 0;
}

.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor > .art-display-button,
.art-gallery-card .character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor {
	justify-content: flex-end;
	align-items: stretch;
	padding-left: 0;
	padding-right: 0;
}

.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor > .art-display-button > picture,
.art-gallery-card .character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor > picture {
	position: absolute;
	top: var(--character-card-art-inset);
	right: 0;
	bottom: var(--character-card-art-inset);
	left: 0;
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	width: auto;
	max-width: none;
	overflow: visible;
}

.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor .character-media,
.art-gallery-card .character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor .character-media {
	position: static;
	width: auto;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: var(--art-position, right bottom);
	transform: scale(var(--art-scale, 1));
	transform-origin: right bottom;
}

.character-detail-portrait.character-grid-portrait > .art-display-button {
	cursor: zoom-in;
}

.character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) .art-display-button:hover img,
.character-detail-portrait.character-grid-portrait:not(.character-grid-portrait--right-anchor) .art-display-button:focus-visible img,
.art-gallery-card .shot-button:hover .character-detail-portrait:not(.character-grid-portrait--right-anchor) .character-media,
.art-gallery-card .shot-button:focus-visible .character-detail-portrait:not(.character-grid-portrait--right-anchor) .character-media {
	transform: scale(calc(var(--art-scale, 1) * 1.02));
	transform-origin: center bottom;
}

.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor .art-display-button:hover img,
.character-detail-portrait.character-grid-portrait.character-grid-portrait--right-anchor .art-display-button:focus-visible img,
.art-gallery-card .shot-button:hover .character-detail-portrait.character-grid-portrait--right-anchor .character-media,
.art-gallery-card .shot-button:focus-visible .character-detail-portrait.character-grid-portrait--right-anchor .character-media {
	transform: scale(calc(var(--art-scale, 1) * 1.02));
	transform-origin: right bottom;
}

.character-body {
	padding: 1.2rem;
	display: grid;
	align-content: start;
	gap: 0.45rem;
}

.character-passive {
	margin-top: 0.4rem;
	font-size: 0.93rem;
	color: rgba(245, 237, 216, 0.76);
}

.character-detail-page {
	position: relative;
}

.character-detail-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(12, 16, 22, 0.88);
	color: var(--text);
	border-radius: 999px;
	font-size: 1.8rem;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.character-detail-nav:hover,
.character-detail-nav:focus-visible {
	border-color: rgba(224, 187, 97, 0.35);
	color: var(--gold-bright);
	background: rgba(18, 23, 31, 0.94);
}

.character-detail-nav-prev {
	left: clamp(0.5rem, 2vw, 1.25rem);
}

.character-detail-nav-next {
	right: clamp(0.5rem, 2vw, 1.25rem);
}

.character-detail-shell {
	display: grid;
	gap: 2rem;
}

.character-detail-hero {
	display: grid;
	grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
	gap: 1.5rem;
	align-items: center;
}

.character-detail-art,
.character-detail-copy,
.character-passive-card,
.ability-card {
	border-radius: var(--radius-lg);
}

.character-detail-art {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: radial-gradient(circle at top, rgba(224, 187, 97, 0.08), transparent 42%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	padding: 0;
	overflow: hidden;
	display: flex;
	align-items: stretch;
}

.character-detail-copy {
	display: grid;
	gap: 1rem;
}

.character-detail-copy h1 {
	max-width: 10ch;
}

.character-stat-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: center;
}

.stat-chip,
.stat-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.stat-chip {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(245, 237, 216, 0.76);
}

.stat-value {
	background: rgba(224, 187, 97, 0.1);
	color: var(--gold-bright);
}

.character-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 1rem;
}

.ability-viewer {
	display: grid;
	gap: 1rem;
}

.ability-trigger-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.ability-trigger {
	display: grid;
	gap: 0.3rem;
	padding: 0.95rem 1rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(7, 9, 12, 0.55);
	color: var(--text);
	text-align: left;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ability-trigger:hover,
.ability-trigger:focus-visible,
.ability-trigger.is-active {
	transform: translateY(-2px);
	border-color: rgba(224, 187, 97, 0.34);
	background: rgba(15, 19, 26, 0.92);
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.ability-trigger-key {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.ability-trigger-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.5rem;
	line-height: 0.95;
	color: var(--text);
}

.ability-tooltip-panel {
	position: relative;
	padding: 1.2rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(7, 9, 12, 0.82));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	min-height: 290px;
	display: grid;
	align-content: start;
	gap: 1rem;
}

.ability-tooltip-header {
	display: grid;
	gap: 0.35rem;
}

.ability-tooltip-header .eyebrow {
	margin-bottom: 0;
}

.ability-tooltip-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.ability-tooltip-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.52rem 0.78rem;
	border-radius: 999px;
	background: rgba(224, 187, 97, 0.1);
	border: 1px solid rgba(224, 187, 97, 0.24);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.ability-tooltip-description {
	color: rgba(245, 237, 216, 0.84);
	font-size: 0.98rem;
	line-height: 1.45;
}

.empty-art-slot {
	position: relative;
	min-height: 240px;
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(8, 10, 14, 0.7));
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.ability-tooltip-stats {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-top: auto;
}

.ability-tooltip-stats.has-secondary {
	grid-template-columns: repeat(2, auto);
	justify-content: start;
	column-gap: clamp(2rem, 5vw, 3.5rem);
}

.ability-tooltip-column {
	display: grid;
	gap: 0.7rem;
	width: max-content;
	max-width: 100%;
}

.ability-stat-row {
	display: grid;
	grid-template-columns: 7.25rem minmax(0, max-content);
	gap: 0.65rem 0.85rem;
	align-items: baseline;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ability-stat-row:first-child {
	padding-top: 0;
	border-top: 0;
}

.ability-stat-label {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.ability-stat-value {
	color: rgba(245, 237, 216, 0.92);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.detail-bullets {
	display: grid;
	gap: 0.85rem;
}

.detail-bullets li {
	position: relative;
	padding-left: 1.4rem;
	color: rgba(245, 237, 216, 0.82);
}

.detail-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.72rem;
	width: 0.48rem;
	height: 0.48rem;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 10px rgba(224, 187, 97, 0.45);
}

.empty-state {
	padding: 2rem;
	text-align: center;
}

.detail-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card,
.comparison-panel,
.video-card {
	padding: 1.5rem;
}

.comparison-grid {
	display: grid;
	gap: 1.6rem;
}

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

.video-stack {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

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

.gallery-card {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 260px;
}

.art-gallery-card {
	min-height: 360px;
}

.art-gallery-card .shot-button {
	position: relative;
	overflow: hidden;
	min-height: 360px;
	cursor: zoom-in;
	background: radial-gradient(circle at top, rgba(224, 187, 97, 0.08), transparent 46%);
}

.art-gallery-card .character-media-frame {
	display: block;
	padding: 0;
	aspect-ratio: unset;
	background: none;
}

.art-gallery-card .character-detail-portrait.character-grid-portrait {
	height: 100%;
	min-height: 0;
	max-height: none;
}

.shot-button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: inherit;
}

.shot-button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}
.shot-button:hover img:not(.character-media),
.shot-button:focus-visible img:not(.character-media) {
	transform: scale(1.03);
}

.art-display-button {
	cursor: zoom-in;
}

.world-lore-realm-image .art-display-button,
.hero-showpiece.art-display-tile > .art-display-button,
figure.pillar-visual > .art-display-button,
.character-detail-art.art-display-tile > .art-display-button,
.roster-hero-medallion.art-display-tile > .art-display-button {
	display: block;
	width: 100%;
}

.world-lore-realm-image .art-display-button img,
.hero-showpiece.art-display-tile > .art-display-button img,
figure.pillar-visual > .art-display-button img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.roster-hero-medallion.art-display-tile > .art-display-button img {
	object-fit: contain;
}

.signup-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 1.2rem;
}

.signup-copy {
	display: grid;
	gap: 1rem;
}

.signup-form-card {
	padding: 1.4rem;
}

.portal-shell {
	padding-top: 2.8rem;
}

.portal-shell-frame,
.portal-main,
.portal-admin-shell,
.portal-page-title,
.portal-top-grid,
.portal-activity-column,
.portal-grid,
.portal-admin-grid,
.portal-form,
.portal-feedback-list,
.portal-submissions,
.portal-teams-grid,
.portal-badges {
	display: grid;
	gap: 1rem;
}

.portal-page-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding: 1.35rem 1.6rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(135deg, rgba(224, 187, 97, 0.07), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
}

.portal-shell-frame.is-authenticated .portal-page-header {
	grid-template-columns: minmax(300px, 1.05fr) minmax(0, 0.95fr);
	gap: 1.25rem 1.5rem;
	align-items: stretch;
}

.portal-page-title {
	gap: 0.7rem;
}

.portal-shell-frame.is-authenticated .portal-page-title-end {
	text-align: right;
	justify-items: end;
}

.portal-shell-frame.is-authenticated .portal-page-title-end h1 {
	margin-left: auto;
}

.portal-page-title h1 {
	font-size: clamp(2.2rem, 4.3vw, 3.7rem);
	max-width: 18ch;
	text-wrap: balance;
}

.portal-shell-frame.is-authenticated .portal-page-title h1 {
	font-size: clamp(1.85rem, 3.2vw, 2.65rem);
	max-width: 14ch;
}

.portal-page-copy {
	max-width: 62ch;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(245, 237, 216, 0.78);
}

.portal-shell-frame.is-authenticated .portal-page-copy {
	display: none;
}

.portal-header-session {
	align-self: stretch;
	padding: 1.1rem 1.25rem;
	gap: 0.55rem;
}

.portal-header-session h2 {
	margin: 0;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	line-height: 1.1;
}

.portal-header-session .portal-badges {
	margin-top: 0.1rem;
}

.portal-header-session #portal-status-copy {
	margin: 0;
	font-size: 0.92rem;
	color: rgba(245, 237, 216, 0.72);
}

.portal-auth-shell {
	width: min(100%, 560px);
	justify-self: center;
}

.portal-oauth-row {
	display: grid;
	gap: 0.65rem;
	margin-bottom: 0.35rem;
}

.portal-oauth-btn {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.portal-oauth-btn--steam[disabled] {
	opacity: 0.72;
	cursor: not-allowed;
}

.portal-oauth-hint {
	margin: -0.15rem 0 0.55rem;
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.78rem;
	line-height: 1.35;
	text-align: center;
}

.portal-oauth-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.85rem 0 1.1rem;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.82rem;
	text-transform: lowercase;
}

.portal-oauth-divider::before,
.portal-oauth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(224, 187, 97, 0.28);
}

.portal-card {
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-lg);
}

.portal-card-header {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.portal-card-header h2,
.portal-card-header h3 {
	max-width: none;
	text-wrap: balance;
}

.portal-msg,
.portal-muted,
.portal-note p,
.portal-feedback-meta,
.portal-application-meta,
.portal-team-head p {
	color: rgba(245, 237, 216, 0.72);
	font-size: 0.92rem;
}

.portal-note {
	display: grid;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-community-note {
	margin-top: 1.25rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-community-note p {
	margin: 0.45rem 0 0;
	font-size: 0.92rem;
	color: rgba(245, 237, 216, 0.78);
	line-height: 1.55;
}

.signup-community-note a {
	color: var(--gold-bright);
	font-weight: 600;
}

.signup-community-note a:hover {
	color: #fff;
}

.redesign-portal-note {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	gap: 0.8rem;
	text-align: left;
}

.portal-form label {
	display: grid;
	gap: 0.45rem;
}

.portal-form label span {
	font-size: 0.84rem;
	font-weight: 700;
	color: rgba(245, 237, 216, 0.85);
}

.portal-form label small,
.redesign-beta-form label small {
	font-size: 0.76rem;
	line-height: 1.45;
	color: rgba(245, 237, 216, 0.62);
}

.portal-form input,
.portal-form select,
.portal-form textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(7, 9, 12, 0.75);
	color: var(--text);
	resize: vertical;
}

.portal-badges {
	grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
	gap: 0.6rem;
}

.portal-badge,
.portal-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid rgba(224, 187, 97, 0.24);
	background: rgba(224, 187, 97, 0.1);
	color: var(--gold-bright);
}

.portal-badge-admin,
.portal-pill.is-approved {
	background: rgba(77, 114, 177, 0.18);
	border-color: rgba(77, 114, 177, 0.34);
	color: #d6e4ff;
}

.portal-pill.is-steam-added {
	background: rgba(102, 192, 244, 0.16);
	border-color: rgba(102, 192, 244, 0.38);
	color: #d8f1ff;
}

.portal-pill.is-discord-role {
	background: rgba(142, 124, 255, 0.16);
	border-color: rgba(168, 152, 255, 0.38);
	color: #e8e0ff;
}

.portal-ops-checks {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.75rem;
}

.portal-application-status {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: flex-end;
}

.portal-steam-added-control {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: rgba(245, 237, 216, 0.88);
	cursor: pointer;
	user-select: none;
}

.portal-steam-added-control input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--gold-bright);
}

.portal-steam-keys-card .portal-page-copy {
	margin-bottom: 1rem;
}

.portal-steam-pool-stats {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 168, 76, 0.18);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.95rem;
	color: rgba(245, 237, 216, 0.9);
}

.portal-steam-pool-toolbar {
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.portal-steam-pool-stats strong {
	color: #f3d88d;
}

.portal-steam-template-label {
	display: grid;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.portal-steam-template-label textarea {
	width: 100%;
	min-height: 6.5rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 168, 76, 0.22);
	background: rgba(8, 10, 14, 0.72);
	color: var(--text-primary);
	font: inherit;
	line-height: 1.55;
	resize: vertical;
}

.portal-steam-keys-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.75rem;
}

.portal-steam-select-all {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.92rem;
	color: rgba(245, 237, 216, 0.88);
	cursor: pointer;
	user-select: none;
}

.portal-steam-select-all input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--gold-bright);
}

.portal-steam-key-list {
	display: grid;
	gap: 0.85rem;
}

.portal-steam-key-item {
	display: grid;
	gap: 0.55rem;
	padding: 0.95rem 1rem;
	border-radius: 16px;
	border: 1px solid rgba(201, 168, 76, 0.18);
	background: rgba(255, 255, 255, 0.02);
}

.portal-steam-key-item-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem 1rem;
}

.portal-steam-key-item-head label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	user-select: none;
}

.portal-steam-key-item-head h4 {
	margin: 0;
	font-size: 1rem;
}

.portal-steam-key-item-head p {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	color: rgba(245, 237, 216, 0.72);
}

.portal-steam-key-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: end;
}

.portal-steam-key-fields input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	border: 1px solid rgba(201, 168, 76, 0.22);
	background: rgba(8, 10, 14, 0.72);
	color: var(--text-primary);
	font: inherit;
	font-family: Consolas, Monaco, monospace;
	letter-spacing: 0.04em;
}

.portal-steam-key-meta {
	font-size: 0.82rem;
	color: rgba(245, 237, 216, 0.62);
}

.portal-grid,
.portal-admin-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

.analytics-table-wrap {
	overflow-x: auto;
	margin-top: 0.75rem;
}

.analytics-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.analytics-table th,
.analytics-table td {
	border: 1px solid rgba(201, 168, 76, 0.22);
	padding: 0.45rem 0.55rem;
	text-align: left;
	vertical-align: top;
}

.analytics-table th {
	color: rgba(232, 220, 190, 0.92);
	background: rgba(12, 10, 20, 0.72);
	font-weight: 600;
}

.analytics-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.portal-top-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.portal-shell-frame.has-incoming-feedback-panel .portal-top-grid {
	grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
	gap: 1rem 1.15rem;
}

.portal-teams-shell {
	height: 100%;
}

.portal-activity-column {
	align-content: start;
}

.portal-header-session .portal-session-actions.cta-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.45rem;
	min-width: 0;
}

.portal-header-session .portal-session-actions .button {
	width: auto;
	flex: 1 1 calc(50% - 0.3rem);
	min-width: min(100%, 8.75rem);
}

.portal-feedback-card {
	width: min(100%, 42rem);
	padding: 1.15rem 1.25rem;
}

.portal-shell-frame.has-incoming-feedback-panel .portal-feedback-card {
	width: 100%;
	max-width: none;
}

.portal-incoming-feedback-card {
	padding: 1.1rem 1.2rem;
	align-self: start;
}

.portal-incoming-feedback-header {
	margin-bottom: 0.55rem;
}

.portal-incoming-feedback-header h3 {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.15;
}

.portal-incoming-feedback-card .admin-feedback-list {
	display: grid;
	gap: 0.7rem;
	max-height: min(68vh, 34rem);
	overflow-y: auto;
	padding-right: 0.2rem;
}

.portal-feedback-card-header {
	margin-bottom: 0.65rem;
}

.portal-feedback-card-header h2 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.15;
}

.portal-feedback-form {
	gap: 0.7rem;
}

.portal-feedback-form-row {
	display: grid;
	grid-template-columns: minmax(9.5rem, 0.42fr) minmax(0, 1fr);
	gap: 0.7rem;
	align-items: start;
}

.portal-feedback-form .portal-feedback-form-row label,
.portal-feedback-form > label {
	gap: 0.35rem;
}

.portal-feedback-form input,
.portal-feedback-form select,
.portal-feedback-form textarea {
	padding: 0.72rem 0.85rem;
	border-radius: 12px;
}

.portal-feedback-form textarea {
	min-height: 4.5rem;
}

.portal-feedback-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 0.15rem;
}

.portal-feedback-form-actions .button {
	width: auto;
	min-width: 10.5rem;
}

.portal-feedback-form-actions .portal-msg {
	margin: 0;
	flex: 1 1 12rem;
}

.portal-status-banner {
	padding: 1rem;
	border-radius: 18px;
	border: 1px solid rgba(224, 187, 97, 0.18);
	background: rgba(224, 187, 97, 0.08);
}

.portal-ops-workflow {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.portal-ops-workflow summary {
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--gold-bright);
	list-style: none;
}

.portal-ops-workflow summary::-webkit-details-marker {
	display: none;
}

.portal-ops-steps {
	margin: 1rem 0 0.75rem;
	padding-left: 1.25rem;
	color: rgba(245, 237, 216, 0.82);
	line-height: 1.65;
}

.portal-ops-steps li + li {
	margin-top: 0.55rem;
}

.portal-ops-steps code {
	font-size: 0.86em;
	color: #d6e4ff;
}

.portal-teams-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
}

.portal-team-card,
.portal-feedback-item,
.portal-application-item {
	min-width: 0;
	padding: 1rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(7, 9, 12, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-team-head,
.portal-feedback-head,
.portal-application-head {
	min-width: 0;
	display: grid;
	gap: 0.8rem;
	align-items: start;
	margin-bottom: 0.85rem;
}

.portal-team-head {
	gap: 0.35rem;
}

.portal-team-members {
	display: grid;
	gap: 0.6rem;
}

.portal-member-chip {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
	padding: 0.6rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-member-chip img {
	width: 54px;
	height: 54px;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
	background: radial-gradient(circle at center, rgba(224, 187, 97, 0.08), transparent 62%);
}

.portal-feedback-list,
.portal-application-list {
	display: grid;
	gap: 0.9rem;
}

.portal-member-chip span,
.portal-muted,
.portal-application-meta,
.portal-feedback-meta,
.portal-team-head p,
.portal-team-card h3,
.portal-application-item h3,
.portal-feedback-item h3 {
	overflow-wrap: anywhere;
}

.portal-team-head p {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portal-feedback-item h3,
.portal-application-item h3,
.portal-team-card h3 {
	font-size: 1.15rem;
	line-height: 1.08;
	margin-bottom: 0.45rem;
}

.portal-inline-button {
	margin-top: 0.9rem;
	width: auto;
}

.portal-empty {
	padding: 1rem;
	border-radius: 18px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(245, 237, 216, 0.64);
}

.redesign-beta-form {
	display: grid;
	gap: 1rem;
}

.redesign-beta-form label {
	display: grid;
	gap: 0.45rem;
}

.redesign-beta-form label span {
	font-size: 0.84rem;
	font-weight: 700;
	color: rgba(245, 237, 216, 0.85);
}

.redesign-beta-msg {
	min-height: 1.5rem;
	font-size: 0.94rem;
	color: var(--gold-bright);
}

/* ── Gallery lightbox v2: character art panel = modal; media = cinema layout ── */
.gallery-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	padding: clamp(0.75rem, 2vw, 1.25rem);
	background: rgba(4, 6, 10, 0.92);
	backdrop-filter: blur(16px);
}

.gallery-overlay[hidden] {
	display: none;
}

/* Viewport-level controls — fade in on overlay hover */
.gallery-close--viewport,
.gallery-overlay .gallery-nav {
	position: fixed;
	z-index: 92;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 10, 14, 0.72);
	color: var(--text);
	border-radius: 999px;
	backdrop-filter: blur(8px);
	opacity: 0.55;
	transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-overlay:hover .gallery-close--viewport,
.gallery-overlay:hover .gallery-nav,
.gallery-close--viewport:focus-visible,
.gallery-overlay .gallery-nav:focus-visible {
	opacity: 1;
	background: rgba(12, 16, 22, 0.92);
	border-color: rgba(224, 187, 97, 0.35);
}

.gallery-close--viewport {
	top: clamp(0.75rem, 2vw, 1.25rem);
	right: clamp(0.75rem, 2vw, 1.25rem);
	width: 44px;
	height: 44px;
	padding: 0;
	display: grid;
	place-items: center;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.gallery-overlay .gallery-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	padding: 0;
	display: grid;
	place-items: center;
	font-size: 1.85rem;
	line-height: 1;
	cursor: pointer;
}

.gallery-overlay .gallery-prev {
	left: clamp(0.5rem, 2vw, 1rem);
}

.gallery-overlay .gallery-next {
	right: clamp(0.5rem, 2vw, 1rem);
}

.gallery-overlay .gallery-nav:hover,
.gallery-close--viewport:hover {
	border-color: rgba(224, 187, 97, 0.5);
}

.gallery-overlay .gallery-nav:hover,
.gallery-overlay .gallery-nav:focus-visible {
	transform: translateY(-50%);
}

/* ── Character mode: shrink-wrap — art panel is the modal ── */
.gallery-overlay--character .gallery-dialog {
	position: relative;
	width: auto;
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.gallery-overlay--character .gallery-stage {
	min-height: 0;
	display: block;
}

.gallery-overlay--character .gallery-stage-portrait.character-detail-portrait.character-grid-portrait {
	--character-card-art-inset: clamp(0.55rem, 1.4vw, 0.85rem);
	position: relative;
	width: min(92vw, 880px);
	height: min(82vh, 760px);
	max-height: min(82vh, 760px);
	min-height: min(68vh, 520px);
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: radial-gradient(circle at 50% 0%, rgba(224, 187, 97, 0.1), transparent 48%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: var(--character-card-art-inset);
	padding-bottom: var(--character-card-art-inset);
	box-sizing: border-box;
}

.gallery-overlay--character .gallery-stage-portrait.character-detail-portrait.character-grid-portrait--right-anchor {
	--character-card-art-inset: clamp(0.4rem, 1vw, 0.6rem);
	justify-content: flex-end;
	align-items: stretch;
	padding-left: 0;
	padding-right: 0;
}

.gallery-overlay--character .gallery-stage-portrait.character-detail-portrait:not(.character-grid-portrait--right-anchor) > .gallery-image.character-media {
	position: static;
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: var(--art-position, center bottom);
	transform: scale(var(--art-scale, 1));
	transform-origin: center bottom;
	flex-shrink: 0;
	background: transparent;
	border-radius: 0;
}

.gallery-overlay--character .gallery-stage-portrait.character-detail-portrait.character-grid-portrait--right-anchor > .gallery-image.character-media {
	position: static;
	width: auto;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: var(--art-position, right bottom);
	transform: scale(var(--art-scale, 1));
	transform-origin: right bottom;
	background: transparent;
	border-radius: 0;
}

.gallery-portrait-chrome {
	position: absolute;
	inset: 0;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.gallery-portrait-vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 42%, rgba(4, 6, 10, 0.35) 68%, rgba(4, 6, 10, 0.82) 100%);
}

.gallery-portrait-bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem) clamp(0.85rem, 2vw, 1.25rem);
}

.gallery-portrait-bar-copy {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.gallery-portrait-eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(224, 187, 97, 0.88);
}

.gallery-portrait-title {
	margin: 0;
	font-family: var(--font-display, inherit);
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--text);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.gallery-portrait-count {
	margin: 0;
	flex-shrink: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.72);
}

.gallery-keyboard-hint {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 clamp(1rem, 2.5vw, 1.75rem) clamp(0.75rem, 1.8vw, 1rem);
	font-size: 0.76rem;
	letter-spacing: 0.06em;
	color: rgba(245, 237, 216, 0.45);
	text-align: center;
}

.gallery-overlay--character .gallery-keyboard-hint {
	padding-bottom: clamp(0.65rem, 1.5vw, 0.9rem);
}

/* ── Media / screenshot mode: wide cinema letterbox ── */
.gallery-overlay--media .gallery-dialog {
	position: relative;
	width: min(100%, 1100px);
	padding: clamp(0.85rem, 2vw, 1.25rem);
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(10, 13, 18, 0.94);
	box-shadow: var(--shadow-lg);
}

.gallery-overlay--media .gallery-stage {
	position: relative;
	min-height: min(78vh, 720px);
	display: grid;
	place-items: center;
}

.gallery-overlay--media .gallery-stage-portrait--media {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.gallery-overlay--media .gallery-stage-portrait--media .gallery-image {
	max-height: min(72vh, 680px);
	width: auto;
	max-width: 100%;
	border-radius: 18px;
	object-fit: contain;
	background: #050608;
}

.gallery-meta--media {
	display: grid;
	gap: 0.35rem;
	padding: 0.5rem 0.35rem 0;
}

.gallery-meta--media .gallery-count {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.gallery-meta--media .gallery-caption {
	color: rgba(245, 237, 216, 0.82);
}

.gallery-meta--media .gallery-keyboard-hint--media {
	padding: 0.25rem 0.35rem 0;
	text-align: left;
	color: rgba(245, 237, 216, 0.45);
}

body.gallery-open {
	overflow: hidden;
}

.media-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.shot-card {
	overflow: hidden;
	min-height: 250px;
	height: 100%;
}

.shot-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.shot-card:hover img {
	transform: scale(1.03);
}

.cta-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.6rem;
	padding: 2rem;
	align-items: center;
	background:
		linear-gradient(135deg, rgba(18, 24, 36, 0.95), rgba(31, 19, 15, 0.96)),
		url('../img/battlefield_backgrounds/unnamed.png') center/cover no-repeat;
}

.split-layout .section-copy h2,
.cta-band h2 {
	max-width: 16ch;
	text-wrap: balance;
}

.cta-stack {
	display: grid;
	gap: 0.8rem;
	min-width: 220px;
}

.site-footer {
	padding: 2rem 0 2.6rem;
	border-top: 1px solid var(--line);
	background: rgba(7, 9, 12, 0.65);
	backdrop-filter: blur(14px);
}

.footer-shell {
	display: grid;
	grid-template-columns: minmax(0, max-content) 1fr;
	grid-template-areas:
		"brand meta"
		"nav nav";
	gap: 1rem 2rem;
	align-items: center;
}

.footer-branding {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.footer-brand-copy {
	min-width: 0;
}

.footer-branding img {
	width: 62px;
	height: auto;
	flex-shrink: 0;
}

.footer-tagline {
	margin: 0.2rem 0 0;
	font-size: 0.92rem;
	color: rgba(245, 237, 216, 0.72);
	white-space: nowrap;
}

.footer-links {
	grid-area: nav;
	justify-content: center;
}

.footer-links,
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.footer-links a,
.social-links a {
	color: rgba(245, 237, 216, 0.8);
	font-size: 0.9rem;
}

.social-links a,
.connect-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.social-icon-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.social-icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.connect-label .social-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.social-links .social-link-steam {
	color: #b9e6ff;
	font-weight: 700;
}

.social-links .social-link-steam:hover {
	color: #fff;
}

.connect-card-featured .connect-label {
	color: #9fd8ff;
}

.connect-shell {
	padding-top: 0.5rem;
}

.connect-shell .section-heading {
	max-width: 58ch;
	margin-bottom: 1.75rem;
}

.connect-shell .section-lead {
	margin-top: 0.85rem;
	color: rgba(245, 237, 216, 0.78);
}

.connect-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.connect-card {
	display: grid;
	gap: 0.35rem;
	padding: 1.15rem 1.2rem;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: var(--shadow-md);
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.connect-card:hover {
	transform: translateY(-2px);
	border-color: rgba(224, 187, 97, 0.28);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: var(--glow-gold-hover);
}

.connect-card-featured {
	grid-column: span 3;
	border-color: rgba(102, 192, 244, 0.42);
	background: linear-gradient(135deg, rgba(27, 40, 56, 0.92) 0%, rgba(42, 71, 94, 0.88) 100%);
	box-shadow: var(--glow-steam);
}

.connect-card-featured:hover {
	border-color: rgba(136, 210, 255, 0.58);
	box-shadow: var(--glow-steam-hover);
}

.connect-card[data-social="discord"]:hover {
	border-color: rgba(88, 101, 242, 0.36);
	box-shadow: var(--glow-discord-hover);
}

.connect-card[data-social="instagram"]:hover {
	border-color: rgba(193, 53, 132, 0.34);
	box-shadow: var(--glow-instagram-hover);
}

.connect-card[data-social="x"]:hover {
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: var(--glow-x-hover);
}

.connect-card[data-social="facebook"]:hover {
	border-color: rgba(24, 119, 242, 0.34);
	box-shadow: var(--glow-facebook-hover);
}

.connect-card[data-social="reddit"]:hover {
	border-color: rgba(255, 69, 0, 0.32);
	box-shadow: var(--glow-reddit-hover);
}

.connect-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.62);
}

.connect-card-featured .connect-label {
	color: #9fd8ff;
}

.connect-title {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.45rem;
	line-height: 1.1;
	color: var(--text);
}

.connect-copy {
	font-size: 0.92rem;
	color: rgba(245, 237, 216, 0.76);
	max-width: 52ch;
}

.footer-meta {
	grid-area: meta;
	display: grid;
	gap: 0.4rem;
	justify-items: end;
}

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		animation: none !important;
		transition: none !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}

	.hero-backdrop {
		opacity: 1;
		transition: none;
	}
}

@media (max-width: 1100px) {

	.hero-shell,
	.split-layout,
	.conflict-layout,
	.cta-band,
	.portal-page-header,
	.footer-shell {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"nav"
			"meta";
	}

	.footer-links {
		justify-content: flex-start;
	}

	.footer-tagline {
		white-space: normal;
	}

	.hero-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.media-grid,
	.roster-grid,
	.pillar-grid,
	.conflict-columns,
	.portal-top-grid,
	.portal-teams-grid,
	.character-grid,
	.detail-grid,
	.comparison-panels,
	.video-stack,
	.gallery-grid,
	.signup-layout,
	.page-hero-shell,
	.filter-bar,
	.character-detail-hero,
	.character-detail-grid,
	.media-plan-grid,
	.world-art-layout,
	.world-lore-split,
	.biome-grid,
	.world-hooks-grid,
	.world-key-art-grid,
	.connect-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.connect-card-featured {
		grid-column: span 2;
	}

	.footer-meta {
		justify-items: start;
	}
}

@media (max-width: 1240px) {
	.brand-copy {
		display: none;
	}

	.brand-lockup img {
		height: 48px;
	}
}

@media (min-width: 993px) and (max-width: 1320px) {
	.main-nav ul {
		gap: 0.4rem;
	}

	.main-nav a {
		padding: 0.62rem 0.78rem;
		font-size: 0.84rem;
	}

	.main-nav a.nav-play,
	.main-nav a.nav-steam,
	.main-nav a.nav-cta,
	.main-nav a.nav-account-portal {
		padding-inline: 0.9rem;
	}
}

@media (max-width: 992px) {
	.site-header {
		padding: 0.7rem 0;
	}

	.brand-copy {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav ul {
		position: absolute;
		right: 0;
		top: calc(100% + 0.8rem);
		min-width: 240px;
		padding: 0.8rem;
		border-radius: 20px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		background: rgba(9, 11, 15, 0.96);
		box-shadow: var(--shadow-lg);
		flex-direction: column;
		align-items: stretch;
		display: none;
	}

	.main-nav ul[data-open='true'] {
		display: flex;
	}

	.main-nav ul {
		flex-wrap: nowrap;
	}

	.main-nav a {
		width: 100%;
		white-space: nowrap;
	}

	.hero-panel {
		padding-top: 2.4rem;
	}

	.hero-shell {
		padding-top: 1rem;
	}

	.hero-metrics,
	.hero-showcase,
	.media-grid,
	.roster-grid,
	.pillar-grid,
	.conflict-columns,
	.portal-top-grid,
	.portal-grid,
	.portal-admin-grid,
	.portal-teams-grid,
	.portal-page-header,
	.character-grid,
	.detail-grid,
	.comparison-panels,
	.video-stack,
	.gallery-grid,
	.signup-layout,
	.page-hero-shell,
	.filter-bar,
	.media-plan-grid,
	.world-art-layout,
	.world-lore-split,
	.biome-grid,
	.world-hooks-grid,
	.world-key-art-grid,
	.connect-grid {
		grid-template-columns: 1fr;
	}

	.connect-card-featured {
		grid-column: span 1;
	}

	.character-detail-hero,
	.character-detail-grid {
		grid-template-columns: 1fr;
	}

	.ability-trigger-row,
	.ability-tooltip-stats.has-secondary {
		grid-template-columns: 1fr;
	}

	.ability-tooltip-column {
		width: 100%;
	}

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

	.portal-team-head,
	.portal-feedback-head,
	.portal-application-head {
		flex-direction: column;
	}

	.portal-shell-frame.is-authenticated .portal-page-title-end {
		text-align: left;
		justify-items: start;
	}

	.portal-shell-frame.is-authenticated .portal-page-title-end h1 {
		margin-left: 0;
	}

	.portal-feedback-form-row {
		grid-template-columns: 1fr;
	}

	.portal-feedback-form-actions .button {
		width: 100%;
	}

	.button {
		width: 100%;
	}

	.faction-spotlight {
		min-height: clamp(340px, 88vw, 420px);
		padding-bottom: 0;
	}

	.spotlight-copy {
		max-width: none;
		padding-bottom: 0.75rem;
	}

	.spotlight-art {
		position: relative;
		inset: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		padding-right: 0;
		min-height: clamp(220px, 48vw, 300px);
		margin-top: 0.35rem;
	}

	.faction-spotlight .spotlight-portrait--sprite {
		position: relative;
		right: auto;
		left: auto;
		bottom: auto;
		min-height: 0;
		max-height: none;
		width: min(82vw, 360px);
		transform: none;
		object-position: bottom center;
	}

	.section-shell {
		padding: 4rem 0;
	}

	.cta-stack {
		min-width: 0;
	}

	.gallery-stage {
		min-height: auto;
	}

	.gallery-nav {
		bottom: 1rem;
		top: auto;
		transform: none;
	}

	.gallery-prev {
		left: 1rem;
	}

	.gallery-next {
		right: 1rem;
	}

	.footer-branding {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	body {
		background:
			radial-gradient(circle at top, rgba(184, 142, 56, 0.14), transparent 24%),
			linear-gradient(180deg, #11151c 0%, var(--bg) 34%, var(--bg-deep) 100%);
	}

	.shell {
		width: min(100% - 1.3rem, 1220px);
	}

	h1 {
		font-size: clamp(2.8rem, 14vw, 4rem);
	}

	.page-hero .page-copy h1 {
		font-size: clamp(2.55rem, 11.5vw, 3.65rem);
		max-width: min(22ch, 100%);
	}

	h2 {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.hero-metrics li,
	.pillar-card,
	.conflict-card,
	.roster-card div,
	.cta-band,
	.detail-card,
	.comparison-panel,
	.video-card,
	.signup-form-card,
	.page-stat-panel,
	.filter-bar,
	.empty-state {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.gallery-dialog {
		padding: 0.8rem;
	}

	.gallery-close {
		right: 0.8rem;
		top: 0.8rem;
	}
}

/* ── AAA marketing polish (2026-06-05) ── */

body.page-home .site-header:not(.is-scrolled) {
	background: rgba(9, 11, 15, 0.28);
	border-bottom-color: transparent;
}

.hero-panel-cinematic {
	min-height: 100vh;
	min-height: 100svh;
	padding: 0;
	display: grid;
	align-items: end;
}

.hero-cinematic-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero-cinematic-backdrop picture,
.hero-cinematic-backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 26%;
}

.hero-cinematic-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(8, 10, 14, 0.52) 0%, rgba(8, 10, 14, 0.18) 34%, rgba(8, 10, 14, 0.72) 100%),
		linear-gradient(90deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0.52) 22%, rgba(8, 10, 14, 0.22) 48%, rgba(8, 10, 14, 0.48) 100%);
}

.hero-panel-cinematic .hero-glow {
	z-index: 2;
}

.hero-panel-cinematic .hero-glow-left {
	background: radial-gradient(circle at 12% 42%, rgba(201, 165, 76, 0.22), transparent 34%);
}

.hero-panel-cinematic .hero-glow-right {
	background: radial-gradient(circle at 88% 38%, rgba(140, 52, 34, 0.18), transparent 32%);
}

.hero-shell-cinematic {
	position: relative;
	z-index: 3;
	grid-template-columns: minmax(11rem, 42%) minmax(0, 32rem);
	column-gap: clamp(1rem, 3vw, 2rem);
	max-width: min(1220px, calc(100% - 2.2rem));
	padding: clamp(5.5rem, 14vh, 8rem) 0 clamp(2.5rem, 8vh, 4rem);
	align-items: end;
}

.hero-shell-cinematic .hero-copy {
	grid-column: 2;
	max-width: none;
	padding: 0;
}

.hero-shell-cinematic h1 {
	max-width: 12ch;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero-secondary-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.15rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: rgba(245, 237, 216, 0.78);
}

.hero-secondary-links a {
	color: var(--gold-bright);
	text-decoration: underline;
	text-decoration-color: rgba(240, 212, 120, 0.42);
	text-underline-offset: 0.18em;
}

.hero-secondary-links a:hover {
	color: #fff6dc;
}

.hero-link-divider {
	opacity: 0.45;
}

.hero-panel-cinematic.hero-surface-ready .hero-cinematic-backdrop {
	opacity: 1;
}

.hero-panel-cinematic .hero-cinematic-backdrop {
	opacity: 0;
	transition: opacity 520ms ease;
}

.faction-spotlights-shell {
	padding-top: 0.25rem;
}

.faction-spotlights-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.media-frame-cinema {
	padding: 0;
	overflow: hidden;
	background: rgba(4, 6, 10, 0.72);
}

.cinema-poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	overflow: hidden;
	border-radius: calc(var(--radius-xl) - 8px);
}

.cinema-poster img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform 420ms ease, filter 420ms ease;
}

.cinema-poster:hover img,
.cinema-poster:focus-visible img {
	transform: scale(1.02);
	filter: brightness(1.06);
}

.cinema-play-badge {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1.35rem 0.85rem 1.05rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(8, 10, 14, 0.72);
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 700;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(12px);
	pointer-events: none;
}

.cinema-play-glyph {
	flex-shrink: 0;
	position: relative;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.cinema-play-glyph::after {
	content: '';
	position: absolute;
	left: 54%;
	top: 50%;
	transform: translate(-42%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #1a1207;
}

.cinema-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 2.5rem);
	background: rgba(4, 6, 10, 0.92);
	backdrop-filter: blur(10px);
}

.cinema-overlay[hidden] {
	display: none !important;
}

.cinema-dialog {
	position: relative;
	width: min(1120px, 100%);
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 10, 14, 0.96);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.cinema-dialog video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.cinema-dialog-meta {
	display: grid;
	gap: 0.35rem;
	padding: 1rem 1.2rem 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-dialog-title {
	margin: 0;
	font-family: 'Cinzel', 'Cormorant Garamond', serif;
	font-size: 1.15rem;
	color: var(--gold-bright);
}

.cinema-dialog-copy {
	margin: 0;
	font-size: 0.88rem;
	color: rgba(245, 237, 216, 0.72);
}

.cinema-close {
	position: absolute;
	right: 0.85rem;
	top: 0.85rem;
	z-index: 2;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(8, 10, 14, 0.78);
	color: var(--text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

body.cinema-open {
	overflow: hidden;
}

body[data-faction-focus="luminist"] .conflict-shell {
	background: radial-gradient(ellipse 90% 120% at 0% 50%, rgba(77, 114, 177, 0.12), transparent 68%);
}

body[data-faction-focus="shadow"] .conflict-shell {
	background: radial-gradient(ellipse 90% 120% at 100% 50%, rgba(140, 52, 34, 0.14), transparent 68%);
}

.conflict-card .crest-mark {
	width: 78px;
	height: 78px;
}

.luminist-card .crest-mark {
	filter: drop-shadow(0 10px 22px rgba(77, 114, 177, 0.35));
}

.shadow-card .crest-mark {
	filter: drop-shadow(0 10px 22px rgba(140, 52, 34, 0.35));
}

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

.shot-caption {
	margin: 0.65rem 0 0;
	padding: 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(245, 237, 216, 0.68);
	text-align: center;
}

.connect-grid-featured {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connect-grid-featured .connect-card-featured {
	grid-column: auto;
	min-height: 100%;
}

.connect-card-discord {
	border-color: rgba(88, 101, 242, 0.38);
	background: linear-gradient(135deg, rgba(36, 40, 72, 0.92) 0%, rgba(52, 58, 98, 0.88) 100%);
	box-shadow: var(--glow-discord-hover);
}

.connect-card-discord:hover {
	border-color: rgba(114, 125, 255, 0.52);
}

.connect-more-label {
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(224, 187, 97, 0.82);
	text-align: center;
	white-space: nowrap;
}

.connect-crest-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 1.65rem 0 0.35rem;
}

.connect-crest-heading-rule {
	flex: 1 1 5rem;
	max-width: 12rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(224, 187, 97, 0.42), transparent);
}

.connect-crest-rail {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(1.35rem, 4vw, 2.85rem);
	margin-top: 0.85rem;
	padding: 0.35rem 0 1rem;
	position: relative;
}

.connect-crest-rail::before {
	content: "";
	position: absolute;
	top: 2.65rem;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(224, 187, 97, 0.18) 12%,
		rgba(224, 187, 97, 0.32) 50%,
		rgba(224, 187, 97, 0.18) 88%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 0;
}

.connect-crest {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 0.65rem;
	min-width: 5.5rem;
	color: rgba(245, 237, 216, 0.9);
	text-decoration: none;
	transition: transform 200ms ease, color 200ms ease;
}

.connect-crest:nth-child(odd) {
	transform: translateY(0.35rem);
}

.connect-crest:nth-child(even) {
	transform: translateY(-0.2rem);
}

.connect-crest:hover {
	color: var(--text);
}

.connect-crest-medallion {
	position: relative;
	display: grid;
	place-items: center;
	width: 5.35rem;
	height: 5.35rem;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.08), transparent 42%),
		linear-gradient(180deg, rgba(18, 22, 30, 0.98) 0%, rgba(8, 10, 14, 0.96) 100%);
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.connect-crest-ring {
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 1px solid rgba(224, 187, 97, 0.38);
	box-shadow:
		inset 0 0 0 1px rgba(224, 187, 97, 0.12),
		0 0 18px rgba(224, 187, 97, 0.08);
	pointer-events: none;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.connect-crest-ring::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.connect-crest .social-icon-slot {
	width: 1.85rem;
	height: 1.85rem;
}

.connect-crest-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
	color: rgba(245, 237, 216, 0.72);
	transition: color 200ms ease;
}

.connect-crest:hover .connect-crest-medallion {
	transform: translateY(-3px);
	box-shadow:
		0 16px 34px rgba(0, 0, 0, 0.48),
		var(--glow-gold-hover);
}

.connect-crest:hover .connect-crest-ring {
	border-color: rgba(224, 187, 97, 0.58);
	box-shadow:
		inset 0 0 0 1px rgba(224, 187, 97, 0.2),
		0 0 22px rgba(224, 187, 97, 0.16);
}

.connect-crest:hover .connect-crest-label {
	color: rgba(245, 237, 216, 0.96);
}

.connect-crest-instagram:hover .connect-crest-ring {
	border-color: rgba(193, 53, 132, 0.52);
	box-shadow: var(--glow-instagram-hover);
}

.connect-crest-x:hover .connect-crest-ring {
	border-color: rgba(255, 255, 255, 0.34);
	box-shadow: var(--glow-x-hover);
}

.connect-crest-facebook:hover .connect-crest-ring {
	border-color: rgba(24, 119, 242, 0.48);
	box-shadow: var(--glow-facebook-hover);
}

.connect-crest-reddit:hover .connect-crest-ring {
	border-color: rgba(255, 69, 0, 0.48);
	box-shadow: var(--glow-reddit-hover);
}

@media (max-width: 640px) {
	.connect-crest-rail {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.35rem 1rem;
		padding-bottom: 0.35rem;
	}

	.connect-crest-rail::before {
		display: none;
	}

	.connect-crest:nth-child(odd),
	.connect-crest:nth-child(even) {
		transform: none;
	}

	.connect-crest-heading-rule {
		max-width: 4rem;
	}
}

.connect-more-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem 1rem;
}

.connect-more-link {
	padding: 0.55rem 0.95rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.84rem;
	font-weight: 600;
	color: rgba(245, 237, 216, 0.82);
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.connect-more-link:hover {
	transform: translateY(-1px);
	border-color: rgba(224, 187, 97, 0.28);
	background: rgba(255, 255, 255, 0.05);
	color: var(--gold-bright);
}

.mobile-beta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: rgba(9, 11, 15, 0.92);
	border-top: 1px solid var(--line);
	backdrop-filter: blur(14px);
	box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
}

.mobile-beta-bar .button {
	width: 100%;
}

.mobile-beta-bar.is-visible {
	display: block;
}

body.mobile-beta-visible {
	padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.media-filmstrip-shell {
	padding-top: 0.25rem;
}

.media-filmstrip {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	padding: 0.25rem 0 0.85rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.media-filmstrip-card {
	flex: 0 0 min(420px, 78vw);
	scroll-snap-align: start;
}

.media-filmstrip-card .shot-button img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.roster-card {
	display: grid;
	grid-template-rows: auto 1fr;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.roster-card:hover {
	transform: translateY(-2px);
}

@media (max-width: 1100px) {
	.faction-spotlights-grid,
	.connect-grid-featured,
	.media-grid-curated {
		grid-template-columns: 1fr;
	}

	.hero-shell-cinematic h1 {
		max-width: 14ch;
	}
}

@media (max-width: 720px) {
	body.page-home .site-header:not(.is-scrolled) .main-nav a:not(.nav-cta) {
		/* keep hamburger + beta only feel on small screens */
	}

	.hero-shell-cinematic {
		grid-template-columns: minmax(0, 1fr);
		padding-top: clamp(4.5rem, 12vh, 6rem);
	}

	.hero-shell-cinematic .hero-copy {
		grid-column: 1;
	}

	.hero-metrics {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-metrics li {
		white-space: normal;
	}

	.hero-cinematic-backdrop img {
		object-position: 34% 26%;
	}
}

/* ── AAA site pass v5 (2026-06-05) ── */

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.18s;
	animation-timing-function: ease;
}

html:not(.chrome-ready) main {
	opacity: 0;
}

html.chrome-ready main {
	opacity: 1;
	transition: opacity 220ms ease;
}

.brand-lockup-horizontal {
	gap: 0;
}

.brand-logo-horizontal {
	display: block;
	height: 46px;
	width: auto;
	max-width: min(320px, 48vw);
	filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.42));
}

@media (max-width: 720px) {
	.brand-logo-horizontal {
		height: 38px;
		max-width: min(240px, 58vw);
	}
}

.footer-branding img {
	display: block;
	height: 52px;
	width: auto;
	background: transparent;
}

.section-heading h2,
.hero-panel-cinematic h1,
.character-stage-heading h1 {
	text-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.cinema-trailer-soon {
	position: absolute;
	left: 1rem;
	top: 1rem;
	padding: 0.42rem 0.75rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(240, 212, 120, 0.34);
	background: rgba(8, 10, 14, 0.72);
	color: var(--gold-bright);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	backdrop-filter: blur(10px);
	pointer-events: none;
}

.cinema-trailer-badge {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-bright);
}

.media-carousel {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
}

.media-carousel-viewport {
	overflow: hidden;
	border-radius: calc(var(--radius-xl) - 6px);
}

.media-carousel-track {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0.25rem 0;
}

.media-carousel-track::-webkit-scrollbar {
	display: none;
}

.media-carousel .media-filmstrip-card {
	flex: 0 0 min(420px, 82vw);
	scroll-snap-align: center;
}

.media-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 10, 14, 0.82);
	color: var(--text);
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.media-carousel-arrow:hover {
	transform: translateY(-1px);
	border-color: rgba(224, 187, 97, 0.42);
	background: rgba(14, 18, 24, 0.94);
}

.media-carousel-dots {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 0.35rem;
}

.media-carousel-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(245, 237, 216, 0.22);
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease;
}

.media-carousel-dot.is-active {
	transform: scale(1.18);
	background: var(--gold-bright);
}

.character-stage-section {
	position: relative;
	padding: clamp(4.5rem, 10vh, 6rem) 0 clamp(2rem, 6vh, 3rem);
	overflow-x: visible;
}

.character-stage-shell {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.35rem;
	width: min(1680px, calc(100vw - 1.25rem));
}

.character-stage-rail-toolbar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.55rem;
	align-items: center;
	width: min(1680px, calc(100vw - 1.25rem));
	margin-inline: auto;
	position: relative;
	z-index: 1;
}

.character-stage-rail {
	overflow-x: clip;
	overflow-y: visible;
	overflow-clip-margin: 3.5rem 0 0 0;
	padding: 3rem 0.5rem 0.6rem;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.character-stage-rail-track {
	display: flex;
	gap: clamp(0.85rem, 1.6vw, 1.35rem);
	width: max-content;
	will-change: transform;
}

.character-stage-rail.is-dragging,
.character-stage-rail.is-coasting {
	cursor: grabbing;
}

.character-stage-rail::-webkit-scrollbar {
	display: none;
}

.character-stage-plate {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 18% 42%, rgba(77, 114, 177, 0.16), transparent 34%),
		radial-gradient(circle at 82% 38%, rgba(140, 52, 34, 0.14), transparent 32%),
		linear-gradient(180deg, rgba(8, 10, 14, 0.24) 0%, rgba(8, 10, 14, 0.92) 100%);
	transition: background 420ms ease;
}

.character-stage-plate[data-faction='shadow'] {
	background:
		radial-gradient(circle at 18% 42%, rgba(77, 114, 177, 0.08), transparent 34%),
		radial-gradient(circle at 82% 38%, rgba(140, 52, 34, 0.24), transparent 36%),
		linear-gradient(180deg, rgba(8, 10, 14, 0.24) 0%, rgba(8, 10, 14, 0.92) 100%);
}

.character-stage-heading h1 {
	max-width: 16ch;
}

.character-stage-composition {
	--character-stage-panel-width: min(52%, 54rem);
	position: relative;
	z-index: 1;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(520px, 68vh, 800px);
	padding: clamp(1.25rem, 3vh, 2rem) 0;
	touch-action: pan-y;
	overflow: visible;
}

.character-stage-feature {
	display: grid;
	gap: clamp(0.85rem, 1.8vw, 1.15rem);
	width: var(--character-stage-panel-width);
	max-width: none;
	margin-inline: auto;
	padding: clamp(1.15rem, 2.5vw, 1.65rem);
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 10, 14, 0.94);
	box-shadow: var(--shadow-lg);
	position: relative;
	z-index: 4;
}

.character-stage-header {
	display: grid;
	gap: 0.55rem;
	text-align: center;
}

.character-stage-header h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.85rem);
}

.character-stage-hook {
	margin: 0;
	max-width: 72ch;
	margin-inline: auto;
	color: rgba(245, 237, 216, 0.84);
}

.character-stage-passive-card {
	margin: 0;
}

.character-stage-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 0.85rem;
	align-items: start;
}

.character-stage-detail-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.character-stage-ability-viewer .ability-trigger-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.character-stage-ability-viewer .ability-tooltip-panel {
	height: var(--character-stage-ability-panel-height);
	min-height: var(--character-stage-ability-panel-height);
}

.character-stage-ability-viewer .ability-trigger-name {
	font-size: 1.25rem;
}

.character-stage-lore .detail-bullets {
	margin: 0;
}

.character-stage-gallery {
	display: grid;
	gap: 0.65rem;
}

.character-stage-gallery-strip {
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	padding-bottom: 0.2rem;
	scrollbar-width: thin;
}

.character-stage-gallery-thumb {
	flex: 0 0 clamp(5.5rem, 14vw, 7.5rem);
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(7, 9, 12, 0.55);
	overflow: hidden;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-stage-gallery-thumb:hover,
.character-stage-gallery-thumb:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(224, 187, 97, 0.34);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.character-stage-gallery-thumb .character-media-frame {
	min-height: clamp(5rem, 12vw, 6.5rem);
}

.character-stage-deep-link {
	justify-self: center;
	margin-top: 0.15rem;
}

.character-stage-sprite-bleed {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	overflow: visible;
	transition: opacity 460ms ease;
}

.character-stage-sprite-bleed.is-visible {
	opacity: 1;
}

.character-stage-sprite-pedestal {
	--character-stage-ground-height: clamp(110px, 14vw, 168px);
	--character-stage-ground-deck: 0.32;
	position: absolute;
	left: 0;
	bottom: clamp(5%, 9vh, 11%);
	width: 100%;
	max-width: max(0px, calc((100% - var(--character-stage-panel-width)) / 2 - 0.85rem));
	transform: translateX(clamp(-2rem, -3.5vw, -0.5rem));
	isolation: isolate;
	min-height: var(--character-stage-ground-height);
}

.character-stage-ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: var(--character-stage-ground-height);
	object-fit: contain;
	object-position: center bottom;
	filter: saturate(0.9) brightness(0.9);
	pointer-events: none;
}

.character-stage-sprite-mount {
	position: absolute;
	left: 50%;
	bottom: calc(var(--character-stage-ground-height) * var(--character-stage-ground-deck, 0.32));
	width: 100%;
	height: min(68vh, 720px);
	z-index: 5;
	transform: translateX(-50%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	overflow: visible;
}

.character-stage-sprite-mount .character-media-frame,
.character-stage-sprite-portrait {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.character-stage-sprite-portrait.character-media-frame {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.character-stage-sprite-portrait picture {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.character-stage-sprite-portrait picture,
.character-stage-sprite-portrait .character-media {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center bottom;
	transform: scale(var(--art-scale, 1.18)) translate(var(--art-shift-x, 0%), var(--art-shift-y, 0%));
	transform-origin: center bottom;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 4%, #000 10%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 4%, #000 10%, #000 100%);
}

.character-stage-thumb {
	--character-stage-thumb-slot: 11rem;
	--character-stage-thumb-art-height: 8.35rem;
	flex: 0 0 var(--character-stage-thumb-slot);
	min-width: var(--character-stage-thumb-slot);
	max-width: var(--character-stage-thumb-slot);
	display: grid;
	grid-template-rows: var(--character-stage-thumb-art-height) auto;
	justify-items: center;
	align-content: start;
	gap: 0.45rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(245, 237, 216, 0.72);
	cursor: pointer;
	scroll-snap-align: center;
	position: relative;
	z-index: 0;
	overflow: visible;
	isolation: isolate;
}

.character-stage-thumb:hover {
	z-index: 3;
}

.character-stage-thumb.is-active {
	z-index: 3;
}

.media-carousel-arrow span,
.character-stage-arrow span {
	font-size: 0;
}

.media-carousel-arrow span::before,
.character-stage-arrow span::before {
	font-size: 1.35rem;
	line-height: 1;
}

.media-carousel-arrow-prev span::before,
.character-stage-arrow-prev span::before {
	content: '\2039';
}

.media-carousel-arrow-next span::before,
.character-stage-arrow-next span::before {
	content: '\203A';
}

.character-stage-thumb-frame {
	--character-stage-disc-size: 7.5rem;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: var(--character-stage-disc-size);
	height: var(--character-stage-thumb-art-height);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	transition: transform 180ms ease;
}

/* Global .luminist-card / .shadow-card use rectangular box-shadow — never on rail thumbs. */
.character-stage-thumb-frame.luminist-card,
.character-stage-thumb-frame.shadow-card,
.character-stage-thumb:hover .character-stage-thumb-frame.luminist-card,
.character-stage-thumb:hover .character-stage-thumb-frame.shadow-card,
.character-stage-thumb.is-active .character-stage-thumb-frame.luminist-card,
.character-stage-thumb.is-active .character-stage-thumb-frame.shadow-card {
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Full ring behind bust — head breaks above 12-o'clock over the back rim. */
.character-stage-thumb-frame::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: var(--character-stage-disc-size);
	height: var(--character-stage-disc-size);
	transform: translateX(-50%);
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.12);
	box-sizing: border-box;
	background: transparent;
	box-shadow: none;
	z-index: 1;
	transition: border-color 180ms ease;
	pointer-events: none;
}

/* No front ring — avoids equator seam from split halves. */
.character-stage-thumb-frame::after {
	content: none;
}

/* Layered bust: disc circle (torso) + head breakout above rim — no SVG mask seam. */
.character-stage-thumb-disc,
.character-stage-thumb-head {
	--character-stage-portrait-height: calc(var(--character-stage-disc-size) * 1.5);
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: var(--character-stage-disc-size);
	pointer-events: none;
}

.character-stage-thumb-disc {
	height: var(--character-stage-disc-size);
	border-radius: 50%;
	overflow: hidden;
	z-index: 2;
}

.character-stage-thumb-head {
	height: var(--character-stage-portrait-height);
	overflow: visible;
	z-index: 3;
	clip-path: inset(0 0 58% 0);
	-webkit-clip-path: inset(0 0 58% 0);
}

.character-stage-thumb-img {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: auto;
	height: calc(var(--character-stage-disc-size) * 1.28);
	max-width: 96%;
	max-height: none;
	margin: 0;
	object-fit: contain;
	object-position: var(--thumb-position, center bottom);
	transform: translateX(calc(-50% + var(--thumb-shift-x, 0%))) translateY(var(--thumb-shift-y, 12%)) scale(var(--thumb-scale, 1.1));
	transform-origin: var(--thumb-origin, center bottom);
	filter: brightness(var(--thumb-brightness, 1));
	pointer-events: none;
}

.character-stage-thumb-frame.luminist-card::before {
	border-color: rgba(77, 114, 177, 0.22);
}

.character-stage-thumb-frame.shadow-card::before {
	border-color: rgba(140, 52, 34, 0.22);
}

.character-stage-thumb:hover:not(.is-active) .character-stage-thumb-frame {
	transform: translateY(-3px) scale(1.03);
}

.character-stage-thumb:hover:not(.is-active) .character-stage-thumb-frame.luminist-card::before {
	border-color: rgba(77, 114, 177, 0.38);
}

.character-stage-thumb:hover:not(.is-active) .character-stage-thumb-frame.shadow-card::before {
	border-color: rgba(140, 52, 34, 0.36);
}

.character-stage-thumb:hover .character-stage-thumb-name {
	color: rgba(245, 237, 216, 0.92);
}

.character-stage-thumb.is-active .character-stage-thumb-frame {
	transform: translateY(-4px) scale(1.04);
}

.character-stage-thumb.is-active .character-stage-thumb-frame::before {
	border-color: rgba(240, 212, 120, 0.58);
}

.character-stage-thumb-name {
	width: 100%;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 180ms ease;
}

.character-stage-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 10, 14, 0.82);
	color: var(--text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

/* ── AAA site pass v11 (2026-06-05) ── */

.hero-cinematic-backdrop img {
	transform-origin: center 26%;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.hero-cinematic-backdrop img {
		transform: none !important;
		will-change: auto;
	}
}

.home-media-carousel {
	display: none;
}

.character-stage-art-bleed,
.character-stage-bust-bleed {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	overflow: visible;
	transition: opacity 460ms ease;
}

.character-stage-art-bleed.is-visible {
	opacity: 1;
}

.character-stage-bleed-img {
	position: absolute;
	right: clamp(-3.5rem, -5vw, -0.5rem);
	top: 50%;
	display: block;
	max-width: min(48vw, 640px);
	max-height: min(72vh, 760px);
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: right center;
}

.character-stage-bust-bleed .character-stage-bleed-img {
	height: min(72vh, 760px);
	width: auto;
	max-width: min(48vw, 640px);
	transform: translate(0.75vw, -48%);
	filter: brightness(0.58) saturate(0.86) contrast(1.06);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}

.character-stage-art-bleed[data-faction='shadow'] .character-stage-bleed-img {
	filter: brightness(0.48) saturate(0.8) contrast(1.06);
	opacity: 0.9;
}

@media (max-width: 960px) {
	.home-media-grid {
		display: none;
	}

	.home-media-carousel {
		display: grid;
	}
}

@media (max-width: 1200px) {
	.character-stage-composition {
		--character-stage-panel-width: min(66%, 50rem);
	}

	.character-stage-sprite-pedestal {
		max-width: max(0px, calc((100% - var(--character-stage-panel-width)) / 2 - 0.35rem));
	}

	.character-stage-sprite-mount {
		height: min(60vh, 640px);
	}

	.character-stage-bleed-img {
		max-width: min(44vw, 560px);
		max-height: min(64vh, 680px);
	}

	.character-stage-bust-bleed .character-stage-bleed-img {
		transform: translate(0.25vw, -48%);
	}
}

@media (max-width: 900px) {
	.character-stage-shell {
		width: var(--content);
	}

	.character-stage-composition {
		min-height: auto;
		padding-top: clamp(11rem, 36vw, 14rem);
		overflow: visible;
	}

	.character-stage-sprite-bleed {
		inset: 0 0 auto 0;
		z-index: 1;
		height: clamp(10.5rem, 32vw, 13rem);
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
	}

	.character-stage-sprite-pedestal {
		left: 50%;
		bottom: auto;
		top: 0;
		width: min(78vw, 360px);
		max-width: 92vw;
		transform: translateX(-50%);
	}

	.character-stage-sprite-mount {
		height: clamp(8.5rem, 28vw, 11rem);
		bottom: calc(var(--character-stage-ground-height) * var(--character-stage-ground-deck, 0.32));
		transform: translateX(-50%);
	}

	.character-stage-ground {
		height: clamp(72px, 20vw, 96px);
	}

	.character-stage-art-bleed,
	.character-stage-bust-bleed {
		display: none;
	}

	.character-stage-feature {
		width: 100%;
		z-index: 3;
	}

	.character-stage-detail-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.character-stage-ability-viewer .ability-trigger-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.media-carousel {
		grid-template-columns: minmax(0, 1fr);
	}

	.media-carousel-arrow {
		display: none;
	}
}

/* Leaderboard page */
.page-leaderboard .leaderboard-panel {
	background: rgba(18, 24, 32, 0.92);
	border: 1px solid rgba(217, 183, 110, 0.22);
	border-radius: 12px;
	padding: 1.25rem;
}

.leaderboard-filters {
	margin-bottom: 1.25rem;
}

.leaderboard-status {
	color: var(--text-secondary, #a7b3c2);
	margin-bottom: 0.75rem;
	min-height: 1.25rem;
}

.leaderboard-table-wrap {
	overflow-x: auto;
}

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

.leaderboard-table th,
.leaderboard-table td {
	padding: 0.65rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table th {
	color: #d9b76e;
	font-weight: 600;
}

.leaderboard-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.03);
}

.leaderboard-pager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 1rem;
}

.leaderboard-pager #lb-range {
	color: var(--text-secondary, #a7b3c2);
	font-size: 0.9rem;
}

/* —— News —— */
.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

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

@media (max-width: 900px) {
	.news-grid-teaser {
		grid-template-columns: 1fr;
	}
}

.news-card {
	background: linear-gradient(165deg, rgba(22, 18, 32, 0.95), rgba(12, 10, 18, 0.98));
	border: 1px solid rgba(184, 142, 56, 0.22);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
	border-color: rgba(224, 187, 97, 0.45);
	transform: translateY(-2px);
}

.news-card.is-selected {
	border-color: rgba(224, 187, 97, 0.65);
	box-shadow: 0 0 0 1px rgba(224, 187, 97, 0.25);
}

.news-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.news-card-art img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.news-card-body {
	padding: 1rem 1.1rem 1.2rem;
}

.news-card-meta {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-secondary, #a7b3c2);
	margin: 0 0 0.5rem;
}

.news-card-title {
	font-size: 1.05rem;
	margin: 0 0 0.45rem;
	line-height: 1.35;
}

.news-card-excerpt {
	margin: 0;
	font-size: 0.92rem;
	color: var(--text-secondary, #b8c0cc);
	line-height: 1.5;
}

.news-tag {
	color: #e0bb61;
}

.news-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.news-article-host:empty {
	display: none;
}

.news-article-panel {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
}

.news-article-panel h1 {
	margin: 0.35rem 0 1rem;
}

.news-article-hero img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 1.25rem;
}

.news-article-body h2 {
	margin-top: 1.5rem;
	font-size: 1.15rem;
}

.news-article-body p,
.news-article-body li {
	line-height: 1.65;
	color: var(--text-secondary, #c8d0dc);
}

.news-empty {
	color: var(--text-secondary, #a7b3c2);
}