/* Present 15 enemy portraits and story lore without affecting battle logic. */
.monster-grid{gap:12px}
.monster-library-entry{display:block;padding:14px;min-width:0}
.monster-library-top{display:flex;align-items:center;gap:14px;width:100%;min-width:0}
.monster-library-entry .monster-portrait{flex:0 0 100px;width:100px;height:100px;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:rgba(130,120,170,.10);border:1px solid var(--lq-g-line,#ffffff28)}
.monster-portrait-image{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.monster-portrait-unknown{display:grid;place-items:center;font-size:40px;color:var(--lq-g-muted,#bfbeda);opacity:.75}
.monster-library-entry .monster-copy{display:block;min-width:0;flex:1}
.monster-library-entry .monster-copy b{display:block;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.monster-library-entry .monster-copy small{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.monster-clear-badge,.monster-wait-badge{display:inline-block;margin-top:5px;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:rgba(36,151,109,.15);color:var(--lq-g-ink,#e4ffeb);border:1px solid rgba(88,168,134,.30)}
.monster-wait-badge{background:rgba(137,118,166,.13);border-color:rgba(147,131,171,.24)}
.monster-lore{margin-top:12px;border-top:1px solid var(--lq-g-line,#ffffff25);padding-top:10px;min-width:0}
.monster-lore summary{cursor:pointer;min-height:34px;color:var(--lq-g-ink,#f5f7ff);font-size:13px;font-weight:800;line-height:1.5}
.monster-lore-detail{margin:6px 0 0;padding:10px 12px;border-radius:10px;background:var(--lq-g-card,rgba(34,42,70,.6));color:var(--lq-g-ink,#fff);border:1px solid var(--lq-g-line,#ffffff28);font-size:12px;line-height:1.8}
.monster-lore-detail p{margin:6px 0;overflow-wrap:anywhere}.monster-lore-detail strong{color:var(--lq-g-ink,#fff)}
.monster-lore-detail small{display:block;margin-top:8px;color:var(--lq-g-muted,#b6c5db);font-size:10px}
.monster-library-actions{margin-top:10px}.monster-library-actions .btn{max-width:100%}
@media(max-width:380px){.monster-library-entry .monster-portrait{width:76px;height:76px;flex-basis:76px}.monster-library-top{gap:9px}}
