[hidden] {
  display: none !important;
}
footer {
  align-items: end;
}
#tray {
  overflow-x: auto;
  justify-content: flex-start;
  max-width: calc(calc(100 * var(--game-vw)) - 470px);
  padding: 5px 3px;
  scrollbar-width: thin;
  scrollbar-color: #c4bb82 #284535;
}
#tray button {
  flex-shrink: 0;
  min-width: 80px;
}
.tray-message {
  padding: 18px;
  color: #dce8c5;
  font-size: 12px;
  text-shadow: 0 2px 3px #234;
}
.tools {
  min-width: 150px;
}
.tools #army {
  background: #efe5bd;
  color: #243d2d;
  font-weight: 700;
}
.difficulty-label {
  font-size: 9px;
  color: #d9e5cb;
  display: grid;
  gap: 4px;
  letter-spacing: 1px;
}
select {
  font:
    11px "DM Sans",
    sans-serif;
  background: #203c2e;
  color: #fff9dc;
  border: 1px solid #ffffff26;
  border-radius: 6px;
  padding: 6px;
}
.battle-tools {
  position: fixed;
  right: 28px;
  top: 125px;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.battle-tools button {
  font-size: 11px;
  padding: 9px 12px;
}
#heroAbilities {
  display: flex;
  gap: 6px;
  max-width: 400px;
  flex-wrap: wrap;
  justify-content: end;
}
#heroAbilities .asset-icon {
  width: 22px;
  height: 22px;
}
#endRaid {
  background: #783f38;
}
#trayTabs {
  position: fixed;
  bottom: 137px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
#trayTabs button {
  padding: 7px 25px;
  font-size: 11px;
}
#trayTabs button.active {
  background: #dfc77a;
  color: #25382a;
}
dialog {
  max-height: calc(88 * var(--game-vh));
  overflow-y: auto;
}
dialog.wide-dialog {
  max-width: 1100px;
  width: calc(90 * var(--game-vw));
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  position: sticky;
  top: -31px;
  background: #203b2ff5;
  z-index: 2;
  padding: 12px 0;
}
.dialog-heading h2 {
  margin: 3px 0;
  font: 700 28px Outfit;
}
.dialog-heading p {
  margin: 5px 0;
}
.dialog-heading > button {
  font-size: 22px;
  padding: 4px 13px;
}
.dialog-note {
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-row button {
  padding: 8px 15px;
  font-size: 12px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.catalog-grid > button,
.army-card {
  background: #2c4939;
  border: 1px solid #ffffff1c;
  border-radius: 13px;
  padding: 15px;
  text-align: center;
}
.catalog-grid strong {
  display: block;
  font: 600 15px Outfit;
}
.catalog-grid small {
  display: block;
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 5px;
}
.catalog-grid span {
  display: block;
  font-size: 12px;
  color: #ebca82;
  margin-top: 9px;
}
.catalog-art {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-art .asset-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.army-card p {
  font-size: 10px;
  line-height: 1.5;
  margin: 9px 0;
  color: #cad7c0;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.stepper button {
  padding: 4px 11px;
  font-size: 20px;
}
.stepper output {
  min-width: 20px;
  font: 600 20px Outfit;
}
.inspect-art {
  text-align: center;
}
.inspect-art .asset-icon {
  width: 100px;
  height: 100px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.asset-grid figure {
  margin: 0;
  background: #2b4737;
  padding: 8px;
  border-radius: 10px;
}
.asset-grid .asset-icon {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
.asset-grid figcaption {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.asset-grid small {
  display: block;
  font-size: 8px;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 5px;
}
.result-stars {
  font-size: 55px;
  letter-spacing: 8px;
  color: #e4bd66;
  text-align: center;
}
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.result-actions .primary {
  font-size: 15px;
}
@media (max-width: 800px) {
  #tray {
    max-width: calc(calc(100 * var(--game-vw)) - 20px);
  }
  #trayTabs {
    bottom: 195px;
  }
  .tools {
    min-width: 120px;
  }
  .difficulty-label {
    display: none;
  }
  footer .actions {
    display: grid;
    gap: 5px;
  }
  footer .tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tools #army {
    font-size: 12px;
    padding: 8px;
  }
  .tools #build {
    font-size: 12px;
    padding: 8px;
  }
  .battle-tools {
    top: 136px;
    right: 10px;
  }
  #heroAbilities {
    max-width: 220px;
  }
  .battle-tools button {
    font-size: 9px;
  }
  dialog.wide-dialog {
    width: calc(96 * var(--game-vw));
    padding: 18px;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .status {
    max-width: calc(90 * var(--game-vw));
  }
  .catalog-art {
    height: 65px;
  }
  .catalog-art .asset-icon {
    height: 65px;
  }
  .toast {
    bottom: 230px;
  }
}
