/* СБРОС И БАЗОВЫЕ НАСТРОЙКИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* === КАСТОМНЫЙ СКРОЛЛБАР === */

/* Для WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a41c2c, #5e0b15);
    border-radius: 4px;
    border: 1px solid #b8860b;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d12235, #7a0e1a);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #a41c2c #0a0a0a;
}

/* Для Internet Explorer / Edge Legacy */
body {
    -ms-overflow-style: none;
}

body {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden;
    width: 100%;
	
    background-image: url(/static/img/bg_obk2_line.jpg);
    background-repeat: no-repeat;
    background-size: auto 800px;
    background-position: top center;
}

@media (max-width: 824px) {
    body {
        background-image: url(/static/img/bg2_mob.jpg);
        background-repeat: no-repeat;
        background-size: max(768px, 100vw);
        background-position: top center;
		margin-bottom: 30px;
    }
    .side-banners-row {
        display: none;
    }
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.pen {
    pointer-events: none;
}

a {
    color: #fff;
    transition: color 0.3s;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.social-icons a {
	text-decoration: none;
}

.main-menu a:hover {
    color: #CCCCCC;
	text-decoration: underline;
}

/* --- ВЕРХНИЙ БАННЕР --- */
.top-banner {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.top-banner-placeholder {
    background: linear-gradient(90deg, #5e0b15, #a41c2c, #5e0b15);
    padding: 10px 40px;
    border: 2px solid #b8860b;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
	opacity: 0;
}

.logo-block {
	width: 100%; 
	max-width: 600px; 
	height: 200px; 
	display: flex; 
	align-items: center; 
	justify-content: center;
}

/* --- ОСНОВНОЙ КОНТЕЙНЕР --- */
.container {
    width: 100%;
    max-width: min(60vw, 1000px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    overflow: hidden;
}

/* --- ОБЕРТКА ДЛЯ БАННЕРА И ЛИНИИ --- */
.banner-wrapper {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    margin: 20px 0;
    overflow: hidden;
}

/* --- ТА САМАЯ ЛИНИЯ ЗА ЛОГОТИПОМ --- */
.background-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 1;
    /* ВАРИАНТ 1: Красная полоса с тенями (градиент) — раскомментируйте */
    /* background: linear-gradient(180deg, rgba(60,0,0,0) 0%, #800000 20%, #a41c2c 50%, #800000 80%, rgba(60,0,0,0) 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); */

    /* ВАРИАНТ 2: Картинка-полоса */
    /* background-image: url('путь_к_вашей_полосе.png'); */
    /* background-size: 100% 100%; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
}

/* --- ЦЕНТРАЛЬНЫЙ БАННЕР (Игра) --- */
.main-game-banner {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.main-game-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    display: block;
}

.game-title {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 5px 20px;
    border-radius: 20px;
    border: 1px solid #ff0000;
    font-weight: bold;
    z-index: 3;
}

/* --- РЯД С БОКОВЫМИ БАННЕРАМИ --- */
.side-banners-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.side-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.side-banner span {
    font-size: 0.9rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #555;
}

/* --- ФОРМА ВХОДА --- */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.login-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* === ПОЛЯ ВВОДА С ЭФФЕКТОМ ВДАВЛИВАНИЯ === */
.login-inputs input {
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #d0d0d0;
    flex: 1;
    min-width: 120px;
	font-size: 16px;
    
    /* ЭФФЕКТ ВДАВЛИВАНИЯ */
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.03);
    
    transition: all 0.2s ease;
}

/* Состояние фокуса — усиление вдавливания */
.login-inputs input:focus {
    outline: none;
    border-color: #a41c2c;
    background: #151515;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.8),
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(164, 28, 44, 0.15);
}

/* Плейсхолдеры — делаем чуть темнее для эффекта глубины */
.login-inputs input::placeholder {
    color: #555555;
    opacity: 0.8;
}

.login-btn {
    background: #a41c2c;
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.login-btn:hover {
    background: #d12235;
}

/* --- НАВИГАЦИЯ --- */
.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin: 10px 0;
    font-weight: bold;
    position: relative;
    z-index: 2;
    width: 100%;
	margin-top: 60px;
}

.main-menu a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
	font-weight: normal;
}

/* --- МАГАЗИНЫ --- */
.app-stores {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.store-btn {
    background: rgba(51, 51, 51, 0.9);
    padding: 5px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #555;
}

/* --- ФУТЕР --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #222;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.age-restriction {
    background: #a41c2c;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.55);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons div {
    width: 35px;
    height: 35px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.social-icons div:hover {
    background: #555;
}

.social-icons div a {
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-icons div a:hover {
    color: #fff;
}

.social-icons div.vk-style {
	background: #0066EE;
	font-weight: bolder;
}
.social-icons div.vk-style:hover {
	background: #0077FF;
	font-weight: bolder;
}

.social-icons div.tg-style {
	background: #0077B3;
	font-weight: bolder;
}
.social-icons div.tg-style:hover {
	background: #1E87BE;
	font-weight: bolder;
}

/* --- COOKIE УВЕДОМЛЕНИЕ --- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(30 19 51);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #2a1455;
    padding: 10px 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgb(67 40 119);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #b89fff;
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.cookie-link {
    color: #ffcc00;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: #ffdd44;
    text-decoration: none;
}

.cookie-btn {
    background: linear-gradient(135deg, #a41c2c, #5e0b15);
    color: #fff;
    border: 1px solid #821421;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: linear-gradient(135deg, #d12235, #7a0e1a);
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
    transform: scale(1.02);
}

.cookie-btn:active {
    transform: scale(0.98);
}

/* --- АДАПТИВНОСТЬ --- */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .container {
        max-width: min(80vw, 1000px);
    }
}

/* Мобильные устройства до 824px */
@media (max-width: 824px) {
    .container {
        width: 100vw;
        max-width: 100vw;
        padding: 0 15px;
    }

    .side-banners-row {
        display: none;
    }

    .side-banner {
        flex-direction: row;
        gap: 10px;
    }

    .login-inputs {
        flex-direction: column;
        width: 100%;
    }

    .login-inputs input {
        width: 100%;
        min-width: unset;
    }

    /* --- МОБИЛЬНОЕ МЕНЮ (БЛОЧНОЕ) --- */
    .main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        overflow: hidden;
        margin: 5px 0;
    }

    .main-menu a {
        display: block;
        padding: 14px 20px;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
        color: #ddd;
        border-bottom: 1px solid #2a2a2a;
        transition: background 0.2s, color 0.2s;
        text-shadow: 0 0 5px rgba(0,0,0,0.8);
    }

    .main-menu a:last-child {
        border-bottom: none;
    }

    .main-menu a:hover,
    .main-menu a:active {
        background: rgba(164, 28, 44, 0.6);
        color: #fff;
    }

    /* Специальный стиль для "Забыли пароль?" и "Подтверждение" */
    .main-menu a[href="/forgot-password"],
    .main-menu a[href="/confirm"] {
        background: rgba(50, 50, 50, 0.5);
        font-weight: 400;
        font-size: 0.85rem;
        color: #aaa;
    }

    .main-menu a[href="/forgot-password"]:hover,
    .main-menu a[href="/confirm"]:hover {
        background: rgba(60, 60, 60, 0.7);
        color: #ffcc00;
    }

    .app-stores {
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        align-items: center;
    }

    .top-banner {
        padding: 0 15px;
    }

    .top-banner-placeholder {
        font-size: 1rem;
        padding: 8px 20px;
    }

    /* Cookie уведомление на мобильных */
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        font-size: 0.8rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }

    .top-banner-placeholder {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .login-form {
        padding: 12px 15px;
    }

    .game-title {
        font-size: 0.8rem;
        padding: 3px 12px;
    }

    .main-menu a {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .footer {
        font-size: 0.7rem;
    }

    .cookie-text {
        font-size: 0.7rem;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 10px;
    }
}

/* Для очень больших экранов (шире 1400px) */
@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }

    .top-banner {
        padding: 0 40px;
    }
}

/* Для экранов с горизонтальной ориентацией на телефонах */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        gap: 10px;
    }

    .banner-wrapper {
        margin: 10px 0;
    }

    .main-game-banner div {
        height: 120px !important;
    }

    .login-form {
        padding: 10px 15px;
        margin: 5px 0;
    }

    .top-banner {
        margin-bottom: 10px;
    }

    .footer {
        margin-top: 15px;
        padding-top: 10px;
    }

    .cookie-notice {
        padding: 8px 15px;
    }

    .cookie-text {
        font-size: 0.7rem;
    }

    .cookie-btn {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    .main-menu a {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* === БАРХАТНАЯ КНОПКА ВХОДА (красная, объёмная) === */
.login-btn-velvet {
    display: inline-block;
    background: #d12235;
    color: #e7b9c2;
    padding: 10px 35px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    transition: all 0.15s ease;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.3);

    /* Бархатный эффект + объём */
    box-shadow: 
        0 6px 0 #0d0d1a,
        0 8px 0 #0a0a14,
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 23, 68, 0.05),
        0 0 20px rgba(255, 23, 68, 0.05);

    background: linear-gradient(180deg, #3f1919, #681313 60%, #983030);
    border: 1px solid rgba(255, 23, 68, 0.12);
}

.login-btn-velvet::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), transparent, rgba(255, 23, 68, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Внутреннее свечение для объёма */
.login-btn-velvet::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 10%;
    right: 10%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.login-btn-velvet:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 10px 0 #0d0d1a,
        0 12px 0 #0a0a14,
        0 15px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(255, 23, 68, 0.15),
        0 0 30px rgba(255, 23, 68, 0.25),
        0 0 50px rgba(255, 23, 68, 0.12);
    background: linear-gradient(180deg, #5a2a2a, #881c1c 60%, #b84040);
    border-color: rgba(255, 23, 68, 0.35);
    color: #ffd4dc;
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.login-btn-velvet:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 0 #0d0d1a,
        0 3px 0 #0a0a14,
        0 8px 15px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 23, 68, 0.05);
    background: linear-gradient(180deg, #2a0f0f, #4a0a0a 60%, #6a1a1a);
}





/* === БАРХАТНАЯ КНОПКА РЕГИСТРАЦИИ (фиолетовый — магический акцент) === */
.register-btn-velvet {
    display: inline-block;
    background: #0f0a1a;
    color: #b89fff;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(184, 159, 255, 0.1);

    /* ЗАПРЕТ ПЕРЕТАСКИВАНИЯ */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;

    box-shadow: 
        0 0 25px rgba(184, 159, 255, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(184, 159, 255, 0.1);

    background: linear-gradient(145deg, #0f0a1a, #1f1435);
    border: 1px solid rgba(184, 159, 255, 0.12);
}

.register-btn-velvet::before,
.register-btn-velvet::after {
    display: none;
}

.register-btn-velvet:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 45px rgba(184, 159, 255, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(184, 159, 255, 0.2);
    background: linear-gradient(145deg, #14102a, #261a45);
    border-color: rgba(184, 159, 255, 0.3);
    color: #d4b8ff;
    text-shadow: 0 0 40px rgba(184, 159, 255, 0.25);
}

.register-btn-velvet:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 15px rgba(184, 159, 255, 0.05);
    background: linear-gradient(145deg, #0a0615, #150f25);
    color: #a88ae8;
}





/* === БАРХАТНАЯ КНОПКА ВЫХОДА (красная) === */
.logout-btn-velvet {
    display: inline-block;
    background: #1a1a2e;
    color: #ff1744;
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.2);

    box-shadow: 
        inset 0 0 20px rgba(255, 23, 68, 0.05),
        0 0 15px rgba(255, 23, 68, 0.05),
        0 8px 25px rgba(0, 0, 0, 0.4);

    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border: 1px solid rgba(255, 23, 68, 0.12);
}

.logout-btn-velvet:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 25px rgba(255, 23, 68, 0.08),
        0 0 25px rgba(255, 23, 68, 0.15),
        0 0 40px rgba(255, 23, 68, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #22223a, #3a3a55);
    border-color: rgba(255, 23, 68, 0.25);
    color: #ff3355;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.logout-btn-velvet:active {
    transform: translateY(1px);
}

/* === БАРХАТНАЯ КНОПКА ПРОФИЛЯ (синяя) === */
.profile-btn-velvet {
    display: inline-block;
    background: #1a1a2e;
    color: #74b9ff;
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(116, 185, 255, 0.2);

    box-shadow: 
        inset 0 0 20px rgba(116, 185, 255, 0.05),
        0 0 15px rgba(116, 185, 255, 0.05),
        0 8px 25px rgba(0, 0, 0, 0.4);

    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border: 1px solid rgba(116, 185, 255, 0.12);
}

.profile-btn-velvet:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 25px rgba(116, 185, 255, 0.08),
        0 0 25px rgba(116, 185, 255, 0.15),
        0 0 40px rgba(116, 185, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #22223a, #3a3a55);
    border-color: rgba(116, 185, 255, 0.25);
    color: #99ccff;
    text-shadow: 0 0 15px rgba(116, 185, 255, 0.3);
}

.profile-btn-velvet:active {
    transform: translateY(1px);
}

/* === БЛОК АВТОРИЗОВАННОГО ПОЛЬЗОВАТЕЛЯ === */
.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 20px 8px 25px;
    border-radius: 50px;
    border: 1px solid #b8860b;
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a41c2c, #5e0b15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    border: 2px solid #b8860b;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.user-level {
    font-size: 0.8rem;
    color: #ffd700;
}

.user-level span {
    color: #ffaa00;
    font-weight: bold;
}

/* === РЕГИСТРАЦИЯ ЗА ПРЕДЕЛАМИ ФОРМЫ === */
.register-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* === АДАПТИВ === */
@media (max-width: 824px) {
    .user-panel {
        padding: 8px 15px;
        border-radius: 30px;
        gap: 10px;
        max-width: 100%;
    }
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .user-name {
        font-size: 0.9rem;
    }
    .register-btn-velvet {
        padding: 10px 25px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .login-btn-velvet {
        padding: 8px 25px;
        font-size: 0.9rem;
        width: 100%;
    }
    .logout-btn-velvet,
    .profile-btn-velvet {
        padding: 6px 18px;
        font-size: 0.75rem;
    }
    .login-inputs {
        flex-direction: column;
        width: 100%;
    }
    .login-inputs input {
        width: 100%;
    }
    .login-inputs .login-btn-velvet {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .user-panel {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        padding: 10px 15px;
    }
    .user-info {
        align-items: center;
    }
    .register-section {
        padding: 0 15px;
    }
    .register-btn-velvet {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    .login-btn-velvet {
        font-size: 0.85rem;
        padding: 8px 20px;
    }
}

/* Переопределяем стили для формы, чтобы кнопка была на всю ширину на мобилках */
.login-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.login-inputs input {
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    flex: 1;
    min-width: 120px;
}

.login-inputs .login-btn-velvet {
    flex: 0 0 auto;
}

@media (max-width: 824px) {
    .login-inputs .login-btn-velvet {
        flex: 1 1 100%;
    }
}



/* === БАРХАТНАЯ КНОПКА РЕГИСТРАЦИИ (фиолетовый — магический акцент) === */
.register-btn-velvet {
    display: inline-block;
    background: #0f0a1a;
    color: #b89fff;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    text-shadow: 0 0 30px rgba(184, 159, 255, 0.05);

    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;

    box-shadow: 
        0 0 25px rgba(184, 159, 255, 0.04),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(184, 159, 255, 0.08);

    background: linear-gradient(145deg, #0f0a1a, #1f1435);
    border: 1px solid rgba(184, 159, 255, 0.1);
    position: relative;
    overflow: visible;
    z-index: 2;
    
    /* ПЛАВНЫЙ ПЕРЕХОД ДЛЯ ВСЕХ СВОЙСТВ */
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.register-btn-velvet::before,
.register-btn-velvet::after {
    display: none;
}

/* === НАВЕДЕНИЕ — ПЛАВНОЕ УВЕЛИЧЕНИЕ === */
.register-btn-velvet:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 
        0 0 35px rgba(184, 159, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(184, 159, 255, 0.15);
    background: linear-gradient(145deg, #14102a, #261a45);
    border-color: rgba(184, 159, 255, 0.2);
    color: #d4b8ff;
    text-shadow: 0 0 30px rgba(184, 159, 255, 0.15);
}

/* === ВСПЫШКА (только анимация свечения, без изменения размера) === */
.register-btn-velvet.flame-burst {
    animation: flameGlow 0.8s ease-out forwards;
}

@keyframes flameGlow {
    0% {
        text-shadow: 0 0 20px rgba(184, 159, 255, 0.1);
        box-shadow: 
            0 0 25px rgba(184, 159, 255, 0.04),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(184, 159, 255, 0.08);
    }
    30% {
        text-shadow: 
            0 0 40px rgba(184, 159, 255, 0.5),
            0 0 60px rgba(150, 80, 255, 0.25),
            0 0 80px rgba(120, 60, 200, 0.1);
        box-shadow: 
            0 0 45px rgba(184, 159, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(184, 159, 255, 0.15);
    }
    70% {
        text-shadow: 
            0 0 30px rgba(184, 159, 255, 0.3),
            0 0 50px rgba(150, 80, 255, 0.15);
        box-shadow: 
            0 0 35px rgba(184, 159, 255, 0.1),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(184, 159, 255, 0.1);
    }
    100% {
        text-shadow: 0 0 30px rgba(184, 159, 255, 0.05);
        box-shadow: 
            0 0 25px rgba(184, 159, 255, 0.04),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(184, 159, 255, 0.08);
    }
}

/* === КЛИК (активное состояние) === */
.register-btn-velvet:active {
    transform: scale(0.95) !important;
    transition: all 0.05s ease;
    box-shadow: 0 0 15px rgba(184, 159, 255, 0.05);
    background: linear-gradient(145deg, #0a0615, #150f25);
    color: #a88ae8;
}