@font-face {
    font-family: "PtRootUi";
    src: url("../fonts/PtRobotoUi/pt-root-ui_regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "PtRootUi";
    src: url("../fonts/PtRobotoUi/pt-root-ui_medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "PtRootUi";
    src: url("../fonts/PtRobotoUi/pt-root-ui_bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto/Roboto-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto/Roboto-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto/Roboto-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto/Roboto-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter/Inter-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter/Inter-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter/Inter-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica/helvetica_regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "HelveticaNeue";
    src: url("../fonts/Helvetica/ofont.ru_HelveticaNeue.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "BRUSHSCI";
    src: url("../fonts/Brush/brushscriptmtrusbyme_italic.otf") format("truetype");
    font-style: italic;
    font-weight: 400;
}

:root {
    --purple: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    --white: #fff;
    --black-gradient: linear-gradient(160deg, #4a58dd -7.59%, #1f242b 39.51%);
    --black: #1E2229;
    --black-bg: #15191E;
    --black-alt: #131313;
    --black-block: linear-gradient(180deg, #101215 0%, #21262E 100%);
    --grey: rgba(255, 255, 255, 0.5);
    --grey-10: rgba(255, 255, 255, 0.1);
    --grey-20: rgba(223, 230, 244, 0.20);
    --grey-35: rgba(255, 255, 255, 0.35);
    --grey-80: rgba(19, 19, 19, 0.8);
    --red: rgba(255, 114, 114, 0.7);
}

* {
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*::-webkit-scrollbar {
    height: .375rem;
    width: .375rem;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #717985;
    /* Если нужно - добавьте :hover и:active */
}

*::-webkit-scrollbar-thumb:vertical {
    min-height: 1.5rem;
}

*::-webkit-scrollbar-thumb:horizontal {
    min-width: 1.5rem;
}

html {
    scrollbar-width: thin;
    min-height: 100vh;

    background: #121418;
    font-size: 16px;
    line-height: normal;
    scroll-behavior: smooth;
}

body {
    font-family: "PtRootUi", sans-serif;
    font-style: normal;
    color: #fff;
    font-weight: 500;
    max-width: 100%;
    width: 100%;
    position: relative;
    scrollbar-width: thin;
    min-height: 100vh;
    overflow-x: hidden;
}


input {
    padding: 0;
    margin: 0;
    border: 0;
    border: none;
    outline: none;
    resize: none;
    text-align: left;
    background: none;
    font-size: 1rem;
}

input::placeholder {
    opacity: 1;
    color: rgba(255, 255, 255, 0.35);
}


label {
    padding: 0;
    margin: 0;
}

button {
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
    background-color: transparent;
    transition: opacity 1s ease;
    display: inline-block;
    font-family: "PtRootUi", sans-serif;
    text-align: left;
}

button:hover {
    opacity: 0.5;
}

ul {
    padding: 0;
    list-style: none;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    transition: opacity 1s ease;
    cursor: pointer;
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
}

a:hover {
    opacity: 0.5;
}

button:hover {
    cursor: pointer;
}

textarea {
    resize: none;
    scrollbar-width: thin;
}

ul {
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

input {
    max-width: 100%;
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 0.625rem;
    padding: 0.75rem;
    line-height: 1.25rem;
    transition: all 1s ease-in-out;
    color: #fff;
}


input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: none !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: none !important;
    color: #fff !important;
}

input::placeholder {
    opacity: 1;
    color: rgba(255, 255, 255, 0.35);
}

input:disabled {
    opacity: 0.4;
    pointer-events: none;
}

textarea:focus {
    outline: none;
}

textarea::placeholder {
    opacity: 1;
    color: rgba(255, 255, 255, 0.35);
}

pre {
    font-family: "PtRootUi", sans-serif;
    white-space: pre-wrap;
}

.container {
    padding: 0 1.75rem;
    margin: 0 auto;
    max-width: 117.25rem;
    width: 100%;
}

/* elements */


/* popup */
.pop-up {
    position: relative;
    max-width: 100%;
    width: 100%;
}

.select-btn {
    max-width: 100%;
    width: 100%;
}

.select-list {
    position: absolute;
    scrollbar-width: thin;
    border-radius: 0.625rem;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    z-index: 3;
    display: none;
    transition: all 1s ease-in-out;
    background: unset;
    padding-bottom: 2rem;
    max-height: 14rem;
    overflow: auto;
}

.select-btn:hover {
    opacity: 1;
}

.select-element:hover {
    opacity: 1;
}

/* radio btns */
.radio-number-wrapper {
    margin: 2.25rem auto 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-number__content {
    padding: 1.25rem 1.875rem;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: linear-gradient(151deg, rgba(220, 166, 255, 0.45) 0%, rgba(134, 145, 255, 0.45) 100%);


    border-radius: 0.625rem;
    font-size: 0.938rem;
    line-height: 1.125rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    text-align: center;
}


.radio-number__checkbox {
    position: absolute;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
}

.radio-number__content {
    cursor: pointer;
}

.radio-number__checkbox:checked + .radio-number__content {
    border: 1px solid;
    background: linear-gradient(151deg, #DCA6FF 0%, #8691FF 100%), #353535;
}

.radio-number__checkbox:checked + .radio-number__content:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
}

.radio-number__checkbox:checked + .radio-number__content:after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    border-radius: inherit;
    background: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    background: linear-gradient(151deg, #DCA6FF 0%, #8691FF 100%);

}

.radio-number__content-text {
    position: relative;
    z-index: 2;
}

.radio-number__content-img {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    z-index: 3;
}


.radio-text__content {
    padding: 1.25rem 1.875rem;
    background: linear-gradient(151deg, rgba(220, 166, 255, 0.45) 0%, rgba(134, 145, 255, 0.45) 100%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 0.625rem;
    font-size: 1.125rem;
    line-height: 115%;
    color: #ffffff;
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
}


.radio-text__checkbox {
    position: absolute;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
}

.radio-text {
    cursor: pointer;
}

.radio-text__content {
    display: flex;
    align-items: center;
    gap: 1.875rem;
}

.radio-text__round {
    display: flex;
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 100%;
    background: #fff;
    z-index: 2;
    position: relative;
}

.radio-text__checkbox:checked + .radio-text {
    background: #353535;
}

.radio-text__checkbox:checked + .radio-text__content:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
}

.radio-text__checkbox:checked + .radio-text__content:after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    border-radius: inherit;
    background: linear-gradient(224deg, #DCA6FF 0%, #8691FF 100%);
}

.radio-text__checkbox:checked + .radio-text__content .radio-text__round:after {
    content: '';
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    top: calc(50% - 0.375rem);
    left: calc(50% - 0.375rem);
    border-radius: 100%;
    background: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    z-index: 3;
}

.radio-text__content-text {
    position: relative;
    z-index: 2;
    line-height: 115%;
}

.radio-text-wrapper {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-text-yes-no {
    flex-direction: row;
    gap: 2.25rem;
}

.radio-text-yes-no .radio-text {
    max-width: 100%;
    width: 100%;
}

/* radio btns */

.button-purple {
    padding: 0.875rem 2.25rem;
    background: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
}

.button-purple-big {
    max-width: 100%;
    width: 100%;
}

.purple-text {
    background-color: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    background-image: linear-gradient(151deg, #AD4FEA 0%, #4A58DD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145.34deg, #dbdee8 12.5%, #eeeeef 34.05%, #7f808b 100%);
    width: 1.313rem;
    height: 1.313rem;
    border-radius: 100%;
    font-weight: 700;
    font-size: 0.4375rem;
    line-height: 1;
    color: #585a5e;
}

.coin__number {
    width: 1.125rem;
    height: 1.125rem;
    border: 0.7000000476837158px solid #585a5e;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-field__text {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.125rem;
}

.profile-field__input {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.profile__select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    max-width: 100%;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 0.75rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 1s ease-in-out;
}

.profile__select-btn:hover {
    color: #fff;
}

.profile__select-list {
    margin-top: 0.2rem;
    z-index: 2;
    background: #34393f;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.625rem;
}

.profile__select-element {
    max-width: 100%;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.3125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 1s ease-in-out;
}

.profile__select-element:hover {
    color: #fff;
}

.profile__select-list {
    display: flex;
    flex-direction: column;
}

.select-element__active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.train-selected{
    z-index: 7;
    position: relative;
    border-radius: 1rem !important;
    border: 3px dashed  #AD4FEA;
    animation: train-selected 0 ease-in-out;
}
/* /elements */
.clue {
    position: relative;
    cursor: pointer;
    pointer-events: all;

}

.clue:hover {
    opacity: 1;
}

.clue .subtitle:hover ~ .clue__content {
    opacity: 1;
    z-index: 2;
}
.clue .title{
    position: relative;
    z-index: 5;
}
.clue .title:hover ~ .clue__content {
    opacity: 1;
    z-index: 5;
}

.clue__content {
    margin-top: 2rem;
    padding: 1.87rem;
    position: absolute;
    width: 20rem;
    background: rgba(175, 175, 175, 0.17);
    backdrop-filter: blur(31.21722412109375px);
    border-radius: 0.75rem;
    left: -3rem;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    text-align: left;
    pointer-events: none;
}

.clue__content:after {
    content: "";
    position: absolute;
    top: -1.9375rem;
    width: 2.625rem;
    height: 1.9375rem;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    left: 6.19rem;
    background: rgba(175, 175, 175, 0.17);
    backdrop-filter: blur(31.21722412109375px);
}

.clue__title {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: normal;
}

.clue__text {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: normal;
}

.clue--open {
    opacity: 1;
    z-index: 2;
}
.block-caption {
    position: relative;
    z-index: 5;
}
@keyframes train-selected {
    from {
        z-index: inherit;
        border-color: rgba(0, 0, 0, 0.59);
    }

    to {
        z-index: 9;
        border-color: #AD4FEA;
    }
}
/* /popup */
.wrapper {
    position: relative;
    min-height: 100vh;
    background: #15191E;
}

.mobile {
    display: none;
}

@media (max-width: 1600px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 850px) {
    html {
        font-size: 16px;
    }

    .container {
        max-width: 29.3rem;
        width: 100%;
        padding: 0 1rem;
    }

    .desktop {
        display: none !important;
    }

    .mobile {
        display: block;
    }


    .radio-number-wrapper {
        margin-top: 1rem;
        display: flex;
        gap: 0.25rem;
        justify-content: center;
    }

    .radio-number__content {
        padding: 1.063rem 1.188rem;
        font-size: 0.875rem;
        line-height: 1.063rem;
        min-width: 3.25rem;
        min-height: 3.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .radio-number__content-text {
        position: relative;
        z-index: 2;
    }

    .radio-text-wrapper {
        margin-top: 1rem;
        gap: 0.25rem;
    }

    .radio-text__content {
        padding: 0.938rem 0.563rem;
        font-size: 1.125rem;
        line-height: normal;
    }

    .radio-text__content {
        gap: 0.563rem;
    }

    .radio-text__round {
        width: 1.25rem;
        height: 1.25rem;
    }

    .radio-text__checkbox:checked + .radio-text__content .radio-text__round:after {
        width: 0.625rem;
        height: 0.625rem;
        top: calc(50% - 0.313rem);
        left: calc(50% - 0.313rem);
    }


    .coin-wrapper {
        width: 1rem;
        height: 1rem;
        font-size: 0.36669rem;
    }

    .coin__number {
        width: 0.86669rem;
        height: 0.86669rem;
        border: 0.7000000476837158px solid #585a5e;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .clue {
        position: relative;
        cursor: pointer;
    }

    .clue:hover {
        opacity: 1;
    }

    .clue:hover .clue__content {
        opacity: 1;
        z-index: 3;
    }

    .clue__content {
        margin-top: 1.5rem;
        padding: 1rem;
        position: absolute;
        width: 16rem;
        border-radius: 0.75rem;
        left: 0;
        opacity: 0;
        transition: all 0.5s ease-in-out;
        z-index: -1;
        text-align: left;
        background: #525252;
        backdrop-filter: none;
    }

    .clue__content:after {
        top: -1.3rem;
        width: 2rem;
        height: 1.3rem;
        left: 3rem;
        background: #525252;
        backdrop-filter: none;
    }

    .clue__title {
        font-size: 1rem;
    }

    .clue__text {
        margin-top: 1rem;
        font-size: 0.875rem;
    }

    .clue--open {
        opacity: 1;
        z-index: 2;
    }

}

.disabled-opacity{
    pointer-events: none;
    opacity: 0.6;
}