/*
 * Rust server list, in the store's own look: the theme's colours, type,
 * buttons and icons (badgyver-rust/assets/css/rust.css), so the list, the
 * server pages and the account form sit with the rest of the site.
 */

.bgrs {
	--bgrs-panel: #1b1b1a;
	--bgrs-panel-2: #232321;
	--bgrs-line: #2e2e2b;
	--bgrs-ok: #6a8241;
	--bgrs-bad: #b13a26;
	--bgrs-warn: #cf9c42;
	color: var(--brs-text, #d9d2ca);
	font-family: var(--brs-font, "Roboto Condensed", sans-serif);
}

.bgrs a { color: #e9e2d9; }
.bgrs a:hover { color: #fff; }
.bgrs .ri { font-size: 20px; }
/* The browsers' own search-field style makes it content-box, taller than the rest. */
.bgrs input, .bgrs select, .bgrs textarea { box-sizing: border-box !important; }
.bgrs input[type="search"] { -webkit-appearance: none; appearance: none; }
.bgrs-muted { color: var(--brs-dim, #8c8781); }

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

.bgrs-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 32px;
	align-items: center;
	justify-content: space-between;
	margin: -12px 0 26px;
}

.bgrs-hero__intro {
	flex: 1 1 420px;
	max-width: 760px;
	margin: 0 !important;
	color: #bdb6ae;
	font-size: 16px;
	line-height: 1.55;
}

.bgrs-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }

.bgrs-hero__stats > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 118px;
	padding: 8px 16px;
	background: var(--bgrs-panel);
	border-left: 3px solid var(--brs-red, #cd402b);
}

.bgrs-hero__stats > div b { color: #f1ebe3; font-size: 24px; line-height: 1.1; }
.bgrs-hero__stats > div span { color: var(--brs-dim, #8c8781); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bgrs-hero__stats .brs-btn { height: auto; min-height: 56px; }

/* ------------------------------------------------------------ Filters */

.bgrs-filters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	align-items: end;
	margin: 0 0 22px;
	padding: 16px;
	background: var(--bgrs-panel);
}

.bgrs-filters .is-search { grid-column: span 2; }
.bgrs-filters__go { display: flex; gap: 8px; grid-column: span 2; }
.bgrs-filters__go .brs-btn { height: 42px; }

.bgrs-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bgrs-field > span { color: var(--brs-dim, #8c8781); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bgrs-field > span b { color: var(--brs-red, #cd402b); }

.bgrs input[type="text"],
.bgrs input[type="search"],
.bgrs input[type="number"],
.bgrs input[type="url"],
.bgrs input[type="file"],
.bgrs select,
.bgrs textarea {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #333;
	border-radius: 0;
	background: #121211;
	color: var(--brs-text, #d9d2ca);
	font-family: inherit;
	font-size: 15px;
}

.bgrs textarea { min-height: 150px; line-height: 1.5; resize: vertical; }
.bgrs input:focus, .bgrs select:focus, .bgrs textarea:focus { border-color: #5a5a55; outline: none; }

/* -------------------------------------------------------------- Table */

.bgrs-table { display: flex; flex-direction: column; gap: 6px; }

.bgrs-table__head,
.bgrs-row {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 170px 120px 140px 210px;
	gap: 16px;
	align-items: center;
}

.bgrs-table__head {
	padding: 0 16px;
	color: var(--brs-dim, #8c8781);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bgrs-row {
	padding: 14px 16px;
	background: var(--bgrs-panel);
	border-left: 3px solid var(--bgrs-ok);
	transition: background .15s ease;
}

.bgrs-row:hover { background: var(--bgrs-panel-2); }
.bgrs-row.is-off { border-left-color: #444; opacity: .78; }

.bgrs-row__rank { color: #9d968e; font-size: 20px; font-weight: 700; text-align: center; }
.bgrs-row__main { min-width: 0; }
.bgrs-row__banner { display: block; width: 100%; max-width: 468px; margin: 0 0 8px; }

.bgrs-banner {
	display: block;
	width: 100%;
	max-width: 468px;
	height: auto;
	aspect-ratio: 468 / 60;
	background: #121211;
	object-fit: cover;
}

.bgrs-row__name {
	margin: 0 0 6px !important;
	font-size: 18px !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	overflow-wrap: anywhere;
}

.bgrs-row__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }

.bgrs-chip {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 3px 8px;
	background: #2a2a28;
	color: #c9c3bc !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bgrs .bgrs-chip .ri { color: var(--brs-icon, #8f8a85); font-size: 14px; }
.bgrs-chip.is-pve { background: #33421f; color: #d3dcbf !important; }
.bgrs-chip.is-pvp { background: #4a2219; color: #f0cfc6 !important; }
.bgrs-chip.is-tag { background: #23272b; }
a.bgrs-chip:hover { background: #34342f; color: #fff !important; }

.bgrs-players b { color: #f1ebe3; font-size: 18px; }
.bgrs-players small { color: var(--brs-dim, #8c8781); font-size: 13px; }
.bgrs-players em { margin-left: 8px; color: var(--bgrs-warn); font-size: 12px; font-style: normal; font-weight: 700; }
.bgrs-players__bar { display: block; height: 6px; margin-top: 6px; background: #2c2c2a; }
.bgrs-players__bar i { display: block; height: 100%; background: linear-gradient(90deg, #5a6e37, #8aa356); }
.bgrs-players.is-off b { color: #8c8781; font-size: 15px; text-transform: uppercase; }

.bgrs-row__wipe, .bgrs-row__where { color: #c9c3bc; font-size: 14px; }
.bgrs-row__label { display: none; }

.bgrs-connect { display: flex; gap: 6px; justify-content: flex-end; }
.bgrs-connect .brs-btn { height: 42px; padding: 0 14px; gap: 8px; }
.bgrs .bgrs-connect .ri { font-size: 18px; }
.bgrs-copy.is-done { background: var(--brs-green, #5a6e37); color: #e4e8d8 !important; }
.bgrs-connect.is-big { justify-content: flex-start; flex-wrap: wrap; }
.bgrs-connect.is-big .brs-btn { height: 52px; padding: 0 22px; font-size: 15px; }

.bgrs-empty {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	padding: 46px 16px;
	background: var(--bgrs-panel);
	color: var(--brs-dim, #8c8781);
	text-align: center;
}

.bgrs .bgrs-empty .ri { font-size: 44px; color: #55524d; }
.bgrs-empty p { margin: 0 !important; }

.bgrs-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 22px 0 0; }
.bgrs-pager__at { color: var(--brs-dim, #8c8781); font-weight: 700; text-transform: uppercase; }

/* ------------------------------------------------------- Guide and FAQ */

.bgrs-guide {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 46px 0 0;
}

.bgrs-guide__col, .bgrs-faq, .bgrs-box, .bgrs-rules {
	padding: 20px 22px;
	background: var(--bgrs-panel);
}

.bgrs-guide h2, .bgrs-faq h2, .bgrs-box__head h2, .bgrs-rules h3 {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 14px !important;
	color: #ece6de !important;
	font-size: 18px !important;
	letter-spacing: .04em !important;
	text-transform: uppercase;
}

.bgrs .bgrs-guide h2 .ri, .bgrs .bgrs-box__head h2 .ri, .bgrs .bgrs-rules h3 .ri { color: var(--brs-red, #cd402b); font-size: 22px; }
.bgrs-guide ol, .bgrs-guide ul, .bgrs-rules ul { margin: 0 0 0 20px !important; color: #c9c3bc; line-height: 1.6; }
.bgrs-guide li, .bgrs-rules li { margin: 0 0 6px; }

.bgrs-faq { margin: 18px 0 0; }
.bgrs-faq details { border-top: 1px solid var(--bgrs-line); }
.bgrs-faq summary { padding: 12px 0; color: #e6dfd6; font-size: 16px; font-weight: 700; cursor: pointer; }
.bgrs-faq details p { margin: 0 0 14px !important; color: #bdb6ae; line-height: 1.6; }

/* --------------------------------------------------------- Server page */

.bgrs-crumbs { margin: 0 0 18px; }
.bgrs-crumbs a { display: inline-flex; gap: 8px; align-items: center; color: var(--brs-dim, #8c8781) !important; font-weight: 700; text-transform: uppercase; }
.bgrs-crumbs a:hover { color: #fff !important; }

.bgrs-one .brs-head__title { text-transform: none; overflow-wrap: anywhere; }

.bgrs-top {
	display: flex;
	flex-wrap: wrap;
	gap: 22px 40px;
	align-items: center;
	justify-content: space-between;
	margin: -8px 0 22px;
	padding: 20px 22px;
	background: var(--bgrs-panel);
	border-left: 3px solid var(--brs-red, #cd402b);
}

.bgrs-top__left { display: flex; flex: 1 1 468px; flex-direction: column; gap: 14px; max-width: 520px; }
.bgrs-top__status { display: flex; gap: 18px; align-items: center; }
.bgrs-top__status .bgrs-players { flex: 1; max-width: 300px; }
.bgrs-top__right { flex: 1 1 320px; max-width: 440px; }
.bgrs-top__hint { margin: 10px 0 0 !important; color: var(--brs-dim, #8c8781); font-size: 13px; line-height: 1.5; }

.bgrs-pill {
	display: inline-block;
	padding: 4px 10px;
	background: #333;
	color: #e6dfd6;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bgrs-pill.is-ok { background: var(--bgrs-ok); color: #eef2e3; }
.bgrs-pill.is-bad { background: var(--bgrs-bad); color: #fbe9e4; }
.bgrs-pill.is-warn { background: #6b4f1d; color: #f6e6c4; }

.bgrs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.bgrs-cols__main, .bgrs-cols__side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.bgrs-box__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.bgrs-box__head h2 { margin-bottom: 14px !important; }

.bgrs-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.bgrs-tabs button {
	height: 32px;
	padding: 0 12px;
	border: 0;
	background: #2a2a28;
	color: #c9c3bc;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.bgrs-tabs button.is-on { background: var(--brs-green, #5a6e37); color: #e4e8d8; }

.bgrs-chart { display: block; width: 100%; height: 200px; background: #121211; }
.bgrs-chart.is-empty { display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--brs-dim, #8c8781); text-align: center; }
.bgrs-chart__grid line { stroke: #2a2a28; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bgrs-chart__grid text { fill: #6e6a65; font-size: 11px; }
.bgrs-chart__area { fill: rgba(205, 64, 43, .18); }
.bgrs-chart__line { fill: none; stroke: #cd402b; stroke-width: 2; vector-effect: non-scaling-stroke; }

.bgrs-bars { display: flex; gap: 3px; align-items: flex-end; height: 200px; padding: 10px; background: #121211; }
.bgrs-bars span { display: flex; flex: 1; align-items: flex-end; height: 100%; }
.bgrs-bars i { display: block; width: 100%; min-height: 2px; background: #cd402b; }
.bgrs-bars span:hover i { background: #e8664f; }

.bgrs-map { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; align-items: start; }
.bgrs-map__img img { display: block; width: 100%; height: auto; background: #121211; }
.bgrs-map__none {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: #121211;
	color: var(--brs-dim, #8c8781);
	text-align: center;
}

.bgrs .bgrs-map__none .ri { font-size: 48px; color: #55524d; }
.bgrs-map__none p { margin: 0 !important; padding: 0 20px; }
.bgrs-map__facts { margin: 0; }
.bgrs-map__facts div { padding: 10px 0; border-bottom: 1px solid var(--bgrs-line); }
.bgrs-map__facts dt { color: var(--brs-dim, #8c8781); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bgrs-map__facts dd { margin: 2px 0 0; color: #ece6de; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

.bgrs-about { color: #c9c3bc; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.bgrs-about p { margin: 0 0 12px !important; }
.bgrs-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.bgrs-info { margin: 0; }
.bgrs-info div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bgrs-line); }
.bgrs-info div:last-child { border-bottom: 0; }
.bgrs-info dt { display: flex; gap: 8px; align-items: center; color: var(--brs-dim, #8c8781); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bgrs .bgrs-info dt .ri { color: var(--brs-icon, #8f8a85); font-size: 16px; }
.bgrs-info dd { margin: 0; color: #ece6de; font-size: 14px; overflow-wrap: anywhere; }

.bgrs-more { margin: 0 0 0 18px !important; line-height: 1.7; }
.bgrs-cta p { color: #bdb6ae; line-height: 1.55; }
.bgrs-cta .brs-btn { margin: 4px 0 12px; }

/* ------------------------------------------------------------- Account */

.bgrs-acc__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 0 0 20px; }
.bgrs-acc__head h2 { margin: 0 0 6px !important; color: #ece6de !important; font-size: 24px !important; text-transform: uppercase; }
.bgrs-acc__head p { margin: 0 !important; color: #bdb6ae; }

.bgrs-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--bgrs-ok); background: #1e2418; color: #dfe6d0; }
.bgrs-note.is-error { border-left-color: var(--bgrs-bad); background: #2a1814; color: #f3d4cc; }

.bgrs-acc__item {
	display: grid;
	grid-template-columns: minmax(0, 468px) minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	margin: 0 0 10px;
	padding: 14px 16px;
	background: var(--bgrs-panel);
}

.bgrs-acc__info h3 { margin: 0 0 6px !important; font-size: 17px !important; text-transform: none !important; overflow-wrap: anywhere; }
.bgrs-acc__info p { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 !important; color: #bdb6ae; font-size: 14px; }
.bgrs-acc__warn { grid-column: 1 / -1; margin: 0 !important; color: #f0d79e; }
.bgrs-acc__act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bgrs-acc__act form { margin: 0; }
.bgrs-del.is-sure .brs-btn { background: var(--brs-red, #cd402b); color: #fff !important; }
.bgrs-del.is-sure .brs-btn .ri { color: #fff; }
.bgrs-acc__act .brs-btn { height: 40px; padding: 0 12px; gap: 8px; }

.bgrs-form fieldset { margin: 0 0 18px; padding: 18px 20px 20px; border: 0; background: var(--bgrs-panel); }
.bgrs-form legend { display: flex; gap: 10px; align-items: center; float: left; width: 100%; margin: 0 0 14px; padding: 0; color: #ece6de; font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bgrs-form legend + * { clear: both; }
.bgrs .bgrs-form legend .ri { color: var(--brs-red, #cd402b); }
.bgrs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bgrs-field.is-wide { grid-column: 1 / -1; }
.bgrs-help { margin: 10px 0 0 !important; color: var(--brs-dim, #8c8781); font-size: 13px; }
/* The file button, in English and the site's style (the browser's own is hidden, still focusable). */
.bgrs-file { position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-height: 46px; }
.bgrs .bgrs-file__input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.bgrs-file__btn { pointer-events: none; height: 42px; padding: 0 16px; gap: 8px; }
.bgrs .bgrs-file__btn .ri { font-size: 18px; }
.bgrs-file__name { color: #c9c3bc; font-size: 14px; overflow-wrap: anywhere; }
.bgrs-file__input:focus-visible + .bgrs-file__btn { outline: 2px solid #8aa356; outline-offset: 2px; }
.bgrs-file:hover .bgrs-file__btn { background: var(--brs-btn-hi, #2b2b2a); color: #fff !important; }

.bgrs-mapthumb { display: block; width: 160px; height: 160px; object-fit: cover; background: #121211; }

.bgrs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bgrs-tags > span { width: 100%; color: var(--brs-dim, #8c8781); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bgrs-tag { position: relative; margin: 0; cursor: pointer; }
.bgrs-tag input { position: absolute; opacity: 0; pointer-events: none; }
.bgrs-tag span { display: inline-block; padding: 7px 12px; background: #2a2a28; color: #c9c3bc; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.bgrs-tag input:checked + span { background: var(--brs-green, #5a6e37); color: #eef2e3; }
.bgrs-tag input:focus-visible + span { outline: 2px solid #8aa356; }

.bgrs-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; color: #d9d2ca; line-height: 1.45; cursor: pointer; }
.bgrs-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.bgrs-rules { margin: 18px 0; }
.bgrs-form__send { display: flex; justify-content: flex-end; }
.bgrs-form__send .brs-btn { height: 52px; padding: 0 26px; }

/* ------------------------------------------------------------- Smaller */

@media (max-width: 1200px) {
	.bgrs-table__head { display: none; }
	.bgrs-row {
		grid-template-columns: 46px minmax(0, 1fr) 170px;
		grid-template-areas: "rank main players" "rank main wipe" "rank main where" "rank go go";
	}
	.bgrs-row__rank { grid-area: rank; align-self: start; }
	.bgrs-row__main { grid-area: main; }
	.bgrs-row__players { grid-area: players; }
	.bgrs-row__wipe { grid-area: wipe; }
	.bgrs-row__where { grid-area: where; }
	.bgrs-row__go { grid-area: go; }
	.bgrs-row__label { display: block; color: var(--brs-dim, #8c8781); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
	.bgrs-connect { justify-content: flex-start; }
	.bgrs-cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.bgrs-row {
		grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "rank main main" ". players players" ". wipe where" ". go go";
		gap: 12px;
		padding: 12px;
	}
	.bgrs-row__rank { font-size: 16px; }
	.bgrs-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
	.bgrs-filters .is-search, .bgrs-filters__go { grid-column: 1 / -1; }
	.bgrs-filters__go .brs-btn { flex: 1; }
	.bgrs-guide { grid-template-columns: 1fr; }
	.bgrs-map { grid-template-columns: 1fr; }
	.bgrs-info div { grid-template-columns: 120px minmax(0, 1fr); }
	.bgrs-hero__stats > div { flex: 1 1 30%; min-width: 0; }
	.bgrs-hero__stats .brs-btn { flex: 1 1 100%; }
	.bgrs-connect .brs-btn { flex: 1; }
	.bgrs-acc__item { grid-template-columns: 1fr; }
	.bgrs-acc__act { justify-content: flex-start; }
	.bgrs-top { padding: 16px; }
	.bgrs-top__status { flex-wrap: wrap; }
	.bgrs-guide__col, .bgrs-faq, .bgrs-box, .bgrs-rules, .bgrs-form fieldset { padding: 16px; }
}
