/*
 * WORLDRUST theme layer.
 * Loaded after styles.css: re-tokens the Air base (so every DLE system page turns
 * dark and orange) and styles the WORLDRUST-specific blocks.
 * Design spec: design-system/worldrust/MASTER.md
 */

/* ---------- Fonts (self-hosted, Cyrillic + Latin) ---------- */

@font-face { font-family: "Oswald"; font-style: normal; font-display: block; font-weight: 200 700; src: url(../fonts/oswald-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-display: block; font-weight: 200 700; src: url(../fonts/oswald-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: block; font-weight: 400 900; src: url(../fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: block; font-weight: 400 900; src: url(../fonts/golos-text-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ----------
 * The compound selector out-ranks Air's [data-theme][data-accent] blocks. */

:root,
:root[data-theme="dark"],
:root[data-theme="dark"][data-accent] {
	--wr-bg: #080707;
	--wr-panel: #141212;
	--wr-panel-2: #1E1A19;
	--wr-line: #2A2422;
	--wr-accent: #E8541E;
	--wr-accent-hover: #FF6A2E;
	--wr-glow: rgba(232, 84, 30, .45);
	--wr-cream: #F5ECD9;
	--wr-text: #D9D0C4;
	--wr-muted: #A89F96;
	--wr-success: #6FA850;
	--wr-danger: #8A3A2A;
	--wr-danger-text: #D9715A;
	--wr-font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
	--wr-font-body: "Golos Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
	--wr-cut: polygon(0 0, 100% 0, 100% calc(100% - .6em), calc(100% - .6em) 100%, 0 100%);

	/* Air tokens remapped */
	--bg: var(--wr-bg);
	--surface: var(--wr-panel);
	--surface-soft: var(--wr-panel-2);
	--surface-sunk: #0E0C0C;
	--text: var(--wr-text);
	--muted: var(--wr-muted);
	--line: var(--wr-line);
	--accent: var(--wr-accent);
	--accent-strong: var(--wr-accent);
	--accent-soft: rgba(232, 84, 30, .12);
	--accent-hover-soft: rgba(232, 84, 30, .2);
	--accent-ink: #080707;
	--sage-soft: rgba(111, 168, 80, .14);
	--sage-ink: #9FCB86;
	--sage-hover: rgba(111, 168, 80, .22);
	--sage-hover-ink: #B4D9A0;
	--mist-soft: rgba(168, 159, 150, .12);
	--mist-ink: #CFC6BC;
	--mist-hover: rgba(168, 159, 150, .2);
	--amber-soft: rgba(217, 164, 65, .14);
	--amber-ink: #E2B867;
	--amber-hover: rgba(217, 164, 65, .22);
	--rose-soft: rgba(138, 58, 42, .25);
	--rose-ink: var(--wr-danger-text);
	--rose-hover: rgba(138, 58, 42, .35);
	--positive: var(--wr-success);
	--positive-soft: rgba(111, 168, 80, .14);
	--negative: var(--wr-danger-text);
	--negative-soft: rgba(138, 58, 42, .25);
	--warn: #E2B867;
	--warn-soft: rgba(217, 164, 65, .14);
	--news-text: var(--wr-text);
	--image-brightness: .9;
	--image-contrast: 1.05;
	--image-saturate: .95;
	--star: var(--wr-accent);
	--star-off: #3A3330;
	--dot: #4A403C;
	--shadow: 0 1.25em 3em rgba(0, 0, 0, .55);
	--shadow-soft: none;
	--shadow-tiny: none;
	--shadow-menu: 0 1.5em 3.5em rgba(0, 0, 0, .7), 0 0 0 1px var(--wr-line);
	--shadow-modal: 0 1.5em 4em rgba(0, 0, 0, .75), 0 0 0 1px var(--wr-line);
	--radius: 2px;
	--r-xs: 2px;
	--r-sm: 2px;
	--r-md: 2px;
	--r-lg: 2px;
	--r-xl: 3px;
	--container: 75rem;
	--code-bg: #0E0C0C;
	--code-border: var(--wr-line);
	--code-ink: var(--wr-text);
	--code-select: rgba(232, 84, 30, .3);
	--code-shadow: none;
	color-scheme: dark;
}

/* ---------- Base ---------- */

html { background: var(--wr-bg); }
body {
	background: transparent;
	color: var(--wr-text);
	font-family: var(--wr-font-body);
}
/* Keep the footer at the bottom of short pages */
body:not(.page--gate) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.page--gate) > .site-main { flex: 1 0 auto; width: 100%; }
::selection { background: rgba(232, 84, 30, .35); color: var(--wr-cream); }

h1, h2, h3, h4,
.story-title, .fullstory__title, .widget h2, .section-heading h1, .section-heading h2,
.section-intro h1, .wide-section__head h2, .footer-col h2 {
	font-family: var(--wr-font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--wr-cream);
}

:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
a, button, summary { cursor: pointer; }

/* Blurred art behind everything + film grain */
.wr-backdrop {
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 70% 45% at 70% 0%, rgba(232, 84, 30, .22), transparent 70%),
		linear-gradient(180deg, rgba(8, 7, 7, .35) 0%, rgba(8, 7, 7, .8) 55%, var(--wr-bg) 100%),
		url(../images/bg.webp) 70% 40% / cover no-repeat;
}
.wr-backdrop::before {
	content: "";
	position: absolute;
	inset: -20px;
	background: inherit;
	filter: blur(10px) brightness(.4) saturate(.85);
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */

.primary-button,
.wr-button {
	min-height: 2.5rem;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 0;
	background: var(--wr-accent);
	color: #080707;
	font-family: var(--wr-font-display);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	clip-path: var(--wr-cut);
	box-shadow: none;
	transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.wr-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; }
.wr-button .icon { width: 1.15rem; height: 1.15rem; }
.primary-button:hover,
.wr-button:hover { background: var(--wr-accent-hover); color: #080707; box-shadow: 0 0 22px var(--wr-glow); }
.wr-button--glow { box-shadow: 0 0 18px var(--wr-glow); }
.wr-button--outline {
	background: transparent;
	color: var(--wr-accent);
	clip-path: none;
	box-shadow: inset 0 0 0 1px var(--wr-accent);
}
.wr-button--outline:hover { background: rgba(232, 84, 30, .12); color: var(--wr-accent-hover); box-shadow: inset 0 0 0 1px var(--wr-accent-hover), 0 0 16px rgba(232, 84, 30, .25); }
.wr-button--sm { min-height: 2rem; padding: 0 .9rem; font-size: .82rem; }
/* Dark secondary button, same look as the header "Войти" */
.wr-button--dark { background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-cream); clip-path: none; }
.wr-button--dark:hover { background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-cream); }

.soft-button { background: var(--wr-panel-2); color: var(--wr-text); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--wr-line); }
.soft-button:hover { background: rgba(232, 84, 30, .12); color: var(--wr-cream); }
.icon-button { background: var(--wr-panel-2); color: var(--wr-muted); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--wr-line); }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: rgba(232, 84, 30, .12); color: var(--wr-accent); }

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

.site-header {
	background: rgba(8, 7, 7, .82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--wr-line);
}
.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wr-accent) 50%, transparent);
	opacity: .55;
}
[data-theme="dark"] .site-header { box-shadow: 0 1px 0 var(--wr-line); }
.header-main { min-height: 4.5rem; gap: 1.25rem; }

.wr-brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; }
.wr-brand__mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(232, 84, 30, .35), 0 0 18px rgba(232, 84, 30, .25); transition: box-shadow .25s ease; }
.wr-brand:hover .wr-brand__mark { box-shadow: 0 0 0 2px var(--wr-accent), 0 0 26px var(--wr-glow); }
.wr-brand__text { width: auto; height: 30px; }
.wr-brand--gate { justify-self: center; flex-direction: column; }
.wr-brand--gate .wr-brand__mark { width: 72px; height: 72px; }
.wr-brand--gate .wr-brand__text { height: 38px; }

.primary-nav { gap: 1.15rem; white-space: nowrap; font-family: var(--wr-font-display); font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav a, .wr-dropdown__toggle { color: var(--wr-text); transition: color .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .wr-dropdown__toggle:hover, .wr-dropdown__toggle[aria-expanded="true"] { color: var(--wr-cream); }
.primary-nav a::after { height: 2px; border-radius: 0; background: var(--wr-accent); box-shadow: 0 0 10px var(--wr-glow); }

.wr-dropdown { position: relative; }
.wr-dropdown__toggle {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .625rem 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
.wr-dropdown__toggle .icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.wr-dropdown__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.wr-dropdown__panel {
	position: absolute;
	top: calc(100% + .5rem);
	left: -1rem;
	z-index: 40;
	min-width: 20rem;
	margin: 0;
	padding: .5rem;
	list-style: none;
	background: var(--wr-panel);
	border-top: 2px solid var(--wr-accent);
	box-shadow: var(--shadow-menu);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.wr-dropdown.is-open .wr-dropdown__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wr-dropdown__item {
	width: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .75rem;
	padding: .6rem .75rem;
	border: 0;
	background: none;
	color: var(--wr-text);
	font-family: var(--wr-font-body);
	font-size: .9rem;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	transition: background .15s ease;
}
.wr-dropdown__item:hover { background: var(--wr-panel-2); }
/* Items are links: keep them clear of the .primary-nav a padding and underline */
.primary-nav .wr-dropdown__item, .site-header.is-menu-open .primary-nav .wr-dropdown__item { padding: .6rem .75rem; border-radius: 0; color: var(--wr-text); }
.primary-nav .wr-dropdown__item::after { display: none; }
.primary-nav .wr-dropdown__item:hover { background: var(--wr-panel-2); color: var(--wr-text); }
.wr-dropdown__tag {
	min-width: 2.25rem;
	padding: .15rem .4rem;
	background: var(--tag);
	color: #080707;
	font-family: var(--wr-font-display);
	font-weight: 700;
	font-size: .8rem;
	text-align: center;
	text-transform: uppercase;
}
.wr-dropdown__name { color: var(--wr-cream); font-weight: 600; }
.wr-dropdown__state { color: var(--wr-success); font-family: var(--wr-font-display); font-size: .85rem; }
.wr-dropdown__item.is-offline .wr-dropdown__tag { filter: grayscale(1) brightness(.6); }
.wr-dropdown__item.is-offline .wr-dropdown__state { color: var(--wr-danger-text); }

.wr-online-pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	height: 2.75rem; /* same height as the "Войти" / "Создать аккаунт" buttons */
	padding: 0 1.1rem;
	background: rgba(111, 168, 80, .1);
	box-shadow: inset 0 0 0 1px rgba(111, 168, 80, .3);
	color: var(--wr-muted);
	font-family: var(--wr-font-display);
	font-size: .88rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.wr-online-pill b { font-size: 1.05rem; font-weight: 600; color: var(--wr-cream); letter-spacing: .02em; }

.wr-live { display: inline-flex; align-items: center; gap: .4rem; color: var(--wr-success); font-family: var(--wr-font-display); font-size: .75rem; letter-spacing: .12em; }
.wr-live__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--wr-success); box-shadow: 0 0 0 0 rgba(111, 168, 80, .6); animation: wr-pulse 2s ease-out infinite; }
@keyframes wr-pulse {
	0% { box-shadow: 0 0 0 0 rgba(111, 168, 80, .6); }
	70%, 100% { box-shadow: 0 0 0 .45rem rgba(111, 168, 80, 0); }
}

.user-menu__toggle { height: 2.25rem; }
.user-menu__panel { background: var(--wr-panel); border-top: 2px solid var(--wr-accent); border-radius: 0; }
.search-form input[type="search"] { background: var(--wr-panel-2); border-radius: 2px; color: var(--wr-cream); box-shadow: inset 0 0 0 1px var(--wr-line); }
.search-form input[type="search"]:focus { box-shadow: inset 0 0 0 1px var(--wr-accent), 0 0 14px rgba(232, 84, 30, .25); }

/* ---------- Hero / wipe banner ---------- */

.site-main { padding-top: 1.75rem; }
.wr-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 2rem;
	min-height: 25rem;
	margin-bottom: 1.75rem;
	padding: 3rem;
	overflow: hidden;
	border: 1px solid var(--wr-line);
	background: var(--wr-panel);
}
.wr-hero::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	z-index: 2;
	background: linear-gradient(90deg, var(--wr-accent), transparent 70%);
	box-shadow: 0 0 14px var(--wr-glow);
}
.wr-hero__art {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 7, 7, .95) 0%, rgba(8, 7, 7, .75) 38%, rgba(8, 7, 7, .1) 75%),
		linear-gradient(0deg, rgba(8, 7, 7, .85) 0%, transparent 45%),
		url(../images/bg.webp) 75% 45% / cover no-repeat;
}
.wr-hero__copy { max-width: 34rem; }
.wr-kicker {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1rem;
	color: var(--wr-accent);
	font-family: var(--wr-font-display);
	font-size: .85rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.wr-kicker::before { content: ""; width: 2.25rem; height: 2px; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); }
.wr-hero__title { max-width: 14ch; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: .01em; }
.wr-hero__title span { color: var(--wr-accent); text-shadow: 0 0 28px var(--wr-glow); }
.wr-hero__lead { margin-top: 1.1rem; max-width: 28rem; color: var(--wr-text); font-size: 1.02rem; line-height: 1.6; }
.wr-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.wr-hero__actions .wr-button { min-height: 3rem; padding: 0 1.6rem; font-size: 1.05rem; }

/* Selling hero: features row + live proof */
.wr-hero { align-items: center; row-gap: 2.25rem; }
.wr-hero__title span { white-space: nowrap; }
.wr-hero__lead { max-width: 33rem; }
/* Fixed-width digits for ticking clocks (Oswald has no tabular figures) */
.wr-digit { display: inline-block; width: .56em; text-align: center; }
/* Hero wipe timer: icon on the left, label on top, the clock and the date under it — always aligned */
.wr-hero-wipe {
	display: inline-grid;
	grid-template-columns: auto auto;
	grid-template-areas: "icon label" "icon time";
	align-items: center;
	column-gap: .8rem;
	row-gap: .1rem;
	margin-top: 1.4rem;
	padding: .65rem 1.1rem .65rem .65rem;
	background: rgba(8, 7, 7, .7);
	border: 1px solid var(--wr-line);
	border-left: 2px solid var(--wr-accent);
}
.wr-hero-wipe__icon { grid-area: icon; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: rgba(232, 84, 30, .14); color: var(--wr-accent); }
.wr-hero-wipe__icon .icon { width: 1.25rem; height: 1.25rem; }
.wr-hero-wipe__label { grid-area: label; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .8rem; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.wr-hero-wipe__line { grid-area: time; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; }
.wr-hero-wipe__time { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; white-space: nowrap; text-shadow: 0 0 16px var(--wr-glow); }
.wr-hero-wipe__date { color: #8C827A; font-size: .8rem; white-space: nowrap; }
.wr-hero__features {
	align-self: center;
	width: 23rem;
	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, .07);
	background: rgba(8, 7, 7, .8); /* sits over the bright sun: keep the muted text readable */
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.wr-feature {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon title" "icon text";
	grid-template-rows: auto 1fr;
	align-items: start;
	align-items: start;
	gap: .2rem .85rem;
	padding: 1.05rem 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, .06);
	transition: background .2s ease;
}
.wr-feature:first-child { border-top: 0; }
.wr-feature::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--wr-accent); box-shadow: 0 0 10px var(--wr-glow); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.wr-feature:hover { background: rgba(232, 84, 30, .07); }
.wr-feature:hover::before { transform: scaleY(1); }
.wr-feature__icon { grid-area: icon; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: rgba(232, 84, 30, .14); color: var(--wr-accent); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); }
.wr-feature__icon .icon { width: 1.35rem; height: 1.35rem; }
.wr-feature__title { grid-area: title; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wr-feature__text { grid-area: text; color: #B5ACA2; font-size: .8rem; line-height: 1.4; }

.wr-countdown {
	justify-self: end;
	padding: 1.1rem 1.25rem 1.25rem;
	background: rgba(8, 7, 7, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid var(--wr-line);
	border-left: 2px solid var(--wr-accent);
}
.wr-countdown__label { display: flex; align-items: center; gap: .45rem; margin-bottom: .8rem; color: var(--wr-muted); font-size: .82rem; }
.wr-countdown__label .icon { width: 1.05rem; height: 1.05rem; color: var(--wr-accent); }
.wr-countdown__cells { display: grid; grid-template-columns: repeat(4, 4.1rem); gap: .4rem; }
.wr-countdown__cell { display: grid; justify-items: center; padding: .55rem 0 .45rem; background: var(--wr-panel-2); box-shadow: inset 0 -2px 0 rgba(232, 84, 30, .5); }
.wr-countdown__cell b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wr-countdown__cell small { margin-top: .3rem; color: var(--wr-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.wr-countdown.is-done .wr-countdown__cells { display: none; }

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

.layout { grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 1.5rem; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading h1, .section-heading h2, .wide-section__head h2 {
	position: relative;
	padding-bottom: .55rem;
	font-size: 1.6rem;
}
.section-heading h1::after, .section-heading h2::after, .wide-section__head h2::after, .widget h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--wr-accent);
	box-shadow: 0 0 8px var(--wr-glow);
}
.section-heading__link, .widget__link { color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.section-heading__link:hover, .widget__link:hover { color: var(--wr-accent-hover); }
.pagetools { background: none; border: 0; padding: 0; color: var(--wr-muted); font-size: .85rem; }
.pagetools a { color: var(--wr-text); }
.pagetools a:hover { color: var(--wr-accent); }
.section-intro, .panel, .fullstory, .thread__item, .staticpage, .gate__card {
	background: var(--wr-panel);
	border: 1px solid var(--wr-line);
	border-radius: 2px;
	box-shadow: none;
}

/* ---------- Main page: server cards + news rows ---------- */

.wr-home-block { display: grid; gap: 1rem; }
.wr-home-block + .wr-home-block { margin-top: 1rem; }

.wr-total { display: inline-flex; align-items: center; gap: .45rem; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wr-total b { color: var(--wr-cream); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wr-total--plain b { font-size: 1.05rem; }
.wr-more { width: 100%; min-height: 2.75rem; }
.wr-more .icon { transition: transform .2s ease; }
.wr-more:hover .icon { transform: translateX(3px); }
.wr-servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.wr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .8rem;
	padding: 1.15rem;
	border: 1px solid var(--wr-line);
	background: rgba(20, 18, 18, .92);
	transition: border-color .2s ease, background .2s ease;
}
.wr-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--tag); box-shadow: 0 0 12px var(--tag); opacity: .85; }
.wr-card:hover { border-color: #3A302C; background: var(--wr-panel); }
.wr-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wr-card__tag { padding: .2rem .55rem; background: var(--tag); color: #080707; font-family: var(--wr-font-display); font-size: .95rem; font-weight: 700; text-transform: uppercase; }
.wr-card__status { display: inline-flex; align-items: center; gap: .4rem; color: var(--wr-success); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.wr-card__status.is-off { color: var(--wr-danger-text); }
.wr-card__status .icon { width: .95rem; height: .95rem; }
.wr-card__name { font-size: 1.2rem; line-height: 1.15; }
.wr-card__online { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.wr-card__online b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wr-card__online span { color: var(--wr-muted); font-size: .85rem; }
.wr-card__queue { margin-left: auto; padding: .1rem .45rem; background: rgba(217, 164, 65, .14); color: #E2B867 !important; font-size: .75rem !important; }
.wr-card__bar { height: 3px; background: #2E2724; }
.wr-card__bar span { display: block; height: 100%; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); }
.wr-card__facts { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; color: var(--wr-muted); font-size: .83rem; }
.wr-card__facts li { display: flex; align-items: center; gap: .45rem; }
.wr-card__facts .icon { width: .95rem; height: .95rem; color: var(--wr-accent); }
.wr-card__features { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-card__features li { padding: .2rem .5rem; background: var(--wr-panel-2); color: var(--wr-text); font-size: .76rem; }
.wr-card__connect { width: 100%; margin-top: auto; }
.wr-card__connect.is-disabled { color: var(--wr-muted); box-shadow: inset 0 0 0 1px var(--wr-line); cursor: default; }
.wr-card__connect.is-disabled:hover { background: transparent; color: var(--wr-muted); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-card.is-offline .wr-card__tag { filter: grayscale(1) brightness(.6); }
.wr-card.is-offline::before { background: var(--wr-danger); box-shadow: none; }

/* Planned server teaser */
.wr-card.is-soon { border-style: dashed; background: rgba(20, 18, 18, .7); }
.wr-card.is-soon::before { opacity: .35; box-shadow: none; }
.wr-card.is-soon .wr-card__tag { opacity: .7; }
.wr-card.is-soon .wr-card__name { color: #CFC6BC; }
.wr-card__status.is-soon { color: #E2B867; }
.wr-card__soon { display: grid; gap: .25rem; padding: .85rem; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 8px, transparent 8px 16px), var(--wr-panel-2); }
.wr-card__soon b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; }
.wr-card__soon span { color: var(--wr-muted); font-size: .82rem; }

.wr-news-rows { display: grid; gap: .5rem; }
.wr-news-row {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: .7rem;
	border: 1px solid var(--wr-line);
	background: rgba(20, 18, 18, .92);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wr-news-row:hover { border-color: #3A302C; background: var(--wr-panel); box-shadow: inset 2px 0 0 var(--wr-accent); }
.wr-news-row__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0E0C0C; }
.wr-news-row__media .cover-image { transition: transform .4s ease; }
.wr-news-row:hover .wr-news-row__media .cover-image { transform: scale(1.05); }
.wr-news-row__body { display: grid; gap: .35rem; min-width: 0; }
.wr-news-row__top { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.wr-news-row__title { overflow: hidden; font-size: 1.1rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.wr-news-row__title a:hover { color: var(--wr-accent); }
.wr-news-row__meta { display: flex; gap: .9rem; }
.wr-news-row__go { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-right: .3rem; color: var(--wr-muted); box-shadow: inset 0 0 0 1px var(--wr-line); transition: color .15s ease, box-shadow .15s ease; }
.wr-news-row:hover .wr-news-row__go { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }

/* ---------- News card ---------- */

.story-card {
	position: relative;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--wr-line);
	border-radius: 2px;
	background: rgba(20, 18, 18, .92);
	box-shadow: none;
	transition: border-color .2s ease, background .2s ease;
}
.story-card::before {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 2px;
	background: var(--wr-accent);
	box-shadow: 0 0 12px var(--wr-glow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.story-card:hover { transform: none; border-color: #3A302C; box-shadow: none; background: var(--wr-panel); }
.story-card:hover::before, .story-card--pinned::before { transform: scaleX(1); }
.story-card--pinned { box-shadow: none; }
.story-media { aspect-ratio: 16 / 10; border-radius: 2px; background: #0E0C0C; }
.story-card:hover .cover-image, .story-card:hover .visual { transform: scale(1.03); }
.story-media .pin-label { background: var(--wr-accent); color: #080707; font-family: var(--wr-font-display); text-transform: uppercase; letter-spacing: .05em; }
.story-top { gap: .5rem; }
.wr-date {
	display: inline-flex;
	align-items: center;
	height: 1.6rem;
	padding: 0 .6rem;
	background: var(--wr-panel-2);
	border-left: 2px solid var(--wr-accent);
	color: var(--wr-cream);
	font-family: var(--wr-font-display);
	font-size: .8rem;
	letter-spacing: .05em;
	white-space: nowrap;
}
.chips a, .badge { border-radius: 0; font-family: var(--wr-font-display); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
/* Category badge in news is plain text ({category}), styled like the former link chip */
.chips .wr-cat {
	display: inline-flex;
	align-items: center;
	height: 1.6875em;
	padding: 0 .6875em;
	font-family: var(--wr-font-display);
	font-size: var(--fs-meta);
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: default;
}
.chips .wr-cat:hover { background: var(--cat-link-bg); color: var(--cat-link-color); }

/* News tags are plain text, not links (worldrust.js swaps the links for .wr-tag; CSS covers no-JS) */
.fullstory__tags .wr-tag,
.fullstory__tags .chips a {
	display: inline-flex;
	align-items: center;
	height: 2.125em;
	padding: 0 .75em;
	background: var(--wr-panel-2);
	color: var(--wr-muted);
	font-family: var(--wr-font-display);
	font-size: var(--fs-meta);
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: default;
}
.fullstory__tags .chips a { pointer-events: none; }
.story-title { margin: .7rem 0 .45rem; font-size: 1.4rem; line-height: 1.15; }
.story-title a { transition: color .18s ease; }
.story-title a:hover { color: var(--wr-accent); }
.story-card .story-text { color: var(--wr-text); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-tools { padding-top: .9rem; gap: .9rem; }
.meta-item--author { color: var(--wr-muted); font-weight: 500; }
.meta-item--author a { color: var(--wr-cream); }
.meta-item--author a:hover { color: var(--wr-accent); }
.read-link.wr-button { margin-left: auto; gap: .3rem; }
.read-link.wr-button:hover { text-decoration: none; }
.read-link.wr-button .icon { width: 1rem; height: 1rem; }
.icon-action { border-radius: 2px; background: var(--wr-panel-2); }

/* Placeholder art when a story has no poster */
.visual { background: radial-gradient(circle at 70% 40%, rgba(232, 84, 30, .55), transparent 45%), linear-gradient(160deg, #2A1A12, #0E0C0C); }
.visual::before, .visual::after { display: none; }
[data-theme="dark"] .visual { filter: none; }

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

.sidebar { gap: 1rem; }
.widget { padding: 1.15rem; border: 1px solid var(--wr-line); border-radius: 2px; background: rgba(20, 18, 18, .92); box-shadow: none; }
.widget__head { margin-bottom: .9rem; }
.widget h2 { position: relative; padding-bottom: .45rem; font-size: 1.15rem; }

.wr-start {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: 1rem 1.15rem;
	background: linear-gradient(135deg, var(--wr-accent), #B83A10);
	color: #080707;
	clip-path: var(--wr-cut);
	box-shadow: 0 0 24px var(--wr-glow);
	transition: filter .2s ease, box-shadow .2s ease;
}
.wr-start:hover { filter: brightness(1.1); box-shadow: 0 0 34px var(--wr-glow); }
.wr-start > .icon { width: 2rem; height: 2rem; stroke-width: 1.6; }
.wr-start__text { display: grid; }
.wr-start__title { font-family: var(--wr-font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }
.wr-start__sub { font-size: .8rem; font-weight: 600; opacity: .8; }
.wr-start__arrow { margin-left: auto; transition: transform .2s ease; }
.wr-start:hover .wr-start__arrow { transform: translateX(3px); }

.wr-monitor__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-server__btn, .wr-server.is-offline {
	width: 100%;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: .75rem;
	padding: .55rem .6rem;
	border: 0;
	background: var(--wr-panel-2);
	color: inherit;
	font: inherit;
	text-align: left;
	transition: background .15s ease, box-shadow .15s ease;
}
.wr-server__btn:hover { background: #26201E; box-shadow: inset 2px 0 0 var(--wr-accent); }
.wr-server__count {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, var(--wr-panel) 82%, transparent 84%),
		conic-gradient(var(--wr-success) var(--fill, 0%), #2E2724 0);
	color: var(--wr-cream);
	font-family: var(--wr-font-display);
	font-size: .95rem;
	font-weight: 600;
}
.wr-server__body { display: grid; min-width: 0; }
.wr-server__name { overflow: hidden; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .98rem; font-weight: 500; letter-spacing: .03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wr-server__meta { color: var(--wr-muted); font-size: .75rem; line-height: 1.35; }
.wr-server__meta--wipe { color: #8C827A; }
.wr-server__bar { height: 2px; margin-top: .35rem; background: #2E2724; }
.wr-server__bar span { display: block; height: 100%; background: var(--wr-accent); box-shadow: 0 0 6px var(--wr-glow); }
.wr-server__copy { color: var(--wr-muted); opacity: .5; transition: opacity .15s ease, color .15s ease; }
.wr-server__copy .icon { width: 1rem; height: 1rem; }
.wr-server__btn:hover .wr-server__copy { opacity: 1; color: var(--wr-accent); }
.wr-server.is-offline { opacity: .7; cursor: default; }
.wr-server.is-offline .wr-server__count { background: rgba(138, 58, 42, .35); color: var(--wr-danger-text); }
.wr-server.is-offline .wr-server__count .icon { width: 1.1rem; height: 1.1rem; }
.wr-server.is-offline .wr-server__meta { color: var(--wr-danger-text); }

.wr-monitor__total { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; padding-top: .8rem; border-top: 1px dashed var(--wr-line); color: var(--wr-muted); font-size: .85rem; }
.wr-monitor__total .icon { width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }
.wr-monitor__total b { margin-left: auto; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 500; }

/* Wipe schedule widget */
.wr-wipes__tz { color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .75rem; letter-spacing: .12em; }
.wr-wipes__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-wipes__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "tag name next" "tag rule next";
	align-items: center;
	gap: .15rem .75rem;
	padding: .55rem .7rem .55rem .6rem;
	background: var(--wr-panel-2);
	box-shadow: inset 2px 0 0 var(--tag);
}
.wr-wipes__tag { grid-area: tag; align-self: center; min-width: 2rem; padding: .1rem .35rem; background: var(--tag); color: #080707; font-family: var(--wr-font-display); font-size: .8rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.wr-wipes__body { display: contents; }
.wr-wipes__name { grid-area: name; line-height: 1.2; overflow: hidden; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .9rem; font-weight: 500; letter-spacing: .03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wr-wipes__rule { grid-area: rule; min-width: 0; overflow: hidden; color: var(--wr-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
/* right column: countdown over the date, mirrors name over schedule on the left */
.wr-wipes__next { grid-area: next; display: grid; justify-items: end; gap: .15rem; text-align: right; }
.wr-wipes__next b { color: var(--wr-text); font-family: var(--wr-font-display); font-size: .9rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.wr-wipes__next small { color: var(--wr-muted); font-size: .76rem; white-space: nowrap; }
.wr-wipes__row.is-soon .wr-wipes__next b { color: var(--wr-accent); text-shadow: 0 0 10px var(--wr-glow); }
.wr-wipes__global { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; padding-top: .8rem; border-top: 1px dashed var(--wr-line); color: var(--wr-muted); font-size: .85rem; }
.wr-wipes__global .icon { width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }
.wr-wipes__global b { margin-left: auto; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.wr-social__list { display: grid; gap: .4rem; }
.wr-social__list--row { display: flex; flex-wrap: wrap; margin-top: 1rem; }
.wr-social__item {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .6rem .8rem;
	background: var(--wr-panel-2);
	color: var(--wr-text);
	font-family: var(--wr-font-display);
	font-size: .92rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background .18s ease, color .18s ease;
}
.wr-social__item .icon { width: 1.25rem; height: 1.25rem; }
.wr-social__item--discord:hover { background: #3C3F8F; color: #fff; }
.wr-social__item--vk:hover { background: #1F4F8A; color: #fff; }
.wr-social__item--telegram:hover { background: #1D6A93; color: #fff; }

.popular-item__link::before { color: var(--wr-accent); font-family: var(--wr-font-display); }

/* ---------- Player profile (userinfo.tpl) ---------- */

.wr-profile { display: grid; gap: 1rem; }
.wr-profile__hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: end;
	gap: 1.5rem;
	min-height: 15rem;
	padding: 1.75rem;
	overflow: hidden;
	border: 1px solid var(--wr-line);
}
.wr-profile__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(8, 7, 7, .96) 0%, rgba(8, 7, 7, .6) 55%, rgba(8, 7, 7, .25) 100%),
		var(--wr-cover, url(../images/bg.webp)) var(--wr-cover-pos, 70% 40%) / cover no-repeat;
}
.wr-profile__hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--wr-accent), transparent 70%); box-shadow: 0 0 14px var(--wr-glow); }
.wr-profile__avatar { position: relative; width: 8rem; height: 8rem; }
.wr-profile__avatar img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; background: var(--wr-panel-2); box-shadow: 0 0 0 3px var(--wr-bg), 0 0 0 5px rgba(232, 84, 30, .55), 0 0 26px rgba(232, 84, 30, .3); }
.wr-profile__avatar.is-online img { box-shadow: 0 0 0 3px var(--wr-bg), 0 0 0 5px rgba(111, 168, 80, .7), 0 0 26px rgba(111, 168, 80, .25); }
.wr-profile__dot { position: absolute; right: -.3rem; bottom: -.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--wr-success); box-shadow: 0 0 0 3px var(--wr-bg); animation: wr-pulse 2s ease-out infinite; }
.wr-profile__cover-tools { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; gap: .4rem; }
.wr-profile__tool {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	height: 2.4rem;
	padding: 0 .9rem;
	border: 0;
	background: rgba(8, 7, 7, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	color: var(--wr-cream);
	font-family: var(--wr-font-display);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s ease, box-shadow .15s ease;
}
.wr-profile__tool .icon { width: 1rem; height: 1rem; }
.wr-profile__tool:hover { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-profile__tool--ghost { width: 2.4rem; justify-content: center; padding: 0; }
.wr-profile__tool--ghost:hover { color: var(--wr-danger-text); box-shadow: inset 0 0 0 1px var(--wr-danger-text); }
.wr-profile__tool[disabled] { opacity: .6; cursor: progress; }
.wr-profile:not(.has-cover) [data-cover-delete] { display: none; }
.wr-profile__ident { display: grid; gap: .35rem; min-width: 0; padding-bottom: .25rem; }
.wr-profile__group { justify-self: start; padding: .2rem .55rem; background: rgba(8, 7, 7, .75); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.wr-profile__name { overflow: hidden; color: var(--wr-cream); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.wr-profile__presence { margin: 0; }
.wr-profile__state { display: inline-flex; align-items: center; gap: .45rem; color: var(--wr-muted); font-size: .88rem; }
.wr-profile__state.is-online { color: var(--wr-success); }
.wr-profile__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding-bottom: .25rem; }
.wr-profile__actions a, .wr-profile__action {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	height: 2.75rem;
	padding: 0 1.1rem;
	background: rgba(8, 7, 7, .7);
	box-shadow: inset 0 0 0 1px var(--wr-line);
	color: var(--wr-text);
	font-family: var(--wr-font-display);
	font-size: .88rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s ease, box-shadow .15s ease;
}
.wr-profile__actions a:hover, .wr-profile__action:hover { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-profile__action .icon { width: 1rem; height: 1rem; }
.wr-profile__ban { margin: 0; }

.wr-profile__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wr-profile__stats li { display: grid; align-content: start; gap: .2rem; padding: .85rem 1rem; background: rgba(20, 18, 18, .92); border: 1px solid var(--wr-line); border-top: 2px solid rgba(232, 84, 30, .55); }
.wr-profile__stat-label { color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.wr-profile__stats b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.1rem; font-weight: 500; }
.wr-profile__stat-link { line-height: 1.3; }
.wr-profile__stat-link a { color: var(--wr-accent); font-size: .8rem; }
.wr-profile__stat-link a:hover { color: var(--wr-accent-hover); }

.wr-profile__body { display: grid; gap: 1rem; }
.wr-profile__card { padding: 1.25rem; background: rgba(20, 18, 18, .92); border: 1px solid var(--wr-line); }
.wr-profile__h { position: relative; margin: 0 0 1rem; padding-bottom: .45rem; font-size: 1.15rem; }
.wr-profile__h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); }
.wr-profile__soon { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 8px, transparent 8px 16px), var(--wr-panel-2); }
.wr-profile__soon > .icon { flex: none; width: 2.2rem; height: 2.2rem; color: var(--wr-accent); }
.wr-profile__soon div { display: grid; gap: .2rem; }
.wr-profile__soon b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; }
.wr-profile__soon span { color: var(--wr-muted); font-size: .88rem; }
.wr-profile__facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.wr-profile__facts dt { color: var(--wr-muted); }
.wr-profile__facts dd { margin: 0; color: var(--wr-cream); }

/* Owner-only settings */
.wr-settings { border: 1px solid var(--wr-line); background: rgba(20, 18, 18, .92); }
.wr-settings__toggle { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; list-style: none; cursor: pointer; }
.wr-settings__toggle::-webkit-details-marker { display: none; }
.wr-settings__toggle .icon { width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }
.wr-settings__chevron { margin-left: auto; color: var(--wr-muted) !important; transition: transform .2s ease; }
.wr-settings[open] .wr-settings__chevron { transform: rotate(180deg); }
.wr-settings__toggle:hover { color: var(--wr-accent); }
.wr-settings__body { display: grid; gap: 1rem; padding: 0 1.25rem 1.25rem; }
.wr-settings__group { margin: 0; padding: 1rem 1.1rem 1.1rem; border: 0; background: var(--wr-panel-2); border-left: 2px solid rgba(232, 84, 30, .55); }
.wr-settings__group legend { float: left; width: 100%; margin-bottom: .5rem; padding: 0; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wr-settings__group legend + * { clear: both; }
.wr-settings__group .form-input { background: var(--wr-panel); }
textarea.form-input { font-family: inherit; font-size: .95rem; line-height: 1.55; }
.wr-settings__actions { margin-top: 0; }

/* ---------- Wide blocks, footer, misc ---------- */

.comment-card { border: 1px solid var(--wr-line); border-radius: 2px; background: rgba(20, 18, 18, .92); box-shadow: none; }

.site-footer { position: relative; margin-top: 2.5rem; background: rgba(8, 7, 7, .92); border-top: 1px solid var(--wr-line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--wr-accent), transparent); }

/* Compact footer: one band (logo · links · socials) + a thin copyright line */
.wr-footer__main { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; padding-block: .75rem; }
.wr-footer__brand { gap: .55rem; }
.wr-footer__brand .wr-brand__mark { width: 32px; height: 32px; }
.wr-footer__brand .wr-brand__text { height: 22px; }
.wr-footer__nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; font-family: var(--wr-font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.wr-footer__nav a { color: var(--wr-muted); transition: color .15s ease; }
.wr-footer__nav a:hover { color: var(--wr-accent); }
.wr-footer__social { display: flex; gap: .4rem; margin-left: auto; }
.wr-footer__social .wr-social__item { justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; }
.wr-footer__social .wr-social__item span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wr-footer__social .wr-social__item .icon { width: 1.1rem; height: 1.1rem; }
.wr-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .7rem; border-top: 1px solid var(--wr-line); color: #8C827A; font-size: .78rem; }
.wr-footer__bottom a { color: var(--wr-muted); }
.wr-footer__bottom a:hover { color: var(--wr-accent); }
.wr-footer__disclaimer { flex: 1 1 28rem; max-width: 46rem; margin: 0; line-height: 1.5; }
.wr-footer__legal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem 1rem; }

.to-top { border-radius: 0; background: var(--wr-panel); color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-line); clip-path: var(--wr-cut); }
.to-top:hover { background: var(--wr-accent); color: #080707; }

/* Avatars are sharp squares site-wide */
.avatar, img.avatar { border-radius: 0 !important; }

/* ---------- Logged-in user menu (login.tpl) ---------- */

.wr-usermenu { position: relative; }
.wr-usermenu__toggle {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	height: 2.75rem;
	padding: 0 .7rem 0 .4rem;
	background: var(--wr-panel-2);
	box-shadow: inset 0 0 0 1px var(--wr-line);
	color: var(--wr-cream);
	font-family: var(--wr-font-display);
	font-size: .88rem;
	font-weight: 600;
	letter-spacing: .04em;
	list-style: none;
	cursor: pointer;
	transition: box-shadow .15s ease;
}
.wr-usermenu__toggle::-webkit-details-marker { display: none; }
.wr-usermenu__toggle:hover, .wr-usermenu[open] .wr-usermenu__toggle { box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-usermenu__avatar { width: 2rem; height: 2rem; border-radius: 0; object-fit: cover; }
.wr-usermenu__name { max-width: 9rem; }
.wr-usermenu .user-menu__badge { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: .3rem; background: var(--wr-accent); color: #080707; font-size: .75rem; font-weight: 700; }
.wr-usermenu .user-menu__badge.is-zero { display: none; }
.wr-usermenu__chevron { width: .9rem; height: .9rem; color: var(--wr-muted); transition: transform .2s ease; }
.wr-usermenu[open] .wr-usermenu__chevron { transform: rotate(180deg); }

.wr-usermenu__panel { width: 19rem; padding: .6rem; border-radius: 0; background: var(--wr-panel); border-top: 2px solid var(--wr-accent); box-shadow: var(--shadow-menu); }
.wr-usermenu__card {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	gap: .7rem;
	aspect-ratio: 16 / 5; /* covers are saved 1600x500: the whole cover is visible, no crop */
	padding: .6rem .7rem;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--wr-line);
	transition: box-shadow .15s ease;
}
/* Same cover as the profile hero: the player's own cover if uploaded (--wr-menu-cover), else the site art */
.wr-usermenu__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 7, 7, .9) 0%, rgba(8, 7, 7, .35) 65%, rgba(8, 7, 7, .1) 100%), var(--wr-menu-cover, url(../images/bg.webp)) center / cover no-repeat; }
a.wr-usermenu__card:hover { box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-usermenu__card-avatar { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0; object-fit: cover; box-shadow: 0 0 0 2px rgba(232, 84, 30, .5); }
.wr-usermenu__card-body { display: grid; gap: .1rem; min-width: 0; }
.wr-usermenu__card-name { overflow: hidden; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-weight: 600; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wr-usermenu__card-group { color: var(--wr-muted); font-size: .78rem; }
.wr-usermenu__card-cta { display: inline-flex; align-items: center; gap: .25rem; margin-top: .15rem; color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.wr-usermenu__card-cta .icon { width: .85rem; height: .85rem; transition: transform .2s ease; }
.wr-usermenu__card:hover .wr-usermenu__card-cta .icon { transform: translateX(3px); }

.wr-usermenu__wallet { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; padding: .65rem .7rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); font-size: .88rem; transition: box-shadow .15s ease; }
.wr-usermenu__wallet:hover { box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-usermenu__wallet > .icon { width: 1.05rem; height: 1.05rem; color: var(--wr-accent); }
.wr-usermenu__wallet b { margin-left: auto; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wr-usermenu__wallet em { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--wr-accent); color: #080707; }
.wr-usermenu__wallet em .icon { width: .85rem; height: .85rem; }
.wr-usermenu__list { display: grid; gap: .1rem; margin-top: .5rem; }
.wr-usermenu__list a, .wr-usermenu__logout {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .6rem .7rem;
	color: var(--wr-text);
	font-size: .92rem;
	transition: background .15s ease, color .15s ease;
}
.wr-usermenu__list a:hover { background: var(--wr-panel-2); color: var(--wr-cream); }
.wr-usermenu__list .icon, .wr-usermenu__logout .icon { width: 1.05rem; height: 1.05rem; color: var(--wr-muted); }
.wr-usermenu__list a:hover .icon { color: var(--wr-accent); }
.wr-usermenu__count { margin-left: auto; color: var(--wr-muted); font-size: .8rem; }
.wr-usermenu__count b { color: var(--wr-accent); }
.wr-usermenu__admin { color: #E2B867 !important; }
.wr-usermenu__logout { margin-top: .4rem; border-top: 1px solid var(--wr-line); padding-top: .75rem; color: var(--wr-muted); }
.wr-usermenu__logout:hover { color: var(--wr-danger-text); }
.wr-usermenu__logout:hover .icon { color: var(--wr-danger-text); }

/* ---------- Auth: header "Войти" link ---------- */

/* "Войти" and "Создать аккаунт" share one size and type so they read as a pair */
.wr-login-link, .wr-signup-link {
	height: 2.75rem;
	min-height: 2.75rem;
	padding: 0 1.1rem;
	font-family: var(--wr-font-display);
	font-size: .88rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.wr-login-link .icon { width: 1.05rem; height: 1.05rem; }
.wr-signup-link__short { display: none; }

/* ---------- Registration form (registration.tpl) ---------- */
.wr-reg { display: grid; gap: 1.4rem; }
.wr-reg__head { display: grid; gap: .45rem; }
.wr-reg__head .auth-form__title { margin: 0; }
.wr-reg__head .auth-form__lead { margin: 0; }
.wr-reg__fields { display: grid; gap: 1.05rem; }
.wr-reg__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.wr-field { display: grid; gap: .4rem; min-width: 0; }
.wr-field .form-label { margin: 0; }
.wr-input { position: relative; display: flex; align-items: center; }
.wr-input .form-input { width: 100%; height: 3rem; padding-left: 2.75rem; padding-right: 2.75rem; }
.wr-input__icon { position: absolute; left: .95rem; width: 1.1rem; height: 1.1rem; color: var(--wr-muted); pointer-events: none; transition: color .15s ease; }
.wr-input:focus-within .wr-input__icon { color: var(--wr-accent); }
.wr-input__eye { position: absolute; right: .35rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; background: none; color: var(--wr-muted); cursor: pointer; transition: color .15s ease; }
.wr-input__eye:hover, .wr-input__eye[aria-pressed="true"] { color: var(--wr-accent); }
.wr-input__eye .icon { width: 1.1rem; height: 1.1rem; }
.wr-input__state { position: absolute; right: .95rem; width: .6rem; height: .6rem; border-radius: 50%; }
.wr-input__state.is-ok { background: var(--wr-success); box-shadow: 0 0 8px rgba(111, 168, 80, .6); }
.wr-input__state.is-error { background: var(--wr-danger-text); }
.wr-input__state.is-busy { border: 2px solid var(--wr-muted); border-top-color: transparent; background: none; animation: wr-spin .7s linear infinite; }
@keyframes wr-spin { to { transform: rotate(360deg); } }
.wr-help { margin: 0; color: var(--wr-muted); font-size: .8rem; line-height: 1.45; }
.wr-help.is-ok { color: var(--wr-success); }
.wr-help.is-error { color: var(--wr-danger-text); }
.wr-field:has(.wr-help.is-error) .form-input { border-color: var(--wr-danger-text); }

.wr-captcha { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.wr-captcha__img { display: block; line-height: 0; }
.wr-captcha__img img { width: 8.5rem; height: 3rem; object-fit: cover; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-captcha__reload { display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); cursor: pointer; transition: color .15s ease, box-shadow .15s ease; }
.wr-captcha__reload:hover { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wr-captcha__reload .icon { width: 1.15rem; height: 1.15rem; }
.wr-captcha .form-input { height: 3rem; }

.wr-reg__submit { display: grid; gap: .75rem; padding-top: .3rem; }
.wr-reg__btn { width: 100%; min-height: 3.1rem; font-size: 1rem; }
.wr-reg__consent { margin: 0; color: var(--wr-muted); font-size: .78rem; line-height: 1.55; }
.wr-reg__consent a { color: var(--wr-text); text-decoration: underline; text-decoration-color: rgba(232, 84, 30, .5); text-underline-offset: 2px; }
.wr-reg__consent a:hover { color: var(--wr-accent); }
.wr-reg__alt { margin: 0; padding-top: 1rem; border-top: 1px solid var(--wr-line); color: var(--wr-muted); font-size: .9rem; text-align: center; }
.wr-reg__alt a { color: var(--wr-accent); font-weight: 600; }
.wr-reg__alt a:hover { text-decoration: underline; }

/* ---------- Feedback form (feedback.tpl) in the registration style ---------- */
.wr-feedback { padding: 1.75rem 1.5rem; }
.wr-field[hidden] { display: none; }
.wr-input--select select { width: 100%; height: 3rem; padding: 0 2.5rem 0 2.75rem; border: 1px solid var(--wr-line); border-radius: 2px; background: var(--wr-panel-2); color: var(--wr-text); font: inherit; cursor: pointer; }
.wr-input--select select:focus { outline: none; border-color: var(--wr-accent); box-shadow: 0 0 0 1px var(--wr-accent), 0 0 14px rgba(232, 84, 30, .2); }
.wr-feedback__message { min-height: 10rem; resize: vertical; }
.wr-file { position: relative; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px dashed var(--wr-line); background: var(--wr-panel-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wr-file:hover, .wr-file:focus-within { border-color: var(--wr-accent); background: rgba(232, 84, 30, .06); }
.wr-file > .icon { flex: none; width: 1.4rem; height: 1.4rem; color: var(--wr-accent); }
.wr-file__text { display: grid; gap: .1rem; min-width: 0; }
.wr-file__text b { overflow: hidden; color: var(--wr-cream); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wr-file__text small { color: var(--wr-muted); font-size: .78rem; }
.wr-file__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- Auth: register / lost password (gate) ---------- */

.page--gate { background: transparent; }
.wr-gate__links { justify-self: start; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.1rem; color: var(--wr-muted); font-size: .78rem; }
.wr-gate__links a { color: var(--wr-muted); transition: color .15s ease; }
.wr-gate__links a:hover { color: var(--wr-accent); }
.wr-gate .form-actions__hint { max-width: 30rem; line-height: 1.5; }
.wr-gate .form-actions__hint a { color: var(--wr-accent); font-weight: 500; }
.wr-gate .form-actions__hint a:hover { text-decoration: underline; }
.wr-gate { width: min(64rem, calc(100% - 2rem)); }
.wr-gate__frame { display: grid; grid-template-columns: 21rem minmax(0, 1fr); border: 1px solid var(--wr-line); background: var(--wr-panel); }
.wr-gate .gate__card { border: 0; background: none; padding: 2rem 2.25rem; }
.wr-gate__art {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem;
	overflow: hidden;
	border-right: 1px solid var(--wr-line);
}
.wr-gate__art::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(8, 7, 7, .55) 0%, rgba(8, 7, 7, .92) 70%),
		url(../images/bg.webp) 72% 40% / cover no-repeat;
}
.wr-gate__art::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--wr-accent); box-shadow: 0 0 14px var(--wr-glow); }
.wr-gate__art .wr-brand--gate { flex-direction: row; align-items: center; justify-self: start; gap: .75rem; }
.wr-gate__art .wr-brand--gate .wr-brand__mark { width: 56px; height: 56px; }
.wr-gate__art .wr-brand--gate .wr-brand__text { height: 30px; }
.wr-gate__pitch { margin-top: auto; }
.wr-gate__title { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.12; text-transform: uppercase; }
.wr-gate__title span { color: var(--wr-accent); text-shadow: 0 0 22px var(--wr-glow); }
.wr-gate__perks { display: grid; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--wr-text); font-size: .9rem; }
.wr-gate__perks li { display: flex; align-items: center; gap: .6rem; }
.wr-gate__perks .icon { width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }
.wr-gate__art .wr-online-pill { align-self: flex-start; }

.auth-form__title { font-size: 1.9rem; }
.wr-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wr-label-row__link { color: var(--wr-muted); font-size: .82rem; transition: color .15s ease; }
.wr-label-row__link:hover { color: var(--wr-accent); }
.wr-auth-done .auth-form__title { color: var(--wr-success); }
.form-label { color: var(--wr-muted); }
.form-req { color: var(--wr-accent); }
.form-input, .c-captcha > input, .dle-captcha > input { border-radius: 2px; }
.form-input:focus, .c-captcha > input:focus, .dle-captcha > input:focus { border-color: var(--wr-accent); box-shadow: 0 0 0 1px var(--wr-accent), 0 0 14px rgba(232, 84, 30, .2); }

/* DLE's captcha is a light image: invert it into the dark palette */
.c-captcha, .dle-captcha { --captcha-height: 64px; }
.c-captcha img, .dle-captcha img { border-radius: 2px; filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(1.15); box-shadow: inset 0 0 0 1px var(--wr-line); }
.c-captcha > input, .dle-captcha > input { flex: 1 1 10rem; width: auto; height: var(--control-h); min-height: var(--control-h); }

/* Rules step of registration: keep the accept/decline buttons in view */
.page--gate .gate__card .staticpage { border: 0; background: none; padding: 0; }
.page--gate .staticpage .static-tools { display: none; }
.page--gate .staticpage .story-text { max-height: 46vh; overflow-y: auto; padding-right: .75rem; scrollbar-color: var(--wr-line) transparent; }
#registration:has(#dle_rules_accept) { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--wr-line); }
#registration:has(#dle_rules_accept) .bbcodes {
	min-height: 2.5rem;
	padding: 0 1.25rem;
	border: 0;
	background: var(--wr-accent);
	color: #080707;
	font-family: var(--wr-font-display);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	clip-path: var(--wr-cut);
	transition: background .18s ease, box-shadow .18s ease;
}
#registration:has(#dle_rules_accept) .bbcodes:hover { background: var(--wr-accent-hover); box-shadow: 0 0 22px var(--wr-glow); }
#registration:has(#dle_rules_accept) .bbcodes[type="button"] { background: transparent; color: var(--wr-muted); clip-path: none; box-shadow: inset 0 0 0 1px var(--wr-line); }
#registration:has(#dle_rules_accept) .bbcodes[type="button"]:hover { color: var(--wr-cream); box-shadow: inset 0 0 0 1px var(--wr-muted); }

.wr-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .8rem 1.1rem;
	background: var(--wr-panel);
	border: 1px solid var(--wr-line);
	border-left: 2px solid var(--wr-success);
	box-shadow: var(--shadow);
	color: var(--wr-cream);
	font-size: .9rem;
	transform: translateX(-50%);
}
.wr-toast[hidden] { display: none; }
.wr-toast code { color: var(--wr-accent); font-family: ui-monospace, Consolas, monospace; }

.dle-ad { border: 1px solid var(--wr-line); border-radius: 2px; background: var(--wr-panel); }
[data-theme="dark"] .dle-ad::before { background: rgba(232, 84, 30, .16); box-shadow: -6.25em 11.875em 0 rgba(232, 84, 30, .08); }
.dle-ad__label { border-radius: 0; background: var(--wr-panel-2); }
.dle-ad__title { font-family: var(--wr-font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--wr-cream); }

/* ---------- Server description page (server.tpl + static page "server-*") ---------- */
.wr-server-page__tools { margin: -.75rem 0 1rem; }
.wr-srv {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 1rem;
	margin-bottom: 1.75rem;
	padding: 1.5rem;
	overflow: hidden;
	border: 1px solid var(--wr-line);
}
.wr-srv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 18, .97) 0%, rgba(20, 18, 18, .86) 55%, rgba(20, 18, 18, .55) 100%), url(../images/bg.webp) 70% 40% / cover no-repeat; }
.wr-srv__head { display: flex; align-items: center; gap: .75rem; }
.wr-srv__name { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.wr-srv__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wr-srv__stat { display: grid; align-content: start; gap: .3rem; padding: .75rem .9rem; background: rgba(8, 7, 7, .55); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-srv__label { display: inline-flex; align-items: center; gap: .4rem; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.wr-srv__label .icon { width: .95rem; height: .95rem; color: var(--wr-accent); }
.wr-srv__stat b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wr-srv__stat small { color: var(--wr-muted); font-size: .78rem; line-height: 1.35; }
.wr-srv__stat .wr-card__bar { display: block; margin-top: .2rem; }
.wr-srv__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.wr-srv__actions .is-disabled { color: var(--wr-muted); box-shadow: inset 0 0 0 1px var(--wr-line); cursor: default; }

.wr-srvdoc { display: grid; gap: 1rem; }
.wr-srvdoc h2 { margin: .75rem 0 0; }
.wr-srvdoc__lead { margin: 0; color: var(--wr-text); font-size: 1.05rem; line-height: 1.65; }
.text .wr-srvdoc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.text .wr-srvdoc__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon title" "icon text";
	grid-template-rows: auto 1fr;
	align-items: start;
	column-gap: .85rem;
	row-gap: .2rem;
	margin: 0;
	padding: .9rem 1rem;
	background: var(--wr-panel-2);
	border-left: 2px solid transparent;
	transition: border-color .15s ease, background .15s ease;
}
.text .wr-srvdoc__item::before, .text .wr-srvdoc__item::marker { content: none; }
.text .wr-srvdoc__item:hover { border-left-color: var(--wr-accent); background: #231D1B; }
.wr-srvdoc__icon { grid-area: icon; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: rgba(232, 84, 30, .14); color: var(--wr-accent); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); }
.wr-srvdoc__icon .icon { width: 1.35rem; height: 1.35rem; }
.wr-srvdoc__title { grid-area: title; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wr-srvdoc__text { grid-area: text; color: #B5ACA2; font-size: .88rem; line-height: 1.5; }
.wr-srvdoc a { color: var(--wr-accent); }
/* Wipe block on the server page: the shop kit blocks (clock + hours, item slots) */
.wr-wipeblock { display: grid; gap: .75rem; margin-top: 1.75rem; }
.wr-wipeblock__title { margin: 0; font-size: 1.39rem; }
.wr-wipeblock__lead { margin: 0 0 .25rem; color: var(--wr-text); font-size: .95rem; line-height: 1.6; }
.wr-wipeblock .wrs-kit summary > .icon { color: var(--wr-accent); }
.wr-srvdoc a:hover { text-decoration: underline; }

.wr-card__name a { color: inherit; transition: color .15s ease; }
.wr-card__name a:hover { color: var(--wr-accent); }
.wr-card__more { display: inline-flex; align-items: center; gap: .25rem; align-self: flex-start; color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.wr-card__more .icon { width: .85rem; height: .85rem; transition: transform .2s ease; }
.wr-card__more:hover .icon { transform: translateX(3px); }

/* ---------- Personal messages (pm.tpl; the dialog list markup comes from DLE core) ---------- */
.wr-pm { display: grid; gap: 1.1rem; }
.wr-pm__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.wr-pm__title h1 { margin: 0; }
.wr-pm__title p { margin: .35rem 0 0; color: var(--wr-muted); }
.wr-pm__nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.wr-pm__nav a { display: inline-flex; }
.wr-pm__nav .wr-button { min-height: 2.5rem; }
.wr-pm__quota { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem .8rem; background: var(--wr-panel-2); color: var(--wr-muted); font-size: .85rem; }
.wr-pm__quota-text { display: inline-flex; align-items: center; gap: .45rem; }
.wr-pm__quota-text .icon { width: 1rem; height: 1rem; color: var(--wr-accent); }
.wr-pm__quota-text b { color: var(--wr-cream); }
.wr-pm__quota-bar { flex: 1 1 8rem; max-width: 16rem; margin-left: auto; }
.wr-pm .pm_progress_bar { height: 4px; overflow: hidden; background: #2E2724; }
.wr-pm .pm_progress_bar span { display: block; height: 100%; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); font-size: 0; }
.wr-pm__subtitle { margin: 0; font-size: 1.15rem; }

/* Dialog list: DLE outputs a table, shown here as a list of rows */
.wr-pm__list table.pm, .wr-pm__list table.pm tbody, .wr-pm__list table.pm thead { display: block; width: 100% !important; min-width: 0; }
.wr-pm__list table.pm thead tr { display: flex; align-items: center; justify-content: space-between; padding: 0 .9rem .55rem; border-bottom: 1px solid var(--wr-line); }
.wr-pm__list table.pm th { display: block; padding: 0; border: 0; background: none; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.wr-pm__list table.pm th.pm_icon, .wr-pm__list table.pm th.pm_last_user { display: none; }
.wr-pm__list table.pm th.pm_subj { font-size: 0; }
.wr-pm__list table.pm th.pm_subj::before { content: "Диалоги"; font-size: .78rem; }
.wr-pm__list table.pm tbody tr {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto 1.5rem;
	grid-template-areas: "icon subj who check";
	align-items: center;
	gap: .2rem .9rem;
	padding: .85rem .9rem;
	border-bottom: 1px solid var(--wr-line);
	border-left: 2px solid transparent;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.wr-pm__list table.pm tbody tr:hover { background: var(--wr-panel-2); border-left-color: rgba(232, 84, 30, .5); }
.wr-pm__list table.pm td { display: block; width: auto !important; padding: 0; border: 0; background: none; }
.wr-pm__list td.pm_icon { grid-area: icon; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--wr-panel-2); color: var(--wr-muted); }
.wr-pm__list td.pm_icon svg { width: 1.1rem; height: 1.1rem; }
.wr-pm__list td.pm-unread-image { background: rgba(232, 84, 30, .14); color: var(--wr-accent); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); }
.wr-pm__list td.pm-reply-image { color: var(--wr-success); }
.wr-pm__list tr:has(.pm-unread-image) { border-left-color: var(--wr-accent); background: rgba(232, 84, 30, .05); }
.wr-pm__list td.pm_subj { grid-area: subj; display: grid; gap: .15rem; min-width: 0; }
.wr-pm__list .pm_subj a { color: var(--wr-cream); font-weight: 600; }
.wr-pm__list .pm_subj a b { font-weight: 700; }
.wr-pm__list .pm_last_message { overflow: hidden; color: #B5ACA2; font-size: .88rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.wr-pm__list .pm_with_user { color: var(--wr-muted); font-size: .78rem; }
.wr-pm__list .pm_with_user a, .wr-pm__list .pm_last_user a { color: var(--wr-text); }
.wr-pm__list .pm_with_user a:hover, .wr-pm__list .pm_last_user a:hover { color: var(--wr-accent); }
.wr-pm__list td.pm_last_user { grid-area: who; text-align: right; font-size: .85rem; white-space: nowrap; }
.wr-pm__list .pm_last_date { color: var(--wr-muted); font-size: .78rem; }
.wr-pm__list td.pm_checkbox { grid-area: check; justify-self: end; }
.wr-pm__list .form-check-input { width: 1.05rem; height: 1.05rem; accent-color: var(--wr-accent); cursor: pointer; }
.wr-pm__list table.pm_navigation { display: block; width: 100% !important; margin-top: .9rem; }
.wr-pm__list table.pm_navigation tbody, .wr-pm__list table.pm_navigation tr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.wr-pm__list table.pm_navigation td { display: flex; align-items: center; gap: .5rem; padding: 0; }
.wr-pm__list table.pm_navigation td:last-child { margin-left: auto; }
.wr-pm__list #pmlist_doaction { min-width: 13rem; height: 2.5rem; padding: 0 .75rem; border: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-text); font: inherit; font-size: .9rem; }
.wr-pm__list table.pm_navigation button { height: 2.5rem; padding: 0 1rem; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--wr-accent); color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .15s ease; }
.wr-pm__list table.pm_navigation button:hover { background: rgba(232, 84, 30, .12); }
.wr-pm__list .pm-no-messages { display: block; padding: 2.5rem 1rem; border: 1px dashed var(--wr-line); color: var(--wr-muted); text-align: center; }

/* Dialog: chat bubbles, own messages on the right */
.wr-pm-dialog { display: grid; gap: 1.25rem; }
.wr-pm-dialog__head { display: grid; gap: .3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--wr-line); }
.wr-pm-dialog__back { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; color: var(--wr-muted); font-size: .85rem; transition: color .15s ease; }
.wr-pm-dialog__back:hover { color: var(--wr-accent); }
.wr-pm-dialog__back .icon { width: .95rem; height: .95rem; }
.wr-pm-dialog__title { margin: .2rem 0 0; font-size: 1.5rem; }
.wr-pm-dialog__with { margin: 0; color: var(--wr-muted); }
.wr-pm-dialog__with a { color: var(--wr-text); }
.wr-pm-dialog__with a:hover { color: var(--wr-accent); }
.wr-chat { display: grid; gap: 1rem; }
.wr-msg { display: flex; align-items: flex-start; gap: .75rem; max-width: 85%; }
.wr-msg--own { flex-direction: row-reverse; margin-left: auto; }
.wr-msg__avatar { position: relative; flex: none; }
.wr-msg__avatar .avatar { width: 2.75rem; height: 2.75rem; border-radius: 0; object-fit: cover; }
.wr-msg__online { position: absolute; right: -.2rem; bottom: -.2rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--wr-success); box-shadow: 0 0 0 2px var(--wr-panel); }
.wr-msg__body { display: grid; gap: .35rem; min-width: 0; }
.wr-msg--own .wr-msg__body { justify-items: end; }
.wr-msg__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; font-size: .8rem; }
.wr-msg--own .wr-msg__meta { flex-direction: row-reverse; }
.wr-msg__who a { color: var(--wr-cream); font-weight: 600; font-size: .9rem; }
.wr-msg__who a:hover { color: var(--wr-accent); }
.wr-msg__group { color: var(--wr-muted); }
.wr-msg__when { color: var(--wr-muted); }
.wr-msg__bubble { padding: .75rem 1rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-text); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.wr-msg--own .wr-msg__bubble { background: rgba(232, 84, 30, .1); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .3); }
.wr-msg__bubble p { margin: 0 0 .5rem; }
.wr-msg__bubble p:last-child { margin-bottom: 0; }
.wr-msg__signature { color: var(--wr-muted); font-size: .8rem; }
.wr-msg__actions { display: flex; flex-wrap: wrap; gap: .15rem; }
.wr-msg__actions a { display: inline-flex; }
.wr-msg__btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; padding: 0 .5rem; color: var(--wr-muted); font-size: .8rem; transition: color .15s ease, background .15s ease; }
.wr-msg__btn .icon { width: .95rem; height: .95rem; }
.wr-msg__btn:hover { background: var(--wr-panel-2); color: var(--wr-cream); }
.wr-msg__btn--danger:hover { color: var(--wr-danger-text); }
.wr-pm-reply { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--wr-line); }
.wr-pm-reply .form-actions { margin-top: .4rem; }

/* TinyMCE frame in the theme colours (the editing area itself is styled by editor.css) */
.wr-pm .tox-tinymce, .wr-pm-dialog .tox-tinymce { border: 1px solid var(--wr-line); border-radius: 0; }
.wr-pm .tox .tox-toolbar, .wr-pm .tox .tox-toolbar__primary, .wr-pm .tox .tox-editor-header,
.wr-pm-dialog .tox .tox-toolbar, .wr-pm-dialog .tox .tox-toolbar__primary, .wr-pm-dialog .tox .tox-editor-header { background: var(--wr-panel-2); }

/* ---------- Forum (engine/modules/worldrust/forum, static page "forum" -> forum.tpl) ---------- */
.wrf { display: grid; gap: 1rem; min-width: 0; }
.wrf > * { min-width: 0; }
.wrf-h { margin: 0 0 .5rem; font-size: 1.15rem; letter-spacing: .03em; }
.wrf .form-label { display: block; margin-bottom: .4rem; }

.wrf-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.wrf-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.wrf-badge .icon { width: .8rem; height: .8rem; }
.wrf-badge--pin { background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); color: var(--wr-accent); }
.wrf-badge--closed { color: var(--wr-danger-text); }
.wrf-chip { padding: .05rem .45rem; background: var(--wr-panel-2); color: var(--wr-text); font-size: .75rem; }
.wrf-chip:hover { color: var(--wr-accent); }

/* Head of section / topic / form pages */
.wrf-head { display: grid; gap: .6rem; }
.wrf-back { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; min-height: 2rem; color: var(--wr-muted); font-size: .85rem; transition: color .15s ease; }
.wrf-back:hover { color: var(--wr-accent); }
.wrf-back .icon { width: .95rem; height: .95rem; }
.wrf-head__row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.wrf-head__text { min-width: 0; }
.wrf-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; overflow-wrap: anywhere; }
.wrf-head p { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .45rem 0 0; color: var(--wr-muted); }
.wrf-head__meta { display: inline-flex; align-items: center; gap: .35rem; }
.wrf-head__meta .icon { width: 1rem; height: 1rem; color: var(--wr-accent); }
.wrf-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Section page cover */
.wrf-sec-hero__row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(14rem, 18rem); align-items: center; gap: 1.25rem; margin-top: .3rem; }
.wrf-sec-hero__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: rgba(232, 84, 30, .14); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .4), 0 0 24px rgba(232, 84, 30, .18); color: var(--wr-accent); clip-path: var(--wr-cut); }
.wrf-sec-hero__icon .icon { width: 2rem; height: 2rem; }
.wrf-sec-hero__text { display: grid; gap: .4rem; min-width: 0; }
.wrf-sec-hero__text h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; }
.wrf-sec-hero__side { display: grid; gap: .5rem; justify-items: stretch; }
.wrf-sec-hero__side .wr-button { width: 100%; }
.wrf-sec-hero__hint { color: var(--wr-muted); font-size: .8rem; line-height: 1.45; }
.wrf-sec-hero__hint a { color: var(--wr-accent); }
.wrf-sec-hero__hint a:hover { text-decoration: underline; }
.wrf-sec-note { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem .9rem; background: rgba(8, 7, 7, .62); box-shadow: inset 0 0 0 1px var(--wr-line); border-top: 2px solid var(--wr-accent); font-size: .82rem; line-height: 1.45; }
.wrf-sec-note > .icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: var(--wr-accent); }
.wrf-sec-note > span { display: grid; gap: .2rem; color: var(--wr-muted); }
.wrf-sec-note b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .92rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Topic page cover */
.wrf-topic-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); align-items: center; gap: 1.5rem; }
.wrf-topic-hero__row.is-solo { grid-template-columns: minmax(0, 1fr); }
.wrf-topic-hero__main { display: grid; gap: .6rem; min-width: 0; }
.wrf-topic-hero__top { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.wrf-topic-hero__section { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem .2rem .45rem; background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; transition: background .15s ease; }
.wrf-topic-hero__section:hover { background: rgba(232, 84, 30, .2); }
.wrf-topic-hero__section .icon { width: .95rem; height: .95rem; }
.wrf-topic-hero h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.12; overflow-wrap: anywhere; }
.wrf-topic-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: .2rem; }
.wrf-topic-hero__author { display: flex; align-items: center; gap: .65rem; }
.wrf-topic-hero__author .avatar { width: 2.5rem; height: 2.5rem; border-radius: 0; object-fit: cover; box-shadow: 0 0 0 2px rgba(232, 84, 30, .45); }
.wrf-topic-hero__author > span { display: grid; gap: .05rem; }
.wrf-topic-hero__name { color: var(--wr-cream); font-weight: 600; }
a.wrf-topic-hero__name:hover { color: var(--wr-accent); }
.wrf-topic-hero__author small { color: var(--wr-muted); font-size: .78rem; }
.wrf-topic-hero__stats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.wrf-topic-hero__stats li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; background: rgba(8, 7, 7, .55); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); font-size: .8rem; }
.wrf-topic-hero__stats .icon { width: .9rem; height: .9rem; color: var(--wr-accent); }
.wrf-topic-hero__stats b { color: var(--wr-cream); font-variant-numeric: tabular-nums; }

/* New topic: hero head with tips, section picker, numbered steps */
.wrf-head--hero { position: relative; isolation: isolate; overflow: hidden; gap: .5rem; }
.wrf-head--hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 18, .97) 0%, rgba(20, 18, 18, .88) 55%, rgba(20, 18, 18, .6) 100%), url(../images/bg.webp) 70% 40% / cover no-repeat; }
.wrf-head--hero .wr-kicker { margin-top: .4rem; }
.wrf-head__lead { margin: 0; max-width: 36rem; color: var(--wr-text); }
.wrf-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.wrf-tips__item { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .8rem; background: rgba(8, 7, 7, .55); box-shadow: inset 0 0 0 1px var(--wr-line); font-size: .82rem; line-height: 1.45; }
.wrf-tips__item > span:last-child { display: grid; gap: .15rem; color: var(--wr-muted); }
.wrf-tips__item b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wrf-tips__item a { color: var(--wr-accent); }
.wrf-tips__item a:hover { text-decoration: underline; }
.wrf-tips__icon { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; background: rgba(232, 84, 30, .14); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); color: var(--wr-accent); }
.wrf-tips__icon .icon { width: 1rem; height: 1rem; }

.wrf-compose .wrf-form { gap: 1.4rem; }
.wrf-step { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wrf-step__num { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--wr-accent); color: #080707; font-size: .9rem; font-weight: 700; clip-path: var(--wr-cut); }
.wrf-pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.wrf-pick legend { padding: 0; }
.wrf-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .5rem; }
.wrf-pick__item { position: relative; display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 2.2rem .8rem .8rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); cursor: pointer; transition: box-shadow .15s ease, background .15s ease; }
.wrf-pick__item:hover { box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .5); }
.wrf-pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.wrf-pick__icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--wr-panel); color: var(--wr-muted); transition: color .15s ease, background .15s ease; }
.wrf-pick__icon .icon { width: 1.1rem; height: 1.1rem; }
.wrf-pick__text { display: grid; gap: .15rem; min-width: 0; }
.wrf-pick__text b { color: var(--wr-cream); font-weight: 600; line-height: 1.3; }
.wrf-pick__text small { display: -webkit-box; overflow: hidden; color: var(--wr-muted); font-size: .76rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wrf-pick__check { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; box-shadow: inset 0 0 0 1px var(--wr-line); color: transparent; transition: background .15s ease, color .15s ease; }
.wrf-pick__check .icon { width: .8rem; height: .8rem; }
.wrf-pick__item:has(input:checked) { background: rgba(232, 84, 30, .1); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrf-pick__item:has(input:checked) .wrf-pick__icon { background: rgba(232, 84, 30, .18); color: var(--wr-accent); }
.wrf-pick__item:has(input:checked) .wrf-pick__check { background: var(--wr-accent); box-shadow: none; color: #080707; }
.wrf-pick__item:has(input:focus-visible) { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wrf-title-input { height: 3rem; font-size: 1.05rem; }

/* Forum home: hero with stats and search */
.wrf-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
	align-items: stretch;
	gap: 1.25rem 2rem;
	overflow: hidden;
}
.wrf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 18, .97) 0%, rgba(20, 18, 18, .88) 55%, rgba(20, 18, 18, .6) 100%), url(../images/bg.webp) 70% 40% / cover no-repeat; }
.wrf-hero__text { display: grid; align-content: center; justify-items: start; gap: .5rem; min-width: 0; }
.wrf-hero__text h1 { margin: .2rem 0 0; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.wrf-hero__text h1 span { color: var(--wr-accent); text-shadow: 0 0 28px var(--wr-glow); }
.wrf-hero__lead { margin: 0; max-width: 30rem; color: var(--wr-text); font-size: 1.02rem; line-height: 1.6; }
.wrf-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.wrf-hero__hint { flex-basis: 100%; color: var(--wr-muted); font-size: .8rem; }
.wrf-hero__news { position: relative; display: grid; align-self: center; align-content: start; gap: .5rem; padding: 1rem 1.1rem 1.1rem; background: rgba(8, 7, 7, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px var(--wr-line); border-top: 2px solid var(--wr-accent); }
.wrf-hero__news-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.wrf-hero__news-label .icon { width: .95rem; height: .95rem; }
.wrf-hero__news-title { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.wrf-hero__news-title:hover { color: var(--wr-accent); }
.wrf-hero__news-text { margin: 0; color: var(--wr-muted); font-size: .86rem; line-height: 1.5; }
.wrf-hero__news-meta { display: flex; gap: .4rem; color: var(--wr-muted); font-size: .78rem; }
.wrf-hero__news-more { display: inline-flex; align-items: center; gap: .25rem; justify-self: start; min-height: 2rem; margin-top: .2rem; color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.wrf-hero__news-more .icon { width: .85rem; height: .85rem; transition: transform .2s ease; }
.wrf-hero__news-more:hover .icon { transform: translateX(3px); }

/* Sections list */
.wrf-section {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) 8.5rem 15rem;
	align-items: center;
	gap: 1rem;
	padding: .9rem .75rem;
	border-top: 1px solid var(--wr-line);
	border-left: 2px solid transparent;
	transition: background .15s ease, border-color .15s ease;
}
.wrf-section:hover { background: var(--wr-panel-2); border-left-color: var(--wr-accent); }
.wrf-section__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .3); color: var(--wr-accent); }
.wrf-section__icon .icon { width: 1.3rem; height: 1.3rem; }
.wrf-section__main { min-width: 0; }
.wrf-section__main h3 { display: flex; align-items: center; flex-wrap: nowrap; gap: .5rem; margin: 0; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; }
.wrf-section__main h3 .wrf-badge { flex: none; }
.wrf-section__main h3 a { color: var(--wr-cream); }
.wrf-section__main h3 a:hover { color: var(--wr-accent); }
/* Description always takes two lines (clamped), so every row has the same height */
.wrf-section__main p { display: -webkit-box; height: 2.9em; margin: .25rem 0 0; overflow: hidden; color: var(--wr-muted); font-size: .88rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wrf-section__stats { display: grid; gap: .1rem; color: var(--wr-muted); font-size: .82rem; }
.wrf-section__stats b, .wrf-topic__stats b { color: var(--wr-cream); font-variant-numeric: tabular-nums; }
.wrf-section__last { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .85rem; }
.wrf-section__last .avatar, .wrf-topic__last .avatar { flex: none; width: 2rem; height: 2rem; border-radius: 0; object-fit: cover; }
.wrf-section__last span { display: grid; min-width: 0; }
.wrf-section__last a { overflow: hidden; color: var(--wr-text); text-overflow: ellipsis; white-space: nowrap; }
.wrf-section__last a:hover { color: var(--wr-accent); }
.wrf-section__last small { color: var(--wr-muted); font-size: .76rem; }
.wrf-section__last.is-empty { color: var(--wr-muted); }

/* Topic rows */
.wrf-topic {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) 7.5rem 11.5rem;
	align-items: center;
	gap: .9rem;
	padding: .8rem .75rem;
	border-top: 1px solid var(--wr-line);
	border-left: 2px solid transparent;
	transition: background .15s ease, border-color .15s ease;
}
.wrf-topic:hover { background: var(--wr-panel-2); border-left-color: rgba(232, 84, 30, .5); }
.wrf-topic.is-pinned { background: rgba(232, 84, 30, .04); }
.wrf-topic__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--wr-panel-2); color: var(--wr-muted); }
.wrf-topic.is-pinned .wrf-topic__icon { color: var(--wr-accent); background: rgba(232, 84, 30, .12); }
.wrf-topic.is-closed .wrf-topic__icon { color: var(--wr-danger-text); }
.wrf-topic__icon .icon { width: 1.1rem; height: 1.1rem; }
.wrf-topic__title { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0; font-family: var(--wr-font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wrf-topic__title a { color: var(--wr-cream); overflow-wrap: anywhere; }
.wrf-topic__title a:hover { color: var(--wr-accent); }
.wrf-topic__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .45rem; margin: .25rem 0 0; color: var(--wr-muted); font-size: .8rem; }
.wrf-topic__meta a { color: var(--wr-text); }
.wrf-topic__meta a:hover { color: var(--wr-accent); }
.wrf-topic__stats { display: grid; gap: .1rem; color: var(--wr-muted); font-size: .8rem; }
.wrf-topic__last { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: .82rem; }
.wrf-topic__last span { display: grid; min-width: 0; }
.wrf-topic__last b { overflow: hidden; color: var(--wr-text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wrf-topic__last time { color: var(--wr-muted); font-size: .76rem; }
.wrf-topic__last:hover b { color: var(--wr-accent); }

.wrf-empty { display: grid; justify-items: center; gap: .6rem; padding: 2.5rem 1rem; border: 1px dashed var(--wr-line); color: var(--wr-muted); text-align: center; }
.wrf-empty .icon { width: 1.8rem; height: 1.8rem; color: var(--wr-accent); }
.wrf-empty p { margin: 0; }

.wrf-login, .wrf-notice { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; padding: .75rem .9rem; background: var(--wr-panel-2); box-shadow: inset 2px 0 0 var(--wr-accent); color: var(--wr-text); font-size: .9rem; }
.wrf-login > .icon, .wrf-notice > .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }
.wrf-login span { flex: 1 1 16rem; }
.wrf-list .wrf-login { margin-bottom: .75rem; }
.wrf-notice--error { box-shadow: inset 2px 0 0 var(--wr-danger-text); }
.wrf-notice--error > .icon { color: var(--wr-danger-text); }
.wrf-reply .wrf-notice { margin-bottom: .9rem; }

@media (min-width: 66.26em) and (max-width: 80em) {
	.wrf-section { grid-template-columns: 2.75rem minmax(0, 1fr) 6.5rem 11rem; }
}

/* Stretched links: the whole row opens the section / topic, inner links stay clickable */
.wrf-section, .wrf-topic { position: relative; }
.wrf-section__main h3 a::after, .wrf-topic__title a::after { content: ""; position: absolute; inset: 0; }
.wrf-section__last, .wrf-topic__meta a, .wrf-topic__last, .wrf-topic__title .wrf-badge { position: relative; z-index: 1; }
.wrf-section__main h3 a:focus-visible, .wrf-topic__title a:focus-visible { outline: none; }
.wrf-section:has(h3 a:focus-visible), .wrf-topic:has(.wrf-topic__title a:focus-visible) { outline: 2px solid var(--wr-accent); outline-offset: -2px; }

/* Pagination */
.wrf-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: 1rem; }
.wrf-pages__item { display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-text); font-family: var(--wr-font-display); font-size: .9rem; }
a.wrf-pages__item:hover { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrf-pages__item.is-current { background: var(--wr-accent); box-shadow: none; color: #080707; font-weight: 600; }
.wrf-pages__item .icon { width: 1rem; height: 1rem; }
.wrf-pages__gap { display: grid; place-items: center; min-width: 1.5rem; color: var(--wr-muted); }
.wrf > .wrf-pages { margin-top: 0; }

/* Moderation bar */
.wrf-mod { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding-block: .6rem; }
.wrf-mod__label { display: inline-flex; align-items: center; gap: .35rem; margin-right: .3rem; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.wrf-mod__label .icon { width: .95rem; height: .95rem; color: var(--wr-accent); }
.wrf-mod__form { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.wrf-mod__btn { display: inline-flex; align-items: center; gap: .35rem; height: 2.1rem; padding: 0 .7rem; border: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-text); font-size: .82rem; cursor: pointer; transition: color .15s ease, box-shadow .15s ease; }
.wrf-mod__btn:hover { color: var(--wr-accent); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrf-mod__btn.is-danger:hover { color: var(--wr-danger-text); box-shadow: inset 0 0 0 1px var(--wr-danger-text); }
.wrf-mod__btn .icon { width: .9rem; height: .9rem; }
.wrf-mod__select { width: auto; height: 2.1rem; min-height: 0; padding-block: 0; padding-inline: .5rem 1.8rem; font-size: .82rem; line-height: 2.1rem; }

/* Messages */
.wrf-posts { display: grid; gap: .75rem; }
.wrf-post { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); padding: 0; scroll-margin-top: 5.5rem; }
.wrf-post:target { box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrf-post.is-first { border-top: 2px solid var(--wr-accent); }
.wrf-post__author { display: grid; align-content: start; justify-items: center; gap: .55rem; padding: 1.1rem .8rem; border-right: 1px solid var(--wr-line); background: rgba(30, 26, 25, .5); text-align: center; }
.wrf-post__avatar { width: 4rem; height: 4rem; border-radius: 0; object-fit: cover; }
.wrf-post__who { display: grid; gap: .2rem; min-width: 0; }
.wrf-post__name { overflow: hidden; color: var(--wr-cream); font-weight: 600; text-overflow: ellipsis; }
a.wrf-post__name:hover { color: var(--wr-accent); }
.wrf-post__group { font-size: .78rem; color: var(--wr-muted); }
.wrf-post__count { color: var(--wr-muted); font-size: .75rem; }
.wrf-post__body { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; padding: .9rem 1.1rem; }
.wrf-post__head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--wr-line); color: var(--wr-muted); font-size: .8rem; }
.wrf-post__num { display: inline-grid; place-items: center; min-width: 2rem; min-height: 2rem; margin: -.4rem -.4rem -.4rem auto; color: var(--wr-muted); font-family: var(--wr-font-display); }
.wrf-post__num:hover { color: var(--wr-accent); }
.wrf-post__text { padding: .8rem 0; color: var(--wr-text); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.wrf-post__text a { color: var(--wr-accent); text-decoration: underline; text-underline-offset: 2px; }
.wrf-quote { margin: .4rem 0 .6rem; padding: .6rem .8rem; background: var(--wr-panel-2); border-left: 2px solid var(--wr-accent); color: #C9C0B4; font-size: .9rem; }
.wrf-quote cite { display: block; margin-bottom: .25rem; color: var(--wr-muted); font-size: .78rem; font-style: normal; font-weight: 600; }
.wrf-quote .wrf-quote { margin-top: .3rem; }
.wrf-post__edited { margin: 0 0 .5rem; color: var(--wr-muted); font-size: .75rem; font-style: italic; }
.wrf-post__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; padding-top: .6rem; border-top: 1px solid var(--wr-line); }
.wrf-like, .wrf-act { display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: 0 .55rem; border: 0; background: none; color: var(--wr-muted); font: inherit; font-size: .82rem; cursor: pointer; transition: color .15s ease, background .15s ease; }
.wrf-like .icon, .wrf-act .icon { width: .95rem; height: .95rem; }
.wrf-like:hover, .wrf-act:hover { background: var(--wr-panel-2); color: var(--wr-cream); }
.wrf-like { margin-right: auto; box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrf-like.is-active { background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .4); color: var(--wr-accent); }
.wrf-like.is-static { cursor: default; }
.wrf-like.is-static:hover { background: none; color: var(--wr-muted); }
.wrf-like[disabled] { opacity: .6; cursor: progress; }
.wrf-act.is-danger:hover { color: var(--wr-danger-text); }
.wrf-act-form { display: inline-flex; margin: 0; }

/* Forms */
.wrf-reply { display: grid; gap: .25rem; }
.wrf-form { display: grid; gap: 1rem; }
.wrf-form__grid { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
.wrf-field { display: grid; min-width: 0; }
.wrf-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: .3rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrf-toolbar__btn { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 0; background: none; color: var(--wr-text); font-family: var(--wr-font-body); font-size: .9rem; cursor: pointer; transition: background .15s ease, color .15s ease; }
.wrf-toolbar__btn:hover { background: var(--wr-panel); color: var(--wr-accent); }
.wrf-toolbar__btn .icon { width: 1rem; height: 1rem; }
.wrf-textarea { min-height: 9rem; resize: vertical; border-top: 0; }
.wrf-hint { margin: .35rem 0 0; color: var(--wr-muted); font-size: .76rem; }
.wrf-form__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 66.25em) {
	.wrf-section { grid-template-columns: 2.75rem minmax(0, 1fr) 8rem; }
	.wrf-section__last { grid-column: 2 / -1; }
	.wrf-topic { grid-template-columns: 2.5rem minmax(0, 1fr) 7rem; }
	.wrf-topic__last { grid-column: 2 / -1; }
}
@media (max-width: 47.5em) {
	.wr-feedback { padding: 1.1rem; }
	.wr-reg__pair { grid-template-columns: 1fr; }
	.wr-captcha { grid-template-columns: auto auto minmax(0, 1fr); }
	.wr-captcha .form-input { grid-column: 1 / -1; }
	.wrf-topic-hero__row { grid-template-columns: 1fr; gap: 1rem; }
	.wrf-sec-hero__row { grid-template-columns: auto minmax(0, 1fr); gap: .9rem; }
	.wrf-sec-hero__icon { width: 3.25rem; height: 3.25rem; align-self: start; }
	.wrf-sec-hero__icon .icon { width: 1.5rem; height: 1.5rem; }
	.wrf-sec-hero__side { grid-column: 1 / -1; }
	.wrf-tips { grid-template-columns: 1fr; }
	.wrf-pick__grid { grid-template-columns: 1fr; }
	.wrf-hero { grid-template-columns: 1fr; }
	.wrf-hero__actions .wr-button { flex: 1 1 auto; }
	.wrf-section { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .5rem .8rem; padding: .8rem .4rem; }
	.wrf-section__icon { width: 2.5rem; height: 2.5rem; }
	.wrf-section__stats { grid-column: 2; display: flex; gap: .9rem; }
	.wrf-topic { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .45rem .75rem; padding: .75rem .4rem; }
	.wrf-topic__icon { width: 2.25rem; height: 2.25rem; align-self: start; }
	.wrf-topic__stats { grid-column: 2; display: flex; gap: .9rem; }
	.wrf-post { grid-template-columns: 1fr; }
	.wrf-post__author { grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; padding: .7rem .9rem; border-right: 0; border-bottom: 1px solid var(--wr-line); text-align: left; }
	.wrf-post__avatar { width: 2.6rem; height: 2.6rem; border-radius: 0; }
	.wrf-post__who { grid-template-columns: auto auto; align-items: baseline; gap: 0 .5rem; }
	.wrf-post__count { grid-column: 1 / -1; }
	.wrf-post__body { padding: .8rem .9rem; }
	.wrf-form__grid { grid-template-columns: 1fr; }
	.wrf-mod__form { flex: 1 1 auto; }
	.wrf-mod__btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Ban list (engine/modules/worldrust/bans, static page "banlist") ---------- */
.wrb { display: grid; gap: 1rem; min-width: 0; }
.wrb > * { min-width: 0; }

.wrb-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
	align-items: center;
	gap: 1.25rem 2rem;
	padding: 1.75rem 1.5rem;
	overflow: hidden;
	background: var(--wr-panel);
	border: 1px solid var(--wr-line);
}
.wrb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 18, .97) 0%, rgba(20, 18, 18, .88) 55%, rgba(20, 18, 18, .6) 100%), url(../images/bg.webp) 70% 40% / cover no-repeat; }
.wrb-hero__text { display: grid; justify-items: start; gap: .5rem; min-width: 0; }
.wrb-hero h1 { margin: .2rem 0 0; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.wrb-hero h1 span { color: var(--wr-accent); text-shadow: 0 0 28px var(--wr-glow); }
.wrb-hero__lead { margin: 0; max-width: 30rem; color: var(--wr-text); font-size: 1.02rem; line-height: 1.6; }
.wrb-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }

.wrb-last { display: grid; align-content: start; gap: .65rem; padding: 1rem 1.1rem 0; background: rgba(8, 7, 7, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px var(--wr-line); border-top: 2px solid var(--wr-accent); }
.wrb-last__label { display: inline-flex; align-items: center; gap: .4rem; color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.wrb-last__label .icon { width: .95rem; height: .95rem; }
.wrb-last__who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.wrb-last__reason { margin: 0; color: var(--wr-text); font-size: .88rem; line-height: 1.5; }
.wrb-last .wrb-term { justify-self: start; }
.wrb-last__stats { display: flex; margin: .25rem -1.1rem 0; padding: 0; border-top: 1px solid var(--wr-line); list-style: none; }
.wrb-last__stats li { flex: 1 1 0; padding: .65rem .5rem; color: var(--wr-muted); font-size: .76rem; text-align: center; }
.wrb-last__stats li + li { border-left: 1px solid var(--wr-line); }
.wrb-last__stats b { display: block; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wrb-last__stats li:first-child b { color: #EE9A87; }

.wrb-panel { display: grid; gap: 1rem; padding: 1.25rem; background: var(--wr-panel); border: 1px solid var(--wr-line); }
.wrb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.wrb-search { position: relative; flex: 1 1 16rem; display: flex; align-items: center; }
.wrb-search .icon { position: absolute; left: .9rem; width: 1.05rem; height: 1.05rem; color: var(--wr-muted); pointer-events: none; }
.wrb-search .form-input { width: 100%; height: 2.75rem; padding-left: 2.6rem; }
.wrb-search:focus-within .icon { color: var(--wr-accent); }
.wrb-select { width: auto; height: 2.75rem; min-width: 12rem; }
/* Custom select (select[data-wr-select] → button + listbox); the native select stays in the form, hidden */
.wr-select { position: relative; display: inline-grid; min-width: 15rem; }
.wr-select > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wr-select__btn { display: flex; align-items: center; gap: .6rem; width: 100%; height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--wr-line); background: var(--wr-panel-2); color: var(--wr-cream); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; transition: border-color .15s ease; }
.wr-select__btn:hover { border-color: rgba(232, 84, 30, .5); }
.wr-select__btn:focus-visible, .wr-select.is-open .wr-select__btn { outline: none; border-color: var(--wr-accent); box-shadow: 0 0 0 1px var(--wr-accent); }
.wr-select__btn > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-select__btn > .icon { flex: none; width: 1rem; height: 1rem; color: var(--wr-muted); transition: transform .2s ease; }
.wr-select.is-open .wr-select__btn > .icon { transform: rotate(180deg); color: var(--wr-accent); }
.wr-select__tag { flex: none; width: 2.6rem; padding: .1rem .4rem; background: var(--tag, var(--wr-panel)); color: #080707; font-family: var(--wr-font-display); font-size: .74rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.wr-select__tag.is-all { background: var(--wr-panel); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); }
.wr-select__list { position: absolute; top: calc(100% + .35rem); left: auto; right: 0; z-index: 40; display: grid; gap: .15rem; width: max-content; min-width: 100%; max-width: calc(100vw - 2rem); max-height: 18rem; margin: 0; padding: .35rem; overflow-y: auto; list-style: none; background: var(--wr-panel); border: 1px solid var(--wr-line); box-shadow: var(--shadow-menu); }
.wr-select__list[hidden] { display: none; }
.wr-select__opt { display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding: 0 .65rem; color: var(--wr-text); font-size: .9rem; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.wr-select__opt > span:not(.wr-select__tag) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-select__opt > .icon { flex: none; width: 1rem; height: 1rem; color: var(--wr-accent); opacity: 0; }
.wr-select__opt.is-active, .wr-select__opt:hover { background: var(--wr-panel-2); color: var(--wr-cream); }
.wr-select__opt[aria-selected="true"] { color: var(--wr-cream); }
.wr-select__opt[aria-selected="true"] > .icon { opacity: 1; }
.wrb-filters .wr-button { min-height: 2.75rem; }
.wrb-search .form-input::-webkit-search-cancel-button { display: none; }
.wrb-search__clear { position: absolute; right: .35rem; display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--wr-muted); transition: color .15s ease; }
.wrb-search__clear:hover, .wrb-search__clear:focus-visible { color: var(--wr-accent); }
.wrb-search__clear .icon { width: .95rem; height: .95rem; }
.wrb-search:has(.wrb-search__clear) .form-input { padding-right: 2.6rem; }

.wrb-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--wr-line); }
.wrb-tab { position: relative; padding: .55rem .9rem; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; transition: color .15s ease; }
.wrb-tab::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 2px; background: var(--wr-accent); box-shadow: 0 0 10px var(--wr-glow); transform: scaleX(0); transition: transform .2s ease; }
.wrb-tab:hover { color: var(--wr-cream); }
.wrb-tab.is-active { color: var(--wr-cream); }
.wrb-tab.is-active::after { transform: scaleX(1); }

.wrb-table-wrap { border: 1px solid var(--wr-line); }
.wrb-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.wrb-table th { padding: .7rem 1rem; background: var(--wr-panel-2); border-bottom: 1px solid var(--wr-line); color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.wrb-table th:nth-child(1) { width: 12.5rem; }
.wrb-table th:nth-child(2) { width: auto; }
.wrb-table th:nth-child(3) { width: 5.5rem; }
.wrb-table th:nth-child(4) { width: 7.5rem; }
.wrb-table th:nth-child(5) { width: 11rem; }
.wrb-table td { height: 4rem; padding: 0 1rem; border-bottom: 1px solid var(--wr-line); color: var(--wr-text); font-size: .9rem; vertical-align: middle; }
.wrb-table tbody tr:last-child td { border-bottom: 0; }
.wrb-table tbody tr { transition: background .15s ease; }
.wrb-table tbody tr:hover { background: rgba(232, 84, 30, .05); }
.wrb-table tbody tr td:first-child { box-shadow: inset 3px 0 0 var(--wr-danger-text); }
.wrb-table tbody tr.is-expired td:first-child, .wrb-table tbody tr.is-unbanned td:first-child { box-shadow: inset 3px 0 0 var(--wr-line); }
.wrb-two { display: grid; gap: .15rem; min-width: 0; line-height: 1.3; }
.wrb-two b { overflow: hidden; color: var(--wr-cream); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wrb-two small { overflow: hidden; color: var(--wr-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.wrb-who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.wrb-avatar { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: rgba(217, 113, 90, .12); box-shadow: inset 0 0 0 1px rgba(217, 113, 90, .35); color: var(--wr-danger-text); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; }
.is-expired .wrb-avatar, .is-unbanned .wrb-avatar { background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); }
.is-expired .wrb-two b, .is-unbanned .wrb-two b { color: var(--wr-text); }
.wrb-clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrb-c-reason .wrb-clip { color: var(--wr-text); }
.wrb-tag { display: inline-block; min-width: 2.4rem; padding: .15rem .45rem; background: var(--tag); color: #080707; font-family: var(--wr-font-display); font-size: .78rem; font-weight: 700; text-align: center; text-transform: uppercase; cursor: default; }
.wrb-term { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; padding: .18rem .5rem; font-family: var(--wr-font-display); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wrb-term .icon { width: .85rem; height: .85rem; }
.wrb-term.is-forever { background: rgba(217, 113, 90, .14); box-shadow: inset 0 0 0 1px rgba(217, 113, 90, .45); color: #EE9A87; }
.wrb-term.is-temp { background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); color: #FF8A57; }
.wrb-term.is-expired { background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); }
.wrb-term.is-unbanned { background: rgba(111, 168, 80, .12); box-shadow: inset 0 0 0 1px rgba(111, 168, 80, .4); color: var(--wr-success); }

@media (min-width: 47.51em) and (max-width: 80em) {
	.wrb-table th:nth-child(4), .wrb-table td.wrb-c-date { display: none; }
	.wrb-table th:nth-child(1) { width: 11.5rem; }
	.wrb-table th:nth-child(5) { width: 10.5rem; }
}

.wrb-empty { display: grid; justify-items: center; gap: .45rem; padding: 3rem 1rem; border: 1px dashed var(--wr-line); color: var(--wr-muted); text-align: center; }
.wrb-empty .icon { width: 2.2rem; height: 2.2rem; margin-bottom: .2rem; color: var(--wr-success); }
.wrb-empty b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 47.5em) {
	.wrb-hero { grid-template-columns: 1fr; padding: 1.25rem; }
	.wrb-hero__actions .wr-button { flex: 1 1 auto; }
	.wrb-panel { padding: 1rem; }
	.wrb-select { flex: 1 1 100%; }
	.wrb-filters .wr-select { flex: 1 1 100%; }
	.wrb-table-wrap { border: 0; }
	.wrb-table, .wrb-table tbody { display: block; }
	.wrb-table thead { display: none; }
	.wrb-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "player term" "reason reason" "server date"; gap: .55rem .75rem; margin-bottom: .5rem; padding: .85rem .9rem; background: var(--wr-panel-2); box-shadow: inset 3px 0 0 var(--wr-danger-text); }
	.wrb-table tbody tr.is-expired, .wrb-table tbody tr.is-unbanned { box-shadow: inset 3px 0 0 var(--wr-line); }
	.wrb-table td { display: block; height: auto; padding: 0; border: 0; box-shadow: none !important; }
	.wrb-c-player { grid-area: player; min-width: 0; }
	.wrb-c-term { grid-area: term; }
	.wrb-c-term .wrb-two { justify-items: end; text-align: right; }
	.wrb-c-reason { grid-area: reason; }
	.wrb-c-reason .wrb-clip { white-space: normal; }
	.wrb-c-server { grid-area: server; justify-self: start; align-self: center; }
	.wrb-c-date { grid-area: date; justify-self: end; align-self: center; }
	.wrb-c-date .wrb-two { grid-auto-flow: column; gap: .4rem; align-items: baseline; }
	.wrb-c-date .wrb-two b { font-size: .8rem; font-weight: 500; color: var(--wr-muted); }
	.wrb-filters .wr-button { flex: 1 1 auto; }
}

/* ---------- Shop (engine/modules/worldrust/shop, static page "shop") ---------- */
.wrs { display: grid; gap: 1rem; min-width: 0; }
.wrs > * { min-width: 0; }
.wrs-h { display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem; font-size: 1.1rem; letter-spacing: .03em; }
.wrs-h .icon { width: 1.1rem; height: 1.1rem; color: var(--wr-accent); }

/* Shop cover = forum cover (.wrf-hero); only the balance figure is shop-specific. */
.wrs-hero .wrf-back { margin-bottom: .2rem; }
.wrs-hero h1 { overflow-wrap: break-word; hyphens: auto; }
.wrs-wallet__value { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wrs-wallet__value small { color: var(--wr-muted); font-size: .9rem; font-weight: 500; letter-spacing: .06em; }

.wrs-panel { display: grid; gap: 1rem; padding: 1.25rem; background: var(--wr-panel); border: 1px solid var(--wr-line); }
.wrs-for { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--wr-muted); font-size: .9rem; }
.wrs-for .icon { width: 1rem; height: 1rem; color: var(--wr-accent); }
.wrs-for b { color: var(--wr-cream); }

.wrs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .75rem; }
.wrs-card { position: relative; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-width: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); transition: box-shadow .2s ease, transform .2s ease; }
.wrs-card:hover { box-shadow: inset 0 0 0 1px var(--wr-accent), 0 10px 30px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.wrs-card:has(a:focus-visible) { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wrs-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), linear-gradient(180deg, #1A1615, #120F0E); color: var(--c); }
.wrs-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); opacity: .8; }
.wrs-visual .icon { width: 3rem; height: 3rem; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 60%, transparent)); }
.wrs-visual img { width: 100%; height: 100%; object-fit: cover; }
.wrs-visual .wrs-visual__item { position: absolute; inset: 0; margin: auto; width: auto; height: 80%; max-height: 8rem; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)); }
.wrs-card__visual { aspect-ratio: 16 / 7; }
.wrs-off { position: absolute; top: .6rem; right: .6rem; z-index: 1; padding: .2rem .5rem; background: var(--wr-accent); color: #080707; font-family: var(--wr-font-display); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.wrs-card__body { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .45rem; padding: .9rem 1rem 1rem; }
.wrs-card__type { color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.wrs-card__title { margin: 0; font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.wrs-card__title a { color: var(--wr-cream); }
.wrs-card__title a::after { content: ""; position: absolute; inset: 0; }
.wrs-card__title a:focus-visible { outline: none; }
.wrs-card__short { margin: 0; color: var(--wr-muted); font-size: .86rem; line-height: 1.45; }
.wrs-perks { display: grid; align-content: start; gap: .3rem; margin: 0; padding: 0; list-style: none; color: var(--wr-text); font-size: .86rem; }
.wrs-perks li { display: flex; align-items: flex-start; gap: .45rem; line-height: 1.4; }
.wrs-perks .icon { flex: none; width: .95rem; height: .95rem; margin-top: .15rem; color: var(--wr-success); }
.wrs-perks--full { gap: .5rem; font-size: .95rem; }
.wrs-kits { display: grid; gap: .4rem; }
.wrs-kit { background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrs-kit summary { display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: 0 .9rem; color: var(--wr-cream); font-weight: 600; list-style: none; cursor: pointer; }
.wrs-kit summary::-webkit-details-marker { display: none; }
.wrs-kit summary > .icon { width: 1.05rem; height: 1.05rem; color: var(--wr-accent); }
.wrs-kit summary small { margin-left: auto; color: var(--wr-muted); font-size: .78rem; font-weight: 400; white-space: nowrap; }
.wrs-kit__chevron { width: .9rem !important; height: .9rem !important; color: var(--wr-muted) !important; transition: transform .2s ease; }
.wrs-kit[open] .wrs-kit__chevron { transform: rotate(180deg); }
.wrs-kit summary:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: -2px; }
/* Kit contents as compact Rust inventory slots: icon with the quantity in the corner, name in the tooltip. */
.wrs-kit__grid { display: grid; grid-template-columns: repeat(auto-fill, 4rem); gap: .35rem; margin: 0; padding: .3rem .9rem .9rem; list-style: none; }
.wrs-slot { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: .45rem; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .06), transparent 70%), var(--wr-panel); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrs-slot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.wrs-slot > .icon { width: 1.5rem; height: 1.5rem; color: var(--wr-muted); }
.wrs-slot__qty { position: absolute; right: .25rem; bottom: .1rem; color: var(--wr-cream); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.wrs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .65rem; border-top: 1px solid var(--wr-line); }
.wrs-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; font-variant-numeric: tabular-nums; }
.wrs-price small { color: var(--wr-muted); font-size: .78rem; }
.wrs-price b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.wrs-price s { color: var(--wr-muted); font-size: .85rem; white-space: nowrap; }
.wrs-card__btn { pointer-events: none; }
/* Catalog: every card is the same size (equal rows), price and button pinned to the bottom. */
.wrs-grid--dense { grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr)); grid-auto-rows: 1fr; scroll-margin-top: 5.5rem; }
.wrs-card--compact .wrs-card__visual { aspect-ratio: 16 / 6; }
.wrs-card--compact .wrs-visual .icon { width: 2.2rem; height: 2.2rem; }
.wrs-card--compact .wrs-card__body { grid-template-rows: auto 1fr auto; gap: .35rem; padding: .75rem .85rem .85rem; }
.wrs-card--compact .wrs-card__title { font-size: 1.02rem; line-height: 1.2; }
.wrs-card--compact .wrs-card__foot { align-items: flex-end; gap: .5rem; padding-top: .55rem; }
.wrs-card--compact .wrs-price { column-gap: .25rem; }
.wrs-card--compact .wrs-price b { font-size: 1.12rem; }

/* Product page */
.wrs-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); align-items: start; gap: 1rem; }
.wrs-item__info { display: grid; gap: 1rem; padding: 1.25rem; background: var(--wr-panel); border: 1px solid var(--wr-line); }
.wrs-item__visual { aspect-ratio: 16 / 7; }
.wrs-item__visual .icon { width: 4.5rem; height: 4.5rem; }
/* Product description under the picture */
.wrs-descr { display: grid; gap: .5rem; }
.wrs-descr .wrs-h { margin: 0; }
.wrs-descr p { margin: 0; max-width: 65ch; color: var(--wr-text); font-size: .98rem; line-height: 1.65; }
.wrs-note { display: flex; align-items: flex-start; gap: .55rem; margin: 0; padding: .8rem .9rem; background: var(--wr-panel-2); color: var(--wr-muted); font-size: .84rem; line-height: 1.5; }
.wrs-note .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .1rem; color: var(--wr-accent); }
.wrs-note a { color: var(--wr-accent); }
.wrs-buy { position: sticky; top: 5.5rem; display: grid; gap: 1rem; padding: 1.25rem; background: var(--wr-panel); border: 1px solid var(--wr-line); border-top: 2px solid var(--wr-accent); }
.wrs-field { display: grid; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.wrs-field legend { padding: 0; margin-bottom: .45rem; }
.wrs-seg, .wrs-terms, .wrs-methods { display: grid; gap: .4rem; }
.wrs-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wrs-seg__item, .wrs-term, .wrs-method { position: relative; display: grid; gap: .15rem; padding: .7rem .8rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); cursor: pointer; transition: box-shadow .15s ease, background .15s ease; }
.wrs-seg__item input, .wrs-term input, .wrs-method input { position: absolute; opacity: 0; pointer-events: none; }
.wrs-seg__item:hover, .wrs-term:hover, .wrs-method:hover { box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .5); }
.wrs-seg__item:has(input:checked), .wrs-term:has(input:checked), .wrs-method:has(input:checked) { background: rgba(232, 84, 30, .1); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrs-seg__item:has(input:focus-visible), .wrs-term:has(input:focus-visible), .wrs-method:has(input:focus-visible) { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wrs-seg__item span { color: var(--wr-cream); font-weight: 600; }
/* Server choice on the product page: two even columns of tag + short name. */
.wrs-seg--servers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wrs-seg__server { display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .45rem .6rem; }
.wrs-seg__server .wrb-tag { flex: none; min-width: 3.2rem; color: #080707; cursor: inherit; }
.wrs-field__help { margin: -.15rem 0 .45rem; color: var(--wr-muted); font-size: .8rem; line-height: 1.45; }
.wrs-card__type .wrb-tag { min-width: 0; margin-left: .3rem; padding: .05rem .35rem; font-size: .66rem; vertical-align: 1px; cursor: help; }
.wrs-seg__server > span:last-child { min-width: 0; font-family: var(--wr-font-display); font-size: .92rem; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; overflow-wrap: normal; }
.wrs-term__name { display: flex; align-items: center; gap: .35rem; color: var(--wr-cream); font-weight: 600; font-size: .92rem; }
.wrs-term__name em { padding: 0 .3rem; background: var(--wr-accent); color: #080707; font-family: var(--wr-font-display); font-size: .7rem; font-style: normal; font-weight: 700; }
.wrs-term__price { color: var(--wr-muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.wrs-term:has(input:checked) .wrs-term__price { color: var(--wr-accent); }
.wrs-active { display: flex; align-items: flex-start; gap: .45rem; margin: 0; color: var(--wr-text); font-size: .85rem; line-height: 1.45; }
.wrs-active .icon { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; color: #E2B867; }
.wrs-sum { display: grid; gap: .4rem; margin: 0; padding: .85rem 0 0; border-top: 1px solid var(--wr-line); }
.wrs-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wrs-sum dt { color: var(--wr-muted); font-size: .88rem; }
.wrs-sum dd { margin: 0; color: var(--wr-cream); font-variant-numeric: tabular-nums; text-align: right; }
.wrs-sum .wrs-price b { font-size: 1.15rem; }
.wrs-sum__after.is-low dd, .wrs-sum__after.is-low dt { color: #EE9A87; }
.wrs-sum__total dt, .wrs-sum__total dd { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.15rem; font-weight: 600; }
.wrs-buy__btn { width: 100%; min-height: 3.1rem; font-size: 1rem; }
.wrs-buy__btn[hidden] { display: none; }
.wrs-buy__hint { margin: -.4rem 0 0; color: var(--wr-muted); font-size: .8rem; text-align: center; }
.wrs-buy__hint[hidden] { display: none; }
.wrs-buy__hint a { color: var(--wr-accent); }
/* Pack multiplier on the item page: − ×N + */
.wrs-qty { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem; height: 2.9rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrs-qty__btn { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--wr-cream); cursor: pointer; touch-action: manipulation; transition: background-color .15s ease, color .15s ease; }
.wrs-qty__btn .icon { width: 1.1rem; height: 1.1rem; }
.wrs-qty__btn:hover:not(:disabled) { background: rgba(232, 84, 30, .14); color: var(--wr-accent); }
.wrs-qty__btn:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: -2px; }
/* Press feedback: a stronger highlight while the button is held down, no frame. */
.wrs-qty__btn:active:not(:disabled) { background: rgba(232, 84, 30, .22); }
.wrs-qty__btn:disabled { color: var(--wr-muted); opacity: .45; cursor: not-allowed; }
.wrs-qty__value { display: flex; align-items: center; justify-content: center; border-inline: 1px solid var(--wr-line); color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrs-notice { display: flex; align-items: flex-start; gap: .55rem; padding: .75rem .9rem; background: var(--wr-panel-2); color: var(--wr-text); font-size: .9rem; line-height: 1.45; }
.wrs-notice .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1rem; }
.wrs-notice--ok { box-shadow: inset 2px 0 0 var(--wr-success); }
.wrs-notice--ok .icon { color: var(--wr-success); }
.wrs-notice--error { box-shadow: inset 2px 0 0 var(--wr-danger-text); }
.wrs-notice--error .icon { color: #EE9A87; }

/* Top-up */
/* Number fields (top-up amount): no browser spin arrows, the amount is typed or picked from the presets. */
.form-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.form-input[type="number"]::-webkit-outer-spin-button, .form-input[type="number"]::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.wrs-topup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); align-items: start; gap: 1rem; }
.wrs-topup__side { display: grid; gap: 1rem; }
.wrs-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.wrs-preset { min-height: 2.25rem; padding: 0 .8rem; border: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-text); font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: box-shadow .15s ease, color .15s ease; }
.wrs-preset:hover, .wrs-preset.is-active { color: var(--wr-cream); box-shadow: inset 0 0 0 1px var(--wr-accent); }
.wrs-methods { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.wrs-method { grid-auto-flow: column; justify-content: start; align-items: center; gap: .6rem; min-height: 3rem; }
.wrs-method .icon { width: 1.2rem; height: 1.2rem; color: var(--wr-accent); }
.wrs-method span { color: var(--wr-cream); font-weight: 600; font-size: .92rem; }
.wrs-tiers { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wrs-tiers li { display: flex; justify-content: space-between; padding: .6rem .8rem; background: var(--wr-panel-2); color: var(--wr-text); font-size: .9rem; }
.wrs-tiers b { color: var(--wr-success); font-family: var(--wr-font-display); font-size: 1rem; }
.wrs-gift { gap: .6rem; }
.wrs-gift .wrs-h { margin: 0; }
.wrs-gift .wr-help { margin: 0; }
.wrs-gift__row { display: flex; gap: .4rem; }
.wrs-gift__row .form-input { flex: 1 1 auto; min-width: 0; height: 2.6rem; text-transform: uppercase; }
.wrs-gift__row .wr-button { min-height: 2.6rem; }
.wrs-test-badge { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; margin: 0; padding: .3rem .6rem; background: rgba(217, 164, 65, .12); box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .4); color: #E2B867; font-size: .8rem; }
.wrs-test-badge .icon { width: .95rem; height: .95rem; }
.wrs-testpay p { margin: 0; color: var(--wr-text); line-height: 1.6; }
.wrs-testpay__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* History */









/* ---------- Player statistics: sidebar top + profile block ---------- */
.wr-top__for { display: flex; align-items: center; gap: .5rem; margin: -.35rem 0 .75rem; color: var(--wr-muted); font-size: .8rem; }
.wr-top__tag, .wr-pstats__tag { padding: .05rem .4rem; background: var(--tag); color: #080707; font-family: var(--wr-font-display); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.wr-top__servers { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.35rem 0 .75rem; }
.wr-top__srv { min-width: 2.75rem; min-height: 2rem; padding: 0 .55rem; border: 0; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line), inset 0 -2px 0 var(--tag); color: var(--wr-text); font-family: var(--wr-font-display); font-size: .8rem; text-transform: uppercase; cursor: pointer; }
.wr-top__srv[aria-pressed="true"] { color: var(--wr-cream); box-shadow: inset 0 0 0 1px var(--wr-accent), inset 0 -2px 0 var(--tag); }
.wr-top__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: .2rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-top__tab { min-height: 2.1rem; padding: 0 .3rem; border: 0; background: transparent; color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.wr-top__tab:hover { color: var(--wr-cream); }
.wr-top__tab[aria-selected="true"] { background: rgba(232, 84, 30, .14); box-shadow: inset 0 0 0 1px var(--wr-accent); color: var(--wr-cream); }
.wr-top__tab:focus-visible, .wr-top__srv:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wr-top__panel[hidden], .wr-top__server[hidden], .wr-pstats__panel[hidden] { display: none; }
.wr-top__list { display: grid; margin: .6rem 0 0; padding: 0; list-style: none; }
.wr-top__row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .35rem 0; border-bottom: 1px solid var(--wr-line); }
.wr-top__row:last-child { border-bottom: 0; }
.wr-top__rank { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--wr-panel-2); color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .82rem; font-weight: 600; }
.wr-top__row.is-top1 .wr-top__rank { background: var(--wr-accent); color: #080707; box-shadow: 0 0 10px var(--wr-glow); }
.wr-top__row.is-top2 .wr-top__rank, .wr-top__row.is-top3 .wr-top__rank { box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .55); color: var(--wr-accent); }
.wr-top__name { min-width: 0; overflow: hidden; color: var(--wr-cream); font-size: .9rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wr-top__name a { color: inherit; }
.wr-top__name a:hover { color: var(--wr-accent); }
.wr-top__val { display: grid; justify-items: end; line-height: 1.15; }
.wr-top__val b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.wr-top__val small { color: var(--wr-muted); font-size: .7rem; white-space: nowrap; }
.wr-top__none { display: grid; justify-items: center; gap: .35rem; padding: 1.25rem .75rem; border: 1px dashed var(--wr-line); text-align: center; }
.wr-top__none .icon { width: 1.6rem; height: 1.6rem; margin-bottom: .15rem; color: var(--wr-accent); }
.wr-top__none b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .98rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wr-top__none span { color: var(--wr-muted); font-size: .82rem; line-height: 1.5; }
.wr-top__empty { margin: .75rem 0 0; color: var(--wr-muted); font-size: .85rem; }

.wr-pstats { display: grid; gap: 1rem; }
.wr-pstats .wr-profile__h { margin-bottom: 0; }
.wr-pstats__server { display: grid; gap: .65rem; padding: .8rem .85rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line), inset 3px 0 0 var(--tag); }
.wr-pstats__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; }
.wr-pstats__head > b { flex: 1 1 auto; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wr-pstats__tabs { flex: 0 0 auto; width: 15rem; background: var(--wr-panel); }
.wr-pstats__panel { display: grid; gap: .5rem; }
.wr-pstats__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin: 0; }
.wr-pstats__tiles div { display: grid; justify-items: center; gap: .05rem; padding: .45rem .6rem; text-align: center; background: var(--wr-panel); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-pstats__tiles dt { color: var(--wr-muted); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.wr-pstats__tiles dd { margin: 0; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.wr-pstats__res { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-pstats__res li { display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 0; padding: .3rem .5rem; background: var(--wr-panel); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-pstats__res img { flex: none; width: 1.6rem; height: 1.6rem; object-fit: contain; }
.wr-pstats__res span { display: grid; min-width: 0; line-height: 1.15; }
.wr-pstats__res b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.wr-pstats__res small { overflow: hidden; color: var(--wr-muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.wr-pstats__upd { margin: 0; color: var(--wr-muted); font-size: .78rem; }

/* Profile: launcher block (own profile only) — SteamID and signed-in computers */
.wr-plaunch { display: grid; gap: 1rem; }
.wr-plaunch [hidden] { display: none; }
.wr-plaunch .wr-profile__h { margin-bottom: 0; }
.wr-plaunch__id { display: grid; gap: .45rem; }
.wr-plaunch__label { color: var(--wr-muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.wr-plaunch__copy { display: flex; gap: .5rem; }
.wr-plaunch__input { flex: 1 1 auto; min-width: 0; max-width: 22rem; height: 2.75rem; color: var(--wr-cream); font-family: ui-monospace, Consolas, monospace; font-size: 1rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.wr-plaunch__copy .wr-button { flex: none; min-height: 2.75rem; }
.wr-plaunch__copy .wr-button span, .wr-plaunch__dhead .wr-button { display: inline-flex; align-items: center; gap: .45rem; }
.wr-plaunch__copy .wr-button .icon, .wr-plaunch__dhead .wr-button .icon { width: 1rem; height: 1rem; }
.wr-plaunch__devices { display: grid; gap: .55rem; }
.wr-plaunch__dhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.wr-plaunch__sub { margin: 0; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wr-plaunch__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-plaunch__item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-plaunch__item > .icon { flex: none; width: 1.3rem; height: 1.3rem; color: var(--wr-accent); }
.wr-plaunch__dev { display: grid; flex: 1 1 auto; gap: .1rem; min-width: 0; }
.wr-plaunch__dev b { overflow-wrap: anywhere; color: var(--wr-cream); font-weight: 600; font-size: .95rem; }
.wr-plaunch__dev small { color: var(--wr-muted); font-size: .8rem; }
.wr-plaunch__item .wr-button { flex: none; }
@media (max-width: 26em) {
	.wr-plaunch__copy { flex-wrap: wrap; }
	.wr-plaunch__input { flex-basis: 100%; max-width: none; }
	.wr-plaunch__copy .wr-button { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Partner program (laid out like the ban list) ---------- */
.wrp-last__value { color: var(--wr-accent); font-family: var(--wr-font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px var(--wr-glow); }
.wrp-hero .wrb-last__stats li:first-child b { color: var(--wr-cream); }
.wrp-hero .wr-button span, .wrp [data-wrp-copy] span { display: inline-flex; align-items: center; gap: .45rem; }
.wrp-link__input { color: var(--wr-cream); font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.wrp .wrb-empty [data-wrp-copy] .icon { width: 1rem; height: 1rem; margin: 0; color: inherit; }

/* tables: own column widths, no ban-red stripe */
.wrp-table tbody tr td:first-child { box-shadow: none; }
.wrp-table th:nth-child(n) { width: auto; }
.wrp-table--invited th:nth-child(2), .wrp-table--ledger th:nth-child(2), .wrp-table--payouts th:nth-child(2) { width: 11rem; }
.wrp-table--invited th:nth-child(3), .wrp-table--ledger th:nth-child(3), .wrp-table--payouts th:nth-child(3) { width: 9.5rem; }
.wrp-table--payouts th:nth-child(4) { width: 11rem; }
.wrp-table th:nth-child(3), .wrp-c-sum { text-align: right; }
.wrp-table--payouts th:nth-child(3) { text-align: right; }
.wrp-c-sum .wrb-two { justify-items: end; }
.wrp-c-sum .wrs-amount { font-family: var(--wr-font-display); font-size: 1.02rem; font-weight: 600; }
.wrp-avatar { background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-cream); }
.wrp-muted { color: var(--wr-muted); font-size: .84rem; }


/* "Как это работает" */


/* "Забрать деньги": two option cards on a shared row grid (head / terms / form / result / button) */
.wrp-take { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto auto; column-gap: 1rem; }
.wrp-opt { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 1.1rem; padding: 1.15rem 1.25rem 1.25rem; background: var(--wr-panel); border: 1px solid var(--wr-line); }
.wrp-opt__head { display: grid; gap: .45rem; }
.wrp-opt__title { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 0; color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.wrp-opt__title em { padding: .1rem .45rem; background: rgba(111, 168, 80, .14); box-shadow: inset 0 0 0 1px rgba(111, 168, 80, .45); color: var(--wr-success); font-size: .85rem; font-style: normal; letter-spacing: .04em; }
.wrp-opt__terms { display: grid; margin: 0; border-top: 1px solid var(--wr-line); }
.wrp-opt__terms > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--wr-line); }
.wrp-opt__terms dt { color: var(--wr-muted); font-size: .86rem; }
.wrp-opt__terms dd { margin: 0; color: var(--wr-cream); font-size: .9rem; font-weight: 600; text-align: right; }
.wrp-opt__form { display: grid; align-content: start; gap: .9rem; }
.wrp-opt__form .wrs-terms { gap: .5rem; }
.wrp-opt__pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .75rem; }
.wrp-opt__pair > [hidden] { display: none; }
.wrp-opt__pair:has(> [hidden]) { grid-template-columns: 1fr; }
.wrp-opt .wrs-field { gap: .55rem; }
.wrp-opt .wr-input .form-input { padding-right: 1rem; font-variant-numeric: tabular-nums; }
/* total row: same as the price summary on the product page — a line above, label left, figure right */
.wrp-opt__result { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding-top: .85rem; border-top: 1px solid var(--wr-line); }
.wrp-opt__result span { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.wrp-opt__result b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wrp-opt[data-wrp-convert] .wrp-opt__result b { color: var(--wr-success); }
.wrp-opt__btn { width: 100%; }
/* locked / pending: takes the form, result and button rows */
.wrp-opt__locked { grid-row: span 3; display: grid; align-content: center; justify-items: center; gap: .4rem; padding: 1.25rem 1rem; border: 1px dashed var(--wr-line); text-align: center; }
.wrp-opt__locked > .icon { width: 1.5rem; height: 1.5rem; margin-bottom: .2rem; color: var(--wr-muted); }
.wrp-opt__locked b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wrp-opt__locked > span { max-width: 22rem; color: var(--wr-muted); font-size: .88rem; line-height: 1.5; }
.wrp-opt__locked small { color: var(--wr-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.wrp-opt__locked.is-pending { border: 0; background: rgba(232, 84, 30, .08); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .3); }
.wrp-opt__locked.is-pending > .icon { color: var(--wr-accent); }
.wrp-opt__bar { width: min(100%, 18rem); height: .4rem; margin-top: .35rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrp-opt__bar span { display: block; height: 100%; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); }

/* "Как это работает": a step line — numbered markers joined by a rule, text under them, no boxes */
.wrp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: .5rem 0 0; padding: 0; list-style: none; counter-reset: wrp; }
.wrp-steps li { position: relative; display: grid; align-content: start; gap: .35rem; padding-top: 3.1rem; counter-increment: wrp; }
.wrp-steps li::before { content: counter(wrp); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: rgba(232, 84, 30, .12); box-shadow: inset 0 0 0 1px var(--wr-accent); color: var(--wr-accent); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; }
.wrp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.125rem; left: 3rem; right: -.75rem; height: 1px; background: linear-gradient(90deg, rgba(232, 84, 30, .55), var(--wr-line)); }
.wrp-steps b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1rem; font-weight: 600; letter-spacing: .03em; line-height: 1.25; text-transform: uppercase; }
.wrp-steps span { color: var(--wr-muted); font-size: .86rem; line-height: 1.5; }
.wrp-rules { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--wr-line); color: var(--wr-muted); font-size: .8rem; line-height: 1.55; }
.wrp-rules .icon { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; color: var(--wr-muted); }
.wrp-rules a { color: var(--wr-accent); }

/* ---------- Purchase history ---------- */
.wrs-hist { gap: 1.5rem; }
.wrs-hist__block { display: grid; gap: .75rem; }
.wrs-hist .wrs-h { margin: 0; }

/* Purchases waiting for the /store command */
.wrs-store { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .9rem 1rem; background: linear-gradient(90deg, rgba(232, 84, 30, .12), rgba(232, 84, 30, .03)); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .35); }
.wrs-store__text { display: grid; gap: .2rem; min-width: 0; }
.wrs-store__text b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wrs-store__text span { color: var(--wr-text); font-size: .88rem; line-height: 1.5; }
.wrs-store__cmd { padding: .45rem .8rem; background: rgba(8, 7, 7, .7); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .5); color: var(--wr-accent); font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }

/* Active privileges */
.wrs-privs { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wrs-priv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .7rem .9rem .7rem .7rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wrs-priv__visual { width: 3rem; height: 3rem; }
.wrs-priv__visual .icon { width: 1.4rem; height: 1.4rem; }
.wrs-priv__visual::after { display: none; }
.wrs-priv__main, .wrs-priv__term { display: grid; gap: .15rem; min-width: 0; line-height: 1.3; }
.wrs-priv__main b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wrs-priv__main small, .wrs-priv__term small { color: var(--wr-muted); font-size: .78rem; }
.wrs-priv__term { justify-items: end; text-align: right; }
.wrs-priv__term b { color: var(--wr-success); font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* History list (purchases, top-ups, operations) */
.wrs-hist__tabs .wrb-tab { flex: 0 0 auto; }
.wrs-hist__list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--wr-line); }
.wrs-hist__row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 9.5rem; align-items: center; gap: .5rem 1rem; padding: .7rem 1rem .7rem .7rem; border-bottom: 1px solid var(--wr-line); transition: background-color .15s ease; }
.wrs-hist__row:last-child { border-bottom: 0; }
.wrs-hist__row:hover { background: rgba(232, 84, 30, .04); }
.wrs-hist__row:not(:has(.wrs-hist__status)) { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.wrs-hist__pic { width: 3rem; height: 3rem; }
.wrs-hist__pic::after { display: none; }
.wrs-hist__pic .icon { width: 1.35rem; height: 1.35rem; }
.wrs-hist__icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--wr-panel-2); box-shadow: inset 0 0 0 1px var(--wr-line); color: var(--wr-muted); }
.wrs-hist__icon .icon { width: 1.3rem; height: 1.3rem; }
.wrs-hist__icon.is-plus { color: var(--wr-success); }
.wrs-hist__icon.is-accent { background: rgba(8, 7, 7, .55); box-shadow: inset 0 0 0 1px rgba(232, 84, 30, .45); color: var(--wr-accent); }
.wrs-hist__main { display: grid; gap: .2rem; min-width: 0; }
.wrs-hist__title { color: var(--wr-cream); font-size: .98rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wrs-hist__meta { display: flex; flex-wrap: wrap; gap: .1rem .4rem; color: var(--wr-muted); font-size: .8rem; line-height: 1.4; }
.wrs-hist__meta time { white-space: nowrap; }
.wrs-hist__amount { display: grid; justify-items: end; gap: .1rem; font-family: var(--wr-font-display); font-size: 1.05rem; font-weight: 600; text-align: right; }
.wrs-hist__amount small { color: var(--wr-muted); font-family: var(--wr-font-body, inherit); font-size: .74rem; font-weight: 400; white-space: nowrap; }
.wrs-hist__status { justify-self: end; }
.wrs-amount.is-off { color: var(--wr-muted); text-decoration: line-through; }
.wrs-amount { color: var(--wr-cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrs-amount.is-plus { color: var(--wr-success); }

@media (max-width: 66.25em) {
	.wrs-item, .wrs-topup { grid-template-columns: 1fr; }
	.wr-pstats__tiles, .wr-pstats__res { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wrp-take { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1rem; }
	.wrp-opt { grid-row: auto; grid-template-rows: none; }
	.wrp-opt__locked { grid-row: auto; }
	.wrp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
	.wrp-steps li:nth-child(2n)::after { display: none; }
	.wrs-buy { position: static; }
}
@media (max-width: 47.5em) {
	.wrs-panel, .wrs-item__info, .wrs-buy { padding: 1rem; }
	.wrs-terms { grid-template-columns: 1fr 1fr; }
	.wr-pstats__tabs { width: 100%; }
	.wr-pstats__tiles, .wr-pstats__res { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wrp-opt { padding: 1rem; }
	.wrp-opt__title { font-size: 1.25rem; }
	.wrp-opt__pair { grid-template-columns: 1fr; }
	.wrp-steps { grid-template-columns: 1fr; gap: 1.25rem; }
	.wrp-steps li { padding: .2rem 0 0 3.2rem; min-height: 2.25rem; }
	.wrp-steps li:not(:last-child)::after { top: 2.6rem; bottom: -1.05rem; left: 1.125rem; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(232, 84, 30, .55), var(--wr-line)); }
	.wrp-table tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main sum" "date state"; box-shadow: inset 0 0 0 1px var(--wr-line); }
	.wrp-c-main { grid-area: main; min-width: 0; }
	.wrp-c-sum { grid-area: sum; justify-self: end; align-self: center; }
	.wrp-c-date { grid-area: date; justify-self: start; align-self: center; }
	.wrp-c-date .wrb-two { grid-auto-flow: column; gap: .4rem; align-items: baseline; }
	.wrp-c-date .wrb-two b { color: var(--wr-muted); font-size: .8rem; font-weight: 500; }
	.wrp-c-state { grid-area: state; justify-self: end; align-self: center; }
	.wrp-c-state .wrb-two { justify-items: end; }
	.wrs-store { grid-template-columns: auto minmax(0, 1fr); }
	.wrs-store__cmd { grid-column: 1 / -1; justify-self: start; }
	.wrs-privs { grid-template-columns: 1fr; }
	.wrs-hist__tabs .wrb-tab { flex: 1 1 0; padding-inline: .4rem; text-align: center; }
	.wrs-hist__tabs .wrb-tab::after { left: .4rem; right: .4rem; }
	.wrs-privs .wrs-priv { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "vis main" "vis term"; row-gap: .35rem; }
	.wrs-priv__visual { grid-area: vis; align-self: start; }
	.wrs-priv__main { grid-area: main; }
	.wrs-priv__term { grid-area: term; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; justify-items: start; text-align: left; }
	/* Phone: title and meta get the full width, amount and status go to the second line. */
	.wrs-hist__row, .wrs-hist__row:not(:has(.wrs-hist__status)) { grid-template-columns: 2.75rem minmax(0, 1fr) auto; grid-template-areas: "pic main main" "pic amount status"; gap: .45rem .75rem; padding: .75rem .75rem .75rem .6rem; }
	.wrs-hist__row > :first-child { grid-area: pic; align-self: start; }
	.wrs-hist__pic, .wrs-hist__icon { width: 2.75rem; height: 2.75rem; }
	.wrs-hist__main { grid-area: main; }
	.wrs-hist__amount { grid-area: amount; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; justify-self: start; text-align: left; }
	.wrs-hist__row:not(:has(.wrs-hist__status)) .wrs-hist__amount { grid-column: 2 / -1; }
	.wrs-hist__status { grid-area: status; justify-self: end; }
	.wrs-kit summary { padding: .5rem .75rem; line-height: 1.25; }
	.wrs-kit__grid { grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr)); gap: .3rem; padding: .25rem .75rem .8rem; }
	.wrs-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
	.wrs-grid--dense .wrs-card__body { padding: .6rem .65rem .7rem; }
	.wrs-grid--dense .wrs-card__title { font-size: .95rem; }
	.wrs-grid--dense .wrs-card__foot { flex-wrap: wrap; gap: .4rem; }
	.wrs-grid--dense .wrs-card__btn { width: 100%; }
}

/* Rules page (content lives in the DLE static page "dle-rules-page") */
.wr-rules { display: grid; gap: 1.5rem; }
.wr-rules__title { display: flex; align-items: center; gap: .7rem; margin: 0 0 .75rem; font-size: 1.3rem; }
.wr-rules__num {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	background: var(--wr-accent);
	color: #080707;
	font-size: 1.05rem;
	font-weight: 700;
	clip-path: var(--wr-cut);
}
.wr-rules__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wr-rules__list li {
	display: grid;
	grid-template-columns: 2.6rem minmax(0, 1fr);
	gap: .75rem;
	align-items: baseline;
	padding: .65rem .9rem;
	background: var(--wr-panel-2);
	border-left: 2px solid transparent;
	transition: border-color .15s ease, background .15s ease;
}
.wr-rules__list li:hover, .wr-rules__list li:target { border-left-color: var(--wr-accent); background: #231D1B; }
.wr-rules__code { color: var(--wr-accent); font-family: var(--wr-font-display); font-weight: 600; letter-spacing: .03em; }
.wr-rules__text { color: var(--wr-text); line-height: 1.55; }
.wr-doc__intro { display: grid; gap: .6rem; padding: 1rem 1.15rem; background: var(--wr-panel-2); border-left: 2px solid var(--wr-accent); }
.wr-doc__intro p { margin: 0; color: var(--wr-text); line-height: 1.6; }
.wr-doc__intro .wr-doc__updated { color: var(--wr-muted); font-family: var(--wr-font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.wr-doc__sub { margin: 1rem 0 .5rem; padding-left: 1.5rem; color: var(--wr-cream); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.wr-rules__title + .wr-doc__sub { margin-top: 0; }
.wr-doc__lead { margin: 0 0 .6rem; color: var(--wr-muted); line-height: 1.6; }
.wr-doc__terms.wr-rules__list li { grid-template-columns: minmax(0, 1fr); }
.wr-doc__terms b { color: var(--wr-cream); font-weight: 600; }
.wr-doc .wr-rules__text a, .wr-doc__intro a { color: var(--wr-accent); }
.wr-doc .wr-rules__text b { color: var(--wr-cream); font-weight: 600; }
.wr-doc .wr-rules__text a:hover { text-decoration: underline; }
.wr-rules__accept:empty { display: none; }
.page--gate .wr-rules__title { font-size: 1.1rem; }
.page--gate .wr-rules__list li { padding: .5rem .75rem; font-size: .92rem; }

/* "How to start" static page: launcher download, steps, FAQ, help */
.wr-start-page { display: grid; gap: 1.5rem; }
.wr-start-page__lead { color: var(--wr-text); font-size: 1.05rem; line-height: 1.6; }
.wr-start-page__h { position: relative; margin: .5rem 0 0; padding-bottom: .5rem; font-size: 1.35rem; }
.wr-start-page__h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; background: var(--wr-accent); box-shadow: 0 0 8px var(--wr-glow); }

.wr-download {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.75rem;
	overflow: hidden;
	border: 1px solid var(--wr-line);
	border-left: 2px solid var(--wr-accent);
}
.wr-download::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(8, 7, 7, .96) 0%, rgba(8, 7, 7, .8) 55%, rgba(8, 7, 7, .45) 100%), url(../images/bg.webp) 75% 45% / cover no-repeat;
}
/* The page lives inside .story-text: neutralise article link underlines and list indents */
/* Buttons inside article text keep button colours (Air's ".text a" would paint them accent-on-accent) */
.text a.wr-button, .text a.wr-button:visited, .text a.wr-button:hover { color: #080707; text-decoration: none; }
.text a.wr-button--outline, .text a.wr-button--outline:visited, .text a.wr-button--outline:hover { color: var(--wr-accent); }
.story-text .wr-start-page ul, .story-text .wr-start-page ol { margin: 0; padding: 0; list-style: none; }
.story-text .wr-start-page li { margin: 0; padding-left: 0; }
.story-text .wr-start-page li::before, .story-text .wr-start-page li::marker { content: none; }
.story-text .wr-start-page .wr-start-step { padding: 1.15rem 1.15rem 1.15rem 1rem; }
.wr-download__info { display: grid; gap: .45rem; }
.wr-download__kicker { color: var(--wr-accent); font-family: var(--wr-font-display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.wr-download__title { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.wr-download__facts { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .35rem 0 0; padding: 0; list-style: none; color: var(--wr-text); font-size: .88rem; }
.wr-download__facts li { display: inline-flex; align-items: center; gap: .4rem; }
.wr-download__facts .icon { width: 1rem; height: 1rem; color: var(--wr-success); }
.wr-download__btn { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1.1rem; }
.wr-download__btn .icon { width: 1.3rem; height: 1.3rem; }

.wr-start-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.wr-start-step {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon title" "icon text";
	grid-template-rows: auto 1fr;
	align-items: start;
	gap: .3rem 1rem;
	align-items: start;
	padding: 1.15rem 1.15rem 1.15rem 1rem;
	background: var(--wr-panel-2);
	border-left: 2px solid var(--wr-accent);
}
.wr-start-step__num { position: absolute; top: .55rem; right: .8rem; color: rgba(232, 84, 30, .22); font-family: var(--wr-font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.wr-start-step__icon { grid-area: icon; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: rgba(232, 84, 30, .12); color: var(--wr-accent); }
.wr-start-step__icon .icon { width: 1.4rem; height: 1.4rem; }
.wr-start-step__title { grid-area: title; margin: 0; padding-right: 2.5rem; font-size: 1.1rem; }
.wr-start-step__text { grid-area: text; margin: 0; color: var(--wr-text); font-size: .92rem; line-height: 1.55; }
.wr-start-step__text a { color: var(--wr-accent); }

.wr-faq { display: grid; gap: .4rem; }
.wr-faq__item { background: var(--wr-panel-2); border-left: 2px solid transparent; transition: border-color .15s ease; }
.wr-faq__item[open] { border-left-color: var(--wr-accent); }
.wr-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; color: var(--wr-cream); font-weight: 600; list-style: none; cursor: pointer; }
.wr-faq__item summary::-webkit-details-marker { display: none; }
.wr-faq__item summary:hover { color: var(--wr-accent); }
.wr-faq__item summary .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--wr-muted); transition: transform .2s ease; }
.wr-faq__item[open] summary .icon { transform: rotate(180deg); color: var(--wr-accent); }
.wr-faq__item p { margin: 0; padding: 0 1.1rem 1rem; color: var(--wr-text); line-height: 1.6; }

.wr-start-help { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--wr-line); }
.wr-start-help__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--wr-panel-2); color: var(--wr-accent); }
.wr-start-help div { display: grid; gap: .15rem; margin-right: auto; }
.wr-start-help b { color: var(--wr-cream); font-family: var(--wr-font-display); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; }
.wr-start-help span { color: var(--wr-muted); font-size: .9rem; }

/* Scroll reveal start state is set by JS only (no-JS users see everything) */
.wr-reveal { opacity: 0; }

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

/* Header gets crowded on narrow desktops: drop the online pill (it is in the sidebar too), then the wordmark */
@media (max-width: 82.5em) {
	.header-actions .wr-online-pill { display: none; }
}
@media (min-width: 66.251em) and (max-width: 72em) {
	.site-header .wr-brand__text { display: none; }
}

@media (max-width: 66.25em) {
	.wr-hero__features { width: 100%; }
	.layout { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wr-start { grid-column: 1 / -1; }
	.wr-hero { grid-template-columns: 1fr; padding: 2.25rem; }
	.wr-countdown { justify-self: start; }
	.header-actions .wr-online-pill { display: none; }
	.site-header.is-menu-open .primary-nav { background: var(--wr-panel); border-top: 2px solid var(--wr-accent); border-radius: 0; }
	.site-header.is-menu-open .primary-nav .wr-dropdown__toggle { padding: var(--sp-2) var(--sp-3); }
	.wr-dropdown__panel { position: static; display: none; min-width: 0; margin-top: .25rem; box-shadow: none; border-top: 0; background: var(--wr-panel-2); opacity: 1; visibility: visible; transform: none; }
	.wr-dropdown.is-open .wr-dropdown__panel { display: block; }
}

@media (max-width: 47.5em) {
	.wr-pm__list table.pm tbody tr { grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem; grid-template-areas: "icon subj check" "icon who who"; padding: .75rem .6rem; }
	.wr-pm__list td.pm_icon { width: 2.25rem; height: 2.25rem; align-self: start; }
	.wr-pm__list table.pm td.pm_last_user { display: flex; align-items: baseline; gap: .5rem; text-align: left; }
	.wr-pm__list td.pm_checkbox { align-self: start; }
	.wr-pm__quota-bar { flex-basis: 100%; max-width: none; margin-left: 0; }
	.wr-msg { max-width: 100%; }
	.wr-msg__avatar .avatar { width: 2.25rem; height: 2.25rem; }
	.wr-srv { padding: 1.1rem; }
	.wr-srv__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wr-srv__stat { padding: .65rem .7rem; }
	.wr-srv__stat b { font-size: 1.12rem; }
	.wr-srv__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wr-usermenu__toggle { padding: 0 .45rem 0 .4rem; gap: .35rem; }
	.wr-usermenu__chevron { display: none; }
	.wr-usermenu__panel { position: fixed; left: .75rem; right: .75rem; top: 4.75rem; width: auto; }
	.wr-profile__hero { grid-template-columns: 1fr; justify-items: start; min-height: 0; padding: 1.25rem; }
	.wr-profile__avatar { width: 6rem; height: 6rem; }
	.wr-profile__actions { justify-content: flex-start; }
	.wr-profile__name { white-space: normal; overflow-wrap: anywhere; }
	.wr-feature { padding: .85rem .9rem; }
	.wr-hero__art { background: linear-gradient(180deg, rgba(8, 7, 7, .9) 0%, rgba(8, 7, 7, .78) 55%, rgba(8, 7, 7, .92) 100%), url(../images/bg.webp) 70% 30% / cover no-repeat; }
	.wr-hero__title { max-width: none; }
	.wr-kicker { letter-spacing: .12em; }
	.wr-start-steps { grid-template-columns: 1fr; }
	.wr-download { padding: 1.25rem; }
	.wr-download__btn { width: 100%; }
	.wr-news-row { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; }
	.wr-news-row__go { display: none; }
	.wr-news-row__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1rem; }
	.wr-login-link { width: 2.75rem; padding: 0; }
	.wr-signup-link { padding: 0 .8rem; font-size: .8rem; }
	.wr-signup-link__full { display: none; }
	.wr-signup-link__short { display: inline; }
	.wr-gate__frame { grid-template-columns: 1fr; }
	.wr-gate__art { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.25rem; border-right: 0; border-bottom: 1px solid var(--wr-line); }
	.wr-gate__art .wr-brand--gate .wr-brand__mark { width: 44px; height: 44px; }
	.wr-gate__art .wr-brand--gate .wr-brand__text { height: 24px; }
	.wr-gate__pitch { display: none; }
	.wr-gate__art .wr-online-pill { display: inline-flex; margin-left: auto; align-self: center; }
	.wr-gate .gate__card { padding: 1.5rem 1.25rem; }
	.wr-footer__main { flex-direction: column; gap: 1rem; padding-block: 1.25rem; text-align: center; }
	.wr-footer__nav { justify-content: center; }
	.wr-footer__social { margin-left: 0; }
	.wr-footer__bottom { justify-content: center; text-align: center; }
	.wr-footer__legal { justify-content: center; }
	.header-main { gap: .75rem; }
	.wr-brand__mark { width: 38px; height: 38px; }
	.wr-brand__text { height: 22px; }
	.wr-hero { min-height: 0; padding: 1.75rem 1.25rem; }
	.wr-hero__art { background-position: center, center, 70% 50%; }
	.wr-countdown { justify-self: stretch; }
	.wr-countdown__cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.story-card { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 26em) {
	.wr-gate__art .wr-brand__text { display: block; }
	.wr-brand__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wr-live__dot { animation: none; }
	.wr-reveal { opacity: 1 !important; transform: none !important; }
	.story-card::before { transition: none; }
}
