html.theme_dark body, html body.bg_dark {
	--text-color: #fff;
	--accent-btn-color: #1c93e3;
	--body-bg: #000;
	--box-bg: #1e1e1e;
	--box-bg-blured: rgba(34, 34, 34, 0.84);
	--tme-logo-color: #fff;
	--accent-link-color: #3ca1eb;
}
body {
	background: var(--body-bg);
}
body, html.theme_dark body.bg_light {
	--text-color: #000;
	--second-text-color: #7d7f81;
	--accent-btn-color: #2481cc;
	--accent-color-hover: #1a8ad5;
	--body-bg: #fff;
	--box-bg: #fff;
	--box-bg-blured: rgba(255, 255, 255, 0.84);
	--tme-logo-color: #363b40;
	--accent-link-color: #2481cc;
	--icon-verified: url(data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20width%3D%2226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m6%206h12v12h-12z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20clip-rule%3D%22evenodd%22%20d%3D%22m14.38%201.51%201.82%201.82c.37.37.86.57%201.38.57h2.57c1.01%200%201.85.77%201.94%201.76l.01.19v2.57c0%20.52.21%201.01.57%201.38l1.82%201.82c.71.71.76%201.84.13%202.61l-.13.15-1.82%201.82c-.37.37-.57.86-.57%201.38v2.57c0%201.01-.77%201.85-1.76%201.94l-.19.01h-2.57c-.52%200-1.01.21-1.38.57l-1.82%201.82c-.71.71-1.84.76-2.61.13l-.15-.13-1.82-1.82c-.37-.37-.86-.57-1.38-.57h-2.57c-1.01%200-1.85-.77-1.94-1.76l-.01-.19v-2.57c0-.52-.21-1.01-.57-1.38l-1.82-1.82c-.71-.71-.76-1.84-.13-2.61l.13-.15%201.82-1.82c.37-.37.57-.86.57-1.38v-2.57c0-1.08.87-1.95%201.95-1.95h2.57c.52%200%201.01-.21%201.38-.57l1.82-1.82c.76-.76%202-.76%202.76%200zm3.2%208.05c-.43-.34-1.03-.31-1.42.06l-.1.11-4.45%205.56-1.75-1.75-.11-.1c-.42-.32-1.03-.29-1.42.1s-.42.99-.1%201.42l.1.11%202.6%202.6.11.1c.42.32%201.02.29%201.4-.08l.1-.11%205.2-6.5.08-.12c.27-.46.17-1.05-.25-1.4z%22%20fill%3D%22%231c93e3%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
}

* {
	box-sizing: border-box;
}

body {
	font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
	margin: 0;
	box-sizing: border-box;
}

html.theme_dark .tgme_background,
body.bg_dark .tgme_background {
	-webkit-mask: center repeat;
	mask: center repeat;
	-webkit-mask-size: 420px auto;
	-webkit-mask-image: var(--pattern-url, none);
	opacity: var(--pattern-intensity, 1);
}

html.theme_dark .tgme_background.default,
body.bg_dark .tgme_background.default {
	opacity: 0.3;
	-webkit-mask-image: url(./media/pattern.svg);
}

.tgme_background_pattern {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	mix-blend-mode: overlay;
	background: center repeat;
	background-size: 420px auto;
	background-image: var(--pattern-url, none);
	opacity: var(--pattern-intensity, 1);
}
.tgme_background_pattern.default {
	opacity: 0.3;
	background-image: url(./media/pattern.svg);
}

html.theme_dark .tgme_background_pattern,
body.bg_dark .tgme_background_pattern {
	display: none;
}

a {
	color: #2e87ca;
	text-decoration: none;
	transition: linear 0.2s;
}

a:hover {
	background-color: var(--accent-color-hover) !important;
}

img {
	vertical-align: middle;
	border: 0;
}

.tgme_background {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.verified-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	padding: 1px;
	text-indent: -10em;
	overflow: hidden;
	background: var(--icon-verified) no-repeat 0 0;
	background-size: 100%;
	vertical-align: -4px;
}

.tgme_background_wrap {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	background: var(--body-bg);
}

.tgme_page_wrap {
	font-family: "Roboto", sans-serif;
	color: var(--text-color);
}

.tgme_head_wrap {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	height: 54px;
	padding: 10px 16px;
	-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background: var(--box-bg-blured);
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
	z-index: 1;
}

.tgme_head {
	display: flex;
	justify-content: space-between;
}

.tgme_head_brand {
	display: inline-block;
	vertical-align: top;
}

.tgme_head_brand:hover {
	background-color: transparent !important;
}

a.tgme_head_right_btn {
	display: inline-block;
	font-size: 14px;
	line-height: 17px;
	font-weight: bold;
	-webkit-font-smoothing: antialiased;
	text-transform: uppercase;
	color: #fff;
	background: var(--accent-btn-color);
	padding: 9px 16px;
	height: 34px;
	border-radius: 17px;
	text-align: center;
	transition: all 0.15s ease 0.15s;
}

.tgme_body_wrap {
	padding: 70px 16px 40px;
}

.tgme_page {
	position: relative;
	margin: 16px auto;
	padding: 32px 0;
	max-width: 400px;
	background: var(--box-bg);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	transition: all 0.15s ease 0.15s;
}

.tgme_page_photo {
	text-align: center;
	padding-bottom: 16px;
}

.tgme_page a {
	color: var(--accent-link-color);
}

.tgme_page_photo_image {
	width: 122px;
	height: 122px;
	border-radius: 61px;
}

.tgme_page_title {
	font-size: 26px;
	line-height: 32px;
	font-weight: bold;
	text-align: center;
	max-width: 340px;
	padding: 0 10px;
	margin: 0 auto;
	color: var(--text-color);
	overflow: hidden;
	text-overflow: ellipsis;
}

.tgme_page_action {
	text-align: center;
	margin-top: 24px;
	line-height: 0;
}

a.tgme_action_button_new {
	font-size: 14px;
	line-height: 17px;
	font-weight: bold;
	-webkit-font-smoothing: antialiased;
	color: #fff;
	background: #5dc390;
	border-radius: 22px;
	overflow: hidden;
	display: inline-block;
	padding: 13px 24px;
	height: 42px;
	text-transform: uppercase;
	vertical-align: top;
}

a.tgme_action_button_new {
	background-color: var(--accent-btn-color);
}

a.tgme_action_button_new.shine {
	background-image: linear-gradient(
		270deg,
		rgba(100, 181, 239, 0) 48.44%,
		#64b5ef 75.52%,
		rgba(100, 181, 239, 0) 100%
	);
	background-repeat: no-repeat;
	animation: bg-move linear 5s infinite;
}

@keyframes bg-move {
	0% {
		background-position: -500px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

.tgme_page_extra {
	font-size: 15px;
	line-height: 18px;
	text-align: center;
	padding: 6px 16px 0;
	color: var(--second-text-color);
}

.tgme_page_desc_header,
.tgme_page_description,
.tgme_page_additional {
	font-size: 16px;
	line-height: 25px;
	text-align: center;
	margin: 10px 16px 0;
	padding: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tgme_page_additional {
	display: none;
	font-size: 14px;
	line-height: 23px;
	margin-top: 32px;
	color: #808080;
}

.tgme_page_additional,
.tgme_page_context_link_wrap {
	font-size: 14px;
	line-height: 16px;
	text-align: center;
	padding: 0 16px;
	margin: 20px 0 0;
	color: var(--second-text-color);
}

.tgme_page_additional {
	margin-top: 24px;
}

@media (max-width: 480px) {
	.tgme_page {
		margin-top: 0;
	}

	.tgme_page_photo_image {
		width: 110px;
		height: 110px;
		border-radius: 55px;
	}

	.tgme_page_additional {
		display: block;
	}
}
