.wiki-discovery {
  margin-block: var(--e6) var(--e2);
  padding: clamp(15px, 3.1vw, 26px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(140deg, #162b30, #121e22 65%);
}
.wiki-discovery label { color: var(--paper); font-size: 1.12rem; font-weight: 700; }
.wiki-search-line { margin-top: 9px; display: flex; align-items: stretch; gap: 8px; }
.wiki-search-line input {
  flex: 1;
  min-width: 0;
  border: 1px solid #6d8c91;
  border-radius: 6px;
  padding: .68rem .78rem;
  background: #0e181d;
  color: var(--paper);
  font: inherit;
}
.wiki-search-line input::placeholder { color: #a4b5b9; opacity: 1; }
.wiki-search-line button {
  padding: .5rem .85rem;
  border: 1px solid #96ddd3;
  border-radius: 6px;
  background: #b0dfd7;
  color: #112a28;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wiki-search-line :focus-visible, .wiki-find-results a:focus-visible {
  outline: 2px solid #a1e5da;
  outline-offset: 3px;
}
.wiki-find-status:not(:empty) { margin-block: .7rem .5rem; color: var(--muted); }
.wiki-find-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.wiki-find-results[hidden] { display: none; }
.wiki-find-results a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 44px;
  padding: .55rem .65rem;
  border-radius: 6px;
  background: #121c20;
}
.wiki-find-results small { color: var(--muted); }
.wiki-discovery-quicklinks { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px 13px; }
.wiki-discovery-quicklinks a, .wiki-panel-link {
  display: inline-block;
  padding: .32rem .58rem;
  border-radius: 5px;
  border: 1px solid #9ac8c078;
}
.wiki-panel-link { margin-block: .65rem .25rem; }
.boss-attack-guide { display: grid; gap: 13px; line-height: 1.6; }
.boss-attack {
  min-width: 0;
  border: 1px solid #7f785c;
  border-radius: 8px;
  padding: clamp(15px, 2.7vw, 24px);
  background: linear-gradient(135deg,#1b2a2e,#142024);
}
.boss-attack h3 { color: #f2e5cb; margin: 0 0 .65rem; line-height: 1.25; }
.boss-attack p { max-width: 69ch; margin: 0; }
.boss-attack .boss-attack-action {
  margin-top: .85rem;
  padding-inline-start: .8rem;
  border-inline-start: 2px solid #bc9e63;
  color: #e0d8c9;
}
.boss-attack-action strong { display: block; color: #ecca89; margin-bottom: .15rem; }
.apch-detail { line-height: 1.6; }
.apch-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border: 1px solid #857453;
  border-radius: 9px;
  overflow: hidden;
  background: #142023;
}
.apch-hero .apch-summary { min-width: 0; padding: 10px clamp(12px, 3vw, 24px) 16px 0; }
.apch-hero .apch-summary p + p { margin-block-start: .6rem; }
.apch-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse,#354244,#182529 66%);
  min-width: 0;
}
.apch-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.apch-effects { display: grid; gap: 12px; }
.apch-effects dt { color: #f2e5cb; font-weight: 700; }
.apch-effects dd { color: #c4d1d0; margin: 3px 0 0; }
.apch-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr));
  gap: 12px;
  margin-block: var(--e5) var(--e8);
}
.apch-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #182529;
  border: 1px solid #6f6b58;
  border-radius: 7px;
  overflow: hidden;
}
.apch-card span { padding: 9px 11px 11px; overflow-wrap: anywhere; }
.apch-detail nav.boss-quicklinks { margin-bottom: .5rem; }
body:has(.wiki-discovery) > .wrap .cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
body:has(.wiki-discovery) > .wrap :lang(ja),
body:has(.wiki-discovery) > .wrap :lang(zh),
body:has(.wiki-discovery) > .wrap :lang(ko),
.apch-detail :lang(ja), .apch-detail :lang(zh), .apch-detail :lang(ko),
.boss-attack :lang(ja), .boss-attack :lang(zh), .boss-attack :lang(ko) {
  word-break: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 570px) {
  body:has(.wiki-discovery) > .wrap .pg { grid-template-columns: minmax(0, 1fr); }
  .apch-hero { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .apch-hero .apch-summary { padding: 12px 14px 16px; }
  .wiki-search-line button { padding-inline: .55rem; font-size: .9rem; }
}
