/* Блочная главная (16bitcs) */

.b16-layout__main:has(.b16-home) {
	background: #121216;
}

.b16-home {
	flex: 1;
	min-width: 0;
	padding: 8px 16px 20px;
}

.b16-home__stack {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 100%;
}

.b16-home-panel {
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.b16-home-panel--compact {
	padding-bottom: 0;
}

.b16-home-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.b16-home-panel__title {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38);
}

.b16-home-panel__head .b16-home-panel__title {
	margin-bottom: 0;
}

.b16-home-panel__action {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none !important;
}

.b16-home-panel__action:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Быстрый доступ */
.b16-quick-access {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.b16-quick-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 88px;
	padding: 12px 8px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
	text-decoration: none !important;
	transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.b16-quick-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
	text-decoration: none;
}

.b16-quick-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.b16-quick-card__icon--pink { background: rgba(236, 72, 153, 0.14); color: #f472b6; }
.b16-quick-card__icon--purple { background: rgba(139, 92, 246, 0.14); color: #a78bfa; }
.b16-quick-card__icon--blue { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.b16-quick-card__icon--gold { background: rgba(234, 179, 8, 0.14); color: #facc15; }
.b16-quick-card__icon--cyan { background: rgba(34, 211, 238, 0.14); color: #22d3ee; }
.b16-quick-card__icon--orange { background: rgba(249, 115, 22, 0.14); color: #fb923c; }

.b16-quick-card__label {
	font-size: 11px;
	font-weight: 600;
	color: #e8e8ec;
	text-align: center;
	line-height: 1.2;
}

/* Скачать CS */
.b16-download-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.b16-download-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s;
}

.b16-download-card:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

.b16-download-card__thumb {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
	background-color: rgba(255, 255, 255, 0.06);
}

.b16-download-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b16-download-card__name {
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
}

.b16-download-card__btn {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(59, 130, 246, 0.22);
	border: 1px solid rgba(59, 130, 246, 0.35);
	color: #93c5fd;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Разделы — 4 высокие карточки под вертикальные арты */
.b16-sections-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.b16-section-card {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	min-height: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #0e0e12;
	border: 1px solid rgba(255, 255, 255, 0.04);
	text-decoration: none !important;
	transition: transform 0.2s;
}

.b16-section-card:hover {
	transform: translateY(-2px);
	box-shadow: none;
	text-decoration: none;
}

.b16-section-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #0e0e12;
}

.b16-section-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

/* Название уже на арте — оставляем для a11y */
.b16-section-card__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Мониторинг серверов */
/* Топ игроков */
.b16-home-panel--stats-top {
	padding-bottom: 14px;
}

.b16-stats-top__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.b16-stats-top__updated {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	white-space: nowrap;
}

.b16-stats-top__empty {
	margin: 0;
	padding: 12px 4px 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.5;
}

.b16-stats-top__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.b16-stats-top__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.b16-stats-top__table th,
.b16-stats-top__table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	white-space: nowrap;
}

.b16-stats-top__table th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
}

.b16-stats-top__table tbody tr:last-child td {
	border-bottom: none;
}

.b16-stats-top__table tbody tr:hover {
	background: rgba(124, 92, 255, 0.04);
}

.b16-stats-top__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 8px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.05);
}

.b16-stats-top__rank--top1 {
	color: #ffd166;
	background: rgba(255, 209, 102, 0.12);
}

.b16-stats-top__rank--top2 {
	color: #c8d6e5;
	background: rgba(200, 214, 229, 0.1);
}

.b16-stats-top__rank--top3 {
	color: #e59866;
	background: rgba(229, 152, 102, 0.12);
}

.b16-stats-top__player {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 140px;
}

.b16-stats-top__avatar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.b16-stats-top__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b16-stats-top__name {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
}

a.b16-stats-top__name:hover {
	color: #7c5cff;
}

.b16-stats-top__score.is-positive {
	color: #7bed9f;
	font-weight: 700;
}

.b16-stats-top__score.is-negative {
	color: #ff6b6b;
	font-weight: 700;
}

.b16-stats-top__time {
	color: rgba(255, 255, 255, 0.45);
	font-size: 12px;
}

@media (max-width: 640px) {
	.b16-stats-top__updated {
		display: none;
	}

	.b16-stats-top__table th:nth-child(7),
	.b16-stats-top__table td:nth-child(7) {
		display: none;
	}
}

.b16-home-panel--monitoring {
	padding-bottom: 16px;
}

.b16-monitoring__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(124, 92, 255, 0.14);
	border: 1px solid rgba(124, 92, 255, 0.28);
	color: #c4b5fd;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.b16-monitoring__badge i {
	font-size: 14px;
}

.b16-monitoring__track {
	overflow: visible;
	margin-top: 4px;
}

.b16-monitoring #servers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	max-height: none;
	overflow: visible;
	padding: 0;
	flex-direction: unset;
	flex-wrap: unset;
	align-items: stretch;
}

.b16-srv-empty {
	grid-column: 1 / -1;
	padding: 28px 16px;
	text-align: center;
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
}

.b16-srv-card {
	position: relative;
	min-height: 112px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: #16161c;
	isolation: isolate;
}

.b16-srv-card__map {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.28;
	filter: saturate(0.85);
	z-index: 0;
}

.b16-srv-card__map::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12, 12, 16, 0.92) 0%, rgba(12, 12, 16, 0.72) 55%, rgba(12, 12, 16, 0.45) 100%);
}

.b16-srv-card__body {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 112px;
	padding: 14px 14px 14px 16px;
}

.b16-srv-card__gauge {
	position: relative;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.b16-srv-card__gauge svg {
	display: block;
	width: 58px;
	height: 58px;
	transform: rotate(-90deg);
}

.b16-srv-card__ring-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.12);
	stroke-width: 4;
}

.b16-srv-card__ring {
	fill: none;
	stroke: #7c5cff;
	stroke-width: 4;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.35s ease;
}

.b16-srv-card__count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.b16-srv-card__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.b16-srv-card__name {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.b16-srv-card__meta {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.48);
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.b16-srv-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.b16-srv-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.b16-srv-card__btn i {
	font-size: 18px;
	line-height: 1;
}

.b16-srv-card__btn--play {
	background: #7c5cff;
	color: #fff;
}

.b16-srv-card__btn--play:hover {
	background: #8f74ff;
	color: #fff;
	transform: scale(1.06);
	text-decoration: none !important;
}

.b16-srv-card__btn--copy,
.b16-srv-card__btn--cog {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.75);
}

.b16-srv-card__btn--copy:hover,
.b16-srv-card__btn--cog:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transform: scale(1.06);
}

.b16-monitoring .loader {
	grid-column: 1 / -1;
	min-height: 112px;
}

/* Навигация — компактные вертикальные карточки */
.b16-home-panel .home-nav-cards {
	margin: 0;
}

.b16-home-panel .home-nav-cards__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.b16-home .home-nav-card {
	min-height: 0;
	height: 124px;
	max-height: 124px;
	aspect-ratio: auto;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: none;
}

.b16-home .home-nav-card:hover {
	box-shadow: none;
	transform: translateY(-1px);
}

.b16-home .home-nav-card::before {
	background: linear-gradient(
		180deg,
		rgba(14, 14, 18, 0.08) 0%,
		rgba(14, 14, 18, 0.22) 40%,
		rgba(14, 14, 18, 0.78) 78%,
		rgba(14, 14, 18, 0.94) 100%
	);
}

.b16-home .home-nav-card__bg {
	object-position: center 30%;
}

.b16-home .home-nav-card__icon {
	top: 8px;
	left: 8px;
	width: 28px;
	height: 28px;
	font-size: 14px;
	border-radius: 8px;
}

.b16-home .home-nav-card__title {
	left: 8px;
	right: 8px;
	bottom: 8px;
	font-size: 11px;
	line-height: 1.15;
}

@media (min-width: 1200px) {
	.b16-home .home-nav-card {
		height: 132px;
		max-height: 132px;
	}

	.b16-home .home-nav-card__title {
		font-size: 12px;
	}
}

/* Активности: два баннера рядом — уже и выше */
.b16-activities-layout {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.b16-activities-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.b16-activity-fav-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: start;
	min-width: 0;
}

.b16-activity-fav-row.has-favorites {
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
}

.b16-activity-fav-row__servers:empty {
	display: none;
}

.b16-home-fav-monitoring {
	min-width: 0;
}

.b16-home-fav-monitoring__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b16-home-fav-monitoring .servers-info-block {
	min-width: 0 !important;
	width: 100% !important;
	flex: 0 0 auto;
	height: 100px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.05);
	background-color: rgba(255, 255, 255, 0.02);
}

.b16-home-fav-monitoring .servers-info-block .map_back_server {
	opacity: 0.55;
}

.b16-activity-banner {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	height: auto;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(124, 92, 255, 0.18);
	border-radius: 12px;
	overflow: hidden;
	background: #0e0e12;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.b16-activity-banner:hover {
	transform: translateY(-1px);
	border-color: rgba(124, 92, 255, 0.4);
	box-shadow: 0 8px 22px rgba(124, 92, 255, 0.16);
	text-decoration: none !important;
}

.b16-activity-banner__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

/* Баннер казино — верх главной */
.b16-casino-teaser {
	--b16-casino-font: "Monoton", "Segoe UI", cursive;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 14px;
	width: 100%;
	min-height: 88px;
	height: 96px;
	padding: 12px 48px 14px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(232, 121, 249, 0.28);
	background:
		radial-gradient(ellipse 70% 120% at 50% 120%, rgba(192, 38, 211, 0.22), transparent 55%),
		radial-gradient(ellipse 50% 80% at 80% 0%, rgba(251, 191, 36, 0.1), transparent 50%),
		linear-gradient(180deg, #16141c 0%, #0e0c12 100%);
	text-decoration: none !important;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.b16-casino-teaser:hover {
	transform: translateY(-1px);
	border-color: rgba(232, 121, 249, 0.5);
	box-shadow: 0 8px 22px rgba(168, 85, 247, 0.16);
	text-decoration: none !important;
}

.b16-casino-teaser__word {
	position: relative;
	z-index: 1;
	font-family: var(--b16-casino-font);
	font-size: clamp(34px, 5.2vw, 52px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffe566;
	text-shadow:
		0 0 6px rgba(255, 45, 149, 0.95),
		0 0 18px rgba(232, 121, 249, 0.75),
		0 0 36px rgba(192, 38, 211, 0.45),
		0 2px 0 rgba(120, 20, 80, 0.55);
	pointer-events: none;
}

.b16-casino-teaser__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.b16-casino-teaser__hint {
	position: relative;
	z-index: 1;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.55);
}

.b16-casino-teaser__age {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 24px;
	padding: 0 7px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(251, 191, 36, 0.45);
	color: #fbbf24;
	font-size: 11px;
	font-weight: 800;
}

@media (max-width: 991.98px) {
	.b16-casino-teaser {
		height: 86px;
		min-height: 80px;
		margin-bottom: 12px;
		padding: 10px 40px 12px;
	}

	.b16-casino-teaser__word {
		font-size: clamp(28px, 9vw, 40px);
		letter-spacing: 0.1em;
	}
}

@media (max-width: 575.98px) {
	.b16-casino-teaser {
		height: 78px;
	}

	.b16-casino-teaser__hint {
		font-size: 10px;
	}
}

.b16-activity-card {
	position: relative;
	min-height: 160px;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	text-decoration: none !important;
	transition: transform 0.2s;
}

.b16-activity-card--wide {
	min-height: 180px;
}

.b16-activity-card:hover {
	transform: translateY(-1px);
	box-shadow: none;
	text-decoration: none;
}

.b16-activity-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.3s;
}

.b16-activity-card:hover .b16-activity-card__bg {
	transform: scale(1.04);
}

.b16-activity-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.b16-activity-card__title,
.b16-activity-card__subtitle {
	position: relative;
	z-index: 2;
}

.b16-activity-card__title {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	text-transform: uppercase;
}

.b16-activity-card__subtitle {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
}

.b16-fav-picker__hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
}

.b16-fav-picker__empty {
	margin: 0;
	padding: 18px 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
}

.b16-fav-picker__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 420px;
	overflow: auto;
	padding-right: 2px;
}

.b16-fav-picker__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: #fff;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.b16-fav-picker__item:hover {
	background: rgba(124, 92, 255, 0.1);
	border-color: rgba(124, 92, 255, 0.35);
}

.b16-fav-picker__item.is-fav {
	border-color: rgba(124, 92, 255, 0.45);
	background: rgba(124, 92, 255, 0.12);
}

.b16-fav-picker__star {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #a78bfa;
	background: rgba(124, 92, 255, 0.14);
	font-size: 16px;
}

.b16-fav-picker__item.is-fav .b16-fav-picker__star {
	color: #7c5cff;
}

.b16-fav-picker__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.b16-fav-picker__info strong {
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-fav-picker__info small {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}

.b16-fav-picker__action {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
}

.b16-fav-picker__item.is-fav .b16-fav-picker__action {
	color: #a78bfa;
}

.b16-home-news {
	margin: 0;
}

@media (max-width: 1399.98px) {
	.b16-quick-access {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.b16-download-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.b16-sections-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.b16-activities-grid {
		grid-template-columns: 1fr 1fr;
	}

	.b16-activities-grid--duo {
		grid-template-columns: 1fr 1fr;
	}

	.b16-activity-fav-row.has-favorites {
		grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
	}

	.b16-activity-card--wide {
		grid-column: 1 / -1;
	}

	.b16-home-panel .home-nav-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.b16-home {
		padding: 10px 10px 16px;
	}

	.b16-home-panel {
		padding: 0;
		border-radius: 0;
	}

	.b16-quick-access {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.b16-download-row,
	.b16-sections-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.b16-activities-duo {
		grid-template-columns: 1fr;
	}

	.b16-activity-fav-row.has-favorites {
		grid-template-columns: 1fr;
	}

	.b16-home-panel .home-nav-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.b16-home .home-nav-card {
		height: 118px;
		max-height: 118px;
	}

	.b16-activity-card--wide {
		grid-column: 1 / -1;
	}

	.b16-monitoring #servers {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.b16-monitoring__track {
		overflow: visible;
	}
}

/* Режимы серверов */
.b16-home-panel--modes {
	padding-bottom: 8px;
}

.b16-modes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 220px));
	gap: 12px;
	justify-content: start;
}

.b16-mode-card {
	position: relative;
	display: block;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 9 / 16;
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #0e0e12;
	cursor: pointer;
	text-align: left;
	isolation: isolate;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b16-mode-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.b16-mode-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #0e0e12;
}

.b16-mode-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.b16-mode-card__online {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
}

.b16-mode-card__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 0 10px rgba(34, 197, 94, 0.7);
}

.b16-mode-card__online-num {
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.b16-mode-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 40px 12px 12px;
	background: linear-gradient(180deg, rgba(8, 8, 12, 0) 0%, rgba(8, 8, 12, 0.72) 55%, rgba(8, 8, 12, 0.92) 100%);
}

/* Название уже на арте — дубли не показываем */
.b16-mode-card__title,
.b16-mode-card__subtitle {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.b16-mode-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 9px 12px;
	border-radius: 999px;
	background: rgba(10, 10, 14, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.b16-mode-card__cta i {
	font-size: 16px;
}

.b16-mode-modal__dialog {
	max-width: 920px;
	margin: 40px auto;
}

.b16-mode-modal__content {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: #16161c;
	padding: 0;
	overflow: hidden;
}

.b16-mode-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 8px;
}

.b16-mode-modal__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px dashed rgba(167, 139, 250, 0.55);
	background: rgba(124, 92, 255, 0.08);
	color: #e9e0ff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.b16-mode-modal__badge i {
	font-size: 16px;
	color: #c4b5fd;
}

.b16-mode-modal__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.b16-mode-modal__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.b16-mode-modal__body {
	padding: 12px 18px 18px;
}

.b16-mode-modal__empty {
	padding: 28px 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
}

.b16-mode-modal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.b16-mode-server {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-radius: 12px;
	background: #1c1c24;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.b16-mode-server__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.b16-mode-server__name {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.b16-mode-server__info {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
}

.b16-mode-server__info:hover {
	color: #fff;
}

.b16-mode-server__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.b16-mode-server__map {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-mode-server__players {
	font-size: 12px;
	font-weight: 800;
	color: #fb923c;
	white-space: nowrap;
}

.b16-mode-server__bar {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.b16-mode-server__bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #7c5cff;
}

.b16-mode-server__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 2px;
}

.b16-mode-server__addr {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-mode-server__flag {
	width: 16px;
	height: 11px;
	border-radius: 2px;
	flex-shrink: 0;
	background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.b16-mode-server__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: #fff;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.06);
}

.b16-mode-server__play:hover {
	background: #7c5cff;
	color: #fff;
	text-decoration: none !important;
}

.b16-mode-server__play i {
	font-size: 18px;
}

@media (max-width: 1100px) {
	.b16-mode-modal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.b16-modes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 100%;
	}

	.b16-mode-card {
		max-width: none;
	}

	.b16-mode-modal__grid {
		grid-template-columns: 1fr;
	}
}

/* Партнёрский баннер CS-HOST */
.b16-home-panel--partner {
	margin: 0;
}

.b16-cshost {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 112px;
	padding: 22px 26px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(124, 92, 255, 0.28);
	background:
		radial-gradient(ellipse 55% 120% at 0% 50%, rgba(124, 92, 255, 0.22), transparent 60%),
		radial-gradient(ellipse 40% 90% at 100% 0%, rgba(56, 189, 248, 0.1), transparent 55%),
		linear-gradient(135deg, #16161e 0%, #101016 48%, #0c0c12 100%);
	text-decoration: none !important;
	color: #fff;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.b16-cshost:hover {
	transform: translateY(-2px);
	border-color: rgba(124, 92, 255, 0.5);
	box-shadow: 0 10px 28px rgba(124, 92, 255, 0.18);
	text-decoration: none !important;
	color: #fff;
}

.b16-cshost__glow {
	position: absolute;
	inset: -40% auto -40% -10%;
	width: 46%;
	background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 68%);
	pointer-events: none;
	animation: b16-cshost-pulse 4.5s ease-in-out infinite;
}

.b16-cshost__grid {
	position: absolute;
	inset: 0;
	opacity: 0.14;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 75%);
	pointer-events: none;
}

@keyframes b16-cshost-pulse {
	0%, 100% { opacity: 0.55; transform: translateX(0); }
	50% { opacity: 1; transform: translateX(8px); }
}

.b16-cshost__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	max-width: 640px;
}

.b16-cshost__brand {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #a78bfa;
}

.b16-cshost__title {
	font-size: clamp(18px, 2.1vw, 24px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #fff;
}

.b16-cshost__text {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.55);
}

.b16-cshost__cta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.b16-cshost__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #7c5cff 0%, #5b8cff 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.b16-cshost:hover .b16-cshost__btn {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 8px 22px rgba(124, 92, 255, 0.45);
	filter: brightness(1.05);
}

.b16-cshost__note {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767.98px) {
	.b16-cshost {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 18px 18px 16px;
		min-height: 0;
	}

	.b16-cshost__cta {
		align-items: flex-start;
		width: 100%;
	}

	.b16-cshost__btn {
		width: 100%;
	}
}
