/* STELLAR EMPIRE v0.6.4 – actual full-bleed photo with live legible data.
 * The original resource button and scope/filter actions are untouched.
 * This override MUST load after v061: replace miniature icon layout, no clipping.
 */

/* 10 columns (desktop); the game’s 5-by-2 mobile layout is preserved. */
@media(min-width:761px){
.game .screen.empire-dashboard>#resourceStripInline{
  height:138px!important; min-height:138px!important;max-height:138px!important;
  flex:0 0 138px!important;
  padding:5px 7px 7px!important;
  gap:5px!important;
}
.game .screen.empire-dashboard>#resourceStripInline>.resource-rail{
  display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;height:auto!important;
  flex:1 1 0!important;min-height:0!important;
  gap:6px!important;padding:0!important;
  overflow:visible!important;
}
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile{
  position:relative!important;isolation:isolate!important;
  display:block!important;
  flex:none!important;
  min-width:0!important;width:100%!important;height:100%!important;
  min-height:0!important;max-height:100%!important;
  padding:0!important;overflow:hidden!important;
  border-radius:9px!important;
  background:#071426!important;
  box-shadow:inset 0 1px #c2e7ff25,0 4px 14px #0007!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile>.resource-photo-background{
  display:block!important;
  position:absolute!important;inset:0!important;
  top:0!important;bottom:0!important;left:0!important;right:0!important;
  width:100%!important;height:100%!important;
  max-height:none!important;min-height:100%!important;
  object-fit:cover!important;object-position:center!important;
  opacity:1!important;padding:0!important;margin:0!important;
  border-radius:0!important;
  filter:brightness(.96) saturate(1.08) contrast(1.06)!important;
  transform:scale(1.01)!important;z-index:0!important;
  pointer-events:none!important;
}
/* Place a readable dark backing underneath all three lines of LIVE text.
   The art itself fills the entire rectangle from corner to corner. */
.game .screen.empire-dashboard>#resourceStripInline .resource-tile::after{
  content:""!important;display:block!important;
  position:absolute!important;inset:0!important;
  background:linear-gradient(180deg,
    #03122205 0%,#04122316 25%,#030d1f88 44%,
    #020a1bdc 57%,#010818f5 84%,#010714fc 100%)!important;
  border-radius:inherit!important;
  z-index:1!important;pointer-events:none!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile::before{z-index:2!important}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile>.res-v060-iconwrap,
.game .screen.empire-dashboard>#resourceStripInline .resource-tile>.res-symbol{
  display:none!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile>.res-data{
  position:absolute!important;
  top:auto!important;bottom:0!important;left:0!important;right:0!important;
  box-sizing:border-box!important;
  z-index:3!important;
  display:flex!important;flex-direction:column!important;
  justify-content:flex-end!important;align-items:center!important;
  gap:1px!important;
  height:auto!important;
  width:100%!important;min-width:0!important;
  min-height:0!important;max-height:100%!important;
  flex:none!important;
  margin:0!important;
  padding:5px 4px 8px!important;
  background:transparent!important;border:0!important;
  overflow:visible!important;
  text-align:center!important;
  text-shadow:0 1px 5px #000,0 2px 8px #000!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-name{
  display:block!important;box-sizing:border-box!important;
  font-size:clamp(10px,.72vw,13px)!important;
  font-weight:850!important;line-height:1.15!important;
  width:100%!important;min-height:0!important;
  white-space:nowrap!important;overflow:visible!important;
  text-overflow:clip!important;
  color:#f8faff!important;text-align:center!important;
  text-shadow:0 2px 6px #000,0 0 8px #03152f!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-amount{
  display:block!important;box-sizing:border-box!important;
  font-size:clamp(11px,.98vw,17px)!important;line-height:1.16!important;
  font-weight:950!important;letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums!important;
  width:100%!important;white-space:nowrap!important;
  overflow:visible!important;text-overflow:clip!important;
  color:#fff!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate{
  display:block!important;box-sizing:border-box!important;
  font-size:clamp(10px,.71vw,13px)!important;line-height:1.18!important;
  font-weight:850!important;
  width:100%!important;max-width:none!important;
  white-space:nowrap!important;overflow:visible!important;
  color:#91c2e3!important;
}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate.positive{color:#91ffbd!important}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate.negative{color:#ff9cb3!important}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate.zero{color:#adbed7!important}
.game .screen.empire-dashboard>#resourceStripInline .resource-tile:hover>.resource-photo-background{
  filter:brightness(1.08) saturate(1.12) contrast(1.04)!important;
}

/* Other resource panels get the same full-bleed photo and readable dark fade. */
.game .resource-strip:not(#resourceStripInline) .resource-tile>.resource-photo-background{
  object-fit:cover!important;width:100%!important;height:100%!important;
}
.resources-fit-card>.resource-photo-background{object-fit:cover!important}
.overview-resource-card>.resource-photo-background{object-fit:cover!important}

/* On phones five tiles per row (two rows), with all lines INSIDE each tile. */
@media(max-width:760px){
 .game .screen.empire-dashboard>#resourceStripInline{
   height:162px!important;min-height:162px!important;max-height:162px!important;
   flex:0 0 162px!important;
   padding:4px 5px 6px!important;gap:4px!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline>.resource-rail{
   display:grid!important;
   grid-template-columns:repeat(5,minmax(0,1fr))!important;
   grid-template-rows:repeat(2,minmax(0,1fr))!important;
   gap:4px!important;
   flex:1 1 0!important;
   height:auto!important;min-height:0!important;max-height:none!important;
   padding:0!important;overflow:hidden!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile>.res-data{
   padding:3px 1px 5px!important;gap:0!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-name{
   font-size:clamp(8px,2.25vw,11px)!important;
   line-height:1.14!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-amount{
   font-size:clamp(9px,2.65vw,12px)!important;
   line-height:1.16!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate{
   font-size:clamp(8px,2.15vw,10px)!important;
   line-height:1.15!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile::after{
   background:linear-gradient(180deg,#010b1805 0%,#020b171b 20%,#020b1ab8 35%,#020815ef 67%,#010715fc 100%)!important;
 }
}
@media(max-width:760px) and (max-height:640px){
 .game .screen.empire-dashboard>#resourceStripInline{
   height:137px!important;min-height:137px!important;max-height:137px!important;
   flex-basis:137px!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-name{
   font-size:clamp(8px,2vw,10px)!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-amount{
   font-size:clamp(9px,2.4vw,11px)!important;
 }
 .game .screen.empire-dashboard>#resourceStripInline .resource-tile .res-rate{
   font-size:clamp(8px,1.95vw,9px)!important;
 }
}


/* v099: resource-dialog diagnosis – simulator based energy and staffing loss. */
.resource-shortage-details{
 display:grid;gap:11px;
 margin:11px 0 13px;
 padding:13px 14px;
 background:linear-gradient(125deg,#142b44,#17213d);
 border:1px solid #6483a4;
 border-radius:12px;
 color:#e2effb;
}
.resource-shortage-title{
 display:flex;gap:6px 14px;flex-wrap:wrap;
 justify-content:space-between;align-items:baseline;
}
.resource-shortage-title h4{
 color:#e4f6ff;font-size:14px;font-weight:850;
 margin:0;letter-spacing:.015em;
}
.resource-shortage-title small{font-size:11px;color:#afc9df}
.resource-shortage-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
.resource-shortage-card{
 display:grid;gap:8px;min-width:0;
 padding:11px 12px;background:#0b1c33a6;
 border:1px solid #60869a;border-radius:10px;
}
.resource-shortage-card.is-shortage{
 border-color:#c48a66;
 background:linear-gradient(125deg,#422a33,#222943);
}
.resource-shortage-card-head{
 display:flex;justify-content:space-between;align-items:center;
 flex-wrap:wrap;gap:4px 8px;
}
.resource-shortage-card-head strong{color:#f3fbff;font-size:13px}
.resource-shortage-card-head span{font-size:11px;font-weight:700}
.resource-shortage-card .negative{color:#ffb7a2}
.resource-shortage-card .positive{color:#a3f5d3}
.resource-shortage-counts{
 font-variant-numeric:tabular-nums;font-size:12px;color:#c4d7e9;
}
.resource-shortage-counts strong{color:#fff;font-size:19px}
.resource-shortage-meter{
 height:8px;background:#263a57;border-radius:20px;overflow:hidden;
 box-shadow:inset 0 1px 3px #0005;
}
.resource-shortage-meter span{
 display:block;height:100%;background:#51c3a1;border-radius:inherit;
}
.resource-shortage-card.is-shortage .resource-shortage-meter span{
 background:#f5a65d;
}
.resource-shortage-card>small{
 font-size:11px;color:#cbd8e8;line-height:1.45;
}
.resource-shortage-impact,
.resource-shortage-healthy{
 display:grid;gap:5px;
 padding:10px 12px;border-radius:9px;
 background:#2d2d458a;border:1px solid #997f9a;
}
.resource-shortage-impact strong{color:#ffc5b5;font-size:16px}
.resource-shortage-impact span,
.resource-shortage-healthy span{font-size:12px;line-height:1.55;color:#e3eafa}
.resource-shortage-impact small,
.resource-shortage-healthy small{font-size:11px;line-height:1.5;color:#b9c9df}
.resource-shortage-healthy{background:#183c3988;border-color:#488f7c}
.resource-shortage-healthy span{color:#a9ffe0;font-weight:700}
@media(max-width:620px){
 .resource-shortage-details{padding:11px 9px}
 .resource-shortage-grid{grid-template-columns:1fr}
 .resource-shortage-counts strong{font-size:17px}
}
