/* ==========================================================================
   RomNexus Pro
   Desktop-first, light, system fonts (zero webfont requests = faster LCP).
   ========================================================================== */

:root {
	--rn-primary: #1d4ed8;
	--rn-primary-dark: #1739a8;
	--rn-accent: #16a34a;
	--rn-accent-dark: #128040;
	--rn-ink: #0f172a;
	--rn-bg: #f6f7f9;

	--rn-text: #334155;
	--rn-muted: #64748b;
	--rn-faint: #94a3b8;
	--rn-line: #e2e8f0;
	--rn-line-soft: #eef2f6;
	--rn-card: #ffffff;

	--rn-radius: 10px;
	--rn-radius-sm: 6px;
	--rn-radius-lg: 14px;

	--rn-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	--rn-shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
	--rn-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

	--rn-max: 1240px;
	--rn-gap: 22px;

	--rn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--rn-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--rn-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rn-text);
	background: var(--rn-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rn-primary); text-decoration: none; }
a:hover { color: var(--rn-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--rn-ink);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.012em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

table { border-collapse: collapse; width: 100%; }

button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.rn-skip {
	position: absolute; left: -9999px;
	background: var(--rn-ink); color: #fff;
	padding: 10px 18px; z-index: 999;
}
.rn-skip:focus { left: 10px; top: 10px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.rn-container {
	max-width: var(--rn-max);
	margin: 0 auto;
	padding: 0 20px;
}

body.rn-wide { --rn-max: 1440px; }

.rn-main { padding: 22px 0 40px; min-height: 50vh; }

.rn-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	gap: 30px;
	align-items: start;
}

.rn-content { min-width: 0; }

.rn-sidebar { position: sticky; top: 16px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.rn-header {
	background: #fff;
	border-bottom: 1px solid var(--rn-line);
	box-shadow: var(--rn-shadow);
}

.rn-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.rn-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--rn-ink);
	text-decoration: none;
}
.rn-logo:hover { text-decoration: none; }

.rn-logo-mark {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 11px;
	background: linear-gradient(140deg, var(--rn-primary), #0ea5e9);
	color: #fff;
	flex: none;
}

.rn-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.rn-logo-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.rn-logo-tag { font-size: 11.5px; color: var(--rn-muted); font-weight: 500; }

.custom-logo-link img { max-height: 48px; width: auto; }

.rn-header-search { flex: 1; max-width: 520px; margin-left: auto; }

.rn-badge {
	flex: none;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--rn-accent-dark);
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	padding: 5px 11px;
	border-radius: 999px;
}

.rn-nav-toggle { display: none; }

/* Nav */

.rn-nav { background: var(--rn-ink); }

.rn-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.rn-menu li { position: relative; }

.rn-menu a {
	display: block;
	padding: 12px 15px;
	color: #cbd5e1;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .14s, background .14s, border-color .14s;
}

.rn-menu a:hover,
.rn-menu .current-menu-item > a,
.rn-menu .current-menu-parent > a {
	color: #fff;
	background: rgba(255, 255, 255, .07);
	border-bottom-color: var(--rn-accent);
	text-decoration: none;
}

.rn-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: 0 0 var(--rn-radius) var(--rn-radius);
	box-shadow: var(--rn-shadow-lg);
	list-style: none;
	margin: 0; padding: 6px 0;
	z-index: 40;
}
.rn-menu li:hover > .sub-menu,
.rn-menu li:focus-within > .sub-menu { display: block; }

.rn-menu .sub-menu a {
	color: var(--rn-text);
	padding: 9px 16px;
	border-bottom: none;
}
.rn-menu .sub-menu a:hover { background: var(--rn-line-soft); color: var(--rn-primary); }

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.rn-search { position: relative; }

.rn-search-wrap {
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid var(--rn-line);
	border-radius: var(--rn-radius);
	transition: border-color .15s, box-shadow .15s;
	overflow: hidden;
}

.rn-search-wrap:focus-within {
	border-color: var(--rn-primary);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, .13);
}

.rn-search-icon { margin-left: 12px; color: var(--rn-faint); flex: none; }

.rn-search-input {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 10px 12px;
	font-size: 15px;
	background: transparent;
	color: var(--rn-ink);
	min-width: 0;
}
.rn-search-input::placeholder { color: var(--rn-faint); }
.rn-search-input::-webkit-search-cancel-button { cursor: pointer; }

.rn-search-submit {
	border: 0;
	background: var(--rn-primary);
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	padding: 11px 20px;
	cursor: pointer;
	transition: background .15s;
}
.rn-search-submit:hover { background: var(--rn-primary-dark); }

.rn-search-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	box-shadow: var(--rn-shadow-lg);
	z-index: 60;
	max-height: 420px;
	overflow-y: auto;
	padding: 6px;
}

.rn-sr-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 10px;
	border-radius: var(--rn-radius-sm);
	color: var(--rn-ink);
	text-decoration: none;
}
.rn-sr-item:hover,
.rn-sr-item.is-active { background: var(--rn-line-soft); text-decoration: none; }

.rn-sr-thumb {
	width: 36px; height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: var(--rn-line-soft);
	flex: none;
}

.rn-sr-text { min-width: 0; }
.rn-sr-title { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-sr-meta { display: block; font-size: 12px; color: var(--rn-muted); }
.rn-sr-empty { padding: 16px; text-align: center; color: var(--rn-muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rn-hero {
	background: linear-gradient(165deg, #ffffff 0%, #eef4ff 100%);
	border-bottom: 1px solid var(--rn-line);
	padding: 46px 0 40px;
	text-align: center;
}

.rn-hero-title {
	font-size: 40px;
	margin-bottom: 10px;
	letter-spacing: -.03em;
}

.rn-hero-sub {
	max-width: 640px;
	margin: 0 auto 22px;
	font-size: 17px;
	color: var(--rn-muted);
}

.rn-hero-search { max-width: 620px; margin: 0 auto; }

.rn-hero-stat { margin: 16px 0 0; font-size: 14px; color: var(--rn-muted); }
.rn-hero-stat strong { color: var(--rn-ink); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.rn-breadcrumbs { margin: 0 0 16px; font-size: 13px; }

.rn-breadcrumbs ol {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.rn-breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--rn-faint);
}

.rn-breadcrumbs a { color: var(--rn-muted); }
.rn-breadcrumbs a:hover { color: var(--rn-primary); }
.rn-breadcrumbs [aria-current] span { color: var(--rn-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.rn-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.rn-section-title {
	font-size: 21px;
	margin: 0 0 14px;
	position: relative;
	padding-left: 13px;
}

.rn-section-head .rn-section-title { margin-bottom: 0; }

.rn-section-title::before {
	content: "";
	position: absolute;
	left: 0; top: .18em; bottom: .18em;
	width: 4px;
	border-radius: 2px;
	background: var(--rn-primary);
}

.rn-section-more { font-size: 14px; font-weight: 600; white-space: nowrap; }

.rn-home-section { margin-bottom: 38px; }

/* --------------------------------------------------------------------------
   Game grid
   -------------------------------------------------------------------------- */

.rn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
	gap: var(--rn-gap);
}

.rn-card {
	background: var(--rn-card);
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.rn-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rn-shadow-md);
	border-color: #cbd5e1;
}

.rn-card-link { display: block; color: inherit; text-decoration: none; }
.rn-card-link:hover { text-decoration: none; }

.rn-card-cover {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--rn-line-soft);
	overflow: hidden;
}

.rn-cover-img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.rn-card:hover .rn-cover-img { transform: scale(1.04); }

.rn-cover-fallback {
	display: grid;
	place-items: center;
	font-size: 44px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(145deg, #64748b, #334155);
}

.rn-card-format {
	position: absolute;
	top: 8px; left: 8px;
	background: rgba(15, 23, 42, .82);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
	backdrop-filter: blur(2px);
}

.rn-card-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(to top, rgba(15, 23, 42, .78), rgba(15, 23, 42, .1));
	opacity: 0;
	transition: opacity .18s ease;
}
.rn-card:hover .rn-card-overlay { opacity: 1; }

.rn-card-cta {
	background: var(--rn-accent);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.rn-card-body { padding: 11px 12px 13px; }

.rn-card-title {
	font-size: 14.5px;
	font-weight: 650;
	margin: 0 0 5px;
	line-height: 1.35;
	color: var(--rn-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.rn-card:hover .rn-card-title { color: var(--rn-primary); }

.rn-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11.5px;
	color: var(--rn-muted);
}

.rn-card-console {
	background: #eff6ff;
	color: #1d4ed8;
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 600;
}

.rn-card-size {
	background: var(--rn-line-soft);
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 600;
}

.rn-card-version { margin-top: 5px; font-size: 11.5px; color: var(--rn-faint); font-family: var(--rn-mono); }

.rn-card-excerpt {
	font-size: 13px;
	color: var(--rn-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rn-card--post .rn-card-cover { aspect-ratio: 16 / 9; }
.rn-card--post .rn-card-title { min-height: 0; font-size: 16px; }

.rn-grid--related { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }

.rn-ad-ingrid { grid-column: 1 / -1; }

/* Rating */

.rn-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.rn-stars { display: inline-flex; gap: 1px; }

.rn-star {
	width: 12px; height: 12px;
	background: #d4d9e2;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.rn-star.is-full { background: #f59e0b; }
.rn-star.is-half { background: linear-gradient(90deg, #f59e0b 50%, #d4d9e2 50%); }

.rn-rating-num { font-weight: 700; color: var(--rn-ink); }
.rn-rating-count { color: var(--rn-faint); }

.rn-card-rating { margin-top: 6px; }

/* Console cards */

.rn-console-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 14px;
}

.rn-console-card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 14px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	color: var(--rn-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.rn-console-card:hover {
	border-color: var(--rn-primary);
	box-shadow: var(--rn-shadow-md);
	transform: translateY(-2px);
	text-decoration: none;
}

.rn-console-icon { width: 36px; height: 36px; object-fit: contain; margin-bottom: 6px; }
.rn-console-name { font-weight: 700; font-size: 15px; }
.rn-console-count { font-size: 12.5px; color: var(--rn-muted); }

/* --------------------------------------------------------------------------
   Archive chrome
   -------------------------------------------------------------------------- */

.rn-archive-head { margin-bottom: 18px; }

.rn-archive-title { font-size: 30px; margin-bottom: 8px; }
.rn-archive-sub { color: var(--rn-muted); font-weight: 500; font-size: .62em; }

.rn-archive-intro {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-left: 3px solid var(--rn-primary);
	border-radius: var(--rn-radius);
	padding: 16px 20px;
	font-size: 15px;
	color: var(--rn-text);
}
.rn-archive-intro p:last-child { margin-bottom: 0; }

.rn-archive-search { max-width: 520px; margin-top: 14px; }

.rn-sortbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 10px 14px;
	margin-bottom: 18px;
}

.rn-count { font-size: 14px; font-weight: 600; color: var(--rn-ink); }

.rn-sort-links { display: flex; flex-wrap: wrap; gap: 4px; }

.rn-sort {
	font-size: 13px;
	font-weight: 600;
	color: var(--rn-muted);
	padding: 6px 11px;
	border-radius: var(--rn-radius-sm);
	text-decoration: none;
}
.rn-sort:hover { background: var(--rn-line-soft); color: var(--rn-ink); text-decoration: none; }
.rn-sort.is-active { background: var(--rn-primary); color: #fff; }

/* A-Z strip */

.rn-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 20px;
}

.rn-letter {
	min-width: 34px;
	text-align: center;
	padding: 6px 9px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius-sm);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rn-text);
	text-decoration: none;
	transition: all .13s;
}
.rn-letter:hover { border-color: var(--rn-primary); color: var(--rn-primary); text-decoration: none; }
.rn-letter.is-active { background: var(--rn-primary); border-color: var(--rn-primary); color: #fff; }

/* Pills */

.rn-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.rn-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rn-text);
	text-decoration: none;
	transition: all .13s;
}
.rn-pill:hover { border-color: var(--rn-primary); color: var(--rn-primary); text-decoration: none; }

.rn-pill-count {
	background: var(--rn-line-soft);
	color: var(--rn-muted);
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 999px;
}

.rn-pill--console { background: var(--rn-primary); border-color: var(--rn-primary); color: #fff; }
.rn-pill--console:hover { background: var(--rn-primary-dark); color: #fff; }

.rn-pill--tag { font-weight: 500; font-size: 13px; }

/* Pagination */

.rn-pagination { margin: 28px 0 10px; }

.rn-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0; padding: 0;
}

.rn-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 9px 13px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius-sm);
	font-weight: 600;
	font-size: 14px;
	color: var(--rn-text);
	text-decoration: none;
}
.rn-pagination a.page-numbers:hover { border-color: var(--rn-primary); color: var(--rn-primary); text-decoration: none; }
.rn-pagination .page-numbers.current { background: var(--rn-primary); border-color: var(--rn-primary); color: #fff; }
.rn-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* --------------------------------------------------------------------------
   Single ROM
   -------------------------------------------------------------------------- */

.rn-rom-hero {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 26px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius-lg);
	padding: 24px;
	margin-bottom: 24px;
}

.rn-rom-cover {
	aspect-ratio: 3 / 4;
	border-radius: var(--rn-radius);
	overflow: hidden;
	background: var(--rn-line-soft);
	box-shadow: var(--rn-shadow-md);
}

.rn-rom-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.rn-rom-title { font-size: 31px; margin: 0; letter-spacing: -.025em; }

.rn-rom-subline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--rn-muted);
}

.rn-rom-genres { display: flex; flex-wrap: wrap; gap: 6px; }

.rn-rom-excerpt { color: var(--rn-text); font-size: 15.5px; margin: 2px 0 0; }

/* Buttons */

.rn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--rn-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 11px 22px;
	border-radius: var(--rn-radius);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, transform .1s, box-shadow .15s;
}
.rn-btn:hover { background: var(--rn-primary-dark); color: #fff; text-decoration: none; }
.rn-btn:active { transform: translateY(1px); }

.rn-btn--ghost {
	background: #fff;
	color: var(--rn-text);
	border-color: var(--rn-line);
}
.rn-btn--ghost:hover { background: var(--rn-line-soft); color: var(--rn-ink); border-color: #cbd5e1; }

.rn-btn--jump { margin-top: 4px; }

.rn-btn--download {
	background: var(--rn-accent);
	font-size: 17px;
	padding: 15px 36px;
	box-shadow: 0 4px 14px rgba(22, 163, 74, .3);
}
.rn-btn--download:hover { background: var(--rn-accent-dark); box-shadow: 0 6px 20px rgba(22, 163, 74, .38); }

.rn-btn-icon { flex: none; }

.rn-btn-size {
	font-size: 12.5px;
	font-weight: 600;
	background: rgba(255, 255, 255, .22);
	padding: 3px 9px;
	border-radius: 999px;
}

/* Spec table */

.rn-specs { margin-bottom: 24px; }

.rn-spec-table {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	overflow: hidden;
	font-size: 14.5px;
}

.rn-spec-table tr + tr { border-top: 1px solid var(--rn-line-soft); }

.rn-spec-table th {
	text-align: left;
	width: 210px;
	padding: 11px 16px;
	background: #fafbfc;
	color: var(--rn-muted);
	font-weight: 600;
	font-size: 13.5px;
	vertical-align: top;
}

.rn-spec-table td { padding: 11px 16px; color: var(--rn-ink); font-weight: 500; }

/* Download box */

.rn-downloadbox {
	background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
	border: 2px solid #bbf7d0;
	border-radius: var(--rn-radius-lg);
	padding: 24px;
	margin: 0 0 26px;
	text-align: center;
}

.rn-downloadbox-head {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.rn-downloadbox-title { font-size: 20px; margin: 0; }

.rn-downloadbox-count { font-size: 13px; color: var(--rn-muted); }
.rn-dl-number { font-weight: 700; color: var(--rn-accent-dark); }

.rn-downloadbox-facts {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.rn-downloadbox-facts li {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius-sm);
	padding: 7px 14px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	min-width: 110px;
}

.rn-downloadbox-facts span { color: var(--rn-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.rn-downloadbox-facts strong { color: var(--rn-ink); font-weight: 650; word-break: break-word; }

.rn-downloadbox-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.rn-downloadbox-notice {
	margin-top: 16px;
	font-size: 13px;
	color: var(--rn-muted);
	background: #fff;
	border: 1px dashed var(--rn-line);
	border-radius: var(--rn-radius-sm);
	padding: 11px 15px;
}
.rn-downloadbox-notice p:last-child { margin-bottom: 0; }

.rn-downloadbox-empty { color: var(--rn-muted); margin: 0; }

.rn-download-btn.is-loading { opacity: .75; pointer-events: none; }

/* Trailer */

.rn-trailer { margin-bottom: 26px; }

.rn-trailer-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--rn-radius);
	overflow: hidden;
	cursor: pointer;
	background: #000;
}

.rn-trailer-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.rn-trailer-frame:hover img { opacity: 1; }

.rn-trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rn-trailer-play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 66px; height: 46px;
	background: rgba(220, 38, 38, .92);
	border-radius: 12px;
}
.rn-trailer-play::after {
	content: "";
	position: absolute;
	top: 50%; left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

/* Body copy */

.rn-rom-body {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 26px 30px;
	font-size: 16px;
	line-height: 1.72;
	margin-bottom: 24px;
}

.rn-rom-body h2 { font-size: 22px; margin-top: 1.5em; }
.rn-rom-body h3 { font-size: 18px; margin-top: 1.4em; }
.rn-rom-body h2:first-child, .rn-rom-body h3:first-child { margin-top: 0; }
.rn-rom-body img { border-radius: var(--rn-radius-sm); margin: 1em 0; }
.rn-rom-body ul, .rn-rom-body ol { padding-left: 1.4em; }
.rn-rom-body li { margin-bottom: .4em; }

.rn-rom-body blockquote {
	margin: 1.4em 0;
	padding: 2px 20px;
	border-left: 3px solid var(--rn-primary);
	color: var(--rn-muted);
	font-style: italic;
}

.rn-rom-body code {
	background: var(--rn-line-soft);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: var(--rn-mono);
	font-size: .9em;
}

.rn-rom-body pre {
	background: var(--rn-ink);
	color: #e2e8f0;
	padding: 16px 18px;
	border-radius: var(--rn-radius);
	overflow-x: auto;
}
.rn-rom-body pre code { background: none; color: inherit; padding: 0; }

.rn-rom-body table { margin: 1.2em 0; font-size: 15px; }
.rn-rom-body th, .rn-rom-body td { border: 1px solid var(--rn-line); padding: 9px 13px; text-align: left; }
.rn-rom-body th { background: #fafbfc; }

.rn-autolink {
	font-weight: 600;
	border-bottom: 1px dotted var(--rn-primary);
	text-decoration: none;
}
.rn-autolink:hover { border-bottom-style: solid; text-decoration: none; }

/* In-content related block */

.rn-inline-links {
	background: #f8fafc;
	border: 1px solid var(--rn-line);
	border-left: 3px solid var(--rn-accent);
	border-radius: var(--rn-radius);
	padding: 16px 20px;
	margin: 26px 0;
}

.rn-inline-links h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--rn-muted);
	margin: 0 0 10px;
}

.rn-inline-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.rn-inline-links li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0;
}

.rn-inline-links a { font-weight: 600; font-size: 15px; }
.rn-inline-size { font-size: 12px; color: var(--rn-faint); white-space: nowrap; }

/* Tags */

.rn-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.rn-tags-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--rn-faint);
}

/* Prev / next */

.rn-siblings {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 28px;
}

.rn-sibling {
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 13px 17px;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.rn-sibling:hover { border-color: var(--rn-primary); box-shadow: var(--rn-shadow-md); text-decoration: none; }

.rn-sibling--next { text-align: right; align-items: flex-end; }
.rn-sibling--next:only-child { grid-column: 2; }

.rn-sibling-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rn-faint); }
.rn-sibling-title { font-weight: 650; color: var(--rn-ink); font-size: 14.5px; line-height: 1.35; }

/* Link lists */

.rn-linklist {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2px 18px;
}

.rn-linklist li { margin: 0; }

.rn-linklist a {
	display: block;
	padding: 7px 10px;
	border-radius: var(--rn-radius-sm);
	font-size: 14.5px;
	color: var(--rn-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rn-linklist a:hover { background: #fff; color: var(--rn-primary); text-decoration: none; }

.rn-more-console, .rn-related, .rn-sibling-terms { margin-bottom: 30px; }
.rn-more-link { font-size: 14.5px; font-weight: 600; margin: 0; }

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */

.rn-article-head { margin-bottom: 18px; }
.rn-article-title { font-size: 32px; margin-bottom: 8px; }
.rn-article-meta { font-size: 13.5px; color: var(--rn-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.rn-article-figure { margin: 0 0 20px; border-radius: var(--rn-radius); overflow: hidden; }

.rn-page-links { margin-top: 18px; font-weight: 600; font-size: 14px; }
.rn-page-links a { padding: 0 5px; }

/* --------------------------------------------------------------------------
   Sidebar widgets
   -------------------------------------------------------------------------- */

.widget {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 16px 18px;
	margin-bottom: 18px;
}

.widget-title {
	font-size: 15px;
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--rn-line-soft);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 750;
}

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

.rn-minilist li + li { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rn-line-soft); }

.rn-minilist-link {
	display: flex;
	gap: 11px;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.rn-minilist-link:hover { text-decoration: none; }
.rn-minilist-link:hover .rn-minilist-title { color: var(--rn-primary); }

.rn-minilist-thumb {
	width: 42px; height: 56px;
	flex: none;
	border-radius: 5px;
	overflow: hidden;
	background: var(--rn-line-soft);
}
.rn-minilist-thumb .rn-cover-img { width: 100%; height: 100%; object-fit: cover; font-size: 18px; }

.rn-minilist-body { min-width: 0; }

.rn-minilist-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--rn-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rn-minilist-meta { display: block; font-size: 11.5px; color: var(--rn-muted); margin-top: 2px; }

.rn-termlist li + li { border-top: 1px solid var(--rn-line-soft); }

.rn-termlist a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-size: 14.5px;
	color: var(--rn-text);
	text-decoration: none;
}
.rn-termlist a:hover { color: var(--rn-primary); text-decoration: none; }

.rn-term-count {
	background: var(--rn-line-soft);
	color: var(--rn-muted);
	font-size: 11.5px;
	font-weight: 700;
	padding: 1px 8px;
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   A-Z index page
   -------------------------------------------------------------------------- */

.rn-letters--jump {
	position: sticky;
	top: 0;
	background: var(--rn-bg);
	padding: 12px 0;
	z-index: 20;
	border-bottom: 1px solid var(--rn-line);
}

.rn-az-group { margin-bottom: 30px; scroll-margin-top: 70px; }

.rn-az-letter {
	font-size: 24px;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--rn-primary);
	margin-bottom: 12px;
}

.rn-az-count { font-size: 13px; font-weight: 600; color: var(--rn-muted); }

.rn-az-list {
	list-style: none;
	margin: 0; padding: 0;
	columns: 4;
	column-gap: 26px;
}

.rn-az-list li { break-inside: avoid; margin-bottom: 5px; }
.rn-az-list a { font-size: 14.5px; color: var(--rn-text); }
.rn-az-list a:hover { color: var(--rn-primary); }

/* --------------------------------------------------------------------------
   Empty states & 404
   -------------------------------------------------------------------------- */

.rn-empty {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 42px 30px;
	text-align: center;
}

.rn-404 { text-align: center; padding: 40px 0 50px; }

.rn-404-code {
	font-size: 84px;
	font-weight: 800;
	line-height: 1;
	margin: 0;
	color: var(--rn-primary);
	opacity: .18;
	letter-spacing: -.04em;
}

.rn-404-title { font-size: 27px; margin-top: -14px; }
.rn-404-sub { color: var(--rn-muted); }
.rn-404-search { max-width: 520px; margin: 22px auto 34px; }
.rn-404-suggest { max-width: 740px; margin: 0 auto 28px; text-align: left; }
.rn-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Discover / footer
   -------------------------------------------------------------------------- */

.rn-discover {
	background: #fff;
	border-top: 1px solid var(--rn-line);
	padding: 24px 0;
}

.rn-discover-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--rn-faint);
	margin-bottom: 10px;
}

.rn-discover-list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
}

.rn-discover-list a { font-size: 13.5px; color: var(--rn-muted); }
.rn-discover-list a:hover { color: var(--rn-primary); }
.rn-discover-list li:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--rn-line); }

.rn-footer {
	background: var(--rn-ink);
	color: #94a3b8;
	padding: 36px 0 22px;
	font-size: 14px;
}

.rn-footer a { color: #cbd5e1; }
.rn-footer a:hover { color: #fff; }

.rn-footer .widget { background: transparent; border: 0; padding: 0; margin-bottom: 0; }
.rn-footer .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .1); }
.rn-footer .rn-termlist li + li { border-top-color: rgba(255, 255, 255, .07); }
.rn-footer .rn-termlist a { color: #94a3b8; }
.rn-footer .rn-termlist a:hover { color: #fff; }
.rn-footer .rn-term-count { background: rgba(255, 255, 255, .08); color: #94a3b8; }

.rn-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 30px;
	margin-bottom: 26px;
}

.rn-disclaimer {
	font-size: 12.5px;
	line-height: 1.65;
	color: #64748b;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 16px;
	margin-bottom: 8px;
}

.rn-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 14px;
	font-size: 13px;
}
.rn-footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Ads
   -------------------------------------------------------------------------- */

.rn-ad {
	margin: 0 0 20px;
	text-align: center;
	overflow: hidden;
}
.rn-ad:empty { display: none; }
.rn-ad--sidebar { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.comments-area {
	background: #fff;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius);
	padding: 22px 26px;
	margin-bottom: 24px;
}

.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 26px; }

.comment-body {
	padding: 14px 0;
	border-bottom: 1px solid var(--rn-line-soft);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid var(--rn-line);
	border-radius: var(--rn-radius-sm);
	font-family: inherit;
	font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--rn-primary);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.comment-form .submit {
	background: var(--rn-primary);
	color: #fff;
	border: 0;
	padding: 11px 24px;
	border-radius: var(--rn-radius);
	font-weight: 700;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--rn-primary-dark); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.rn-layout { grid-template-columns: 1fr; }
	.rn-sidebar { position: static; }
	.rn-az-list { columns: 3; }
}

@media (max-width: 860px) {
	.rn-header-inner { flex-wrap: wrap; }
	.rn-header-search { order: 3; width: 100%; max-width: none; margin-left: 0; }
	.rn-badge { display: none; }

	.rn-nav-toggle {
		display: block;
		margin-left: auto;
		width: 42px; height: 38px;
		background: #fff;
		border: 1px solid var(--rn-line);
		border-radius: var(--rn-radius-sm);
		cursor: pointer;
		position: relative;
	}
	.rn-nav-toggle-bar,
	.rn-nav-toggle-bar::before,
	.rn-nav-toggle-bar::after {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: 18px; height: 2px;
		background: var(--rn-ink);
		border-radius: 2px;
	}
	.rn-nav-toggle-bar { top: 50%; margin-top: -1px; }
	.rn-nav-toggle-bar::before { content: ""; top: -6px; }
	.rn-nav-toggle-bar::after { content: ""; top: 6px; }

	.rn-nav { display: none; }
	.rn-nav.is-open { display: block; }
	.rn-menu { flex-direction: column; }
	.rn-menu .sub-menu { position: static; box-shadow: none; border-radius: 0; background: rgba(255,255,255,.06); }
	.rn-menu .sub-menu a { color: #cbd5e1; }

	.rn-rom-hero { grid-template-columns: 1fr; }
	.rn-rom-cover { max-width: 210px; margin: 0 auto; }
	.rn-rom-head { align-items: center; text-align: center; }
	.rn-rom-title { font-size: 25px; }

	.rn-hero-title { font-size: 30px; }
	.rn-archive-title { font-size: 24px; }

	.rn-grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 14px; }

	.rn-siblings { grid-template-columns: 1fr; }
	.rn-sibling--next { text-align: left; align-items: flex-start; }
	.rn-sibling--next:only-child { grid-column: 1; }

	.rn-rom-body { padding: 20px; }
	.rn-spec-table th { width: 140px; }
	.rn-az-list { columns: 2; }
	.rn-linklist { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.rn-grid { grid-template-columns: repeat(2, 1fr); }
	.rn-az-list { columns: 1; }
	.rn-btn--download { width: 100%; }
	.rn-downloadbox { padding: 18px 14px; }
	.rn-search-submit { padding: 11px 14px; }
}

@media print {
	.rn-header, .rn-nav, .rn-sidebar, .rn-footer, .rn-ad, .rn-discover, .rn-downloadbox-actions { display: none; }
}
