/* Empty sites are described in the inspector; no plus signs on the terrain. */
#worlds .colony-site.empty{display:none!important}
@media(min-width:951px){
 /* Painted artwork replaces the legacy terrain marker, not the metadata strip. */
 .faithful-target #worlds .rover-marker:has(.painted-piece)>:not(.painted-piece){display:none!important}
 /* Keep the name plaque in normal flow below all terrain and pieces. */
 .faithful-target[data-desktop-view='tabletop'] #worlds .world .caption{margin-top:calc(3px - var(--caption-clearance,0px))}
 .faithful-target[data-desktop-view='tabletop'] #worlds{grid-template-rows:repeat(var(--rows),max-content);row-gap:14px}
 /* Facility badges have their own space outside settlement artwork. */
 .faithful-target #worlds .colony-site .installation-badge{box-sizing:border-box;width:clamp(16px,calc(var(--world-size)*.08),30px);padding:2px;gap:0;z-index:3}
 .faithful-target #worlds .colony-site .installation-art{width:100%;height:auto;aspect-ratio:1}
 .faithful-target[data-desktop-view='tabletop'] #worlds .colony-site .installation-badge{left:calc(100% + 5px);right:auto;top:50%;bottom:auto;transform:translateY(-50%)}
 .faithful-target[data-desktop-view='star-map'] #worlds .colony-site .installation-badge{left:50%;right:auto;top:auto;bottom:calc(100% + 5px);transform:translateX(-50%)}
 /* A separate front-left vehicle lane stays clear of both settlement sites. */
 .faithful-target[data-desktop-view='tabletop'] #worlds .rover-markers{display:grid;grid-template-columns:repeat(var(--vehicle-cols,1),minmax(0,1fr));left:10%;right:44%;top:55%;gap:3px;align-items:center;z-index:4}
 .faithful-target[data-desktop-view='star-map'] #worlds .colony-site:has(.painted-piece)>:is(.colony-art,strong,small:not(.installation-badge)){display:none!important}
 .faithful-target[data-desktop-view='star-map'] #worlds .colony-site>.painted-piece{width:100%;height:auto;aspect-ratio:65/60}
 .faithful-target[data-desktop-view='star-map'] #worlds .rover-markers{display:grid;grid-template-columns:repeat(var(--vehicle-cols,1),minmax(0,1fr));left:15%;right:15%;top:5%;gap:3px;align-items:center}
 .faithful-target:is([data-desktop-view='tabletop'],[data-desktop-view='star-map']) #worlds .rover-marker{width:min(100%,60px);justify-self:center;height:auto;aspect-ratio:5/4;min-width:0;max-width:none;padding:0}
 .faithful-target[data-desktop-view='star-map'] #worlds .rover-marker{width:min(100%,calc(var(--world-size)*.2),60px)}
 .faithful-target:is([data-desktop-view='tabletop'],[data-desktop-view='star-map']) #worlds .rover-marker>.painted-piece{width:100%;height:100%}
}
@media(min-width:951px){
 /* A separate layout row prevents resource-specific baselines pulling the strip into the name. */
 .faithful-target[data-desktop-view='tabletop'] #worlds .world .caption{display:flex;flex-direction:column;align-items:center;gap:0}
 .faithful-target[data-desktop-view='tabletop'] #worlds .world .caption>strong{flex:none}
 .faithful-target[data-desktop-view='tabletop'] #worlds .world .caption>.world-meta{flex:none;margin:2px auto 0}
}
/* Desktop metadata readability; mobile and Living Cosmos keep their existing sizing. */
@media(min-width:951px) and (min-height:501px){
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta{
  height:auto;min-height:36px;padding:5px 10px;gap:7px 8px;max-width:100%;font-size:14px;line-height:18px;flex-wrap:wrap;
 }
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .world-yield{font-size:14px;line-height:18px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .sw-symbol{width:22px;height:22px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .yield-choice{font-size:11px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .yield-choice .sw-symbol{width:14px;height:14px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta :is(.mini-colonies,.mini-vehicles){flex-wrap:wrap;justify-content:center;gap:5px;min-width:0;max-width:100%}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .mini-piece>.painted-piece{width:25px;height:25px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .infrastructure-role :is(svg,img){width:18px;height:18px}
 body.desktop-play.faithful-target:not(.phone-faithful-active)[data-desktop-view='tabletop'] #worlds .world-meta .role-empty{font-size:12px}
}
