/* Zombie Bar bits on top of ../style.css */

.zombie {
  --zombie: #7ccf3a;
}

.zombie a {
  color: var(--accent);
}

.zombie h1 {
  color: var(--zombie);
}

.story {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: #0f1219;
  border-left: 3px solid var(--zombie);
  padding: 10px 12px;
  border-radius: 6px;
}

.zombie #board {
  background: #05060a;
  cursor: none;
}

.legend-title {
  margin: 14px 0 6px;
  font-size: 14px;
  color: var(--text);
}

.icon-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.icon-legend .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.icon-legend canvas,
.loadout canvas,
.drink-list canvas {
  flex: none;
  background: #0b0e15;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Sidebar */
.wave-label {
  font-weight: 800;
  font-size: 18px;
}

.wave-label .sub {
  display: block;
  font-weight: 500;
}

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 10px;
  background: #0f1219;
  border-radius: 8px;
}

.team li.down {
  outline: 1px solid var(--others);
}

.team li.dead {
  opacity: 0.45;
}

.team .kills {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.team .bars {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bar {
  height: 6px;
  background: #23202a;
  border-radius: 3px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.bar.hp > span {
  background: var(--self);
}

.bar.hp.low > span {
  background: var(--others);
}

.bar.armor > span {
  background: var(--all);
}

.loadout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.loadout .slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #0f1219;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.loadout .slot.active {
  border-color: var(--accent);
}

.loadout .slot.empty {
  opacity: 0.4;
}

.loadout .key {
  color: var(--muted);
  font-size: 11px;
}

.drink-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drink-list li {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--self) 12%, #0f1219);
  border: 1px solid color-mix(in srgb, var(--self) 55%, transparent);
  border-radius: 8px;
  font-weight: 600;
  color: var(--self);
}

.drink-list .left {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.drink-list .timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--self);
}

/* Upgrade cards between waves */
.cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5, 6, 10, 0.55);
  pointer-events: auto;
}

.cards .card-choice {
  width: 170px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  text-align: left;
  background: #151922;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.cards .card-choice:hover {
  border-color: var(--zombie);
  transform: translateY(-3px);
}

.cards .card-choice b {
  font-size: 16px;
  color: var(--zombie);
}

.cards .card-choice span {
  font-weight: 500;
  color: var(--text);
}

.cards .card-choice kbd {
  align-self: flex-start;
}

.cards .title {
  position: absolute;
  top: 18%;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .icon-legend {
    grid-template-columns: 1fr;
  }
}
