:root {
  color-scheme: dark;
  --orange: #ff6600;
  --orange-hover: #ff7c24;
  --bg: #000000;
  --surface: #0a0807;
  --surface-raised: #110d0a;
  /* Gallery thumbnails are letterboxed on this color. */
  --art-bg: #111111;
  --line: rgb(255 102 0 / 16%);
  --line-strong: rgb(255 102 0 / 34%);
  --text: #f3c7a3;
  --muted: #a8805f;
  --faint: #6f5643;
  --positive: #8fe05a;
  --negative: #ff7a6e;
  --monero: #ff6600;
  --zcash: #f4b728;
  --dash: #008de4;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-height: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--orange);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgb(255 102 0 / 45%);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--orange-hover);
  text-decoration-color: currentColor;
}

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

::selection {
  background: var(--orange);
  color: #000000;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--orange);
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  margin: 0;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--orange);
  color: #000000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(0 0 0 / 92%);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.topbar .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: var(--bar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--orange);
}

.nav a[aria-current="page"] {
  color: var(--orange);
}

.nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: -11px;
  left: 12px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.token {
  display: flex;
  align-items: center;
  gap: 16px;
}

.token-cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.token-cap-label {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.token-cap-value {
  min-width: 7ch;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #000000;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.button:hover {
  border-color: var(--orange-hover);
  background: var(--orange-hover);
  color: #000000;
}

.button:active {
  transform: translateY(1px);
}

.button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--orange);
}

.button-quiet:hover {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange);
}

/* Footer */

.footer {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-block: 40px 56px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.contract {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.contract code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy-button {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--orange);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Page header */

.page-head {
  padding-block: clamp(48px, 9vw, 112px) clamp(32px, 5vw, 56px);
}

.page-head h1 {
  margin-top: 16px;
  font-size: clamp(40px, 7.2vw, 88px);
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.page-head .lede {
  max-width: 38ch;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

/* Manifesto */

.pull-quote {
  margin: 0;
  padding-block: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--line);
}

.pull-quote p {
  max-width: 24ch;
  margin: 0;
  color: var(--orange);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.pull-quote cite {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.points li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px 48px;
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  counter-increment: point;
}

.points h2 {
  display: flex;
  gap: 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.points h2::before {
  flex: none;
  padding-top: 0.45em;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  content: counter(point, decimal-leading-zero);
}

.points p {
  max-width: 62ch;
  margin: 0;
}

.source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
}

.source p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.strip {
  margin-top: clamp(64px, 9vw, 112px);
}

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.strip-head a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.strip-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--art-bg);
  aspect-ratio: 1;
  transition: border-color 0.15s ease;
}

.strip-grid a:hover {
  border-color: var(--orange);
}

.strip-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Manifesto: privacy chains in use */

.usage {
  margin-top: clamp(64px, 9vw, 112px);
}

.usage-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 24px;
}

.usage-head h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.usage-head > p {
  max-width: 52ch;
  margin: 0;
}

.usage .chart-status {
  min-height: clamp(180px, 30vw, calc(50vh - 135px));
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.legend .label {
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.legend-item b {
  color: var(--orange);
  font-weight: 600;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--art-bg);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  aspect-ratio: 1;
  transition: border-color 0.15s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.tile:hover {
  border-color: var(--orange);
}

.tile:hover img {
  transform: scale(1.03);
}

.tile-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 86%);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tile:hover .tile-caption,
.tile:focus-visible .tile-caption {
  opacity: 1;
  transform: none;
}

.viewer {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
}

.viewer::backdrop {
  background: rgb(0 0 0 / 84%);
}

.viewer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  max-height: calc(100dvh - 34px);
}

.viewer-image {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  background: var(--art-bg);
}

.viewer-image img {
  max-height: calc(100dvh - 34px);
  object-fit: contain;
}

.viewer-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.viewer-meta h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.viewer-meta dl {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 16px;
}

.viewer-meta dd {
  margin: 0 0 12px;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Transactions */

.tx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.tx-head h1 {
  font-size: clamp(36px, 5.6vw, 64px);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.segmented button + button {
  border-left: 1px solid var(--line-strong);
}

.segmented button:hover {
  color: var(--orange);
}

.segmented button[aria-pressed="true"] {
  background: var(--orange);
  color: #000000;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.metric {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 24px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: var(--series);
  content: "";
}

.metric:hover {
  background: var(--surface);
}

.metric[aria-pressed="false"] {
  opacity: 0.45;
}

.metric-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.metric-toggle {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 8px;
  color: var(--orange);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.change-up {
  color: var(--positive);
}

.change-down {
  color: var(--negative);
}

.chart-card {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.chart-bar .label {
  color: var(--muted);
}

.chart {
  position: relative;
  padding: 12px 12px 4px 0;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}

.chart-status {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-status button {
  margin-top: 16px;
}

.grid-line {
  stroke: rgb(255 102 0 / 10%);
  stroke-width: 1;
}

.axis-label {
  fill: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.series-line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 1.75;
  vector-effect: non-scaling-stroke;
}

.cursor-line {
  stroke: rgb(255 102 0 / 45%);
  stroke-dasharray: 3 3;
}

.tooltip {
  position: absolute;
  top: 16px;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 94%);
  font-family: var(--mono);
  font-size: 12px;
  pointer-events: none;
}

.tooltip[hidden] {
  display: none;
}

.tooltip-date {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--orange);
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}

.tooltip-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--series);
}

.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px 48px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.note h2 {
  margin-top: 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.note p {
  max-width: 62ch;
  margin: 0 0 16px;
}

.note strong {
  color: var(--orange);
}

/* Hidden game trigger: a dim square at the very bottom of the footer. */

.footer .wrap {
  position: relative;
}

.egg {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  background: var(--orange);
  opacity: 0.14;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.egg::after {
  position: absolute;
  inset: -10px;
  content: "";
}

.egg:hover,
.egg:focus-visible {
  opacity: 0.6;
  transform: rotate(45deg);
}

/* Press 6 then 7: the page weighs its options for a second. */

html {
  overflow-x: clip;
}

body.six-seven {
  animation: six-seven 1s cubic-bezier(0.37, 0, 0.63, 1);
}

@keyframes six-seven {
  0%,
  100% {
    transform: none;
  }

  12% {
    transform: translateY(-5px) rotate(-1.1deg);
  }

  30% {
    transform: translateY(5px) rotate(1.1deg);
  }

  48% {
    transform: translateY(-4px) rotate(-0.9deg);
  }

  66% {
    transform: translateY(4px) rotate(0.9deg);
  }

  84% {
    transform: translateY(-2px) rotate(-0.4deg);
  }
}

/* IRS minigame */

html.irs-open {
  overflow: hidden;
}

.irs {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.irs[open] {
  display: grid;
  place-items: center;
}

.irs::backdrop {
  background: rgb(0 0 0 / 92%);
}

.irs-stage {
  position: relative;
  width: min(calc(100vw - 24px), calc((100dvh - 24px) * 9 / 16), 440px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 9 / 16;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.irs-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.irs-hud {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.irs-hud .copy-button {
  background: rgb(0 0 0 / 70%);
}

.irs-panel {
  position: absolute;
  right: 16px;
  bottom: 72px;
  left: 16px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 88%);
}

.irs-panel[hidden] {
  display: none;
}

.irs-panel h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.irs-panel p {
  margin: 0;
  font-size: 16px;
}

.irs-god {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.irs-score {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px !important;
}

.irs-score b {
  color: var(--orange);
  font-size: 16px;
}

.irs-form {
  display: grid;
  gap: 6px;
}

.irs-row {
  display: flex;
  gap: 6px;
}

.irs-row input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #000000;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 16px;
}

.irs-row input:focus {
  border-color: var(--orange);
  outline: none;
}

.irs-row button:disabled,
.irs-row input:disabled {
  opacity: 0.5;
  cursor: default;
}

.irs-msg {
  min-height: 1.2em;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px !important;
}

.irs-board {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.irs-board[hidden] {
  display: none;
}

.irs-board li span {
  display: inline-block;
  min-width: 14ch;
  color: var(--text);
}

.irs-board b {
  color: var(--orange);
}

.irs-hint {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.06em;
}

.irs-shiver {
  animation: irs-shiver 0.5s ease;
}

@keyframes irs-shiver {
  0%,
  100% {
    transform: none;
  }

  20% {
    transform: translateX(-6px) rotate(-1deg);
  }

  40% {
    transform: translateX(6px) rotate(1deg);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .topbar .wrap {
    grid-template-columns: auto auto;
    gap: 0 16px;
    padding-top: 10px;
  }

  .token {
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    margin-inline: -12px;
  }

  .nav a[aria-current="page"]::after {
    bottom: 0;
  }

  .points li,
  .usage-head,
  .note {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric + .metric {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .viewer-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .viewer-image img {
    max-height: 64dvh;
  }

  .viewer-meta {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .brand span {
    font-size: 18px;
  }

  .token-cap-label {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .chart-bar,
  .chart-foot {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
