/* The Siege island's glass over the world (siege/siege.js): during a round, each side's banner and how much of its
   wall stands, and the time left. No words. */

#siege-strip {
  position: fixed;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(calc(-50% + var(--shift, 0px) / 2));
  display: grid;
  grid-template-columns: auto 120px auto 120px auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--ink);
  font: 700 18px var(--font);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

#siege-strip[hidden] {
  display: none;
}

#siege-strip .shield {
  width: 26px;
  height: 30px;
  border-radius: 4px 4px 13px 13px;
  border: 2px solid #ffd54a;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

#siege-strip .camp {
  background: linear-gradient(#ff5a5a, #c42a2a);
}

#siege-strip .castle {
  background: linear-gradient(#5a8ff0, #2457c9);
}

#siege-strip .shield.mine {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

#siege-strip .shield.gone {
  opacity: 0.35;
}

#siege-strip .bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(22, 50, 74, 0.18);
  overflow: hidden;
}

#siege-strip .bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s;
}

#siege-strip .bar.camp-wall i {
  background: linear-gradient(90deg, #c42a2a, #ff7a6a);
}

#siege-strip .bar.castle-wall i {
  background: linear-gradient(90deg, #5a8ff0, #2457c9);
  margin-left: auto;
}

@media (max-width: 700px) {
  #siege-strip {
    top: 118px;
    grid-template-columns: auto 64px auto 64px auto;
    gap: 7px;
    padding: 6px 12px;
    font-size: 16px;
  }
}
