/*==============================================================================
     Quest Modal
==============================================================================*/

#quest-marker {
    display: flex;
    justify-content: center;
    margin: 10px 0 30px;
}

#quest-marker img {
    width: 100px;
    height: auto;
    display: block;
    cursor: pointer;
}

.quest-frame h2 {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.1;
    color: #2b2b2b;
    text-align: center;
margin-top: -50px;
margin-bottom: 20px;
}

.quest-frame p {
    font-size: 1.35rem;
    line-height: 1.45;
    color: #35312c;
}

.quest-image {
    display: block;
    width: 100%;
    margin: 20px 0 30px;
    border-radius: 6px;
}

#quest-modal.hidden {
    display: none;
}

#quest-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}


.quest-edge-top,
.quest-edge-bottom,
.quest-edge-left-repeat,
.quest-edge-right-repeat,
.quest-edge-left,
.quest-edge-right,
.quest-corner {
    pointer-events: none;
}
#quest-modal {
    background: rgba(0, 0, 0, 0.7);
}

.quest-marker {
    position: absolute;
    top: -83px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 100;
}

.quest-section-header {
    display: flex;
    align-items: center;
    gap: 4px;

margin: 22px -35px 14px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fafafa;
letter-spacing: 0.07em;
text-shadow:
    -1px -1px 0 #2d2b29,
     1px -1px 0 #2d2b29,
    -1px  1px 0 #2d2b29,
     1px  1px 0 #2d2b29;
}

.quest-section-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.quest-reward-box {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: -1px 11px 17px 2px;
    padding: 8px 18px;
    min-height: 56px;

    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #b5b5b5,
        #a8a8a8
    );

    border: 1px solid #8d8d8d;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.15);
}

.quest-reward-item {

    width: 56px;
    height: 56px;
    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #585858,
        #4d4d4d
    );

    border: 1px solid rgba(255,255,255,.15);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 1px 1px rgba(0,0,0,.18);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.quest-reward-item img {

    width: 50px;
    height: 50px;
   
    display: block;
}

/*==============================================================================
     Quest Window
==============================================================================*/
.quest-window {
    width: min(1024px, 90vw);
    min-height: 685px;

    background: #e2ddd3;
box-sizing: border-box;    
    position: relative;
}

.quest-frame {
    min-height: 420px;
    height: auto;
padding-top: 120px;
    padding-left: 70px;
    padding-right: 70px;
    padding-bottom: 40px;}

.quest-corner {
    position: absolute;
    display: block;
}

.quest-corner-tl {
     top: -16px;
    left: -16px;
    z-index: 2;
}

.quest-edge-top {
    position: absolute;
    top: -16px;
    left: 290px;
    right: 293px;
    height: 100%;

background: url("../assets/quest-window/edge-top.png") repeat-x;
    
}

.quest-edge-bottom {
     position:absolute;

    left:290px;
    right:293px;

    bottom:-30px;
z-index: 1;
    height:54px;

    background:url("../assets/quest-window/edge-bottom.png") repeat-x;
}

.quest-edge-right {
    position: absolute;

    top: 146px;
    bottom: 0;

    right: -14px;


 

    z-index: 2;

}

.quest-edge-left {
    position: absolute;

    top: 146px;
    bottom: 0;

    left: -16px;


 

    z-index: 2;

}

.quest-edge-left-repeat {
    position: absolute;

    top: 342px;
    bottom: 0;

    left: -16px;

    width: 100%;

    background: url("../assets/quest-window/edge-left.png") repeat-y;
}

.quest-edge-right-repeat {
    position: absolute;

    top: 302px;
    bottom: 0;

    right: -10px;

    width: 33px;         

    background: url("../assets/quest-window/edge-right.png") repeat-y;


}

.quest-corner-bl {
    left:-16px;
    bottom: -18px;
position: absolute;
}

.quest-corner-br {
     right:-13px;
    bottom:-18px;

position: absolute;}

.quest-corner-tr { 
    position: absolute; 
    top: -16px; 
    right: -13px; 
    
    z-index: 2; }
    
    .quest-bottom{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:174px;
    pointer-events: none;
}


/*==============================================================================
     buttons
==============================================================================*/

.quest-buttons {

    display: flex;
    justify-content: center;
    gap: 34px;
    margin: 34px 0 10px;
}

.quest-button {

    flex: 1;
    max-width: 260px;

    display: block;

    padding: 8px 0;

    text-align: center;
    text-decoration: none;

    color: #f2f2f2;
    font-size: 1.15rem;
    font-weight: 500;

    border-radius: 999px;

   background: linear-gradient(
        to bottom,
        #777777 0%,
        #5d5d5d 30%,
        #444444 65%,
        #303030 100%
    );

    border: 1px solid #7d7d7d;
    
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -1px 0 rgba(0,0,0,.45),
        0 1px 1px rgba(0,0,0,.18);

    
        transition: filter .15s ease;
}

.quest-button:hover {

    filter: brightness(1.08);

    color: #ffffff;
}

/*==============================================================================
     Mobile Quest Window
==============================================================================*/


@media (max-width: 768px) {

    .quest-window {
        width: 95vw;
        min-height: 685px;
    }
    
    .quest-marker {
        width: 125px;
    }

.quest-frame h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: #2b2b2b;
    text-align: center;
margin-top: -55px;
margin-bottom: 20px;
margin-right: 26px;
}

.quest-frame p {
    font-size: 1.15rem;
    line-height: 1.45;
    color: #35312c;
}

.quest-image {
    margin: 20px -18px 30px;
}


    .quest-frame {
        min-height: 360px;
        padding-top: 100px;
        padding-left: 70px;
        padding-right: 28px;
        padding-bottom: 30px;
    }

    .quest-edge-top {
        left: 244px;
        right: 247px;
        background-image: url("../assets/quest-window/768/edge-top.png");
    }

    .quest-edge-left {
        top: 123px;
    }

    .quest-edge-right {
        top: 123px;
        right: -13px;
    }

    .quest-edge-left-repeat {
        top: 290px;
        background-image: url("../assets/quest-window/768/edge-left.png");
    }

    .quest-edge-right-repeat {
        top: 290px;
        right: -15px;
        background-image: url("../assets/quest-window/768/edge-right.png");
    }

    .quest-edge-bottom {
        background-image: url("../assets/quest-window/768/edge-bottom.png");
        bottom: -36px;
    }
    
    .quest-section-header {
    display: flex;
    align-items: center;
    gap: 4px;

margin: -10px -45px 14px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fafafa;

letter-spacing: 0.07em;
text-shadow:
    -1px -1px 0 #2d2b29,
     1px -1px 0 #2d2b29,
    -1px  1px 0 #2d2b29,
     1px  1px 0 #2d2b29;

}

.quest-section-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.quest-reward-box {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0px 20px 19px -20px;
    padding: 8px 12px;
    min-height: 56px;

    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #b5b5b5,
        #a8a8a8
    );

    border: 1px solid #8d8d8d;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.15);
}

.quest-reward-item {

    width: 56px;
    height: 56px;
    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #585858,
        #4d4d4d
    );

    border: 1px solid rgba(255,255,255,.15);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 1px 1px rgba(0,0,0,.18);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.quest-reward-item img {

    width: 50px;
    height: 50px;
   
    display: block;
}

.quest-buttons {
    
   margin: 36px -16px 11px -60px;
}


/*==============================================================================
     Quest Window - Small Phones
==============================================================================*/


@media (max-width: 480px) {

    .quest-window {
        width: 98vw;
        min-height: auto;
    }

 

    .quest-frame {
        min-height: 320px;

        padding-top: 82px;
       padding-left: 32px;
        padding-right: 24px;
        padding-bottom: 24px;
    }

    .quest-frame h2 {
        font-size: 1.5rem;
        line-height: 1.1;

        margin-top: -42px;
        margin-bottom: 18px;
        margin-right: 18px;
    }

    .quest-frame p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .quest-image {
      margin-left: 18px;
    margin-right: 0;
    width: 90%;
        height: 165px;
        object-fit: cover;
        object-position: center;
    
    }

    .quest-edge-top {
        left: 170px;
        right: 172px;
        background-image: url("../assets/quest-window/480/edge-top.png");
    }

    .quest-edge-left {
        top: 98px;
        left: -3px;
    }

    .quest-edge-right {
        top: 98px;
        right: -3px;
    }

    .quest-edge-left-repeat {
        top: 235px;
        left: -3px;
        bottom: 104px;
        background-image: url("../assets/quest-window/480/edge-left.png");
    }

    .quest-edge-right-repeat {
        top: 235px;
        right: -11px;
        bottom: 104px;
        background-image: url("../assets/quest-window/480/edge-right.png");
    }

    .quest-edge-bottom {
        bottom: -28px;
        background-image: url("../assets/quest-window/480/edge-bottom.png");
    }
    
    .quest-corner-tl {
        left: -3px;
    }
    
     .quest-corner-tr {
        right: -3px;
    }
    
    .quest-corner-bl {
        left: -3px;
    }
    
     .quest-corner-br {
        right: -3px;
    }
    
  
    
    .quest-marker {
    position: absolute;
    top: -69px;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    z-index: 100;
}

.quest-section-header {
    display: flex;
    align-items: center;
    gap: 4px;

margin: -6px -10px 14px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fafafa;

letter-spacing: 0.07em;
text-shadow:
    -1px -1px 0 #2d2b29,
     1px -1px 0 #2d2b29,
    -1px  1px 0 #2d2b29,
     1px  1px 0 #2d2b29;

}

.quest-section-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.quest-reward-box {
    display: flex;
    align-items: center;
    gap: 4px;

    margin: -1px 11px 17px 2px;
    padding: 0px 2px;
    min-height: 48px;

    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #b5b5b5,
        #a8a8a8
    );

    border: 1px solid #8d8d8d;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.15);
}

.quest-reward-item {
    width: 40px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    box-shadow: none;
}

.quest-reward-item img {

    width: 36px;
    height: 36px;
   
    display: block;
}

.quest-buttons {
    max-width: 285px;
    margin: 35px 35px 11px 56px;
}

}