/* Внешняя отделка панели: прежние показатели, порядок и действия. */
#topbar {
  background: #162023f5;
  border-bottom-color: #50615b;
  box-shadow: 0 1px 0 #c7d5b507, 0 8px 24px #070e1226;
}
#topbar .topline {
  background: linear-gradient(100deg, #1c2829d9, #172125);
  border-bottom-color: #b3c9bc0e;
}
#topbar .breadcrumb > .location-icon { color: #91a89e; }
#topbar .breadcrumb > span { color: #98aaa5; }
#topbar .breadcrumb > strong { color: #e0e6dc; font-weight: 550; }
#topbar .breadcrumb > i { color: #597168; }
#topbar .date-label { color: #a5b6af; }
#topbar .date-label > .ico { color: #d2af74; }
#topbar .date-label > b {
  color: #e0e6da;
  font-variant-numeric: tabular-nums;
  border-color: #637a6e45;
}
#topbar .day-pill {
  background: #93b39d0c;
  border-color: #809e8040;
  color: #bdcbb9;
  border-radius: 5px;
}
#topbar .header-quests {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #b7c69c2b;
  border-radius: 6px;
  background: linear-gradient(#d2c58b0b, #d2c58b04);
  color: #d0d6bd;
  box-shadow: inset 0 1px #e8eac407;
}
#topbar .header-quests:hover,
#topbar .header-quests.active {
  border-color: #c5aa6973;
  background: #b6a66917;
  color: #f0d59e;
}
#topbar .header-quests .ico { color: #b8be93; }
#topbar .resources {
  column-gap: 6px;
  padding: 13px 18px;
  background: radial-gradient(ellipse at 9% 0, #c3a26b0c, transparent 48%),
    linear-gradient(110deg, #1b2729, #182326);
}
#topbar .cash-resource,
#topbar .rep-resource,
#topbar .hud-vital,
#topbar .heat-resource {
  min-height: 68px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #a9c1ae13;
  border-radius: 8px;
  background: linear-gradient(150deg, #b7cbbb0a, #b7cbbb03);
  box-shadow: inset 0 1px #edf4d804;
}
#topbar .cash-resource {
  gap: 9px;
  border-color: #c8a36c36;
  background: linear-gradient(120deg, #c8a36c13, #c8a36c05);
}
#topbar .resource-icon {
  width: 32px;
  height: 32px;
  border-color: #d9b4753b;
  border-radius: 8px;
  background: linear-gradient(140deg, #c3a3671f, #c3a36706);
  color: #dfbf87;
  box-shadow: inset 0 1px #ffe4b410;
}
#topbar .resource-icon .ico { width: 18px; height: 18px; }
#topbar .rep-icon {
  color: #acbeb3;
  border-color: #a2c5ad2b;
  background: linear-gradient(140deg, #b5c9b515, #b5c9b503);
}
#topbar .cash-resource > div > span,
#topbar .rep-resource > span > small {
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 450;
  color: #aebdb2;
}
#topbar .cash-resource strong {
  color: #f3d49f;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.5px;
  text-shadow: 0 1px 10px #d8ab5b0f;
}
#topbar .cash-add {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  min-width: 23px;
  height: 23px;
  margin: 0 0 0 auto;
  border-color: #b5a67b4d;
  border-radius: 6px;
  background: #d5c5970b;
  color: #e6cb98;
  font-size: 18px;
  line-height: 1;
}
#topbar .cash-add:hover {
  background: #d4b46d28;
  border-color: #d6b472;
  box-shadow: 0 0 0 3px #d6b4720a;
}
#topbar .rep-resource { gap: 9px; }
#topbar .rep-resource strong {
  font-size: 1.25rem;
  font-weight: 650;
  color: #e1e8dd;
}
#topbar .rep-resource strong em { font-size: .6875rem; color: #8fa59b; }
#topbar .vital-label {
  font-size: .75rem;
  line-height: 1.35;
  color: #b8c5bc;
}
#topbar .vital-label > .ico {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  color: #e0b675;
}
#topbar .health .vital-label > .ico { color: #a3c7af; }
#topbar .hunger .vital-label > .ico { color: #d8b68b; }
#topbar .vital-label b {
  display: block;
  float: none;
  margin: 4px 0 7px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 650;
  color: #ecede2;
}
#topbar .vital-label b small {
  font-size: .6875rem;
  font-weight: 400;
  color: #829c90;
  margin-left: 3px;
}
#topbar .hud-vital .progress {
  height: 4px;
  margin-top: 0;
  background: #9fbaa718;
}
#topbar .hud-vital .progress > span { border-radius: inherit; }
#topbar .hud-vital .progress.gold > span { background: linear-gradient(90deg, #b68c51, #edc17c); }
#topbar .hud-vital .progress.green > span { background: linear-gradient(90deg, #6b9d86, #b1d1b3); }
#topbar .hud-vital .progress.orange > span { background: linear-gradient(90deg, #aa855e, #e1be90); }
#topbar .rep-resource:hover,
#topbar .hud-vital:hover,
#topbar .heat-resource:hover {
  border-color: #b6cfaa45;
  background: linear-gradient(150deg, #b7cbbb12, #b7cbbb08);
  box-shadow: inset 0 1px #edf4d80b, 0 2px 8px #08100b15;
}
#topbar .hud-vital:hover .vital-label { color: #d7dfce; }
#topbar .hud-vital:hover b { color: #f4f0db; }
#topbar .hud-vital.is-low {
  border-color: #d8957133;
  background: linear-gradient(145deg, #c7846014, #c7846005);
}
#topbar .hud-vital.is-low b,
#topbar .hud-vital.is-low .vital-label > .ico { color: #e9ad8b; }
#topbar .hud-vital.is-low .progress { background: #bb765c1c; }
#topbar .hud-vital.is-low .progress > span { background: linear-gradient(90deg, #ad7359, #e6a484); }
#topbar .heat-resource > span:first-child {
  gap: 5px;
  font-size: .75rem;
  line-height: 1.1;
  color: #b0c0b5;
}
#topbar .heat-resource > span:first-child > .ico { width: 12px; height: 12px; color: #9fb4a6; }
#topbar .heat-resource > span > b { font-size: .6875rem; color: #8fa497; }
#topbar .heat-stars { gap: 4px; margin: 7px 0 4px; }
#topbar .heat-stars .ico { width: 14px; height: 14px; color: #587166; }
#topbar .heat-stars .lit {
  color: #d5b46d;
  fill: #d5b46d;
  filter: drop-shadow(0 0 4px #d5b46d16);
}
#topbar .heat-resource > small { font-size: .6875rem; line-height: 1.2; color: #94aa9a; }
#topbar .heat-resource.danger {
  border-color: #d8957140;
  background: linear-gradient(145deg, #c7846017, #c7846005);
}
#topbar .heat-resource.danger .heat-stars .lit { color: #e9ad8b; fill: #e9ad8b; }
#topbar .heat-resource.danger > span:first-child { color: #e9ad8b; }

@media (min-width: 1550px) {
  #topbar .resources { padding: 15px 26px; column-gap: 8px; }
  #topbar .cash-resource strong { font-size: 1.625rem; }
}
@media (max-width: 1300px) {
  #topbar .resources { padding: 12px 14px; column-gap: 5px; }
  #topbar .cash-resource,
  #topbar .rep-resource,
  #topbar .hud-vital,
  #topbar .heat-resource { padding-left: 10px; padding-right: 10px; }
  #topbar .resource-icon { width: 28px; height: 28px; }
  #topbar .resource-icon .ico { width: 16px; height: 16px; }
  #topbar .cash-resource strong { font-size: 1.25rem; }
  #topbar .rep-resource strong { font-size: 1.1875rem; }
  #topbar .heat-stars { gap: 3px; }
  #topbar .heat-resource > small { font-size: .625rem; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  #topbar .resources { column-gap: 4px; padding-left: 10px; padding-right: 10px; }
  #topbar .cash-resource,
  #topbar .rep-resource,
  #topbar .hud-vital,
  #topbar .heat-resource { padding-left: 8px; padding-right: 8px; }
  #topbar .cash-resource > div > span,
  #topbar .rep-resource > span > small,
  #topbar .vital-label,
  #topbar .heat-resource > span:first-child { font-size: .6875rem; }
  #topbar .cash-resource { gap: 5px; }
  #topbar .cash-add { width: 21px; min-width: 21px; height: 21px; }
  #topbar .vital-label > .ico { width: 11px; height: 11px; margin-right: 4px; }
  #topbar .heat-stars { gap: 2px; }
  #topbar .heat-stars .ico { width: 12px; height: 12px; }
  #topbar .heat-resource > small { font-size: .5625rem; }
}
@media (max-width: 850px) {
  #topbar .resources { gap: 8px; padding: 12px; }
  #topbar .cash-resource,
  #topbar .rep-resource,
  #topbar .hud-vital,
  #topbar .heat-resource { min-height: 62px; padding: 8px 12px; }
  #topbar .heat-resource > small { display: none; }
  #topbar .heat-stars { margin: 8px 0 0; }
  #topbar .header-quests { padding: 6px 8px; }
}
@media (max-width: 600px) {
  #topbar .topline { background: #182326; }
  #topbar .resources { gap: 7px 6px; padding: 11px 10px 12px; }
  #topbar .cash-resource,
  #topbar .rep-resource,
  #topbar .hud-vital,
  #topbar .heat-resource { min-height: 58px; padding: 8px 10px; border-radius: 7px; }
  #topbar .cash-resource { position: relative; }
  #topbar .cash-resource > div > span,
  #topbar .rep-resource > span > small { font-size: .6875rem; }
  #topbar .cash-resource strong { font-size: 1.25rem; }
  #topbar .cash-add {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    font-size: 16px;
  }
  #topbar .rep-resource strong { font-size: 1.25rem; }
  #topbar .vital-label { font-size: .75rem; }
  #topbar .vital-label b { margin: 3px 0 5px; font-size: .9375rem; line-height: 1; }
  #topbar .vital-label b small { display: inline; font-size: .625rem; }
  #topbar .vital-label > .ico { width: 12px; height: 12px; margin-right: 4px; }
  #topbar .heat-resource > span:first-child { font-size: .6875rem; }
  #topbar .heat-stars { gap: 3px; }
  #topbar .heat-stars .ico { width: 12px; height: 12px; }
  #topbar .header-quests { min-height: 29px; padding: 6px 8px; font-size: .6875rem; }
}
@media (max-width: 370px) {
  #topbar .topline { padding-left: 12px; padding-right: 12px; column-gap: 6px; }
  #topbar .resources { padding-left: 8px; padding-right: 8px; column-gap: 5px; }
  #topbar .cash-resource,
  #topbar .rep-resource,
  #topbar .hud-vital,
  #topbar .heat-resource { padding-left: 8px; padding-right: 8px; }
  #topbar .cash-resource strong { font-size: 1.125rem; }
  #topbar .cash-resource > div > span { font-size: .625rem; }
  #topbar .vital-label { font-size: .6875rem; }
  #topbar .vital-label > .ico { width: 11px; height: 11px; margin-right: 3px; }
  #topbar .heat-stars { gap: 2px; }
  #topbar .heat-stars .ico { width: 11px; height: 11px; }
  #topbar .header-quests { padding: 6px; }
}
