:root {
  --bg: #e6e7e3;
  --ink: #17181a;
  --soft: #5d6064;
  --line: #c9cac5;
  --panel: #f1f1ee;
  --wake: #c96a08;
  --ok: #1d7a46;
  --serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Consolas, "SF Mono", monospace;
  color-scheme: light;
}
/* Light is the default on purpose; dark only when picked with the button. */
:root[data-theme=dark] { --bg: #0b0c0e; --ink: #e6e4de; --soft: #8d8f8f; --line: #24262a; --panel: #111215; --wake: #f7931a; --ok: #4cc283; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: .86em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 16px; font-weight: 600; margin: 26px 0 6px; }
.serif { font-family: var(--serif); font-weight: 400; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.wait, .small { color: var(--soft); }
.small { font-size: 13.5px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 26px; padding: 12px clamp(16px, 3.4vw, 44px); font-size: 14px; transition: background-color .25s; }
.top.solid { background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 20px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ca, .theme, .x { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 5px; padding: 5px 10px; font: 500 13px var(--sans); cursor: pointer; text-decoration: none; }
.ca code { color: var(--soft); }
.ca.copied::after { content: ' copied'; color: var(--ok); }

/* the act: a tall scroll track with the 3D field stuck to the screen. Always night, whatever the page theme. */
.act { height: 560vh; position: relative; background: #05070b; }
.stage { --bg: #05070b; --ink: #e4e8ec; --soft: #8a96a3; --line: #1c232c; --wake: #ff8a2a;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ink); }
#field, .flat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.flat { object-fit: contain; image-rendering: pixelated; padding: 70px 4vw 30px 46vw; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,7,11,.95) 0, rgba(5,7,11,.86) 30%, rgba(5,7,11,.4) 46%, transparent 60%); }
.beat { position: absolute; z-index: 2; left: clamp(18px, 4.6vw, 72px); top: 50%; margin-top: -8rem; width: min(27rem, 88vw); will-change: transform, opacity; pointer-events: none; }
.beat p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.beat a, .beat button { pointer-events: auto; }
.b0 { margin-top: -11rem; width: min(46rem, 88vw); }
.b0 p { max-width: 30rem; font-size: 17px; color: #c3ccd5; }
.b0 .lead { font-size: 19px; color: var(--ink); }
.b0 .aside { margin-top: 26px; font-size: 14.5px; color: var(--soft); max-width: 27rem; }
.b3 p { font-size: 20px; }
#woke-n { font-weight: 700; color: var(--wake); font-size: 1.3em; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 13px !important; font-weight: 600; color: var(--wake); border: 1px solid currentColor; border-radius: 3px; padding: 1px 7px 0; margin-bottom: 14px !important; }
.tag::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-right: 6px; }
h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(46px, 5.6vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 0 0 22px; }
.acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px !important; font-size: 14px !important; }
.acts a { color: var(--soft); }
.alert { font: 600 14px var(--sans); height: 38px; padding: 0 16px; border-radius: 5px; border: 0; background: var(--wake); color: #160b02; cursor: pointer; }
.alert.on { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.alert.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; transform: translateY(-1px); }
.readout { position: absolute; z-index: 2; right: clamp(16px, 3.4vw, 44px); top: 62px; margin: 0; font-size: 13.5px; max-width: 32rem; text-align: right; min-height: 1.4em; color: var(--soft); }
.legend { position: absolute; z-index: 2; right: clamp(16px, 3.4vw, 44px); bottom: 20px; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; max-width: min(40rem, 56vw); font-size: 13px; color: #c3ccd5; background: rgba(5,7,11,.82); padding: 8px 12px; border-radius: 4px; }
.legend span { white-space: nowrap; }
.legend .lg-hint { color: var(--soft); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.sw.ice { background: #a9d0e3; box-shadow: inset 0 0 0 1px #e6f6ff; }
.sw.deep { background: #3d73a0; }
.sw.ash { background: #29292b; box-shadow: inset 0 0 0 1px #4a4a4e; }
.sw.fire { background: #ff7a1a; box-shadow: 0 0 8px #ff7a1a; }
/* the card for a clicked cube */
.card { position: absolute; z-index: 4; left: 50%; top: 40%; width: 300px; margin: 0; padding: 14px 16px 12px; background: #0c1117; border: 1px solid #253039; border-radius: 6px; font-size: 14px; line-height: 1.45; color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.card p { margin: 0 0 7px; }
.card .card-h { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.card .card-m, .card .card-n { color: var(--soft); font-size: 13px; }
.card .card-s { font-weight: 600; margin: 8px 0 4px; }
.card .k0, .card .k1, .card .k4 { color: #a9d0e3; }
.card .k2 { color: #9a9a9e; }
.card .k3 { color: var(--wake); }
.card .card-l { margin: 10px 0 0; font-size: 13px; }
.card .card-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--soft); font: 13px var(--sans); cursor: pointer; padding: 2px 4px; }
.card .card-x:hover { color: var(--ink); }
/* a coin moved while the page was open */
.toast { position: fixed; z-index: 20; left: clamp(12px, 3vw, 36px); bottom: 20px; max-width: 26rem; display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #0c1117; color: #e4e8ec; border-left: 3px solid #ff8a2a; border-radius: 4px; font-size: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.toast[hidden] { display: none; }
.toast p { margin: 0; }
.toast a { color: #ffb066; }
.toast button { flex: none; font: 600 13px var(--sans); background: #ff8a2a; color: #160b02; border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
/* header: light text while it floats over the night field */
.top:not(.solid) { color: #e4e8ec; }
.top:not(.solid) nav a { color: #9aa6b2; }
.top:not(.solid) nav a:hover { color: #fff; }
.top:not(.solid) .ca, .top:not(.solid) .theme, .top:not(.solid) .x { background: transparent; color: #e4e8ec; border-color: #2a333d; }
.watch { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); white-space: nowrap; }
.top:not(.solid) .watch { color: #9aa6b2; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.watch.err .dot { background: #ff8a2a; animation: none; }
.watch.woke .dot { background: #ff8a2a; animation: ping 1.2s ease-out 4; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 42, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 138, 42, 0); } }
.alert-line { margin-top: 12px !important; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* desk: feed + checker */
main { position: relative; z-index: 3; background: var(--bg); }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.4vw, 52px); padding: 72px clamp(16px, 3.4vw, 44px) 56px; border-top: 1px solid var(--line); align-items: start; }
.feed-head { margin-bottom: 14px; }
.feed-head h2 { margin-bottom: 8px; }
.sum { margin: 0; font-size: 15.5px; max-width: 50em; }
.sum b { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--soft); padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.new td { background: color-mix(in srgb, var(--wake) 12%, transparent); }
td .yes { color: var(--wake); font-weight: 600; }
td .no { color: var(--soft); }
.more { margin-top: 14px; height: 36px; padding: 0 16px; font: 500 14px var(--sans); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.foot-note { font-size: 13px; color: var(--soft); margin: 14px 0 0; max-width: 62em; }

.check { position: sticky; top: 70px; padding-top: 4px; }
.check label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.field { display: flex; gap: 6px; }
.field input { flex: 1; min-width: 0; font: 14px var(--mono); padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); }
.field input:focus { outline: 2px solid var(--wake); outline-offset: -1px; }
.field button { font: 600 14px var(--sans); padding: 0 16px; border-radius: 5px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.hint { font-size: 13px; color: var(--soft); margin: 9px 0 0; }
.result:empty { display: none; }
.result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14.5px; }
.result .verdict { font-family: var(--serif); font-size: 34px; line-height: 1; margin: 0 0 8px; }
.result .verdict.exposed { color: var(--wake); }
.result .verdict.hidden { color: var(--ok); }
.result p { margin: 0 0 6px; }
.result .share { font-size: 13px; }

/* pots */
.pots { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); padding: 64px clamp(16px, 3.4vw, 44px) 72px; border-top: 1px solid var(--line); }
.pots-text h2 { font-family: var(--serif); font-weight: 650; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 16px; max-width: 12em; }
.pots-text p { max-width: 38em; margin: 0 0 16px; font-size: 17px; }
.pots-text h3 { margin-top: 30px; }
.example { font-size: 14px; color: var(--soft); border-left: 2px solid var(--wake); padding-left: 12px; }
.pots-side { padding-top: 6px; }
.count-label { margin: 0; font-size: 14px; color: var(--soft); }
.count { font-size: clamp(52px, 5.6vw, 84px); font-weight: 650; line-height: 1; margin: 4px 0 30px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.count small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--soft); margin-right: 10px; }
.wallets th { color: var(--ink); font-weight: 600; }
.burns { padding-left: 20px; margin: 0 0 10px; font-size: 14.5px; }
.buy a { display: inline-block; margin-top: 14px; background: var(--wake); color: #111; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 5px; }

/* first 20 + tape */
.og { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 72px); padding: 56px clamp(16px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.mt { margin-top: 40px; }
.firsts { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0; margin-top: 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.firsts a { display: block; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 8px 6px; text-decoration: none; font-size: 12px; line-height: 1.3; }
.firsts a b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.firsts a.moved { background: color-mix(in srgb, var(--wake) 16%, transparent); }
.firsts a.moved span { color: var(--wake); }
.firsts a span { color: var(--soft); }
#addr-table td:first-child { white-space: normal; min-width: 240px; }
#addr-table .an { font-weight: 600; display: block; }
#addr-table .ad { font: 12px var(--mono); color: var(--soft); word-break: break-all; }
#addr-table .nt { font-size: 13px; color: var(--soft); display: block; margin-top: 2px; }
.tape { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.price { font-size: 15px; margin: 0; color: var(--soft); }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--ink); margin-left: 4px; }
.liq-sum { font-size: 13.5px; color: var(--soft); margin: 0 0 6px; }
.liq { list-style: none; margin: 0; padding: 0; font-size: 13.5px; min-height: 60px; }
.liq li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.liq .long { color: var(--wake); }
.news { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.news li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.news time { font-weight: 600; margin-right: 6px; }
.news a { color: var(--soft); font-size: 13px; }

footer { position: relative; z-index: 3; background: var(--bg); padding: 28px clamp(16px, 3.4vw, 44px) 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
footer p { max-width: 62em; margin: 0 0 10px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* docs */
.doc { max-width: 720px; padding: 96px clamp(16px, 4vw, 48px) 80px; }
.doc h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 26px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { font-size: 16.5px; }

@media (max-width: 980px) {
  .desk, .pots, .og { grid-template-columns: minmax(0, 1fr); }
  .check { position: static; }
  .tape { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .firsts { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .top nav { display: none; }
  .watch { font-size: 12px; min-width: 0; overflow: hidden; }
  #status-text { overflow: hidden; text-overflow: ellipsis; }
  .stage::before { background: linear-gradient(0deg, rgba(5,7,11,.95) 0, rgba(5,7,11,.82) 40%, transparent 66%); }
  .beat { top: auto; bottom: 30px; margin-top: 0 !important; }
  .beat p, .b0 p { font-size: 15px; }
  .b0 .lead { font-size: 16px; }
  .b0 .aside { font-size: 13px; margin-top: 16px; }
  .b3 p { font-size: 17px; }
  h1 { font-size: 44px; margin-bottom: 14px; }
  .readout { display: none; }
  .legend { left: 16px; right: 16px; max-width: none; top: 54px; bottom: auto; justify-content: flex-start; gap: 2px 12px; font-size: 11.5px; }
  .legend .lg-hint { display: none; }
  .card { left: 12px !important; right: 12px; top: 92px !important; width: auto; }
  .toast { left: 12px; right: 12px; bottom: 12px; }
  .flat { padding: 64px 16px 52vh; }
}
@media (max-width: 480px) {
  .top { gap: 10px; }
  .x { display: none; }
  .field { flex-direction: column; }
  .field button { height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
.burns .none { list-style: none; margin-left: -20px; color: var(--soft); }

/* ?clean: the 3D scene alone, for rendering social images */
.clean .top, .clean .beat, .clean .legend, .clean .readout, .clean .stage::before, .clean main, .clean footer, .clean .toast { display: none !important; }
.clean body { overflow: hidden; }
