/* ═══════════════════════════════════════════════════
   PARTY EXP — rozszerzenie stylu Komendy + czaszki
   ═══════════════════════════════════════════════════ */

.pex-duo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  max-width: 380px;
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--gold-dark);
  background: rgba(0, 0, 0, 0.4);
}

.pex-duo__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pex-duo__label {
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pex-duo__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 88px;
}

.pex-duo__plus {
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(80, 200, 90, 0.35);
  animation: pex-glow 1.8s ease-in-out infinite;
}

.pex-duo__vs {
  font-family: "Cinzel", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6fbf73;
}

.pex-skull {
  display: block;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pex-skull--pulse {
  animation: pex-skull-pulse 1.4s ease-in-out infinite;
}

.pex-skull--delay {
  animation-delay: 0.7s;
}

.pex-shield {
  display: block;
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  animation: pex-shield-bob 2.2s ease-in-out infinite;
}

.pex-ico-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border: 1px solid rgba(111, 191, 115, 0.45);
  background: rgba(0, 0, 0, 0.45);
}

.pex-ico-wrap--duo,
.pex-ico-wrap--skulls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  min-width: 40px;
  padding: 4px 6px;
}

.pex-ico-wrap--duo .pex-skull,
.pex-ico-wrap--skulls .pex-skull {
  width: 22px;
  height: 22px;
}

.pex-list {
  margin-top: 2px;
}

.pex-row--ok {
  border-color: rgba(111, 191, 115, 0.45);
}

.pex-row--bonus {
  border-color: rgba(212, 175, 55, 0.55);
}

.pex-row .cmd-row__desc strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.pex-rules {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  list-style: disc;
  font-size: 12px;
  color: var(--ink-soft);
}

.pex-rules li {
  margin: 0 0 6px;
  line-height: 1.45;
}

.pex-rules li:last-child {
  margin-bottom: 0;
}

.pex-rules-sum {
  margin-top: 8px !important;
  padding-top: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

/* Override Bootstrap code (białe/różowe tło) — czarne kapsułki jak w przykładach */
.lbn-pex code,
.lbn-pex .cmd-row__desc code,
.lbn-pex .cmd-row__ex code,
.lbn-pex .pex-rules code,
.lbn-pex .cmd-lead code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  background: #000;
  background-color: #000;
  padding: 1px 5px;
  border: 1px solid rgba(138, 106, 26, 0.45);
  border-radius: 0;
}

@keyframes pex-skull-pulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 0 rgba(80, 220, 100, 0));
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(80, 220, 100, 0.75));
    opacity: 1;
  }
}

@keyframes pex-shield-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pex-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(80, 200, 90, 0.2);
    opacity: 0.9;
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
    opacity: 1;
  }
}

@media (max-width: 620px) {
  .pex-duo {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .pex-duo__mid {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pex-skull--pulse,
  .pex-shield,
  .pex-duo__plus {
    animation: none;
  }
}
