.pulse[hidden] { display: none; }

.pulse {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.pulse.open { opacity: 1; }

.pulse-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(14px) saturate(0.74);
}

.pulse-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(109, 124, 169, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 124, 169, 0.11) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

.pulse-shell {
  position: relative;
  width: min(730px, 100%);
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(157, 174, 209, 0.28);
  background: linear-gradient(145deg, rgba(8, 12, 23, 0.95), rgba(5, 7, 13, 0.93));
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.58);
  transform: translateY(24px) scale(0.985);
  transition: transform 420ms var(--silk);
}

.pulse.open .pulse-shell { transform: none; }

.pulse-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo) 22%, var(--gold) 63%, transparent);
}

.pulse-signal {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.pulse-signal span {
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(243, 184, 75, 0.7);
  animation: pulse-bars 1.3s ease-in-out infinite alternate;
}

.pulse-signal span:nth-child(1) { height: 7px; }
.pulse-signal span:nth-child(2) { height: 18px; animation-delay: -0.3s; }
.pulse-signal span:nth-child(3) { height: 11px; animation-delay: -0.65s; }

@keyframes pulse-bars { to { height: 4px; opacity: 0.45; } }

.pulse-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-meta > span {
  color: #7c879d;
  font-family: "Consolas", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.pulse-meta strong {
  padding: 6px 8px;
  background: var(--gold);
  color: #080a0f;
  font-family: "Consolas", monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.pulse-meta strong.seen {
  border: 1px solid rgba(157, 174, 209, 0.25);
  background: transparent;
  color: #8e98aa;
}

.pulse-eyebrow {
  margin-top: 36px;
  color: var(--gold);
  font-family: "Consolas", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.pulse h2 {
  max-width: 620px;
  margin-top: 15px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.pulse-description {
  max-width: 590px;
  margin-top: 18px;
  color: #aab3c3;
  font-size: 16px;
  line-height: 1.65;
}

.pulse-update {
  display: grid;
  gap: 7px;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid rgba(157, 174, 209, 0.18);
  border-bottom: 1px solid rgba(157, 174, 209, 0.18);
}

.pulse-update small {
  color: #76829a;
  font-family: "Consolas", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.pulse-update strong {
  color: #d8dde6;
  font-size: 13px;
  line-height: 1.45;
}

.pulse-update time {
  color: #8d97a9;
  font-size: 10px;
}

.pulse-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pulse-shortcuts button {
  padding: 9px 12px;
  border: 1px solid rgba(157, 174, 209, 0.2);
  color: #cbd2dd;
  font-family: "Consolas", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pulse-shortcuts button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pulse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pulse-actions .button { min-width: 170px; }

.pulse-hint {
  margin-top: 18px;
  color: #748098;
  font-family: "Consolas", monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
}

@media (max-width: 560px) {
  .pulse {
    align-items: end;
    padding: 10px;
  }

  .pulse-shell {
    max-height: calc(100svh - 20px);
    overflow: auto;
    padding: 28px 20px 24px;
  }

  .pulse-signal {
    top: 18px;
    right: 18px;
  }

  .pulse-eyebrow { margin-top: 30px; }
  .pulse h2 { font-size: clamp(38px, 12vw, 52px); }
  .pulse-description { font-size: 14px; }

  .pulse-actions {
    flex-direction: column;
  }

  .pulse-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .pulse-shell { transition: none; }
  .pulse-signal span { animation: none; }
}

.pulse-shortcuts[hidden] { display: none; }

.pulse-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  color: #9ca6b8;
  font-size: 24px;
  line-height: 1;
  transition: color 200ms ease, background 200ms ease;
}

.pulse-close:hover {
  background: rgba(243, 184, 75, 0.08);
  color: var(--gold-bright);
}

.pulse-signal {
  right: 62px;
}


.pulse-navigation-tip {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--gold);
  background: rgba(243, 184, 75, 0.055);
  color: #9aa5b8;
  font-family: "Consolas", monospace;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.055em;
}

.pulse-navigation-tip strong,
.pulse-navigation-tip b {
  color: var(--gold-bright);
}

@media (max-width: 560px) {
  .pulse-navigation-tip {
    font-size: 8px;
  }
}
