#game #hud #activeOrders {
  background: #243e31;
  border-color: #a58b54;
  color: #ffe9b4;
  box-shadow: none;
}
#game #hud #activeOrders .orders-art { background: none; }
#game #hud #clock::before { background-image: url('./assets/hud-clock-v3.png'); }
#game #hud #energyMeter {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 2px;
  color: #ffe7a4;
  overflow: visible;
}
#game #hud #energyMeter > span {
  display: block;
  color: #ffe7a4;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
#game #hud #energyMeter > i {
  width: 100%;
  height: 19px;
  background: url('./assets/hud-energy-v3.png') center/100% 100% no-repeat;
}
#game #hud #energyMeter > i > b { top: 36%; height: 28%; }
#game #hud .clock, body.phone.tablet #game #hud .clock {
  grid-template-columns: auto minmax(30px,1fr) 78px auto;
}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud .clock {
  grid-template-columns: minmax(0,1fr) 42px 59px auto;
}
body.handset-landscape #game #hud .clock {
  grid-template-columns: minmax(0,1fr) 23px 53px auto;
}
body.handset-landscape #game #hud #energyMeter > span { font-size: 10px; }
body.handset-landscape #game #hud #energyMeter > i { height: 15px; }
body.phone.tablet #game #hud #energyMeter,
body.handset-landscape #game #hud #energyMeter,
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud #energyMeter { width: 100%; }
#game #hud #energyMeter > i,
body.phone.tablet #game #hud #energyMeter > i,
body.handset-landscape #game #hud #energyMeter > i { width: 100%; }
#game #dock .rush-dock-art { display: block; width: 28px; height: 28px; object-fit: contain; }
.rush-contract { display: flex; gap: 12px; align-items: center; }
.rush-portrait { width: 70px; height: 84px; object-fit: contain; flex: none; }
.order-group { margin-block: 10px; }
.order-group > summary {
  cursor: pointer;
  padding: 9px 12px;
  color: #315442;
  font-weight: 700;
}
#game #dialog #dialogBody:has(.avatar-story) {
  width: min(820px, 94%);
  margin: 0;
  align-self: center;
}
#game #dialog .avatar-story {
  display: grid;
  grid-template-columns: clamp(64px, 12vw, 114px) minmax(0,1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 12px 18px;
  padding: 0 !important;
  min-height: 0;
}
#game #dialog .speaker-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  border: 2px solid #c6a164;
  border-radius: 8px;
  background: #284738;
  grid-column: 1;
  grid-row: 1;
}
#game #dialog .avatar-story .story-speech {
  grid-column: 2;
  grid-row: 1;
  min-height: 100px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 2vw, 23px);
}
#game #dialog .avatar-story .story-speech::before { display: none; }
#game #dialog .avatar-story .dialog-actions { grid-column: 2; grid-row: 2; margin: 0; }
#game #dialog .avatar-story > .mini { grid-column: 2; grid-row: 3; }
@media (max-width: 700px) {
  #game #dialog .avatar-story { column-gap: 9px; }
  #game #dialog .avatar-story .dialog-actions { grid-column: 1/-1; }
}

#game .speaker-avatar,#game .avatar-choice img,#game .avatar-selected img,#game .manager-portrait,#game #portrait {image-rendering:auto}
