.facility-figure{position:relative;display:inline-grid;place-items:center;flex-shrink:0;width:180px;height:132px;max-width:100%;isolation:isolate}
.facility-figure>img,.facility-art-fallback{grid-area:1/1;display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0;pointer-events:none}
.facility-figure>img{opacity:0;filter:drop-shadow(0 8px 7px #020a1240);image-rendering:auto}
.facility-figure.facility-art-ready>img{opacity:1}
.facility-art-fallback{opacity:.5;padding:8px}
.facility-art-fallback>svg{display:block;width:100%;height:100%}
.facility-art-ready .facility-art-fallback{visibility:hidden}
.facility-figure>img[hidden]{display:none}
.building-grid>.research-building{grid-column:auto}
.building-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.building-card{padding:12px 12px 14px;min-width:0;overflow:hidden;background:var(--surface,#111e27)}
.building-card .building-card-top{flex-direction:column;align-items:flex-start;gap:6px;width:100%;text-align:left}
.building-card .building-art{display:grid;place-items:center;width:100%;height:110px;background:radial-gradient(ellipse at 50% 68%,#52747728,transparent 70%);border:0;border-radius:5px;margin-bottom:5px}
.building-card .building-art .facility-figure{width:156px;height:110px;max-width:100%}
.building-card .building-art svg{width:100%;height:100%}
.building-card h3{font-size:12px;line-height:1.6}
.building-card .level-label{font-size:8px;letter-spacing:1px;margin-top:3px;display:block}
.building-card p{min-height:36px;font-size:10px;line-height:1.7;margin:12px 0}
.building-card .upgrade-button{flex-wrap:wrap;gap:4px;min-height:34px;justify-content:space-between}
.facility-detail-visual{display:grid;place-items:center;min-height:188px;margin:12px 0 18px;border:1px solid var(--border,#29404b);border-radius:7px;background:radial-gradient(ellipse at 50% 70%,#42687038,transparent 67%),#101b24}
.facility-detail-visual .facility-figure{width:290px;height:196px}
.prod-facility-art{width:98px;height:74px}
.prod-facility>span:first-child:has(.facility-figure){width:98px;height:74px;flex-shrink:0;background:transparent;border:0}
.prod-facility .facility-art-fallback svg{width:100%;height:100%}
.prod-facility-visual{display:grid;place-items:center;margin:0 0 20px;background:radial-gradient(ellipse at 50% 75%,#5374782b,transparent 69%);border-bottom:1px solid var(--border,#29404b);padding:8px 0 16px}
.prod-facility-visual .facility-figure{width:260px;height:174px}
.research-facility>.facility-figure{width:188px;height:146px}
.research-facility>div:first-of-type{min-width:0;flex:1}
.store-sign .facility-figure{display:inline-grid;width:190px;height:146px}
.store-sign .facility-art-fallback svg{width:100%;height:100%;image-rendering:auto}
.store-front>.facility-figure{width:210px;height:166px;order:2}
@media(max-width:1190px){.building-grid{gap:8px}.building-card{padding:10px}.building-card .building-art{height:92px}.building-card .building-art .facility-figure{height:92px}.building-card h3{font-size:11px}.building-card p{font-size:9px}.prod-facility-art{width:78px;height:62px}.prod-facility>span:first-child:has(.facility-figure){width:78px;height:62px}}
@media(max-width:900px){.building-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.research-facility>.facility-figure{width:160px;height:126px}.store-front>.facility-figure{width:170px;height:134px}}
@media(min-width:651px) and (max-width:1000px){.research-facility{flex-wrap:wrap}.research-facility>.facility-figure{width:150px;height:116px}.research-facility-status{flex-basis:100%;padding:16px 0 0;border-left:0;border-top:1px solid var(--border)}}
@media(max-width:650px){.building-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.building-card{padding:12px}.building-card .building-art,.building-card .building-art .facility-figure{height:106px}.building-card h3{font-size:12px}.building-card p{font-size:10px;min-height:34px}.building-card .upgrade-button{font-size:10px;min-height:37px}.facility-detail-visual{min-height:170px}.facility-detail-visual .facility-figure{width:240px;height:170px}.prod-facility{flex-direction:column;align-items:flex-start}.prod-facility-art{width:72px;height:58px}.prod-facility>span:first-child:has(.facility-figure){width:72px;height:58px}.prod-facility-visual .facility-figure{width:218px;height:150px}.research-facility>.facility-figure{width:146px;height:112px;margin:0 auto}.store-front>.facility-figure{display:none}}
