@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/pulse/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/pulse/fonts/spline-sans-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/pulse/fonts/silkscreen-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/pulse/fonts/silkscreen-700-latin.woff2") format("woff2");
}

:root {
  --paper: #f7f7f5;
  --paper-strong: #ffffff;
  --ink: #110e08;
  --muted: #62625d;
  --rule: #151513;
  --rule-soft: #c9c9c1;
  --buy: #ccff00;
  --mint: #55e7a5;
  --mint-soft: #b8f3cf;
  --quiet: #e9e9e2;
  --halt: #ce302b;
  --signal-blue: #3767d6;
  --signal-cyan: #00a6b8;
  --signal-gold: #f4b52c;
  --signal-coral: #ef6c58;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --page: min(1480px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(8, 8, 8, 0.045) calc(100% - 1px)) 0 0 / 80px 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--buy);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--halt);
  outline-offset: 3px;
}

.site-header,
main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 247, 243, 0.96);
}

.header-line {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-soft);
}

.brand {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
}

.chain {
  color: var(--muted);
  font-size: 11px;
}

.site-header nav {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-size: 11px;
  text-transform: uppercase;
}

.site-header nav a {
  padding-block: 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.masthead {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 72px;
  align-items: end;
  padding: 62px 32px 50px;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.masthead h1 {
  font-family: var(--sans);
  font-size: 112px;
  font-weight: 900;
  line-height: 0.79;
  text-transform: uppercase;
}

.masthead-readout {
  padding: 24px 0 7px;
  border-top: 1px solid var(--rule);
}

.live-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.live-state i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--quiet);
}

.live-state.is-live i {
  background: var(--buy);
  box-shadow: 0 0 0 5px rgba(204, 255, 0, 0.2);
}

.live-state.is-delayed i {
  background: var(--halt);
}

.masthead-readout strong {
  display: block;
  font-family: var(--pixel);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.95;
}

.masthead-readout > span {
  display: block;
  margin-top: 11px;
  font-size: 10px;
  text-transform: uppercase;
}

.masthead-readout .readout-question {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 9px;
}

.masthead-readout p {
  max-width: 440px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
}

.summary-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.summary-rail > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  border-right: 1px solid var(--rule);
}

.summary-rail > div:last-child {
  border-right: 0;
}

.summary-rail span,
.summary-rail small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.summary-rail strong {
  margin: 8px 0 5px;
  font-family: var(--pixel);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.summary-rail strong.count-bump,
.masthead-readout strong.count-bump {
  animation: count-bump 650ms ease-out;
}

.conditions-rail {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(360px, 1fr) minmax(280px, 0.72fr);
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-strong);
}

.condition-readout,
.condition-meter,
.conditions-rail > p {
  min-width: 0;
  padding: 17px 22px;
}

.condition-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}

.condition-readout span,
.condition-scale,
.conditions-rail > p {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.condition-readout output {
  margin-top: 7px;
  font-family: var(--pixel);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.conditions-rail[data-state="open"] .condition-readout output,
.conditions-rail[data-state="wide-open"] .condition-readout output {
  color: #557000;
}

.condition-meter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--rule);
}

.condition-track {
  position: relative;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
}

.condition-track span + span { border-left: 1px solid var(--ink); }
.condition-track .is-quiet { background: var(--quiet); }
.condition-track .is-active { background: var(--mint-soft); }
.condition-track .is-open { background: var(--mint); }
.condition-track .is-wide { background: var(--buy); }

.condition-track i {
  position: absolute;
  z-index: 1;
  top: -6px;
  width: 2px;
  height: 24px;
  background: var(--halt);
  box-shadow: 0 0 0 2px var(--paper-strong);
  transform: translateX(-1px);
  transition: left 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.condition-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.condition-scale span:nth-child(2),
.condition-scale span:nth-child(3) { text-align: center; }
.condition-scale span:last-child { text-align: right; }

.conditions-rail > p {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.3;
}

@keyframes count-bump {
  0% { color: var(--ink); transform: translateY(0); }
  35% { color: var(--halt); transform: translateY(-3px); }
  100% { color: var(--ink); transform: translateY(0); }
}

.floor-toolbar {
  min-height: 67px;
  display: grid;
  grid-template-columns: auto 1fr auto 58px;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.window-control {
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--rule);
}

.window-control > span {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--muted);
  font-size: 9px;
}

.window-control button {
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 15px;
  border-left: 1px solid var(--rule-soft);
}

.window-control button span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1;
  text-transform: uppercase;
}

.window-control button strong {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.window-control button:hover,
.window-control button.active {
  background: var(--buy);
}

.window-control button.active span {
  color: var(--ink);
}

.floor-key {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 21px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.floor-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.floor-key i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
}

.floor-key .key-live {
  background: var(--buy);
}

.floor-key .key-tracked {
  background: var(--quiet);
}

.share-button,
.refresh-button {
  min-height: 66px;
  border-left: 1px solid var(--rule);
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--buy);
  font-size: 9px;
  font-weight: 600;
}

.share-button i {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 17px;
  line-height: 1;
}

.share-button:hover,
.share-button:focus-visible {
  background: var(--buy);
  color: var(--ink);
}

.share-button.loading {
  opacity: 0.55;
  pointer-events: none;
}

.refresh-button {
  display: grid;
  place-items: center;
  font-size: 19px;
}

.refresh-button i {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-style: normal;
  line-height: 1;
}

.refresh-button:hover {
  background: var(--ink);
  color: var(--buy);
}

.refresh-button.loading i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.floor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border-bottom: 1px solid var(--rule);
}

.map-panel {
  min-width: 0;
  border-right: 1px solid var(--rule);
}

.map-status {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.map-insight {
  margin-inline: auto 24px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.press-map {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: var(--paper-strong);
}

.quiet-rail {
  min-height: 76px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 15px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.quiet-rail[hidden] {
  display: none;
}

.small-rail {
  min-height: 58px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 9px 15px;
  border-top: 1px solid var(--rule);
  background: var(--paper-strong);
}

.small-rail[hidden] {
  display: none;
}

.small-rail > span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.small-rail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.small-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: var(--buy);
  color: var(--ink);
}

.small-rail a b {
  font-family: var(--pixel);
  font-size: 8px;
}

.small-rail a span {
  font-size: 7px;
}

.quiet-rail > span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.quiet-rail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiet-rail a {
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-strong);
  font-family: var(--pixel);
  font-size: 8px;
}

.quiet-rail a:hover {
  border-color: var(--ink);
  background: var(--buy);
}

.quiet-rail img {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.map-loading b {
  font-family: var(--pixel);
  font-size: 17px;
}

.map-loading span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.press-tile {
  position: absolute;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--quiet);
  color: var(--ink);
  transition: filter 140ms ease, transform 140ms ease;
}

.press-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--mint-soft);
  opacity: 0.6;
}

.press-tile.is-live::before {
  background: var(--mint);
  opacity: 0.82;
}

.press-tile.is-leader::before {
  background: var(--buy);
  opacity: 1;
}

.press-tile.is-quiet::before {
  background: var(--quiet);
  opacity: 1;
}

.press-tile:hover {
  z-index: 4;
  filter: brightness(1.035) saturate(1.08);
}

.tile-inner {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-areas:
    "mark status"
    "mark name"
    "metric metric"
    "detail detail";
  align-content: center;
  gap: 4px 15px;
  padding: 19px;
}

.token-mark {
  grid-area: mark;
  align-self: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-strong);
}

.token-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tile-status {
  grid-area: status;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(8, 8, 8, 0.68);
  font-size: 8px;
  text-transform: uppercase;
}

.tile-status i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-strong);
}

.is-live .tile-status i,
.is-leader .tile-status i {
  background: var(--ink);
}

.tile-name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  font-family: var(--pixel);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-metric {
  grid-area: metric;
  margin-top: 17px;
  font-family: var(--pixel);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.tile-detail {
  grid-area: detail;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 3px;
  font-size: 8px;
  text-transform: uppercase;
}

.press-tile.is-compact .tile-inner {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 9px;
  padding: 11px;
}

.press-tile.is-compact .token-mark {
  width: 42px;
  height: 42px;
}

.press-tile.is-compact .tile-name {
  font-size: 12px;
}

.press-tile.is-compact .tile-metric {
  margin-top: 7px;
  font-size: 18px;
}

.press-tile.is-compact .tile-detail {
  font-size: 7px;
}

.press-tile.is-tiny .tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 5px;
}

.press-tile.is-tiny .token-mark {
  width: 26px;
  height: 26px;
  border-width: 1px;
}

.press-tile.is-tiny .tile-status,
.press-tile.is-tiny .tile-detail {
  display: none;
}

.press-tile.is-tiny .tile-name {
  width: 100%;
  font-size: 8px;
}

.press-tile.is-tiny .tile-metric {
  margin: 0;
  font-size: 9px;
}

.press-tile.is-micro .tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 3px;
}

.press-tile.is-micro .token-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-width: 1px;
}

.press-tile[data-slug="buy-button"].is-micro .token-mark {
  width: min(60px, calc(100% - 8px));
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
}

.press-tile.is-micro .tile-status,
.press-tile.is-micro .tile-detail {
  display: none;
}

.press-tile.is-micro .tile-name,
.press-tile.is-micro .tile-metric {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.press-tile.is-micro .tile-name {
  font-size: 8px;
}

.press-tile.is-micro .tile-metric {
  font-size: 8px;
}

.press-tile.is-shallow .tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
}

.press-tile.is-shallow .token-mark,
.press-tile.is-shallow .tile-status,
.press-tile.is-shallow .tile-detail {
  display: none;
}

.press-tile.is-shallow .tile-name,
.press-tile.is-shallow .tile-metric {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.press-tile.is-shallow .tile-name {
  font-size: 7px;
}

.press-tile.is-shallow .tile-metric {
  font-size: 8px;
}

.press-tile.is-wide-shallow .tile-inner {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas:
    "mark name"
    "mark metric";
  align-content: center;
  gap: 3px 7px;
  padding: 5px 7px;
}

.press-tile.is-wide-shallow .token-mark {
  display: block;
  width: 26px;
  height: 26px;
  border-width: 1px;
}

.press-tile.is-wide-shallow .tile-name,
.press-tile.is-wide-shallow .tile-metric {
  text-align: left;
}

.press-tile.is-nano .tile-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.press-tile.is-nano .token-mark,
.press-tile.is-nano .tile-status,
.press-tile.is-nano .tile-metric,
.press-tile.is-nano .tile-detail {
  display: none;
}

.press-tile.is-nano .tile-name {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 6px;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.press-tile[data-slug="buy-button"].is-nano .tile-name {
  width: auto;
  max-width: calc(100% - 4px);
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--buy);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 900;
}

.press-tile.just-pressed {
  animation: tile-press 700ms ease-out;
}

@keyframes tile-press {
  0% { filter: brightness(1); }
  22% { filter: brightness(1.5); transform: scale(0.985); }
  100% { filter: brightness(1); transform: none; }
}

.tape-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper-strong);
}

.tape-head {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.tape-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  text-transform: uppercase;
}

.tape-head h2 {
  margin-top: 7px;
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 700;
}

.tape-light {
  width: 13px;
  height: 13px;
  border: 1px solid var(--paper-strong);
  border-radius: 50%;
  background: var(--buy);
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.7);
}

.tape-signal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tape-signal output {
  color: var(--buy);
  font-family: var(--pixel);
  font-size: 8px;
}

.tape-signal output.is-burst {
  animation: burst-signal 900ms ease-out;
}

@keyframes burst-signal {
  0% { color: var(--paper-strong); transform: translateY(3px); }
  35% { color: var(--buy); transform: translateY(0); }
  100% { color: var(--buy); }
}

.press-tape {
  min-height: 638px;
  flex: 1;
  overflow: hidden;
  list-style: none;
}

.press-tape li {
  min-height: 65px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-content: center;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.press-tape li.is-new {
  animation: tape-arrival 850ms ease-out;
}

@keyframes tape-arrival {
  0% { background: var(--buy); color: var(--ink); transform: translateX(10px); }
  100% { background: transparent; transform: translateX(0); }
}

.press-tape a:hover .tape-wallet,
.press-tape a:focus-visible .tape-wallet {
  color: var(--buy);
}

.tape-wallet {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tape-action {
  color: var(--paper-strong);
  font-family: var(--pixel);
  font-size: 10px;
}

.tape-action b {
  color: var(--buy);
  font-weight: 700;
}

.tape-time {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  text-transform: uppercase;
}

.press-tape .tape-empty {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  text-transform: uppercase;
}

.live-history-section,
.history-section {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
  border-bottom: 1px solid var(--rule);
}

.live-history-section .section-head p {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.section-head {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 24px 24px;
  border-bottom: 1px solid var(--rule);
}

.section-head span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.section-head p {
  max-width: 410px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
}

.history-toolbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-strong);
}

.history-control {
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--rule);
}

.history-control > span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: 8px;
}

.history-control button {
  min-width: 54px;
  border-left: 1px solid var(--rule-soft);
  font-family: var(--pixel);
  font-size: 9px;
}

.history-control button:hover,
.history-control button.active {
  background: var(--ink);
  color: var(--buy);
}

.archive-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.archive-state i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--signal-gold);
}

.archive-state.is-complete i { background: var(--buy); }
.archive-state.is-partial i { background: var(--signal-coral); }

.history-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--rule);
}

.history-summary > div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px 22px;
  border-right: 1px solid var(--rule-soft);
}

.history-summary > div:last-child { border-right: 0; }

.history-summary span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.history-summary strong {
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.history-summary small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  text-transform: uppercase;
}

.history-moment {
  background: rgba(204, 255, 0, 0.08);
}

.history-replay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper-strong);
}

.replay-panel {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.replay-head,
.trail-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.replay-head > div,
.trail-head {
  text-transform: uppercase;
}

.replay-head span,
.trail-head span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
}

.replay-head strong,
.trail-head strong {
  display: block;
  margin-top: 5px;
  color: var(--buy);
  font-family: var(--pixel);
  font-size: 10px;
}

.replay-head a {
  flex: 0 0 auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--buy);
  color: var(--buy);
  font-size: 8px;
}

.replay-map {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #090a08;
}

.replay-tile {
  position: absolute;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #090a08;
  border-bottom: 1px solid #090a08;
  background: var(--series-color, var(--mint));
  color: var(--ink);
}

.replay-tile.is-buy-button {
  background: var(--buy);
}

.replay-tile-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
}

.replay-tile img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.replay-tile b {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--pixel);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-tile strong {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.replay-tile.is-small img,
.replay-tile.is-small strong { display: none; }
.replay-tile.is-tiny .replay-tile-inner { display: none; }

.replay-scrubber {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

.replay-scrubber input {
  width: 100%;
  accent-color: var(--buy);
}

.trail-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trail-head { align-items: center; }

#historyTrail {
  width: 100%;
  height: auto;
  min-height: 250px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.trail-grid-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trail-line {
  fill: none;
  stroke: var(--series-color, var(--buy));
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trail-playhead {
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.history-leaders {
  list-style: none;
}

.history-leaders li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 8px;
}

.history-leaders i {
  width: 8px;
  height: 8px;
  background: var(--series-color, var(--buy));
}

.history-leaders b {
  overflow: hidden;
  color: var(--paper-strong);
  font-family: var(--pixel);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-leaders span { color: rgba(255, 255, 255, 0.58); }
.history-leaders strong { color: var(--buy); font-size: 9px; }

.heatmap-shell {
  overflow-x: auto;
  background: var(--paper-strong);
}

.heatmap {
  min-width: 980px;
  --history-columns: 12;
}

.history-loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 11px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 170px repeat(var(--history-columns), minmax(60px, 1fr));
  min-height: 55px;
  border-bottom: 1px solid var(--rule-soft);
}

.heatmap-row > * {
  min-width: 0;
  border-right: 1px solid var(--rule-soft);
}

.heatmap-row > *:last-child {
  border-right: 0;
}

.heatmap-axis {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 42px;
  background: var(--paper);
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.heatmap-axis > * {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.heatmap-axis > span {
  justify-content: flex-start;
  padding-left: 16px;
}

.heatmap-token {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--paper);
}

.heatmap-token:hover {
  background: var(--buy);
}

.heatmap-token img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.heatmap-token b {
  overflow: hidden;
  font-family: var(--pixel);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-token span {
  color: var(--muted);
  font-size: 9px;
}

.heat-cell {
  display: grid;
  place-items: center;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.heat-cell.level-1 { background: #eef9c5; color: var(--ink); }
.heat-cell.level-2 { background: #ddf58b; color: var(--ink); }
.heat-cell.level-3 { background: #c9ed50; color: var(--ink); }
.heat-cell.level-4 { background: #9fd92c; color: var(--ink); }
.heat-cell.level-5 { background: var(--ink); color: var(--buy); }
.heat-cell.is-current { box-shadow: inset 0 -3px 0 var(--ink); }
.heat-cell.level-5.is-current { box-shadow: inset 0 -3px 0 var(--buy); }

.heatmap-total {
  min-height: 44px;
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper-strong);
}

.heatmap-total > * {
  display: grid;
  place-items: center;
  border-right-color: rgba(255, 255, 255, 0.2);
  font-family: var(--pixel);
  font-size: 8px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100% - 32px));
  padding: 13px 16px;
  border: 1px solid var(--paper-strong);
  background: var(--ink);
  color: var(--buy);
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.method-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.method-bar b {
  color: var(--ink);
}

.method-bar a {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  :root { --page: min(100%, calc(100% - 36px)); }
  .masthead { grid-template-columns: 1fr 320px; gap: 40px; padding-inline: 18px; }
  .masthead h1 { font-size: 84px; }
  .floor-key span:nth-child(2) { display: none; }
  .floor-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .conditions-rail { grid-template-columns: minmax(180px, 0.35fr) minmax(330px, 1fr); }
  .conditions-rail > p { grid-column: 1 / -1; min-height: 48px; border-top: 1px solid var(--rule-soft); }
  .condition-meter { border-right: 0; }
  .history-summary { grid-template-columns: repeat(3, 1fr); }
  .history-summary > div { border-right: 1px solid var(--rule-soft); }
  .history-summary > div:nth-child(3n) { border-right: 0; }
  .history-summary > div:nth-child(-n + 3) { border-bottom: 1px solid var(--rule-soft); }
}

@media (max-width: 820px) {
  :root { --page: 100%; }
  .site-header { padding-inline: 18px; }
  .site-header nav { justify-content: flex-start; gap: 20px; overflow-x: auto; }
  .masthead { min-height: 0; grid-template-columns: 1fr; gap: 36px; padding: 46px 20px 40px; }
  .masthead h1 { font-size: 72px; }
  .masthead-readout { max-width: 500px; }
  .summary-rail > div { padding-inline: 18px; }
  .floor-toolbar { grid-template-columns: 1fr auto 54px; }
  .window-control { border-right: 0; }
  .floor-key { grid-column: 1 / -1; grid-row: 2; min-height: 42px; justify-content: flex-start; border-top: 1px solid var(--rule); }
  .share-button { grid-column: 2; grid-row: 1; }
  .refresh-button { grid-column: 3; grid-row: 1; }
  .floor-grid { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--rule); }
  .press-map { height: 620px; }
  .press-tape { min-height: 390px; }
  .section-head { padding-inline: 20px; }
  .history-toolbar { grid-template-columns: 1fr; }
  .history-control { border-right: 0; border-bottom: 1px solid var(--rule); }
  .history-control button { flex: 1; }
  .archive-state { min-height: 52px; justify-content: flex-start; }
  .history-replay-grid { grid-template-columns: 1fr; }
  .replay-panel { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
  .method-bar { flex-wrap: wrap; gap: 10px 22px; }
}

@media (max-width: 620px) {
  body { background: var(--paper); }
  .header-line { min-height: 46px; }
  .site-header nav { min-height: 48px; }
  .masthead h1 { font-size: 56px; }
  .masthead-readout strong { font-size: 52px; }
  .summary-rail { grid-template-columns: 1fr; }
  .summary-rail > div { min-height: 105px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .summary-rail > div:last-child { border-bottom: 0; }
  .conditions-rail { grid-template-columns: minmax(132px, 0.4fr) minmax(0, 1fr); }
  .condition-readout { min-height: 76px; padding-inline: 14px; border-right: 1px solid var(--rule); border-bottom: 0; }
  .condition-readout output { font-size: 17px; }
  .condition-meter { min-height: 76px; padding-inline: 14px; }
  .condition-scale { font-size: 6px; }
  .conditions-rail > p { min-height: 58px; grid-column: 1 / -1; padding-inline: 14px; }
  .window-control > span { display: none; }
  .window-control button { flex: 1; min-width: 0; padding-inline: 3px; }
  .window-control button span { font-size: 6px; }
  .window-control button strong { font-size: 11px; }
  .floor-key { gap: 14px; overflow-x: auto; white-space: nowrap; }
  .share-button { width: 50px; padding: 0; }
  .share-button span { display: none; }
  .press-map { height: 560px; }
  .quiet-rail { grid-template-columns: 1fr; gap: 8px; }
  .small-rail { grid-template-columns: 1fr; gap: 8px; }
  .map-status { min-height: 62px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-block: 8px; }
  .map-insight { max-width: 100%; margin: 0; }
  .section-head { min-height: 0; align-items: flex-start; flex-direction: column; gap: 13px; padding-block: 24px; }
  .section-head h2 { font-size: 32px; }
  .section-head p { font-size: 13px; }
  .history-control > span { display: none; }
  .history-control button { min-width: 0; min-height: 54px; }
  .history-summary { grid-template-columns: 1fr 1fr; }
  .history-summary > div { border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
  .history-summary > div:nth-child(2n) { border-right: 0; }
  .history-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .history-summary strong { font-size: 23px; }
  .replay-map { height: 360px; }
  .replay-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .replay-scrubber { grid-template-columns: 1fr; gap: 7px; padding-block: 14px; }
  .replay-scrubber span:last-child { text-align: right; }
  .method-bar { padding: 16px; }
  .method-bar a { width: 100%; margin-left: 0; }
  footer { min-height: 92px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
