
.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 10px;
    user-select: none;
    z-index: 1000;
    pointer-events: none;
}

/* Стиль для навигационной панели */
.navbar {
    font-family: Arial, sans-serif;
    position: fixed;
    top: 0;
    width: 100%;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0004;
    background-image: url(/static/images/duel_chest_bg.png);
    background-position: 0%;
    background-repeat: no-repeat;
    /* border-color: rgba(249, 36, 36, 0.442);
    border-width: 3px;
    border-style: dashed; */
    backdrop-filter: blur(4px);
    color: white;
    transition: background-color 0.3s ease;
    z-index: 1000;
    /* display: none; */
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(-100%);
    box-sizing: border-box;
}

.navbar.show {
    transform: translateY(0);
    opacity: 1;
}

/* Прозрачная версия панели */
.navbar.transparent {
    background-color: #0004;
}

/* Логотип и описание сайта */
.navbar-left {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.5s ease;
}

.navbar-left div {
    transition: all 0.5s ease;
}

.navbar-left img {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.navbar-left .site-title {
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    margin: 0;
    text-align: start;
    transition: color 0.5s ease;
}

.navbar-left:hover .site-title {
    color: #0094ff;
}

.navbar-left .site-description {
    font-size: 16px;
    color: #ccc;
    margin: 0%;
}

/* Стили для кнопок справа */
.navbar-right {
    display: flex;
    gap: 20px;
    /* padding-right: 40px; */
    align-items: center;
    /* transition: all 0.5s ease; */
}

.navbar-right.mobile {
    padding-right: 0px;
}

.navbar-right a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    /* background-color: #3498db; */
    border-radius: 5px;
    transition: all 0.1s ease;
}

.navbar-right a:hover {
    color: rgb(174, 93, 255);
}

.navbar-right .profile-image {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.0);
    transition: all 0.1s ease;
}

.navbar-right .profile-image:hover {
    box-shadow: 0 0 20px rgba(174, 93, 255, 1.0);
}

.navbar-right a.join-btn {
    color: #000;
    background-color: #fff;
    border: 2px solid #fff;
}

.navbar-right a.join-btn:hover {
    background-color: #ffffff70;
}

.navbar-right a.profile {
    overflow: hidden;
}

.navbar-right a.profile div.profile-image {
    background-image: url('https://act-webstatic.hoyoverse.com/hk4e/e20200928calculate/item_icon_u9182g/7e8f7554cf4ab9635070398884e74054.png?x-oss-process=image%2Fformat%2Cwebp');
    background-color: #0004;
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: 2px solid #ece5d8;
    overflow: hidden;
    display: flex;
    align-content: center;
    justify-content: center;
}

.navbar-right a.profile div.profile-image img {
    width: 40px;
    height: 40px;
}

.navbar-right.mobile a.profile {
    overflow: hidden;
}
.navbar-right.mobile a.profile div.profile-image {
    background-image: url('https://act-webstatic.hoyoverse.com/hk4e/e20200928calculate/item_icon_u9182g/7e8f7554cf4ab9635070398884e74054.png?x-oss-process=image%2Fformat%2Cwebp');
    background-color: #0004;
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: 2px solid #ece5d8;
    overflow: hidden;
    display: flex;
    align-content: center;
    justify-content: center;
}

.navbar-right.mobile a.profile div.profile-image img {
    width: 40px;
    height: 40px;
}

/* Выпадающее меню профиля (ПК) */
.profile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 32px;
    min-width: 320px;
    background: #0006;
    backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    color: #fff;
    z-index: 2001;
    padding: 24px 0 12px 0;
    animation: fadeInProfile 0.18s;
}
@keyframes fadeInProfile {
    from { opacity: 0; transform: translateY(-15px) translateX(10px) scale(0.98);}
    to   { opacity: 1; transform: translateY(0) translateX(0) scale(1);}
}
@keyframes fadeOutProfile {
    from { opacity: 1; transform: translateY(0) translateX(0) scale(1);}
    to   { opacity: 0; transform: translateY(-15px) translateX(10px) scale(0.98);}
}
.profile-menu.fade-in-profile {
    animation: fadeInProfile 0.18s;
}

.profile-menu.fade-out-profile {
    animation: fadeOutProfile 0.18s;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px 12px 24px;
    border-bottom: 1px solid #36393f;
}
.profile-menu-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #36393f;
}
.profile-menu-username {
    font-size: 22px !important;
    color: #b9bbbe;
    word-break: break-all;
}
.profile-menu-email {
    font-size: 14px !important;
    color: #b9bbbe;
    word-break: break-all;
}
.profile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0px 0 0px;
}
.profile-menu-btn {
    color: #ccc;
    text-decoration: none;
    padding: 10px 28px;
    /* border-radius: 16px; */
    background-color: #0000;
    transition: all 0.15s;
    font-size: 18px !important;
}
.profile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgb(170, 85, 255);
}

/* Мобильное меню профиля */
.profile-menu-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0008;
    backdrop-filter: blur(16px);
    z-index: 3000;
    padding: 0;
    animation: fadeInProfile 0.18s;
}
@keyframes fadeInProfile_mobile {
    from { opacity: 0; transform: scale(0.98);}
    to   { opacity: 1; transform: scale(1);}
}
@keyframes fadeOutProfile_mobile {
    from { opacity: 1; transform: scale(1);}
    to   { opacity: 0; transform: scale(0.98);}
}
.profile-menu-mobile.fade-in-profile {
    animation: fadeInProfile_mobile 0.18s;
}
.profile-menu-mobile.fade-out-profile {
    animation: fadeOutProfile_mobile 0.18s;
}
.profile-menu-mobile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 12px 24px;
    border-bottom: 1px solid #36393f;
    position: relative;
}
.profile-menu-mobile-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #36393f;
}
.profile-menu-mobile .close-btn {
    position: absolute;
    right: 18px;
    top: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px !important;
    cursor: pointer;
    margin: 0;
    padding: 5px 20px !important;
    border-radius: 0;
    font-weight: 600;
    display: block;
    gap: 0;
    box-shadow: none;
    transition: none;
}
@media (max-width: 820px) {
    .profile-menu { display: none !important; }
    .profile-menu-mobile { display: none; }
    .navbar-left {
        padding: 0 !important;
    }
}

.profile-menu-effects {
    display: flex;
    flex-direction: column;
    padding: 4px 0px 4px 28px;
    color: #ccc;
    text-decoration: none;
    background-color: #0000;
    transition: all 0.15s;
    font-size: 18px !important;
    gap: 12px;
    align-items: center;
    align-content: center;
    margin-top: 12px;
}

.profile-menu-effects input[type='checkbox'] {
    margin: 0;
}

.profile-menu-effects label {
    margin: 0;
}

.profile-menu-effects:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgb(170, 85, 255);
}

.profile-menu-effects-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    align-content: center;
}

div#profile-menu a {
    text-decoration: none !important;
}

div#profile-menu-mobile a {
    text-decoration: none !important;
}