/* mk-pills-1 (17 Nov 2026): one pill style site-wide. Loaded last.
   Spec: height 20px, padding 0 8px, radius 999px, 700 11px/1 Chakra Petch,
   letter-spacing .08em, uppercase. Text and 1px border in the pill color,
   fill = color at 12% over #07090e, glow 0 0 10px -2px at 70% (COMMON too).
   Color per pill via --u-rgb (and --u-text where the text tone differs).
   :is(*,#mkp#mkp) lifts specificity above every older pill rule; nothing
   here touches display, position, margin or tile layout. UPDATED labels
   (.eyebrow) are intentionally not included. */

/* ---- colors (order matters: later wins) ---- */
.pill{--u-rgb:var(--pc-rgb,143,163,194)}
.mk-rarity{--u-rgb:184,192,204}
.field-guide__pill{--u-rgb:77,200,255}
.map-filter__pill{--u-rgb:122,108,255;--u-text:rgb(216,212,255)}
.map-filter__item:has([data-map-filter="hajin"]) .map-filter__pill{--u-rgb:0,200,180;--u-text:rgb(184,255,246)}
.floor-chip{--u-rgb:77,200,255;--u-text:rgb(215,238,252)}
.fchip,.fchip--area{--u-rgb:255,210,74}
[data-section="key-items"] .fchip{--u-rgb:77,200,255}
.pill--type,.pill--floor,.pill--grid,.pill--item,
.pill--wtype-ar,.pill--wtype-smg,.pill--wtype-lmg,.pill--wtype-marksman,.pill--wtype-pistol,
.pill--wtype-sniper,.pill--wtype-launcher,.pill--wtype-shotgun,.pill--wtype-melee{--u-rgb:143,163,194;--u-text:initial}
.pill--area,.pill--maps-explore,.found-here__pill--areas{--u-rgb:255,225,74;--u-text:initial}
.pill--order,.pill--key{--u-rgb:77,200,255;--u-text:initial}
.pill--boss,.pill--hot,.found-here__pill--bosses{--u-rgb:255,32,48;--u-text:initial}
.pill--drop{--u-rgb:61,255,110;--u-text:initial}
.pill--tips{--u-rgb:178,75,255;--u-text:initial}
.pill--secret,.found-here__pill--secrets{--u-rgb:255,122,24;--u-text:initial}
.pill--extract{--u-rgb:61,255,200;--u-text:initial}
.pill--value{--u-rgb:230,238,250;--u-text:initial}
.pill--weapons{--u-rgb:255,210,74;--u-text:initial}
.pill--fob,.mk-htag__printer-pill{--u-rgb:197,205,216;--u-text:initial}
/* rarity (page pills .pill--rarity.r-*, DROPS tags .mk-rarity--*) */
.r-common,.mk-rarity--common{--u-rgb:184,192,204;--u-text:initial}
.r-uncommon,.mk-rarity--uncommon{--u-rgb:61,255,110;--u-text:initial}
.r-rare,.mk-rarity--rare{--u-rgb:47,107,255;--u-text:rgb(59,119,255)}
.r-epic,.mk-rarity--epic{--u-rgb:162,77,255;--u-text:rgb(170,85,255)}
.r-legendary,.mk-rarity--legendary{--u-rgb:255,176,32;--u-text:initial}
.r-blackcell,.mk-rarity--blackcell{--u-rgb:196,243,30;--u-text:initial}
.r-battlepass,.mk-rarity--battlepass{--u-rgb:255,61,122;--u-text:initial}
.r-ultra,.mk-rarity--ultra{--u-rgb:255,79,216;--u-text:initial}
.r-prestige,.mk-rarity--prestige{--u-rgb:245,152,137;--u-text:initial}
.r-key-item,.pill--key-item,.mk-rarity--key-item{--u-rgb:77,200,255;--u-text:initial}

/* ---- the one pill ---- */
:is(.pill,.mk-rarity,.fchip,.field-guide__pill,.map-filter__pill,.floor-chip,.found-here__pill,.mk-htag__printer-pill):is(*,#mkp#mkp){
  box-sizing:border-box!important;
  height:auto!important;min-height:20px!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  font:700 11px/1.15 "Chakra Petch",system-ui,sans-serif!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  text-align:center;
  align-items:center!important;
  gap:5px!important;
  color:var(--u-text,rgb(var(--u-rgb)))!important;
  border:1px solid rgb(var(--u-rgb))!important;
  background:linear-gradient(rgba(var(--u-rgb),.12),rgba(var(--u-rgb),.12)),#07090e!important;
  box-shadow:0 0 10px -2px rgba(var(--u-rgb),.7)!important;
  text-shadow:0 0 8px rgba(var(--u-rgb),.5)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  max-width:100%;
}
:is(.pill,.mk-rarity,.fchip,.field-guide__pill,.map-filter__pill,.floor-chip,.found-here__pill,.mk-htag__printer-pill):is(*,#mkp#mkp) svg{width:11px!important;height:11px!important;flex:none}
:is(.pill,.mk-rarity,.fchip,.field-guide__pill,.found-here__pill,.mk-htag__printer-pill):is(*,#mkp#mkp) > span{font:inherit!important;letter-spacing:inherit!important;white-space:inherit!important}
/* A pill never clips its text: one-line pills are 20px tall; when a tile is too narrow
   for one line (e.g. 3D PRINTER INGREDIENT on a 390px fullcard) the pill wraps to a
   second line at the same look instead of cutting the word. */
.mk-boss-tile__val > .pill:is(*,#mkp#mkp){max-width:none!important;flex:none}
/* Pills that already wrap long text on purpose keep wrapping, at the same look. */
.pill.qf-wrap:is(*,#mkp#mkp){white-space:normal!important}
/* Hover / active states keep a visible change. */
:is(a.pill,a.mk-rarity,a.field-guide__pill,a.found-here__pill,button.fchip,.fchip,.map-filter__pill,.floor-chip):is(*,#mkp#mkp):hover{
  background:linear-gradient(rgba(var(--u-rgb),.22),rgba(var(--u-rgb),.22)),#07090e!important;
  box-shadow:0 0 14px -2px rgba(var(--u-rgb),.85)!important}
:is(.fchip.is-on,.fchip[aria-pressed="true"],.map-filter__pill.is-on,.map-filter__pill[aria-pressed="true"],.floor-chip.is-on,.floor-chip[aria-pressed="true"]):is(*,#mkp#mkp){
  background:linear-gradient(rgba(var(--u-rgb),.4),rgba(var(--u-rgb),.4)),#07090e!important;
  box-shadow:0 0 12px -1px rgba(var(--u-rgb),.85)!important}
