/* 玩家等級 · 世界 Boss 征伐職業 */
.profile-card--rpg {
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: linear-gradient(165deg, rgba(10, 5, 20, 0.92), rgba(20, 8, 40, 0.88));
    box-shadow: 0 0 32px rgba(127, 0, 255, 0.12);
    text-align: center;
}

.profile-card--rpg h3 {
    margin-top: 0;
    justify-content: center;
}

.rpg-subtitle {
    margin: -4px 0 12px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(255, 200, 140, 0.78);
    text-align: center;
}

.rpg-hero__raid-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: rgba(255, 220, 160, 0.9);
    text-align: center;
}

.rpg-hero__raid-title strong {
    color: #ffd700;
}

.rpg-buff-row--raid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    justify-items: center;
    text-align: center;
}

.rpg-class-desc {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(220, 235, 255, 0.88);
    background: rgba(255, 120, 60, 0.08);
    border: 1px solid rgba(255, 160, 80, 0.22);
    text-align: center;
}

.rpg-milestones-wrap {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.28);
    padding: 0 10px 8px;
}

.rpg-milestones-wrap summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    color: #b8f0ff;
    padding: 8px 0 6px;
    list-style: none;
}

.rpg-milestones-wrap summary::-webkit-details-marker {
    display: none;
}

.rpg-milestone-list {
    margin: 0;
    padding: 0 4px 0 0;
    list-style: none;
    display: grid;
    gap: 4px;
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.rpg-milestone {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: rgba(180, 210, 255, 0.75);
}

.rpg-milestone.is-done {
    color: rgba(220, 240, 255, 0.92);
    background: rgba(0, 240, 255, 0.06);
}

.rpg-milestone.is-current {
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: rgba(255, 215, 0, 0.08);
}

.rpg-milestone__lv {
    font-weight: 800;
    color: #ffd700;
}

.rpg-milestone__title {
    font-weight: 700;
}

.rpg-milestone__bonus {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 200, 120, 0.85);
}

.rpg-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    text-align: center;
}

.rpg-hero__level {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.35), rgba(10, 5, 20, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}

.rpg-hero__lv-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 230, 180, 0.85);
}

.rpg-hero__lv-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}

.rpg-hero__meta {
    flex: 1;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.rpg-hero__class {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff8ec;
}

.rpg-xp-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.25);
    overflow: hidden;
}

.rpg-xp-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00f0ff, #7dffb8, #ffd700);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transition: width 0.35s ease;
}

.rpg-xp-text {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: rgba(190, 220, 255, 0.85);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.rpg-buff-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.82rem;
    color: rgba(220, 235, 255, 0.9);
    justify-content: center;
    text-align: center;
}

.rpg-buff-row strong {
    color: #ffd700;
}

.rpg-hint {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: rgba(180, 210, 255, 0.75);
    text-align: center;
}

.rpg-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.rpg-class-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #fff;
}

.rpg-class-card:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--class-color, #00f0ff);
    box-shadow: 0 0 16px color-mix(in srgb, var(--class-color, #00f0ff) 40%, transparent);
}

.rpg-class-card.is-active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    background: rgba(40, 30, 8, 0.55);
}

.rpg-class-card.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.rpg-class-card__icon {
    font-size: 1.6rem;
}

.rpg-class-card__name {
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
}

.rpg-class-card__tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--class-color, #00f0ff);
    text-transform: uppercase;
}

.rpg-class-card__buff {
    font-size: 0.65rem;
    color: rgba(180, 210, 255, 0.75);
}

.rpg-class-card__extra {
    font-size: 0.6rem;
    color: rgba(255, 200, 140, 0.72);
}

.rpg-class-card__lock {
    font-size: 0.58rem;
    color: rgba(255, 150, 150, 0.85);
    font-weight: 700;
}

.rpg-msg {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #7dffb8;
    min-height: 1.2em;
    text-align: center;
}

.rpg-msg.is-error {
    color: #ff8899;
}

.hdr-xp-text {
    display: block;
    margin-top: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(160, 220, 255, 0.85);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .rpg-hero {
        flex-direction: column;
        text-align: center;
    }

    .rpg-class-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rpg-buff-row--raid {
        grid-template-columns: 1fr;
    }

    .rpg-milestone {
        grid-template-columns: 48px 1fr;
    }

    .rpg-milestone__bonus {
        grid-column: 2;
    }
}
