.battle-list:empty {
  min-height: 20px;
}
.battle-row {
  padding: 5px 6px;
  min-height: 39px;
}
.battle-row.active {
  border: 2px solid #ed765e;
  background: #522f28;
  box-shadow: inset 3px 0 #ffb18a;
}
.battle-row.active strong {
  color: #fff0da;
}
.battle-row progress {
  accent-color: #adbd85;
  height: 4px;
}
.battle-row.active progress {
  accent-color: #ef936d;
}
.friends-add {
  margin: 4px 0 6px auto;
  display: block;
}
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-nick {
  padding: 4px 6px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 12px;
  min-height: 26px;
}
.friend-nick.online {
  color: #8fd7a2;
}
.friend-nick.offline {
  color: #858d88;
}
.friend-nick:hover {
  background: #ffffff09;
}
.icon-only {
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 2px;
  font-size: 17px;
}
.equipment-content {
  position: relative;
}
.food-status {
  position: absolute;
  left: 6px;
  top: 155px;
  font-size: 10px;
  color: #b4cc93;
}
.food-status.hungry {
  color: #ca997d;
}
.bag-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 2px 4px;
}
.bag-toolbar .active {
  color: #b5d993;
  border-color: #7c9769;
}
.bind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.bind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 290px;
  overflow-y: auto;
  padding: 12px 0;
}
.bind-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 54px;
}
.bind-choice svg,
.bind-choice .physical-item {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.bind-choice.active,
.bind-tabs .active,
.dialog-tabs .active {
  border-color: #b7a277;
  background: #394537;
}
.bind-choice span {
  font-size: 12px;
}
#bind-preview {
  padding: 12px 0;
  min-height: 45px;
}
#bind-preview small {
  display: none;
}
.autoloot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  max-height: 400px;
  overflow: auto;
  margin: 12px 0;
}
.loot-choice {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid #66745940;
}
.loot-choice .physical-item {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.loot-choice span {
  font-size: 11px;
}
.loot-choice input {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.trade-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-top: 12px;
}
.trade-catalog {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
#trade-items {
  overflow: auto;
  max-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 5px;
}
.trade-item .physical-item {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.trade-item > span:not(.physical-item) {
  flex: 1;
  font-size: 12px;
}
.trade-item small {
  color: #aeb596;
}
.trade-item.active {
  background: #394737;
  border-color: #bdab77;
}
.trade-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.trade-hero .physical-item {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.trade-hero h3 {
  font-size: 22px;
}
.trade-facts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 13px;
}
.trade-facts dt {
  color: #9ea78e;
}
.trade-facts dd {
  margin: 0;
  color: #e3d5ad;
}
.trade-amount {
  display: flex;
  gap: 5px;
  margin: 6px 0;
}
.trade-amount input {
  min-width: 0;
  width: 100%;
}
.trade-amount button {
  width: 37px;
  flex-shrink: 0;
  font-size: 20px;
}
.trade-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
#trade-receipt {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #c1d4a0;
  line-height: 1.5;
}
.trade-actions button {
  padding: 10px;
}
.food-item {
  background-image: url("/assets/hd/food.png");
  background-size: 400% 200%;
}
.mini-stairs-legend {
  font-size: 8px;
  display: flex;
  gap: 7px;
  color: #a9b4a9;
}
.mini-stairs-legend .up {
  color: #79d4dc;
}
.mini-stairs-legend .down {
  color: #e0ae70;
}
@media (max-width: 600px) {
  .bind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .autoloot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trade-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #trade-items {
    max-height: 160px;
  }
  .trade-hero {
    margin-bottom: 5px;
  }
  .trade-facts {
    margin-bottom: 8px;
  }
  .trade-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }
  .trade-hero h3 {
    font-size: 18px;
  }
}

@media (max-width: 850px) {
  .touch-pad {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    gap: 2px;
    align-items: center;
  }
  .touch-pad button {
    width: 32px;
    height: 30px;
    margin: 0;
    font-size: 16px;
  }
  .touch-pad > span {
    color: #c8cdb4;
  }
}
