/* Keep long achievement and boss lists reachable without moving their heading. */
#boss-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#boss-overlay .boss-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(660px, 100%);
    min-width: 0;
    max-width: 660px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
}

#boss-overlay .boss-header {
    flex: none;
    padding-right: 24px;
    overflow-wrap: anywhere;
}

#boss-overlay .boss-content {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
}

#boss-overlay .boss-row {
    gap: 12px;
}

/* Only the number changes colour; the rank label and achievement stay neutral. */
#boss-overlay .achievement-rank-1 { color: #edc75b; }
#boss-overlay .achievement-rank-2 { color: #b9dfff; text-shadow: 0 0 5px rgba(130, 190, 255, .65); }
#boss-overlay .achievement-rank-3 { color: #cd8a56; }
