/* The roster: the filters drawer, buff and debuff filters, the game's type icons and the fighter cards. Loaded in the order base, roster, fighter, team, companions, panels, pages, insights: a later file wins over an earlier one at equal weight. */
/* ---------- fighter site ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 56px; padding-bottom: 40px; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero h1 { margin: 0; font: 400 clamp(56px, 9vw, 120px)/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.hero h1 span { color: #6E7285; }
.hero-sub { margin: 24px 0 0; max-width: 560px; font-size: 18px; color: var(--text-2); }
.rarity-box { flex: 1 1 380px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.rarity-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rarity-head strong { font: 700 18px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.rarity-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; }
.rarity-bar span { background: var(--rc); }
.rarity-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rarity-legend b { display: block; font: 400 28px/1 var(--display); color: var(--rc); }
.rarity-legend span { font-size: 13px; color: var(--muted); }
.new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 12px; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.mini img, .mini .ph { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; background: var(--tint); }
.mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-date { font: 600 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-date.is-hot { color: var(--accent); }
.mini-name { font: 700 22px/1.1 var(--cond); text-transform: uppercase; }
.mini-meta { font-size: 14px; color: var(--muted); }
.card, .mini { transition: border-color .15s, transform .15s; }
.card:hover, .mini:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }

.filters { position: sticky; top: 0; z-index: 2; background: var(--ink); border-top: 1px solid rgba(54, 209, 255, .22); border-bottom: 1px solid rgba(54, 209, 255, .22); margin-top: 48px; }
.filters-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; outline: none; font-weight: 500; }
.search input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* each filter's chips get a line of their own in the drawer */
.drawer-body > .chips { flex-basis: 100%; }
.skill-slot { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -4px; }
.fx-mode button:disabled { opacity: .45; cursor: default; }
/* the filters drawer slides open under the search bar (rows animate from 0fr to the content's height) */
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.drawer.is-open { grid-template-rows: 1fr; }
.drawer-in { min-height: 0; overflow: hidden; }
.drawer-body { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .drop-caret { transition: none; } }
.drop-caret { transition: transform .25s ease; }
.is-plain { --fx: #5A5D6B; }
.is-plain b { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 15px var(--cond); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.chip.square { border-radius: 6px; }
.chip:hover { border-color: #5A5D6B; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.chip.square i { border-radius: 0; transform: rotate(45deg); }
.chip small { opacity: .7; font-size: inherit; }
/* with three rows of chips the bar is too tall to stay pinned on small screens */
@media (max-width: 900px) { .filters { position: static; } }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); }
.sort label { display: flex; align-items: center; gap: 8px; }
.sort select { height: 44px; padding: 0 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; }
.order { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; font: 500 15px var(--body); cursor: pointer; white-space: nowrap; }
.order:hover { border-color: #5A5D6B; }
.order svg { color: var(--muted); }
.count { margin: 24px 0 16px; font-size: 15px; color: var(--muted); }
.count strong { color: var(--text); }

/* buffs & debuffs: blue up arrows for buffs, orange down arrows for debuffs */
.is-buff { --fx: #59B8FF; --fx-soft: rgba(89,184,255,.14); }
.is-debuff { --fx: #FF8A3D; --fx-soft: rgba(255,138,61,.14); }
.fx-arrow { flex: none; }
.drop-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 15px var(--cond); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.drop-btn:hover, .drop-btn.is-set { border-color: #5A5D6B; }
.drop-btn.is-set { background: var(--panel-2); }
.fx-arrows { display: inline-flex; gap: 2px; }
.fx-arrows svg:first-child { color: #59B8FF; }
.fx-arrows svg:last-child { color: #FF8A3D; }
.drop-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--text); color: var(--ink); font: 700 13px var(--body); display: inline-flex; align-items: center; justify-content: center; }
.drop-caret { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.drop-btn[aria-expanded="true"] .drop-caret { transform: translateY(2px) rotate(-135deg); }
.fx-panel { padding-bottom: 16px; }
.fx-box { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.fx-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fx-mode { display: inline-flex; gap: 3px; padding: 3px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; }
.fx-mode button { height: 38px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 600 14px var(--body); cursor: pointer; }
.fx-mode button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.linkish { min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--muted); font: 600 14px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--text); }
.fx-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px 40px; }
.fx-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: inherit; font-weight: inherit; }
.fx-group-head strong { font: 700 18px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--fx); }
.fx-chip { height: 40px; padding: 0 12px; gap: 7px; letter-spacing: .04em; background: var(--ink); }
.fx-chip svg { color: var(--fx); }
.fx-chip[aria-pressed="true"] { background: var(--fx); border-color: var(--fx); color: var(--ink); }
.fx-chip[aria-pressed="true"] svg { color: var(--ink); }
.fx-more { height: 40px; padding: 0 12px; border-radius: 6px; border: 1px dashed #3A3D4A; background: transparent; color: var(--text-2); font: 600 14px var(--body); cursor: pointer; }
.fx-more:hover { border-color: #5A5D6B; }
.count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 17px; border: 1px solid var(--fx); background: transparent; color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.fx-pill b { color: var(--fx); }
.fx-pill .x { color: var(--muted); font-size: 18px; line-height: 1; }
.fx-pill:hover .x { color: var(--text); }
.card-fx { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.fx-line { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.fx-line svg { color: var(--fx); }
.fx-line b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-line .fx-star { margin-left: auto; }
/* with the drawer open the bar would cover most of the screen, so it scrolls away instead of sticking */
.filters:has(.drawer.is-open) { position: static; }
.fx-star { padding: 0 5px; border-radius: 4px; background: rgba(92,225,230,.14); color: var(--chg); font-weight: 600; font-size: 13px; white-space: nowrap; }
.fx-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.fx-row:hover { background: var(--panel-2); color: var(--text); }
.fx-icon { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--fx-soft); color: var(--fx); }
.fx-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx-row-text span { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 0; background: var(--panel); border: 1px solid rgba(54, 209, 255, .22); border-radius: 10px; overflow: hidden; color: var(--text); text-align: left; text-decoration: none; }
.card-art { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--tint); }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.tag { position: absolute; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; background: rgba(13, 14, 18, .85); font: 700 12px var(--cond); letter-spacing: .07em; text-transform: uppercase; }
.tag-r { left: 8px; color: var(--rc); }
.tag-d { right: 8px; }
.diamond { display: inline-block; width: 7px; height: 7px; transform: rotate(45deg); background: var(--dc); }
/* the game's type icons: synergy and damage-type symbols are masks in --gc; rarity badges are images */
.glyph { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: var(--gc, currentColor);
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
.rbadge { display: block; height: 22px; width: auto; }
.rbadge-chip { height: 18px; }
.rbadge-inline { display: inline-block; height: 20px; margin: -4px 0; }
.tag-icon { padding: 2px 6px; }
/* not the card's portrait rule (fill the square): the badge keeps its own size */
.card-art .tag img.rbadge { width: auto; height: 20px; object-fit: contain; }
.card-syn { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.card-syn .glyph { width: 18px; height: 18px; }
.facts dd .glyph { margin-right: 6px; color: var(--text-2); }
.card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 10px 12px 12px; }
.card-name { font: 700 19px/1.1 var(--cond); text-transform: uppercase; }
.card-style { font-size: 13px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.card-foot span:first-child { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-foot em { font-style: normal; color: var(--faint); }
.empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); }
.empty p { margin: 0 0 12px; font: 700 24px var(--cond); text-transform: uppercase; color: var(--text); }
.loading { padding: 120px 24px; text-align: center; color: var(--muted); font-size: 18px; }
