/* Burasut Monster Zukan: plugin-scoped theme-independent styles. */
.blmz-gallery, .blmz-page{--blmz-bg:#10151c;--blmz-panel:#18212b;--blmz-line:#344456;--blmz-accent:#c4a167;--blmz-text:#edf1f4;--blmz-muted:#a8b6c1;color:var(--blmz-text);font-family:"Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;box-sizing:border-box}
.blmz-gallery *, .blmz-page * {box-sizing:border-box}
.blmz-gallery{max-width:1160px;margin:16px auto 24px;padding:0 2px}
.blmz-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.blmz-search{flex:1;min-width:190px}.blmz-filter{min-width:150px}
.blmz-search input,.blmz-filter select{width:100%;border:1px solid var(--blmz-line);border-radius:6px;background:#121923;color:var(--blmz-text);padding:11px 12px;font:inherit;font-size:14px;min-height:42px}
.blmz-search input::placeholder{color:#9baab9}.blmz-count{font-size:13px;color:var(--blmz-muted);white-space:nowrap}
.blmz-grid{display:grid;grid-template-columns:repeat(var(--blmz-columns,4),minmax(0,1fr));gap:14px}
.blmz-card{display:block;background:var(--blmz-panel);border:1px solid var(--blmz-line);border-radius:9px;overflow:hidden;text-decoration:none!important;color:var(--blmz-text)!important;transition:transform .16s ease,border-color .16s ease;min-width:0}
.blmz-card:hover,.blmz-card:focus-visible{transform:translateY(-3px);border-color:var(--blmz-accent);outline:none}
.blmz-card-art{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:radial-gradient(circle at 50% 44%,#273444,#0e141c 76%);overflow:hidden;padding:14px}
.blmz-card-art img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}
.blmz-card-art.is-pixel img{image-rendering:pixelated;object-fit:contain;max-width:100%;max-height:100%}
.blmz-no-art{font-size:54px;color:#516275;line-height:1}
.blmz-card-body{display:flex;flex-direction:column;gap:4px;padding:12px 12px 14px;min-height:65px}
.blmz-card-body strong{font-size:15px;line-height:1.4;font-weight:700;color:var(--blmz-text)}
.blmz-card-body small{font-size:11px;color:var(--blmz-muted);line-height:1.4}
.blmz-card[hidden],.blmz-none-found[hidden]{display:none!important}
.blmz-empty{padding:18px 12px;text-align:center;border:1px dashed var(--blmz-line);background:var(--blmz-bg);color:var(--blmz-muted);border-radius:8px}
.blmz-inline-icon{--blmz-inline-size:48px;display:inline-flex;align-items:center;vertical-align:middle;gap:8px;max-width:100%;color:inherit!important;text-decoration:none!important;border-bottom:1px dotted currentColor;line-height:1.5}
.blmz-inline-icon img,.blmz-icon-fallback{display:block;flex:none;width:var(--blmz-inline-size);height:var(--blmz-inline-size);object-fit:contain;background:#16202d;border:1px solid #35455a;border-radius:5px;padding:3px}
.blmz-inline-icon.is-pixel img{image-rendering:pixelated}
.blmz-inline-icon:hover,.blmz-text-link:hover{color:#dfbd81!important}
.blmz-icon-fallback{display:grid;place-items:center;color:#9bb0be}
.blmz-missing{font-size:12px;color:#bd796e}
.blmz-page{width:min(1120px,calc(100% - 26px));margin:30px auto 60px}
.blmz-breadcrumb{color:var(--blmz-muted);font-size:12px;margin:0 0 16px}.blmz-breadcrumb a{color:inherit}
.blmz-detail{background:var(--blmz-bg);border:1px solid var(--blmz-line);border-radius:12px;overflow:hidden;box-shadow:0 12px 40px #0004}
.blmz-detail-head{padding:24px clamp(16px,4vw,35px) 20px;border-bottom:1px solid var(--blmz-line);background:linear-gradient(100deg,#1d2b38,#121923 65%)}
.blmz-eyebrow{font-size:10px;letter-spacing:.18em;color:var(--blmz-accent);margin:0 0 5px}
.blmz-detail-head h1{color:var(--blmz-text);font-size:clamp(25px,4vw,38px);margin:0 0 5px;line-height:1.4;border:0;padding:0}
.blmz-aka{margin:5px 0;color:var(--blmz-muted);font-size:14px}.blmz-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}
.blmz-tags span{display:inline-block;padding:3px 9px;color:#e7d9c1;border:1px solid #62533b;border-radius:4px;font-size:11px;background:#30291f}
.blmz-art-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:20px clamp(15px,3vw,28px)}
.blmz-art-panel{margin:0;min-width:0;border:1px solid var(--blmz-line);border-radius:8px;overflow:hidden;background:radial-gradient(circle,#253241,#111820 80%)}
.blmz-art-stage{display:flex;align-items:center;justify-content:center;min-height:230px;height:min(35vw,340px);padding:22px}
.blmz-art-stage img{max-width:100%;max-height:100%;object-fit:contain}
.blmz-art-panel--pixel img{image-rendering:pixelated}
.blmz-art-panel figcaption{padding:10px;border-top:1px solid var(--blmz-line);font-size:10px;letter-spacing:.12em;text-align:center;color:var(--blmz-muted)}
.blmz-description{padding:22px clamp(18px,4vw,38px);line-height:1.9;overflow-wrap:anywhere;color:var(--blmz-text)}
.blmz-description :is(p,li,strong,h2,h3,h4){color:inherit}.blmz-description img{height:auto;max-width:100%}.blmz-description iframe{max-width:100%;width:100%;aspect-ratio:16/9;height:auto}
.blmz-description a,.blmz-related a{color:#99cbea}
.blmz-related{padding:20px clamp(18px,4vw,38px);border-top:1px solid var(--blmz-line)}.blmz-related h2{font-size:18px;margin:0 0 12px;color:var(--blmz-text)}
.blmz-video iframe{max-width:100%;width:100%;aspect-ratio:16/9;height:auto}.blmz-detail-footer{padding:14px clamp(18px,4vw,38px);border-top:1px solid var(--blmz-line);color:var(--blmz-muted);font-size:12px}.blmz-detail-footer a{color:var(--blmz-accent)}
@media(max-width:860px){.blmz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.blmz-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.blmz-card-art{padding:9px}.blmz-card-body{padding:10px 9px}.blmz-card-body strong{font-size:13px}.blmz-card-body small{font-size:10px}.blmz-tools{gap:7px}.blmz-search{flex-basis:100%}.blmz-detail-head{padding-top:19px}.blmz-art-stage{height:240px;min-height:200px}}
@media(prefers-reduced-motion:reduce){.blmz-card{transition:none}}

/* Article-level link+icon: behaves like a character, not like a large image block. */
a.blmz-article-icon-link {display:inline!important;vertical-align:baseline!important;text-decoration:none!important;white-space:nowrap;border:0!important;box-shadow:none!important}
a.blmz-article-icon-link img.blmz-article-icon{display:inline-block!important;vertical-align:-.18em!important;object-fit:contain!important;max-width:none!important;max-height:none!important;margin:0 .04em!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
a.blmz-article-icon-link img.blmz-article-icon.blmz-article-pixel {image-rendering:pixelated!important}
a.blmz-article-icon-link:hover img.blmz-article-icon {opacity:.8}

/* Gutenberg inline RichText object: keep the link on the same text line. */
span.blmz-monster-object{display:inline!important;vertical-align:baseline!important;white-space:nowrap!important}

/* Gutenberg native inline image: editor renders img alone, public wraps it with a linked <a>. */
img.blmz-native-inline.blmz-article-icon,
.blmz-description img.blmz-native-inline.blmz-article-icon,
.entry-content img.blmz-native-inline.blmz-article-icon {
  display:inline-block!important;vertical-align:-.18em!important;object-fit:contain!important;
  max-width:none!important;max-height:none!important;margin:0 .04em!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;
}
img.blmz-native-inline.blmz-article-pixel {image-rendering:pixelated!important}

/* v1.3: illustrated background behind pixel art, with per-monster CSS variables. */
.blmz-art-composite-wrap{margin:20px clamp(15px,3vw,28px);border:1px solid var(--blmz-line);border-radius:9px;overflow:hidden;background:radial-gradient(circle at 50% 48%,#253241,#111820 80%)}
.blmz-art-composite{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0;min-height:320px;height:clamp(300px,40vw,460px);padding:22px}
.blmz-art-composite__back{position:absolute;z-index:0;top:50%;left:50%;width:var(--blmz-layer-scale,85%);height:95%;max-width:none;max-height:none;object-fit:contain;transform:translate(calc(-50% + var(--blmz-layer-x,56px)),calc(-50% + var(--blmz-layer-y,0px)));opacity:var(--blmz-layer-opacity,.28);pointer-events:none;user-select:none}
.blmz-art-composite__pixel{display:block;position:relative;z-index:1;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 11px #0006)}
.blmz-art-composite__caption{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid var(--blmz-line);font-size:11px;letter-spacing:.08em;color:var(--blmz-muted)}
.blmz-art-composite__caption a{color:var(--blmz-accent);letter-spacing:normal;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.blmz-art-composite{min-height:260px;height:310px;padding:12px}.blmz-art-composite-wrap{margin:12px}.blmz-art-composite__caption{font-size:10px}}

/* v1.4 Pixel collection. Japanese names remain readable, metadata feels retro. */
.blmz-gallery--pixel{
  --blmz-tile:#141c24;--blmz-tile-hover:#1c2832;--blmz-gold:#c9ab72;
  padding:14px 12px 22px;
  background:#10161d;
  border:1px solid #354351;
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}
.blmz-gallery--pixel .blmz-gallery-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:0 3px 12px;border-bottom:1px solid #344451}
.blmz-gallery--pixel .blmz-gallery-kicker{margin:0 0 2px;color:var(--blmz-gold);font:600 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em}
.blmz-gallery--pixel .blmz-gallery-title{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:clamp(19px,3vw,25px);line-height:1.5;font-weight:700;color:#f1ede2;letter-spacing:.04em}
.blmz-gallery--pixel .blmz-gallery-total{font:600 10px/1.6 ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#9badba;white-space:nowrap}
.blmz-gallery--pixel .blmz-tools{margin:0 0 16px;gap:8px}
.blmz-gallery--pixel .blmz-search input,.blmz-gallery--pixel .blmz-filter select{min-height:38px;padding:8px 10px;border-radius:2px;border-color:#465665;background:#0c141c;font-size:13px;box-shadow:none}
.blmz-gallery--pixel .blmz-count{font:600 11px/1.5 ui-monospace,Consolas,monospace;color:#c1b18e}
.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(var(--blmz-columns,6),minmax(0,1fr));gap:8px}
.blmz-gallery--pixel .blmz-card--pixel{border:1px solid #384858;border-radius:3px;background:var(--blmz-tile);overflow:hidden;box-shadow:inset 0 0 0 1px #101820;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.blmz-gallery--pixel .blmz-card--pixel:hover,.blmz-gallery--pixel .blmz-card--pixel:focus-visible{transform:translateY(-2px);border-color:#e0bb7c;background:var(--blmz-tile-hover);outline:2px solid transparent;box-shadow:0 4px 18px #0004,inset 0 0 0 1px #b99b6433}
.blmz-gallery--pixel .blmz-card-art{aspect-ratio:auto;min-height:132px;height:132px;padding:10px 6px 4px;background:#17222c;border-bottom:1px solid #2a3848}
.blmz-gallery--pixel .blmz-card-art img{width:auto;height:auto;max-width:100%;max-height:112px;object-fit:contain;image-rendering:pixelated}
.blmz-gallery--pixel .blmz-card-body{align-items:center;justify-content:center;gap:3px;min-height:64px;padding:9px 5px 10px;text-align:center}
.blmz-gallery--pixel .blmz-card-body strong{font-size:14px;font-weight:700;line-height:1.45;letter-spacing:0;color:#f0ecdf;overflow-wrap:anywhere;font-synthesis:none}
.blmz-gallery--pixel .blmz-card-body small{font:400 11px/1.4 "Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;color:#a7b4bd;overflow-wrap:anywhere}
.blmz-gallery--pixel .blmz-empty{border-radius:3px;background:#121b25}
@media(max-width:1050px){.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(var(--blmz-columns,5),minmax(0,1fr))}}
@media(max-width:850px){.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.blmz-gallery--pixel{padding:12px 9px 18px}.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.blmz-gallery--pixel .blmz-card-art{height:108px;min-height:108px;padding:7px 4px 3px}.blmz-gallery--pixel .blmz-card-art img{max-height:94px}.blmz-gallery--pixel .blmz-card-body{min-height:60px;padding:8px 4px}.blmz-gallery--pixel .blmz-card-body strong{font-size:13px}.blmz-gallery--pixel .blmz-card-body small{font-size:10px}}
@media(max-width:375px){.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.4 Accessible popup. Lives under body, not inside theme layout context. */
.blmz-modal{--blmz-line:#344456;--blmz-gold:#c9ab72;--blmz-text:#edf1f4;--blmz-muted:#a8b6c1;
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  display:flex;align-items:flex-start;justify-content:center;
  overflow-y:auto;overscroll-behavior:contain;
  padding:clamp(12px,5vh,60px) 12px 18px;
  background:rgba(4,9,15,.86);color:var(--blmz-text);
  font-family:"Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;font-size:14px;line-height:1.7;
}
.blmz-modal[hidden]{display:none!important}
.blmz-modal *, .blmz-modal *::before,.blmz-modal *::after{box-sizing:border-box}
.blmz-modal__panel{width:min(720px,100%);max-height:calc(100dvh - 8vh);overflow:auto;overscroll-behavior:contain;
  background:#111923;border:1px solid #5d5b4f;border-radius:5px;
  box-shadow:0 18px 72px #000b;outline:none}
.blmz-modal__toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px 7px 17px;background:#202c36;border-bottom:1px solid #3c4c5d;color:#d0ad71;font:600 11px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.11em}
.blmz-modal__close{display:grid;place-items:center;min-width:38px;min-height:36px;border:1px solid #536171!important;border-radius:3px!important;background:#17222c!important;color:#f1e5cf!important;font:600 24px/1 sans-serif!important;cursor:pointer}
.blmz-modal__close:hover,.blmz-modal__close:focus-visible{border-color:#d8b579!important;background:#304052!important;outline:2px solid #d8b579;outline-offset:1px}
.blmz-modal__content{color:#e7edf0}
.blmz-quick-head{padding:18px clamp(16px,4vw,28px) 12px;background:linear-gradient(110deg,#202d3a,#121b25)}
.blmz-quick-kicker{margin:0 0 4px!important;color:#ceb37e;font:600 10px/1.6 ui-monospace,Consolas,monospace;letter-spacing:.15em}
.blmz-quick-title{color:#fff3de!important;margin:0!important;padding:0!important;border:0!important;font-size:clamp(21px,4vw,28px)!important;font-weight:700;line-height:1.4}
.blmz-quick-aka,.blmz-quick-cats{color:#aebdc7;margin:4px 0 0!important;font-size:12px;line-height:1.5}
.blmz-quick-picture{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-height:230px;max-height:350px;overflow:hidden;padding:20px;background:radial-gradient(circle,#283946,#101822 78%)}
.blmz-quick-back{position:absolute;z-index:0;top:50%;left:50%;width:var(--blmz-layer-scale,85%);height:95%;max-width:none;max-height:none;object-fit:contain;opacity:var(--blmz-layer-opacity,.28);transform:translate(calc(-50% + var(--blmz-layer-x,56px)),calc(-50% + var(--blmz-layer-y,0px)));pointer-events:none}
.blmz-quick-pixel{position:relative;z-index:1;display:block;max-width:100%;max-height:300px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 10px #0008)}
.blmz-quick-description{padding:17px clamp(17px,4vw,28px) 20px;color:#e1e8ec;font-size:14px;line-height:1.85;overflow-wrap:anywhere}
.blmz-quick-description p{margin:0 0 1em;color:inherit}.blmz-quick-description p:last-child{margin-bottom:0}
.blmz-quick-description :is(h2,h3,h4){margin:1em 0 .4em;color:#f3e5cd;font-size:1.14em;font-weight:700}
.blmz-quick-description img{max-width:100%;height:auto}.blmz-quick-description a{color:#9ccdf1}
.blmz-quick-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:12px clamp(17px,4vw,28px) 16px;border-top:1px solid #394957;background:#17222d}
.blmz-quick-related{font-size:12px;color:#b8cfdf!important}
.blmz-quick-full-link{margin-left:auto;display:inline-flex;align-items:center;gap:6px;border:1px solid #af8b58!important;border-radius:3px;padding:9px 12px;background:#443723;color:#ffe9c6!important;text-decoration:none!important;font-size:13px;font-weight:700}
.blmz-quick-full-link:hover{background:#645032}
.blmz-modal__error{padding:14px;color:#f2c6b7}
@media(max-width:600px){.blmz-modal{padding:8px}.blmz-modal__panel{max-height:calc(100dvh - 16px)}.blmz-quick-picture{min-height:190px;max-height:270px;padding:10px}.blmz-quick-pixel{max-height:230px}.blmz-quick-description{font-size:13px}}
@media(prefers-reduced-motion:reduce){.blmz-gallery--pixel .blmz-card--pixel{transition:none}}

/* Sidebar-friendly card layout: respond to the actual gallery width, not only the viewport. */
@supports (container-type:inline-size){
  .blmz-gallery--pixel{container-type:inline-size}
  @container (max-width:800px){.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,132px),1fr))}}
  @container (max-width:470px){.blmz-gallery--pixel .blmz-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,100px),1fr))}}
}


/* v1.4.1 Pixel typography: use only UI labels and titles, not article descriptions. */
.blmz-gallery--pixel .blmz-gallery-kicker,
.blmz-gallery--pixel .blmz-gallery-title,
.blmz-gallery--pixel .blmz-gallery-total,
.blmz-gallery--pixel .blmz-card-body strong,
.blmz-gallery--pixel .blmz-card-body small,
.blmz-gallery--pixel .blmz-count,
.blmz-gallery--pixel .blmz-search input,
.blmz-gallery--pixel .blmz-filter select,
.blmz-modal .blmz-modal__toolbar,
.blmz-modal .blmz-quick-kicker,
.blmz-modal .blmz-quick-title,
.blmz-modal .blmz-quick-aka,
.blmz-modal .blmz-quick-cats,
.blmz-modal .blmz-quick-full-link,
.blmz-page .blmz-eyebrow,
.blmz-page .blmz-detail-head h1 {
  font-family:var(--blmz-pixel-font, "DotGothic16", "Noto Sans JP", sans-serif)!important;
  font-synthesis:none;
}
/* 16-dot Japanese characters need enough pixels to stay legible. */
.blmz-gallery--pixel .blmz-card-body strong {font-size:15px;line-height:1.5;font-weight:400}
.blmz-gallery--pixel .blmz-card-body small {font-size:12px;line-height:1.6}
.blmz-gallery--pixel .blmz-gallery-title{font-weight:400}
.blmz-modal .blmz-quick-title{font-weight:400}
.blmz-modal .blmz-quick-full-link{font-weight:400}
@media(max-width:650px){
  .blmz-gallery--pixel .blmz-card-body strong {font-size:14px}
  .blmz-gallery--pixel .blmz-card-body small {font-size:11px}
}

/* v1.6: Species grouped, no-wrap pixel collection. Legacy categories stay in WP. */
.blmz-gallery--species .blmz-species-collections{display:grid;gap:23px}
.blmz-gallery--species .blmz-species-section{min-width:0}
.blmz-gallery--species .blmz-species-section[hidden]{display:none!important}
.blmz-gallery--species .blmz-species-heading{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin:0 0 9px;padding:8px 11px;border-left:3px solid #c9ab72;
 border-top:1px solid #435262;border-bottom:1px solid #354456;
 background:#1b2834;min-width:0;
}
.blmz-gallery--species .blmz-species-heading h3{
 font:400 17px/1.5 var(--blmz-pixel-font,"DotGothic16",sans-serif)!important;
 margin:0!important;padding:0!important;min-width:0;white-space:nowrap;
 text-overflow:ellipsis;overflow:hidden;color:#f4e8cf!important;
 border:0!important;background:none!important;
}
.blmz-gallery--species .blmz-species-heading .blmz-species-count{
 flex-shrink:0;font:400 12px/1.3 var(--blmz-pixel-font,"DotGothic16",sans-serif);
 white-space:nowrap;color:#c8b18d;
}
.blmz-gallery--species .blmz-species-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));
 gap:10px;
}
.blmz-gallery--species[data-blmz-cols-custom="1"] .blmz-species-grid{
 grid-template-columns:repeat(var(--blmz-columns,4),minmax(0,1fr));
}
.blmz-gallery--species .blmz-card--pixel{min-width:0;max-width:100%}
.blmz-gallery--species .blmz-card-art{height:118px;min-height:118px}
.blmz-gallery--species .blmz-card-art img{max-height:100px}
.blmz-gallery--species .blmz-card-body{
 display:block!important;min-width:0;width:100%;height:69px;min-height:69px;
 padding:8px 8px 11px;overflow:hidden;text-align:center;
}
.blmz-gallery--species .blmz-card-body strong,
.blmz-gallery--species .blmz-card-body small{
 display:block!important;min-width:0;max-width:100%;width:100%;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 overflow-wrap:normal!important;word-break:normal!important;
 line-height:1.65;font-weight:400;
}
.blmz-gallery--species .blmz-card-body strong{font-size:14px!important;color:#f0ecdf}
.blmz-gallery--species .blmz-card-body small{font-size:11px!important;color:#abbac5}
.blmz-gallery--species .blmz-tools{gap:7px 8px}
.blmz-gallery--species .blmz-tools .blmz-filter{min-width:130px;flex:0 1 170px}
.blmz-gallery--species .blmz-tools .blmz-sort-filter{flex-basis:160px}
.blmz-gallery--species .blmz-tools .blmz-filter select{
 width:100%;font-family:var(--blmz-pixel-font,"DotGothic16",sans-serif)!important;
}
.blmz-gallery--species .blmz-species-section:focus-within .blmz-species-heading{border-left-color:#f0d099}
@media(max-width:690px){
 .blmz-gallery--species .blmz-species-grid,
 .blmz-gallery--species[data-blmz-cols-custom="1"] .blmz-species-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 }
 .blmz-gallery--species .blmz-card-art{height:105px;min-height:105px}
 .blmz-gallery--species .blmz-card-art img{max-height:91px}
 .blmz-gallery--species .blmz-card-body strong{font-size:13px!important}
 .blmz-gallery--species .blmz-card-body small{font-size:10.5px!important}
 .blmz-gallery--species .blmz-species-heading h3{font-size:15px!important}
 .blmz-gallery--species .blmz-tools .blmz-filter{flex:1 1 calc(50% - 8px);min-width:125px}
}

/* v1.6.1: the sprite *frame* is always a true square, while text remains in a separate row. */
.blmz-gallery--species .blmz-card-art {
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:1 / 1;
  padding:clamp(6px, 1.3vw, 12px);
}
/* Preserve the pixel art's original ratio and centered alignment (the per-image px limit is retained). */
.blmz-gallery--species .blmz-card-art.is-pixel img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  image-rendering:pixelated;
}
/* Fallback for themes that do not supply WordPress's screen-reader-text utility. */
.blmz-gallery .screen-reader-text {
  border:0!important;
  clip:rect(1px,1px,1px,1px)!important;
  clip-path:inset(50%)!important;
  height:1px!important;
  width:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  position:absolute!important;
  white-space:nowrap!important;
}

/* v1.6.2: minimal surfaces. Transparent illustrations stay transparent against dark panels. */
.blmz-gallery--pixel {background:#10161d!important;background-image:none!important;}
.blmz-gallery--pixel .blmz-card-art,.blmz-gallery--species .blmz-card-art{
  background:#17222c!important;background-image:none!important;
}
.blmz-page .blmz-art-composite-wrap,.blmz-page .blmz-art-panel{
  background:#111923!important;background-image:none!important;
}
.blmz-page .blmz-art-composite,.blmz-page .blmz-art-stage,
.blmz-modal .blmz-quick-picture {background:transparent!important;background-image:none!important;}
.blmz-page img.blmz-art-composite__back,.blmz-page img.blmz-art-composite__pixel,
.blmz-page .blmz-art-panel img,.blmz-modal img.blmz-quick-back,
.blmz-modal img.blmz-quick-pixel {background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;}
.blmz-page .blmz-art-composite__back,.blmz-modal .blmz-quick-back{mix-blend-mode:normal;}
.blmz-gallery--pixel .blmz-gallery-heading{align-items:center;}
.blmz-gallery--pixel .blmz-gallery-title{letter-spacing:0;}
.blmz-gallery--pixel .blmz-gallery-total{letter-spacing:0;}
.blmz-modal .blmz-modal__toolbar{font-size:12px;letter-spacing:0;}
.blmz-modal .blmz-quick-head{background:#17222d;}
.blmz-page .blmz-detail-head{background:#17222d;}
.blmz-art-composite__caption {letter-spacing:0;}
.blmz-illustration-open,
.blmz-page button.blmz-art-image-button {font:inherit;color:inherit;cursor:pointer;}
.blmz-illustration-open {
  appearance:none;border:1px solid #776750!important;background:#27303a!important;
  color:#f2e4c7!important;border-radius:4px;padding:7px 11px;
  font-size:12px!important;line-height:1.5!important;
}
.blmz-illustration-open:hover,.blmz-illustration-open:focus-visible{
  border-color:#d9b676!important;background:#344353!important;outline:2px solid transparent;
}
.blmz-page .blmz-art-image-button{
  display:grid;place-items:center;width:100%;height:100%;margin:0;padding:0;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
.blmz-page .blmz-art-image-button:focus-visible{outline:2px solid #d9b676;outline-offset:2px;}
.blmz-page .blmz-art-image-button img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;}
/* Illustration lightbox is outside theme containers to avoid inherited white backgrounds. */
.blmz-illustration-lightbox[hidden]{display:none!important;}
.blmz-illustration-lightbox{
  position:fixed!important;inset:0!important;z-index:2147483600!important;
  display:grid;place-items:center;padding:12px;overflow:auto;
  background:rgba(4,8,13,.94)!important;
  font-family:"Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;color:#edf1f4;
}
.blmz-illustration-lightbox *, .blmz-illustration-lightbox *::before,
.blmz-illustration-lightbox *::after{box-sizing:border-box;}
.blmz-illustration-lightbox__panel{
  display:flex;flex-direction:column;max-height:calc(100dvh - 24px);
  width:min(100%,980px);border:1px solid #536274;border-radius:6px;
  background:#121c27!important;overflow:hidden;box-shadow:0 18px 72px #000b;outline:0;
}
.blmz-illustration-lightbox__bar{
  display:flex;align-items:center;gap:12px;justify-content:space-between;
  padding:8px 12px 8px 16px;background:#1e2b38;border-bottom:1px solid #3b4b5b;
}
.blmz-illustration-lightbox__title{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;}
.blmz-illustration-lightbox__close{
  min-width:38px;min-height:36px;display:grid;place-items:center;flex:none;
  border:1px solid #596a7b!important;background:#15202b!important;
  border-radius:4px;color:#fff!important;font:26px/1 sans-serif!important;cursor:pointer;
}
.blmz-illustration-lightbox__close:focus-visible{outline:2px solid #dfbd81;outline-offset:2px;}
.blmz-illustration-lightbox__body{
  display:grid;place-items:center;min-height:0;overflow:auto;
  padding:clamp(10px,2vw,24px);background:transparent!important;
}
.blmz-illustration-lightbox__body img{
  display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 170px);
  object-fit:contain;background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;
}
.blmz-illustration-lightbox__footer{
  display:flex;justify-content:flex-end;padding:8px 16px 10px;border-top:1px solid #344456;
}
.blmz-illustration-lightbox__original{font-size:12px;color:#d5bb8d!important;text-decoration:underline!important;}
@media(max-width:600px){
  .blmz-illustration-lightbox{padding:5px;}
  .blmz-illustration-lightbox__panel{max-height:calc(100dvh - 10px);}
  .blmz-illustration-lightbox__body img{max-height:calc(100dvh - 155px);}
  .blmz-art-composite__caption{flex-wrap:wrap;}
}
/* A theme may set a white background on every article image; sprite transparency takes priority. */
.blmz-gallery--pixel .blmz-card-art img {
  background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;
}
