/* Shared Wuchang filter bars */
.page-wuchang :is(
  .mag-filters-section,
  .boss-filters-section,
  .npc-filters-section,
  .itm-filters-section,
  .ben-filters-section,
  .amu-filters-section,
  .armr-filters-section,
  .arm-filters-section
) {
  padding: 40px 0 0;
}

.page-wuchang :is(
  .mag-filters-head,
  .boss-filters-head,
  .npc-filters-head,
  .itm-filters-head,
  .ben-filters-head,
  .amu-filters-head,
  .armr-filters-head,
  .arm-filters-head
) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-wuchang :is(
  .mag-filters-title,
  .boss-filters-title,
  .npc-filters-title,
  .itm-filters-title,
  .ben-filters-title,
  .amu-filters-title,
  .armr-filters-title,
  .arm-filters-title,
  .eno-cat-filters-title
) {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
}

.page-wuchang :is(
  .mag-filters-title,
  .boss-filters-title,
  .npc-filters-title,
  .itm-filters-title,
  .ben-filters-title,
  .amu-filters-title,
  .armr-filters-title,
  .arm-filters-title,
  .eno-cat-filters-title
) em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-wuchang :is(
  .mag-toolbar,
  .boss-toolbar,
  .npc-toolbar,
  .itm-toolbar,
  .ben-toolbar,
  .amu-toolbar,
  .armr-toolbar,
  .arm-toolbar,
  .eno-cat-toolbar
) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 32px;
}

.page-wuchang :is(
  .mag-search,
  .boss-search,
  .npc-search,
  .itm-search,
  .ben-search,
  .amu-search,
  .armr-search,
  .arm-search,
  .eno-cat-search
) {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 16px;
  background: rgba(201,148,74,.06);
  border: 1px solid rgba(201,148,74,.16);
  border-radius: 10px;
  transition: border-color .25s ease, background-color .25s ease;
}

.page-wuchang :is(
  .mag-search,
  .boss-search,
  .npc-search,
  .itm-search,
  .ben-search,
  .amu-search,
  .armr-search,
  .arm-search,
  .eno-cat-search
):focus-within {
  background: rgba(201,148,74,.09);
  border-color: var(--gold);
}

.page-wuchang :is(
  .mag-search,
  .boss-search,
  .npc-search,
  .itm-search,
  .ben-search,
  .amu-search,
  .armr-search,
  .arm-search,
  .eno-cat-search
) svg {
  flex: 0 0 auto;
  stroke: var(--text);
  opacity: .55;
}

.page-wuchang :is(
  .mag-search-input,
  .boss-search-input,
  .npc-search-input,
  .itm-search-input,
  .ben-search-input,
  .amu-search-input,
  .armr-search-input,
  .arm-search-input,
  .eno-cat-search-input
) {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-l);
  font-family: inherit;
  font-size: 16px;
}

.page-wuchang :is(
  .mag-search-input,
  .boss-search-input,
  .npc-search-input,
  .itm-search-input,
  .ben-search-input,
  .amu-search-input,
  .armr-search-input,
  .arm-search-input,
  .eno-cat-search-input
)::placeholder {
  color: var(--text);
  opacity: .55;
}

.page-wuchang :is(
  .mag-sort,
  .boss-sort,
  .npc-sort,
  .itm-sort,
  .ben-sort,
  .amu-sort,
  .armr-sort,
  .arm-sort,
  .eno-cat-sort
) {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  flex-shrink: 0;
}

.page-wuchang :is(
  .mag-sort-label,
  .boss-sort-label,
  .npc-sort-label,
  .itm-sort-label,
  .ben-sort-label,
  .amu-sort-label,
  .armr-sort-label,
  .arm-sort-label,
  .eno-cat-sort-label,
  .boss-select-label,
  .eno-cat-filter-label
) {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  opacity: .78;
}

.page-wuchang :is(
  .mag-sort-select,
  .boss-sort-select,
  .npc-sort-select,
  .itm-sort-select,
  .ben-sort-select,
  .amu-sort-select,
  .armr-sort-select,
  .arm-sort-select,
  .eno-cat-sort-select,
  .boss-select
) {
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  background-color: rgba(201,148,74,.06);
  border: 1px solid rgba(201,148,74,.16);
  border-radius: 8px;
  color: var(--text-l);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c9944a' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.page-wuchang :is(
  .mag-sort-select,
  .boss-sort-select,
  .npc-sort-select,
  .itm-sort-select,
  .ben-sort-select,
  .amu-sort-select,
  .armr-sort-select,
  .arm-sort-select,
  .eno-cat-sort-select,
  .boss-select
):is(:hover, :focus) {
  background-color: rgba(201,148,74,.09);
  border-color: var(--gold);
  outline: none;
}

.page-wuchang :is(
  .mag-sort-select,
  .boss-sort-select,
  .npc-sort-select,
  .itm-sort-select,
  .ben-sort-select,
  .amu-sort-select,
  .armr-sort-select,
  .arm-sort-select,
  .eno-cat-sort-select,
  .boss-select
) option {
  background: #1c1510;
  color: #e8dcc8;
}

.page-wuchang :is(
  .npc-filter-btns,
  .itm-category-filters,
  .armr-filter-pills,
  .arm-filter-pills,
  .eno-cat-filter-pills,
  .boss-location-selects
) {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 2px 0 0;
  margin: 0;
  scrollbar-width: none;
}

.page-wuchang :is(
  .npc-filter-btns,
  .itm-category-filters,
  .armr-filter-pills,
  .arm-filter-pills,
  .eno-cat-filter-pills
) {
  flex-wrap: wrap;
}

.page-wuchang .arm-filters-section .eno-cat-filter-group {
  width: 100%;
  margin: -18px 0 32px;
}

.page-wuchang :is(
  .npc-filter-btn,
  .itm-cat-btn,
  .armr-pill,
  .arm-pill,
  .eno-cat-pill
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  white-space: nowrap;
  background: rgba(201,148,74,.06);
  border: 1px solid rgba(201,148,74,.14);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.page-wuchang :is(
  .npc-filter-btn,
  .itm-cat-btn,
  .armr-pill,
  .arm-pill,
  .eno-cat-pill
):hover {
  background: rgba(201,148,74,.1);
  border-color: rgba(201,148,74,.28);
  color: var(--text-l);
}

.page-wuchang :is(
  .npc-filter-btn.active,
  .itm-cat-btn.active,
  .armr-pill.active,
  .arm-pill.active,
  .eno-cat-pill--active,
  .eno-cat-pill.active
) {
  background: rgba(201,148,74,.16);
  border-color: var(--gold);
  color: var(--gold);
}

.page-wuchang :is(.arm-pill-count, .armr-pill-count) {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201,148,74,.16);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}

.page-wuchang .boss-select-group {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.page-wuchang .boss-select:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .page-wuchang :is(
    .mag-filters-head,
    .boss-filters-head,
    .npc-filters-head,
    .itm-filters-head,
    .ben-filters-head,
    .amu-filters-head,
    .armr-filters-head,
    .arm-filters-head
  ) {
    margin-bottom: 22px;
  }

  .page-wuchang :is(
    .mag-toolbar,
    .boss-toolbar,
    .npc-toolbar,
    .itm-toolbar,
    .ben-toolbar,
    .amu-toolbar,
    .armr-toolbar,
    .arm-toolbar,
    .eno-cat-toolbar
  ) {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .page-wuchang :is(
    .mag-search,
    .boss-search,
    .npc-search,
    .itm-search,
    .ben-search,
    .amu-search,
    .armr-search,
    .arm-search,
    .eno-cat-search
  ) {
    grid-column: 1;
    grid-row: 1;
  }

  .page-wuchang :is(
    .mag-sort,
    .boss-sort,
    .npc-sort,
    .itm-sort,
    .ben-sort,
    .amu-sort,
    .armr-sort,
    .arm-sort,
    .eno-cat-sort
  ) {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .page-wuchang :is(
    .mag-sort-select,
    .boss-sort-select,
    .npc-sort-select,
    .itm-sort-select,
    .ben-sort-select,
    .amu-sort-select,
    .armr-sort-select,
    .arm-sort-select,
    .eno-cat-sort-select
  ) {
    flex: 1;
    width: 100%;
  }

  .page-wuchang :is(
    .npc-filter-btns,
    .itm-category-filters,
    .armr-filter-pills,
    .arm-filter-pills,
    .eno-cat-filter-pills,
    .boss-location-selects
  ) {
    grid-row: 3;
  }

  .page-wuchang .arm-filters-section .eno-cat-filter-group {
    margin-top: -14px;
  }

  .page-wuchang .boss-select {
    min-width: min(220px, 76vw);
  }
}

@media (max-width: 480px) {
  .page-wuchang :is(
    .mag-filters-section,
    .boss-filters-section,
    .npc-filters-section,
    .itm-filters-section,
    .ben-filters-section,
    .amu-filters-section,
    .armr-filters-section,
    .arm-filters-section
  ) {
    padding-top: 32px;
  }

  .page-wuchang :is(
    .npc-filter-btn,
    .itm-cat-btn,
    .armr-pill,
    .arm-pill,
    .eno-cat-pill
  ) {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 11px;
  }
}
