/* STELLAR EMPIRE v0.5.9 – five user-supplied command tile illustrations.
 * The existing full-surface button, its action and dynamic live values remain.
 * CSS loaded after all previous styles. Images are decorative, not hit targets.
 */
.game .screen.empire-dashboard>.home-action-grid>.home-action-art{
  --action-accent:#67d4ec;
  box-sizing:border-box!important;
  isolation:isolate;
  overflow:hidden!important;
  position:relative!important;
  padding:5px 9px!important;
  border-radius:11px!important;
  background:#0b1a31!important;
  border:1px solid var(--action-accent)!important;
  color:#edf8ff!important;
  box-shadow:inset 0 1px #efffff1d,0 2px 8px #0008!important;
  text-align:left!important;
  align-content:center!important;
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:6px!important;
  row-gap:0!important;
  transition:border-color .18s,box-shadow .18s,transform .18s!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art[data-panel="overview"]{--action-accent:#3be4f4}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art[data-panel="economy"]{--action-accent:#3fddc7}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art[data-panel="construction"]{--action-accent:#ffb84c}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art[data-panel="defense"]{--action-accent:#50baff}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art[data-panel="moons"]{--action-accent:#c977ed}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-backdrop{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  object-fit:cover!important;
  object-position:center 47%!important;
  border:0!important;
  border-radius:inherit!important;
  opacity:1!important;
  filter:brightness(.96) saturate(1.08)!important;
  pointer-events:none!important;
  z-index:0;
  user-select:none;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art::before{
  content:"";
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  z-index:1;
  pointer-events:none!important;
  background:linear-gradient(90deg,#0514296b 0%,#08142661 26%,#091629a9 72%,#071222ad 100%),
             linear-gradient(0deg,#031021eb 0%,#06152a8a 42%,transparent 90%);
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-icon{
  grid-column:1!important;
  grid-row:1/3!important;
  place-self:center!important;
  display:grid!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:0!important;
  border:none!important;
  background:transparent!important;
  pointer-events:none!important;
  z-index:2;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-symbol{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  pointer-events:none!important;
  filter:drop-shadow(0 1px 6px #001429bb);
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art strong,
.game .screen.empire-dashboard>.home-action-grid>.home-action-art small{
  display:block!important;
  position:relative!important;
  grid-column:2!important;
  max-width:100%!important;
  width:100%;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
  text-shadow:0 2px 5px #000e,0 0 10px #000a!important;
  z-index:2;
  min-width:0!important;
  font-style:normal!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art strong{
  grid-row:1!important;
  align-self:end!important;
  line-height:1.2!important;
  font-size:clamp(10px,.86vw,13px)!important;
  font-weight:900!important;
  color:#f8fcff!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art small{
  grid-row:2!important;
  align-self:start!important;
  margin-top:2px!important;
  line-height:1.15!important;
  font-size:clamp(8px,.68vw,10px)!important;
  font-weight:640!important;
  color:#d6e5f2!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-arrow{
  display:none!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art:hover,
.game .screen.empire-dashboard>.home-action-grid>.home-action-art:focus-visible{
  border-color:#d2fbff!important;
  box-shadow:0 0 20px color-mix(in srgb,var(--action-accent) 52%,transparent)!important;
  transform:translateY(-1px)!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art:hover .home-action-backdrop{
  filter:brightness(1.12) saturate(1.12)!important;
}
.game .screen.empire-dashboard>.home-action-grid>.home-action-art:focus-visible{
  outline:2px solid white!important;
  outline-offset:2px;
}
/* Desktop uses one row of five, with sufficient image surface to read the art.
   Height caps respect the existing no-scroll viewport layout. */
@media(min-width:761px){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art{
   min-height:65px!important;
   height:clamp(65px,9.2vh,88px)!important;
 }
}
@media(min-width:761px) and (max-width:1190px){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art{
   padding:4px 5px!important;
   grid-template-columns:26px minmax(0,1fr)!important;
   gap:4px!important;
   min-height:60px!important;
   height:clamp(60px,8.2vh,74px)!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-icon{
   width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art strong{
   font-size:clamp(9px,1.02vw,11px)!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art small{
   font-size:8px!important;
 }
}
/* Mobile stays three tiles over two tiles, touch targets remain entire tile. */
@media(max-width:760px){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art{
   min-height:55px!important;
   height:55px!important;
   padding:5px 5px!important;
   grid-template-columns:24px minmax(0,1fr)!important;
   grid-template-rows:minmax(0,1fr)!important;
   gap:4px!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-backdrop{
   object-position:center!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art::before{
   background:linear-gradient(90deg,#04132bd0 0%,#041b30a5 36%,#061327a2 100%)!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-icon{
   grid-column:1!important;
   grid-row:1!important;
   width:24px!important;height:24px!important;
   min-width:24px!important;min-height:24px!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art strong{
   grid-column:2!important;grid-row:1!important;
   align-self:center!important;
   font-size:clamp(9px,2.8vw,12px)!important;
   line-height:1.16!important;
   white-space:normal!important;
   display:-webkit-box!important;
   -webkit-line-clamp:2!important;
   -webkit-box-orient:vertical!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art small{
   display:none!important;
 }
}
@media(max-width:760px) and (max-height:720px){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art{
   min-height:49px!important;height:49px!important;padding:3px 4px!important;
   grid-template-columns:20px minmax(0,1fr)!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-icon{
   width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
 }
}
@media(max-width:760px) and (max-height:600px){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art{
   min-height:39px!important;height:39px!important;
   grid-template-columns:18px minmax(0,1fr)!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-icon{
   width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
 }
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art strong{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art,
 .game .screen.empire-dashboard>.home-action-grid>.home-action-art .home-action-backdrop{
   transition:none!important;
 }
}
