
/* TRIPOLIS v2.8.7 — stability, cards, ANIGRAM and gallery polish */
.v287-nextday-hidden{display:none!important}
.speedcontrols button[data-speed]{min-width:42px}
/* Global portrait rule: heads, ears and horns stay visible instead of center-cropping torsos. */
.pcard img,.resident-card img,.personhero>img,.avatar img,.toprow img,.social-node img,.social-pick img,
.chronicle-portraits img,.district-person-tile img,.ani-bust img,.eni-frame-people img,.dark-bust img,.dark-member img{
  object-position:50% 7%!important;
}
/* Character modal: dashboard is the visual portrait. Do not repeat a second portrait below it. */
#personBody.v287-has-dashboard>.personhero>img,
#personBody.v287-has-dashboard>.personhero>.portraitfallback{display:none!important}
#personBody.v287-has-dashboard>.personhero{display:block!important;grid-template-columns:1fr!important;gap:0!important;align-items:start!important}
#personBody.v287-has-dashboard>.personhero>div{width:100%!important;min-width:0!important}
.persondashboard-shell{overflow:hidden!important;max-width:100%!important}
.persondashboard{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center top!important}
#personBody .edge{overflow-wrap:anywhere}
/* ENIAGRAM — larger circular portraits, balanced frame, city-render backgrounds. */
.eni-frame{min-height:455px!important}
.eni-frame-people{gap:24px!important;align-items:flex-start!important}
.eni-frame-people>div{min-width:190px!important;max-width:205px!important}
.eni-frame-people img,.eni-frame-people i{width:190px!important;height:190px!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 5%!important;box-shadow:0 10px 30px rgba(0,0,0,.45)!important}
.eni-frame-people strong{display:block!important;max-width:190px!important;white-space:normal!important;text-align:center!important;margin-top:8px!important}
.ani-bust img,.ani-fallback{width:148px!important;height:148px!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 5%!important}
.ani-bust{min-width:154px!important}
.dark-bust img,.dark-bust .pf{width:132px!important;height:132px!important;object-position:50% 5%!important}
.dark-member img,.dark-member .pf{width:112px!important;height:112px!important;object-position:50% 5%!important}
/* 60-render slideshow gallery */
.v287-gallery{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0 28px}
.v287-gallery-head{width:min(60vw,1240px);display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.v287-gallery-head h3{margin:0;color:#e8c676;font-size:20px;letter-spacing:.04em}.v287-gallery-head p{margin:4px 0 0;color:#8ea6b8;font-size:11px}
.v287-gallery-counter{color:#e8c676;font-weight:800;font-size:13px;white-space:nowrap}
.v287-gallery-stage{position:relative;width:min(60vw,1240px);aspect-ratio:16/9;background:#020b13;border:1px solid #315065;border-radius:10px;overflow:hidden;box-shadow:0 22px 65px rgba(0,0,0,.42)}
.v287-gallery-stage img{width:100%;height:100%;display:block;object-fit:contain;background:#020b13}
.v287-gallery-shade{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,rgba(2,8,14,.82));height:30%;pointer-events:none}
.v287-gallery-caption{position:absolute;left:22px;bottom:17px;right:110px;color:#fff;text-shadow:0 2px 10px #000}.v287-gallery-caption b{display:block;font-size:18px}.v287-gallery-caption small{color:#d7b56f}
.v287-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:70px;border:1px solid rgba(232,198,118,.5);background:rgba(2,10,18,.72);color:#f0cc77;font-size:29px;border-radius:8px;cursor:pointer;z-index:2}.v287-gallery-arrow:hover{background:rgba(11,31,45,.94)}
.v287-gallery-prev{left:14px}.v287-gallery-next{right:14px}
.v287-gallery-controls{width:min(60vw,1240px);display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}.v287-gallery-controls button{border:1px solid #315065;background:#071726;color:#b9cad6;padding:7px 11px;border-radius:7px;cursor:pointer;font-size:10px}.v287-gallery-controls button.active,.v287-gallery-controls button:hover{border-color:#d4a84d;color:#f4cf79;background:#102438}.v287-gallery-play{font-size:14px!important;min-width:40px}
.v287-gallery-dots{display:flex;gap:4px;justify-content:center;max-width:min(60vw,1240px);flex-wrap:wrap}.v287-gallery-dots i{width:5px;height:5px;border-radius:50%;background:#3b5263}.v287-gallery-dots i.active{background:#e5bd61;transform:scale(1.5)}
.v287-version-pill{position:fixed;right:10px;bottom:7px;z-index:50;font:700 9px/1.2 system-ui;color:#d9b65f;background:rgba(2,10,18,.78);border:1px solid #6c5423;border-radius:12px;padding:4px 8px;pointer-events:none}
@media(max-width:900px){.v287-gallery-head,.v287-gallery-stage,.v287-gallery-controls{width:94vw}.v287-gallery-dots{max-width:94vw}.v287-gallery-caption b{font-size:14px}.eni-frame-people img,.eni-frame-people i{width:132px!important;height:132px!important}.eni-frame-people>div{min-width:132px!important;max-width:140px!important}.ani-bust img,.ani-fallback{width:112px!important;height:112px!important}}
