/* STELLAR EMPIRE 0.5 – crisp scalable sector-specific visual identity. */
.stellar-building-art,.stellar-ship-art{
  display:block;position:relative;width:100%;isolation:isolate;
  overflow:hidden;
  background:radial-gradient(ellipse at 45% 40%,#3e6183,#101a34 72%);
  border:1px solid #5e7898;border-radius:11px;
  box-shadow:0 7px 25px #0008,inset 0 0 20px #9fdef61c;
}
.stellar-building-art svg,.stellar-ship-art svg{
  display:block;width:100%;height:100%;
  object-fit:cover;shape-rendering:geometricPrecision;
  filter:drop-shadow(0 1px 5px #0004);
}
.stellar-building-art::after,.stellar-ship-art::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(145deg,#ffffff10,transparent 35%,#0000001b);
}
.stellar-building-art[data-sector="mining"]{border-color:#b79069}
.stellar-building-art[data-sector="research"]{border-color:#a08be9}
.stellar-building-art[data-sector="city"]{border-color:#6bb5b6}
.stellar-building-art[data-sector="industry"]{border-color:#96abbf}
.stellar-building-art[data-sector="space"]{border-color:#70bfef}
.stellar-building-art[data-sector="defense"]{border-color:#d89a94}
.stellar-illustrated-card{
 display:flex!important;
 flex-direction:column;
 align-items:stretch!important;
 justify-content:flex-start!important;
 gap:7px;
 padding:8px!important;
 text-align:left;
 min-height:0!important;
}
.stellar-illustrated-card .stellar-building-art{
 height:clamp(92px,13vh,145px);
 flex:none;
 transition:filter .18s,transform .18s;
}
.stellar-illustrated-card:hover .stellar-building-art{
 filter:brightness(1.14) saturate(1.1);
}
.stellar-illustrated-card .bicon{display:none!important}
.stellar-illustrated-card .bname{
 font-size:clamp(12px,1.1vw,16px)!important;
 line-height:1.15;
}
.stellar-illustrated-card small{
 color:#b2cfe1;
 line-height:1.4;
 max-height:3.9em;
 overflow:hidden;
 font-size:11px!important;
}
.stellar-illustrated-card .level{color:#f4cb84;font-size:10px}
.stellar-modal-art{width:100%;max-width:100%;flex:none}
.stellar-modal-art .stellar-building-art,
.stellar-modal-art .stellar-ship-art{
 height:clamp(175px,28vh,285px);
 width:100%;border-radius:12px;
}
.stellar-ship-catalog{display:flex;flex-direction:column;gap:8px}
.stellar-ship-catalog .stellar-ship-art{
 height:clamp(105px,14vh,175px);
 flex:none;border-color:#83afc2
}
.stellar-ship-catalog .card-head{padding:1px 0}
.stellar-ship-catalog .card-detail{font-size:11px;color:#c5d8e3}
.stellar-ship-catalog:hover .stellar-ship-art{border-color:#f4d5a1;filter:brightness(1.07)}
.stellar-vessel-gallery .stellar-ship-art{height:148px}
.stellar-lab-preview{width:100%;height:170px;margin-bottom:10px}
.stellar-lab-preview .stellar-building-art{height:100%;width:100%}
.stellar-mining-receipt{margin:10px 0}
.stellar-mining-receipt .stellar-building-art{height:156px}
.stellar-sector-preview{padding:0;overflow:hidden}
.stellar-sector-preview .stellar-building-art{height:180px;border:0;border-radius:10px}
.stellar-feature-card{display:flex;flex-direction:column;gap:10px}
.stellar-feature-card h3{font-size:16px}
.stellar-ship-showcase{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;
}
.stellar-ship-showcase-card{
 display:flex;flex-direction:column;gap:9px;
 padding:10px;border:1px solid #526b87;
 background:linear-gradient(130deg,#22344e,#121f34);
 border-radius:11px;
}
.stellar-ship-showcase-card .stellar-ship-art{height:145px}
.stellar-ship-showcase-card strong{font-size:14px}
.stellar-ship-showcase-card small{font-size:11px;color:#a9c3d8}
.stellar-ship-showcase-card .pill{align-self:flex-start}
@media(max-width:760px){
 .stellar-illustrated-card .stellar-building-art{height:98px}
 .stellar-illustrated-card .bname{font-size:12px!important}
 .stellar-modal-art .stellar-building-art,.stellar-modal-art .stellar-ship-art{
  height:170px;
 }
 .stellar-ship-catalog .stellar-ship-art{height:115px}
 .stellar-mining-receipt .stellar-building-art{height:130px}
 .stellar-sector-preview .stellar-building-art{height:150px}
 .stellar-ship-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .stellar-ship-showcase-card .stellar-ship-art{height:100px}
}

.stellar-moon-art{width:100%}
.stellar-moon-art .stellar-building-art{width:100%;height:150px;border-color:#b49aca}
.stellar-defense-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.stellar-defense-list .stellar-feature-card{padding:8px;border:1px solid #526b89;border-radius:10px;background:#12263c}
.stellar-defense-list .stellar-building-art{height:140px}
.stellar-defense-list .row-item{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stellar-ship-choice .stellar-ship-art{height:85px;margin-bottom:7px}
@media(max-width:760px){
 .stellar-moon-art .stellar-building-art{height:110px}
 .stellar-defense-list .stellar-building-art{height:100px}
 .stellar-ship-choice .stellar-ship-art{height:76px}
}
