/* Guest access — MEAT74-style header card and mobile nav */

.b16-guest-header {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.b16-guest-header__login,
.b16-guest-header__register {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	border-radius: 12px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.b16-guest-header__login {
	background: rgba(96, 165, 250, 0.16);
	color: #93c5fd;
}

.b16-guest-header__login:hover {
	background: rgba(96, 165, 250, 0.28);
	color: #bfdbfe;
}

.b16-guest-header__register {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.82);
}

.b16-guest-header__register:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.b16-guest-card {
	margin-bottom: 12px;
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.b16-guest-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.b16-guest-card__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	font-size: 18px;
}

.b16-guest-card__title {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
}

.b16-guest-card__text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.55);
}

.b16-guest-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b16-guest-card__login,
.b16-guest-card__register {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 11px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.b16-guest-card__login {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #fff;
}

.b16-guest-card__register {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.85);
}

.b16-mobile-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1070;
	padding: 0 0 calc(env(safe-area-inset-bottom));
	background: rgba(14, 14, 18, 0.98);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.b16-mobile-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	padding: 8px 4px 6px;
}

.b16-mobile-nav__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	padding: 4px 2px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.42);
	text-decoration: none;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
	position: relative;
	z-index: 1;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
}

.b16-mobile-nav__item i {
	font-size: 22px;
	line-height: 1;
}

.b16-mobile-nav__item.is-active,
.b16-mobile-nav__item.is-active i {
	color: #a78bfa;
}

.b16-mobile-dock__brand {
	display: flex;
	justify-content: center;
	padding: 0 12px 10px;
}

.b16-mobile-dock__brand span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	max-width: calc(100% - 24px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-auth-modal .modal-content {
	background: #1a1a22;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	color: #fff;
}

.b16-auth-modal .modal-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 20px;
}

.b16-auth-modal .modal-title {
	font-size: 18px;
	font-weight: 800;
}

.b16-auth-modal .close {
	color: #fff;
	opacity: 0.6;
	text-shadow: none;
}

.b16-auth-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.b16-auth-form__field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.b16-auth-form__field i {
	color: rgba(255, 255, 255, 0.35);
	font-size: 18px;
}

.b16-auth-form__field input {
	flex: 1;
	border: none;
	background: transparent;
	color: #fff;
	padding: 12px 0;
	font-size: 14px;
	outline: none;
}

.b16-auth-form__submit {
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.b16-auth-form__result {
	font-size: 13px;
	text-align: center;
}

.b16-auth-form__links {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
}

.b16-auth-form__links a,
.b16-auth-form__switch {
	color: #93a0ff;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.b16-auth-form__social {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding-top: 4px;
}

.b16-auth-form__soc {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	text-decoration: none;
}

.b16-auth-form__soc--steam {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.b16-auth-form__soc--vk {
	background: rgba(96, 165, 250, 0.16);
	color: #60a5fa;
}

.b16-auth-form__agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.b16-auth-form__agree a {
	color: #93a0ff;
}

.b16-chat__guest button {
	background: none;
	border: none;
	padding: 0;
	color: #93a0ff;
	cursor: pointer;
	font: inherit;
}

.b16-chat__guest button:hover {
	text-decoration: underline;
}

.b16-mobile-sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1058;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.b16-mobile-sheet-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.b16-mobile-sheet {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: calc(var(--b16-mobile-dock-h, 92px) + env(safe-area-inset-bottom));
	z-index: 1060;
	display: flex;
	flex-direction: column;
	pointer-events: none;
	visibility: hidden;
}

.b16-mobile-sheet.is-open {
	pointer-events: auto;
	visibility: visible;
}

.b16-mobile-sheet__panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-top: 0;
	background: #0a0a0e;
	transform: translateY(100%);
	transition: transform 0.28s ease;
}

.b16-mobile-sheet.is-open .b16-mobile-sheet__panel {
	transform: translateY(0);
}

.b16-mobile-sheet__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 12px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(14, 14, 18, 0.98);
	flex-shrink: 0;
}

.b16-mobile-sheet__back {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	cursor: pointer;
	flex-shrink: 0;
}

.b16-mobile-sheet__title {
	flex: 1;
	margin: 0;
	text-align: center;
	padding-right: 40px;
	font-size: 17px;
	font-weight: 800;
	color: #fff;
}

.b16-mobile-sheet__body {
	flex: 1;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
}

.b16-mobile-balance {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.b16-mobile-balance__item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-decoration: none !important;
	color: #fff;
}

.b16-mobile-balance__item--rub {
	background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 255, 255, 0.03));
	border-color: rgba(124, 92, 255, 0.28);
}

.b16-mobile-balance__item--btc {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.03));
	border-color: rgba(245, 158, 11, 0.28);
}

.b16-mobile-balance__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.55);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.b16-mobile-balance__value {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	font-weight: 800;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-mobile-balance__plus {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #7c5cff;
	color: #fff;
	font-size: 14px;
	flex-shrink: 0;
}

.b16-mobile-balance--guest {
	grid-template-columns: 1fr;
}

.b16-mobile-balance__login {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px dashed rgba(124, 92, 255, 0.35);
	border-radius: 14px;
	background: rgba(124, 92, 255, 0.08);
	color: #c4b5fd;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.b16-mobile-service-group {
	margin-bottom: 12px;
	padding: 14px 12px 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.b16-mobile-service-group__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.b16-mobile-service-group__icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.b16-mobile-service-group__icon--shop { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.b16-mobile-service-group__icon--girl { background: rgba(244, 114, 182, 0.16); color: #f472b6; }
.b16-mobile-service-group__icon--ban { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.b16-mobile-service-group__icon--gift { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.b16-mobile-service-group__icon--info { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }

.b16-mobile-service-group__title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.b16-mobile-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.b16-mobile-service-grid--6 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b16-mobile-service-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 88px;
	padding: 10px 6px;
	border: none;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.b16-mobile-service-item:active {
	transform: scale(0.98);
	background: rgba(255, 255, 255, 0.07);
}

.b16-mobile-service-item__icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(96, 165, 250, 0.12);
	color: #93c5fd;
	font-size: 22px;
}

.b16-mobile-service-item__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.b16-mobile-rules-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b16-mobile-rules-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: #fff;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}

.b16-mobile-rules-item__icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(96, 165, 250, 0.12);
	color: #93c5fd;
	font-size: 20px;
	flex-shrink: 0;
}

.b16-mobile-rules-item__text {
	flex: 1;
	min-width: 0;
}

.b16-mobile-rules-item__text strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.b16-mobile-rules-item__text small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}

.b16-mobile-rules-item__arrow {
	font-size: 20px;
	color: rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

body.b16-mobile-sheet-active {
	overflow: hidden;
}

@media (max-width: 991.98px) {
	:root {
		--b16-mobile-dock-h: 92px;
	}

	.b16-layout__body > .b16-mega-shell {
		display: none !important;
	}

	.b16-layout__body {
		--b16-header-total: 0px;
	}

	.b16-layout__main > .b16-mega-shell {
		display: none !important;
	}

	.b16-mobile-chat-shell {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: calc(var(--b16-mobile-dock-h, 92px) + env(safe-area-inset-bottom));
		z-index: 1072;
		pointer-events: none;
	}

	.b16-mobile-chat-shell.is-open {
		display: flex;
		flex-direction: column;
		pointer-events: auto;
	}

	.b16-mobile-chat-shell__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.55);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.b16-mobile-chat-shell__backdrop.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.b16-mobile-chat-shell__mount {
		position: relative;
		flex: 1;
		min-height: 0;
		display: flex;
		flex-direction: column;
		z-index: 1;
	}

	.b16-mobile-chat-shell.is-open #b16-chat-column {
		display: flex !important;
		flex: 1;
		flex-direction: column;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	.b16-mobile-chat-shell.is-open #b16-chat-panel {
		display: flex !important;
		flex: 1;
		min-height: 0;
	}

	.b16-guest-header__login span,
	.b16-guest-header__register span {
		display: none;
	}

	.b16-guest-header__login,
	.b16-guest-header__register {
		padding: 8px 10px;
	}

	.b16-layout.wapper > .content,
	.b16-layout__body {
		padding-bottom: calc(var(--b16-mobile-dock-h, 92px) + env(safe-area-inset-bottom));
	}

	.b16-footer,
	.b16-footer-stats,
	.b16-footer__gcms {
		display: none !important;
	}

	.b16-mobile-dock__brand {
		display: none !important;
	}

	.version_fixed {
		display: none !important;
	}

	#hidden_modals {
		position: relative;
		z-index: 1090;
	}

	#hidden_modals .modal {
		z-index: 1090 !important;
	}

	.modal {
		z-index: 1090 !important;
	}

	.modal-backdrop {
		z-index: 1075 !important;
	}

	.b16-online-modal .modal-dialog {
		margin: 16px auto;
		max-width: min(420px, calc(100vw - 24px));
	}

	.b16-online-modal .modal-content {
		background: #14151a;
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 18px;
		color: #fff;
	}

	.b16-online-modal .close {
		color: #fff;
		opacity: 0.75;
		text-shadow: none;
	}

	.b16-online-modal__list {
		max-height: min(60vh, 420px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (min-width: 992px) {
	.b16-mobile-dock {
		display: none !important;
	}
}

@media (max-width: 1199.98px) {
	.b16-guest-card {
		display: none;
	}
}

@media (min-width: 1200px) {
	.b16-layout--home .b16-guest-header {
		display: none;
	}
}
