/* Robin — front end.
   Colours, radius and width come from CSS variables set in the options panel. */

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #2c2436;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--rb-dark); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }

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

.rb-skip {
	position: absolute; left: -9999px;
	background: var(--rb-accent); color: #fff; padding: 10px 16px; z-index: 999;
}
.rb-skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- buttons */

.rb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--rb-accent); color: #fff;
	border: 1px solid var(--rb-accent);
	border-radius: var(--rb-radius);
	padding: 11px 20px;
	font: inherit; font-weight: 600;
	cursor: pointer; text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}
.rb-btn:hover { background: var(--rb-accent-dark); border-color: var(--rb-accent-dark); color: #fff; text-decoration: none; }
.rb-btn:disabled { opacity: .6; cursor: default; }
.rb-btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.rb-btn-sm { padding: 7px 14px; font-size: .9rem; }
.rb-btn-ghost { background: transparent; color: var(--rb-accent); }
.rb-btn-ghost:hover { background: var(--rb-accent-soft); color: var(--rb-accent-dark); }
.rb-btn-light { background: #fff; color: var(--rb-accent); border-color: #fff; }

/* -------------------------------------------------------------- header */

.rb-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid #eee7f3;
}
.rb-header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.rb-brand img { max-height: 40px; width: auto; }
.rb-logo-text { font-weight: 800; font-size: 1.3rem; color: var(--rb-dark); }

.rb-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.rb-burger span { display: block; width: 22px; height: 2px; background: var(--rb-dark); margin: 4px 0; }

.rb-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.rb-nav-item { position: relative; }
.rb-nav-link {
	display: inline-flex; align-items: center; gap: 5px;
	background: none; border: 0; font: inherit; font-weight: 600;
	color: var(--rb-dark); padding: 10px 12px; cursor: pointer; border-radius: 8px;
}
.rb-nav-link:hover { background: var(--rb-accent-soft); color: var(--rb-accent-dark); text-decoration: none; }

.rb-mega {
	position: absolute; inset-inline-start: 0; top: 100%;
	min-width: 560px;
	background: #fff; border: 1px solid #eee7f3;
	border-radius: var(--rb-radius);
	box-shadow: 0 18px 40px rgba(40, 12, 70, .12);
	padding: 18px; opacity: 0; visibility: hidden;
	transform: translateY(6px); transition: .16s ease;
}
.rb-has-mega:hover .rb-mega,
.rb-has-mega.is-open .rb-mega { opacity: 1; visibility: visible; transform: none; }

.rb-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rb-mega-item {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 10px; border-radius: 9px; color: #3c3348; font-size: .93rem;
}
.rb-mega-item:hover { background: var(--rb-accent-soft); color: var(--rb-accent-dark); text-decoration: none; }
.rb-mega-icon { width: 22px; height: 22px; color: var(--rb-accent); flex: 0 0 22px; }
.rb-mega-icon svg { width: 100%; height: 100%; }
.rb-mega-all { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9rem; }

.rb-submenu {
	position: absolute; inset-inline-start: 0; top: 100%; min-width: 200px;
	background: #fff; border: 1px solid #eee7f3; border-radius: var(--rb-radius);
	box-shadow: 0 12px 28px rgba(40, 12, 70, .1);
	padding: 6px; opacity: 0; visibility: hidden; transition: .16s ease;
}
.rb-has-sub:hover .rb-submenu, .rb-has-sub.is-open .rb-submenu { opacity: 1; visibility: visible; }
.rb-submenu-link { display: block; padding: 8px 12px; border-radius: 7px; color: #3c3348; }
.rb-submenu-link:hover { background: var(--rb-accent-soft); text-decoration: none; }

.rb-header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.rb-cart { color: var(--rb-dark); display: flex; padding: 8px; }

/* -------------------------------------------------------------- search */

.rb-search { position: relative; display: flex; align-items: center; }
.rb-search input {
	width: 240px; padding: 10px 40px 10px 14px;
	border: 1px solid #e2d9ec; border-radius: var(--rb-radius);
	font: inherit; background: #faf8fc;
}
.rb-search input:focus { outline: 2px solid var(--rb-accent); outline-offset: 1px; background: #fff; }
.rb-search button {
	position: absolute; inset-inline-end: 6px;
	background: none; border: 0; color: var(--rb-accent); cursor: pointer; padding: 6px;
}
.rb-search-hero input { width: 100%; padding: 18px 54px 18px 20px; font-size: 1.05rem; background: #fff; }
.rb-search-hero { max-width: 620px; margin: 0 auto; }
.rb-search-inline input { width: 100%; }

.rb-suggest {
	position: absolute; top: calc(100% + 6px); inset-inline-start: 0; right: 0;
	background: #fff; border: 1px solid #eee7f3; border-radius: var(--rb-radius);
	box-shadow: 0 14px 34px rgba(40, 12, 70, .14);
	overflow: hidden; z-index: 50; text-align: start;
}
.rb-suggest a {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 10px 14px; color: #3c3348; font-size: .94rem;
}
.rb-suggest a:hover { background: var(--rb-accent-soft); text-decoration: none; }
.rb-suggest em { font-style: normal; font-size: .75rem; color: var(--rb-accent); }

/* ---------------------------------------------------------------- hero */

.rb-hero {
	background: linear-gradient(135deg, var(--rb-accent) 0%, var(--rb-dark) 100%);
	color: #fff; padding: 68px 0 76px; text-align: center;
}
.rb-hero h1 { color: #fff; margin-bottom: .3em; }
.rb-hero p { margin: 0 0 26px; opacity: .9; font-size: 1.05rem; }

/* ------------------------------------------------------------ sections */

.rb-section { padding: 46px 0; }
.rb-section-title { margin-bottom: 22px; }
.rb-section-more { margin-top: 22px; text-align: center; }

.rb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}

/* --------------------------------------------------------------- cards */

.rb-card {
	background: #fff;
	border: 1px solid #ece6f3;
	border-radius: var(--rb-radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	/* Only opacity/transform animate — compositor work, no layout, no repaint. */
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
	will-change: transform;
}
.rb-card:hover {
	box-shadow: 0 10px 28px -8px rgba(40, 12, 70, .18);
	border-color: #ded2ee;
	transform: translateY(-3px);
}
.rb-card-media {
	position: relative; display: block;
	aspect-ratio: 370 / 261;
	/* Subtle placeholder so a slow image reads as loading, not as a hole. */
	background: linear-gradient(135deg, #f6f1fb 0%, #efe7f8 100%);
	overflow: hidden;
}
.rb-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.rb-card:hover .rb-card-media img { transform: scale(1.045); }
.rb-card-media img.is-missing { object-fit: contain; padding: 18%; opacity: .5; }

/* Gradient scrim keeps badges legible over any artwork. */
.rb-card-media::after {
	content: ""; position: absolute; inset: 0 0 auto; height: 58px;
	background: linear-gradient(to bottom, rgba(24,8,40,.28), transparent);
	pointer-events: none;
}

.rb-badge {
	position: absolute; top: 10px; z-index: 2;
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	padding: 5px 10px; border-radius: 20px;
	backdrop-filter: saturate(160%) blur(6px);
	box-shadow: 0 2px 8px rgba(20, 8, 34, .18);
}
.rb-badge-fresh {
	inset-inline-start: 10px;
	background: rgba(13, 148, 84, .94); color: #fff;
}
.rb-badge-fresh::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: #8ff0be; box-shadow: 0 0 0 3px rgba(143, 240, 190, .3);
}
.rb-badge-paid { inset-inline-end: 10px; background: rgba(27, 15, 43, .92); color: #fff; }

.rb-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rb-card-cat {
	font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--rb-accent);
}
.rb-card-cat:hover { text-decoration: none; opacity: .75; }
.rb-card-title { font-size: .96rem; margin: 0; line-height: 1.42; font-weight: 650; }
.rb-card-title a {
	color: var(--rb-dark);
	/* Two-line clamp keeps every card in a row the same height. */
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.rb-card-title a:hover { color: var(--rb-accent); text-decoration: none; }
.rb-card-text { margin: 0; font-size: .87rem; color: #6b6178; }
.rb-card-meta {
	margin-top: auto; padding-top: 11px;
	border-top: 1px solid #f4f0f9;
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	font-size: .78rem; color: #857b91;
}
.rb-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.rb-meta-item + .rb-meta-item::before {
	content: ""; width: 3px; height: 3px; border-radius: 50%;
	background: #cfc6db; margin-inline-end: 6px;
}
.rb-card-price { margin-inline-start: auto; font-weight: 700; color: var(--rb-accent); }
.rb-card-price del { color: #a99fb5; font-weight: 400; margin-inline-end: 4px; }

/* ---------------------------------------------------------- categories */

.rb-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rb-cat-tile {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 24px 14px; text-align: center;
	background: #fff; border: 1px solid #ece6f3; border-radius: var(--rb-radius);
	color: var(--rb-dark); font-weight: 600; font-size: .89rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rb-cat-tile:hover {
	border-color: var(--rb-accent);
	box-shadow: 0 10px 24px -10px rgba(40, 12, 70, .25);
	transform: translateY(-3px);
	text-decoration: none;
}
.rb-cat-icon {
	width: 54px; height: 54px; border-radius: 16px;
	color: var(--rb-accent); background: var(--rb-accent-soft);
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease, color .2s ease;
}
.rb-cat-icon svg { width: 26px; height: 26px; }
.rb-cat-tile:hover .rb-cat-icon { background: var(--rb-accent); color: #fff; }

.rb-cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rb-cat-list a {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 10px 14px; border: 1px solid #efe9f5; border-radius: 10px;
	color: #3c3348; font-size: .92rem;
}
.rb-cat-list a:hover { border-color: var(--rb-accent); background: var(--rb-accent-soft); text-decoration: none; }
.rb-cat-list em { font-style: normal; color: #9a91a6; font-size: .82rem; }

/* --------------------------------------------------------------- lists */

.rb-listing { padding: 30px 0 60px; }
.rb-listing-head { margin-bottom: 18px; }
.rb-listing-sub { margin: 0; color: #6b6178; }

.rb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #8a8095; margin-bottom: 16px; }
.rb-crumbs a { color: #8a8095; }
.rb-crumbs a:hover { color: var(--rb-accent); }

.rb-filters {
	display: flex; gap: 14px; flex-wrap: wrap; align-items: end;
	padding: 14px 16px; margin-bottom: 26px;
	background: #faf8fd; border: 1px solid #efe9f5; border-radius: var(--rb-radius);
}
.rb-filter { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: #6b6178; }
.rb-filter select {
	padding: 8px 12px; border: 1px solid #e2d9ec; border-radius: 9px;
	background: #fff; font: inherit; font-size: .9rem; min-width: 150px;
}
.rb-filter-sort { margin-inline-start: auto; }

.rb-more-wrap { text-align: center; margin-top: 34px; }
.rb-more-status { margin: 12px 0 0; color: #7a7186; font-size: .9rem; }

/* Pagination stays in the DOM for crawlers but out of the visual flow. */
.rb-pagination {
	position: absolute; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.rb-empty { text-align: center; padding: 60px 20px; }
.rb-empty p { color: #6b6178; margin-bottom: 20px; }

/* ----------------------------------------------------------- item page */

.rb-item { padding: 26px 0 60px; }
.rb-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.rb-item-head { margin-bottom: 18px; }
.rb-item-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .87rem; color: #7a7186; }
.rb-item-meta .rb-badge { position: static; }
.rb-item-cover { margin: 0 0 24px; border-radius: var(--rb-radius); overflow: hidden; background: #f4eefa; }

.rb-download {
	background: #faf8fd; border: 1px solid #e8dff3;
	border-radius: var(--rb-radius); padding: 22px; margin-bottom: 26px;
}
.rb-download-title { margin-bottom: 16px; }
.rb-version + .rb-version { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e8dff3; }
.rb-version-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: .92rem; }
.rb-version-head span { color: #7a7186; }
.rb-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-password { margin: 16px 0 0; font-size: .9rem; color: #6b6178; }
.rb-password code { background: #fff; border: 1px solid #e2d9ec; padding: 2px 8px; border-radius: 6px; }
.rb-download-empty { margin: 0; color: #7a7186; }

.rb-buy { text-align: center; }
.rb-buy-price { font-size: 1.8rem; font-weight: 800; color: var(--rb-dark); margin-bottom: 14px; }
.rb-buy-price del { font-size: 1.1rem; color: #a99fb5; font-weight: 400; margin-inline-end: 8px; }
.rb-buy-note { margin: 14px 0 0; font-size: .87rem; color: #6b6178; }

.rb-prose { line-height: 1.75; }
.rb-prose img { border-radius: var(--rb-radius); margin: 18px 0; }
.rb-prose h2 { margin-top: 1.6em; }
.rb-item-desc { margin-bottom: 26px; }

.rb-list-box { margin-bottom: 26px; }
.rb-list-box ul { margin: 0; padding-inline-start: 20px; }
.rb-list-box li { margin-bottom: 6px; }

.rb-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rb-gallery-grid img { border-radius: 10px; border: 1px solid #efe9f5; }

.rb-side-box { background: #faf8fd; border: 1px solid #efe9f5; border-radius: var(--rb-radius); padding: 20px; position: sticky; top: 90px; }
.rb-side-box h3 { font-size: 1rem; margin-bottom: 12px; }
.rb-side-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .9rem; }
.rb-side-box dt { color: #7a7186; }
.rb-side-box dd { margin: 0; color: var(--rb-dark); font-weight: 600; }
.rb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rb-tags a { font-size: .78rem; padding: 4px 10px; background: #fff; border: 1px solid #e8dff3; border-radius: 20px; color: #6b6178; }
.rb-tags a:hover { border-color: var(--rb-accent); color: var(--rb-accent); text-decoration: none; }

.rb-related { padding-top: 40px; }

/* -------------------------------------------------------------- gateway */

.rb-gate { padding: 26px 0 60px; }
.rb-gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: start; }
.rb-gate-card {
	background: #faf8fd; border: 1px solid #e8dff3; border-radius: var(--rb-radius);
	padding: 34px 26px; text-align: center;
}
.rb-gate-cover { width: 110px; height: auto; border-radius: 10px; margin: 0 auto 16px; }
.rb-gate-card h1 { font-size: 1.4rem; }
.rb-gate-item { margin: 0 0 6px; }
.rb-gate-item strong { display: block; color: var(--rb-dark); }
.rb-gate-item span { font-size: .88rem; color: #7a7186; }
.rb-gate-note { margin: 0 0 22px; font-size: .9rem; color: #7a7186; }

.rb-counter { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 96px; height: 96px; border-radius: 50%;
	border: 3px solid var(--rb-accent); color: var(--rb-accent); }
.rb-counter-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.rb-counter-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

.rb-gate-back { margin: 14px 0 0; font-size: .9rem; }
.rb-gate-error { color: #c0392b; margin: 12px 0 0; }

.rb-gate-parts { margin-top: 26px; }
.rb-gate-parts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-gate-parts a { display: inline-block; padding: 8px 14px; border: 1px solid #e8dff3; border-radius: 9px; font-size: .88rem; }
.rb-gate-about { margin-top: 26px; }

.rb-gate-related { display: grid; gap: 10px; }
.rb-mini { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: #3c3348; }
.rb-mini img { width: 72px; border-radius: 8px; flex: 0 0 72px; }
.rb-side-title { font-size: 1rem; margin-bottom: 14px; }

/* Ad slots reserve height so late injection does not shift the layout. */
.rb-ad { margin: 22px 0; text-align: center; min-height: 100px; }
.rb-ad-gateway { min-height: 250px; }

/* -------------------------------------------------------------- banner */

.rb-banner { background: var(--rb-dark); color: #fff; padding: 40px 0; margin: 46px 0; }
.rb-banner .rb-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rb-banner h2 { color: #fff; margin: 0 0 6px; }
.rb-banner p { margin: 0; opacity: .85; }

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

.rb-footer { background: var(--rb-dark); color: rgba(255,255,255,.75); padding: 34px 0; margin-top: 60px; }
.rb-footer-menu { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; }
.rb-footer-menu a { color: rgba(255,255,255,.85); font-size: .92rem; }
.rb-footer-note { margin: 0; font-size: .85rem; opacity: .7; }

/* ------------------------------------------------------------ lightbox */

.rb-lightbox {
	position: fixed; inset: 0; z-index: 999;
	background: rgba(20, 8, 34, .9);
	display: none; align-items: center; justify-content: center; padding: 30px;
}
.rb-lightbox.is-open { display: flex; }
.rb-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.rb-lightbox button {
	position: absolute; top: 18px; inset-inline-end: 22px;
	background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}

.rb-page { padding: 30px 0 60px; }
.rb-404 { text-align: center; }
.rb-thanks-note { background: #faf8fd; border: 1px solid #e8dff3; border-radius: var(--rb-radius); padding: 18px 20px; margin-bottom: 22px; }
.rb-thanks-note p { margin: 6px 0 0; }

/* ---------------------------------------------------------------小 screens */

@media (max-width: 1020px) {
	.rb-item-grid, .rb-gate-grid { grid-template-columns: 1fr; }
	.rb-side-box { position: static; }
}

@media (max-width: 900px) {
	.rb-burger { display: block; order: 3; margin-inline-start: auto; }
	.rb-header-tools { order: 4; width: 100%; padding-bottom: 12px; }
	.rb-header-tools .rb-search { flex: 1; }
	.rb-search input { width: 100%; }
	.rb-header-inner { flex-wrap: wrap; }

	.rb-nav {
		order: 5; width: 100%; display: none; flex-direction: column; align-items: stretch;
		gap: 0; margin: 0; padding-bottom: 12px;
	}
	.rb-nav.is-open { display: flex; }
	.rb-nav-link { width: 100%; justify-content: space-between; }

	/* Mega menu collapses into an accordion instead of a floating panel. */
	.rb-mega, .rb-submenu {
		position: static; min-width: 0; box-shadow: none; border: 0;
		padding: 0 0 8px 12px; opacity: 1; visibility: visible;
		transform: none; display: none;
	}
	.rb-has-mega.is-open .rb-mega, .rb-has-sub.is-open .rb-submenu { display: block; }
	.rb-mega-grid { grid-template-columns: 1fr 1fr; }

	.rb-cat-grid { grid-template-columns: 1fr 1fr; }
	.rb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.rb-card-title { font-size: .9rem; }

	.rb-filters { gap: 10px; padding: 12px; }
	.rb-filter { flex: 1 1 45%; }
	.rb-filter select { min-width: 0; width: 100%; }
	.rb-filter-sort { margin-inline-start: 0; }

	.rb-hero { padding: 46px 0 52px; }
	.rb-banner .rb-container { flex-direction: column; align-items: flex-start; }

	/* One ad slot only on small screens — two eat the whole viewport. */
	.rb-ad-item_top { display: none; }
}

@media (max-width: 480px) {
	.rb-grid { grid-template-columns: 1fr 1fr; }
	.rb-gate-card { padding: 24px 16px; }
	.rb-links .rb-btn { width: 100%; }
}


/* ============================================================
   Design refinements.
   Everything below is presentation only: no new fonts, no new
   requests, and no properties that trigger layout on scroll.
   ============================================================ */

/* Typographic rhythm — tighter headings read as more considered. */
h1, h2, h3 { letter-spacing: -.015em; font-weight: 700; }
h1 { letter-spacing: -.025em; }

.rb-section-title {
	display: flex; align-items: center; gap: 14px;
	font-size: clamp(1.15rem, .95rem + .8vw, 1.45rem);
}
/* Rule that fills the space beside a heading instead of an empty gap. */
.rb-section-title::after {
	content: ""; flex: 1; height: 1px;
	background: linear-gradient(to right, #e9e1f3, transparent);
}

/* Alternating section tint gives the page structure without extra markup. */
.rb-section:nth-of-type(even) { background: #fbfafd; }

/* Hero: a static mesh, painted once, no animation. */
.rb-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 400px at 15% -10%, rgba(255,255,255,.20), transparent 60%),
		radial-gradient(700px 380px at 88% 110%, rgba(255,255,255,.14), transparent 60%),
		linear-gradient(135deg, var(--rb-accent) 0%, var(--rb-dark) 100%);
}
.rb-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.rb-hero p { max-width: 560px; margin-inline: auto; margin-bottom: 30px; }

.rb-search-hero input {
	border: 0;
	box-shadow: 0 12px 34px -12px rgba(12, 4, 24, .5);
}
.rb-search-hero input:focus { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }

/* Buttons: one shadow, one transform. Nothing that reflows. */
.rb-btn {
	box-shadow: 0 1px 2px rgba(40, 12, 70, .12);
	letter-spacing: -.005em;
}
.rb-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(40, 12, 70, .45); }
.rb-btn:active { transform: translateY(0); box-shadow: none; }
.rb-btn:focus-visible { outline: 3px solid var(--rb-accent-soft); outline-offset: 2px; }
.rb-btn-ghost { box-shadow: none; border-color: #e0d6ee; }
.rb-btn-ghost:hover { box-shadow: none; border-color: var(--rb-accent); }

/* Download buttons read as the primary action on the page. */
.rb-dl { position: relative; padding-inline: 22px; }
.rb-download {
	background:
		linear-gradient(180deg, #fdfbff 0%, #f8f4fd 100%);
	border-color: #e4d9f2;
	box-shadow: inset 0 1px 0 #fff;
}
.rb-download-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }

/* Filter bar: quieter chrome, clearer active state. */
.rb-filters { background: #fff; border-color: #ece6f3; box-shadow: 0 1px 2px rgba(40,12,70,.04); }
.rb-filter span { font-weight: 600; letter-spacing: .01em; text-transform: uppercase; font-size: .68rem; color: #8b8197; }
.rb-filter select { transition: border-color .15s ease, box-shadow .15s ease; }
.rb-filter select:hover { border-color: #cdbfe2; }
.rb-filter select:focus { outline: none; border-color: var(--rb-accent); box-shadow: 0 0 0 3px var(--rb-accent-soft); }

/* Header gains a hairline shadow only once scrolled, set by CSS alone. */
.rb-header { box-shadow: 0 1px 0 rgba(40, 12, 70, .05); }
.rb-mega { border-color: #ece6f3; }

/* Side panels and boxes share one surface treatment. */
.rb-side-box, .rb-gate-card, .rb-thanks-note {
	background: linear-gradient(180deg, #fdfbff 0%, #faf7fd 100%);
	border-color: #ece6f3;
}

/* Countdown ring reads as progress rather than a plain circle. */
.rb-counter {
	background: #fff;
	box-shadow: 0 8px 24px -12px rgba(40, 12, 70, .4), inset 0 0 0 6px var(--rb-accent-soft);
	border-width: 2px;
}

/* Deliberately no shimmer animation here. An infinite keyframe on twelve cards
   keeps the compositor awake for the life of the page — the static gradient
   placeholder on .rb-card-media conveys the same thing at zero cost. */

/* Empty state and pagination polish. */
.rb-empty { border: 1px dashed #e0d6ee; border-radius: var(--rb-radius); background: #fdfbff; }
.rb-listing-head h1 { margin-bottom: .2em; }

/* Related strip separated by a rule rather than more whitespace. */
.rb-related { border-top: 1px solid #f0eaf7; margin-top: 40px; }

/* Footer: layered instead of flat. */
.rb-footer {
	background:
		radial-gradient(600px 200px at 10% 0%, rgba(255,255,255,.06), transparent 70%),
		var(--rb-dark);
}

/* backdrop-filter is expensive on low-end phones; badges stay solid there. */
@media (max-width: 900px) {
	.rb-badge { backdrop-filter: none; }
	.rb-card:hover { transform: none; box-shadow: none; }
	.rb-card:hover .rb-card-media img { transform: none; }
	.rb-cat-tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
