/**
 * Standard Game entity components.
 * Mission, character, vehicle, weapon, and location cards share one resilient
 * layout while retaining content-specific data regions.
 */

.ralify-standard-modules { display: grid; min-width: 0; gap: clamp(34px, 4.5vw, 56px); }
.ralify-world-systems__grid + .ralify-standard-modules { margin-top: clamp(28px, 4vw, 44px); }
.ralify-standard-nav { position: sticky; z-index: 15; top: 70px; min-width: 0; overflow: hidden; border: 1px solid #273142; border-radius: 13px; background: rgba(9, 13, 21, .94); box-shadow: 0 14px 38px rgba(0, 0, 0, .22); backdrop-filter: blur(16px); }
.ralify-standard-nav__track { display: flex; gap: 5px; overflow-x: auto; padding: 6px; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: inline proximity; }
.ralify-standard-nav__track::-webkit-scrollbar { display: none; }
.ralify-standard-nav__item { display: inline-flex; min-height: 38px; flex: 1 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border-radius: 8px; color: #9ba9ba; font-size: .61rem; font-weight: 800; text-decoration: none; white-space: nowrap; scroll-snap-align: start; transition: color 160ms ease, background 160ms ease; }
.ralify-standard-nav__item:hover, .ralify-standard-nav__item:focus-visible, .ralify-standard-nav__item.is-active { background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .12); color: #fff; }
.ralify-standard-nav__item.is-active { box-shadow: inset 0 -2px var(--rw2-accent, #885cf6); }
.ralify-standard-nav__item:focus-visible { outline: 2px solid var(--rw2-accent, #885cf6); outline-offset: -2px; }
.ralify-standard-nav__icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--rw2-accent, #885cf6); }
.ralify-standard-nav__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ralify-standard-module { display: grid; min-width: 0; gap: 14px; scroll-margin-top: 128px; }
.ralify-standard-module__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr) auto;
	align-items: center;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #273142;
}
.ralify-standard-module__header > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ralify-standard-module__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .35); border-radius: 10px; background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .1); color: var(--rw2-accent, #885cf6); }
.ralify-standard-module__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ralify-standard-module__header p { margin: 0 0 3px; color: var(--rw2-accent, #885cf6); font-size: .55rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ralify-standard-module__header h2 { margin: 0; color: #f8fafc; font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: -.025em; }
.ralify-standard-module__intro { color: #8998ab; font-size: .68rem; line-height: 1.55; }
.ralify-standard-module__header > a { color: var(--rw2-accent, #885cf6); font-size: .66rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ralify-standard-module__grid,
.ralify-standard-archive__grid { display: grid; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 218px)); justify-content: center; gap: 11px; }
.ralify-standard-module__grid > .ralify-standard-card:nth-child(n+13) { display: none; }

.ralify-standard-card {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	width: 100%;
	max-width: 218px;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 15px;
	background: linear-gradient(145deg, rgba(var(--rw2-accent-rgb, 136, 92, 246), .055), transparent 55%), #0f1622;
	color: inherit;
	text-decoration: none;
	transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}
.ralify-standard-card[href]:hover { border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .48); background-color: #121c2a; transform: translateY(-2px); }
.ralify-standard-card[href]:focus-visible { outline: 2px solid var(--rw2-accent, #885cf6); outline-offset: 3px; }
.ralify-standard-card__visual { position: relative; display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border-bottom: 1px solid #273142; background: radial-gradient(circle at 50% 35%, rgba(var(--rw2-accent-rgb, 136, 92, 246), .28), transparent 48%), #0a1019; }
.ralify-standard-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.ralify-standard-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 13, .82), transparent 62%); pointer-events: none; }
.ralify-standard-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .36); border-radius: 14px; background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .12); color: var(--rw2-accent, #885cf6); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.ralify-standard-card__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.ralify-standard-card__eyebrow { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 1; overflow: hidden; color: #dbe5f2; font-size: .52rem; font-weight: 800; letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ralify-standard-card__status { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; }
.ralify-standard-card__body { display: flex; min-width: 0; flex-direction: column; padding: 12px; }
.ralify-standard-card h3 { margin: 0; color: #f8fafc; font-size: .82rem; letter-spacing: -.02em; line-height: 1.3; }
.ralify-standard-card__description { display: -webkit-box; min-height: 2.8em; margin: 7px 0 0; overflow: hidden; color: #91a0b3; font-size: .64rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ralify-standard-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.ralify-standard-card__badges span { padding: 4px 7px; border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .22); border-radius: 999px; background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .07); color: #bcc8d7; font-size: .52rem; font-weight: 700; }
.ralify-standard-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 13px 0 0; overflow: hidden; border: 1px solid #263143; border-radius: 9px; background: #263143; }
.ralify-standard-card__facts > div { min-width: 0; padding: 7px 6px; background: #111a27; }
.ralify-standard-card__facts dt { overflow: hidden; color: #68788d; font-size: .48rem; font-weight: 800; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ralify-standard-card__facts dd { margin: 3px 0 0; overflow: hidden; color: #e3e9f1; font-size: .57rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ralify-standard-card__stats { display: grid; gap: 7px; margin-top: 13px; }
.ralify-standard-card__stats > div { display: grid; gap: 4px; }
.ralify-standard-card__stats span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8291a5; font-size: .5rem; }
.ralify-standard-card__stats strong { font-weight: 700; }.ralify-standard-card__stats small { color: #aebaca; font: inherit; }
.ralify-standard-card__stats i { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 99px; background: #273244; }
.ralify-standard-card__stats i::after { position: absolute; inset: 0 auto 0 0; width: var(--ralify-stat); border-radius: inherit; background: linear-gradient(90deg, var(--rw2-accent, #885cf6), var(--rw2-glow, #00e5ff)); content: ""; }
.ralify-standard-card__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; color: var(--rw2-accent, #885cf6); font-size: .58rem; font-weight: 800; }
.ralify-standard-card__action b { font-size: .9rem; font-weight: 500; }

.ralify-standard-card--characters .ralify-standard-card__visual { background: radial-gradient(circle at 50% 20%, rgba(255, 77, 103, .24), transparent 52%), #0a1019; }
.ralify-standard-card--vehicles .ralify-standard-card__visual { background: radial-gradient(circle at 50% 55%, rgba(0, 229, 255, .18), transparent 52%), #0a1019; }
.ralify-standard-card--weapons .ralify-standard-card__visual { background: radial-gradient(circle at 50% 42%, rgba(245, 182, 66, .2), transparent 52%), #0a1019; }
.ralify-standard-card--locations .ralify-standard-card__visual { background: radial-gradient(circle at 50% 40%, rgba(67, 198, 140, .2), transparent 52%), #0a1019; }

[dir="rtl"] .ralify-standard-card__action b,
[dir="rtl"] .ralify-standard-module__header > a span { transform: scaleX(-1); }
[dir="rtl"] .ralify-standard-card__stats i::after { right: 0; left: auto; }

@media (max-width: 820px) {
	.ralify-standard-module__header { grid-template-columns: minmax(0, 1fr) auto; }
	.ralify-standard-module__intro { grid-column: 1 / -1; grid-row: 2; }
	.ralify-standard-module__grid,
	.ralify-standard-archive__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 218px)); }
	.ralify-standard-nav__item { flex: 0 0 auto; }
}

@media (max-width: 1100px) and (min-width: 821px) {
	.ralify-standard-module__grid,
	.ralify-standard-archive__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 218px)); }
}

@media (max-width: 560px) {
	.ralify-standard-modules { gap: 30px; }
	.ralify-standard-module__header { grid-template-columns: minmax(0, 1fr); }
	.ralify-standard-module__header > div { gap: 9px; }
	.ralify-standard-module__icon { width: 34px; height: 34px; }
	.ralify-standard-module__icon svg { width: 17px; height: 17px; }
	.ralify-standard-module__header h2 { font-size: .95rem; }
	.ralify-standard-module__intro { font-size: .6rem; line-height: 1.45; }
	.ralify-standard-module__header > a { display: inline-flex; min-height: 44px; align-items: center; justify-self: start; margin-top: -8px; }
	.ralify-standard-module__grid,
	.ralify-standard-archive__grid { width: 100%; max-width: 360px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); justify-self: center; gap: 9px; }
	.ralify-standard-card { grid-template-rows: auto minmax(0, 1fr); }
	.ralify-standard-card { max-width: none; border-radius: 12px; }
	.ralify-standard-card__icon { width: 46px; height: 46px; border-radius: 12px; }
	.ralify-standard-card__icon svg { width: 23px; height: 23px; }
	.ralify-standard-card__eyebrow { right: 9px; bottom: 8px; left: 9px; font-size: .45rem; }
	.ralify-standard-card__status { top: 8px; inset-inline-end: 8px; max-width: calc(100% - 16px); }
	.ralify-standard-card__body { padding: 10px; }
	.ralify-standard-card h3 { font-size: .72rem; }
	.ralify-standard-card__description { min-height: 2.7em; margin-top: 5px; font-size: .54rem; line-height: 1.4; }
	.ralify-standard-card__badges { gap: 4px; margin-top: 8px; }
	.ralify-standard-card__badges span { padding: 3px 5px; font-size: .44rem; }
	.ralify-standard-card__badges span:nth-child(n+3) { display: none; }
	.ralify-standard-card__facts { grid-template-columns: minmax(0, 1fr); margin-top: 9px; }
	.ralify-standard-card__facts > div { padding: 6px; }
	.ralify-standard-card__facts > div:nth-child(n+2) { display: none; }
	.ralify-standard-card__facts dt { font-size: .42rem; }
	.ralify-standard-card__facts dd { font-size: .5rem; }
	.ralify-standard-card__stats { gap: 5px; margin-top: 9px; }
	.ralify-standard-card__stats > div:nth-child(n+2) { display: none; }
	.ralify-standard-card__action { padding-top: 9px; font-size: .5rem; }
	.ralify-standard-nav { position: relative; top: auto; margin-inline: 0; overflow: visible; border-radius: 13px; background: #0b111b; box-shadow: none; backdrop-filter: none; }
	.ralify-standard-nav__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; padding: 5px; }
	.ralify-standard-nav__item { width: 100%; min-height: 46px; flex: none; justify-content: flex-start; padding-inline: 11px; font-size: .57rem; white-space: normal; }
	.ralify-standard-nav__icon { width: 18px; height: 18px; flex: 0 0 18px; }
	.ralify-standard-nav__icon svg { width: 15px; height: 15px; }
}

@media (max-width: 350px) {
	.ralify-standard-module__grid,
	.ralify-standard-archive__grid { max-width: 218px; grid-template-columns: minmax(0, 218px); }
	.ralify-standard-card__description { font-size: .58rem; }
}

/* Vehicles and weapons: compact square equipment cards. */
.ralify-standard-module--vehicles .ralify-standard-module__grid,
.ralify-standard-module--weapons .ralify-standard-module__grid,
.ralify-standard-archive--vehicles .ralify-standard-archive__grid,
.ralify-standard-archive--weapons .ralify-standard-archive__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 226px));
	align-items: stretch;
}

.ralify-equipment-card {
	position: relative;
	display: grid;
	width: 100%;
	max-width: 226px;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(var(--rw2-accent-rgb, 136, 92, 246), .06), transparent 54%), #0f1622;
	color: inherit;
	text-decoration: none;
	transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.ralify-equipment-card[href]:hover {
	border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .5);
	background-color: #121c2a;
	transform: translateY(-2px);
}

.ralify-equipment-card[href]:focus-visible {
	outline: 2px solid var(--rw2-accent, #885cf6);
	outline-offset: 3px;
}

.ralify-equipment-card__visual {
	position: relative;
	display: grid;
	width: 100%;
	aspect-ratio: 2 / 1;
	place-items: center;
	overflow: hidden;
	border-bottom: 1px solid #273142;
	background: #080d15;
	isolation: isolate;
}

.ralify-equipment-card__visual::before {
	position: absolute;
	z-index: -2;
	inset: -16px;
	background: var(--ralify-equipment-image) center / cover no-repeat;
	content: "";
	filter: blur(15px) saturate(.82);
	opacity: .3;
	transform: scale(1.08);
}

.ralify-equipment-card__visual::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 8, 13, .08) 35%, rgba(5, 8, 13, .82) 100%);
	content: "";
}

.ralify-equipment-card__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ralify-equipment-card__fallback {
	display: grid;
	width: 56px;
	height: 56px;
	place-items: center;
	border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .38);
	border-radius: 14px;
	background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .12);
	color: var(--rw2-accent, #885cf6);
}

.ralify-equipment-card__fallback svg { width: 28px; height: 28px; fill: none; stroke: currentColor; }
.ralify-equipment-card__eyebrow {
	position: absolute;
	z-index: 2;
	right: 10px;
	bottom: 9px;
	left: 10px;
	overflow: hidden;
	color: #e4eaf3;
	font-size: .49rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}
.ralify-equipment-card__body-status { position: static; align-self: flex-start; margin-top: 7px; }
.ralify-equipment-card__body { display: flex; min-width: 0; flex-direction: column; padding: 11px; }
.ralify-equipment-card h3 { margin: 0; color: #f8fafc; font-size: .78rem; letter-spacing: -.02em; line-height: 1.32; }
.ralify-equipment-card__description {
	display: -webkit-box;
	min-height: 2.72em;
	margin: 6px 0 0;
	overflow: hidden;
	color: #91a0b3;
	font-size: .59rem;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.ralify-equipment-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ralify-equipment-card__badges span {
	padding: 3px 6px;
	border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .24);
	border-radius: 999px;
	background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .08);
	color: #c4cede;
	font-size: .47rem;
	font-weight: 700;
}
.ralify-equipment-card__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 10px 0 0;
	overflow: hidden;
	border: 1px solid #263143;
	border-radius: 8px;
	background: #263143;
}
.ralify-equipment-card__facts > div { min-width: 0; padding: 6px; background: #111a27; }
.ralify-equipment-card__facts dt { overflow: hidden; color: #68788d; font-size: .42rem; font-weight: 800; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ralify-equipment-card__facts dd { margin: 3px 0 0; overflow: hidden; color: #e3e9f1; font-size: .5rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ralify-equipment-card__action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; color: var(--rw2-accent, #885cf6); font-size: .52rem; font-weight: 800; }
.ralify-equipment-card__action b { font-size: .84rem; font-weight: 500; }
.ralify-equipment-card[hidden] { display: none; }

[dir="rtl"] .ralify-equipment-card__action b { transform: scaleX(-1); }

@media (hover: hover) and (pointer: fine) {
	.ralify-equipment-card[href]:hover .ralify-equipment-card__action b { transform: translateX(3px); }
	[dir="rtl"] .ralify-equipment-card[href]:hover .ralify-equipment-card__action b { transform: scaleX(-1) translateX(3px); }
}

@media (max-width: 560px) {
	.ralify-standard-module--vehicles .ralify-standard-module__grid,
	.ralify-standard-module--weapons .ralify-standard-module__grid,
	.ralify-standard-archive--vehicles .ralify-standard-archive__grid,
	.ralify-standard-archive--weapons .ralify-standard-archive__grid {
		width: 100%;
		max-width: 360px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
	.ralify-equipment-card { max-width: none; border-radius: 12px; }
	.ralify-equipment-card__visual { height: clamp(72px, 22vw, 84px); aspect-ratio: auto; }
	.ralify-equipment-card__body { padding: 8px; }
	.ralify-equipment-card h3 { font-size: .66rem; line-height: 1.25; }
	.ralify-equipment-card__description { display: none; }
	.ralify-equipment-card__body-status { margin-top: 6px; }
	.ralify-equipment-card__badges { display: none; }
	.ralify-equipment-card__facts { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
	.ralify-equipment-card__facts > div { padding: 5px 6px; }
	.ralify-equipment-card__facts > div:nth-child(n+2) { display: none; }
	.ralify-equipment-card__badges span:nth-child(n+2) { display: none; }
	.ralify-equipment-card__action { padding-top: 7px; font-size: .48rem; }
}

@media (max-width: 350px) {
	.ralify-standard-module--vehicles .ralify-standard-module__grid,
	.ralify-standard-module--weapons .ralify-standard-module__grid,
	.ralify-standard-archive--vehicles .ralify-standard-archive__grid,
	.ralify-standard-archive--weapons .ralify-standard-archive__grid {
		max-width: 226px;
		grid-template-columns: minmax(0, 226px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ralify-equipment-card { transition: none; }
	.ralify-equipment-card[href]:hover { transform: none; }
}

/* Achievements and trophies: compact platform-aware progress cards. */
.ralify-standard-module--achievements .ralify-standard-module__grid,
.ralify-standard-archive--achievements .ralify-standard-archive__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
	align-items: stretch;
	justify-content: stretch;
}

.ralify-achievement-card {
	--ralify-achievement-tier: var(--rw2-accent, #885cf6);
	position: relative;
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-content: start;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 10px;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 13px;
	background: linear-gradient(145deg, color-mix(in srgb, var(--ralify-achievement-tier) 8%, transparent), transparent 56%), #0f1622;
	color: inherit;
	text-decoration: none;
	transition: border-color 170ms ease, transform 170ms ease;
}

.ralify-achievement-card[href]:hover {
	border-color: color-mix(in srgb, var(--ralify-achievement-tier) 55%, #273142);
	transform: translateY(-2px);
}

.ralify-achievement-card[href]:focus-visible {
	outline: 2px solid var(--ralify-achievement-tier);
	outline-offset: 3px;
}

.ralify-achievement-card__icon {
	display: grid;
	width: 58px;
	aspect-ratio: 1;
	place-items: center;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--ralify-achievement-tier) 55%, #273142);
	border-radius: 10px;
	background: #090e17;
	box-shadow: inset 0 -2px 0 var(--ralify-achievement-tier);
}

.ralify-achievement-card__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ralify-achievement-card__icon > span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ralify-achievement-tier); }
.ralify-achievement-card__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; }

.ralify-achievement-card__body { display: flex; min-width: 0; flex-direction: column; }
.ralify-achievement-card__heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ralify-achievement-card__heading > div { min-width: 0; }
.ralify-achievement-card__heading p { margin: 0 0 3px; color: var(--ralify-achievement-tier); font-size: .46rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ralify-achievement-card h3 { margin: 0; color: #f8fafc; font-size: .75rem; letter-spacing: -.02em; line-height: 1.28; }
.ralify-achievement-card__secret { flex: 0 0 auto; padding: 3px 5px; border: 1px solid #303b4d; border-radius: 999px; color: #98a5b7; font-size: .42rem; font-weight: 800; text-transform: uppercase; }
.ralify-achievement-card__description { display: -webkit-box; min-height: 2.7em; margin: 6px 0 0; overflow: hidden; color: #91a0b3; font-size: .55rem; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.ralify-achievement-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.ralify-achievement-card__tier,
.ralify-achievement-card__points { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 7px; border-radius: 999px; font-size: .45rem; font-weight: 800; }
.ralify-achievement-card__tier { border: 1px solid color-mix(in srgb, var(--ralify-achievement-tier) 48%, transparent); background: color-mix(in srgb, var(--ralify-achievement-tier) 12%, transparent); color: color-mix(in srgb, var(--ralify-achievement-tier) 70%, #fff); }
.ralify-achievement-card__points { border: 1px solid #2b3648; background: #111a27; color: #a9b6c6; }

.ralify-achievement-card__rarity { display: grid; gap: 4px; margin-top: 8px; }
.ralify-achievement-card__rarity span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7f8da1; font-size: .43rem; }
.ralify-achievement-card__rarity strong { font-weight: 700; }
.ralify-achievement-card__rarity small { color: #bac5d2; font: inherit; font-variant-numeric: tabular-nums; }
.ralify-achievement-card__rarity i { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 99px; background: #273244; }
.ralify-achievement-card__rarity i::after { position: absolute; inset: 0 auto 0 0; width: var(--ralify-rarity); border-radius: inherit; background: var(--ralify-achievement-tier); content: ""; }

.ralify-achievement-card__action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--ralify-achievement-tier); font-size: .48rem; font-weight: 800; }
.ralify-achievement-card__action b { font-size: .8rem; font-weight: 500; }
.ralify-achievement-card[hidden] { display: none; }

.ralify-achievement-card--platinum { --ralify-achievement-tier: #78e8ff; }
.ralify-achievement-card--gold { --ralify-achievement-tier: #f3c557; }
.ralify-achievement-card--silver { --ralify-achievement-tier: #cbd5e1; }
.ralify-achievement-card--bronze { --ralify-achievement-tier: #c98762; }
.ralify-achievement-card--common { --ralify-achievement-tier: #56d7a5; }
.ralify-achievement-card--uncommon { --ralify-achievement-tier: #5bbcff; }
.ralify-achievement-card--rare { --ralify-achievement-tier: #a879ff; }
.ralify-achievement-card--very-rare { --ralify-achievement-tier: #ff6ca8; }

[dir="rtl"] .ralify-achievement-card__action b { transform: scaleX(-1); }
[dir="rtl"] .ralify-achievement-card__rarity i::after { right: 0; left: auto; }

@media (hover: hover) and (pointer: fine) {
	.ralify-achievement-card[href]:hover .ralify-achievement-card__action b { transform: translateX(3px); }
	[dir="rtl"] .ralify-achievement-card[href]:hover .ralify-achievement-card__action b { transform: scaleX(-1) translateX(3px); }
}

@media (max-width: 560px) {
	.ralify-standard-module--achievements .ralify-standard-module__grid,
	.ralify-standard-archive--achievements .ralify-standard-archive__grid {
		width: 100%;
		max-width: 360px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-self: center;
		gap: 8px;
	}
	.ralify-achievement-card { grid-template-columns: 43px minmax(0, 1fr); gap: 7px; padding: 7px; border-radius: 11px; }
	.ralify-achievement-card__icon { width: 43px; border-radius: 8px; }
	.ralify-achievement-card__heading p { font-size: .4rem; }
	.ralify-achievement-card h3 { font-size: .61rem; }
	.ralify-achievement-card__description { min-height: 2.55em; margin-top: 4px; font-size: .46rem; line-height: 1.3; }
	.ralify-achievement-card__meta { gap: 4px; margin-top: 6px; }
	.ralify-achievement-card__tier,
	.ralify-achievement-card__points { min-height: 19px; padding: 2px 5px; font-size: .39rem; }
	.ralify-achievement-card__rarity { margin-top: 6px; }
	.ralify-achievement-card__rarity span { font-size: .38rem; }
	.ralify-achievement-card__action { padding-top: 6px; font-size: .42rem; }
}

@media (max-width: 350px) {
	.ralify-standard-module--achievements .ralify-standard-module__grid,
	.ralify-standard-archive--achievements .ralify-standard-archive__grid {
		max-width: 260px;
		grid-template-columns: minmax(0, 260px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ralify-achievement-card { transition: none; }
	.ralify-achievement-card[href]:hover { transform: none; }
}

.ralify-standard-archive { display: grid; gap: clamp(24px, 4vw, 42px); padding-block: clamp(28px, 5vw, 60px); }
.ralify-standard-archive__breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7f8da1; font-size: .62rem; }
.ralify-standard-archive__breadcrumbs a { color: var(--rw2-accent, #885cf6); text-decoration: none; }
.ralify-standard-archive__header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr) auto; align-items: center; gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid #273142; border-radius: 17px; background: linear-gradient(145deg, rgba(var(--rw2-accent-rgb, 136, 92, 246), .08), transparent 52%), #0f1622; }
.ralify-standard-archive__identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ralify-standard-archive__identity p { margin: 0 0 4px; color: var(--rw2-accent, #885cf6); font-size: .56rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ralify-standard-archive__identity h1 { margin: 0; color: #f8fafc; font-size: clamp(1.4rem, 2.7vw, 2.25rem); letter-spacing: -.04em; }
.ralify-standard-archive__header > p { margin: 0; color: #94a3b8; font-size: .7rem; line-height: 1.6; }
.ralify-standard-archive__count { padding: 7px 10px; border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .28); border-radius: 999px; color: #c5b7f8; font-size: .56rem; font-weight: 800; white-space: nowrap; }
.ralify-standard-card[hidden], .ralify-entity-browser__empty[hidden] { display: none; }
.ralify-entity-browser { display: grid; min-width: 0; gap: 16px; }
.ralify-entity-browser__tools { display: grid; grid-template-columns: minmax(220px, 520px) auto; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #273142; border-radius: 13px; background: rgba(15, 22, 34, .88); }
.ralify-entity-browser__tools label { position: relative; display: flex; min-width: 0; align-items: center; }
.ralify-entity-browser__tools svg { position: absolute; z-index: 1; inset-inline-start: 13px; width: 18px; height: 18px; fill: none; stroke: #78879b; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.ralify-entity-browser__tools input { width: 100%; min-height: 44px; padding: 10px 13px 10px 42px; border: 1px solid #303b4d; border-radius: 9px; outline: none; background: #0b121c; color: #f4f7fb; font: inherit; font-size: .65rem; }
[dir="rtl"] .ralify-entity-browser__tools input { padding: 10px 42px 10px 13px; }
.ralify-entity-browser__tools input::placeholder { color: #78879b; opacity: 1; }
.ralify-entity-browser__tools input:focus { border-color: var(--rw2-accent, #885cf6); box-shadow: 0 0 0 3px rgba(var(--rw2-accent-rgb, 136, 92, 246), .12); }
.ralify-entity-browser__tools select { min-height: 44px; padding: 9px 34px 9px 11px; border: 1px solid #303b4d; border-radius: 9px; outline: none; background: #0b121c; color: #dbe4ef; font: inherit; font-size: .58rem; }
.ralify-entity-browser__tools select:focus { border-color: var(--rw2-accent, #885cf6); box-shadow: 0 0 0 3px rgba(var(--rw2-accent-rgb, 136, 92, 246), .12); }
.ralify-entity-browser__tools--achievements { display: flex; flex-wrap: wrap; align-items: center; justify-content: stretch; }
.ralify-entity-browser__tools--achievements > label { flex: 1 1 260px; }
.ralify-entity-browser__tools--achievements > select { flex: 0 1 180px; }
.ralify-entity-browser__tools--achievements > .ralify-entity-browser__count { margin-inline-start: auto; }
.ralify-entity-browser__count { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 5px; padding: 6px 10px; border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .25); border-radius: 999px; color: #9ba9ba; font-size: .56rem; font-weight: 700; white-space: nowrap; }
.ralify-entity-browser__count strong { color: #fff; font-size: .64rem; font-variant-numeric: tabular-nums; }
.ralify-entity-browser__empty { margin: 0; padding: 26px; border: 1px dashed #344055; border-radius: 13px; color: #8795a8; font-size: .66rem; text-align: center; }
.ralify-standard-archive__footer { display: flex; justify-content: center; padding-top: 6px; }

@media (max-width: 720px) {
	.ralify-standard-archive__header { grid-template-columns: minmax(0, 1fr); }
	.ralify-standard-archive__count { justify-self: start; }
	.ralify-entity-browser__tools { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
	.ralify-entity-browser__count { justify-self: start; }
}

@media (hover: hover) and (pointer: fine) {
	.ralify-standard-card[href]:hover .ralify-standard-card__action b { transform: translateX(3px); }
	[dir="rtl"] .ralify-standard-card[href]:hover .ralify-standard-card__action b { transform: scaleX(-1) translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
	.ralify-standard-card, .ralify-standard-nav__item { transition: none; }
	.ralify-standard-card[href]:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
 * Characters and NPCs: compact square-portrait profiles.
 * ------------------------------------------------------------------------- */
.ralify-standard-module--characters .ralify-standard-module__grid,
.ralify-standard-archive--characters .ralify-standard-archive__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	align-items: stretch;
	justify-content: stretch;
}

.ralify-character-card {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	width: 100%;
	max-width: 390px;
	min-width: 0;
	min-height: 128px;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 14px;
	background:
		linear-gradient(145deg, rgba(var(--rw2-accent-rgb, 136, 92, 246), .075), transparent 52%),
		#0f1622;
	color: inherit;
	text-decoration: none;
	transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.ralify-character-card[href]:hover {
	border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .52);
	background-color: #121c2a;
	transform: translateY(-2px);
}

.ralify-character-card[href]:focus-visible {
	outline: 2px solid var(--rw2-accent, #885cf6);
	outline-offset: 3px;
}

.ralify-character-card__portrait {
	position: relative;
	width: 112px;
	height: 100%;
	min-height: 128px;
	overflow: hidden;
	border-inline-end: 1px solid #273142;
	background:
		radial-gradient(circle at 50% 24%, rgba(255, 77, 103, .24), transparent 52%),
		#0a1019;
}

.ralify-character-card__portrait img,
.ralify-character-card__fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	object-fit: cover;
	object-position: center top;
}

.ralify-character-card__portrait img {
	position: absolute;
	inset: 0;
	min-height: 100%;
}

.ralify-character-card__portrait img[src*="official-GTA-VI-close-up"] {
	object-position: 64% center;
}

.ralify-character-card__fallback {
	color: var(--rw2-accent, #885cf6);
}

.ralify-character-card__fallback svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.45;
}

.ralify-character-card__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 12px;
}

.ralify-character-card__heading {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ralify-character-card__heading > div {
	min-width: 0;
}

.ralify-character-card__heading p {
	margin: 0 0 3px;
	color: var(--rw2-accent, #885cf6);
	font-size: .5rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ralify-character-card h3 {
	margin: 0;
	overflow: hidden;
	color: #f8fafc;
	font-size: .82rem;
	letter-spacing: -.025em;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-character-card__status {
	flex: 0 0 auto;
	max-width: 90px;
	overflow: hidden;
	padding: 4px 6px;
	border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .3);
	border-radius: 999px;
	background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .1);
	color: #d8ccff;
	font-size: .46rem;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-character-card__description {
	display: -webkit-box;
	margin: 7px 0 0;
	overflow: hidden;
	color: #91a0b3;
	font-size: .59rem;
	line-height: 1.42;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ralify-character-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.ralify-character-card__badges span {
	padding: 3px 6px;
	border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .2);
	border-radius: 999px;
	color: #b7c2d0;
	font-size: .45rem;
	font-weight: 700;
}

.ralify-character-card__facts {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 5px 10px;
	margin: 8px 0 0;
}

.ralify-character-card__facts > div {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 4px;
}

.ralify-character-card__facts dt {
	color: #68788d;
	font-size: .44rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ralify-character-card__facts dd {
	max-width: 95px;
	margin: 0;
	overflow: hidden;
	color: #dce4ee;
	font-size: .5rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-character-card__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--rw2-accent, #885cf6);
	font-size: .5rem;
	font-weight: 800;
}

.ralify-character-card__action b {
	font-size: .82rem;
	font-weight: 500;
}

.ralify-character-card[hidden] {
	display: none;
}

[dir="rtl"] .ralify-character-card__action b {
	transform: scaleX(-1);
}

@media (max-width: 560px) {
	.ralify-standard-module--characters .ralify-standard-module__grid,
	.ralify-standard-archive--characters .ralify-standard-archive__grid {
		width: 100%;
		max-width: 420px;
		grid-template-columns: minmax(0, 1fr);
		justify-self: center;
	}

	.ralify-character-card {
		max-width: none;
		grid-template-columns: 96px minmax(0, 1fr);
		min-height: 116px;
	}

	.ralify-character-card__portrait {
		width: 96px;
		min-height: 116px;
	}

	.ralify-character-card__description {
		font-size: .56rem;
	}

	.ralify-character-card__facts > div:nth-child(n+2),
	.ralify-character-card__badges span:nth-child(n+2) {
		display: none;
	}
}

@media (max-width: 350px) {
	.ralify-character-card {
		grid-template-columns: 82px minmax(0, 1fr);
	}

	.ralify-character-card__portrait {
		width: 82px;
	}
}

/* ---------------------------------------------------------------------------
 * Locations: compact landscape map-atlas cards.
 * ------------------------------------------------------------------------- */
.ralify-standard-module--locations .ralify-standard-module__grid,
.ralify-standard-archive--locations .ralify-standard-archive__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	align-items: stretch;
	justify-content: stretch;
}

.ralify-location-card {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	width: 100%;
	max-width: 390px;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 14px;
	background:
		linear-gradient(145deg, rgba(67, 198, 140, .08), transparent 52%),
		#0f1622;
	color: inherit;
	text-decoration: none;
	transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.ralify-location-card[href]:hover {
	border-color: rgba(67, 198, 140, .55);
	background-color: #121c2a;
	transform: translateY(-2px);
}

.ralify-location-card[href]:focus-visible {
	outline: 2px solid var(--rw2-accent, #885cf6);
	outline-offset: 3px;
}

.ralify-location-card__visual {
	position: relative;
	display: grid;
	width: 100%;
	aspect-ratio: 16 / 9;
	place-items: center;
	overflow: hidden;
	border-bottom: 1px solid #273142;
	background:
		radial-gradient(circle at 50% 40%, rgba(67, 198, 140, .2), transparent 52%),
		#0a1019;
}

.ralify-location-card__visual img,
.ralify-location-card__fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	object-fit: cover;
}

.ralify-location-card__fallback {
	color: #43c68c;
}

.ralify-location-card__fallback svg {
	width: 40px;
	height: 40px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.45;
}

.ralify-location-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(5, 8, 13, .82), transparent 58%);
	pointer-events: none;
}

.ralify-location-card__eyebrow {
	position: absolute;
	right: 11px;
	bottom: 9px;
	left: 11px;
	display: inline-flex;
	z-index: 1;
	align-items: center;
	gap: 6px;
	color: #e2eaf3;
	font-size: .5rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ralify-location-card__eyebrow svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: #43c68c;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.ralify-location-card__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 12px;
}

.ralify-location-card h3 {
	margin: 0;
	color: #f8fafc;
	font-size: .84rem;
	letter-spacing: -.02em;
	line-height: 1.3;
}

.ralify-location-card__description {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 6px 0 0;
	overflow: hidden;
	color: #91a0b3;
	font-size: .62rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ralify-location-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 9px;
}

.ralify-location-card__meta span {
	padding: 4px 7px;
	border: 1px solid rgba(67, 198, 140, .24);
	border-radius: 999px;
	background: rgba(67, 198, 140, .07);
	color: #bfdbcf;
	font-size: .5rem;
	font-weight: 700;
}

.ralify-location-card__status {
	align-self: flex-start;
	max-width: 100%;
	margin-top: 9px;
}

.ralify-location-card__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 11px;
	color: var(--rw2-accent, #885cf6);
	font-size: .55rem;
	font-weight: 800;
}

.ralify-location-card__action b {
	font-size: .88rem;
	font-weight: 500;
}

.ralify-location-card[hidden] {
	display: none;
}

[dir="rtl"] .ralify-location-card__action b {
	transform: scaleX(-1);
}

.ralify-entity-browser__tools--locations {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: stretch;
}

.ralify-entity-browser__tools--locations > label {
	flex: 1 1 260px;
}

.ralify-entity-browser__tools--locations > select {
	flex: 0 1 170px;
}

.ralify-entity-browser__tools--locations > .ralify-entity-browser__count {
	margin-inline-start: auto;
}

@media (max-width: 680px) {
	.ralify-standard-module--locations .ralify-standard-module__grid,
	.ralify-standard-archive--locations .ralify-standard-archive__grid {
		width: 100%;
		max-width: 430px;
		grid-template-columns: minmax(0, 1fr);
		justify-self: center;
	}

	.ralify-location-card {
		max-width: none;
	}

	.ralify-location-card__description {
		font-size: .58rem;
	}
}

/* ---------------------------------------------------------------------------
 * Missions and Quests: Guide-style cards.
 *
 * Missions are walkthrough-shaped content, so they use the same compact,
 * image-led hierarchy as Ralify Guides rather than the square entity tile used
 * by characters, vehicles and weapons. The grid remains responsive and the
 * shared two-row JavaScript limit still applies.
 * ------------------------------------------------------------------------- */
.ralify-standard-module--missions .ralify-standard-module__grid,
.ralify-standard-archive--missions .ralify-standard-archive__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: start;
	justify-content: stretch;
}

.ralify-mission-card {
	width: 100%;
	max-width: 680px;
	min-width: 0;
	justify-self: center;
	border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .28);
	background:
		linear-gradient(145deg, rgba(var(--rw2-accent-rgb, 136, 92, 246), .08), transparent 48%),
		var(--ralify-color-surface, #111827);
}

.ralify-mission-card:hover {
	border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .56);
}

.ralify-mission-card .ralify-guide-card__media {
	background:
		radial-gradient(circle at 25% 18%, rgba(var(--rw2-accent-rgb, 136, 92, 246), .28), transparent 38%),
		linear-gradient(145deg, #17234a, #321b58);
}

.ralify-mission-card .ralify-guide-card__kicker,
.ralify-mission-card .ralify-guide-card__structured,
.ralify-mission-card__icon {
	color: var(--rw2-accent, #885cf6);
}

.ralify-mission-card__status {
	max-width: calc(100% - 24px);
	overflow: hidden;
	border-color: rgba(var(--rw2-accent-rgb, 136, 92, 246), .52);
	background: rgba(23, 16, 46, .84);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-mission-card__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.ralify-mission-card .ralify-guide-card__summary {
	display: -webkit-box;
	margin-top: 6px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ralify-mission-card__meta {
	min-width: 0;
}

.ralify-mission-card__badge {
	padding: 3px 7px;
	border: 1px solid rgba(var(--rw2-accent-rgb, 136, 92, 246), .25);
	border-radius: 999px;
	background: rgba(var(--rw2-accent-rgb, 136, 92, 246), .08);
	color: #c8d2df;
	font-size: .58rem;
}

.ralify-mission-card__fact {
	overflow: hidden;
	max-width: 190px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-mission-card__fact strong {
	color: #cbd5e1;
	font-size: .56rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ralify-mission-card__action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-inline-start: auto;
	color: var(--rw2-accent, #885cf6);
	font-weight: 800;
	white-space: nowrap;
}

.ralify-mission-card__action b {
	font-size: .9rem;
	font-weight: 500;
}

.ralify-mission-card[hidden] {
	display: none;
}

[dir="rtl"] .ralify-mission-card__action b {
	transform: scaleX(-1);
}

@media (max-width: 680px) {
	.ralify-standard-module--missions .ralify-standard-module__grid,
	.ralify-standard-archive--missions .ralify-standard-archive__grid {
		width: 100%;
		max-width: 560px;
		grid-template-columns: minmax(0, 1fr);
		justify-self: center;
	}

	.ralify-mission-card.ralify-guide-card--compact .ralify-mission-card__action {
		display: inline-flex;
	}

	.ralify-mission-card .ralify-guide-card__summary {
		font-size: .68rem;
	}
}

@media (max-width: 380px) {
	.ralify-mission-card.ralify-guide-card--compact {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.ralify-mission-card.ralify-guide-card--compact .ralify-guide-card__media,
	.ralify-mission-card.ralify-guide-card--compact .ralify-guide-card__image,
	.ralify-mission-card.ralify-guide-card--compact .ralify-guide-card__fallback {
		height: 108px;
		min-height: 108px;
	}
}

/* ---------------------------------------------------------------------------
 * MOBA entity-card attributes: the stat line is the content.
 *
 * The base card renders facts as a fixed three-column grid, and hides every
 * fact after the first below 560px. That is correct for a GTA VI mission card,
 * where facts are supporting detail beside a description that carries the
 * meaning.
 *
 * It is wrong for a League legendary. Riot commonly ships five or six
 * attributes on one item, and PHP now passes up to six through. Two problems
 * follow from the base layout: the three-column grid leaves a visible hole in
 * the divider track whenever the count is not a multiple of three, and the
 * narrow-screen rule hides everything past the first.
 *
 * Fix both by giving MOBA a stacked label/value row at EVERY width rather than
 * only on mobile. Rows never leave holes at any count, they read the way a
 * stat block should ("Ability Power ... 90"), and the card grows in height to
 * fit the full line instead of truncating it.
 *
 * Scoped to .ralify-standard-modules--moba so Standard Game cards are
 * untouched.
 * ------------------------------------------------------------------------- */
.ralify-standard-modules--moba .ralify-standard-card__facts {
	grid-template-columns: minmax(0, 1fr);
	gap: 1px;
}

.ralify-standard-modules--moba .ralify-standard-card__facts > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 9px;
}

/* Undo the narrow-screen base rule. Every attribute stays on the card. */
.ralify-standard-modules--moba .ralify-standard-card__facts > div:nth-child(n+2) {
	display: flex;
}

.ralify-standard-modules--moba .ralify-standard-card__facts dt {
	overflow: visible;
	font-size: .47rem;
	white-space: normal;
}

.ralify-standard-modules--moba .ralify-standard-card__facts dd {
	flex: 0 0 auto;
	margin: 0;
	font-size: .6rem;
	font-variant-numeric: tabular-nums;
}

/*
 * A six-attribute card is taller than a two-attribute card, and the grid
 * stretches every card in a row to the tallest. Pinning the action link to the
 * bottom keeps the short cards from looking broken.
 */
.ralify-standard-modules--moba .ralify-standard-card__action {
	margin-top: auto;
}

@media (max-width: 560px) {
	.ralify-standard-modules--moba .ralify-standard-card__facts > div {
		padding: 6px 8px;
	}

	.ralify-standard-modules--moba .ralify-standard-card__facts dt {
		font-size: .44rem;
	}

	.ralify-standard-modules--moba .ralify-standard-card__facts dd {
		font-size: .58rem;
	}
}


/* ---------------------------------------------------------------------------
 * Location Map Explorer: editorial cartography, never presented as official.
 * ------------------------------------------------------------------------- */
.ralify-location-explorer {
	--ralify-map-accent: #43c68c;
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid #273142;
	border-radius: 18px;
	background:
		linear-gradient(140deg, rgba(67, 198, 140, .07), transparent 34%),
		#0d141f;
	box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.ralify-location-explorer__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 22px;
	border-bottom: 1px solid #273142;
}

.ralify-location-explorer__header > div:first-child {
	max-width: 650px;
}

.ralify-location-explorer__header p,
.ralify-location-explorer__body > p {
	margin: 0 0 5px;
	color: var(--ralify-map-accent);
	font-size: .56rem;
	font-weight: 850;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.ralify-location-explorer__header h3 {
	margin: 0;
	color: #f8fafc;
	font-size: clamp(1.05rem, 2vw, 1.5rem);
	letter-spacing: -.035em;
	line-height: 1.15;
}

.ralify-location-explorer__header > div:first-child > span {
	display: block;
	max-width: 590px;
	margin-top: 7px;
	color: #91a0b3;
	font-size: .72rem;
	line-height: 1.55;
}

.ralify-location-explorer__tools {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-end;
	gap: 10px;
}

.ralify-location-explorer__tools label {
	display: grid;
	gap: 5px;
}

.ralify-location-explorer__tools label > span {
	color: #758399;
	font-size: .5rem;
	font-weight: 750;
	text-transform: uppercase;
}

.ralify-location-explorer__tools select {
	min-width: 150px;
	height: 36px;
	padding: 0 30px 0 10px;
	border: 1px solid #2b3749;
	border-radius: 9px;
	background: #111a27;
	color: #dbe5ef;
	font-size: .62rem;
}

.ralify-location-explorer__tools select:focus-visible {
	outline: 2px solid var(--ralify-map-accent);
	outline-offset: 2px;
}

.ralify-location-explorer__tools strong {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	gap: 5px;
	padding: 0 11px;
	border: 1px solid rgba(67, 198, 140, .22);
	border-radius: 9px;
	background: rgba(67, 198, 140, .06);
	color: #a8b7c8;
	font-size: .55rem;
	white-space: nowrap;
}

.ralify-location-explorer__tools strong b {
	color: #e6fff3;
	font-variant-numeric: tabular-nums;
}

.ralify-location-explorer__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(255px, .7fr);
	min-height: 430px;
}

.ralify-location-explorer__map {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border-inline-end: 1px solid #273142;
	background:
		radial-gradient(circle at 71% 74%, rgba(67, 198, 140, .12), transparent 26%),
		radial-gradient(circle at 34% 28%, rgba(136, 92, 246, .1), transparent 28%),
		linear-gradient(155deg, #07121b, #0b1821 55%, #071019);
	isolation: isolate;
}

.ralify-location-explorer__grid {
	position: absolute;
	inset: 0;
	z-index: -2;
	opacity: .16;
	background-image:
		linear-gradient(rgba(156, 184, 197, .22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(156, 184, 197, .22) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.ralify-location-explorer__land {
	position: absolute;
	inset: 5% 4% 7%;
	z-index: -1;
	width: 92%;
	height: 88%;
	filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
}

.ralify-location-explorer__land path {
	fill: rgba(27, 73, 65, .68);
	stroke: rgba(98, 213, 165, .45);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.ralify-location-explorer__land path + path {
	fill: rgba(31, 89, 76, .7);
}

.ralify-location-explorer__connections {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.ralify-location-explorer__connections line {
	stroke: rgba(216, 180, 254, .48);
	stroke-width: 2;
	stroke-dasharray: 5 5;
	filter: drop-shadow(0 0 4px rgba(139, 92, 246, .28));
	vector-effect: non-scaling-stroke;
	transition: stroke 170ms ease, stroke-width 170ms ease, opacity 170ms ease;
}

.ralify-location-explorer__connections line.is-active {
	stroke: #e9d5ff;
	stroke-width: 3;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 7px rgba(167, 139, 250, .72));
}

.ralify-location-explorer__connections line[hidden] {
	display: none;
}

.ralify-location-explorer__watermark {
	position: absolute;
	top: 47%;
	left: 50%;
	z-index: -1;
	color: rgba(196, 237, 220, .055);
	font-size: clamp(2.4rem, 7vw, 5.5rem);
	font-weight: 900;
	letter-spacing: .12em;
	transform: translate(-50%, -50%) rotate(-12deg);
	white-space: nowrap;
}

.ralify-location-explorer__compass {
	position: absolute;
	top: 17px;
	inset-inline-start: 18px;
	display: grid;
	width: 31px;
	height: 31px;
	place-items: center;
	border: 1px solid rgba(168, 187, 198, .26);
	border-radius: 50%;
	color: #a9bac5;
	font-size: .48rem;
}

.ralify-location-explorer__compass i {
	position: absolute;
	top: 4px;
	width: 1px;
	height: 8px;
	background: var(--ralify-map-accent);
}

.ralify-location-explorer__pin {
	position: absolute;
	top: var(--map-y);
	left: var(--map-x);
	display: flex;
	z-index: 2;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #dce8e3;
	font: inherit;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.ralify-location-explorer__pin > span {
	position: relative;
	display: grid;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	place-items: center;
	border: 1px solid rgba(135, 241, 195, .62);
	border-radius: 50% 50% 50% 8px;
	background: #10271f;
	box-shadow: 0 4px 13px rgba(0, 0, 0, .45);
	transform: rotate(-45deg);
	transition: transform 170ms ease, background-color 170ms ease;
}

.ralify-location-explorer__pin > span i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ralify-map-accent);
	box-shadow: 0 0 0 4px rgba(67, 198, 140, .13);
	transform: rotate(45deg);
}

.ralify-location-explorer__pin > b {
	max-width: 122px;
	padding: 4px 7px;
	overflow: hidden;
	border: 1px solid rgba(59, 76, 88, .8);
	border-radius: 6px;
	background: rgba(6, 13, 19, .88);
	box-shadow: 0 5px 16px rgba(0, 0, 0, .26);
	color: #cbd8d3;
	font-size: .49rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: start;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: border-color 170ms ease, color 170ms ease;
}

.ralify-location-explorer__pin:hover > span,
.ralify-location-explorer__pin.is-active > span {
	background: var(--ralify-map-accent);
	transform: rotate(-45deg) scale(1.12);
}

.ralify-location-explorer__pin:hover > span i,
.ralify-location-explorer__pin.is-active > span i {
	background: #06110d;
	box-shadow: none;
}

.ralify-location-explorer__pin.is-active {
	z-index: 5;
}

.ralify-location-explorer__pin.is-hub > span {
	width: 28px;
	height: 28px;
	flex-basis: 28px;
	border-color: rgba(196, 181, 253, .86);
	background: #241a43;
	box-shadow: 0 0 0 6px rgba(139, 92, 246, .13), 0 7px 18px rgba(0, 0, 0, .5);
}

.ralify-location-explorer__pin.is-hub > span i {
	background: #c4b5fd;
	box-shadow: 0 0 0 4px rgba(167, 139, 250, .17);
}

.ralify-location-explorer__pin.is-hub:hover > span,
.ralify-location-explorer__pin.is-hub.is-active > span {
	background: #8b5cf6;
}

.ralify-location-explorer__pin.is-hub:hover > span i,
.ralify-location-explorer__pin.is-hub.is-active > span i {
	background: #160f2d;
}

.ralify-location-explorer__pin:hover > b,
.ralify-location-explorer__pin.is-active > b {
	border-color: rgba(67, 198, 140, .62);
	color: #f1fff8;
}

.ralify-location-explorer__pin:focus-visible {
	outline: 0;
}

.ralify-location-explorer__pin:focus-visible > b {
	outline: 2px solid var(--ralify-map-accent);
	outline-offset: 3px;
}

.ralify-location-explorer__pin[hidden] {
	display: none;
}

.ralify-location-explorer__legend {
	position: absolute;
	bottom: 12px;
	inset-inline-start: 14px;
	display: flex;
	z-index: 3;
	align-items: center;
	gap: 5px;
	color: rgba(207, 219, 226, .72);
	font-size: .46rem;
}

.ralify-location-explorer__legend i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ralify-map-accent);
	box-shadow: 0 0 0 3px rgba(67, 198, 140, .12);
}

.ralify-location-explorer__legend b {
	width: 18px;
	height: 2px;
	margin-inline-start: 6px;
	background: #d8b4fe;
	box-shadow: 0 0 5px rgba(167, 139, 250, .45);
}

.ralify-location-explorer__disclaimer {
	position: absolute;
	inset-inline-end: 14px;
	bottom: 12px;
	z-index: 3;
	max-width: 54%;
	color: rgba(183, 198, 207, .64);
	font-size: .48rem;
	text-align: end;
}

.ralify-location-explorer__details {
	display: flex;
	min-width: 0;
	flex-direction: column;
	background: #0c131d;
}

.ralify-location-explorer__detail {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	animation: ralify-location-detail-in 220ms ease both;
}

.ralify-location-explorer__detail[hidden] {
	display: none;
}

.ralify-location-explorer__visual {
	position: relative;
	display: grid;
	aspect-ratio: 16 / 9;
	place-items: center;
	overflow: hidden;
	border-bottom: 1px solid #273142;
	background:
		radial-gradient(circle, rgba(67, 198, 140, .16), transparent 58%),
		#081019;
	color: var(--ralify-map-accent);
}

.ralify-location-explorer__visual::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(5, 9, 14, .84), transparent 55%);
	content: "";
	pointer-events: none;
}

.ralify-location-explorer__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ralify-location-explorer__visual > span svg {
	width: 46px;
	height: 46px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.ralify-location-explorer__visual em {
	position: absolute;
	right: 12px;
	bottom: 8px;
	z-index: 1;
	color: rgba(255, 255, 255, .74);
	font-size: 1.45rem;
	font-style: normal;
	font-weight: 900;
	letter-spacing: -.05em;
}

.ralify-location-explorer__body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 17px;
}

.ralify-location-explorer__body h4 {
	margin: 0;
	color: #f8fafc;
	font-size: 1.05rem;
	letter-spacing: -.03em;
	line-height: 1.25;
}

.ralify-location-explorer__body > span {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	color: #91a0b3;
	font-size: .65rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.ralify-location-explorer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

.ralify-location-explorer__meta small {
	padding: 4px 7px;
	border: 1px solid rgba(67, 198, 140, .22);
	border-radius: 999px;
	background: rgba(67, 198, 140, .06);
	color: #b9d8ca;
	font-size: .49rem;
	font-weight: 700;
}

.ralify-location-explorer__body > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 15px;
	color: var(--ralify-map-accent);
	font-size: .59rem;
	font-weight: 800;
	text-decoration: none;
}

.ralify-location-explorer__body > a b {
	font-size: .9rem;
	font-weight: 500;
	transition: transform 160ms ease;
}

.ralify-location-explorer__body > a:hover b {
	transform: translateX(3px);
}

[dir="rtl"] .ralify-location-explorer__body > a b {
	transform: scaleX(-1);
}

[dir="rtl"] .ralify-location-explorer__body > a:hover b {
	transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .ralify-location-explorer__controls button span {
	display: inline-block;
	transform: scaleX(-1);
}

.ralify-location-explorer__controls {
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	border-top: 1px solid #273142;
}

.ralify-location-explorer__controls button {
	display: grid;
	width: 34px;
	height: 30px;
	place-items: center;
	padding: 0;
	border: 1px solid #2b3749;
	border-radius: 8px;
	background: #111a27;
	color: #aebcca;
	cursor: pointer;
}

.ralify-location-explorer__controls button:hover,
.ralify-location-explorer__controls button:focus-visible {
	border-color: rgba(67, 198, 140, .58);
	color: #effff7;
}

.ralify-location-explorer__controls > span {
	color: #758399;
	direction: ltr;
	font-size: .55rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ralify-location-explorer__controls > span b {
	color: #dce7ef;
}

.ralify-location-explorer__controls > span i {
	font-style: normal;
}

@keyframes ralify-location-detail-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
	.ralify-location-explorer__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ralify-location-explorer__tools {
		width: 100%;
	}

	.ralify-location-explorer__tools label {
		flex: 1 1 auto;
	}

	.ralify-location-explorer__tools select {
		width: 100%;
	}

	.ralify-location-explorer__layout {
		grid-template-columns: 1fr;
	}

	.ralify-location-explorer__map {
		min-height: 390px;
		border-inline-end: 0;
		border-bottom: 1px solid #273142;
	}

	.ralify-location-explorer__details {
		min-height: 270px;
	}

	.ralify-location-explorer__detail {
		display: grid;
		grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr);
	}

	.ralify-location-explorer__detail[hidden] {
		display: none;
	}

	.ralify-location-explorer__visual {
		height: 100%;
		aspect-ratio: auto;
		border-right: 1px solid #273142;
		border-bottom: 0;
	}
}

@media (max-width: 620px) {
	.ralify-location-explorer {
		border-radius: 14px;
	}

	.ralify-location-explorer__header {
		gap: 15px;
		padding: 16px;
	}

	.ralify-location-explorer__header > div:first-child > span {
		font-size: .63rem;
	}

	.ralify-location-explorer__tools {
		align-items: stretch;
		flex-direction: column;
	}

	.ralify-location-explorer__tools strong {
		justify-content: center;
	}

	.ralify-location-explorer__map {
		min-height: 330px;
	}

	.ralify-location-explorer__legend {
		bottom: 29px;
		inset-inline-start: 12px;
	}

	.ralify-location-explorer__disclaimer {
		inset-inline: 12px;
		bottom: 10px;
		max-width: none;
		text-align: start;
	}

	.ralify-location-explorer__pin > b {
		display: none;
	}

	.ralify-location-explorer__pin.is-active > b {
		display: block;
		position: absolute;
		top: 27px;
		left: 11px;
		max-width: 120px;
	}

	[dir="rtl"] .ralify-location-explorer__pin.is-active > b {
		right: 11px;
		left: auto;
	}

	.ralify-location-explorer__detail {
		display: flex;
	}

	.ralify-location-explorer__detail[hidden] {
		display: none;
	}

	.ralify-location-explorer__visual {
		height: auto;
		aspect-ratio: 16 / 8;
		border-right: 0;
		border-bottom: 1px solid #273142;
	}

	.ralify-location-explorer__body > span {
		-webkit-line-clamp: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ralify-location-explorer__detail {
		animation: none;
	}

	.ralify-location-explorer__connections line,
	.ralify-location-explorer__pin > span,
	.ralify-location-explorer__pin > b,
	.ralify-location-explorer__body > a b {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Character Relationship Explorer: evidence-based cast connections.
 * ------------------------------------------------------------------------- */
.ralify-character-network {
	--ralify-network-accent: #a78bfa;
	--ralify-network-core: #f472b6;
	--ralify-network-keys: #60a5fa;
	--ralify-network-music: #f59e0b;
	--ralify-network-independent: #94a3b8;
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid #2b3041;
	border-radius: 18px;
	background:
		linear-gradient(140deg, rgba(167, 139, 250, .08), transparent 34%),
		#0d121d;
	box-shadow: 0 22px 70px rgba(0, 0, 0, .26);
}

.ralify-character-network__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 22px;
	border-bottom: 1px solid #2b3041;
}

.ralify-character-network__header > div:first-child {
	max-width: 650px;
}

.ralify-character-network__header p,
.ralify-character-network__body > p {
	margin: 0 0 5px;
	color: var(--ralify-network-accent);
	font-size: .56rem;
	font-weight: 850;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.ralify-character-network__header h3 {
	margin: 0;
	color: #f8fafc;
	font-size: clamp(1.05rem, 2vw, 1.5rem);
	letter-spacing: -.035em;
	line-height: 1.15;
}

.ralify-character-network__header > div:first-child > span {
	display: block;
	max-width: 590px;
	margin-top: 7px;
	color: #96a1b5;
	font-size: .72rem;
	line-height: 1.55;
}

.ralify-character-network__tools {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-end;
	gap: 10px;
}

.ralify-character-network__tools label {
	display: grid;
	gap: 5px;
}

.ralify-character-network__tools label > span {
	color: #7f889d;
	font-size: .5rem;
	font-weight: 750;
	text-transform: uppercase;
}

.ralify-character-network__tools select {
	min-width: 160px;
	height: 36px;
	padding: 0 30px 0 10px;
	border: 1px solid #343b50;
	border-radius: 9px;
	background: #121827;
	color: #e1e5ef;
	font-size: .62rem;
}

.ralify-character-network__tools select:focus-visible {
	outline: 2px solid var(--ralify-network-accent);
	outline-offset: 2px;
}

.ralify-character-network__tools strong {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	gap: 5px;
	padding: 0 11px;
	border: 1px solid rgba(167, 139, 250, .25);
	border-radius: 9px;
	background: rgba(167, 139, 250, .07);
	color: #aeb6c8;
	font-size: .55rem;
	white-space: nowrap;
}

.ralify-character-network__tools strong b {
	color: #f0ebff;
	font-variant-numeric: tabular-nums;
}

.ralify-character-network__tools strong i {
	width: 3px;
	height: 3px;
	margin: 0 2px;
	border-radius: 50%;
	background: rgba(196, 184, 230, .56);
}

.ralify-character-network__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(285px, .72fr);
	min-height: 470px;
}

.ralify-character-network__graph {
	position: relative;
	min-height: 470px;
	overflow: hidden;
	border-inline-end: 1px solid #2b3041;
	background:
		radial-gradient(circle at 52% 42%, rgba(244, 114, 182, .1), transparent 25%),
		radial-gradient(circle at 74% 28%, rgba(96, 165, 250, .1), transparent 24%),
		radial-gradient(circle at 34% 72%, rgba(245, 158, 11, .09), transparent 28%),
		linear-gradient(150deg, #080d17, #111525 58%, #090e18);
	isolation: isolate;
}

.ralify-character-network__grid {
	position: absolute;
	inset: 0;
	z-index: -2;
	opacity: .13;
	background-image:
		linear-gradient(rgba(176, 184, 207, .2) 1px, transparent 1px),
		linear-gradient(90deg, rgba(176, 184, 207, .2) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}

.ralify-character-network__edges {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ralify-character-network__edges line {
	opacity: .94;
	stroke: rgba(156, 172, 211, .68);
	stroke-width: 1.35;
	stroke-dasharray: 4 3;
	vector-effect: non-scaling-stroke;
	transition: opacity 180ms ease, stroke 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.ralify-character-network__edges line.is-active {
	opacity: 1;
	stroke: rgba(226, 211, 255, .98);
	stroke-width: 2.8;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 4px rgba(167, 139, 250, .9));
}

.ralify-character-network__edges line[hidden] {
	display: none;
}

.ralify-character-network__node {
	--node-color: var(--ralify-network-accent);
	position: absolute;
	top: var(--node-y);
	left: var(--node-x);
	display: grid;
	z-index: 2;
	width: 94px;
	justify-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #dfe4ef;
	font: inherit;
	text-align: center;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.ralify-character-network__node:hover,
.ralify-character-network__node:focus,
.ralify-character-network__node:active,
.ralify-character-network__node.is-active {
	background: transparent;
	box-shadow: none;
}

.ralify-character-network__node[data-character-group="core"] {
	--node-color: var(--ralify-network-core);
}

.ralify-character-network__node[data-character-group="keys"] {
	--node-color: var(--ralify-network-keys);
}

.ralify-character-network__node[data-character-group="music"] {
	--node-color: var(--ralify-network-music);
}

.ralify-character-network__node[data-character-group="independent"] {
	--node-color: var(--ralify-network-independent);
}

.ralify-character-network__node > span {
	position: relative;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	overflow: hidden;
	border: 2px solid rgba(161, 171, 194, .38);
	border-radius: 50%;
	background: #151b2a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	color: var(--node-color);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ralify-character-network__node > span::after {
	position: absolute;
	inset: 3px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: inherit;
	content: "";
	pointer-events: none;
}

.ralify-character-network__node > span img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--avatar-position, 50% 50%);
}

.ralify-character-network__node > span svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.ralify-character-network__node > b {
	max-width: 94px;
	margin-top: 7px;
	overflow: hidden;
	color: #d9deea;
	font-size: .55rem;
	font-weight: 800;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-character-network__node > small {
	max-width: 94px;
	margin-top: 2px;
	overflow: hidden;
	color: #737e94;
	font-size: .43rem;
	font-weight: 650;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ralify-character-network__node:hover > span,
.ralify-character-network__node.is-active > span {
	border-color: var(--node-color);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--node-color) 17%, transparent), 0 10px 28px rgba(0, 0, 0, .5);
	transform: scale(1.08);
}

.ralify-character-network__node.is-active {
	z-index: 5;
}

.ralify-character-network__node.is-active > b {
	color: #fff;
}

.ralify-character-network__node:focus-visible {
	outline: 0;
}

.ralify-character-network__node:focus-visible > span {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.ralify-character-network__node[hidden] {
	display: none;
}

.ralify-character-network__legend {
	position: absolute;
	right: 13px;
	bottom: 12px;
	left: 13px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 12px;
	color: #778197;
	font-size: .45rem;
}

.ralify-character-network__legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ralify-character-network__legend i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ralify-network-accent);
}

.ralify-character-network__legend [data-group-legend="core"] i {
	background: var(--ralify-network-core);
}

.ralify-character-network__legend [data-group-legend="keys"] i {
	background: var(--ralify-network-keys);
}

.ralify-character-network__legend [data-group-legend="music"] i {
	background: var(--ralify-network-music);
}

.ralify-character-network__legend [data-group-legend="independent"] i {
	background: var(--ralify-network-independent);
}

.ralify-character-network__details {
	display: flex;
	min-width: 0;
	flex-direction: column;
	background: #0d121c;
}

.ralify-character-network__detail {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	animation: ralify-character-detail-in 220ms ease both;
}

.ralify-character-network__detail[hidden] {
	display: none;
}

.ralify-character-network__visual {
	position: relative;
	display: grid;
	aspect-ratio: 16 / 9;
	place-items: center;
	overflow: hidden;
	border-bottom: 1px solid #2b3041;
	background:
		radial-gradient(circle, rgba(167, 139, 250, .16), transparent 58%),
		#090e17;
	color: var(--ralify-network-accent);
}

.ralify-character-network__visual::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(0deg, rgba(5, 8, 14, .86), transparent 58%);
	content: "";
	pointer-events: none;
}

.ralify-character-network__visual > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ralify-character-network__visual .ralify-character-network__subject {
	position: relative;
	z-index: 1;
	object-position: var(--image-position, 50% 50%);
}

.ralify-character-network__visual:not(.is-portrait) .ralify-character-network__backdrop {
	display: none;
}

.ralify-character-network__visual.is-portrait {
	aspect-ratio: 4 / 5;
	background: #060913;
}

.ralify-character-network__visual.is-portrait .ralify-character-network__backdrop {
	position: absolute;
	inset: -8%;
	z-index: 0;
	width: 116%;
	height: 116%;
	filter: blur(24px) brightness(.32) saturate(1.18);
	object-fit: cover;
	transform: scale(1.06);
}

.ralify-character-network__visual.is-portrait .ralify-character-network__subject {
	object-fit: contain;
	object-position: center top;
	filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .48));
}

.ralify-character-network__visual > span svg {
	width: 46px;
	height: 46px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.ralify-character-network__visual em {
	position: absolute;
	right: 12px;
	bottom: 8px;
	z-index: 3;
	color: rgba(255, 255, 255, .76);
	font-size: 1.45rem;
	font-style: normal;
	font-weight: 900;
	letter-spacing: -.05em;
}

.ralify-character-network__body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 17px;
}

.ralify-character-network__body h4 {
	margin: 0;
	color: #f8fafc;
	font-size: 1.06rem;
	letter-spacing: -.03em;
	line-height: 1.25;
}

.ralify-character-network__body > span {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	color: #96a1b5;
	font-size: .65rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ralify-character-network__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 11px;
}

.ralify-character-network__meta > small {
	padding: 4px 7px;
	border: 1px solid rgba(167, 139, 250, .22);
	border-radius: 999px;
	background: rgba(167, 139, 250, .06);
	color: #d0c6ee;
	font-size: .47rem;
}

.ralify-character-network__meta > small b {
	margin-inline-end: 3px;
	color: #9d91be;
}

.ralify-character-network__connections {
	margin-top: 13px;
}

.ralify-character-network__connections > span {
	display: block;
	margin-bottom: 6px;
	color: #737e94;
	font-size: .48rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ralify-character-network__connections > div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ralify-character-network__connections button {
	display: grid;
	gap: 1px;
	padding: 6px 8px;
	border: 1px solid #343b50;
	border-radius: 8px;
	background: #131a28;
	color: #d9deea;
	text-align: start;
	cursor: pointer;
}

.ralify-character-network__connections button:hover,
.ralify-character-network__connections button:focus-visible {
	border-color: rgba(167, 139, 250, .65);
	background: rgba(167, 139, 250, .09);
	outline: 0;
}

.ralify-character-network__connections button b {
	font-size: .5rem;
	font-weight: 800;
}

.ralify-character-network__connections button small {
	color: #848da2;
	font-size: .42rem;
}

.ralify-character-network__body > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 15px;
	color: var(--ralify-network-accent);
	font-size: .59rem;
	font-weight: 800;
	text-decoration: none;
}

.ralify-character-network__body > a b {
	font-size: .9rem;
	font-weight: 500;
	transition: transform 160ms ease;
}

.ralify-character-network__body > a:hover b {
	transform: translateX(3px);
}

[dir="rtl"] .ralify-character-network__body > a b {
	transform: scaleX(-1);
}

[dir="rtl"] .ralify-character-network__body > a:hover b {
	transform: scaleX(-1) translateX(3px);
}

.ralify-character-network__controls {
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	border-top: 1px solid #2b3041;
}

.ralify-character-network__controls button {
	display: grid;
	width: 34px;
	height: 30px;
	place-items: center;
	padding: 0;
	border: 1px solid #343b50;
	border-radius: 8px;
	background: #131a28;
	color: #b2bbcb;
	cursor: pointer;
}

.ralify-character-network__controls button:hover,
.ralify-character-network__controls button:focus-visible {
	border-color: rgba(167, 139, 250, .62);
	color: #fff;
	outline: 0;
}

.ralify-character-network__controls > span {
	color: #778197;
	direction: ltr;
	font-size: .55rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ralify-character-network__controls > span b {
	color: #e2e7f0;
}

.ralify-character-network__controls > span i {
	font-style: normal;
}

[dir="rtl"] .ralify-character-network__controls button span {
	display: inline-block;
	transform: scaleX(-1);
}

@keyframes ralify-character-detail-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
	.ralify-character-network__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ralify-character-network__tools {
		width: 100%;
	}

	.ralify-character-network__tools label {
		flex: 1 1 auto;
	}

	.ralify-character-network__tools select {
		width: 100%;
	}

	.ralify-character-network__layout {
		grid-template-columns: 1fr;
	}

	.ralify-character-network__graph {
		min-height: 430px;
		border-inline-end: 0;
		border-bottom: 1px solid #2b3041;
	}

	.ralify-character-network__details {
		min-height: 290px;
	}

	.ralify-character-network__detail {
		display: grid;
		grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
	}

	.ralify-character-network__detail[hidden] {
		display: none;
	}

	.ralify-character-network__visual {
		height: 100%;
		aspect-ratio: auto;
		border-right: 1px solid #2b3041;
		border-bottom: 0;
	}
}

@media (max-width: 620px) {
	.ralify-character-network {
		border-radius: 14px;
	}

	.ralify-character-network__header {
		gap: 15px;
		padding: 16px;
	}

	.ralify-character-network__header > div:first-child > span {
		font-size: .63rem;
	}

	.ralify-character-network__tools {
		align-items: stretch;
		flex-direction: column;
	}

	.ralify-character-network__tools strong {
		justify-content: center;
	}

	.ralify-character-network__graph {
		min-height: 390px;
	}

	.ralify-character-network__node {
		width: 70px;
	}

	.ralify-character-network__node > span {
		width: 48px;
		height: 48px;
	}

	.ralify-character-network__node > b {
		display: none;
		max-width: 76px;
		font-size: .49rem;
	}

	.ralify-character-network__node > small {
		display: none;
	}

	.ralify-character-network__node.is-active > b {
		display: block;
	}

	.ralify-character-network__legend {
		justify-content: center;
		font-size: .4rem;
	}

	.ralify-character-network__detail {
		display: flex;
	}

	.ralify-character-network__detail[hidden] {
		display: none;
	}

	.ralify-character-network__visual {
		height: auto;
		aspect-ratio: 16 / 8;
		border-right: 0;
		border-bottom: 1px solid #2b3041;
	}

	.ralify-character-network__visual.is-portrait {
		aspect-ratio: 3 / 2;
	}

	.ralify-character-network__connections > div {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.ralify-character-network__connections button {
		flex: 0 0 auto;
	}

	.ralify-character-network__body > span {
		-webkit-line-clamp: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ralify-character-network__detail {
		animation: none;
	}

	.ralify-character-network__edges line,
	.ralify-character-network__node > span,
	.ralify-character-network__body > a b {
		transition: none;
	}
}
