/* 成就典藏：A 方案。列表也会嵌入收藏展柜，故列表样式不依赖弹层层级。 */
#achievementsOverlay .achievement-panel {
    width: 100%;
    max-width: 520px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background: linear-gradient(135deg, #292820, #11191a 55%, #171b19);
}

#achievementsOverlay .achievement-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 17px 18px 13px;
    border-bottom: 1px solid rgba(224, 198, 139, 0.16);
    background: rgba(28, 34, 31, 0.54);
}

.achievement-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #eee7d9;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    white-space: nowrap;
}

.achievement-header-meta {
    display: none;
    color: #b5a88f;
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
    white-space: nowrap;
}

.achievement-summary {
    display: flex;
    flex: none;
    align-items: flex-end;
    gap: 20px;
    padding: 15px 18px 12px;
    border-bottom: 1px solid rgba(179, 157, 107, 0.24);
}

.achievement-summary > div { white-space: nowrap; }
.achievement-summary strong { color: #e8ce8b; font-size: 34px; line-height: 1; }
.achievement-summary span, .achievement-summary p {
    color: #b7ab94;
    font-size: 12px;
    line-height: 1.55;
}
.achievement-summary p { margin: 0 0 2px; }

.achievement-filter-row {
    flex: none;
    min-width: 0;
    margin: 0;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(224, 198, 139, 0.16);
}
.achievement-filter-options {
    display: flex;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.achievement-filter-options::-webkit-scrollbar { display: none; }
#achQualityFilter .af-btn {
    flex: none;
    min-width: 32px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #1e2523;
    color: #c3b9a6;
    text-align: center;
    font-size: 11px;
}
#achQualityFilter .af-btn[data-v="pink"] { color: #db00db; }
#achQualityFilter .af-btn[data-v="orange"] { color: #ff8800; }
#achQualityFilter .af-btn[data-v="special"] { color: #e53939; }
#achQualityFilter .af-btn[data-v="legend"] { color: #ffd700; }
#achQualityFilter .af-btn[data-v="epic"] { color: #aa44ff; }
#achQualityFilter .af-btn[data-v="rare"] { color: #4488ff; }
#achQualityFilter .af-btn[data-v="fine"] { color: #4caf50; }
#achQualityFilter .af-btn[data-v="common"] { color: #cccccc; }
#achQualityFilter .af-btn.active {
    border-color: #edcb68;
    background: rgba(237, 203, 104, 0.12);
    color: #ffda68;
}

.achievement-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 5px 18px 24px;
}
.achievement-row {
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
}
.achievement-stripe {
    align-self: stretch;
    width: 3px;
    min-height: 50px;
    border-radius: 3px;
    background: var(--achievement-rank, #cccccc);
}
.achievement-main { min-width: 0; }
.achievement-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--achievement-rank, #cccccc);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}
.achievement-status {
    color: var(--achievement-rank, #cccccc);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.achievement-desc {
    margin-top: 4px;
    color: #a8a496;
    font-size: 12px;
    line-height: 1.4;
}
.achievement-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #bdb3a0;
    font-size: 10px;
    white-space: nowrap;
}
.achievement-progress-track {
    flex: 1;
    height: 5px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
}
.achievement-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #d1ac61;
}
.achievement-action,
html[data-ui-style=midnight] .achievement-action {
    min-width: 76px;
    padding: 8px 10px;
    border: 1px solid #f0d590;
    border-radius: 7px;
    background: linear-gradient(120deg, #efd695, #bc9657);
    color: #271d0d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.achievement-action.is-equipped,
html[data-ui-style=midnight] .achievement-action.is-equipped {
    border-color: #6c876b;
    background: #1d3227;
    color: #91cd9c;
}
.achievement-action:hover, .achievement-action:focus-visible { filter: brightness(1.1); }
@media (max-width: 380px) {
    #achievementsOverlay .achievement-header { padding-left: 14px; padding-right: 14px; }
    .achievement-header-title { gap: 8px; font-size: 18px; }
    .achievement-summary, .achievement-filter-row { padding-left: 14px; padding-right: 14px; }
    .achievement-list { padding-left: 14px; padding-right: 14px; }
    .achievement-row { gap: 9px; }
    .achievement-action { min-width: 72px; padding: 8px 7px; }
}
