.bestiary-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:0 48px;width:min(calc(100% - 64px),1600px);margin:auto;padding:40px 0 70px;align-items:start}
.bestiary-browser{position:sticky;top:calc(var(--site-header-height) + 28px);max-height:calc(100dvh - var(--site-header-height) - 45px);overflow:auto;scrollbar-width:thin}
.bestiary-browser h2{font-size:15px;font-weight:500;color:#d7cec4;margin:0 0 15px}.bestiary-browser input,.bestiary-browser select{display:block;width:100%;height:39px;border:1px solid #3e3830;border-radius:0;padding:7px 10px;background:#161310;color:#c8bfb5;font-size:12px}
.bestiary-browser label:not(.sr-only){display:block;margin:18px 0 7px;font-size:11px;color:#9c8e80}.bestiary-browser>div>p{font-size:11px;color:#a5927e;margin:17px 0}
#beast-reset{background:none;border:0;border-bottom:1px solid #6e5b49;padding:3px 0;font-size:11px;color:#d0b9a1;cursor:pointer}
.beast-index{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:24px;border-top:1px solid #332b24;padding-top:16px}.beast-index a{display:flex;align-items:center;justify-content:center;min-height:30px;font-size:11px;font-variant-numeric:tabular-nums;color:#aa9783;text-decoration:none}.beast-index a:hover{background:#262019;color:#eddbc7}
.bestiary-content{min-width:0}.bestiary-heading{display:flex;justify-content:space-between;align-items:start;gap:25px;padding-bottom:25px;border-bottom:1px solid #3c3026;margin-bottom:22px}.bestiary-heading h1{font:400 65px/1.05 'Pirata One',Georgia,serif;color:#e9ddd0;margin:0 0 15px}.bestiary-heading p{font-size:15px;line-height:1.8;color:#a89c90;max-width:62ch}.bestiary-spoiler{flex-shrink:0;color:#b89c81;font-size:10px;border-left:1px solid #735941;padding-left:11px;margin-top:10px}
.beast-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.beast-entry{display:grid;grid-template-columns:145px minmax(0,1fr);gap:22px;padding:25px 0 28px;border-top:1px solid #302820;scroll-margin-top:calc(var(--site-header-height) + 24px);min-width:0}
.beast-model{margin:0;align-self:start}.beast-image{display:block;width:100%;height:220px;padding:0;border:0;background:transparent;box-shadow:none;cursor:zoom-in}.beast-image img{display:block;width:100%;height:100%;object-fit:contain;transition:filter .15s}.beast-image:hover img{filter:brightness(1.1)}
.beast-copy{min-width:0}.beast-copy>header{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 12px}.beast-copy h3{font:400 29px/1.15 'Pirata One',Georgia,serif;color:#e9d6c2;margin:0}.beast-boss{font-size:9px;letter-spacing:.6px;text-transform:uppercase;color:#bd9273}.beast-description{white-space:pre-line;font-size:13px;line-height:1.8;color:#b7a99a;overflow-wrap:anywhere}
.beast-number{font-family:'IBM Plex Sans',sans-serif;font-size:.65em;font-variant-numeric:tabular-nums;letter-spacing:0;color:#a89079}
.beast-map-actions{display:flex;align-items:baseline;gap:13px;flex-wrap:wrap;margin-top:17px}.beast-map-link{display:inline-flex;align-items:center;gap:12px;min-height:30px;padding:3px 0;border-bottom:1px solid #68513c;color:#d3bda6;font-size:12px;text-decoration:none}.beast-map-link:hover{color:#f0ddc8;border-color:#b89573}
.beast-locations{font-size:10px;color:#9b8875;min-width:0}.beast-locations summary{cursor:pointer}.beast-locations ul{list-style:none;padding:10px 0 0;margin:0;min-width:min(100%,260px)}.beast-locations li{display:flex;align-items:baseline;gap:12px;padding:4px 0;font-size:11px}.beast-locations li>span{flex:1}.beast-locations small{color:#7d6f62;margin-left:4px}.beast-locations li>a{color:#bd9e82;text-underline-offset:3px}
.beast-lore-links{display:flex;gap:5px 14px;flex-wrap:wrap;margin-top:15px;font-size:10px;line-height:1.7}.beast-lore-links>span{width:100%;color:#776757}.beast-lore-links a{color:#ac927a;text-decoration:underline;text-underline-offset:3px}.beast-lore-links details{width:100%}.beast-lore-links details summary{cursor:pointer;color:#94816e}.beast-lore-links details>a{display:block;padding-top:5px}
.beast-encounter-note{font-size:11px;line-height:1.7;color:#8f7c69;margin-top:16px}.beast-context-link{font-size:11px;color:#c0a080}.beast-variants{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:7px}.beast-variants button{border:0;background:none;padding:0;width:60px;cursor:zoom-in;color:#8e7d6b}.beast-variants img{width:60px;height:60px;object-fit:contain}.beast-variants span{display:block;font-size:9px;line-height:1.4}
.bestiary-page button:focus-visible,.bestiary-page a:focus-visible,.bestiary-page input:focus-visible,.bestiary-page select:focus-visible{outline:1px solid #cfb79d;outline-offset:4px}#beast-empty{padding:40px 0;color:#a99480;font-size:15px}
.beast-variants>div{text-align:center}.beast-variants>div>a{display:inline-block;margin-top:5px;font-size:9px;color:#b49b82;text-underline-offset:3px}
.bestiary-page .image-dialog .lore-dialog-head button{display:grid;place-items:center;padding:0;line-height:1}.bestiary-page .image-dialog .lore-dialog-head button svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;pointer-events:none}
@media(max-width:1350px){.beast-grid{grid-template-columns:1fr}.beast-entry{grid-template-columns:175px minmax(0,1fr);gap:30px}.beast-description{font-size:14px}.beast-image{height:245px}.bestiary-heading{display:block}.bestiary-spoiler{display:inline-block;margin-top:18px}}
@media(max-width:800px){.bestiary-layout{display:block;width:calc(100% - 32px);padding-top:24px}.bestiary-browser{position:static;max-height:none;overflow:visible;border-bottom:1px solid #362c24;padding-bottom:20px;margin-bottom:25px}.bestiary-browser-inner{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.bestiary-browser h2,.bestiary-browser input,.bestiary-browser .beast-index{grid-column:1/-1}.bestiary-browser h2{margin-bottom:4px}.bestiary-browser label:not(.sr-only){display:none}.bestiary-browser .beast-index{margin-top:3px;padding-top:12px}.bestiary-browser>div>p{margin:3px 0}.bestiary-browser #beast-reset{justify-self:end;align-self:start}.bestiary-heading h1{font-size:49px}.bestiary-heading p{font-size:14px}.bestiary-heading{margin-bottom:15px}.beast-entry{grid-template-columns:115px minmax(0,1fr);gap:20px;padding-block:24px}.beast-copy h3{font-size:28px}.beast-image{height:185px}.beast-description{font-size:13px}.beast-map-actions{gap:8px 13px}}
@media(max-width:520px){.beast-entry{display:block}.beast-entry::after{content:'';display:block;clear:both}.beast-model{float:right;width:105px;margin:0 0 12px 17px}.beast-image{height:155px}.beast-copy>header{display:block}.beast-boss{display:inline-block;margin-top:7px}.beast-map-actions,.beast-lore-links{clear:both}.beast-variants{gap:5px}.beast-variants button,.beast-variants img{width:47px}.beast-variants img{height:47px}}

.bestiary-heading{grid-column:1/-1}
.bestiary-page.single-result .beast-grid{grid-template-columns:1fr}
.bestiary-page.single-result .beast-entry{grid-template-columns:230px minmax(0,1fr);gap:35px}
.bestiary-page.single-result .beast-image{height:295px}
.bestiary-page.single-result .beast-description{max-width:70ch;font-size:15px}
@media(max-width:800px){.bestiary-page.single-result .beast-entry{grid-template-columns:145px minmax(0,1fr);gap:22px}.bestiary-page.single-result .beast-image{height:210px}.bestiary-page.single-result .beast-description{font-size:14px}}
@media(max-width:520px){.bestiary-page.single-result .beast-entry{display:block}.bestiary-page.single-result .beast-image{height:155px}.bestiary-page.single-result .beast-description{font-size:13px}}

@media(max-width:800px){.bestiary-browser .beast-index{display:flex;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}.beast-index a{flex:0 0 78px}}

@media(max-width:1000px){
 .bestiary-layout{display:block;width:calc(100% - 32px);padding-top:25px}.bestiary-browser{position:static;max-height:none;overflow:visible;border-bottom:1px solid #362c24;padding-bottom:18px;margin-bottom:22px}.bestiary-browser-inner{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.bestiary-browser h2,.bestiary-browser input,.bestiary-browser .beast-index{grid-column:1/-1}.bestiary-browser label:not(.sr-only){display:none}.bestiary-browser input,.bestiary-browser select{font-size:16px;min-height:46px;height:46px;min-width:0}.bestiary-browser>div>p{font-size:12px;margin:3px 0;align-self:center}.bestiary-browser #beast-reset{justify-self:end;min-height:44px;font-size:12px}.bestiary-browser .beast-index{display:flex;overflow-x:auto;gap:2px;margin-top:0;padding:10px 0 5px;scrollbar-width:thin}.beast-index a{flex:0 0 79px;min-height:44px;font-size:12px}.bestiary-heading{padding-bottom:18px}.bestiary-heading h1{font-size:49px}.beast-copy h3{overflow-wrap:anywhere}.beast-description{font-size:14px!important;line-height:1.8}.beast-map-link{min-height:44px;font-size:13px}.beast-locations{font-size:12px}.beast-locations summary{min-height:44px;display:flex;align-items:center;gap:6px}.beast-locations summary::before{content:'▸'}.beast-locations[open] summary::before{content:'▾'}.beast-locations li>a{display:inline-flex;min-height:44px;min-width:40px;align-items:center;justify-content:center}.beast-lore-links{font-size:12px;gap:0 16px}.beast-lore-links a{display:inline-flex;align-items:center;min-height:44px}.beast-variants button{min-height:70px}.beast-variants>div>a{min-height:44px;font-size:11px;display:inline-flex;align-items:center}.bestiary-page .image-dialog .lore-dialog-head button{height:44px;width:44px}
}
.beast-filters>summary{display:none}.bestiary-browser-inner>#beast-count{display:block;font-size:12px;color:#a5927e;margin:16px 0}
@media(max-width:1000px){.beast-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;font-size:14px;cursor:pointer;list-style:none}.beast-filters>summary::before{content:'+';font-size:20px;color:#aa9783}.beast-filters[open]>summary::before{content:'−'}.beast-filters>summary::-webkit-details-marker{display:none}.beast-filters>summary #beast-count{margin-left:auto;font-size:12px;color:#a5927e}.beast-filters .bestiary-browser-inner{padding-bottom:16px}.beast-filters .bestiary-browser-inner>h2{display:none}.bestiary-browser .beast-index{margin-top:8px}}
@media(max-width:360px){.bestiary-browser select{grid-column:1/-1}}

/* Keep every small-screen filter and number range within the reading column. */
@media(max-width:1000px){
 .bestiary-browser,.beast-filters,.bestiary-browser-inner{min-width:0;max-width:100%}
 .bestiary-browser-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bestiary-browser input,.bestiary-browser select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 .beast-filters>summary{min-width:0;gap:8px}.beast-filters>summary #beast-count{white-space:nowrap;flex-shrink:0}
 .bestiary-browser .beast-index{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible;padding-bottom:0}
 .beast-index a{min-width:0;min-height:44px;font-size:11px;white-space:nowrap}
}
@media(min-width:650px) and (max-width:1000px){.bestiary-browser .beast-index{grid-template-columns:repeat(8,minmax(0,1fr))}}
.beast-defenses{margin-top:15px;border-left:2px solid #685442;padding-left:11px}.beast-weakness{font-size:12px;color:#dbc3a8;line-height:1.7;margin:0}.beast-weakness>span{font-size:10px;letter-spacing:.3px;color:#94816b;margin-right:6px}.beast-defenses summary{font-size:11px;color:#a6917a;min-height:32px;display:flex;align-items:center;gap:7px;cursor:pointer}.beast-defenses summary:before{content:'+'}.beast-defenses details[open]>summary:before{content:'−'}.beast-defenses h4{font-size:10px;color:#93816d;text-transform:uppercase;letter-spacing:.6px;font-weight:500;margin:10px 0 5px}.beast-defenses dl{margin:0;max-width:360px}.beast-defenses dl>div{display:flex;justify-content:space-between;gap:18px;font-size:11px;line-height:1.7;border-bottom:1px solid #29231d;padding:4px 0}.beast-defenses dt{color:#aa9987}.beast-defenses dd{margin:0;color:#b6a592}.beast-defenses dd>span{color:#8e7d6a;margin-left:6px;font-variant-numeric:tabular-nums}.beast-defenses .defense-weak dd{color:#e2b790}.beast-defenses .defense-immune dd{color:#c7adb0}.defense-note{font-size:11px;color:#a18d77;line-height:1.8;margin:10px 0}.bestiary-heading #defense-guide{margin-top:14px;max-width:70ch}.bestiary-heading #defense-guide summary{font-size:12px;color:#b4a18c;cursor:pointer;min-height:30px}.bestiary-heading #defense-guide p{font-size:12px;line-height:1.8;margin-top:8px}.beast-filters label[for=beast-weakness]{display:block}
@media(max-width:1000px){.beast-defenses summary{min-height:44px;font-size:12px}.beast-defenses dl>div{font-size:12px;padding-block:6px}.beast-weakness{font-size:13px}.beast-filters label[for=beast-weakness]{display:none}.beast-filters #beast-weakness{grid-column:1/-1}.defense-note{font-size:12px}}

/* The same charcoal cards and contained light sweep used by the item directory. */
.beast-grid{gap:10px 12px}.beast-entry{position:relative;isolation:isolate;overflow:hidden;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:16px;border:1px solid #3b3731;border-radius:3px;background:#171613;box-shadow:inset 0 1px #ffffff08,0 3px 12px #0002;transition:border-color .18s,box-shadow .18s,transform .18s}.beast-entry>.beast-model,.beast-entry>.beast-copy{position:relative;z-index:1}.beast-entry::before{content:'';position:absolute;z-index:0;inset:-10% -60%;pointer-events:none;background:linear-gradient(110deg,transparent 35%,#ffffff0c 48%,#ffffff14 51%,transparent 64%);transform:translateX(-85%);transition:transform .65s cubic-bezier(.2,.7,.3,1)}.beast-image{height:180px}.beast-copy>header{margin-bottom:8px;gap:8px}.beast-copy h3{font-size:25px}.beast-description{line-height:1.7}.beast-map-actions{margin-top:12px}.beast-defenses{margin-top:12px}.beast-lore-links{margin-top:12px}
@media(hover:hover){.beast-entry:hover{border-color:#8a7a67;box-shadow:inset 0 1px #ffffff0d,0 5px 16px #0005;transform:translateY(-1px)}.beast-entry:hover::before{transform:translateX(85%)}}
.beast-entry:focus-within{border-color:#a59075}.beast-entry .beast-map-link{border:1px solid #665849;border-radius:3px;background:#211d18;padding:5px 10px;min-height:34px}.beast-entry .beast-map-link:hover{background:#332b22;text-decoration:none}.beast-entry .beast-map-link:focus-visible{outline:2px solid #c7b69f;outline-offset:3px}
@media(max-width:1350px) and (min-width:1001px){.beast-entry{grid-template-columns:145px minmax(0,1fr)}.beast-image{height:200px}}
@media(max-width:1000px){.beast-entry{padding:14px;gap:16px;grid-template-columns:115px minmax(0,1fr)}.beast-entry .beast-map-link{min-height:44px}.beast-copy h3{font-size:25px}}
@media(max-width:520px){.beast-entry{padding:14px}.beast-image{height:150px}.beast-model{width:95px;margin-left:12px}.beast-copy h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.beast-entry::before{display:none}.beast-entry:hover{transform:none}}
