:root {
  --acid: #ccff00;
  --ink: #110e08;
  --paper: #f7f7f5;
  --white: #ffffff;
  --muted: #66665d;
  --rule: rgba(17, 14, 8, .24);
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body.loop-page {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 8%, rgba(204, 255, 0, .26), transparent 30%),
    var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 4px solid #c92e29; outline-offset: 4px; }

.loop-page main {
  width: min(1560px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.receipt {
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--acid);
}

.receipt-head,
.section-index,
.receipt-foot div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font: 700 10px/1.25 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.receipt-head {
  min-height: 70px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}

.receipt-head div { display: flex; gap: 28px; }
.receipt-head strong { font-weight: 500; }
.receipt-head a { text-decoration: none; }
.receipt-head a:hover { text-decoration: underline; text-underline-offset: 4px; }

.manifesto {
  position: relative;
  min-height: clamp(500px, 70vw, 810px);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 14, 8, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 14, 8, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.manifesto-copy {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 78px);
}

.manifesto-copy p {
  margin: 0 0 36px;
  font: 700 11px/1 var(--mono);
  letter-spacing: .14em;
}

.manifesto h1 {
  max-width: 1240px;
  margin: 0;
  font-size: clamp(58px, 9.25vw, 146px);
  font-weight: 950;
  letter-spacing: -.072em;
  line-height: .78;
  text-transform: uppercase;
}

.manifesto h1 span { display: block; }
.manifesto h1 span:nth-child(2) { color: #557900; }

.manifesto img {
  position: absolute;
  z-index: 1;
  right: -9%;
  bottom: -22%;
  width: min(66%, 940px);
  height: auto;
  opacity: .13;
  filter: grayscale(1) contrast(1.25);
  transform: rotate(-7deg);
}

.section-index {
  min-height: 54px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--ink);
}

.section-index span:last-child { color: var(--muted); font-weight: 500; }
.section-index.dark span:last-child { color: rgba(255,255,255,.66); }

.dead-balance { border-bottom: 1px solid var(--ink); background: var(--white); }

.mega-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: clamp(34px, 5vw, 72px) 24px clamp(24px, 3.4vw, 52px);
  overflow: hidden;
  white-space: nowrap;
}

.mega-number strong {
  font-size: clamp(58px, 10vw, 166px);
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: .76;
}

.mega-number span { font: 650 clamp(13px, 1.45vw, 21px)/1 var(--mono); }

.balance-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 18px 24px;
  border-top: 1px solid var(--ink);
  font: 650 11px/1.45 var(--mono);
}

.balance-foot strong { font-size: 17px; }
.balance-foot span { color: var(--muted); }
.balance-foot a { font-size: 10px; letter-spacing: .08em; text-underline-offset: 4px; }

.latest { border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.latest .section-index { border-color: rgba(255,255,255,.3); }

.latest-grid { display: grid; grid-template-columns: 1fr 1fr; }

.latest-stat {
  min-width: 0;
  padding: clamp(30px, 4vw, 62px) 24px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.latest-stat + .latest-stat { border-left: 1px solid rgba(255,255,255,.3); }
.latest-stat span, .latest-stat strong, .latest-stat small { display: block; }
.latest-stat span { margin-bottom: 23px; color: var(--acid); font: 700 11px/1 var(--mono); letter-spacing: .12em; }
.latest-stat strong { font-size: clamp(25px, 3.5vw, 55px); font-weight: 850; letter-spacing: -.05em; line-height: .9; overflow-wrap: anywhere; }
.latest-stat small { margin-top: 18px; color: rgba(255,255,255,.6); font: 500 9px/1.4 var(--mono); letter-spacing: .08em; }

.tx-link {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 16px 24px;
  color: var(--white);
  font: 650 10px/1.4 var(--mono);
  text-decoration: none;
}

.tx-link span { color: var(--acid); letter-spacing: .1em; }
.tx-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.tx-link b { color: var(--acid); font-size: 20px; }
.tx-link:hover { background: var(--acid); color: var(--ink); }
.tx-link:hover span, .tx-link:hover b { color: var(--ink); }

.destinations { border-bottom: 1px solid var(--ink); }
.destination-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }

.destination {
  min-height: 310px;
  padding: clamp(22px, 2.5vw, 38px) 20px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.destination:last-child { border-right: 0; }
.destination:hover { background: var(--acid); }
.destination-primary { background: var(--acid); }
.destination-reserve { background: #e8e8e1; }
.destination .percent { font-size: clamp(54px, 6vw, 92px); font-weight: 950; letter-spacing: -.07em; line-height: .78; }
.destination strong { margin-top: 36px; font-size: clamp(18px, 2vw, 30px); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.destination small { margin-top: auto; padding-top: 28px; color: var(--muted); font: 500 9px/1.35 var(--mono); overflow-wrap: anywhere; }
.destination code { margin-top: 11px; font: 650 10px/1 var(--mono); }

.proof-boundary {
  display: grid;
  grid-template-columns: 1fr 1fr .92fr;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.proof-boundary > div,
.proof-boundary nav { min-height: 195px; padding: 28px 24px; }
.proof-boundary > div { border-right: 1px solid var(--ink); }
.proof-boundary span { display: block; margin-bottom: 20px; color: #557900; font: 700 10px/1 var(--mono); letter-spacing: .11em; }
.proof-boundary strong { display: block; max-width: 380px; font-size: clamp(20px, 2.2vw, 33px); letter-spacing: -.045em; line-height: .96; }
.proof-boundary p { max-width: 390px; margin: 18px 0 0; color: var(--muted); font: 500 11px/1.5 var(--mono); }
.proof-boundary nav { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.proof-boundary nav a { padding-bottom: 10px; border-bottom: 1px solid var(--rule); font: 650 10px/1.3 var(--mono); letter-spacing: .04em; text-decoration: none; }
.proof-boundary nav a:hover { border-color: var(--ink); }

.receipt-foot { padding: 23px 24px; }
.receipt-foot p { max-width: 1180px; margin: 0 0 28px; color: var(--muted); font: 500 9px/1.55 var(--mono); letter-spacing: .035em; }
.receipt-foot p strong { color: var(--ink); }
.receipt-foot div { padding-top: 17px; border-top: 1px solid var(--rule); }
.receipt-foot a { text-underline-offset: 4px; }

@media (max-width: 980px) {
  .loop-page main { width: min(100% - 28px, 1560px); padding-top: 14px; }
  .receipt { box-shadow: 8px 8px 0 var(--acid); }
  .manifesto { min-height: 620px; }
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .destination { min-height: 260px; border-bottom: 1px solid var(--ink); }
  .destination:nth-child(2n) { border-right: 0; }
  .destination:last-child { grid-column: 1 / -1; min-height: 220px; border-bottom: 0; }
  .proof-boundary { grid-template-columns: 1fr 1fr; }
  .proof-boundary nav { grid-column: 1 / -1; min-height: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 680px) {
  .receipt-head, .section-index, .receipt-foot div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .receipt-head div { flex-direction: column; gap: 6px; }
  .manifesto { min-height: 510px; }
  .manifesto-copy { padding: 42px 20px; }
  .manifesto-copy p { margin-bottom: 28px; }
  .manifesto h1 { font-size: clamp(48px, 16.2vw, 94px); line-height: .81; }
  .manifesto img { right: -22%; bottom: -4%; width: 96%; }
  .mega-number { display: block; padding: 36px 18px 28px; white-space: normal; }
  .mega-number strong, .mega-number span { display: block; }
  .mega-number strong { font-size: clamp(54px, 17vw, 105px); }
  .mega-number span { margin-top: 14px; overflow-wrap: anywhere; }
  .balance-foot { grid-template-columns: 1fr; gap: 9px; padding: 18px; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-stat + .latest-stat { border-left: 0; }
  .tx-link { grid-template-columns: 1fr auto; }
  .tx-link span { grid-column: 1 / -1; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination, .destination:nth-child(2n), .destination:last-child { grid-column: auto; min-height: 225px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .destination:last-child { border-bottom: 0; }
  .destination strong { margin-top: 22px; }
  .proof-boundary { grid-template-columns: 1fr; }
  .proof-boundary > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .proof-boundary nav { grid-column: auto; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media print {
  body.loop-page { background: #fff; }
  .loop-page main { width: 100%; padding: 0; }
  .receipt { box-shadow: none; }
}
