.article-intro .monster-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 17rem);
  align-items: end;
  gap: clamp(.6rem, 3vw, 2rem);
  padding-bottom: clamp(1.3rem, 3vw, 2.1rem);
}
.monster-mascot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 6px #34502029);
}
.monster-guide { padding-block: clamp(1.2rem, 3vw, 2.4rem) 3rem; }
.monster-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .75rem;
}
.monster-filters[hidden] { display: none; }
.monster-filters :is(label, .monster-filter-field) { display: grid; gap: .28rem; }
.monster-filters label { color: var(--muted); font-size: .88rem; font-weight: 700; }
.monster-filters :is(input, select, button) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b8c29a;
  border-radius: .65rem;
  padding: .5rem .7rem;
  background: var(--white);
  color: var(--ink);
  font: 1rem/1.3 var(--body);
}
.monster-filters .monster-reset { cursor: pointer; font-weight: 700; }
.monster-reset:hover { background: #edf7d2; border-color: var(--leaf); }
.monster-status { margin-block: .85rem .55rem; color: var(--muted); }
.monster-loot-note { margin-top: .8rem; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.monster-results { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.monster-entry { border: 1px solid #c6d4aa; border-radius: .85rem; background: var(--white); }
.monster-entry[open] { box-shadow: 0 3px 9px #3c511615; }
.monster-entry summary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .7fr) 1rem;
  align-items: center;
  gap: .65rem 1rem;
  min-height: 60px;
  padding: .7rem .95rem;
  border-radius: .8rem;
  cursor: pointer;
  list-style: none;
}
.monster-entry summary::-webkit-details-marker { display: none; }
.monster-entry summary::after {
  content: '';
  width: .55rem;
  height: .55rem;
  border: solid var(--leaf);
  border-width: 0 2px 2px 0;
  transform: translateY(-.12rem) rotate(45deg);
  justify-self: center;
}
.monster-entry[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.monster-entry summary:hover, .monster-entry[open] summary { background: #edf7d2; }
.monster-entry summary:focus-visible { outline-offset: -3px; }
.monster-profile {
  display: grid;
  grid-template-columns: clamp(2.75rem, 5.4vw, 4rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.48rem, 1.4vw, .75rem);
  min-width: 0;
}
.monster-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #d6e1bb;
  border-radius: .65rem;
  background: radial-gradient(ellipse at 50% 55%, #f9ffea, #e4eed0);
}
img.monster-portrait { padding: .2rem; }
.monster-entry[data-type="elite"] .monster-portrait { border-color: #ead6a1; background: radial-gradient(ellipse at 50% 55%, #fffaea, #ffebbb); }
.monster-entry[data-type="party-boss"] .monster-portrait { border-color: #b8cfdc; background: radial-gradient(ellipse at 50% 55%, #f4fbfe, #d7eaf6); }
.monster-entry[data-type="story"] .monster-portrait { border-color: #d8cdea; background: radial-gradient(ellipse at 50% 55%, #fcf8ff, #eadef5); }
.monster-identity, .monster-where { display: grid; gap: .14rem; min-width: 0; }
.monster-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .18rem .48rem; }
.monster-name { color: var(--ink); font: 900 clamp(1rem, 2vw, 1.25rem)/1.15 var(--heading); overflow-wrap: anywhere; }
.monster-level { padding: .12rem .44rem; border-radius: 1rem; background: #e2edcb; color: #365224; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.monster-entry:is([data-type="elite"], [data-type="party-boss"]) .monster-level { background: #ffedc3; color: #6a4500; }
.monster-entry[data-type="story"] .monster-level { background: #e5edf9; color: #224668; }
.monster-type, .monster-where-detail, .monster-summary-loot { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.monster-where-name { color: var(--ink); font-weight: 750; font-size: .94rem; line-height: 1.35; }
.monster-summary-loot { overflow-wrap: anywhere; }
.monster-entry-body {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 1rem 1.6rem;
  padding: .9rem .95rem 1.15rem;
  border-top: 1px solid #d8e3c4;
}
.monster-entry-body h2 { margin-bottom: .45rem; color: var(--leaf); font-size: 1.16rem; }
.monster-entry-body h3 { margin: .65rem 0 .2rem; font-size: .95rem; letter-spacing: 0; }
.monster-entry-body :is(p, ul) { color: var(--muted); line-height: 1.45; }
.monster-entry-body p + p { margin-top: .4rem; }
.monster-entry-body ul { margin: .25rem 0 .45rem; padding-inline-start: 1.2rem; }
.monster-entry-body li + li { margin-top: .16rem; }
.monster-entry-body .monster-drop-list { padding: 0; list-style: none; }
.monster-drop-item { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.monster-drop-item img { flex: none; border: 1px solid #d8e3c4; border-radius: .5rem; background: #f8f9ed; object-fit: contain; }
.monster-related { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1.65rem; }

@media (max-width: 740px) {
  .monster-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monster-search { grid-column: 1 / -1; }
  .monster-filters .monster-reset { grid-column: 1 / -1; justify-self: start; width: auto; }
  .monster-entry summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1rem; gap: .4rem .65rem; }
  .monster-summary-loot { grid-column: 1 / 3; }
  .monster-entry summary::after { grid-area: 1 / 3 / 3 / 4; }
}
@media (max-width: 470px) {
  .article-intro .monster-intro { grid-template-columns: minmax(0, 1fr) minmax(4rem, 22%); gap: .25rem; }
  .monster-intro h1 { font-size: clamp(2.15rem, 10vw, 2.55rem); }
  .monster-entry summary { grid-template-columns: minmax(0, 1fr) 1rem; padding: .65rem .75rem; }
  .monster-summary-loot { grid-column: 1; }
  .monster-entry summary::after { grid-area: 1 / 2 / 4 / 3; }
  .monster-entry-body { grid-template-columns: minmax(0, 1fr); padding-inline: .75rem; }
}
