/* MU Dayron: расстановка в три колонки.
   Подключается после style.css и переопределяет только каркас страницы:
   шапку, меню, колонки, заголовки блоков, кнопки. Таблицы рейтингов, формы,
   магазин и прочее содержимое страниц остаются на родных правилах style.css. */

/* ---------- общий фон ---------- */
/* 16.11: «Небесный город среди облаков» (2300x1366, слева срезано 88 px оригинала - лица рыцаря и эльфийки
   на равном расстоянии от середины) - чуть притемнён и с 55 % высоты плавно растворён в цвет страницы
   #0e0c1c (тёмно-синий) - ниже страница просто тёмная.
   Размер фона зависит от ширины экрана: лица (15,6 % и 84,4 % ширины картинки) всегда посередине полей
   слева и справа от колонок 1220 px: ширина картинки = 72,66 % экрана + 887 px (1366 -> 1880, 1920 -> 2282,
   2560 -> 2747), но не уже экрана.
   Прежние фоны: bg-citadel.jpg (замок, 15.11), bg-mu.jpg (демон из загрузки клиента) */
body {
	background: #0e0c1c;
	min-width: 1240px;
}

#wrapper {
	background: #0e0c1c url(../images/bg-sky.jpg) no-repeat center top;
	background-size: calc(72.66% + 887px) auto;
	background-size: max(100%, calc(72.66% + 887px)) auto;
}

#wrapper-bgtop,
#wrapper-bgbtm,
#wrapper-bgimg {
	background: none;
}

.container {
	width: 1220px;
}

/* ---------- название ---------- */
#logo-wrapper {
	height: 205px;
	overflow: visible;
	background: radial-gradient(ellipse 520px 120px at center 105px, rgba(14, 12, 28, .62), rgba(14, 12, 28, 0) 100%);
}

#logo {
	width: 1220px;
	padding: 0;
	text-align: center;
}

#logo a {
	display: inline-block;
	margin-top: 28px;
	text-decoration: none;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .85));
}

#logo a:hover {
	text-decoration: none;
}

#logo span {
	display: block;
	text-transform: uppercase;
}

#logo .logo-top {
	font-size: 19px;
	font-weight: bold;
	letter-spacing: 9px;
	text-indent: 9px;
	color: #f1dcae;
}

#logo .logo-name {
	margin: -6px 0 -8px;
	font-size: 104px;
	line-height: 118px;
	font-weight: bold;
	letter-spacing: 5px;
	text-indent: 5px;
	color: #e3c27c;
	background: linear-gradient(#fff3c9 12%, #e3c27c 46%, #a9772f 78%, #dcb86e 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

#logo .logo-sub {
	font-family: sans-serif;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 8px;
	text-indent: 8px;
	color: #f1dcae;
}

/* опыт сервера (x200) под логотипом */
#logo .logo-rate {
	display: inline-block;
	margin-top: 7px;
	padding: 3px 16px 4px;
	font-family: sans-serif;
	font-size: 16px;
	line-height: 18px;
	font-weight: bold;
	letter-spacing: 3px;
	text-transform: none;
	color: #fff3c9;
	background: linear-gradient(rgba(120, 30, 20, .85), rgba(60, 12, 10, .9));
	border: 1px solid #c9a35a;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(227, 194, 124, .35);
}

/* опыт и дроп в блоке сервера */
.server-rate {
	margin-right: 8px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: bold;
	color: #fff3c9;
	background: rgba(150, 40, 25, .75);
	border: 1px solid rgba(201, 163, 90, .7);
	border-radius: 3px;
}

/* ---------- меню ---------- */
#menu-wrapper {
	height: auto;
	overflow: visible;
	background: none;
}

#menu {
	position: relative;
	z-index: 50;
	/* рамка по ширине пунктов (не уже колонок) и по центру: новые пункты меню не вылезают за неё */
	width: max-content;
	min-width: 1220px;
	margin-left: 50%;
	transform: translateX(-50%);
	padding: 0 6px;
	height: 52px;
	box-sizing: border-box;
	border: 1px solid #383a58;
	border-radius: 6px;
	background: linear-gradient(#314d6f, #121327 55%, #0c0d19);
	box-shadow: inset 0 1px 0 rgba(255, 230, 190, .22), 0 4px 14px rgba(0, 0, 0, .7);
}

#menu nav {
	position: static;
	width: auto;
	margin: 0;
	padding: 0;
}

#menu nav ul {
	white-space: nowrap;
}

#menu .nav > li + li {
	border-left: 1px solid rgba(255, 255, 255, .07);
}

#menu a {
	padding: 0 18px;
	line-height: 50px;
	letter-spacing: 1px;
	font-size: 14px;
	color: #f3e6cb;
}

#menu a:hover {
	text-decoration: none;
	color: #ffd98a;
	background: rgba(255, 255, 255, .05);
}

.nav ul {
	top: 50px;
	margin-top: 0;
	border-radius: 0 0 4px 4px;
}

.nav > li:hover > ul {
	left: 0;
	padding-top: 0;
}

.nav li li a {
	width: 160px;
	padding: 9px 14px !important;
	line-height: 18px;
	text-align: left;
	background: #0e0f1b;
}

/* ---------- три колонки ---------- */
#page-wrapper,
.two-column1 #page-wrapper {
	overflow: visible;
	background: none;
}

#page-bgtop,
.two-column1 #page-bgtop {
	background: none;
}

#page-bgbtm,
.two-column1 #page-bgbtm {
	overflow: visible;
	padding: 16px 0 50px;
	background: none;
}

#page {
	display: grid;
	grid-template-columns: 244px 680px 264px;
	grid-template-rows: auto 1fr;
	column-gap: 16px;
	align-items: start;
}

#left-sidebar {
	grid-column: 1;
	grid-row: 1 / span 2;
}

#banner {
	grid-column: 2;
	grid-row: 1;
}

#content {
	grid-column: 2;
	grid-row: 2;
	align-self: stretch;
}

#sidebar {
	grid-column: 3;
	grid-row: 1 / span 2;
}

/* ---------- центр: содержимое страницы ---------- */
#content {
	float: none;
	width: auto;
	min-height: 720px;
	box-sizing: border-box;
	padding-bottom: 30px;
	border: 1px solid #8689b1;
	border-radius: 4px;
	background: #ead9ca linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 260px);
	box-shadow: 0 0 0 4px #14141d, 0 0 0 5px #383a58, 0 6px 18px rgba(0, 0, 0, .7);
}

.title1 {
	left: 0;
	width: auto;
	height: auto;
	margin: 16px 16px 18px;
	border: 1px solid #233b59;
	border-radius: 3px;
	background: linear-gradient(#527eb3, #2b4b73);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 5px rgba(0, 0, 0, .3);
}

.title1 h1,
.title1 h2 {
	padding: 10px 18px 11px;
	font-size: 18px;
	color: #fff4dc;
}

.box-style1 .title,
.box-style4 .title {
	padding: 0 34px 12px;
}

.box-style1 .entry,
.box-style4 .entry {
	padding: 16px 34px 0;
	border-top: 1px solid rgba(66, 98, 138, .22);
	background: none;
}

.two-column {
	padding: 0 34px;
}

/* картинки-объявления на главной */
#banner {
	width: auto;
	height: auto;
	margin: 0 0 20px;
	padding: 9px 0;
	border: 1px solid #323347;
	border-radius: 4px;
	background: linear-gradient(#171720, #0e0e15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

#banner #col1 {
	float: none;
	margin: 0 auto;
}

/* ---------- боковые колонки ---------- */
#sidebar {
	float: none;
	width: auto;
}

#sidebar .box-style2,
#left-sidebar .box-style2 {
	margin-bottom: 16px;
	border: 1px solid #323347;
	border-radius: 4px;
	background: linear-gradient(#181922, #0e0e15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .03);
	color: #b6b8cd;
}

#sidebar .title2,
#left-sidebar .title2 {
	width: auto;
	height: auto;
	margin: 0;
	border-bottom: 1px solid #8f6f44;
	background: linear-gradient(#527eb3, #2b4b73);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

#sidebar .title2 h2,
#left-sidebar .title2 h2 {
	padding: 11px 10px 12px;
	text-align: center;
	letter-spacing: 2px;
	font-size: 13px;
	color: #f7e6c2;
}

#sidebar .box-style2 .entry,
#left-sidebar .box-style2 .entry {
	padding: 12px 14px 14px;
}

#sidebar a,
#left-sidebar a,
#sidebar ul.style4 a,
#left-sidebar ul.style4 a {
	color: #e9cb8f;
}

#sidebar ul.style4 li,
#left-sidebar ul.style4 li {
	padding: 6px 0;
	border-top: 1px solid rgba(255, 255, 255, .07);
	background: none;
}

#sidebar ul.style4 .first,
#left-sidebar ul.style4 .first {
	border-top: 0;
}

#sidebar .entry > br,
#left-sidebar .entry > br {
	display: none;
}

#sidebar .entry > span,
#left-sidebar .entry > span {
	float: none !important;
	display: block;
	margin: 10px 0 0 !important;
	text-align: right;
	font-size: 12px;
}

#sidebar .w-coins {
	color: #ffb45e;
}

#sidebar .zen-wallet {
	color: #8fc2ff;
}

#sidebar .avatar_frame {
	border-color: #3e4067;
	background: #0b0b11;
}

/* вход */
#sidebar .input-main {
	width: 100% !important;
	box-sizing: border-box;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #3b3d52;
	border-radius: 3px;
	background: #0b0b11;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
	color: #f1e6d8;
}

#sidebar #login_form div {
	margin: 0 0 10px !important;
}

/* рейтинги в боковой колонке */
#sidebar table.sidebar_rank,
#left-sidebar table.sidebar_rank {
	margin: 0;
	font-size: 12px;
}

#sidebar table.sidebar_rank th,
#left-sidebar table.sidebar_rank th {
	padding: 0 2px 5px;
	border-bottom-color: #383a58;
	color: #8284a5;
}

#sidebar table.sidebar_rank td,
#left-sidebar table.sidebar_rank td {
	padding: 5px 2px;
	border-bottom-color: rgba(255, 255, 255, .07);
}

#sidebar .i_note,
#left-sidebar .i_note {
	margin: 0;
}

/* сервер */
.server-row {
	display: flex;
	align-items: center;
	padding: 7px 6px;
	border-radius: 3px;
	cursor: pointer;
	opacity: 1 !important;
}

.server-row:hover {
	background: rgba(255, 255, 255, .06);
}

.server-dot {
	flex: none;
	width: 10px;
	height: 10px;
	margin-right: 9px;
	border-radius: 50%;
	background: #c63a3a;
	box-shadow: 0 0 7px #c63a3a;
}

.server-dot.on {
	background: #5fd35f;
	box-shadow: 0 0 7px #5fd35f;
}

.server-name {
	flex: 1;
	font-weight: bold;
	color: #f5e7ca;
}

.server-count {
	font-weight: bold;
	color: #ffffff;
}

#left-sidebar .server-info {
	margin-top: 8px;
	font-size: 12px;
}

#left-sidebar .server-info li.first {
	border-top: 1px solid rgba(255, 255, 255, .07);
	padding-top: 6px;
}

#left-sidebar .server-info .f16 .flag {
	float: none;
}

/* таймеры мероприятий */
#left-sidebar #events div {
	overflow: hidden;
	padding: 7px 0;
	border-top: 1px solid rgba(255, 255, 255, .07);
	font-family: sans-serif;
	color: #dccdbd;
}

#left-sidebar #events div:first-child {
	border-top: 0;
	padding-top: 0;
}

#left-sidebar #events div small {
	font-size: 12px;
	color: #e9cb8f;
}

/* ---------- кнопки ---------- */
.button-style,
.button-style2 {
	left: 0;
	width: 200px;
	height: 40px;
	line-height: 38px;
	box-sizing: border-box;
	border: 1px solid #111328 !important;
	border-radius: 4px;
	background: linear-gradient(#668cbb, #34557d);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 4px rgba(0, 0, 0, .35);
	font-size: 13px;
	color: #fff6e0;
}

.button-style:hover,
.button-style2:hover {
	background: linear-gradient(#7b9bc1, #3c6495);
	text-decoration: none;
}

#sidebar .button-style {
	width: 100%;
}

/* 16.11: кнопки и заголовки блоков голубые (под небо фона) - светлая надпись с тенью, чтобы читалась */
.button-style,
.button-style2,
.title1 h1,
.title1 h2,
#sidebar .title2 h2,
#left-sidebar .title2 h2,
#menu a {
	text-shadow: 0 1px 2px rgba(6, 14, 30, .85);
}

/* ---------- подвал ---------- */
#footer {
	padding: 0 0 26px;
	border-top: 1px solid #272938;
	background: #0a0914;
}

#copyright {
	width: auto;
	background: none;
}

#copyright p,
#copyright a {
	color: #7b7c8c;
}

/* отсчёт до открытия - над названием, по центру */
#timer_div_title,
#timer_div_time {
	left: 50%;
	margin-left: 390px;
	color: #f1dcae;
}

#timer_div_title {
	text-shadow: 0 1px 3px #000;
}

/* 31.10: в style.css у ячеек opacity 0.2 на весь блок - цифры и подписи были почти не видны.
   Теперь ячейка тёмная полупрозрачная с золотой рамкой, текст непрозрачный */
#timer_div_time .timmer_inner_block {
	opacity: 1;
	width: 50px;
	height: 60px;
	margin: 2px;
	background: rgba(9, 9, 16, 0.82);
	border: 1px solid #8a6a3a;
	border-radius: 6px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(57, 108, 171, 0.45);
	box-sizing: border-box;
}

#timer_div_time .timmer_inner_block .title {
	padding-top: 7px;
	font-size: 9px;
	letter-spacing: 0.2px;	/* «СЕКУНДЫ» в русской версии - ровно в ячейку */
	text-transform: uppercase;
	color: #b9a47e;
}

#timer_div_time .timmer_inner_block .count {
	padding-top: 4px;
	font-size: 22px;
	line-height: 26px;
	color: #ffd98a;
	text-shadow: 0 0 6px rgba(255, 190, 90, 0.55), 0 1px 2px #000;
}

/* ---------- VIP игры (PremiumData): медаль VIP из клиента, цвет уровня ---------- */
.vip-icon {
	height: 18px;
	width: auto;
	vertical-align: middle;
}

.ranking-table .vip-icon,
.sidebar_rank .vip-icon {
	height: 16px;
	margin-left: 3px;
}

#sidebar .vip-status span {
	font-weight: bold;
}

#sidebar .vip-bronze span { color: #d08a45; }
#sidebar .vip-silver span { color: #d5d9e4; }
#sidebar .vip-gold span { color: #ffd140; }
#sidebar .vip-none span { color: #7b7c8c; }

#sidebar .vip-status small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #8284a5;
}

/* ---------- стримеры (/streams) ---------- */
.streams-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.stream-card {
	border: 1px solid #323347;
	border-radius: 4px;
	background: linear-gradient(#181922, #0e0e15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
	overflow: hidden;
}

.stream-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #383a58;
	color: #f5e7ca;
}

.stream-platform {
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	background: #3e4067;
}

.stream-twitch { background: #6441a5; }
.stream-youtube { background: #c4302b; }
.stream-kick { background: #2a8f1f; }
.stream-trovo { background: #1aa36b; }

.stream-name {
	flex: 1;
	font-weight: bold;
}

.stream-open {
	font-size: 12px;
	color: #e9cb8f !important;
}

.stream-frame {
	position: relative;
	padding-top: 56.25%;	/* 16:9 */
	background: #000;
}

.stream-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Stream Box: окошко трансляций слева внизу на всех страницах ---------- */
.stream-box {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 900;
	width: 250px;
	border: 1px solid #383a58;
	border-radius: 5px;
	background: #0b0b11;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .75);
	font-family: sans-serif;
	font-size: 12px;
}

.stream-box-list {
	max-height: calc(100vh - 90px);
	overflow-y: auto;
}

.stream-box.sb-folded .stream-box-list {
	display: none;
}

.sb-item + .sb-item {
	border-top: 1px solid #272938;
}

.sb-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 7px;
	background: linear-gradient(#1a1b28, #111119);
}

.sb-head a {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: bold;
	color: #f1dcae !important;
}

.sb-head .stream-platform {
	padding: 1px 5px;
	font-size: 9px;
}

.sb-frame {
	position: relative;
	height: 140px;		/* 16:9 для ширины 248 */
	overflow: hidden;
	cursor: pointer;
	background: radial-gradient(ellipse at center, #30435a, #0e0c1c 75%);
}

.sb-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}

.sb-play:after {
	content: '';
	position: absolute;
	left: 17px;
	top: 12px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.sb-frame:hover .sb-play {
	background: rgba(102, 140, 187, .85);
}

.sb-frame.sb-on {
	cursor: default;
}

.sb-frame.sb-on img,
.sb-frame.sb-on .sb-play {
	display: none;
}

.sb-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.stream-box-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border-top: 1px solid #383a58;
	border-radius: 0 0 5px 5px;
	background: linear-gradient(#314d6f, #121327);
	font-weight: bold;
	letter-spacing: 1px;
	color: #f3e6cb !important;
	text-decoration: none !important;
}

.stream-box.sb-folded .stream-box-bar {
	border-top: 0;
	border-radius: 5px;
}

.sb-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e0413b;
	box-shadow: 0 0 6px #e0413b;
}

.sb-count {
	padding: 0 6px;
	border-radius: 8px;
	font-size: 10px;
	background: rgba(255, 255, 255, .12);
}

.sb-arrow {
	margin-left: auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid #f3e6cb;
	border-bottom: 2px solid #f3e6cb;
	transform: translateY(-2px) rotate(45deg);	/* развёрнуто: стрелка вниз - свернуть */
}

.stream-box.sb-folded .sb-arrow {
	transform: translateY(2px) rotate(-135deg);	/* свёрнуто: стрелка вверх - развернуть */
}

/* Награды топов Blood Castle / Devil Square / Chaos Castle (31.10): строка о выдаче над таблицей,
   сумма WCoin у мест 1-10, свободные места - приглушённо (шаблоны rank_bc / rank_ds / rank_cc.ejs) */
.event-reward-note {
	margin: 0 0 10px;
	padding: 7px 10px;
	text-align: center;
	font-size: 12px;
	color: #6b2a1a;
	background: rgba(176, 128, 60, 0.12);
	border: 1px solid rgba(138, 106, 58, 0.45);
	border-radius: 3px;
}

.ranking-table td.event-reward {
	color: #8a5a10;
	font-weight: bold;
	white-space: nowrap;
}

.ranking-table tr.event-reward-free td {
	color: #828398;
}

.ranking-table tr.event-reward-free td.event-reward {
	color: #a8875a;
}
