@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-500_700.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/Plus-Jakarta-Sans-400_800.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBM-Plex-Mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBM-Plex-Mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Palette read off the X avatar and banner (DESIGN-NOTES.md). */
:root {
  --night: #00031a;          /* the visuals' sky */
  --night-2: #070b2e;        /* raised surfaces */
  --night-3: #0e1440;        /* hover on surfaces */
  --ink: #f4f3ff;
  --ink-2: #b9bfe6;
  --ink-3: #8a90bf;          /* quiet text, still 5:1 on the night */
  --magenta: #f915f6;        /* the outline around every object */
  --red: #fd4847;
  --orange: #ff6423;
  --yellow: #ffed03;
  --green: #02ff25;
  --cyan: #00f0ff;
  --blue: #1e3bff;
  --violet: #9400ff;
  --rainbow: linear-gradient(90deg, var(--red) 0%, var(--orange) 17%, var(--yellow) 33%, var(--green) 50%, var(--cyan) 67%, var(--blue) 83%, var(--violet) 100%);
  --glass: rgba(7, 11, 46, 0.86);
  --hair: rgba(185, 191, 230, 0.18);
  --hair-hi: rgba(249, 21, 246, 0.55);
  --glow: 0 0 18px rgba(249, 21, 246, 0.45);
  --display: "Fredoka", "Jakarta", system-ui, sans-serif;
  --text: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* type scale (16 is the floor for reading text on this site) */
  --t16: 16px; --t20: 20px; --t24: 24px; --t32: 32px; --t48: 48px; --t72: 72px;
  /* spacing scale */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px; --s48: 48px; --s64: 64px;
  /* one container */
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --head: 76px;
  --feed-w: 380px;
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--text); font-variant-numeric: tabular-nums; overflow-x: hidden;
  /* the banner's world behind every page: navy, a dust of stars, thin rings */
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 9%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 41%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 66%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 83%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 92%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    var(--night);
  background-size: 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, auto; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 92% 8%, transparent 0 118px, rgba(148, 0, 255, 0.10) 119px 120px, transparent 121px 160px); }
img { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 700; color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 90; background: var(--yellow); color: #0b0b0b; padding: 12px 20px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* addresses: mono, the heard word lit by its length */
.addr { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.addr .w { font-weight: 500; }
.w.l4 { color: #e4e6f7; text-decoration: underline; text-decoration-color: rgba(185, 191, 230, 0.6); text-underline-offset: 3px; }
.w.l6 { color: var(--yellow); text-shadow: 0 0 12px rgba(255, 237, 3, 0.55); }
.w.l7 { text-shadow: 0 0 10px rgba(249, 21, 246, 0.7); }

/* display type: one light fill and one rainbow outline, drawn by js/prism.js over the real text */
[data-prism] { position: relative; color: transparent !important; background: none !important; -webkit-text-fill-color: transparent; filter: none !important; }
[data-prism]::selection { background: rgba(255, 237, 3, 0.35); }

/* ---------- header: the ear, the name, the pages, the sound ---------- */
.top { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: var(--head); display: flex; align-items: center; gap: var(--s32); padding: 0 var(--edge); }
.brand { display: flex; align-items: center; gap: var(--s12); text-decoration: none; flex: none; }
.brand-t { font: 600 var(--t24)/1 var(--display); letter-spacing: 0.01em; }
.ear-mark { position: relative; width: 44px; height: 44px; flex: none; }
.ear-mark img { position: relative; z-index: 1; width: 44px; height: 44px; filter: drop-shadow(0 0 8px rgba(249, 21, 246, 0.6)); transform-origin: 50% 60%; }
.ear-mark .wave { position: absolute; left: -10px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 2px solid transparent; border-left-color: var(--c, var(--cyan)); opacity: 0; pointer-events: none; }
.ear-mark .wave:nth-child(2) { --c: var(--yellow); }
.ear-mark .wave:nth-child(3) { --c: var(--magenta); }
.ear-mark .wave:nth-child(4) { --c: var(--green); }
.ear-mark.listening .wave { animation: earwave 2.6s ease-out infinite; }
.ear-mark.listening .wave:nth-child(3) { animation-delay: 0.85s; }
.ear-mark.listening .wave:nth-child(4) { animation-delay: 1.7s; }
.ear-mark.ping .wave:nth-child(2) { animation: earwave 0.9s ease-out 1; }
.ear-mark.jolt img { animation: jolt 0.6s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes earwave { 0% { opacity: 0.95; transform: translateX(0) scale(0.5); } 100% { opacity: 0; transform: translateX(-26px) scale(1.7); } }
@keyframes jolt { 0% { transform: scale(1); } 30% { transform: scale(1.14); } 60% { transform: scale(0.97); } 100% { transform: scale(1); } }

.nav { display: flex; gap: var(--s24); }
.nav a { position: relative; text-decoration: none; font-weight: 600; font-size: var(--t16); color: var(--ink-2); padding: var(--s8) var(--s4); border-radius: 8px; transition: color 140ms ease-out; }
.nav a:hover { color: var(--ink); }
.nav a:active { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.sound { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: var(--s8); min-height: 44px; padding: 0 var(--s16); border-radius: 999px; border: 1.5px solid var(--hair); background: rgba(7, 11, 46, 0.6); color: var(--ink-2); font: 600 var(--t16)/1 var(--text); cursor: pointer; transition: border-color 140ms, color 140ms, background-color 140ms; }
.sound::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sound:hover { border-color: var(--hair-hi); color: var(--ink); }
.sound:active { transform: scale(0.97); }
.sound[aria-pressed="true"] { color: var(--ink); border-color: var(--magenta); box-shadow: var(--glow); }
.sound[aria-pressed="true"]::before { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- buttons, one system ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: var(--s8); min-height: 52px; padding: 0 1.3em; border-radius: 14px; font: 700 18px/1 var(--text); text-decoration: none; cursor: pointer; border: 0; transition: transform 120ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out, color 160ms, border-color 160ms; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.primary { background: var(--yellow); color: #0b0a00; box-shadow: 0 0 0 0 rgba(255, 237, 3, 0); }
.btn.primary:hover { box-shadow: 0 0 26px rgba(255, 237, 3, 0.5); }
.btn.ghost { color: var(--ink); border: 1.5px solid var(--magenta); background: rgba(0, 3, 26, 0.5); box-shadow: inset 0 0 12px rgba(249, 21, 246, 0.18); }
.btn.ghost:hover { background: rgba(249, 21, 246, 0.14); box-shadow: var(--glow); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary:disabled { background: #6e6a2a; color: #e9e6c0; }
.btn[aria-busy="true"] { cursor: progress; }

/* ---------- first screen: copy over the calm sky | the picture | the live feed column ---------- */
.first { position: relative; min-height: max(680px, 100svh); max-height: 1080px; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.art { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; right: var(--feed-w); overflow: hidden; }
.art picture, .art img { width: 100%; height: 100%; }
.art img { object-fit: cover; object-position: 88% 50%; }
.art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 3, 26, 0.94) 0, rgba(0, 3, 26, 0.9) calc(var(--edge) + 540px), rgba(0, 3, 26, 0) calc(var(--edge) + 720px)),
              linear-gradient(0deg, rgba(0, 3, 26, 0.7) 0%, rgba(0, 3, 26, 0) 18%), linear-gradient(180deg, rgba(0, 3, 26, 0.7) 0%, rgba(0, 3, 26, 0) 14%); }
/* the ear listening (js/effects.js > earHit): laid exactly over the drawn picture; transform and opacity only */
.ear-layer { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.ear-halo { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; opacity: 0.3; animation: breathe 5s ease-in-out infinite; will-change: opacity; }
@keyframes breathe { 0%, 100% { opacity: 0.26; } 50% { opacity: 0.5; } }
.ear-lit { position: absolute; inset: 0; mix-blend-mode: screen; -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat; }
.ear-band { position: absolute; left: calc(var(--cx) - var(--R)); top: calc(var(--cy) - var(--R)); width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle closest-side, transparent 0 78%, rgba(255, 255, 255, 0.68) 86%, transparent 94%); }
.ear-band.band-noise { background: radial-gradient(circle closest-side, transparent 0 78%, rgba(255, 237, 3, 0.6) 86%, transparent 94%); }
.ear-band.band-sig { background: radial-gradient(circle closest-side, transparent 0 70%, rgba(253, 72, 71, 0.9) 74%, rgba(255, 237, 3, 0.95) 79%, rgba(2, 255, 37, 0.9) 84%, rgba(0, 240, 255, 0.9) 89%, transparent 95%); }
.ear-waves { position: absolute; }
.ear-waves i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-left-color: var(--wc, var(--magenta)); opacity: 0; will-change: transform, opacity; animation: wavein 7.5s linear infinite; }
.ear-waves i:nth-child(2) { --wc: var(--yellow); animation-delay: 2.5s; }
.ear-waves i:nth-child(3) { --wc: var(--cyan); animation-delay: 5s; }
@keyframes wavein {
  0% { transform: scale(1); opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  10% { opacity: 0.5; }
  30% { transform: scale(0.08); opacity: 0; }
  100% { transform: scale(0.08); opacity: 0; }
}
.coinsky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.flyer { position: fixed; z-index: 60; pointer-events: none; font: 500 16px/1 var(--mono); color: var(--yellow); text-shadow: 0 0 14px rgba(255, 237, 3, 0.9); transform-origin: 0 0; will-change: transform, opacity; }

.copy { position: relative; z-index: 5; width: min(560px, calc(100vw - var(--feed-w) - var(--edge) - 120px)); margin-left: var(--edge); padding: calc(var(--head) + 8px) 0 var(--s24); }
.name { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 10.4vh, 104px); line-height: 1.02; letter-spacing: 0; white-space: nowrap; padding: 0.1em 0; }
.ticker { display: inline-block; margin-top: var(--s4); font: 700 var(--t16)/1 var(--text); color: var(--ink-2); letter-spacing: 0.04em; }
.headline { margin-top: clamp(8px, 1.6vh, 16px); font-weight: 700; font-size: clamp(26px, 4.2vh, 36px); line-height: 1.14; letter-spacing: -0.01em; max-width: 15.5em; }
.headline em { font-style: normal; color: var(--yellow); }
.lede { margin-top: clamp(8px, 1.4vh, 12px); color: var(--ink-2); max-width: 30em; }

.heard { margin-top: clamp(12px, 2vh, 24px); }
.heard-word { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vh, 64px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; min-height: 1.1em; }
.heard-addr { margin-top: var(--s4); font-size: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heard-meta { font-size: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heard-meta b { color: var(--ink); }

.actions { display: flex; gap: var(--s16); margin-top: clamp(12px, 2vh, 24px); }
.links { margin-top: clamp(12px, 1.8vh, 16px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s12); max-width: 520px; }
.links > * { min-width: 0; }
.contract { display: flex; align-items: center; gap: var(--s16); min-height: 52px; padding: 6px 6px 6px var(--s24); border-radius: 14px; background: var(--glass); border: 1px solid var(--hair); }
.contract-label { font-weight: 600; font-size: 16px; color: var(--ink-2); flex: none; }
.contract-value { flex: 1; min-width: 0; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }
.contract-value.empty { font-family: var(--text); font-style: italic; color: var(--ink-2); user-select: none; }
.copy-btn { flex: none; min-height: 40px; min-width: 96px; padding: 0 var(--s16); border-radius: 10px; border: 1.5px solid var(--yellow); background: var(--yellow); color: #0b0a00; font: 700 16px/1 var(--text); cursor: pointer; transition: box-shadow 140ms, background-color 140ms, transform 120ms; }
.copy-btn:hover:not(:disabled) { box-shadow: 0 0 18px rgba(255, 237, 3, 0.5); }
.copy-btn:active:not(:disabled) { transform: scale(0.96); }
.copy-btn.done { background: var(--green); border-color: var(--green); }
.copy-btn:disabled { background: transparent; border-color: var(--ink-3); color: var(--ink-2); cursor: not-allowed; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); }
.key { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 var(--s16); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); background: rgba(0, 3, 26, 0.7); transition: transform 120ms ease-out, background-color 160ms ease-out, box-shadow 160ms; }
.key::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.key img { width: 22px; height: 22px; object-fit: contain; }
.key[data-link="x"] img { width: 17px; height: 17px; }
.key:hover:not([aria-disabled="true"]) { background: rgba(249, 21, 246, 0.16); box-shadow: var(--glow); }
.key:active:not([aria-disabled="true"]) { transform: scale(0.97); }
.key[aria-disabled="true"] { color: var(--ink-2); cursor: not-allowed; }
.key[aria-disabled="true"]::before { opacity: 0.45; }
.key[aria-disabled="true"] img { opacity: 0.6; }

/* the live feed: its own column on its own dark ground, never over the picture */
.stream { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: var(--feed-w); padding: calc(var(--head) + 4px) var(--s24) 0; background: linear-gradient(180deg, #050934 0%, #03062a 100%); border-left: 1px solid rgba(249, 21, 246, 0.35); box-shadow: -24px 0 48px rgba(0, 3, 26, 0.8); overflow: hidden; }
.stream::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(0deg, #03062a, rgba(3, 6, 42, 0)); pointer-events: none; }
.stream-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s ease-in-out infinite; }
.dot.rec { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); margin-top: var(--s12); }
.tally div:last-child { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s12); }
.tally div { padding: var(--s12) 20px; border-radius: 10px; background: rgba(0, 3, 26, 0.7); border: 1px solid var(--hair); min-width: 0; }
.tally dt { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.tally dd { margin: 2px 0 0; font: 600 var(--t20)/1.2 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-list { list-style: none; margin: var(--s12) 0 0; padding: 0; font: 400 16px/1.4 var(--mono); color: var(--ink-3); }
.stream-list li { padding: 6px var(--s8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; }
.stream-list li.in { animation: rowin 520ms ease-out both; }
.stream-list li.lit { color: var(--ink-2); }
.stream-list li.is-signal { background: rgba(255, 237, 3, 0.09); color: var(--ink); }
.stream-list li.is-wow { background: rgba(249, 21, 246, 0.14); color: var(--ink); }
@keyframes rowin { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- the signal moment (js/moment.js) ---------- */
.hiss { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.pop { position: fixed; z-index: 72; left: 50%; top: 42%; pointer-events: none; font: 700 clamp(64px, 12vw, 180px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; transform: translate(-50%, -50%); }
.pop-wow { position: fixed; z-index: 73; left: 50%; top: 50%; width: min(78vw, 820px); pointer-events: none; transform: translate(-50%, -50%) rotate(-6deg); filter: drop-shadow(0 0 30px rgba(253, 72, 71, 0.6)); }

.halo { position: fixed; z-index: 95; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, rgba(249, 21, 246, 0.55) 3px, rgba(249, 21, 246, 0.18) 7px, transparent 13px); transition: opacity 200ms; }
.halo.on { opacity: 1; }

/* ---------- sections ---------- */
.wrap { width: min(var(--max), calc(100vw - 2 * var(--gutter))); margin: 0 auto; }
.sect { padding: var(--s64) 0; position: relative; }
.sect + .sect { border-top: 1px solid rgba(148, 0, 255, 0.18); }
.sect-head { margin-bottom: var(--s48); max-width: 760px; }
.sect-head h2, .print-copy h2, .grind h2, .pot h2 { font-family: var(--display); font-weight: 700; font-size: var(--t72); line-height: 1.08; padding: 0.06em 0; }
.sect-head p { margin-top: var(--s16); color: var(--ink-2); }

/* the pot: live money on chain */
.pot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s16); }
.pot-tile { padding: var(--s24) var(--s32); border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); min-width: 0; }
.pot-tile.hot { border-color: var(--hair-hi); box-shadow: inset 0 0 24px rgba(249, 21, 246, 0.12); }
.pot-label { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.pot-value { margin-top: var(--s8); font: 600 var(--t48)/1.05 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pot-value small { font-size: var(--t24); color: var(--ink-2); }
.pot-sub { margin-top: var(--s8); font-size: 16px; color: var(--ink-2); }
.pot-sub a { color: var(--cyan); }
.mine { margin-top: var(--s16); display: grid; grid-template-columns: 1fr auto; gap: var(--s12) var(--s16); align-items: center; padding: var(--s24); border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }
.mine input { min-width: 0; min-height: 52px; padding: 0 var(--s16); border-radius: 12px; border: 1px solid rgba(185, 191, 230, 0.4); background: rgba(0, 3, 26, 0.85); color: var(--ink); font: 400 16px/1 var(--mono); }
.mine input::placeholder { color: var(--ink-3); font-family: var(--text); }
.mine input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25); }
.mine-out { grid-column: 1 / -1; color: var(--ink-2); min-height: 1.55em; }
.mine-out b.big { font: 600 var(--t32)/1.1 var(--display); color: var(--yellow); }

/* how it listens */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s32); }
.step { display: flex; flex-direction: column; }
.step img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--hair); }
.step h3 { margin-top: var(--s24); font-weight: 700; font-size: var(--t24); line-height: 1.2; }
.step p { margin-top: var(--s8); color: var(--ink-2); }

.scale-rows { display: grid; border-top: 1px solid var(--hair); }
.scale-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; align-items: center; gap: var(--s32); padding: var(--s24) var(--s32); border-bottom: 1px solid var(--hair); }
.scale-word { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1.15; text-transform: uppercase; color: var(--ink-2); justify-self: start; letter-spacing: 0.02em; }
.scale-what { font-weight: 700; font-size: var(--t20); line-height: 1.3; }
.scale-what small { display: block; margin-top: var(--s4); font-size: 17px; font-weight: 400; color: var(--ink-2); }
.scale-odds { font-family: var(--display); font-weight: 600; font-size: var(--t48); line-height: 1; text-align: right; color: var(--ink); white-space: nowrap; }
.is-wow .scale-odds, .is-signal .scale-odds { color: var(--yellow); }

.sig-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.sig { display: grid; grid-template-columns: 240px 1fr 230px; align-items: center; gap: var(--s32); padding: var(--s24) var(--s32); border-bottom: 1px solid var(--hair); }
.sig-word { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; justify-self: start; overflow-wrap: anywhere; }
.sig-body { min-width: 0; }
.sig-addr { font-size: 16px; color: var(--ink-2); word-break: break-all; }
.sig-coin { margin-top: 6px; font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-coin span { color: var(--ink-2); }
.sig-side { text-align: right; font-size: 16px; color: var(--ink-2); }
.sig-side b { display: block; font-size: var(--t20); color: var(--yellow); }
.case-note { margin-top: var(--s16); color: var(--ink-2); font-size: 16px; }
.case-note .addr { color: var(--ink); }
.more { margin-top: var(--s32); }
.tlink { display: inline-block; margin-top: var(--s4); color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: 4px; transition: color 140ms, text-decoration-color 140ms; }
.tlink:hover { color: var(--ink); text-decoration-color: var(--magenta); }
.tlink:active { color: var(--yellow); }

/* grind me + the grinder */
.grind-wrap { display: grid; grid-template-columns: 420px 1fr; gap: var(--s64); align-items: start; }
.grind-wrap > img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--hair); aspect-ratio: 1; object-fit: cover; }
.grind p { margin-top: var(--s24); color: var(--ink-2); max-width: 36em; }
.grinder { margin-top: var(--s32); padding: var(--s24) var(--s32); border-radius: 16px; border: 1px solid var(--hair-hi); background: var(--glass); box-shadow: inset 0 0 28px rgba(249, 21, 246, 0.1); }
.grinder p { margin-top: 0; max-width: none; }
.g-word { font-family: var(--display); font-weight: 600; font-size: var(--t48); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; min-height: 1.15em; }
.g-addr { margin-top: var(--s8) !important; font-size: 16px; color: var(--ink-2); word-break: break-all; min-height: 1.5em; }
.g-hint { margin-top: var(--s8) !important; font-size: 16px; color: var(--ink-2); word-break: normal; overflow-wrap: break-word; }
.g-bar { margin-top: var(--s16); height: 8px; border-radius: 99px; background: rgba(185, 191, 230, 0.14); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; background: var(--rainbow); border-radius: inherit; transition: width 120ms linear; }
.g-stats { margin-top: var(--s16); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s12); }
.g-stats div { min-width: 0; }
.g-stats dt { font-size: 16px; color: var(--ink-2); }
.g-stats dd { margin: 2px 0 0; font: 600 var(--t24)/1.2 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-meta { margin-top: var(--s16) !important; color: var(--ink-2); }
.g-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s16) var(--s24); margin-top: var(--s24); }

/* the address band at the end of the page: the newest mint, one tile per character */
.band { padding: var(--s48) 0 var(--s64); border-top: 1px solid rgba(148, 0, 255, 0.18); }
.band-row { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
.band-row span { position: relative; flex: 0 1 30px; min-width: 0; height: 40px; display: grid; place-items: center; font: 500 18px/1 var(--mono); color: var(--ink-3); transition: color 300ms, text-shadow 300ms; }
.band-row span::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 3px; border-radius: 2px; background: var(--c, rgba(185, 191, 230, 0.3)); box-shadow: 0 0 10px var(--c, transparent); transition: background-color 300ms; }
.band-row span.on { color: var(--c); text-shadow: 0 0 12px var(--c); }
.band-row.flash span::after { background: rgba(0, 240, 255, 0.7); }
.band-cap { margin-top: var(--s16); text-align: center; color: var(--ink-2); font-size: 16px; }

/* ---------- inner pages ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--head) + 72px) 0 var(--s64); min-height: 500px; }
.page-head .bg { position: absolute; inset: 0; z-index: -1; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 58%; }
.page-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(0, 3, 26, 0.82) 38%, rgba(0, 3, 26, 0.15) 70%), linear-gradient(0deg, var(--night) 0%, rgba(0, 3, 26, 0) 40%); }
.page-head h1 { max-width: 56%; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 6vw, var(--t72)); line-height: 1.08; padding: 0.06em 0; }
.page-head p { margin-top: var(--s24); max-width: min(34em, 46%); color: var(--ink-2); font-size: 19px; }
.page-head p b { color: var(--ink); }

.panel { background: var(--glass); border: 1px solid var(--hair); border-radius: 16px; padding: var(--s32); }
.field { display: flex; gap: var(--s12); flex-wrap: wrap; }
.field input { flex: 1 1 360px; min-width: 0; min-height: 56px; padding: 0 var(--s24); border-radius: 12px; border: 1px solid rgba(185, 191, 230, 0.4); background: rgba(0, 3, 26, 0.85); color: var(--ink); font: 400 17px/1 var(--mono); }
.field input::placeholder { color: var(--ink-3); font-family: var(--text); }
.field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25); }
.note { font-size: 16px; color: var(--ink-2); }
.err { color: #ff9a8f; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); margin-bottom: var(--s48); }
.stat { padding: var(--s32); border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }
.stat-label { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.stat-value { margin-top: var(--s8); font-family: var(--display); font-weight: 600; font-size: var(--t48); line-height: 1.05; color: var(--ink); }
.stat-sub { margin-top: var(--s8); font-size: 16px; color: var(--ink-2); }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: var(--t48); line-height: 1.08; margin-top: var(--s64); padding: 0.06em 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: var(--s16); }
.prose ul, .prose ol { margin: var(--s16) 0 0; padding-left: 1.2em; }
.prose li { margin-top: var(--s8); }
.prose code { font-family: var(--mono); font-size: 16px; color: var(--cyan); word-break: break-all; }
.prose pre { margin-top: var(--s16); padding: var(--s24); border-radius: 12px; background: var(--glass); border: 1px solid var(--hair); overflow-x: auto; font: 400 16px/1.5 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.prose a { color: var(--cyan); }
.prose a:hover { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s16); }
.prose th, .prose td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hair); font-size: 17px; }
.prose th { color: var(--ink); font-weight: 700; }
.prose td { color: var(--ink-2); }

/* ---------- the printout ---------- */
.print-wrap { display: grid; grid-template-columns: 1fr 400px; gap: var(--s64); align-items: center; }
.print-copy p { margin-top: var(--s24); color: var(--ink-2); max-width: 36em; }
.legend { list-style: none; margin: var(--s32) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12) var(--s32); }
.legend li { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.lg { position: relative; flex: none; min-width: 56px; text-align: center; font: 500 22px/1 var(--mono); color: var(--ink); }
.lg.hit { color: #ff6b5e; }
.paper { --feed: 0px; position: relative; height: 640px; width: 400px; overflow: hidden; background: url("/img/printout-sheet.webp") 0 var(--feed) / 100% auto repeat-y; transition: background-position 420ms cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 70px), transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 70px), transparent 100%); }
.pfeed { position: absolute; left: 16%; right: 16%; bottom: 70px; display: flex; flex-direction: column; }
.pline { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 34px; align-items: center; font: 500 20px/1 var(--mono); color: #2a2c3d; }
.pc { position: relative; text-align: center; }
.pc.loud { color: #1b1d2b; }
.pc.hit { color: #b3161b; }
.pen-ring { position: absolute; left: 50%; top: 50%; width: 34px; max-width: none; height: 32px; transform: translate(-50%, -50%); pointer-events: none; }
.pen-wow { position: absolute; top: -10px; width: 58px; max-width: none; height: auto; pointer-events: none; z-index: 2; }
.pen-wow.right { left: calc(100% + 4px); }
.pen-wow.left { right: calc(100% + 4px); }

/* ---------- check, log, docs, 404 ---------- */
.check-sect, .log-sect, .docs-sect { padding-top: 0; }
.check-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s32); align-items: stretch; }
.result { margin-top: var(--s32); min-height: 240px; }
.result-word { font-family: var(--display); font-weight: 600; font-size: var(--t72); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.result-addr { margin-top: var(--s8); font-size: 17px; color: var(--ink-2); word-break: break-all; }
.result-verdict { margin-top: var(--s16); font-size: 19px; color: var(--ink-2); }
.result-verdict b { color: var(--yellow); }
.result .note { margin-top: var(--s8); }
.calc h2 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; padding: 0.06em 0; }
.calc .note { margin-top: var(--s8); }
.calc-row { margin-top: var(--s24); display: grid; gap: var(--s8); }
.calc-row label { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.calc-row input { min-height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(185, 191, 230, 0.4); background: rgba(0, 3, 26, 0.85); color: var(--ink); font: 600 18px/1 var(--text); }
.calc-row input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25); }
.calc-out { margin-top: var(--s24); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); }
.calc-out .stat-value { color: var(--yellow); font-size: 44px; }
.calc-foot { margin-top: var(--s24) !important; }
.wallet { margin-bottom: var(--s48); align-items: center; }
.wallet-out { flex-basis: 100%; }
.docs-grid { display: grid; grid-template-columns: 1fr 300px; gap: var(--s64); align-items: start; }
.toc { position: sticky; top: 24px; padding: var(--s32); border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }
.toc p { font-weight: 700; }
.toc ol { margin: var(--s8) 0 0; padding-left: 1.2em; }
.toc li { margin-top: 6px; color: var(--ink-2); }
.toc a { color: var(--ink-2); text-decoration: none; border-radius: 4px; }
.toc a:hover { color: var(--yellow); }
.lost { min-height: 100svh; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.lost .bg { position: absolute; inset: 0; z-index: -1; }
.lost .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.lost .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 3, 26, 0.88) 0%, rgba(0, 3, 26, 0.4) 45%, rgba(0, 3, 26, 0) 70%); }
.lost h1 { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 128px); line-height: 1.04; padding: 0.06em 0; }
.lost p { margin-top: var(--s24); max-width: 26em; font-size: 20px; color: var(--ink-2); }
.lost .btn { margin-top: var(--s32); }

/* ---------- widths ---------- */
@media (max-width: 1439px) { :root { --feed-w: 360px; } }
/* under 1200 the feed leaves the picture: the picture goes on top, then the copy and the feed side by side */
@media (max-width: 1199px) {
  .first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "art art" "copy feed"; column-gap: var(--s32); align-items: start; min-height: 0; max-height: none; padding: var(--head) var(--gutter) var(--s48); }
  .art { grid-area: art; position: relative; inset: auto; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 2 / 1; max-height: 62vh; width: auto; }
  .art img { object-position: 70% 50%; }
  .art::before { background: linear-gradient(0deg, var(--night) 0%, rgba(0, 3, 26, 0) 30%), linear-gradient(180deg, rgba(0, 3, 26, 0.85) 0%, rgba(0, 3, 26, 0) 22%); }
  .copy { grid-area: copy; width: auto; margin: calc(-1 * var(--s64)) 0 0; padding: 0; }
  .stream { grid-area: feed; position: relative; inset: auto; width: auto; height: 560px; margin-top: var(--s24); padding: var(--s16); border: 1px solid rgba(249, 21, 246, 0.35); border-radius: 16px; box-shadow: none; }
  .pot-grid { grid-template-columns: repeat(2, 1fr); }
  .sig { grid-template-columns: 200px 1fr 200px; }
  .grind-wrap { grid-template-columns: 340px 1fr; gap: var(--s48); }
  .print-wrap { gap: var(--s48); }
}
@media (max-width: 899px) {
  .top { gap: var(--s16); height: 64px; }
  :root { --head: 64px; }
  .brand-t { display: none; }
  .nav { gap: var(--s12); }
  .first { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy" "feed"; }
  .art { aspect-ratio: 1 / 1; max-height: none; }
  .art img { object-position: 50% 4%; }
  .copy { margin-top: calc(-1 * var(--s48)); }
  .name { font-size: clamp(48px, 15vw, 64px); }
  .headline { font-size: 26px; }
  .lede { font-size: 17px; }
  .heard-word { font-size: 44px; }
  .stream { height: 420px; }
  .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 160px; }
  .keys { gap: var(--s8); }
  .sect { padding: var(--s48) 0; }
  .sect-head h2, .print-copy h2, .grind h2, .pot h2 { font-size: var(--t48); }
  .steps { grid-template-columns: 1fr; gap: var(--s48); }
  .scale-row { grid-template-columns: 1fr auto; gap: var(--s16); padding: var(--s24) var(--s16); }
  .scale-word { grid-column: 1 / -1; font-size: 44px; }
  .scale-odds { font-size: 36px; }
  .sig { grid-template-columns: 1fr; gap: var(--s8); padding: var(--s24) var(--s32); }
  .sig-word { font-size: 40px; }
  .sig-side { text-align: left; }
  .grind-wrap { grid-template-columns: 1fr; gap: var(--s32); }
  .grind-wrap > img { max-width: 420px; }
  .print-wrap { grid-template-columns: 1fr; gap: var(--s48); }
  .paper { width: min(400px, 100%); height: 520px; margin: 0 auto; }
  .legend { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .page-head { padding-top: calc(var(--head) + 40px); min-height: 0; }
  .page-head h1, .page-head p { max-width: none; }
  .page-head .bg img { object-position: 70% 30%; }
  .page-head .bg::after { background: linear-gradient(0deg, var(--night) 0%, rgba(0, 3, 26, 0.78) 60%, rgba(0, 3, 26, 0.5) 100%); }
  .panel { padding: var(--s24) var(--s32); }
  .check-grid, .docs-grid { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .result-word { font-size: 56px; }
  .field .btn { flex: 1 1 140px; }
  .calc-out .stat-value { font-size: 36px; }
  .lost { align-items: flex-end; padding-bottom: var(--s64); }
  .lost .bg img { object-position: 80% 35%; }
  .lost .bg::after { background: linear-gradient(0deg, rgba(0, 3, 26, 0.95) 0%, rgba(0, 3, 26, 0.6) 45%, rgba(0, 3, 26, 0) 75%); }
  .band-row span { height: 32px; font-size: 16px; }
}
@media (max-width: 599px) {
  .pot-grid { grid-template-columns: 1fr; }
  .mine { grid-template-columns: 1fr; padding: var(--s24); }
  .g-stats { grid-template-columns: 1fr 1fr; }
  .grinder { padding: var(--s24) var(--s32); }
  .sound { padding: 0 var(--s12); }
  .sound span { display: none; }
}
@media (max-width: 440px) {
  .actions { flex-direction: column; }
  .actions .btn { flex: none; width: 100%; }
  .field .btn { flex: 1 1 100%; }
  .top { gap: var(--s8); }
  .nav { gap: 2px; }
  .nav a { padding: var(--s8) 6px; }
  .key { padding: 0 var(--s12); }
  .key .key-t { display: none; }
  .key img { width: 24px; height: 24px; }
  .key[data-link="x"] img { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
  .nav { gap: var(--s4); }
  .nav a { padding: var(--s8) 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .halo, .hiss, .pop, .pop-wow, .ear-waves { display: none !important; }
}
@media (hover: none), (pointer: coarse) { .halo { display: none; } }
