/* Page sheet for monster.php. Linked after style.css by includes/css.php,
   so these rules win ties against the shared sheet. */

.char-wrap { animation: charIn 0.45s ease-out; }
@keyframes charIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.item-emblem {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05), rgba(255,255,255,0.015) 70%);
    border: 1px solid rgba(201,168,76,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px rgba(0,0,0,0.35);
    color: var(--gold);
    overflow: hidden;
}
.item-sprite {
    display: block;
    width: auto;
    height: auto;
    max-width: 104px;
    max-height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55));
}
.item-sub {
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.item-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.faction-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.35);
    vertical-align: middle;
}
.boss-tag {
    display: inline-block;
    margin-top: 12px;
    margin-left: 8px;
    padding: 4px 12px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    vertical-align: middle;
}

.sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 38px 0 16px;
    color: var(--text-mid);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.sec-head::before {
    content: '';
    width: 3px;
    height: 13px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.sec-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.stat-value {
    min-height: 1.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.prose-box {
    background: rgba(18, 18, 20, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 22px;
    line-height: 1.6;
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* Embedded so links style correctly even with a stale cached style.css */onster-link, .npc-link { color: var(--accent); text-decoration: none; transition: color 0.15s; }
.monster-link:visited, .npc-link:visited { color: var(--accent); }
.monster-link:hover, .npc-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.spell-link { color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.spell-link:visited { color: var(--text-dim); }
.spell-link:hover { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }
.elem-tag {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--text-dim);
    border: 1px solid var(--border-light);
    vertical-align: middle;
    margin-left: 2px;
}
.elem-fire    { color: #c0622a; border-color: rgba(192,98,42,0.4); }
.elem-water   { color: #3d8fa8; border-color: rgba(61,143,168,0.4); }
.elem-air     { color: #7aafc0; border-color: rgba(122,175,192,0.4); }
.elem-earth   { color: #8a7040; border-color: rgba(138,112,64,0.4); }
.elem-light   { color: var(--gold); border-color: rgba(201,168,76,0.4); }
.elem-dark    { color: #9060b0; border-color: rgba(144,96,176,0.4); }
.elem-non-elemental { color: var(--text-dim); border-color: var(--border); }

@media (max-width: 600px) {
    .sec-head { margin: 30px 0 14px; }
    .sec-head::after { display: none; }
}
