@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/ibm-plex-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b1021;
  --ivory: #f4efe6;
  --cobalt: #315cf5;
  --pale: #e5ebff;
  --paper-ink: #161e33;
  --muted: #aeb9d3;
  --rule: #303b56;
  --display: Bricolage, "Helvetica Neue", sans-serif;
  --mono: Plex, monospace;
  --gutter: clamp(20px, 5.5vw, 86px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 16px/1.5 var(--display);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #88a5ff;
  outline-offset: 4px;
}
::selection { background: #b5c6ff; color: var(--ink); }
.shell { width: min(1376px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.micro { font: 400 11px/1.35 var(--mono); letter-spacing: .10em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 12px; color: var(--ink); background: var(--ivory); transform: translateY(-150%); }
.skip:focus { transform: none; }

.mast { min-height: 78px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; gap: 8px; align-items: center; width: fit-content; font-size: 26px; font-weight: 760; letter-spacing: -.055em; line-height: 1; }
.brand img { display: block; flex: none; }
.mast nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 52px); }
.mast nav a, .nav-action { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--muted); background: transparent; border: 0; padding: 0; font-size: 14px; transition: color 160ms; }
.mast nav a:hover, .nav-action:hover { color: var(--ivory); }

.environment { justify-self: end; display: inline-flex; align-items: center; gap: 9px; color: #b3c2eb; white-space: nowrap; }
.environment i, .ticket-under i { width: 6px; height: 6px; border-radius: 50%; background: #809eff; flex: none; }

.workbench { min-width: 0; padding-top: 5px; scroll-margin-top: 18px; }
.workbench:focus { outline: none; }
.ticket {
  color-scheme: light;
  background: var(--ivory);
  color: var(--paper-ink);
  border: 1px solid #fff8eac7;
  border-radius: 18px;
  box-shadow: 0 22px 60px #04081438;
  overflow: clip;
}
.ticket :is(a, button, input, select):focus-visible { outline-color: #2349d8; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px clamp(18px, 3vw, 36px) 23px; }
.ticket-index { color: #3f5181; }
.ticket-head h2, .ledger-head h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 740; line-height: 1.05; letter-spacing: -.054em; margin-top: 5px; }
.paper-action {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: #2844a7;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.paper-action span { padding-inline-start: 3px; }
.paper-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.trade-halves, .readout-halves {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #e3e8f8;
  border-block: 1px solid #cbd1e2;
  overflow: hidden;
}
.trade-halves::before, .readout-halves::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #eae4d9;
  clip-path: polygon(0 0, 53% 0, 47% 100%, 0 100%);
}
.trade-halves::after, .readout-halves::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #8193d7;
  clip-path: polygon(53% 0, 53.3% 0, 47.3% 100%, 47% 100%);
  pointer-events: none;
}
.trade-side { min-width: 0; position: relative; z-index: 1; padding: 24px clamp(18px, 3vw, 36px) 22px; }
.trade-give { padding-right: clamp(23px, 3.1vw, 42px); }
.trade-take { padding-left: clamp(24px, 3.3vw, 46px); }
.side-index { display: flex; align-items: center; gap: 9px; color: #313d59; }
.side-index span { color: #4e6098; letter-spacing: 0; }
.asset-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; margin: 11px 0 4px; }
.asset-line > input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(27px, 3.8vw, 57px);
  letter-spacing: -.07em;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  padding: 4px 2px;
  border-radius: 4px;
}
.asset-line > input::placeholder { color: #535b71; opacity: 1; }
.asset-select { position: relative; }
.asset-select select {
  width: 89px;
  appearance: none;
  min-height: 44px;
  padding: 0 20px 0 9px;
  border: 1px solid #9da9ca;
  border-radius: 7px;
  background: #ffffff5e;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.asset-select::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: calc(50% - 4px);
  right: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.asset-note { color: #49536d; min-height: 18px; font-size: 13px; }
.mint-field { display: block; margin-bottom: 7px; }
.mint-field input { width: 100%; min-height: 42px; border: 1px solid #a4aecb; border-radius: 6px; background: #fff8; padding-inline: 9px; font: 12px/1 var(--mono); }
.joint {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33px;
  height: 33px;
  border: 1px solid #8897c7;
  border-radius: 50%;
  color: #2c438d;
  background: #f2f3fa;
  pointer-events: none;
}

.terms, .readout-terms {
  padding: 21px clamp(18px, 3vw, 36px) 0;
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 14px;
}
.term { min-width: 0; display: grid; gap: 6px; }
.term span { font-size: 14px; font-weight: 630; }
.term input, .term select {
  min-height: 45px;
  width: 100%;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid #b9bac6;
  border-radius: 7px;
  background: #fffdf7;
  font-size: 16px;
}
.term input::placeholder, .mint-field input::placeholder { color: #646b7e; opacity: 1; }
.term select { cursor: pointer; }
.paper-footer { padding: 18px clamp(18px, 3vw, 36px) 26px; }
.primary {
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: #264bd6;
  padding: 9px 15px 9px 17px;
  font-weight: 680;
  text-align: left;
  transition: background 180ms ease, transform 220ms var(--ease);
}
.primary:hover { background: #183ab9; }
.primary:active { transform: translateY(1px); }
.primary span:last-child { font-size: 19px; line-height: 1; }
.error { color: #972e2e; font-size: 14px; margin-bottom: 11px; }
[aria-invalid="true"] { box-shadow: inset 0 -2px #b23c3c; }
.ticket-under { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 16px; color: #b0bddb; padding-top: 14px; }
.ticket-under p { font-size: 13px; }

.readout-halves .trade-side { animation: align-halves 310ms var(--ease) both; }
.readout-halves .trade-take { --approach: 12px; }
@keyframes align-halves {
  from { opacity: 0; transform: translateX(var(--approach, -12px)); }
  to { opacity: 1; transform: translateX(0); }
}
.readout-value {
  margin: 9px 0 6px;
  font-size: clamp(26px, 3.4vw, 48px);
  font-variant-numeric: tabular-nums;
  line-height: .99;
  font-weight: 720;
  letter-spacing: -.057em;
  overflow-wrap: anywhere;
}
.readout-value span { display: block; margin-top: 6px; font: 400 13px/1.15 var(--mono); letter-spacing: 0; }
.mint-identity { color: #465273; }
.mint-identity summary { cursor: pointer; width: fit-content; min-height: 28px; display: list-item; font-size: 12px; padding-block: 4px; }
.mint-identity code, .term-value { display: block; overflow-wrap: anywhere; font: 12px/1.5 var(--mono); }
.readout-terms > div { min-width: 0; }
.term-label { display: block; margin-bottom: 4px; color: #4a5570; font-size: 13px; font-weight: 650; }
.term-value { color: var(--paper-ink); }
.readout-note { color: #4a5570; font-size: 14px; margin-bottom: 12px; }
.readout-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 4px; }
.copy-status { display: block; font-size: 13px; color: #2844a7; margin-top: 6px; }
.copy-status:empty { display: none; }
.manual-copy { display: block; width: 100%; min-height: 44px; padding: 9px; background: white; border: 1px solid #a4aecb; border-radius: 6px; font: 12px/1.4 var(--mono); margin-top: 8px; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 75px; border-top: 1px solid var(--rule); color: #b1bdd9; padding-block: 13px; }
.site-footer .brand { color: var(--ivory); font-size: 20px; }
.site-footer > p { font-size: 14px; }

dialog {
  color-scheme: light;
  width: min(510px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - 32px));
  border: 1px solid #fff8ea;
  border-radius: 15px;
  background: var(--ivory);
  color: var(--paper-ink);
  padding: 0;
  box-shadow: 0 22px 60px #04081480;
}
dialog::backdrop { background: #050816c4; }
dialog :is(button, a):focus-visible { outline-color: #2349d8; }
.ledger-inner { padding: clamp(18px, 4vw, 28px); }
.ledger-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.close-button { width: 44px; height: 44px; background: transparent; border: 1px solid #a5aec4; border-radius: 7px; font-size: 26px; line-height: 1; }
.ledger-note { margin-top: 10px; font-size: 15px; color: #4a5570; }
#ledger-list { padding: 0; margin: 15px 0 0; list-style: none; }
#ledger-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #c3c8d6; font-size: 14px; }
#ledger-list li > div { min-width: 0; overflow-wrap: anywhere; }
#ledger-list small { display: block; color: #4a5570; }
#ledger-list .empty-ledger { color: #4a5570; padding-block: 15px 4px; }


.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mast { min-height: 72px; }
.stage { padding-top: clamp(32px, 5vw, 70px); padding-bottom: clamp(60px, 8vw, 114px); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.18fr);
  gap: clamp(20px, 5vw, 76px);
  align-items: center;
  margin-bottom: clamp(36px, 5.3vw, 74px);
}
.intro-text { min-width: 0; }
.intro-index, .section-index { color: #aabbf7; display: flex; align-items: center; gap: 11px; }
.intro-index > span, .section-index > span { flex: none; width: 21px; height: 1px; background: #7795ff; }
.intro h1 {
  font-weight: 735;
  font-size: clamp(66px, 7.35vw, 116px);
  line-height: .88;
  letter-spacing: -.058em;
  margin: 22px 0 23px;
}
.intro h1 em { font-style: normal; color: #aebfff; }
.lede { color: #c1c9df; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.hero-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 46px; padding: 0 13px 0 15px; margin-top: 24px;
  background: var(--ivory); color: #171e34; border: 1px solid #fff8ef; border-radius: 5px;
  font-size: 14px; font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}
.hero-action:hover { background: #dce5ff; border-color: #dce5ff; }

.exchange-engine {
  min-width: 0;
  border-block: 1px solid #34405d;
  isolation: isolate;
  background: #0e152a;
  background: radial-gradient(ellipse at 53% 44%, #19264d 0%, #0e152a 55%, #0d1428 78%);
}
.engine-head, .engine-caption { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 clamp(13px, 2vw, 24px); }
.engine-head { min-height: 44px; color: #aebfe7; border-bottom: 1px solid #283655; font-size: 10px; }
.engine-head > span:first-child { display: flex; align-items: center; gap: 8px; color: #d6e0fb; }
.engine-head i { width: 6px; height: 6px; border-radius: 50%; background: #90aaff; }
.engine-scene { position: relative; aspect-ratio: 640 / 316; overflow: hidden; }
.engine-paths { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.engine-emblem {
  position: absolute; top: 50%; left: 50%; width: 52%; height: auto;
  transform: translate(-50%, -47%);
  mask-image: radial-gradient(ellipse 49% 42% at 50% 48%, #000 52%, transparent 100%);
}
.engine-grid { stroke: #8799d2; stroke-width: 1; opacity: .13; }
.engine-guide { stroke: #8198db; stroke-width: 1; stroke-dasharray: 2 5; opacity: .41; }
.engine-node { fill: #101932; fill-opacity: .74; stroke: #56658a; stroke-width: 1; }
.engine-node-inner { stroke: #7283b3; stroke-width: 1; stroke-dasharray: 2 4; opacity: .62; }
.engine-checkpoint { fill: var(--ivory); }
.engine-checkpoint-blue { fill: #92abff; }
.engine-party { position: absolute; top: 72%; z-index: 2; color: #d0dcfb; font-size: clamp(8px, .85vw, 11px); letter-spacing: .06em; }
.engine-maker { left: 11.875%; transform: translateX(-50%); }
.engine-recipient { right: 11.875%; transform: translateX(50%); }
.engine-caption { min-height: 60px; border-top: 1px solid #283655; }
.engine-readout { min-width: 0; display: grid; gap: 3px; }
.engine-readout .micro { color: #a8baf3; font-size: 9px; }
#engine-label { color: var(--ivory); font-size: clamp(13px, 1.45vw, 17px); line-height: 1.18; font-weight: 650; }
.workbench { width: min(920px, 100%); margin-inline: auto; padding-top: 0; }
.ticket {
  --paper-rule: #384568;
  --paper-text: #e7ecfc;
  --paper-muted: #aebddd;
  color-scheme: dark; color: var(--paper-text); background: #141d35;
  border: 1px solid var(--paper-rule); border-radius: 9px; box-shadow: 0 28px 54px #050a1773;
}
.ticket :is(a, button, input, select):focus-visible { outline-color: #9bb3ff; }
.ticket-head { padding-block: 21px 20px; }
.ticket-index { color: #a5b9f6; }
.ticket-head h2 { color: var(--ivory); }
.paper-action { color: #b5c6ff; }
.trade-halves, .readout-halves { background: #222e51; border-color: var(--paper-rule); }
.trade-halves::before, .readout-halves::before { background: #1b2540; }
.trade-halves::after, .readout-halves::after { background: #5066a6; }
.side-index { color: #d1ddfa; }
.side-index span { color: #a3b9ff; }
.asset-line > input::placeholder { color: #a6b5d8; }
.asset-select select, .mint-field input, .term input, .term select, .manual-copy {
  border-color: #526383;
  color: var(--paper-text);
  background: #0f1831;
  border-radius: 5px;
}
.asset-select select:hover, .term select:hover { border-color: #8197d1; }
.asset-note, .term input::placeholder, .mint-field input::placeholder { color: var(--paper-muted); }
.joint { color: #c5d1f5; background: #172241; border-color: #657cbd; }
.term span, .term-value { color: var(--paper-text); }
.primary {
  min-height: 51px; color: white; background: #284ddc;
  border-radius: 5px; padding-inline: 16px;
}
.primary:hover { background: #345df0; }
.primary > .icon { color: #e1e8ff; }
.error { color: #ffb4ae; }
[aria-invalid="true"] { box-shadow: inset 0 -2px #ef9288; }
.mint-identity, .term-label, .readout-note { color: var(--paper-muted); }
.copy-status { color: #a9c0ff; }
.readout-links > a { display: inline-flex; align-items: center; }
.stage.incoming .intro { display: none; }
.stage.incoming .workbench { max-width: 740px; }
#readout:has(#readout-halves:empty) :is(.readout-halves, .readout-terms) { display: none; }

.mechanics { border-top: 1px solid var(--rule); padding-block: clamp(37px, 6vw, 79px); scroll-margin-top: 18px; }
.mechanics-lead { display: grid; grid-template-columns: 1fr minmax(190px, 28%); align-items: end; gap: 14px; margin-bottom: 25px; }
.mechanics-lead h2 { font-size: clamp(41px, 6vw, 86px); font-weight: 700; letter-spacing: -.054em; word-spacing: .04em; line-height: .91; margin-top: 13px; }
.mechanics-hint { max-width: 24ch; justify-self: end; color: #bec9e4; font-size: 16px; line-height: 1.42; }
.walkthrough { background: #141d35; border: 1px solid #354266; border-radius: 8px; overflow: hidden; }
.walkthrough-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #354266; }
.walkthrough-tabs button {
  position: relative; min-height: 58px; border: 0; border-right: 1px solid #354266;
  padding: 8px clamp(12px, 2.6vw, 27px); text-align: left;
  background: #111a31; color: #c4cfee; font-size: 15px; font-weight: 680;
}
.walkthrough-tabs button:last-child { border-right: 0; }
.walkthrough-tabs button .micro { color: #a1b4ed; padding-right: 7px; }
.walkthrough-tabs button:hover { background: #1b294f; }
.walkthrough-tabs button[aria-pressed="true"] { background: #243666; color: var(--ivory); }
.walkthrough-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #89a1ff; }
.walkthrough-tabs button:focus-visible { outline-offset: -4px; z-index: 1; }
.walkthrough-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(235px, .9fr); }
.exchange-board { padding: clamp(18px, 3.7vw, 41px) clamp(15px, 4vw, 50px); background: #111a30; }
.board-stations, .board-lane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; }
.board-stations { color: #bbc9ee; text-align: center; margin-bottom: 8px; }
.board-lane { position: relative; height: 63px; isolation: isolate; }
.board-lane::before {
  content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 50%; height: 1px;
  background: #657cac; z-index: -1;
}
.board-lane-blue::before { background: #617dcb; }
.board-lane::after {
  content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 50%; height: 1px;
  background: #f1dfc3; z-index: -1; transform: scaleX(var(--lane-progress, 0));
  transform-origin: left; transition: transform 670ms cubic-bezier(.2, .78, .2, 1);
}
.board-lane-blue::after { background: #9eb2ff; transform-origin: right; }
.exchange-board[data-phase="2"] .board-lane { --lane-progress: 1; }
.exchange-board[data-phase="1"] .board-stations span:nth-child(2) { color: #fff2dd; }
.board-pin { width: 8px; height: 8px; border: 1px solid #8194bf; border-radius: 50%; background: #16223e; }
.board-token {
  position: absolute; top: 50%; left: var(--token-position); transform: translate(-50%, -50%);
  white-space: nowrap; padding: 8px 10px; border-radius: 4px;
  display: flex; align-items: center; gap: 7px; font: 12px/1.2 var(--mono);
  transition: left 670ms cubic-bezier(.2, .78, .2, 1);
}
.board-token i { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.board-lane-ivory .board-token { --token-position: 16.667%; background: #eee7da; color: #242b40; }
.board-lane-blue .board-token { --token-position: 83.333%; background: #2948b3; color: #f3f6ff; }
.exchange-board[data-phase="2"] .board-lane-ivory .board-token { --token-position: 83.333%; }
.exchange-board[data-phase="2"] .board-lane-blue .board-token { --token-position: 16.667%; }
.walkthrough-notes { min-height: 200px; padding: clamp(20px, 3.5vw, 37px); border-left: 1px solid #354266; }
.walkthrough-notes .micro { color: #a5b9f6; }
.walkthrough-notes h3 { margin: 9px 0 7px; color: var(--ivory); font-size: clamp(22px, 2.8vw, 38px); line-height: 1; letter-spacing: -.04em; }
.walkthrough-notes p:last-child { color: #c0cbea; font-size: 15px; line-height: 1.45; max-width: 34ch; }
.walkthrough-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px 15px; flex-wrap: wrap; padding: 12px clamp(12px, 2.6vw, 27px); border-top: 1px solid #354266; color: #c0cbea; font-size: 13px; }
.walkthrough-footer .micro { color: #afc0f5; }
.close-button { display: grid; place-items: center; }
.close-button:hover { background: #e5ebff; }

@media (max-width: 920px) {
  .intro { gap: 23px; }
  .intro h1 { font-size: clamp(56px, 8.2vw, 81px); }
}
@media (max-width: 690px) {
  :root { --gutter: clamp(16px, 4.4vw, 25px); }
  .mast { min-height: 62px; grid-template-columns: 1fr auto; gap: 12px; }
  .mast .brand { font-size: 23px; }
  .mast nav { gap: 16px; }
  .mast nav a, .nav-action { font-size: 13px; white-space: nowrap; }
  .environment { display: none; }
  .stage { padding-top: 29px; padding-bottom: 48px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 33px; }
  .intro h1 { font-size: clamp(56px, 13.2vw, 89px); margin: 15px 0 15px; }
  .intro h1 br { display: none; }
  .intro h1 em { display: inline-block; }
  .lede { font-size: 16px; }
  .hero-action { margin-top: 16px; }
  .engine-head { min-height: 35px; }
  .engine-caption { min-height: 55px; }
  .engine-party { font-size: 9px; }
  .ticket-head { padding-block: 14px; }
  .trade-side { padding-block: 16px; }
  .asset-line > input { font-size: clamp(28px, 7vw, 51px); }
  .terms { padding-top: 16px; }
  .paper-footer { padding-block: 15px 19px; }
  .mechanics-lead { grid-template-columns: 1fr; gap: 11px; margin-bottom: 17px; }
  .mechanics-hint { justify-self: start; max-width: 31ch; font-size: 15px; }
  .walkthrough-body { grid-template-columns: 1fr; }
  .walkthrough-notes { border-left: 0; border-top: 1px solid #354266; min-height: 146px; }
  .exchange-board { padding-block: 18px 12px; }
  .board-lane { height: 52px; }
}
@media (max-width: 470px) {
  .intro h1 br { display: initial; }
  .intro h1 em { display: inline; }
  .trade-halves, .readout-halves { grid-template-columns: 1fr; }
  .trade-halves::before, .trade-halves::after, .readout-halves::before, .readout-halves::after { content: none; }
  .trade-give, .trade-take { padding: 12px 15px 10px; }
  .trade-give { background: #1b2540; border-bottom: 1px solid #4d608f; }
  .trade-take { background: #222e51; }
  .asset-line { margin: 3px 0 0; }
  .asset-line > input { padding-block: 0; font-size: 33px; }
  .asset-select select { width: 109px; }
  .asset-note { min-height: 17px; font-size: 12px; }
  .joint { display: none; }
  .ticket-head { padding: 13px 14px 13px 15px; }
  .ticket-head h2 { font-size: 25px; }
  .paper-action { font-size: 13px; }
  .terms, .readout-terms { padding: 13px 15px 0; gap: 8px; }
  .terms { grid-template-columns: minmax(0, 1fr) minmax(108px, .52fr); }
  .term input, .term select { padding-inline: 8px; }
  .term span { font-size: 13px; }
  .paper-footer { padding: 12px 15px 15px; }
  .ticket-under { column-gap: 12px; padding-top: 12px; }
  .ticket-under p { font-size: 12px; }
  .walkthrough-tabs button { min-height: 55px; font-size: 14px; padding: 7px 10px; }
  .walkthrough-tabs button .micro { display: block; padding-right: 0; }
  .board-token { font-size: 11px; padding-inline: 7px; gap: 4px; }
  .board-stations { font-size: 9px; letter-spacing: .05em; }
  .site-footer > span { display: none; }
}
@media (max-width: 350px) {
  .mast { gap: 10px; }
  .mast nav { gap: 10px; }
  .mast nav a, .nav-action { font-size: 12px; }
  .ticket-head { gap: 6px; }
  .ticket-head h2 { font-size: 23px; }
  .ticket-head .micro { font-size: 9px; letter-spacing: .045em; }
  .terms, .readout-terms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.ticket-under > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ticket-under > div > span { display: inline-flex; gap: 7px; align-items: center; color: #b4c4ff; }
.ticket-under > a { min-height: 44px; color: #a9beff; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: underline; text-decoration-color: #7895ee; text-underline-offset: 4px; white-space: nowrap; }
.ticket-under > a:hover { color: #e1e9ff; }

.swap-rules { padding-block: clamp(32px, 5vw, 68px); border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.swap-rules:focus { outline: none; }
.rules-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, .72fr); gap: 20px 30px; align-items: end; margin-bottom: clamp(24px, 3.6vw, 44px); }
.rules-head h2 { font-size: clamp(41px, 5.6vw, 75px); line-height: .97; font-weight: 700; letter-spacing: -.05em; margin-top: 12px; }
.practice-summary { border-left: 2px solid #7f9bff; padding: 6px 0 6px 15px; }
.practice-summary .micro, .rules-status { color: #b5c6ff; }
.practice-summary p:last-child, .rule-ledger li > p { color: #c0cbea; font-size: 15px; line-height: 1.42; }
.practice-summary p:last-child { margin-top: 5px; max-width: 43ch; }
.rules-status { margin-bottom: 10px; }
.rule-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid #405078; }
.rule-ledger li { display: grid; grid-template-columns: 28px minmax(150px, .52fr) minmax(0, 1fr); gap: 10px 17px; padding: 15px 0; align-items: baseline; border-bottom: 1px solid var(--rule); }
.rule-number { color: #a8bcfa; }
.rule-ledger h3 { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.15; letter-spacing: -.025em; }
.rule-ledger li > p { max-width: 67ch; }

@media (max-width: 690px) {
  .rules-head { grid-template-columns: 1fr; }
  .rule-ledger li { grid-template-columns: 25px minmax(0, 1fr); gap: 5px 8px; padding-block: 13px; }
  .rule-ledger li > p { grid-column: 2; }
}
@media (max-width: 470px) {
  .ticket-under > div { display: grid; gap: 4px; }
}

.network-controls { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.network-modes { display: flex; border: 1px solid #405078; border-radius: 5px; overflow: hidden; }
.network-modes button { min-height: 42px; padding: 0 12px; color: #bac9f4; border: 0; background: transparent; font-size: 14px; }
.network-modes button[aria-pressed="true"] { background: #263b70; color: var(--ivory); }
.network-modes button:focus-visible { outline-offset: -3px; }
#network-controls > button { min-height: 44px; border: 1px solid #405078; border-radius: 5px; padding-inline: 10px; }
#network-controls > button:hover { background: #263b70; }
.chain-actions { margin-bottom: 5px; }
.chain-actions:empty { margin: 0; }
.chain-actions > .paper-action, .chain-actions > a { display: inline-flex; align-items: center; margin-right: 13px; }
.chain-copy > button { text-decoration: underline; text-underline-offset: 4px; }
.wallet-choice { min-height: 44px; width: 100%; text-align: left; padding: 8px 11px; border: 1px solid #a6b5d9; border-radius: 5px; background: #e8eeff; color: #152451; font-weight: 650; }
.wallet-choice:hover { background: #d5e0ff; }
#wallet-options { display: grid; gap: 7px; margin-top: 16px; }
#wallet-error { margin-top: 8px; color: #7c2424; font-size: 14px; }

#readout-actions > .paper-action { margin-right: 12px; }
