/* Guild Pulse 20B — living war room. Scoped to #guild-pulse only. */

#guild-pulse {
  --np-pulse-ink: #f2ece0;
  --np-pulse-mute: #a89f90;
  --np-pulse-copper: #c48a4a;
  --np-pulse-gold: #d8c792;
  --np-pulse-iron: #6a645c;
  --np-pulse-crimson: #7a2e32;
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  padding: 11vh 0 13vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(140, 58, 28, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 35% at 12% 78%, rgba(90, 22, 24, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 40% at 88% 72%, rgba(40, 48, 62, 0.18), transparent 62%),
    linear-gradient(180deg, #08070b 0%, #0c0908 42%, #07080c 100%);
  color: var(--np-pulse-ink);
}

#guild-pulse .np-pulse-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#guild-pulse .np-pulse-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(62, 42, 24, 0.16) 0 1px,
      transparent 1px 13px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 236, 210, 0.018) 0 11px,
      transparent 11px 12px
    );
}

#guild-pulse .np-pulse-geometry {
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(720px, 88vw);
  transform: translateX(-50%);
  opacity: 0.22;
}

#guild-pulse .np-pulse-ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(232, 170, 90, 0.55);
  box-shadow: 0 0 8px rgba(201, 120, 40, 0.35);
  animation: np-pulse-ember-drift 16s linear infinite;
}

#guild-pulse .np-pulse-ember-1 { left: 18%; top: 70%; animation-duration: 18s; }
#guild-pulse .np-pulse-ember-2 { left: 42%; top: 78%; animation-duration: 22s; animation-delay: -6s; }
#guild-pulse .np-pulse-ember-3 { left: 67%; top: 64%; animation-duration: 19s; animation-delay: -11s; }
#guild-pulse .np-pulse-ember-4 { left: 81%; top: 82%; animation-duration: 24s; animation-delay: -3s; }

@keyframes np-pulse-ember-drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0.15; }
  40% { opacity: 0.55; }
  100% { transform: translate3d(12px, -88px, 0); opacity: 0; }
}

#guild-pulse .np-pulse-rune-breath {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 199, 146, 0.28);
  transform-origin: center;
  animation: np-pulse-rune 11s ease-in-out infinite;
}

@keyframes np-pulse-rune {
  0%, 100% { opacity: 0.18; transform: translateX(-50%) rotate(45deg) scale(1); }
  50% { opacity: 0.4; transform: translateX(-50%) rotate(45deg) scale(1.08); }
}

#guild-pulse #np-guild-pulse-root {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}

#guild-pulse .np-pulse-shell {
  position: relative;
  z-index: 1;
}

#guild-pulse .np-pulse-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

#guild-pulse .np-pulse-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--np-pulse-gold);
}

#guild-pulse .np-pulse-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.85rem auto 1rem;
  color: rgba(216, 199, 146, 0.55);
}

#guild-pulse .np-pulse-ornament-line {
  width: min(160px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 199, 146, 0.55), transparent);
}

#guild-pulse .np-pulse-ornament-mark {
  width: 28px;
  height: 28px;
}

#guild-pulse .np-pulse-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: #f6f0e4;
  text-transform: uppercase;
}

#guild-pulse .np-pulse-sub {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--np-pulse-mute);
  font-size: 1.02rem;
  line-height: 1.55;
}

#guild-pulse .np-pulse-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-pulse-iron);
}

#guild-pulse .np-pulse-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #b7d7b0;
}

#guild-pulse .np-pulse-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dba7a;
  box-shadow: 0 0 8px rgba(125, 186, 122, 0.45);
}

#guild-pulse .np-pulse-stale {
  color: #c4a36a;
}

#guild-pulse .np-pulse-sync,
#guild-pulse .np-pulse-activity-age {
  color: #8a8378;
  letter-spacing: 0.1em;
}

#guild-pulse .np-pulse-staging {
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.15rem 0.45rem;
  color: #c9a227;
  font-size: 0.58rem;
}

#guild-pulse .np-pulse-waiting {
  text-align: center;
  color: var(--np-pulse-mute);
  letter-spacing: 0.08em;
  padding: 3rem 1rem 1rem;
}

#guild-pulse .np-pulse-arena {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  min-height: 300px;
  padding: 2.1rem 2rem 1.8rem;
  border: 1px solid rgba(168, 140, 86, 0.32);
  background:
    radial-gradient(ellipse 55% 80% at 18% 50%, rgba(168, 96, 42, 0.14), transparent 62%),
    linear-gradient(145deg, rgba(32, 22, 16, 0.92), rgba(10, 10, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.12),
    inset 0 0 0 8px rgba(18, 14, 12, 0.55),
    0 28px 60px rgba(0, 0, 0, 0.45);
}

#guild-pulse .np-pulse-arena::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 199, 146, 0.1);
  pointer-events: none;
}

#guild-pulse .np-pulse-arena.is-kill {
  background:
    radial-gradient(ellipse 60% 85% at 18% 48%, rgba(180, 102, 36, 0.2), transparent 64%),
    linear-gradient(145deg, rgba(36, 22, 14, 0.94), rgba(10, 9, 10, 0.97));
}

#guild-pulse .np-pulse-arena.is-death {
  background:
    radial-gradient(ellipse 60% 85% at 18% 48%, rgba(90, 28, 36, 0.22), transparent 64%),
    linear-gradient(145deg, rgba(18, 20, 28, 0.94), rgba(8, 9, 12, 0.97));
}

#guild-pulse .np-pulse-arena.is-transitioning {
  animation: np-pulse-event-shift 1.4s ease-out 1;
}

@keyframes np-pulse-event-shift {
  0% { filter: saturate(0.7) brightness(0.82); }
  28% { filter: saturate(1.15) brightness(1.06); }
  100% { filter: none; }
}

#guild-pulse .np-pulse-new-badge {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #e8c86a;
  text-transform: uppercase;
  animation: np-pulse-badge-in 1.5s ease 1;
}

@keyframes np-pulse-badge-in {
  0% { opacity: 0; transform: translateY(-6px); }
  18% { opacity: 1; transform: none; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

#guild-pulse .np-pulse-kicker-latest {
  grid-column: 1 / -1;
  margin: 0 0 0.2rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--np-pulse-gold);
}

#guild-pulse .np-pulse-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

#guild-pulse .np-pulse-portrait {
  position: relative;
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at 50% 40%, rgba(168, 120, 64, 0.28), rgba(12, 10, 8, 0.95) 70%);
  box-shadow:
    0 0 0 1px rgba(216, 199, 146, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

#guild-pulse .np-pulse-portrait .member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(216, 199, 146, 0.45);
  box-shadow: 0 0 0 6px rgba(12, 10, 8, 0.8), 0 10px 24px rgba(0, 0, 0, 0.45);
}

#guild-pulse .np-pulse-portrait .member-ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: contain;
  pointer-events: none;
}

#guild-pulse .np-pulse-member-name,
#guild-pulse .np-pulse-opponent-name {
  margin: 0;
  font-family: var(--font-title, Georgia, serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#guild-pulse .np-pulse-member-name {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: #f6edd8;
}

#guild-pulse .np-pulse-member-name a,
#guild-pulse .np-pulse-portrait-link {
  color: inherit;
  text-decoration: none;
}

#guild-pulse .np-pulse-member-name a:hover,
#guild-pulse .np-pulse-portrait-link:hover {
  color: #fff6e4;
}

#guild-pulse .np-pulse-ladder-chip {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: #c9a227;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  padding-top: 0.28rem;
}

#guild-pulse .np-pulse-glyph {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

#guild-pulse .np-pulse-glyph svg {
  width: 72px;
  height: 72px;
}

#guild-pulse .np-pulse-arena.is-transitioning .np-pulse-glyph {
  animation: np-pulse-glyph-hit 1.2s ease-out 1;
}

@keyframes np-pulse-glyph-hit {
  0% { transform: scale(0.86) rotate(-8deg); filter: brightness(0.7); }
  35% { transform: scale(1.12) rotate(0deg); filter: brightness(1.25); }
  100% { transform: none; filter: none; }
}

#guild-pulse .np-pulse-verb {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--np-pulse-copper);
  text-align: center;
}

#guild-pulse .np-pulse-arena.is-death .np-pulse-verb {
  color: #b07078;
}

#guild-pulse .np-pulse-opponent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  opacity: 0.86;
}

#guild-pulse .np-pulse-opponent-plate {
  min-width: 160px;
  padding: 1.1rem 1.2rem 0.95rem;
  border: 1px solid rgba(140, 132, 118, 0.35);
  background:
    linear-gradient(180deg, rgba(28, 26, 24, 0.9), rgba(14, 13, 12, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#guild-pulse .np-pulse-opponent-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: #8a8378;
}

#guild-pulse .np-pulse-opponent-name {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: #d8d0c4;
}

#guild-pulse .np-pulse-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.35rem;
}

#guild-pulse .np-pulse-fame {
  margin: 0;
  font-family: var(--font-title, Georgia, serif);
  letter-spacing: 0.16em;
  color: #e4c778;
}

#guild-pulse .np-pulse-when {
  margin: 0;
  color: #9a9288;
  font-size: 0.82rem;
}

#guild-pulse .np-pulse-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f6f0e4;
  -webkit-text-fill-color: #f6f0e4;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(10, 10, 12, 0.92);
}

#guild-pulse .np-pulse-cta:hover,
#guild-pulse .np-pulse-cta:focus-visible {
  color: #fff8ea;
  -webkit-text-fill-color: #fff8ea;
  border-color: rgba(232, 197, 71, 0.75);
}

#guild-pulse .np-pulse-plaques {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.4rem;
  border-top: 1px solid rgba(168, 140, 86, 0.28);
  border-bottom: 1px solid rgba(168, 140, 86, 0.18);
}

#guild-pulse .np-pulse-plaque {
  text-align: center;
  padding: 1.35rem 0.75rem 1.2rem;
}

#guild-pulse .np-pulse-plaque + .np-pulse-plaque {
  border-left: 1px solid rgba(168, 140, 86, 0.22);
}

#guild-pulse .np-pulse-plaque-value {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: #f4efe4;
  line-height: 1;
}

#guild-pulse .np-pulse-plaque-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8ae9c;
}

#guild-pulse .np-pulse-plaque-note {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7368;
}

#guild-pulse .np-pulse-mark {
  margin-top: 1.8rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(28, 20, 14, 0.7), rgba(12, 10, 8, 0.55));
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

#guild-pulse .np-pulse-mark-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--np-pulse-gold);
}

#guild-pulse .np-pulse-mark-copy {
  margin: 0.45rem 0 0;
  font-family: var(--font-title, Georgia, serif);
  letter-spacing: 0.06em;
  color: #f0e6d2;
  text-transform: uppercase;
}

#guild-pulse .np-pulse-mark-fame {
  margin: 0.3rem 0 0;
  color: #e4c778;
  letter-spacing: 0.12em;
}

#guild-pulse .np-pulse-signal {
  margin: 2.6rem 0 0;
  padding: 0;
}

#guild-pulse .np-pulse-signal-title {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: #d8c792;
}

#guild-pulse .np-pulse-signal-svg {
  display: block;
  width: 100%;
  height: 148px;
  overflow: visible;
}

#guild-pulse .np-pulse-bucket {
  cursor: pointer;
}

#guild-pulse .np-pulse-bucket:focus-visible rect {
  stroke: #e8c86a;
  stroke-width: 1;
}

#guild-pulse .np-pulse-bucket-live {
  min-height: 1.4rem;
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfc3ae;
}

#guild-pulse .np-pulse-signal-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#guild-pulse .np-pulse-echoes {
  margin-top: 2.8rem;
}

#guild-pulse .np-pulse-echoes-title {
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: var(--font-display, Georgia, serif);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: #d8c792;
}

#guild-pulse .np-pulse-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}

#guild-pulse .np-pulse-tl-item {
  position: relative;
  padding: 0 0 1.25rem 1.7rem;
  color: #8f877c;
  border-left: 1px solid rgba(168, 140, 86, 0.22);
}

#guild-pulse .np-pulse-tl-item:last-child {
  border-left-color: transparent;
}

#guild-pulse .np-pulse-tl-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: #3a342c;
  transform: rotate(45deg);
}

#guild-pulse .np-pulse-tl-item.is-latest {
  color: #efe6d6;
}

#guild-pulse .np-pulse-tl-item.is-latest::before {
  background: #e8c86a;
}

#guild-pulse .np-pulse-tl-item.is-dim {
  opacity: 0.55;
}

#guild-pulse .np-pulse-tl-link,
#guild-pulse .np-pulse-tl-static {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

#guild-pulse .np-pulse-tl-time {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #8a8378;
}

#guild-pulse .np-pulse-tl-text {
  font-size: 0.92rem;
  line-height: 1.4;
}

#guild-pulse .np-pulse-tl-fame {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #c4a36a;
}

#guild-pulse .np-pulse-quiet {
  text-align: center;
  padding: 3.2rem 1.25rem;
  border: 1px solid rgba(168, 140, 86, 0.22);
  background:
    radial-gradient(ellipse 50% 70% at 50% 30%, rgba(80, 48, 24, 0.12), transparent 70%),
    rgba(8, 8, 10, 0.55);
}

#guild-pulse .np-pulse-quiet-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8c792;
}

#guild-pulse .np-pulse-quiet-copy {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  color: #9a9288;
  line-height: 1.6;
}

#guild-pulse .np-pulse-shell--error .np-pulse-quiet {
  background:
    radial-gradient(ellipse 50% 70% at 50% 30%, rgba(90, 28, 32, 0.16), transparent 70%),
    rgba(8, 8, 10, 0.55);
}

#guild-pulse .np-pulse-shell--empty .np-pulse-quiet {
  background:
    radial-gradient(ellipse 50% 70% at 50% 30%, rgba(40, 48, 62, 0.18), transparent 70%),
    rgba(8, 8, 10, 0.55);
}

#guild-pulse .np-pulse-retry {
  margin-top: 1.2rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6f0e4;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  cursor: pointer;
}

#guild-pulse.is-entered .np-pulse-eyebrow {
  animation: np-pulse-in 0.55s ease both;
}

#guild-pulse.is-entered .np-pulse-title {
  animation: np-pulse-in 0.7s ease 0.12s both;
}

#guild-pulse.is-entered .np-pulse-signal-svg .np-pulse-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: np-pulse-draw 1.1s ease 0.28s forwards;
}

#guild-pulse.is-entered .np-pulse-arena {
  animation: np-pulse-in 0.8s ease 0.35s both;
}

#guild-pulse.is-entered .np-pulse-plaques {
  animation: np-pulse-in 0.7s ease 0.5s both;
}

#guild-pulse.is-entered .np-pulse-echoes {
  animation: np-pulse-in 0.7s ease 0.62s both;
}

@keyframes np-pulse-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes np-pulse-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 767px) {
  #guild-pulse {
    min-height: 0;
    padding: 8vh 0 10vh;
  }

  #guild-pulse .np-pulse-arena {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding: 1.5rem 1rem 1.35rem;
    gap: 0.85rem;
  }

  #guild-pulse .np-pulse-portrait {
    width: 108px;
    height: 108px;
  }

  #guild-pulse .np-pulse-glyph {
    width: 64px;
    height: 64px;
  }

  #guild-pulse .np-pulse-glyph svg {
    width: 56px;
    height: 56px;
  }

  #guild-pulse .np-pulse-plaques {
    grid-template-columns: 1fr;
  }

  #guild-pulse .np-pulse-plaque + .np-pulse-plaque {
    border-left: 0;
    border-top: 1px solid rgba(168, 140, 86, 0.18);
  }

  #guild-pulse .np-pulse-signal-svg {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #guild-pulse .np-pulse-ember,
  #guild-pulse .np-pulse-rune-breath,
  #guild-pulse.is-entered .np-pulse-eyebrow,
  #guild-pulse.is-entered .np-pulse-title,
  #guild-pulse.is-entered .np-pulse-arena,
  #guild-pulse.is-entered .np-pulse-plaques,
  #guild-pulse.is-entered .np-pulse-echoes,
  #guild-pulse.is-entered .np-pulse-signal-svg .np-pulse-line,
  #guild-pulse .np-pulse-arena.is-transitioning,
  #guild-pulse .np-pulse-arena.is-transitioning .np-pulse-glyph,
  #guild-pulse .np-pulse-new-badge {
    animation: none !important;
  }

  #guild-pulse.is-entered .np-pulse-signal-svg .np-pulse-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
