#demo-entry {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 32%, #35483c 0, #102019ee 42%),
    #102019;
}
#demo-entry[hidden] {
  display: none;
}
.demo-entry-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid #69806f;
  border-radius: 8px;
  background: #14251f;
  box-shadow: 0 24px 90px #000a;
}
.demo-entry-card h1 {
  margin: 4px 0 9px;
  font-size: 32px;
  font-weight: 600;
}
.demo-entry-card label,
.demo-entry-card legend {
  color: #b8c9bc;
  font-size: 12px;
}
.demo-entry-card input[type="text"] {
  width: 100%;
  margin: 8px 0 20px;
  padding: 12px 13px;
  border: 1px solid #546a58;
  border-radius: 4px;
  color: #fff;
  background: #0d1915;
}
.demo-factions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 7px 0 22px;
  padding: 0;
  border: 0;
}
.demo-factions label {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border: 1px solid #44574a;
  border-radius: 4px;
  background: #102019;
}
.demo-factions label:has(input:checked) {
  border-color: #c9dda9;
  background: #2f4435;
  color: #fff;
}
.demo-entry-card button {
  width: 100%;
  padding: 12px;
  background: #bddb9f;
  border-color: #bddb9f;
  color: #122318;
  font-weight: 700;
}
#demo-entry-status {
  min-height: 20px;
  margin-bottom: 0;
}
#demo-entry-status.is-error {
  color: #ffb6a5;
}
#demo-session {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid #425849;
  border-radius: 4px;
  color: #c9dbcd;
  background: #102019;
  font-size: 11px;
}
#demo-session::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8d514b;
}
#demo-session[data-state="online"]::before {
  background: #83ca72;
  box-shadow: 0 0 7px #83ca72;
}
#demo-capture {
  --capture-owner: #6c786e;
  --capture-attacker: #d9c96a;
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 14;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid var(--capture-owner);
  border-radius: 5px;
  background: #102019e8;
  box-shadow: 0 6px 24px #0006;
  pointer-events: none;
}
.demo-capture-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 12px;
}
.demo-capture-track {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #080d0b;
}
.demo-capture-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--capture-attacker);
  transition: width 180ms linear;
}
#demo-capture [data-capture-detail] {
  margin: 7px 0 0;
  color: #c2cec5;
  font-size: 10px;
  text-align: center;
}
body.demo-mode .demo-hidden,
body.demo-mode #infantry,
body.demo-mode #legacy-tools,
body.demo-mode #map-objects-tools,
body.demo-mode #map-view-settings,
body.demo-mode .telemetry {
  display: none !important;
}
body.demo-mode .sidebar-heading h1::after {
  content: " · общий мир";
  color: #9fc78d;
  font-size: 13px;
  font-weight: 400;
}
@media (max-width: 600px) {
  .demo-entry-card {
    padding: 24px 20px;
  }
  #demo-capture {
    top: 84px;
  }
}
