/* Shillbert: a plain black-on-white console. Only the figure is hand-drawn. */
:root {
  --ink: #111;
  --ink-2: #666;
  --ink-3: #9a9a9a;
  --line: #111;
  --line-2: #e6e6e6;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --top: 56px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Loading screen */
.loader {
  position: fixed; inset: 0; z-index: 20; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.loader.out { animation: loader-out .3s ease forwards; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader-fig { width: min(220px, 50vw); height: auto; overflow: visible; }
.loader-fig .draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw .3s ease-out forwards; }
.loader-fig .draw:nth-child(1) { animation-delay: .08s; }
.loader-fig .draw:nth-child(2) { animation-delay: .26s; }
.loader-fig .draw:nth-child(3) { animation-delay: .36s; }
.loader-fig .draw:nth-child(4) { animation-delay: .46s; }
.loader-fig .draw:nth-child(5) { animation-delay: .56s; }
.loader-fig .draw-head { opacity: 0; animation: pop .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.loader-bar { width: 180px; height: 2px; background: var(--line-2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--ink); animation: fill .9s ease-out forwards; }
@keyframes fill { to { width: 100%; } }
.loader-text { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); min-height: 18px; }
/* Landing: exactly one screen. Header on top, three columns below. */
.landing { height: 100vh; height: 100dvh; display: grid; grid-template-rows: var(--top) minmax(0, 1fr); overflow: hidden; }
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 24px; border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.on i { background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.top nav { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 14px; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta { border: 1px solid var(--line); padding: 7px 14px; font-weight: 500; }
.cta:hover { background: var(--ink); color: #fff; text-decoration: none !important; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr); min-height: 0; height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }

.term { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
.term[data-term="ads"] { border-right: 1px solid var(--line); }
.term[data-term="thoughts"] { border-left: 1px solid var(--line); }
.term-head {
  display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 40px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.term-head b { font-weight: 500; color: var(--ink); }
.term-body { flex: 1; min-height: 0; height: calc(100% - 40px); overflow-y: auto; overflow-anchor: none; padding: 12px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.term-body .ln { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 3px 0; animation: ln .18s ease-out; }
@keyframes ln { from { opacity: 0; transform: translateY(3px); } }
.term-body .t { color: var(--ink-3); }
.term-body .v { overflow-wrap: anywhere; }
.term-body .v .tk { color: var(--ink-2); }
.term-body .ln.rename .v { font-weight: 500; }
.term-body .ln.sys .v { color: var(--ink-2); }
.term-body .cursor::after { content: "▌"; animation: blink 1s steps(2) infinite; }

/* Ad cards: one box per coin */
.term-body.cards { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.card { border: 1px solid var(--line); padding: 10px 12px; animation: ln .18s ease-out; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-top .name { font-family: var(--sans); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.card-top .tk { font-family: var(--mono); font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.card-top .t { white-space: nowrap; }
.card-ca { display: flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--line-2); padding: 0 0 0 8px; }
.card-ca code { flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-ca button { font: inherit; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; border: 0; border-left: 1px solid var(--line-2); padding: 5px 9px; cursor: pointer; }
.card-ca button:hover { background: var(--ink); color: #fff; }
.card-links { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.card-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.card-links a:hover { text-decoration-color: var(--ink); }
.card-links span { color: var(--ink-3); }
.card-links .pair { margin-left: auto; text-transform: none; letter-spacing: 0; }
@keyframes blink { to { visibility: hidden; } }

/* Shillbert, in the middle, standing. */
.actor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; min-height: 0; }
.fig { width: min(260px, 100%); max-height: 46vh; height: auto; overflow: visible; }
.now { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.now .muted { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono); }
.now [data-now-name] { font-size: 15px; font-weight: 500; }
.state { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.term-body .tag { display: inline-block; width: 64px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.term-body .ln.act .v { font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; width: 100%; max-width: 340px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.stats div { text-align: center; padding: 0 6px; }
.stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; }
.stats b { font-weight: 500; }

/* Below the fold */
.about { border-top: 1px solid var(--line); padding: 96px 24px; }
.about-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.about h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 24px; }
.about p { margin: 0 0 16px; font-size: 16px; color: #222; max-width: 520px; }
.ca { display: flex; align-items: center; gap: 14px; margin-top: 32px; border: 1px solid var(--line); padding: 0 0 0 14px; max-width: 520px; }
.ca .label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.ca code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: #fff; border: 0; border-left: 1px solid var(--line); padding: 11px 18px; cursor: pointer; }
.ca button:hover:not([disabled]) { background: var(--ink); color: #fff; }
.ca button[disabled] { color: var(--ink-3); cursor: not-allowed; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding-top: 3px; }
.steps b { display: block; font-size: 16px; font-weight: 600; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--line); font-size: 13px; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 13px; padding: 8px 14px; background: var(--ink); color: #fff; z-index: 10; }

@media (max-width: 900px) {
  .landing { height: auto; min-height: 100vh; overflow: visible; }
  .stage { height: auto; }
  .top { grid-template-columns: auto 1fr; padding: 0 16px; }
  .status { display: none; }
  .top nav { gap: 14px; }
  .stage { grid-template-columns: 1fr; }
  .actor { order: -1; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .fig { width: 170px; max-height: none; }
  .term { height: 300px; }
  .term[data-term="ads"] { border-right: 0; border-bottom: 1px solid var(--line); }
  .term[data-term="thoughts"] { border-left: 0; }
  .about { padding: 56px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 20px 16px; }
}
