/* fx15 header stay above content and fully opaque */
header.bar, .bar {
  position: fixed !important;
  background: var(--bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 200 !important;
}
/* fx15: typographic header, catch-game start, quote-aligned cards, live pulse. */

/* Banned accent square before Crypto path. */
.kp-path i {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Header controls: typographic, not capsules. */
.bar .kp-path,
.bar .fx8-how-open,
.bar .switch button,
.bar .bar-more,
.bar .icon-btn,
.bar .chapnav select {
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.bar .kp-path,
.bar .fx8-how-open,
.bar .switch button {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line, #ddd) !important;
  color: var(--text, #1a1a1a) !important;
  min-height: 40px;
  padding: 0 8px !important;
  font-weight: 600;
}
.bar .switch button[aria-pressed="true"] {
  background: transparent !important;
  color: var(--text, #1a1a1a) !important;
  border-bottom-color: var(--text, #1a1a1a) !important;
}
.bar .switch button[aria-pressed="true"] .st {
  color: var(--text, #1a1a1a) !important;
}
.bar .kp-path:hover,
.bar .fx8-how-open:hover,
.bar .switch button:hover,
.bar .kp-path:focus-visible,
.bar .fx8-how-open:focus-visible,
.bar .switch button:focus-visible {
  background: transparent !important;
  color: var(--fx-blue, #1f5be0) !important;
  border-bottom-color: var(--fx-blue, #1f5be0) !important;
}
.bar .icon-btn,
.bar .bar-more {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.bar .chapnav select {
  background: var(--bg, #f6f3ec) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line, #ddd) !important;
}

/* Phone: show the word Path, not an empty square where the dot was. */
@media (max-width: 760px) {
  .bar .kp-path {
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    justify-content: center;
    gap: 0;
  }
  .bar .kp-path .kp-d {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }
  .bar .kp-path .kp-m {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    display: inline !important;
    font: 600 14px/1 var(--sans, inherit);
  }
}

/* Quotes and the four value cards share one column width, even gaps, same left edge. */
.fx5-usp-sec .fx5-quotes,
.fx5-usp-sec .fx5-usps,
.fx5-usp-sec .fx5-usp-lede,
.fx5-usp-sec .fx14-proofs-h,
.fx5-usp-sec .fx5-usp-h,
.fx5-usp-sec .fx5-usp-panel,
.fx15-next {
  max-width: 40rem;
}
.fx5-quotes ul {
  gap: 16px;
}
.fx5-usps {
  gap: 16px;
}
.fx5-quotes {
  margin-bottom: 22px;
}
.fx14-proofs-h {
  margin-top: 0;
}

/* Catch game: no washed-out gradient; compact start; canvas only while playing. */
.rn {
  background: var(--card, var(--bg)) !important;
  background-image: none !important;
  border: 1px solid var(--line, #ddd) !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.rn:not(.on) .rn-cv {
  display: none !important;
  height: 0 !important;
}
.rn:not(.on) .rn-hud {
  display: none !important;
}
.rn .rn-start {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: grid !important;
  gap: 12px;
  justify-items: start;
  padding: 18px 16px;
}
.rn-start[hidden] {
  display: none !important;
}
.rn-how {
  margin: 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text, #1a1a1a);
}
.rn-go,
.rn .rn-go {
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 44px;
  padding: 0 18px !important;
}
.rn-src,
.rn .rn-src {
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--mute, #667) !important;
  font: 500 13px/1.4 var(--mono, ui-monospace, monospace);
}

/* Live pulse readout */
.fx15-pulse-sec {
  padding-top: 8px;
  padding-bottom: 8px;
}
.fx15-pulse-sec > h2 {
  margin: 0 0 6px;
}
.fx15-pulse-lede {
  margin: 0 0 16px;
  color: var(--mute, #667);
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 42em;
}
.fx15-pulse {
  margin: 0;
  max-width: 46em;
  display: grid;
  gap: 14px;
}
.fx15-prow {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line, #ddd);
  display: grid;
  gap: 4px;
}
.fx15-prow:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.fx15-pname {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}
.fx15-pname a {
  color: inherit;
  text-decoration: none;
}
.fx15-pname a:hover,
.fx15-pname a:focus-visible {
  color: var(--fx-blue, #1f5be0);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fx15-prate {
  font: 600 15px/1.4 var(--sans, inherit);
}
.fx15-psample,
.fx15-psrc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mute, #667);
}
.fx15-psrc a {
  color: var(--fx-blue, #1f5be0);
}
.fx15-pulse-foot {
  margin: 16px 0 0;
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
}
.fx15-pulse-foot a,
.fx15-pulse-foot button {
  color: var(--fx-blue, #1f5be0);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--fx-blue, #1f5be0);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fx15-pulse-foot button:focus-visible,
.fx15-pulse-foot a:focus-visible {
  outline: 2px solid var(--fx-blue, #1f5be0);
  outline-offset: 3px;
}
.fx15-when {
  color: var(--mute, #667);
  font-weight: 400;
}

/* What's next: documented, not on mainnet */
.fx15-next {
  margin: 22px 0 0;
  max-width: 40rem;
}
.fx15-next h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.fx15-next dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.fx15-next dt {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.fx15-next dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
}
.fx15-next a,
.fx15-next .fx14-go {
  margin-right: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .bar .kp-path, .bar .switch button, .rn-go { transition: none; }
}

.rn:not(.on) .mg-row { display: none !important; }
.rn:not(.on) .rn-out:empty { display: none !important; min-height: 0 !important; }
#kaspa-vs-now, #whats-next, #pulse-h { scroll-margin-top: 100px; }
@media (max-width: 760px) {
  #kaspa-vs-now, #whats-next, #pulse-h { scroll-margin-top: 160px; }
}
.fx15-next-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
