/* Organic fortifications, districts and state-driven inhabitants. */
.ct-citadel .hm-scene-plane{width:min(100%,calc(var(--scene-h)*1.785714));aspect-ratio:1000/560;transform-origin:50% 58%}
.ct-citadel .court-ground{display:none}.ct-citadel .wallpiece{display:none!important}.ct-citadel .court-light{opacity:.16}
.ct-floor,.ct-wall,.ct-tower,.ct-sidegate{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.ct-floor{z-index:0}.ct-wall>g,.ct-wall>path,.ct-tower>path,.ct-tower>ellipse,.ct-tower>rect,.ct-sidegate>path{pointer-events:visiblePainted;cursor:pointer}
.ct-wall,.ct-tower{filter:drop-shadow(1px 2px 1px #22321b30)}
.ct-structures,.ct-people{position:absolute;inset:0;pointer-events:none}
.ct-main-gate{position:absolute;transform:translate(-50%,-100%);padding:0;background:none;border:0;pointer-events:auto;cursor:pointer;isolation:isolate}.ct-main-gate img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 4px #20331d66);transition:filter .2s}.ct-main-gate:hover img{filter:drop-shadow(0 0 6px #fbe2a2aa) drop-shadow(0 5px 5px #20331d66)}.ct-main-gate>span{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;white-space:nowrap;font:500 7px Inter,sans-serif;color:#e8e9cc;background:#19301cdd;border:1px solid #d4bf7c88;padding:3px 5px;border-radius:4px}.ct-main-gate b{font-size:6px;color:#26351c;background:#d5c28a;border-radius:2px;padding:1px 3px}
.ct-citadel .plot{transition:left .4s,top .4s,width .4s}.ct-citadel .plot img{filter:drop-shadow(2px 5px 4px #23391e55)}.ct-citadel .plot.site svg{opacity:.8}.ct-citadel .site-pad{fill:#486d3433}.ct-citadel .site-plus{width:16px;height:16px;font-size:11px;line-height:16px;bottom:26%;box-shadow:0 0 0 3px #e8d5a622,0 2px 7px #193f1755}
.ct-citadel .hm-map-labels{z-index:1400}.ct-citadel .hm-map-label{transform:translate(-50%,-5px);font-size:7px;padding:3px 4px 3px 6px;background:#19321ee6;border-color:#d8cb9477}.ct-citadel .hm-map-label b{font-size:6px}.ct-citadel .hm-label-site{transform:translate(-50%,-12px);font-size:6px;opacity:.93}.ct-citadel .hm-label-site b{font-size:5px}
.ct-defence-badge{position:absolute;right:20px;top:19px;z-index:1500;background:#1a321fe0;border:1px solid #dbc78c66;padding:10px 13px;border-radius:7px;backdrop-filter:blur(8px);pointer-events:none}.ct-defence-badge>span{display:block;font:600 6px Inter,sans-serif;letter-spacing:.15em;color:#ddcca0;margin-bottom:4px}.ct-defence-badge>b{font-family:Georgia,serif;font-size:16px;font-weight:400;color:#edeed6}
.ct-population{position:absolute;left:18px;bottom:16px;z-index:1500;background:#17311fe6;border:1px solid #d0c68b55;padding:10px 13px;border-radius:7px;backdrop-filter:blur(8px);max-width:48%;pointer-events:auto}.ct-population small{display:block;font:600 6px Inter,sans-serif;letter-spacing:.16em;color:#bdc99b;margin-bottom:4px}.ct-population b{display:block;font:500 10px Inter,sans-serif;color:#efeed6}.ct-population>span{display:block;font:400 7px/1.5 Inter,sans-serif;color:#a9bd93;margin-top:4px}.ct-citadel .hm-scene-legend{display:none}.ct-citadel .hm-scene-title{left:20px;top:20px}.ct-citadel .hm-scene-title b{font-size:23px}.ct-citadel .hm-atmosphere{z-index:1350}
/* Original eight-frame transparent artwork, row-major 4 x 2 grid. */
.ct-person{position:absolute;transform:translate(-50%,-100%);width:2%;aspect-ratio:3/4;pointer-events:none;will-change:left,top}.ct-avatar,.ct-raster{display:block;width:100%;height:100%}.ct-avatar{transform-origin:center bottom}.ct-raster{background-repeat:no-repeat;background-size:400% 200%;animation:ct-walk var(--cycle,.96s) steps(1,end) infinite;filter:drop-shadow(0 1px 1px #14270f44)}.ct-outrider{width:3.5%}.ct-warden{width:2.15%}.ct-scholar,.ct-carrier,.ct-civilian{width:1.8%}
.ct-citadel.hm-no-motion .ct-person *,.hm-tab-paused .ct-person *{animation-play-state:paused!important}
@keyframes ct-walk{0%{background-position:0% 0%}12.5%{background-position:33.333333% 0%}25%{background-position:66.666667% 0%}37.5%{background-position:100% 0%}50%{background-position:0% 100%}62.5%{background-position:33.333333% 100%}75%{background-position:66.666667% 100%}87.5%,100%{background-position:100% 100%}}
@media(max-width:1350px){.ct-citadel .hm-map-label{font-size:6px}.ct-citadel .hm-label-site{font-size:5px}.ct-citadel .hm-map-label b{font-size:5px}.ct-defence-badge{padding:8px 10px;right:14px;top:15px}.ct-defence-badge>b{font-size:14px}}
@media(max-width:900px){.ct-citadel .hm-scene-plane{width:min(114%,calc(var(--scene-h)*1.785714))}.ct-citadel .hm-map-label{font-size:5px;padding:2px 3px;gap:2px}.ct-citadel .hm-map-label b{font-size:4px;padding:1px 2px}.ct-citadel .hm-label-site{font-size:4px;transform:translate(-50%,-8px)}.ct-main-gate>span{font-size:5px;padding:2px 3px}.ct-main-gate b{font-size:4px}.ct-defence-badge{right:10px;top:12px;padding:7px 9px}.ct-defence-badge>span{font-size:5px}.ct-defence-badge>b{font-size:12px}.ct-citadel .hm-scene-title{left:12px;top:13px}.ct-citadel .hm-scene-title b{font-size:17px}.ct-population{left:10px;bottom:12px;padding:8px 10px;max-width:60%}.ct-population b{font-size:8px}.ct-population small{font-size:5px}.ct-population>span{font-size:6px}.ct-person{width:2.2%}.ct-outrider{width:3.7%}.ct-civilian,.ct-carrier,.ct-scholar{width:2%}}
@media(prefers-reduced-motion:reduce){.ct-person *{animation:none!important}.ct-citadel .plot{transition:none!important}}
