@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

body.orion-portal {
	--op-bg: #0a1a14;
	--op-panel: #0f221a;
	--op-gold: #d4af37;
	--op-gold-soft: #c4a35a;
	--op-ivory: #f3efe6;
	--op-muted: #a8b5a8;
	--op-line: rgba(212, 175, 55, 0.28);
	--op-serif: "Cormorant Garamond", Georgia, serif;
	--op-sans: Inter, "Segoe UI", sans-serif;
	background: var(--op-bg);
	color: var(--op-ivory);
	font-family: var(--op-sans);
	font-size: 16px;
	line-height: 1.55;
}

body.orion-portal .topline,
body.orion-portal .site-header,
body.orion-portal .site-footer {
	display: none !important;
}

body.orion-portal #container,
body.orion-portal #content,
body.orion-portal #content > .col-xs-12 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	float: none !important;
}

.op-shell {
	min-height: 100vh;
	background: var(--op-bg);
	color: var(--op-ivory);
}

.op-skip {
	position: absolute;
	left: -9999px;
}
.op-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 1000;
	background: #000;
	color: #fff;
	padding: 8px 12px;
}

.op-header {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr auto;
	align-items: center;
	gap: 18px;
	width: min(1240px, calc(100% - 48px));
	margin: 0 auto;
	padding: 16px 0 8px;
}

.op-brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.op-logo img {
	display: block;
	height: 48px;
	width: auto;
}

.op-brand-tag {
	margin: 0;
	color: var(--op-muted);
	font-size: 13px;
	letter-spacing: 0.02em;
	line-height: 1.35;
}

.op-realm {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

/* Beat #container … a shell blue (ID specificity) without scattered !important. */
body.orion-portal #container .op-realm a,
body.orion-portal #container .op-realm a:link,
body.orion-portal #container .op-realm a:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(243, 239, 230, 0.22);
	color: var(--op-muted);
	text-decoration: none;
	font-size: 11px;
	letter-spacing: 0.06em;
	font-weight: 600;
	background: transparent;
}

body.orion-portal #container .op-realm a.is-active,
body.orion-portal #container .op-realm a.is-active:link,
body.orion-portal #container .op-realm a.is-active:visited,
body.orion-portal #container .op-realm span.is-active {
	border-color: rgba(212, 175, 55, 0.7);
	background: rgba(212, 175, 55, 0.14);
	color: var(--op-gold);
}

body.orion-portal #container .op-realm span.is-active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(212, 175, 55, 0.7);
	font-size: 11px;
	letter-spacing: 0.06em;
	font-weight: 600;
}

body.orion-portal #container .op-realm.op-realm--single {
	margin: 0;
}

body.orion-portal #container .op-realm a:hover,
body.orion-portal #container .op-realm a:focus {
	color: var(--op-ivory);
	border-color: rgba(243, 239, 230, 0.4);
}

body.orion-portal #container .op-realm a:focus-visible,
body.orion-portal #container .op-nav a:focus-visible,
body.orion-portal #container .op-utils a:focus-visible,
body.orion-portal #container .op-cta:focus-visible {
	outline: 2px solid var(--op-gold);
	outline-offset: 3px;
}

.op-nav {
	display: flex;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
}

body.orion-portal #container .op-nav a,
body.orion-portal #container .op-nav a:link,
body.orion-portal #container .op-nav a:visited {
	color: rgba(243, 239, 230, 0.88);
	text-decoration: none;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
}

body.orion-portal #container .op-nav a[aria-current="page"],
body.orion-portal #container .op-nav a:hover,
body.orion-portal #container .op-nav a:focus {
	color: var(--op-gold);
}

.op-utils {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	font-size: 14px;
}

body.orion-portal #container .op-utils a,
body.orion-portal #container .op-utils a:link,
body.orion-portal #container .op-utils a:visited {
	color: rgba(243, 239, 230, 0.9);
	text-decoration: none;
}

body.orion-portal #container .op-utils a:hover,
body.orion-portal #container .op-utils a:focus {
	color: var(--op-gold);
}

.op-lang {
	display: inline-flex;
	gap: 6px;
	color: var(--op-muted);
}
body.orion-portal #container .op-lang a.is-active {
	color: var(--op-gold);
	font-weight: 600;
}

.op-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--op-line);
	color: var(--op-ivory);
	padding: 8px 12px;
	border-radius: 8px;
}

/* ---- Hero: content-sized, art visible ---- */
.op-hero {
	position: relative;
	isolation: isolate;
	min-height: 0;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	margin-top: 4px;
}

@media (min-width: 921px) {
	.op-hero {
		min-height: 460px;
		max-height: none;
	}
}

.op-hero__media,
.op-hero__shade {
	position: absolute;
	inset: 0;
}

.op-hero__media {
	background:
		linear-gradient(180deg, rgba(10, 26, 20, 0.12), rgba(10, 26, 20, 0.55)),
		url("../img/orion-r04/umbral.png") center / cover no-repeat;
	transform: scale(1.01);
}

.op-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.op-hero.has-video .op-hero__video {
	display: block;
}

.op-hero__shade {
	background:
		radial-gradient(ellipse at 50% 32%, rgba(10, 26, 20, 0.05), rgba(10, 26, 20, 0.52) 58%),
		linear-gradient(180deg, rgba(10, 26, 20, 0.18) 0%, rgba(10, 26, 20, 0.42) 55%, var(--op-bg) 100%);
	pointer-events: none;
}

.op-hero__content {
	position: relative;
	z-index: 2;
	width: min(820px, calc(100% - 40px));
	padding: 28px 0 36px;
}

.op-kicker {
	margin: 0 0 8px;
	color: var(--op-gold);
	font-size: 13px;
	letter-spacing: 0.28em;
	font-weight: 700;
	text-transform: uppercase;
}

.op-hero h1 {
	margin: 0;
	font-family: var(--op-serif);
	font-weight: 500;
	font-size: clamp(40px, 6.2vw, 72px);
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--op-ivory);
}

.op-hero__unity {
	margin: 12px 0 8px;
	font-family: var(--op-serif);
	font-size: clamp(26px, 3.6vw, 38px);
	font-weight: 600;
	color: var(--op-gold);
	letter-spacing: 0.02em;
}

.op-hero__lead {
	margin: 0 auto 6px;
	max-width: 28ch;
	font-family: var(--op-serif);
	font-style: italic;
	font-size: clamp(17px, 2vw, 22px);
	color: rgba(243, 239, 230, 0.9);
}

.op-hero__igcn {
	margin: 0 0 20px;
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--op-muted);
	text-transform: uppercase;
}

.op-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

body.orion-portal #container .op-cta,
body.orion-portal #container .op-cta:link,
body.orion-portal #container .op-cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 10px;
	background: linear-gradient(180deg, #e0c15a, #b8902a);
	color: #1a1408;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.04em;
	border: 0;
}

body.orion-portal #container .op-cta:hover,
body.orion-portal #container .op-cta:focus {
	color: #1a1408;
	filter: brightness(1.05);
}

body.orion-portal #container .op-cta--ghost,
body.orion-portal #container .op-cta--ghost:link,
body.orion-portal #container .op-cta--ghost:visited {
	background: transparent;
	color: var(--op-ivory);
	border: 1px solid rgba(239, 189, 98, .55);
}
body.orion-portal #container .op-cta--ghost:hover,
body.orion-portal #container .op-cta--ghost:focus {
	color: var(--op-gold);
	border-color: var(--op-gold);
	filter: none;
}

body.orion-portal #container .op-cta--discord,
body.orion-portal #container .op-cta--discord:link,
body.orion-portal #container .op-cta--discord:visited {
	background: linear-gradient(180deg, #5865f2, #4752c4);
	color: #fff;
}
body.orion-portal #container .op-cta--discord:hover,
body.orion-portal #container .op-cta--discord:focus {
	color: #fff;
	filter: brightness(1.08);
}

body.orion-portal #container .op-cta--compact {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

body.orion-portal #container .op-utils a.op-utils__register,
body.orion-portal #container .op-utils a.op-utils__register:link,
body.orion-portal #container .op-utils a.op-utils__register:visited {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 6px;
	background: linear-gradient(180deg, #e0c15a, #b8902a);
	color: #1a1408;
	font-weight: 700;
	text-decoration: none;
}
body.orion-portal #container .op-utils a.op-utils__register:hover,
body.orion-portal #container .op-utils a.op-utils__register:focus {
	color: #1a1408;
	filter: brightness(1.05);
}

.op-beta-links,
.op-community__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

body.orion-portal #container .op-textlink,
body.orion-portal #container .op-textlink:link,
body.orion-portal #container .op-textlink:visited {
	color: var(--op-ivory);
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.04em;
}
body.orion-portal #container .op-textlink:hover,
body.orion-portal #container .op-textlink:focus {
	color: var(--op-gold);
}

.op-hero__notes {
	margin: 0 auto;
	max-width: 42ch;
}

.op-hero__note {
	margin: 0;
	font-size: 13px;
	color: var(--op-muted);
	line-height: 1.45;
}

.op-hero__perf {
	margin: 4px 0 0;
	font-size: 11px;
	font-style: italic;
	color: rgba(168, 181, 168, 0.72);
	letter-spacing: 0.02em;
}

.op-provisional {
	position: absolute;
	right: 16px;
	bottom: 12px;
	z-index: 3;
	margin: 0;
	max-width: min(280px, 46vw);
	font-size: 10px;
	letter-spacing: 0.04em;
	color: rgba(243, 239, 230, 0.5);
	text-align: right;
	line-height: 1.35;
	pointer-events: none;
}

/* ---- News / Beta: open columns, not big cards ---- */
.op-below {
	width: min(1100px, calc(100% - 48px));
	margin: 8px auto 0;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 36px;
	position: relative;
	z-index: 4;
	padding: 8px 0 4px;
	border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.op-panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 8px 0 4px;
}

.op-panel h2 {
	margin: 0 0 12px;
	font-family: var(--op-serif);
	font-weight: 500;
	font-size: 26px;
	letter-spacing: -0.02em;
}

.op-news-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	align-items: start;
	text-decoration: none;
	color: inherit;
}

.op-news-thumb {
	aspect-ratio: 1;
	border-radius: 4px;
	background:
		linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(10, 26, 20, 0.85)),
		url("../img/orion-r04/umbral.png") 55% 40% / cover no-repeat;
}

.op-news-card h3 {
	margin: 0 0 8px;
	font-family: var(--op-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.op-news-card p {
	margin: 0;
	color: var(--op-muted);
	font-size: 14px;
	line-height: 1.55;
}

.op-news-meta {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--op-gold-soft);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.op-news-empty {
	margin: 0;
	color: var(--op-muted);
	font-size: 15px;
	line-height: 1.55;
	max-width: 36ch;
}

.op-news-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
}

.op-beta .op-date {
	margin: 0 0 14px;
	color: var(--op-muted);
	font-size: 15px;
}

.op-count {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 14px;
	max-width: 280px;
}

.op-count div {
	text-align: center;
	border: 1px solid rgba(212, 175, 55, 0.2);
	border-radius: 2px;
	padding: 8px 2px 6px;
	background: rgba(8, 18, 14, 0.35);
}

.op-count strong {
	display: block;
	font-family: var(--op-serif);
	font-size: 22px;
	line-height: 1;
	color: var(--op-ivory);
	font-weight: 500;
}

.op-count span {
	display: block;
	margin-top: 5px;
	font-size: 9px;
	letter-spacing: 0.14em;
	color: var(--op-muted);
}

.op-count.is-idle strong {
	color: rgba(243, 239, 230, 0.4);
	letter-spacing: 0.08em;
}

.op-community {
	width: min(1100px, calc(100% - 48px));
	margin: 20px auto 0;
	border-radius: 0;
	background: #0c1f18;
	border: 1px solid rgba(212, 175, 55, 0.14);
	border-left: 0;
	border-right: 0;
	padding: 14px 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.op-community strong {
	font-family: var(--op-serif);
	font-size: 22px;
	font-weight: 500;
}

.op-footer {
	width: min(1100px, calc(100% - 48px));
	margin: 14px auto 24px;
	padding-top: 12px;
	border-top: 1px solid rgba(212, 175, 55, 0.14);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: var(--op-muted);
	font-size: 13px;
}

body.orion-portal #container .op-footer a,
body.orion-portal #container .op-footer a:link,
body.orion-portal #container .op-footer a:visited {
	color: var(--op-muted);
	text-decoration: none;
}
body.orion-portal #container .op-footer a:hover,
body.orion-portal #container .op-footer a:focus {
	color: var(--op-gold);
}

.op-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.op-footer__brand img {
	height: 28px;
	width: auto;
}

/* ---- Rankings / fallback page band (op-inner overrides to same token) ---- */
body.orion-portal .op-page {
	width: min(1240px, calc(100% - 48px));
	margin: 8px auto 28px;
}

body.orion-portal .op-page__intro {
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

body.orion-portal .op-page__intro .eyebrow {
	margin: 0 0 6px;
	color: var(--op-gold);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

body.orion-portal .op-page__intro h1 {
	margin: 0 0 8px;
	font-family: var(--op-serif);
	font-weight: 500;
	font-size: clamp(32px, 4vw, 44px);
	color: var(--op-ivory);
}

body.orion-portal .op-page__intro .lead {
	margin: 0;
	max-width: 52ch;
	color: var(--op-muted);
	font-size: 15px;
	line-height: 1.55;
}

body.orion-portal .op-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

body.orion-portal #container .op-page__actions a,
body.orion-portal #container .op-page__actions a:link,
body.orion-portal #container .op-page__actions a:visited {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 8px;
	color: var(--op-ivory);
	text-decoration: none;
	font-size: 13px;
}

body.orion-portal #container .op-page__actions a.is-primary,
body.orion-portal #container .op-page__actions a.is-primary:link,
body.orion-portal #container .op-page__actions a.is-primary:visited {
	background: linear-gradient(180deg, #e0c15a, #b8902a);
	border-color: transparent;
	color: #1a1408;
	font-weight: 600;
}

body.orion-portal .op-table-shell {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid rgba(212, 175, 55, 0.16);
	background: rgba(8, 18, 14, 0.35);
}

body.orion-portal .op-table-shell .rankings-table,
body.orion-portal .op-table-shell table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	color: var(--op-ivory);
	font-size: 14px;
}

body.orion-portal .op-table-shell .rankings-table tr:first-child td,
body.orion-portal .op-table-shell table tr:first-child td {
	font-weight: 600;
	color: var(--op-gold);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(212, 175, 55, 0.22);
	padding: 12px 10px;
	white-space: nowrap;
}

body.orion-portal .op-table-shell .rankings-table tr td,
body.orion-portal .op-table-shell table tr td {
	padding: 10px;
	border-bottom: 1px solid rgba(243, 239, 230, 0.06);
	vertical-align: middle;
	background: transparent;
}

body.orion-portal .op-table-shell .rankings-class-image {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	margin-right: 6px;
}

body.orion-portal .op-table-note {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--op-muted);
}

@media (max-width: 920px) {
	.op-header {
		grid-template-columns: 1fr auto;
		width: min(1180px, calc(100% - 28px));
	}
	.op-menu-toggle { display: inline-flex; }
	.op-nav,
	.op-utils {
		display: none;
	}
	.op-header.is-open .op-nav,
	.op-header.is-open .op-utils {
		display: flex;
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	.op-header.is-open .op-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.op-hero {
		min-height: 0;
	}
	.op-hero__content {
		padding: 20px 0 28px;
	}
	.op-provisional {
		position: static;
		max-width: none;
		margin: 0 auto 8px;
		text-align: center;
		padding: 0 14px;
	}
	.op-below,
	.op-community,
	.op-footer,
	body.orion-portal .op-page {
		width: min(1100px, calc(100% - 28px));
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.op-below {
		margin-top: 4px;
		padding-top: 12px;
	}
	.op-news-card { grid-template-columns: 72px 1fr; }
	.op-community,
	.op-footer {
		flex-direction: column;
		align-items: flex-start;
	}
	.op-count {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.op-hero__media { transform: none; }
	.op-hero.has-video .op-hero__video { display: none; }
}
