:root {
	--mc-bg: #0b0d12;
	--mc-panel: #16181f;
	--mc-border: #2a2f3a;
	--mc-line: #23272f;
	--mc-green: #3fa845;
	--mc-green-dark: #2e7d33;
	--mc-red: #a83226;
	--mc-red-dark: #7d241b;
	--mc-gold: #ffd54a;
	--mc-text: #e8e6e3;
	--mc-muted: #8a90a0;
	--mc-dim: #565d6d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		linear-gradient(rgba(5, 8, 15, .78), rgba(5, 8, 15, .92)),
		url("bg.jpg") center / cover no-repeat fixed,
		var(--mc-bg);
	font-family: "Press Start 2P", monospace;
	color: var(--mc-text);
}

/* ── Каркас ─────────────────────────── */

.mc-screen { width: 100%; max-width: 400px; }

.mc-panel {
	background: var(--mc-panel);
	border: 4px solid var(--mc-border);
	outline: 2px solid #000;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
	padding: 32px 28px 0;
}

.mc-panel-wide { max-width: 460px; }

.mc-panel-title {
	text-align: center;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--mc-line);
	margin-bottom: 24px;
}

.mc-logo {
	display: block;
	font-size: 20px;
	letter-spacing: 3px;
	color: #f4f4f4;
	text-shadow: 3px 3px 0 #1a5c1e, 5px 5px 0 rgba(0,0,0,.6);
}

.mc-sub {
	display: block;
	margin-top: 12px;
	font-size: 8px;
	color: var(--mc-muted);
	letter-spacing: 1px;
}

/* Разделитель-заголовок секции */
.mc-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.mc-divider::before,
.mc-divider::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--mc-line);
}

.mc-divider span {
	font-size: 9px;
	color: var(--mc-gold);
	letter-spacing: 1px;
	text-shadow: 2px 2px 0 rgba(0,0,0,.7);
	white-space: nowrap;
}

/* ── Формы ─────────────────────────── */

.mc-label {
	display: block;
	font-size: 8px;
	color: var(--mc-muted);
	margin: 0 0 8px;
	letter-spacing: 1px;
}

.mc-input {
	display: block;
	width: 100%;
	padding: 13px 12px;
	font-family: inherit;
	font-size: 10px;
	color: var(--mc-text);
	background: #0e1016;
	border: 2px solid #3c414d;
	outline: none;
	box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
}

.mc-input:focus {
	border-color: var(--mc-green);
	box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), 0 0 0 2px rgba(63,168,69,.25);
}

.mc-input::placeholder { color: #4d5361; }

.mc-hint {
	font-size: 7px;
	line-height: 1.9;
	color: var(--mc-dim);
	margin-bottom: 16px;
}

.mc-captcha {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 8px;
}
.mc-captcha .mc-input { width: auto; flex: 1; }

/* ── Кнопки ─────────────────────────── */

.mc-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 10px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	text-shadow: 2px 2px 0 rgba(0,0,0,.5);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .05s, background .1s;
}

.mc-btn:active { transform: translateY(3px); }

.mc-btn-green {
	background: var(--mc-green);
	border-color: var(--mc-green-dark);
	box-shadow: 0 4px 0 var(--mc-green-dark), 4px 6px 0 rgba(0,0,0,.45);
}
.mc-btn-green:hover { background: #46bd4d; }

.mc-btn-red {
	background: var(--mc-red);
	border-color: var(--mc-red-dark);
	box-shadow: 0 4px 0 var(--mc-red-dark), 4px 6px 0 rgba(0,0,0,.45);
}
.mc-btn-red:hover { background: #bd3d2f; }

.mc-btn-dark {
	background: #2b303b;
	border-color: #1d2129;
	box-shadow: 0 4px 0 #1d2129, 4px 6px 0 rgba(0,0,0,.45);
	color: var(--mc-muted);
}
.mc-btn-dark:hover { color: #fff; background: #343a48; }

.mc-btn-block { margin-top: 22px; }

.mc-links { margin-top: 22px; }
.mc-links .mc-btn + .mc-btn { margin-top: 12px; }

/* ── Профиль и статистика ───────────── */

.mc-profile-head {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 22px;
	border-bottom: 2px solid var(--mc-line);
}

.mc-skin-head {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	image-rendering: pixelated;
	background-repeat: no-repeat;
	background-size: 448px 448px;
	background-position: -56px -56px;
	border: 2px solid var(--mc-border);
	background-color: #0e1016;
}

.mc-profile-info .mc-nick { font-size: 13px; margin-bottom: 10px; }

.mc-nick {
	font-size: 14px;
	color: var(--mc-green);
	text-shadow: 2px 2px 0 rgba(0,0,0,.6);
	word-break: break-all;
}

.mc-muted { font-size: 8px; color: var(--mc-muted); line-height: 2; }

.mc-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 2px solid var(--mc-line);
}

.mc-stat-row .mc-muted { flex-shrink: 0; }

.mc-stat-val {
	font-size: 9px;
	color: var(--mc-green);
	text-shadow: 2px 2px 0 rgba(0,0,0,.6);
	text-align: right;
	word-break: break-word;
}

.mc-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	vertical-align: middle;
}
.mc-dot-on { background: var(--mc-green); box-shadow: 0 0 6px rgba(63,168,69,.8); }
.mc-dot-off { background: var(--mc-red); }

.mc-upform { margin-bottom: 12px; }

.mc-input-file {
	padding: 10px;
	font-size: 7px;
	color: var(--mc-muted);
}
.mc-input-file::file-selector-button {
	font-family: inherit;
	font-size: 8px;
	color: #fff;
	background: #2b303b;
	border: 2px solid #1d2129;
	padding: 8px 10px;
	margin-right: 10px;
	cursor: pointer;
}

/* ── Профиль после входа (главная) ──── */

.mc-welcome { text-align: center; }
.mc-welcome-title {
	font-size: 11px;
	line-height: 1.8;
	margin-bottom: 10px;
}

/* ── Футер ─────────────────────────── */

.mc-footer {
	margin-top: 28px;
	padding: 18px 0;
	border-top: 2px solid var(--mc-line);
	text-align: center;
	font-size: 8px;
	color: var(--mc-muted);
	line-height: 1.8;
}

.mc-footer a { color: var(--mc-green); text-decoration: none; }
.mc-footer a:hover { text-decoration: underline; }

.mc-footer-note {
	margin-top: 6px;
	font-size: 7px;
	color: var(--mc-dim);
}

/* ── Сообщения ─────────────────────── */

.mc-msg {
	font-size: 8px;
	line-height: 1.9;
	padding: 12px;
	margin-bottom: 20px;
	border: 2px solid var(--mc-green);
	background: rgba(63, 168, 69, .12);
	color: #a9e6ac;
}

.mc-msg-error {
	border-color: var(--mc-red);
	background: rgba(192, 57, 43, .12);
	color: #ffb3ab;
}

/* Шрифт Times New Roman для всего сайта */
body, .mc-panel, .mc-btn, .mc-logo, .mc-sub, .mc-nick, .mc-muted,
.mc-stat-row, .mc-stat-val, .mc-profile-info, .mc-footer,
.mc-form input, .mc-form button, .mc-links a, .mc-msg, .mc-error {
	font-family: "Times New Roman", "Liberation Serif", Times, serif !important;
}

/* Укрупнение текста */
body { font-size: 18px; }
.mc-panel { font-size: 18px; }
.mc-logo { font-size: 34px !important; }
.mc-sub { font-size: 15px !important; }
.mc-btn { font-size: 19px !important; padding: 14px 20px !important; }
.mc-nick { font-size: 26px !important; }
.mc-muted, .mc-msg, .mc-error, .mc-footer, .mc-footer-note { font-size: 16px !important; }
.mc-stat-row { font-size: 17px !important; }
.mc-stat-val { font-size: 17px !important; }
.mc-form input, .mc-form button { font-size: 17px !important; padding: 12px 14px !important; }
.mc-panel-title { padding: 26px 24px 18px !important; }
.mc-panel { padding: 28px 26px !important; }

/* Золотые заголовки и подсказки — крупнее */
.mc-sep, .mc-section, .mc-section-title, .mc-form-title, .mc-gold {
	font-size: 20px !important;
}
.mc-hint, .mc-note, .mc-form small, .mc-form .mc-muted, .mc-form p {
	font-size: 16px !important;
	line-height: 1.5 !important;
}

/* Точные правки по реальным классам */
.mc-hint { font-size: 13px !important; line-height: 1.45 !important; }
.mc-divider span { font-size: 20px !important; }
.mc-label { font-size: 16px !important; }

/* Файловое поле — принудительно крупное */
input[type="file"].mc-input-file,
.mc-upform input[type="file"] {
	font-size: 18px !important;
	height: auto !important;
	padding: 12px 14px !important;
}
input[type="file"]::-webkit-file-upload-button {
	font-size: 17px !important;
	padding: 10px 18px !important;
	margin-right: 12px !important;
	border: none !important;
	border-radius: 3px !important;
	background: #2e7d32 !important;
	color: #fff !important;
	cursor: pointer;
	font-family: "Times New Roman", "Liberation Serif", Times, serif !important;
}
input[type="file"]::file-selector-button {
	font-size: 17px !important;
	padding: 10px 18px !important;
	margin-right: 12px !important;
	border: none !important;
	border-radius: 3px !important;
	background: #2e7d32 !important;
	color: #fff !important;
	cursor: pointer;
	font-family: "Times New Roman", "Liberation Serif", Times, serif !important;
}

/* Файловое поле — меньше на 30% */
input[type="file"].mc-input-file,
.mc-upform input[type="file"] {
	font-size: 13px !important;
	padding: 8px 10px !important;
}
input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
	font-size: 12px !important;
	padding: 7px 13px !important;
	margin-right: 9px !important;
}








/* ===== Кабинет: финальная раскладка ===== */

/* Ширина и компактность */
.mc-screen-wide { max-width: 1240px !important; }
.mc-panel-wide { max-width: 1240px !important; width: 100% !important; margin: 0 auto !important; }
.mc-upform { max-width: 100% !important; margin-bottom: 10px; }
.mc-stat-row { padding: 6px 0; }
.mc-btn { padding: 8px 14px; }
.mc-divider { margin: 12px 0 8px; }

/* Две колонки: статистика слева, скин и плащ справа */
.mc-grid { display: flex; gap: 28px; align-items: flex-start; }
.mc-col-left { flex: 1 1 auto; min-width: 0; }
.mc-col-right { flex: 0 0 360px; }

/* 3D-модель */
.mc-skin-layout .mc-skin-3d-wrap { display: none; flex: 0 0 100%; }
body.mc-3d-on .mc-skin-layout .mc-skin-3d-wrap { display: block; }
#mc-skin3d { width: 300px; height: 380px; max-width: 100%; }

/* Кнопки внизу — в ряд */
.mc-links-row { display: flex; gap: 12px; margin-top: 14px; }
.mc-links-row .mc-btn { flex: 1 1 auto; text-align: center; }

/* На узких экранах — обратно в столбик */
@media (max-width: 860px) {
        .mc-grid { flex-direction: column; }
        .mc-col-right { flex: 1 1 auto; width: 100%; }
        .mc-links-row { flex-direction: column; }
}

/* ===== Окантовка и выравнивание ===== */

/* Рамки вокруг колонок */
.mc-grid > .mc-col {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 14px 16px;
        background: rgba(0, 0, 0, 0.15);
}

/* Кнопки «На главную» и «Выйти»: ровный ряд, одинаковая высота */
.mc-links-row {
        justify-content: center;
        align-items: stretch;
}
.mc-links-row .mc-btn {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        padding: 10px 16px;
}

/* Окантовка вокруг блока с кнопками */
.mc-links-row {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 10px;
        margin-top: 16px;
}

/* ===== Верхняя навигация кабинета ===== */
.mc-panel-inner { padding: 18px 22px 22px; }
.mc-topnav {
        display: flex;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
}
.mc-backlink {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.2);
        color: #e8e8e8;
        text-decoration: none;
        font-size: 15px;
        transition: border-color .15s, background .15s;
}
.mc-backlink:hover {
        border-color: rgba(212, 175, 55, 0.55);
        background: rgba(212, 175, 55, 0.08);
}
.mc-backlink-exit { color: #ff9d9d; border-color: rgba(255, 90, 90, 0.3); }
.mc-backlink-exit:hover {
        border-color: rgba(255, 90, 90, 0.6);
        background: rgba(255, 90, 90, 0.08);
}

/* ===== Страница «О сервере» ===== */
.mc-info-block {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 14px 18px;
        background: rgba(0, 0, 0, 0.15);
        line-height: 1.55;
}
.mc-info-block p { margin: 4px 0; }
.mc-modlist {
        margin: 0;
        padding: 6px 0 6px 22px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.15);
        line-height: 1.9;
        list-style: none;
}
.mc-modlist li::before {
        content: '▸ ';
        color: rgba(212, 175, 55, 0.9);
}

/* Список модов колонками */
.mc-modlist {
        column-count: 3;
        column-gap: 28px;
        padding: 14px 18px;
}
.mc-modlist li {
        break-inside: avoid;
        padding: 3px 0;
        border-bottom: 1px dotted rgba(255, 255, 255, 0.07);
}
@media (max-width: 980px) { .mc-modlist { column-count: 2; } }
@media (max-width: 620px) { .mc-modlist { column-count: 1; } }

/* Кнопка «О сервере» на главной */
.mc-servbtn { margin-top: 10px; }

/* Кнопка «О сервере» на главной */
.mc-servbtn { margin-top: 10px; }

/* Кнопки «О сервере» + «Правила» в один ряд */
.mc-servbtn { display: flex; gap: 10px; margin-top: 10px; }
.mc-servbtn .mc-btn {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
}

/* Чекбокс согласия */
.mc-check {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin: 6px 0 12px;
        font-size: 14px;
        color: #cfcfcf;
        cursor: pointer;
}
.mc-check input { margin-top: 3px; accent-color: #d4af37; }
.mc-check a { color: #d4af37; }

/* Список правил */
.mc-rules {
        margin: 0;
        padding: 14px 18px 14px 40px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.15);
        line-height: 1.9;
}
.mc-rules li { padding: 3px 0; }

/* Кнопки «О сервере» + «Правила» в один ряд */
.mc-servbtn { display: flex; gap: 10px; margin-top: 10px; }
.mc-servbtn .mc-btn {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
}

/* Чекбокс согласия */
.mc-check {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin: 6px 0 12px;
        font-size: 14px;
        color: #cfcfcf;
        cursor: pointer;
}
.mc-check input { margin-top: 3px; accent-color: #d4af37; }
.mc-check a { color: #d4af37; }

/* Список правил */
.mc-rules {
        margin: 0;
        padding: 14px 18px 14px 40px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.15);
        line-height: 1.9;
}
.mc-rules li { padding: 3px 0; }


/* --- fix: капча и инпуты не вылезают за панель --- */
.mc-form, .mc-form * { box-sizing: border-box; }
.mc-form input[type="text"],
.mc-form input[type="password"] { width: 100%; max-width: 100%; }
.mc-form img { max-width: 45%; height: auto; display: inline-block; vertical-align: middle; }


/* --- fix: капча крупная, поле ввода отдельно --- */
.mc-captcha {
        display: block;
        margin-bottom: 12px;
}
.mc-captcha a, .mc-captcha #dle-captcha {
        display: block;
}
.mc-captcha img {
        display: block;
        width: 100% !important;    /* капча на всю ширину панели */
        height: auto !important;
        border-radius: 4px;
        margin-bottom: 8px;
}
.mc-captcha input[name="sec_code"] {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px;
        letter-spacing: 2px;
        box-sizing: border-box;
}
