﻿@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/onest/Onest-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face {
    font-family: 'Geom';
    src: url('fonts/geom/Geom-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root{
    --font: 'Onest', sans-serif;
    --font-balance: 'Geom', 'Onest', sans-serif;
    --primary-color: #ffffff;
    --secondary-color: #0a0908;
    --mc_colors: rgba(255, 255, 255, 0.08);
    --glass: rgba(22, 22, 24, 0.55);
    --card: rgba(28, 28, 30, 0.78);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent: #E3AD31;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


html {
    height: 100%;
    background-color: #1a120a;
}
body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background-color: #1a120a;
    font-family: var(--font);
    color: #fff;
    position: relative;
}
/* Фон на весь экран */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #1a120a;
    background-image: url("/assets/bg.png?v=4");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
body::after {
    content: none !important;
    display: none !important;
}


.all{
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}
#app{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    min-height: 100dvh;
    height: 100dvh;
    z-index: 1;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    background: transparent;
    font-family: var(--font);
}
/* гарантированно без нижней виньетки */
#app::before,
#app::after {
    content: none !important;
    display: none !important;
    background: none !important;
}
#ErrorPage{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    z-index: 1;
    position: relative;
    font-family: var(--font);
}
#header{
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    padding: 19px 22px 10px;
    border-radius: 0;
    position: relative;
    z-index: 3;
}
.header_item{
    display: flex;
    align-items: center;
}
#header_logo_text {
    display: none;
}
#header_logo_svg{
    width: auto;
    height: 31px;
    max-width: 192px;
    object-fit: contain;
    display: block;
}
#header_right_balance{
    padding: 6px 6px 6px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(#16100D, #16100D) padding-box,
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(102, 102, 102, 0.05) 100%) border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
#header_right_balance::before {
    content: "";
    position: absolute;
    left: -30%;
    bottom: -55%;
    width: 85%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(69, 55, 11, 0.95) 0%, rgba(69, 55, 11, 0.35) 40%, transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}
#header_right_balance > * {
    position: relative;
    z-index: 1;
}
#header_right_balance .star_asset {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    filter: none;
    margin-right: 0;
}
#balance_add_button{
    display: none !important;
}
#balance{
    line-height: 1;
    margin: 0 2px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
#header_right {
    gap: 10px;
}
#header_right_balance #avatar,
#avatar{
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
}
#menu_buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    bottom: 30px;
    z-index: 5;
}
#menu_buttons::before,
#menu_buttons::after {
    content: none !important;
    display: none !important;
}
#menu_mainButtons{
    --tab-h: 76px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    height: var(--tab-h);
    width: 280px;
    padding: 0;
    border-radius: 999px;
    gap: 0;
    border: none;
    /* стекло без чёрной заливки — blur сильнее бывшей тени */
    box-shadow: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(72px) saturate(1.4);
    -webkit-backdrop-filter: blur(72px) saturate(1.4);
    touch-action: pan-y;
}
#menu_mainButtons::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 32%, transparent 68%, rgba(255, 255, 255, 0.15) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}
.menu_slider{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / 3);
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.menu_slider[data-index="0"],
.menu_slider[data-index="1"],
.menu_slider[data-index="2"]{
    border-radius: 999px;
}
.menu_button{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
    transition: none;
    position: relative;
    z-index: 1;
    border-radius: 0;
    background: transparent;
}
.menu_button .menu_icon {
    width: 30px;
    height: 30px;
    display: block;
    background-color: rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s ease;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.menu_button .menu_icon-tasks {
    -webkit-mask-image: url("/assets/tasks.svg");
    mask-image: url("/assets/tasks.svg");
}
.menu_button .menu_icon-home {
    width: 30px;
    height: 26px;
    -webkit-mask-image: url("/assets/home.svg");
    mask-image: url("/assets/home.svg");
}
.menu_button .menu_icon-games {
    width: 32px;
    height: 21px;
    -webkit-mask-image: url("/assets/games.svg");
    mask-image: url("/assets/games.svg");
}
.Podpis{
    display: none;
}
.menu_button path{
    fill: rgba(255, 255, 255, 0.4);
}
.menu_button svg{
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.4);
}
.active_menu_button{
    background: transparent;
    border-radius: 0;
    width: 100%;
    height: 100%;
}
.menu_button:first-child.active_menu_button,
.menu_button:last-child.active_menu_button,
.menu_button:nth-child(2).active_menu_button {
    border-radius: 0;
}
.active_menu_button .menu_icon {
    background-color: #fff;
}
.active_menu_button path{
    fill: #fff;
}
.active_menu_button svg {
    color: #fff;
}
.active_menu_button .Podpis{
    color: #fff;
}
#panels{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;    
    padding: 8px 16px 0;
    width: 100%;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: visible;
    min-height: 0;
}
#app:has(#panel_profile[style*="flex"]) #panels{
    overflow: visible;
}
#panels > div{
    justify-content: flex-start;
    display: flex;
}
#panel_main{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    gap: 12px;
    font-size: 16px;
    font-family: var(--font);
    font-weight: 500;    
    color: #fff;
    scrollbar-width: none;
    padding-bottom: 140px;
    box-sizing: border-box;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
#panel_main::-webkit-scrollbar {
    display: none;
}
#panel_profile{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
#panel_loading{
    display: none;
    flex-direction: column;
    align-items: center;
}
#loadingText{
    font-family: "Onest";
    font-weight: 400;
    font-size: 28px;
    color: #292D32;
}
.waiter{
    width: 250px;
    height: 250px;
}
.waiter circle{
    fill: #0075F8;
    r: 13px;
}
.error-title{
    font-family: "Onest";
    font-weight: 700;
    font-size: 46px;
    color: #292D32;
    margin: 0;
}
.error-description{
    font-family: "Onest";
    font-weight: 500;
    font-size: 23px;
    color: #292D32;
    text-align: center;
    margin: 0;
}
.ERRORIcon{
    width: 300px;
    height: 300px;
}
.ERRORIcon path{
    fill: #b10000;
}
.soonTasks{
    position: absolute;
    right: 0;
    bottom: 18px;
    font-family: "Onest";
    font-weight: 500;
    font-size: 10px;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    background-color: #0075F8;
    padding: 1px 3px;
    border-radius: 3px;
}

.switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            flex-shrink: 0;
        }

        /* Скрываем стандартный чекбокс (он будет невидим, но доступен для управления) */
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        /* Слайдер (фон переключателя) */
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .slider::before {
            content: "";
            position: absolute;
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .switch input:checked + .slider {
            background-color: #2196F3;
        }

        .switch input:checked + .slider::before {
            transform: translateX(26px);
        }

        .switch input:focus-visible + .slider {
            outline: 2px solid #0a58ca;
            outline-offset: 2px;
        }
        
        /* --- Информация о состоянии (для наглядности) --- */
        .status-label {
            font-size: 16px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .status-text {
            font-weight: 600;
            min-width: 70px;
            transition: color 0.3s;
        }

        .status-text.on {
            color: #2196F3;
        }
        .status-text.off {
            color: #888;
        }