/* Achievements use the shared redesign typography and navigation. */
body.redesign.rd-achievements-page { background: #090c12; }
body.redesign.rd-achievements-page::before { content: none; }
.ac-page {
    --ac-muted: #a6afbe;
    --ac-line: #29303b;
    --ac-accent: #ff9958;
    max-width: 1088px;
    margin: auto;
    padding: 30px 30px 40px;
    color: var(--rd-text, #f4f4f6);
    font-family: var(--rd-font-body, Inter), sans-serif;
}
.ac-page [hidden] { display: none !important; }
.ac-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.redesign .ac-page h1 { margin: 0 0 5px; font-size: clamp(33px, 4vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.ac-sub { color: var(--ac-muted); font-size: 13px; }
.ac-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.ac-owner { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; font-size: 13px; }
.ac-owner-avatar { display: block; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.ac-owner-name { min-width: 0; overflow-wrap: anywhere; }
.ac-card .ac-bar { max-width: 280px; margin-top: 10px; }
.ac-btn, .ac-pick, .ac-claim {
    border-radius: 8px;
    padding: 7px 12px;
    min-height: 35px;
    font: 600 13px var(--rd-font-body, Inter), sans-serif;
    cursor: pointer;
}
.ac-btn, .ac-pick { background: #171c25; border: 1px solid #3b4352; color: #f4f4f6; }
.ac-chips { display: flex; gap: 6px; overflow-x: auto; padding: 3px; margin: 20px -3px 14px; }
.ac-chip {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ac-muted);
    white-space: nowrap;
    border-radius: 7px;
    padding: 7px 10px;
    cursor: pointer;
}
.ac-chip.is-on { background: #202631; border-color: #333a49; color: #fff; }
.ac-dot { background: var(--ac-accent); border-radius: 50%; width: 6px; height: 6px; }
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 13px;
    padding: 16px;
    min-height: 135px;
    border: 1px solid var(--ac-line);
    background: #131822;
    border-radius: 12px;
}
.ac-tile-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.redesign .ac-tile-name { font: 800 18px/1.18 var(--rd-font-head, 'Exo 2'), sans-serif; margin: 0 0 4px; overflow-wrap: anywhere; }
.ac-art, .ac-tile-head > i { width: 64px; height: 64px; flex: none; object-fit: cover; border: 1px solid #323947; border-radius: 11px; background: #0c111b; }
.ac-art-wrap { position: relative; flex: none; }
.ac-art-wrap img { display: block; }
.ac-art-tier { position: absolute; right: 2px; bottom: 2px; border-radius: 4px; padding: 0 4px; color: #f1f1f7; background: #121823; font-size: 10px; }
.ac-secret-icon, .ac-tile-head > i { display: grid; place-items: center; color: #a6afbe; font-size: 27px; }
.ac-tile-rarity { color: var(--ac-c); font-size: 11px; }
.ac-tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; justify-content: space-between; }
.ac-progress { flex: 1 1 100%; color: var(--ac-muted); font-size: 12px; }
.ac-progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ac-progress-value { color: var(--rd-text, #f4f4f6); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.ac-claim-status:empty { display: none; }
.ac-claim-status:not(:empty) { flex-basis: 100%; font-size: 12px; color: #ffb47f; }
.ac-bar { height: 4px; border-radius: 10px; background: #303746; overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: var(--ac-c, var(--ac-accent)); }
.ac-claim { margin-left: auto; border: 1px solid #684a36; background: #30251e; color: #ffb47f; }
.ac-claim:hover { background: #473328; }
.ac-claim:disabled { opacity: .6; cursor: wait; }
.ac-claimed { color: #a6c1b1; font-size: 13px; margin-left: auto; }
.ac-reward-preview { color: var(--ac-muted); font-size: 12px; margin-left: auto; }
.ac-feature .ac-reward-preview { margin-left: 0; }
.ac-extra { margin-top: 6px; color: #e8c49d; font-size: 12px; }
.ac-feature {
    grid-column: 1 / -1;
    isolation: isolate;
    position: relative;
    overflow: hidden;
    border-color: #534131;
    min-height: 185px;
    justify-content: center;
    padding: 24px 30px;
}
.ac-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #11151bee 22%, #11151b30 67%), url(/static/images/achievements/achievement-overtime.webp) center 52% / cover;
}
.redesign .ac-feature h2 { font-size: 34px; }
.ac-feature .ac-tile-foot { justify-content: flex-start; max-width: 340px; }
.ac-feature .ac-claim { margin-left: 0; background: #f39351; color: #20160d; }
.ac-feature .ac-claimed { margin-left: 0; }
.ac-pick { align-self: flex-start; display: none; }
.ac-page.is-picking .ac-pick { display: inline-flex; }
.ac-pick.is-on { color: #ffbd8f; }
.ac-btn:focus-visible, .ac-claim:focus-visible, .ac-chip:focus-visible, .ac-pick:focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 2px; }
.ac-empty { display: none; padding: 20px 0; color: var(--ac-muted); }
.ac-empty.is-shown { display: block; }
.ac-status:empty { display: none; }
@media (max-width: 880px) { .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 590px) {
    .ac-page { padding: 18px 15px 28px; }
    .ac-hero { gap: 8px; }
    .ac-hero .ac-btn { font-size: 12px; white-space: nowrap; padding-inline: 7px; }
    .ac-grid { grid-template-columns: 1fr; gap: 8px; }
    .ac-tile { padding: 13px; min-height: 0; }
    .ac-art, .ac-tile-head > i { width: 53px; height: 53px; }
    .ac-feature { padding-top: 110px; }
    .ac-feature::before {
        bottom: auto;
        height: 100px;
        background: linear-gradient(0deg, #131822, transparent 45%), url(/static/images/achievements/achievement-overtime.webp) center 50% / cover;
    }
}
