@font-face {
    font-family: "LCDSolid";
    src: url("../fonts/LCDSolid1.13-Regular.otf") format('opentype');
}

.quest {
    font-family: "LCDSolid", sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: url("../images/nd/quest/map.jpg") 0 0 no-repeat;
    background-size: cover;
}
.quest-label {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 388px;
    height: 80px;
    background: url("../images/nd/quest/label.png") 0 0 no-repeat;
    background-size: cover;
    z-index: 3;
}
.quest-label span {
    position: absolute;
    left: 32px;
    top: 49px;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    width: 308px;
    text-align: center;
}
.clouds {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}
.step-1 .clouds {
    background: url("../images/nd/quest/sky-1.png") 0 0 no-repeat;
    background-size: cover;
}
.step-2 .clouds {
    background: url("../images/nd/quest/sky-2.png") 0 0 no-repeat;
    background-size: cover;
}
.step-3 .clouds {
    background: url("../images/nd/quest/sky-3.png") 0 0 no-repeat;
    background-size: cover;
}
.step-4 .clouds {
    background: url("../images/nd/quest/sky-4.png") 0 0 no-repeat;
    background-size: cover;
}
.step-5 .clouds {
    background: url("../images/nd/quest/sky-5.png") 0 0 no-repeat;
    background-size: cover;
}
.step-6 .clouds {
    background: url("../images/nd/quest/sky-6.png") 0 0 no-repeat;
    background-size: cover;
}
.step-7 .clouds {
    background: url("../images/nd/quest/sky-7.png") 0 0 no-repeat;
    background-size: cover;
}
.step-8 .clouds {
    background: url("../images/nd/quest/sky-8.png") 0 0 no-repeat;
    background-size: cover;
}
.step-9 .clouds {
    background: url("../images/nd/quest/sky-9.png") 0 0 no-repeat;
    background-size: cover;
}
.step-10 .clouds {
    background: url("../images/nd/quest/sky-9.png") 0 0 no-repeat;
    background-size: cover;
}
.finish .clouds {
    display: none;
}

.quest-path {
    position: absolute;
    background: url("../images/nd/quest/path.png") 0 0 no-repeat;
    background-size: cover;
}
.quest-step {
    position: absolute;
    padding: 0;
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    color: #000;
    border: none;
    outline: none;
    background: transparent;
}
.quest-step span {
    position: relative;
    padding-left: 3px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: url("../images/nd/quest/coin-nopassed.png");
    background-size: cover;
}
.quest-step.active span {
    background: url("../images/nd/quest/coin-active.png");
    background-size: cover;
    z-index: 1;
}
.quest-step.active:hover span {
    background: url("../images/nd/quest/coin-hover.png");
    background-size: cover;
}
.quest-step.active:hover:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 5px 20px 0 #ff8000;
}
.quest-step.passed span {
    background: url("../images/nd/quest/coin-passed.png");
    background-size: cover;
    color: #aee9ff;
}
.stop {
    position: absolute;
}
.step-3 .stop {
    transform: scaleX(-1);
}
.step-4 .stop {
    transform: scaleX(-1);
}
.step-5 .stop {
    transform: scaleX(-1);
}
.step-7 .stop {
    transform: scaleX(-1);
}
.step-9 .stop {
    transform: scaleX(-1);
}

.quest-modal {
    display: none;
}
.quest-modal.open {
    display: block;
    position: fixed;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 0;
    left: 0;
    margin: 0 auto;
    z-index: 101;
    max-width: 1062px;
    max-height: 694px;
    padding: 6px;
    border-radius: 30px;
    background: #1C1C1C;
}
.quest-modal.open:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/nd/quest/modal.png");
    background-size: 100% 100%;
    pointer-events: none;
}
.quest-modal__top {
    display: flex;
    gap: 7px;
    margin-bottom: -1px;
}
.quest-modal__step {
    width: 100%;
    height: 89px;
    margin-top: -40px;
    margin-left: -15px;
    z-index: 1;
}
.step-1 .quest-modal__step {
    background: url("../images/nd/quest/Step-0.png");
    background-size: cover;
}
.step-2 .quest-modal__step {
    background: url("../images/nd/quest/Step-1.png");
    background-size: cover;
}
.step-3 .quest-modal__step {
    background: url("../images/nd/quest/Step-2.png");
    background-size: cover;
}
.step-4 .quest-modal__step {
    background: url("../images/nd/quest/Step-3.png");
    background-size: cover;
}
.step-5 .quest-modal__step {
    background: url("../images/nd/quest/Step-4.png");
    background-size: cover;
}
.step-6 .quest-modal__step {
    background: url("../images/nd/quest/Step-5.png");
    background-size: cover;
}
.step-7 .quest-modal__step {
    background: url("../images/nd/quest/Step-6.png");
    background-size: cover;
}
.step-8 .quest-modal__step {
    background: url("../images/nd/quest/Step-7.png");
    background-size: cover;
}
.step-9 .quest-modal__step {
    background: url("../images/nd/quest/Step-8.png");
    background-size: cover;
}
.step-10 .quest-modal__step {
    background: url("../images/nd/quest/Step-9.png");
    background-size: cover;
}
.step-10.finish .quest-modal__step {
    background: url("../images/nd/quest/Step-10.png");
    background-size: cover;
}

.quest-modal__close {
    padding: 0;
    border: none;
    flex-shrink: 0;
    width: 42px;
    height: 30px;
    background: #1C1C1C;
    cursor: pointer;
    transition: .3s ease;
}
.quest-modal__close:hover {
    opacity: .8;
}
.quest-modal__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 42px;
}
.quest-modal__santa {
    flex-shrink: 0;
}
.quest-modal__title {
    margin: 0 0 26px;
    font-weight: 500;
    font-size: 16px;
    line-height: 30px;
    color: #00B5F4;
    text-shadow: 0 4px 0 0 #000;
}
.quest-modal__text {
    margin: 0 0 52px;
    font-weight: 500;
    font-size: 16px;
    line-height: 30px;
    color: #F1F1F1;
    text-shadow: 0 4px 0 0 #000;
}
.quest-modal__btn {
    width: 256px;
    height: 79px;
    padding: 0;
    background: url("../images/nd/quest/button.svg");
    background-size: cover;
    border: none;
    display: flex;
    justify-content: center;
    font-weight: 500;
    font-size: 20px;
    line-height: 90px;
    color: #000;
    text-shadow: 0 4px 0 0 #049ed4;
    text-align: center;
    z-index: 1;
    cursor: pointer;
    transition: .3s ease;
}
.quest-modal__btn:hover {
    opacity: .8;
}
.quest-modal__fire {
    position: absolute;
    bottom: 6px;
    right: 6px;
    pointer-events: none;
}