/* Mistfall Hunter PvP Tier List */

.mistfall-page-title {
    margin: 0 0 8px;
    text-align: center;
}

.mistfall-last-update {
    margin: 0 0 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.mistfall-page {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.mistfall-page,
.mistfall-page * {
    box-sizing: border-box;
}

.mistfall-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mistfall-panel > p {
    text-align: justify;
}

.mistfall-section-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: underline;
}

.mistfall-tier-heading {
    margin: 26px 0 18px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}

/* Detailed build entries */

.mistfall-build {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin-bottom: 22px;
}

.mistfall-build-image {
    flex: 0 0 80px;
    width: 80px;
    height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.mistfall-build-image img {
    display: block;
    width: 80px;
    height: 120px;
    object-fit: contain;
    object-position: top center;
}

.mistfall-build-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.mistfall-build-copy h4 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.mistfall-build-copy p {
    margin: 0;
    text-align: justify;
}

/* Compact tier list */

.mistfall-tier-table {
    max-width: 1000px;
    margin: 0 auto;
}

.mistfall-tier-row {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.mistfall-tier-label {
    flex: 0 0 48px;
    min-width: 48px;
    max-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border-radius: 7px 0 0 7px;
}

.mistfall-tier-s {
    background: #ff4d4d;
}

.mistfall-tier-a {
    background: #ff944d;
}

.mistfall-tier-b {
    background: #ffd24d;
}

.mistfall-tier-cards {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: #2a2a2a;
    border-radius: 0 7px 7px 0;
}

.mistfall-tier-card {
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    background: #1e1e1e;
    border-radius: 7px;
    color: #fff;
}

.mistfall-card-class {
    font-size: 12px;
    line-height: 13px;
    text-align: center;
}

.mistfall-card-type {
    font-size: 11px;
    line-height: 12px;
    color: #aaa;
    text-align: center;
}

.mistfall-card-image {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mistfall-card-image img {
    display: block;
    width: 48px;
    height: 54px;
    object-fit: contain;
}

.mistfall-card-build {
    font-size: 13px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
}

.mistfall-image-credit {
    margin-bottom: 0;
    text-align: center !important;
    font-size: 12px;
    color: #777;
}

/* Responsive */

@media (max-width: 768px) {
    .mistfall-panel {
        padding: 16px;
    }

    .mistfall-tier-row {
        flex-direction: column;
    }

    .mistfall-tier-label {
        flex: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 38px;
        border-radius: 7px 7px 0 0;
    }

    .mistfall-tier-cards {
        width: 100%;
        border-radius: 0 0 7px 7px;
    }
}

@media (max-width: 480px) {
    .mistfall-page {
        line-height: 1.5;
    }

    .mistfall-panel {
        padding: 14px;
    }

    .mistfall-panel > p,
    .mistfall-build-copy p {
        text-align: left;
    }

    .mistfall-build {
        gap: 10px;
    }

    .mistfall-build-image {
        flex-basis: 70px;
        width: 70px;
        height: 105px;
    }

    .mistfall-build-image img {
        width: 70px;
        height: 105px;
    }

    .mistfall-tier-cards {
        justify-content: center;
    }
}