/* css/hunter/mobile-rank.css */

/* =========================
   Mobile Rank Room
   - exam license / guild certificate layout
   - keep rank tab focused on current rank, next exam, and requirements
========================= */
@media (max-width: 768px) {
    .hunter-page .hunter-rank-room {
        background:
            radial-gradient(circle at 50% 10%, rgba(251, 191, 36, .14), transparent 28%),
            linear-gradient(180deg, rgba(55, 34, 19, .96), rgba(92, 48, 22, .88) 48%, rgba(41, 23, 13, .96));
    }

    .hunter-page .hunter-rank-room .glove-collection-header {
        display: none;
    }

    .hunter-page .hunter-rank-room #hunterRankGoalPanel {
        margin: 0 0 10px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hunter-page .hunter-rank-exam-card {
        position: relative;
        overflow: hidden;
        display: grid;
        gap: 12px;
        padding: 14px;
        border-radius: 24px;

        background:
            radial-gradient(circle at 82% 10%, rgba(251, 191, 36, .22), transparent 34%),
            linear-gradient(135deg, rgba(21, 15, 15, .96), rgba(80, 43, 24, .94));
        border: 1px solid rgba(245, 196, 92, .68);
        color: #fff7db;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .14),
            0 16px 34px rgba(20, 10, 5, .32);
    }

    .hunter-page .hunter-rank-exam-card::after {
        content: "";
        position: absolute;
        right: -28px;
        bottom: -42px;
        width: 150px;
        height: 150px;
        border-radius: 999px;
        background:
            radial-gradient(circle, rgba(251, 191, 36, .18), transparent 58%),
            repeating-radial-gradient(circle, rgba(251, 191, 36, .18) 0 1px, transparent 1px 14px);
        pointer-events: none;
    }

    .hunter-page .hunter-rank-exam-head {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas:
            "seal title"
            "status status";
        gap: 10px;
        align-items: center;
    }

    .hunter-page .hunter-rank-exam-seal {
        grid-area: seal;
        width: 54px;
        height: 54px;
        display: grid;
        place-items: center;
        border-radius: 18px;
        background:
            radial-gradient(circle at 40% 25%, rgba(255, 255, 255, .28), transparent 34%),
            linear-gradient(180deg, rgba(251, 191, 36, .98), rgba(146, 64, 14, .92));
        border: 1px solid rgba(255, 237, 183, .48);
        font-size: 26px;
        box-shadow: 0 6px 14px rgba(20, 10, 5, .22);
    }

    .hunter-page .hunter-rank-exam-title {
        grid-area: title;
        min-width: 0;
    }

    .hunter-page .hunter-rank-exam-card .hunter-rank-goal-kicker {
        color: #facc15;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: .16em;
    }

    .hunter-page .hunter-rank-exam-title h3 {
        margin: 3px 0 4px;
        color: #fff7db;
        font-size: 24px;
        font-weight: 950;
        line-height: 1.05;
        text-shadow: 0 2px 0 rgba(0, 0, 0, .26);
    }

    .hunter-page .hunter-rank-exam-title p {
        margin: 0;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        color: rgba(255, 247, 219, .78);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.45;
    }

    .hunter-page .hunter-rank-exam-status {
        grid-area: status;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 16px;
        background: rgba(255, 251, 235, .08);
        border: 1px solid rgba(255, 224, 138, .18);
    }

    .hunter-page .hunter-rank-exam-status span,
    .hunter-page .hunter-rank-exam-next span,
    .hunter-page .hunter-rank-exam-metrics span {
        color: #facc15;
        font-size: 10px;
        font-weight: 950;
    }

    .hunter-page .hunter-rank-exam-status strong {
        color: #fff7db;
        font-size: 12px;
        font-weight: 950;
    }

    .hunter-page .hunter-rank-exam-next {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 8px;
        align-items: end;
        padding: 11px 12px;
        border-radius: 18px;
        background: rgba(245, 158, 11, .18);
        border: 1px solid rgba(251, 191, 36, .52);
    }

    .hunter-page .hunter-rank-exam-next span {
        grid-column: 1 / -1;
    }

    .hunter-page .hunter-rank-exam-next strong {
        min-width: 0;
        overflow: hidden;
        color: #fff7db;
        font-size: 18px;
        font-weight: 950;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hunter-page .hunter-rank-exam-next em {
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(17, 24, 39, .88);
        color: #fde68a;
        font-size: 11px;
        font-style: normal;
        font-weight: 950;
    }

    .hunter-page .hunter-rank-exam-requirements {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 7px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hunter-page .hunter-rank-exam-requirements li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto;
        gap: 7px;
        align-items: center;
        padding: 8px 9px;
        border-radius: 14px;
        background: rgba(255, 251, 235, .08);
        border: 1px solid rgba(255, 224, 138, .18);
    }

    .hunter-page .hunter-rank-exam-requirements li.is-completed {
        background: rgba(34, 197, 94, .13);
        border-color: rgba(74, 222, 128, .34);
    }

    .hunter-page .hunter-rank-exam-requirements li span {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(17, 24, 39, .58);
        color: #fde68a;
        font-size: 12px;
        font-weight: 950;
    }

    .hunter-page .hunter-rank-exam-requirements li strong {
        min-width: 0;
        overflow: hidden;
        color: #fff7db;
        font-size: 12px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hunter-page .hunter-rank-exam-requirements li em {
        color: rgba(255, 247, 219, .76);
        font-size: 11px;
        font-style: normal;
        font-weight: 900;
    }

    .hunter-page .hunter-rank-exam-metrics {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hunter-page .hunter-rank-exam-metrics div {
        min-width: 0;
        padding: 10px;
        border-radius: 16px;
        background: rgba(255, 251, 235, .08);
        border: 1px solid rgba(255, 224, 138, .18);
    }

    .hunter-page .hunter-rank-exam-metrics strong {
        display: block;
        margin-top: 5px;
        overflow: hidden;
        color: #fff7db;
        font-size: 14px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hunter-page .hunter-rank-exam-metrics em {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        color: rgba(255, 247, 219, .68);
        font-size: 10px;
        font-style: normal;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hunter-page .hunter-rank-exam-action {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: 44px;
        border-radius: 16px;
        font-size: 14px;
    }

    .hunter-page .hunter-rank-exam-action:disabled {
        opacity: .72;
    }

    .hunter-page .hunter-rank-room .hunter-compact-details {
        margin: 8px 0;
        background: rgba(255, 246, 223, .90);
        border-color: rgba(245, 196, 92, .70);
    }

    .hunter-page .hunter-rank-room .hunter-compact-details summary {
        padding: 12px 13px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .hunter-page .hunter-rank-exam-card {
        padding: 12px;
        border-radius: 22px;
    }

    .hunter-page .hunter-rank-exam-head {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .hunter-page .hunter-rank-exam-seal {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 23px;
    }

    .hunter-page .hunter-rank-exam-title h3 {
        font-size: 21px;
    }

    .hunter-page .hunter-rank-exam-metrics {
        grid-template-columns: 1fr;
    }
}
