html, body.bestiary-guide-body { min-height: 100%; height: auto; overflow: visible; }
body.bestiary-guide-body { color: #141216; background: #f7f7f8; background-image: linear-gradient(rgba(17,17,17,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.055) 1px, transparent 1px); background-size: 28px 28px; }
.bestiary-guide-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 7vw, 84px) 0 72px; }
.bestiary-intro { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.bestiary-kicker { display: inline-block; margin-bottom: 12px; padding: 6px 11px; background: #ddd6fe; border: 2px solid #111; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.bestiary-intro h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); font-weight: 1000; letter-spacing: -.065em; line-height: .95; }
.bestiary-intro > p:nth-of-type(2) { max-width: 660px; margin: 22px auto 0; color: #57515b; font-size: 1.05rem; line-height: 1.65; }
.bestiary-summary { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.bestiary-summary span { min-width: 140px; padding: 10px 14px; background: #fff; border: 2px solid #111; border-radius: 9px; box-shadow: 3px 3px 0 #111; color: #666; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.bestiary-summary strong { color: #111; font-size: 1rem; }
.bestiary-tools { position: sticky; top: 80px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px; background: rgba(255,255,255,.96); border: 2.5px solid #111; border-radius: 12px; box-shadow: 4px 4px 0 #111; backdrop-filter: blur(10px); }
.bestiary-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #f4f4f5; border: 2px solid #111; border-radius: 8px; }
.bestiary-search > span { font-size: 1.35rem; font-weight: 900; }
.bestiary-search input { width: 100%; padding: 9px 0; background: transparent; border: 0; outline: 0; font: inherit; font-size: .82rem; }
.bestiary-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #ecfeff; border: 2px solid #111; border-radius: 8px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.bestiary-result { margin: 22px 0 12px; color: #68616c; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.monster-family + .monster-family { margin-top: 42px; }
.monster-family-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 13px 17px; background: #fff; border: 2.5px solid #111; border-left: 10px solid var(--family-color); border-radius: 12px; box-shadow: 4px 4px 0 #111; }
.monster-family-heading span { color: #666; font-size: .6rem; font-weight: 1000; letter-spacing: .1em; text-transform: uppercase; }.monster-family-heading h2 { margin-top: 2px; font-size: 1.55rem; font-weight: 1000; letter-spacing: -.035em; }.monster-family-heading strong { min-width: 28px; padding: 5px 8px; background: #e4e4e7; border: 1.5px solid #111; border-radius: 999px; font-size: .68rem; text-align: center; }
.monster-families { display: block; }
.monster-family .monster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.monster-card { min-width: 0; overflow: hidden; background: #fff; border: 2.5px solid #111; border-top: 8px solid var(--monster-accent); border-radius: 12px; box-shadow: 5px 5px 0 #111; }
.monster-card-portrait { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #e4e4e7; border-bottom: 2px solid #111; }
.monster-card-portrait img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.monster-card.is-unknown .monster-card-portrait img { filter: grayscale(1) brightness(.45); }
.monster-lock { position: absolute; bottom: 10px; padding: 5px 8px; color: #fff; background: #111; border-radius: 999px; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.monster-card-body { padding: 14px; }
.monster-card-heading { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.monster-role { color: #666; font-size: .6rem; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.monster-card h2 { margin-top: 3px; font-size: 1.16rem; font-weight: 1000; line-height: 1.1; }
.monster-level { padding: 4px 6px; background: #fef3c7; border: 1.5px solid #111; border-radius: 6px; font-size: .62rem; font-weight: 900; white-space: nowrap; }
.monster-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 14px 0; padding: 0; list-style: none; }
.monster-stat { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; background: #f4f4f5; border: 1.5px solid #111; border-radius: 6px; }
.monster-stat span { color: #777; font-size: .52rem; font-weight: 900; text-transform: uppercase; }.monster-stat strong { margin-top: 2px; font-size: .72rem; }
.monster-card h3 { margin-top: 8px; font-size: .74rem; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.monster-skills { display: grid; gap: 6px; margin-top: 7px; padding: 0; list-style: none; }
.monster-skills li { padding: 7px 8px; background: #f8fafc; border-left: 4px solid var(--monster-accent); border-radius: 5px; }.monster-skills strong { display: block; font-size: .75rem; }.monster-skills span { color: #666; font-size: .6rem; font-weight: 900; text-transform: uppercase; }.monster-skills small { display: block; margin-top: 3px; color: #57515b; font-size: .68rem; line-height: 1.35; }
.monster-unknown-copy { color: #777; font-size: .7rem; font-style: italic; }
.bestiary-empty { margin-top: 30px; padding: 28px; background: #fff; border: 2.5px dashed #111; border-radius: 12px; color: #666; font-weight: 850; text-align: center; }
.bestiary-guide-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 24px 20px; background: #fff; border-top: 3px solid #111; color: #666; font-size: .76rem; text-align: center; }.bestiary-guide-footer a { color: #111; font-weight: 900; }
@media (max-width: 1000px) { .monster-family .monster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .bestiary-guide-main { width: min(100% - 20px, 1180px); padding-top: 38px; }.bestiary-tools { position: static; align-items: stretch; flex-direction: column; }.bestiary-toggle { white-space: normal; }.monster-family .monster-grid { grid-template-columns: 1fr; } }
