/* =========================================
   MISSION LIST
========================================= */

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

/* =========================================
   TOP HEADER WRAPPER
========================================= */

.mission-header-wrapper{
    margin-bottom:18px;
}

.mission-header{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
}

/* =========================================
   RULE BUTTON
========================================= */

.mission-daily-banner .rules{

    position:absolute;

    top:14px;
    right:14px;

    width:42px;
    height:42px;

    border-radius:50%;

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

    flex-shrink:0;
    overflow:hidden;
    box-sizing:border-box;

    background:
        linear-gradient(
            180deg,
            #ffdb70,
            #ffab1d
        );

    border:2px solid #ffe8a4;

    color:#552400 !important;

    text-decoration:none !important;

    box-shadow:
        0 5px 15px rgba(0,0,0,.35),
        inset 0 2px 0 rgba(255,255,255,.4);

    z-index:1;
}

.mission-daily-banner .rules small{
    display:none;
}

/* =========================================
   DAILY BANNER
========================================= */

.mission-daily-banner{

    position:relative;

    display:flex;
    align-items:center;

    width:100%;

    min-height:170px;

    padding:18px 20px;

    border-radius:28px;

    overflow:hidden;

    background:
        radial-gradient(circle at top left,
            rgba(255,180,60,.18),
            transparent 30%),

        linear-gradient(
            145deg,
            #4a220d 0%,
            #2a1209 45%,
            #140804 100%
        );

    border:2px solid #d79d33;

    box-shadow:
        0 10px 30px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.08);
}

/* glow */

.mission-daily-banner::before{

    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,210,120,.18),
            transparent 35%
        );

    pointer-events:none;
}

/* LEFT */

.mission-daily-left{

    width:120px;
    height:120px;

    flex-shrink:0;

    border-radius:20px;

    overflow:hidden;

    border:2px solid rgba(255,215,120,.35);

    background:#2a1208;

    margin-right:18px;
}

.mission-daily-left img{

    width:100%;
    height:100%;
    object-fit:cover;
}

/* RIGHT */

.mission-daily-right{
    flex:1;
    min-width:0;
}

/* CENTER */

.mission-daily-center{

    flex:1;
    padding-right:18px;
}

.mission-daily-title{

    color:#fff4d2;

    font-size:34px;
    font-weight:900;

    margin-bottom:20px;

    text-shadow:
        0 3px 10px rgba(0,0,0,.45);
}

/* TITLE */

.mission-daily-title{

    color:#fff4d2;

    font-size:34px;
    font-weight:900;

    margin-bottom:18px;

    text-shadow:
        0 3px 10px rgba(0,0,0,.45);
}

/* TITLE */

.mission-daily-title{

    color:#ffe1a0;

    font-size:30px;
    font-weight:900;

    line-height:1;

    margin-bottom:16px;

    text-shadow:
        0 2px 6px rgba(0,0,0,.55);
}

/* PROGRESS */

.mission-daily-progress{

    position:relative;

    height:30px;

    border-radius:999px;

    overflow:hidden;

    background:#6d3000;

    border:2px solid #8f4709;

    box-shadow:
        inset 0 3px 8px rgba(0,0,0,.45);
}

.mission-daily-progress-fill{

    height:100%;

    border-radius:999px;

    background:
        linear-gradient(
            180deg,
            #fff56d,
            #ffbf00
        );

    box-shadow:
        0 0 12px rgba(255,210,50,.35);
}

.mission-daily-progress span{

    position:absolute;
    inset:0;

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

    color:#fff;

    font-size:16px;
    font-weight:900;

    text-shadow:
        0 2px 4px rgba(0,0,0,.65);
}


/* BONUS */

.mission-daily-right{

    width: 240px;
    min-width: 240px;

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

    gap:12px;
    position: relative;
}

.mission-daily-reward{

    display:flex;
    align-items:center;
    gap:12px;

    /* width: fit-content; */
    width: 210px;
    height: 100px;

    /* padding:10px 12px; */
    padding: 14px 16px;

    /* border-radius:18px; */
    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #4a220f 0%,
            #2a1209 100%
        );

    border:1px solid rgba(255,210,120,.25);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 5px 14px rgba(0,0,0,.25);

    flex-shrink: 0;
}

.mission-daily-reward img{

    width:56px;
    height:56px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(255,215,80,.45));
}

.mission-daily-reward small{

    display:block;

    color:#ffcf55;

    font-size:20px;
    font-weight:700;
}

.mission-daily-reward strong{

    color:#fff4d2;

    font-size:26px;
    font-weight:900;

    line-height:1;
}

/* FINAL CLAIM BUTTON */

.mission-final-claim{

    /* margin-top:12px;
    width:100%;
    height:48px; */

    width: 210px;
    height: 38px;    
    border:none;
    border-radius:14px;

    background:
        linear-gradient(
            180deg,
            #ffe16a 0%,
            #ff8a00 100%
        );

    color:#fff;
    font-size:18px;
    font-weight:900;

    box-shadow:
        0 0 20px rgba(255,190,50,.45),
        inset 0 2px 0 rgba(255,255,255,.35);

    animation:pulseClaim 1s infinite alternate;
    transition: .2s;
}

.mission-final-claim:hover {
    transform: translateY(-2px);
}

@keyframes pulseClaim{

    from{
        transform:scale(1);
        box-shadow:
            0 0 12px rgba(255,190,50,.35);
    }

    to{
        transform:scale(1.04);
        box-shadow:
            0 0 25px rgba(255,190,50,.75);
    }

}

/* =========================================
   TOP CLAIMED TAG
========================================= */

.mission-daily-reward{
    position: relative;
}

.mission-claimed-tag{

    position: absolute;

    top: -10px;
    left: 10%;

    transform: translateX(-50%);

    background:
        linear-gradient(
            180deg,
            #ff5a5a 0%,
            #d90000 100%
        );

    color: #fff;

    font-size: 11px;
    font-weight: 900;

    padding: 4px 12px;

    border-radius: 999px;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(255,0,0,.35);

    z-index: 20;

    animation: claimedPop .35s ease;
}

@keyframes claimedPop{

    from{
        opacity:0;
        transform:translateX(-50%) translateY(-6px) scale(.8);
    }

    to{
        opacity:1;
        transform:translateX(-50%) translateY(0) scale(1);
    }

}

/* RESET TIMER */

.mission-reset-time{
    text-align:center;
    color:#ffd54c;
    font-size:15px;
    font-weight:900;
    margin-bottom:12px;
    text-shadow:0 2px 6px rgba(0,0,0,.45);
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .mission-daily-banner{

        min-height:130px;
        padding:14px;
    }

    .mission-daily-left{

        width:82px;
        height:82px;

        margin-right:12px;
    }

    .mission-daily-title{

        font-size:22px;

        margin-bottom:12px;
    }

    .mission-daily-progress{

        height:22px;
    }

    /* .mission-daily-right{

        width:auto;
        width:120px;
        margin-left:10px;
    }    

    .mission-daily-reward img{

        width:36px;
        height:36px;
    }

    .mission-daily-reward strong{

        font-size:18px;
    } 

    .mission-final-claim{
        font-size:11px;
        height:38px;
    } */

    .mission-daily-right {
        width: 155px;
        min-width: 155px;
        gap: 8px;
    }

    .mission-daily-reward {
        width: 145px;
        height: 74px;

        padding: 10px;
        border-radius: 18px;
    }

    .mission-daily-reward img {
        width: 38px;
        height: 38px;
    }

    .mission-daily-reward small {
        font-size: 11px;
    }

    .mission-daily-reward strong {
        font-size: 18px;
    }

    .mission-final-claim {
        width: 145px;
        height: 30px;

        font-size: 14px;
        border-radius: 12px;
    }
}

/* =========================================
   MISSION CARD
========================================= */

.mission-card {

    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;

    padding: 12px;

    border: 2px solid #d6a63a;
    border-radius: 16px;

    background:
        linear-gradient(
            90deg,
            #3c180d 0%,
            #1a0c08 100%
        );

    box-shadow:
        0 0 12px rgba(255, 200, 50, 0.18);

    min-height: 100px;
}

/* =========================================
   LEFT
========================================= */

.mission-left {

    width: 120px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-icon-box {

    width: 58px;
    height: 58px;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #5a2313 0%,
            #2d120d 100%
        );

    border: 2px solid #f3c548;

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

    overflow: hidden;
}

.mission-icon {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.mission-type-badge {

    margin-top: 6px;

    color: #ffd76a;

    font-size: 11px;
    font-weight: 700;

    text-align: center;
    line-height: 1.1;

    max-width: 100px;
}

/* =========================================
   CENTER
========================================= */

.mission-center {

    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-description {

    color: #f0d8aa;

    font-size: 13px;
    font-weight: 500;

    margin-bottom: 6px;

    line-height: 1.2;
}

.mission-reward {

    display: flex;
    align-items: center;
    gap: 4px;

    color: #ffcc42;

    font-size: 16px;
    font-weight: 800;

    margin-bottom: 8px;
}

.mission-reward-coin {

    width: 20px;
    height: 20px;

    object-fit: contain;
}

/* =========================================
   PROGRESS BAR
========================================= */

.mission-progress {

    position: relative;

    height: 16px;

    border-radius: 20px;

    overflow: hidden;

    background: #1d120d;

    border: 1px solid #7a5a24;
}

.mission-progress-bar {

    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #ffca3a 0%,
            #ffec99 100%
        );
}

.mission-progress span {

    position: absolute;
    inset: 0;

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

    font-size: 10px;
    font-weight: 900;

    color: #ffffff;

    text-shadow:
        0 0 2px rgba(0,0,0,0.9),
        0 1px 3px rgba(0,0,0,1);
}

/* =========================================
   RIGHT
========================================= */

.mission-right {

    position: relative;

    flex-shrink: 0;

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

    width: 110px;
    height: 42px;
}

/* =========================================
   BUTTON
========================================= */

.mission-btn {

    min-width: 120px;
    height: 42px;

    padding: 0 18px;

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;

    color: white;

    background:
        linear-gradient(
            180deg,
            #ffce5e 0%,
            #ff4e3b 100%
        );

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.4);

    cursor: pointer;

    transition: 0.2s;
}

.mission-btn:hover {
    transform: translateY(-1px);
}

/* COMPLETED */

.mission-btn.completed {

    background:
        linear-gradient(
            180deg,
            #5b4b35 0%,
            #2e261c 100%
        ) !important;

    border: 1px solid #8c7342;

    color: #e5d3a2;

    box-shadow: none;

    cursor: default;
}

/* REDEEM */

.mission-btn.redeem-btn {

    background:
        linear-gradient(
            180deg,
            #6dff7a 0%,
            #18b84a 100%
        ) !important;

    color: #ffffff;

    border: 1px solid #7dff98;

    box-shadow:
        0 0 12px rgba(80, 255, 120, 0.35),
        inset 0 1px 1px rgba(255,255,255,0.35);

    animation: redeemGlow 1.2s infinite alternate;
}

/* REWARDED */

.mission-btn.rewarded {

    background:
        linear-gradient(
            180deg,
            #2f2822 0%,
            #171310 100%
        ) !important;

    border: 1px solid #4e4336;

    color: #8f816d;

    box-shadow: none;

    cursor: default;

    opacity: 0.95;
}

/* =========================================
   COMPLETED CARD
========================================= */

.mission-card.completed {

    background:
        linear-gradient(
            90deg,
            #2b241d 0%,
            #171411 100%
        );

    border: 2px solid #7e6a3a;

    opacity: 0.9;
}

.mission-card.completed .mission-reward {
    color: #d6b76b;
}

.mission-card.completed .mission-progress {

    background: #221b14;

    border: 1px solid #6f5a30;
}

.mission-card.completed .mission-progress-bar {

    background:
        linear-gradient(
            90deg,
            #c8a84c 0%,
            #e3c86f 100%
        );
}

/* =========================================
   HOVER BUTTON SWAP
========================================= */

.mission-right .mission-btn {
    position: absolute;
}

.mission-card.completed .mission-btn.completed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mission-card.completed .mission-btn.redeem-btn {
    display: none;
}

.mission-card.completed:hover .mission-btn.completed {
    display: none;
}

.mission-card.completed:hover .mission-btn.redeem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   TAG
========================================= */

.mission-tag {

    position: absolute;

    top: -2px;
    left: -3px;

    background: #ff2956;

    color: white;

    font-size: 11px;
    font-weight: 900;

    padding: 4px 12px;

    border-radius: 999px;

    border-radius: 12px 0 10px 0;
}

#dailyRewardPoolWrapper .mission-tag {

    top: -10px;
    left: -1%;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes redeemGlow {

    from {

        box-shadow:
            0 0 8px rgba(80,255,120,0.25),
            inset 0 1px 1px rgba(255,255,255,0.25);
    }

    to {

        box-shadow:
            0 0 16px rgba(80,255,120,0.55),
            inset 0 1px 1px rgba(255,255,255,0.4);
    }
}

.flying-coin {

    position: absolute;

    width: 50px;
    height: 50px;

    pointer-events: none;

    z-index: 99999;

    will-change: transform, opacity;
}

/* =========================================
   FULLY CLAIMED
========================================= */

/* .mission-all-claimed {

    width: 270px;
    height: 64px;

    border-radius: 18px;

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

    background:
        linear-gradient(
            180deg,
            #3d3123 0%,
            #241c14 100%
        );

    border: 1px solid rgba(255, 220, 140, .18);

    color: #ffe29a;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: .5px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 6px 16px rgba(0,0,0,.28);

    text-align: center;
} */

.mission-all-claimed {

    width: 210px;
    height: 100px;

    border-radius: 22px;

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

    background:
        linear-gradient(
            180deg,
            #4d3416 0%,
            #2a1c0d 100%
        );

    border: 1px solid rgba(255, 220, 140, .28);

    color: #ffe29a;

    font-size: 20px;
    font-weight: 900;

    text-align: center;
    line-height: 1.3;

    box-shadow:
        0 0 18px rgba(255, 190, 60, .22),
        inset 0 1px 0 rgba(255,255,255,.06);

    opacity: 0;
    transform: translateY(10px) scale(.95);

    transition: all .35s ease;
}

.mission-all-claimed.show {

    opacity: 1;
    transform: translateY(0) scale(1);
}

.mission-top-status{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}

.mission-top-tag{
    background:#ff3b30;
    color:#fff;
    padding:4px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    animation:none !important;
}

.mission-top-claimed-amount{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:18px;
    font-weight:700;
    color:#fff;
}

.mission-top-claimed-amount img{
    width:22px;
    height:22px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:768px){

    .mission-header{
        gap:10px;
    }

    .mission-daily-banner .rules{

        top:10px;
        right:10px;

        width:34px;
        height:34px;

        border-width:1px;

        z-index:2;
    }

    .mission-daily-banner .rules i{
        font-size:13px;
    }

    .mission-daily-banner .rules i{
        font-size:15px;
    }

    .mission-daily-banner .rules small{
        font-size:10px;
    }

    .mission-daily-banner{
        height:130px;
        border-radius:20px;
    }

    .mission-daily-title{
        font-size:20px;
        margin-bottom:12px;
    }

    .mission-daily-progress{
        height:24px;
        margin-bottom:12px;
    }

    .mission-daily-progress span{
        font-size:14px;
    }

    .mission-daily-reward{
        font-size:16px;
    }

    .mission-daily-reward img{
        width:26px;
        height:26px;
    }

    .mission-reset-time{
        font-size:14px;
    }

    .mission-card {
        padding: 10px;
        gap: 10px;
    }

    .mission-btn {

        min-width: 98px;

        height: 38px;

        font-size: 14px;

        padding: 0 14px;
    }

    /* mobile direct redeem */
    .mission-card.completed .mission-btn.completed {
        display:none;
    }

    .mission-card.completed .mission-btn.redeem-btn {
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .mission-all-claimed {

        width: 145px;
        height: 74px;

        border-radius: 18px;
        font-size: 14px;
    }
}

/* =========================================
   RULE MODAL
========================================= */

.mission-rule-modal{

    background:
        linear-gradient(
            180deg,
            #3b1206 0%,
            #190904 100%
        );

    border:2px solid #f0b63f;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
        0 0 25px rgba(255,180,40,.25);
}

/* HEADER */

.mission-rule-header{

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

    padding:16px 18px;

    border-bottom:1px solid rgba(255,255,255,.08);

    background:
        linear-gradient(
            90deg,
            #5b1d0f 0%,
            #2a0d06 100%
        );
}

.mission-rule-title{

    color:#ffd56f;

    font-size:20px;
    font-weight:900;

    text-shadow:
        0 2px 6px rgba(0,0,0,.35);
}

/* CLOSE BUTTON */

.mission-rule-close{

    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#ffffff;

    font-size:20px;
    font-weight:700;

    cursor:pointer;

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

    transition:.2s;
}

.mission-rule-close:hover{

    background:rgba(255,255,255,.16);

    transform:rotate(90deg);
}

/* BODY */

.mission-rule-body{
    padding:20px;
}

/* REWARD HIGHLIGHT */

.mission-rule-highlight{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    margin-bottom:18px;

    padding:14px;

    border-radius:16px;

    background:
        linear-gradient(
            90deg,
            rgba(255,196,0,.18) 0%,
            rgba(255,132,0,.10) 100%
        );

    border:1px solid rgba(255,210,90,.35);

    color:#ffd76b;

    font-size:16px;
    font-weight:800;

    text-align:center;
}

.mission-rule-coin{

    width:26px;
    height:26px;

    object-fit:contain;

    filter:
        drop-shadow(0 0 6px rgba(255,210,50,.45));
}

/* RULE LIST */

.mission-rules-list{

    margin:0;
    padding-left:18px;
}

.mission-rules-list li{

    color:#f7e3bf;

    font-size:14px;

    line-height:1.7;

    margin-bottom:10px;
}

.mission-rules-list li:last-child{
    margin-bottom:0;
}

/* MOBILE */

@media(max-width:768px){

    .mission-rule-title{
        font-size:18px;
    }

    .mission-rule-highlight{
        font-size:14px;
    }

    .mission-rules-list li{
        font-size:13px;
    }

}

/* GAME LOBBY */
.mission-badge {
    color: #fff !important;
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    font-weight: 700;
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
    animation: missionPulse 1.5s infinite;
}

@keyframes missionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
    }
    50% {
        transform: scale(1.03); /* was 1.08 */
        box-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
    }
}


.small-mission-icon {
    position: fixed;
    bottom: 150px;
    left: 10px;
    z-index: 100;
    width: 80px;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));

    animation:
        floatSpinIcon 2.5s ease-in-out infinite,
        shakeSpinIcon 5s infinite;
}

.small-mission-icon .mission-close {
    position: absolute;
    right: 0;
    top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
    z-index: 2;
}

.small-mission-icon .mission-close > i {
    background-color: #fff;
    font-size: 20px;
    color: #A52A2A;
    border-radius: 50%;
    text-align: right;
}

.small-mission-icon > a > img {
    width: 100%;
    display: block;

    animation: pulseSpinIcon 1.8s infinite;
}

/*
|--------------------------------------------------------------------------
| FLOAT
|--------------------------------------------------------------------------
*/
@keyframes floatSpinIcon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/*
|--------------------------------------------------------------------------
| PULSE
|--------------------------------------------------------------------------
*/
@keyframes pulseSpinIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/*
|--------------------------------------------------------------------------
| SHAKE
|--------------------------------------------------------------------------
*/
@keyframes shakeSpinIcon {
    0%, 90%, 100% {
        transform: translateX(0);
    }

    92% {
        transform: translateX(-3px);
    }

    94% {
        transform: translateX(3px);
    }

    96% {
        transform: translateX(-3px);
    }

    98% {
        transform: translateX(3px);
    }
}

.hide-mission {
    animation: hideMission 0.5s forwards !important;
}

@keyframes hideMission {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-200px);
        opacity: 0;
    }
}

@media (min-width: 992px) {

    .small-mission-icon {
        width: 120px;
        left: 20px;
    }
    .small-mission-icon {
        bottom: 220px;
    }

    .small-mission-icon .mission-close > i {
        font-size: 26px;
    }
}
