/*
 * Nuzlocke — Results & Summary Screens
 *
 * Battle result banner (win/loss/flawless), deaths list,
 * and the segment progress chain used in the summary screen.
 */

/* =============================================
   BATTLE RESULT BANNER
   ============================================= */

.nz-banner {
  clip-path: var(--nz-clip);
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--nz-shadow);
}

.nz-banner-flawless {
  background: var(--nz-accent-dim);
  border: 1px solid var(--nz-accent);
  border-left: 3px solid var(--nz-accent);
}

.nz-banner-win {
  background: var(--nz-success-dim);
  border: 1px solid var(--nz-success);
  border-left: 3px solid var(--nz-success);
}

.nz-banner-loss {
  background: var(--nz-danger-dim);
  border: 1px solid var(--nz-danger);
  border-left: 3px solid var(--nz-danger);
}

.nz-banner-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nz-banner-flawless .nz-banner-title { color: var(--nz-accent); }
.nz-banner-win      .nz-banner-title { color: var(--nz-success); }
.nz-banner-loss     .nz-banner-title { color: var(--nz-danger); }

.nz-banner-sub {
  font-size: 15px;
  color: var(--nz-text-muted);
  margin-top: 4px;
}

.nz-banner-deaths {
  margin-top: 12px;
  border-top: 1px solid var(--nz-border-subtle);
  padding-top: 10px;
}

.nz-banner-deaths-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nz-danger);
  margin-bottom: 6px;
}

.nz-death-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--nz-text-muted);
  margin-bottom: 4px;
}

.nz-death-entry img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: auto;
  filter: grayscale(0.6);
}

.nz-death-entry strong {
  color: var(--nz-text);
}

/* =============================================
   SEGMENT PROGRESS
   ============================================= */

.nz-progress {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.nz-progress::-webkit-scrollbar { display: none; }

.nz-progress-node {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nz-progress-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 80px;
}

.nz-progress-dot {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nz-border);
  background: var(--nz-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--nz-text-dim);
  font-family: var(--nz-font-mono);
}

.nz-progress-dot.done {
  background: var(--nz-accent-dim);
  border-color: var(--nz-accent);
  color: var(--nz-accent);
}

.nz-progress-dot.current {
  background: var(--nz-accent);
  border-color: var(--nz-accent);
  color: var(--nz-bg);
  animation: nz-pulse 2s ease-in-out infinite;
}

@keyframes nz-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 158, 255, 0); }
}

.nz-progress-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nz-text-dim);
  text-align: center;
  line-height: 1.3;
}

.nz-progress-label.done    { color: var(--nz-accent); }
.nz-progress-label.current { color: var(--nz-text); }

.nz-progress-line {
  width: 20px;
  height: 1px;
  background: var(--nz-border);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.nz-progress-line.done { background: var(--nz-accent); }
