﻿.monster-panel,
.monster-popup-panel {
    position: absolute;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    background: linear-gradient(90deg, rgb(180 151 151 / 95%), rgb(183 130 100 / 95%));
}

.monster-mask,
.monster-dialog-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.monster-main {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px 10px;
}

.monster-header {
    position: relative;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 6%;
}

.monster-title {
    font-size: 24px;
    font-weight: 700;
}

.monster-close-btn,
.monster-popup-close {
    position: absolute;
    left: 4px;
    bottom: 8px;
    width: 42px;
    height: 42px;
    border: none;
    padding: 0;
    background: transparent;
    z-index: 20;
    pointer-events: auto;
}

    .monster-close-btn img,
    .monster-popup-close img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.monster-mode-list {
    /* flex: 1 1 auto; */
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 14px;
    overflow: auto;
    padding: 5px;
    height: 92%;
    scrollbar-width: none;
}

.monster-mode-card {
    position: relative;
    width: 100%;
    height: 29%;
    min-height: 210px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border: 2px solid #ffb700;
}

.monster-mode-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.monster-mode-card-1 .monster-mode-bg {
    background-image: url('/resource/image/UI/monster_mode1.png');
}

.monster-mode-card-2 .monster-mode-bg {
    background-image: url('/resource/image/UI/monster_mode2.png');
}

.monster-mode-card-3 .monster-mode-bg {
    background-image: url('/resource/image/UI/monster_mode3.png');
}
.monster-mode-card-4 .monster-mode-bg {
    background-image: url('/resource/image/UI/monster_mode4.png');
}
.monster-mode-card-5 .monster-mode-bg {
    background-image: url('/resource/image/UI/monster_mode5.png');
}

.monster-mode-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 6px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: #fff;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.monster-mode-top {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    flex-direction: column;
}

.monster-mode-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.monster-mode-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff5d2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.monster-mode-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff5d2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.monster-mode-time-text {
    font-size: 13px;
    color: #ffe8b0;
    font-weight: 400;
    margin-left: auto;
    align-self: self-start;
}
.monster-mode-desc-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: #fff6cc;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    padding: 0;
}

.monster-mode-bosses {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}



.monster-mode-boss-avatar {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

    .monster-mode-boss-avatar img {
        width: 100%;
        object-fit: cover;
    }

#monster-mode-3-bosses .monster-mode-boss-avatar {
    width: 52px;
    height: 52px;
}

.monster-mode-center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    margin-top: 8px;
    overflow: hidden;
}

.monster-mode-rank-info-line {
    width: 100%;
    border-radius: 12px;
    padding: 8px 10px;
    box-sizing: border-box;
    /*background: rgba(0, 0, 0, 0.34);*/
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
}

.monster-mode-rank-text-label {
    font-size: 12px;
    color: #ffe8b0;
}

.monster-mode-rank-text-value {
    font-size: 15px;
    font-weight: 700;
    color: #ecf900;
}

.monster-mode-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-direction: column;
}

.monster-mode-count-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 10px;
    /*background: rgba(0, 0, 0, 0.46);*/
}

.monster-mode-count-label {
    font-size: 12px;
    color: #ffe8b0;
}

.monster-mode-count-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.monster-mode-buy-btn {
    width: 26px;
    height: 26px;
    border: none;
    padding: 0;
    background: transparent;
}

    .monster-mode-buy-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.monster-mode-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.monster-mode-action-btn {
    min-width: 70px;
    height: 30px;
    border: none;
    font-size: 14px;
    font-weight: 700;
}

.monster-popup-dialog {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.monster-popup-header {
    position: relative;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-popup-title {
    font-size: 20px;
    font-weight: 700;
}

.monster-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monster-rank-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.monster-rank-row,
.monster-recommend-row {
    width: 100%;
    border-radius: 12px;
    padding: 8px;
    box-sizing: border-box;
    background: rgb(0 0 0 / 35%);
    color: #fff;
    max-height: 300px;
    border: 1px solid #5d8793;
}

.monster-rank-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.monster-rank-no {
    flex: 0 0 42px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #ffd027;
}

.monster-rank-info {
    flex: 1 1 auto;
    min-width: 0;
}

.monster-rank-name,
.monster-rank-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monster-rank-name {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.monster-rank-value {
    font-size: 12px;
    color: #ffe3a4;
    margin-top: 2px;
}

.monster-rank-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.monster-rank-btn {
    min-width: 60px;
    height: 26px;
    border: none;
    font-size: 12px;
    font-weight: 700;
}

.monster-desc-content {
    white-space: pre-line;
    line-height: 1.7;
    color: #4c3900;
    font-size: 16px;
    font-weight: 600;
}

.monster-recommend-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.monster-recommend-title {
    color: #ffe59c;
    font-size: 14px;
    font-weight: 700;
}

.monster-recommend-sub {
    color: #fff2cb;
    font-size: 12px;
}

.monster-recommend-queues {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.monster-recommend-one {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #92aaaee8;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #7dbdc6;
}

.monster-recommend-one-label {
    flex: 0 0 42px;
    color: #fff7e3;
    font-size: 12px;
}

.monster-recommend-hero-icons {
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

    .monster-recommend-hero-icons img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

.monster-mode-boss-avatar {
    position: relative;
}

.monster-mode-boss-five {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 2;
}

.monster-five-jin {
    background: rgb(129 113 66);
    color: rgb(201 197 163);
}

.monster-five-mu {
    background: rgb(78 125 69 / 88%);
    color: rgb(181 227 174);
}

.monster-five-shui {
    background: rgb(84 115 115);
    color: rgb(167 202 203);
}

.monster-five-huo {
    background: rgb(169 71 42);
    color: rgb(221 169 169);
}

.monster-five-tu {
    background: rgb(113 89 60);
    color: rgb(191 172 143);
}

.monster-rank-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .monster-rank-list::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

.monster-reward-items {
    width: 100%;
}

.monster-reward-state-icon {
    width: 60px;
    object-fit: contain;
    display: block;
}

/* ... existing code ... */

.battle-boss-result-hero-damage {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
    color: #ffe7a8;
}

.battle-boss-reward-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.battle-boss-reward-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 226, 124, 0.10);
    border: 1px solid rgba(255, 226, 124, 0.20);
}

.battle-boss-reward-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.battle-boss-reward-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #fff6d7;
}

.battle-boss-reward-value {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
    color: #ffe7a8;
}

.battle-boss-reward-items {
    padding: 4px 0;
    max-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ... existing code ... */