:root {
  color-scheme: dark;
  --black: #020304;
  --blue: #101fb5;
  --deep: #08157d;
  --cyan: #1cc8d1;
  --red: #b40c13;
  --white: #f7f7ed;
  --yellow: #ffe936;
  --green: #53ef87;
  --line: #79b6f1;
  --muted: #a7b2cf;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
button, input, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }

.bbs {
  width: min(1180px, 100%);
  height: calc(100vh - 20px);
  margin: auto;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr) 42px 30px;
  overflow: hidden;
  background: var(--blue);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 5px #060910;
}
.topbar, .statusbar { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; font-size: 12px; font-weight: 700; }
.topbar { background: var(--red); color: var(--yellow); }
.topbar button, .statusbar button { padding: 0; background: transparent; font-weight: 700; }
.topbar button:hover, .statusbar button:hover { color: var(--white); }
.topmeta { display: flex; align-items: center; gap: 18px; }
.topmeta > span { color: var(--cyan); }
.languages { display: flex; gap: 10px; }
.languages a { color: var(--white); }
.languages a:hover, .languages a.active { color: var(--yellow); text-decoration: underline; }
.display { min-width: 0; min-height: 0; padding: 14px; overflow: hidden; background: var(--blue); }
.screen { display: none; width: 100%; height: 100%; padding: clamp(16px, 3vw, 34px); overflow: auto; background: var(--deep); border: 1px solid var(--line); }
.screen.active { display: block; animation: draw .12s steps(2); }
@keyframes draw { from { opacity: .15; } }

.wordmark { width: min(610px, 82%); height: auto; margin: 0 auto 3px; display: block; object-fit: contain; }
.tagline { margin: 0 0 22px; text-align: center; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.welcome { width: min(780px, 100%); margin: 0 auto 18px; padding: 8px 12px; display: grid; grid-template-columns: 100px 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.welcome span { color: var(--cyan); }
.welcome p { margin: 0; }

.menu { width: min(780px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.menu button, .menu a { min-width: 0; padding: 9px 10px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; text-align: left; background: transparent; }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { outline: 0; background: var(--cyan); color: #031013; }
.menu b { grid-row: 1 / 3; align-self: center; color: var(--yellow); }
.menu span { font-size: 13px; font-weight: 700; }
.menu em { color: var(--white); font-size: 10px; font-style: normal; }
.menu button:hover b, .menu a:hover b { color: var(--red); }
.menu button:hover em, .menu a:hover em { color: #123047; }
.last-call { width: min(780px, 100%); margin: 18px auto 0; padding: 8px 10px; background: var(--cyan); color: #031013; font-size: 11px; font-weight: 700; }

h1 { margin: 0 0 9px; color: var(--yellow); font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: .06em; }
.back { margin: 0 0 22px; padding: 7px 9px; background: transparent; border: 1px solid var(--line); color: var(--cyan); font-size: 9px; font-weight: 700; }
.back:hover, .back:focus-visible { outline: 0; background: var(--cyan); color: #031013; }
.lead { margin: 0 0 26px; font-size: 13px; }
.process { width: min(820px, 100%); margin: 0; padding: 0; list-style: none; }
.process li { min-height: 58px; display: grid; grid-template-columns: 48px 120px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 12px; }
.process b, .process span, .label { color: var(--cyan); }
.process em { font-style: normal; }

.records { width: min(840px, 100%); margin: 22px 0 28px; }
.records div { display: grid; grid-template-columns: 160px minmax(0, 1fr); padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 12px; }
.records dt { color: var(--cyan); }
.records dd { margin: 0; overflow-wrap: anywhere; }
.online { color: var(--green); font-weight: 700; }
.label { margin: 0 0 10px; font-size: 11px; font-weight: 700; }
.copyline { width: min(900px, 100%); padding: 7px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); }
.copyline code { min-width: 0; flex: 1; padding: 6px; overflow-wrap: anywhere; font-size: 11px; }
[data-copy] { flex: 0 0 auto; padding: 9px 11px; background: var(--cyan); color: #031013; font-size: 9px; font-weight: 700; }
[data-copy]:hover { background: var(--white); }
.door { margin-top: 20px; display: inline-block; color: var(--yellow); font-size: 12px; font-weight: 700; }
.door:hover { color: var(--cyan); }
.doors { display: flex; flex-wrap: wrap; gap: 24px; }
.doors button.door { padding: 0; background: transparent; }
.hash { color: var(--cyan); font-size: 10px; }

.offerings { width: min(900px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offerings section { min-width: 0; padding: 15px; border: 1px solid var(--line); }
.offerings h2, .allocation-notes h2 { margin: 0 0 10px; color: var(--cyan); font-size: 11px; }
.offerings p { min-height: 48px; margin: 0 0 14px; font-size: 10px; line-height: 1.5; }
.offerings b { color: var(--green); font-size: 11px; }
.compact-records { margin-block: 24px 8px; }
.repository-gates { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.repository-gates > section { min-width: 0; padding: 16px; border: 1px solid var(--line); }
.repository-gates h2 { margin: 0; color: var(--cyan); font-size: 14px; }
.repository-gates .records { width: 100%; margin: 12px 0 4px; }
.repository-gates .records div { grid-template-columns: 110px minmax(0, 1fr); font-size: 11px; }
.repository-gates .door { margin-top: 14px; }
.stack-install { margin-top: 28px; }

.token-intro { width: min(900px, 100%); font-size: 14px; line-height: 1.65; }
.token-intro p { margin: 0 0 12px; }
.token-facts { margin-bottom: 22px; }
.token-facts div { font-size: 14px; }
.token-facts dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.allocation { width: min(900px, 100%); margin: 0 0 26px; }
.allocation > div { display: grid; grid-template-columns: minmax(180px, 1fr) 240px 45px; align-items: center; gap: 14px; padding: 8px 0; font-size: 13px; }
.allocation span { height: 12px; background: linear-gradient(90deg, var(--cyan) var(--share), rgba(255,255,255,.12) var(--share)); border: 1px solid rgba(255,255,255,.22); }
.allocation b { font-weight: 500; }
.allocation em { color: var(--green); font-style: normal; text-align: right; }
.allocation-notes { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.allocation-notes section { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.28); }
.allocation-notes h2 { font-size: 13px; }
.allocation-notes p { margin: 0; font-size: 12px; line-height: 1.55; }
.token-flywheel { width: 100%; margin-top: 30px; padding: 0; border: 0; }
.token-flywheel h2 { margin: 0 0 20px; color: var(--yellow); font-size: 23px; }
.token-flywheel > p { max-width: 1040px; margin: 20px 0 0; font-size: 13px; line-height: 1.65; }
.flywheel-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.flywheel-steps li { position: relative; min-width: 0; min-height: 132px; padding: 16px; border: 1px solid rgba(38,197,205,.62); background: rgba(7,24,116,.24); }
.flywheel-steps li:not(:last-child)::after { position: absolute; z-index: 1; top: 45%; right: -12px; color: var(--yellow); content: "→"; font-size: 15px; }
.flywheel-steps span,
.flywheel-steps strong,
.flywheel-steps small { display: block; }
.flywheel-steps span { color: var(--yellow); font-size: 11px; }
.flywheel-steps strong { margin-top: 14px; color: var(--cyan); font-size: 13px; line-height: 1.3; }
.flywheel-steps small { margin-top: 10px; color: var(--white); font-size: 11px; line-height: 1.4; }
.founder { margin: 22px 0 0; color: var(--green); font-size: 14px; font-weight: 700; }
.screen[data-screen="tokenomics"] .label { font-size: 13px; }

.commands { width: min(820px, 100%); border-top: 1px solid rgba(255,255,255,.28); }
.commands > div { min-height: 72px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.28); }
.commands b { color: var(--cyan); font-size: 11px; }
.commands code { font-size: 13px; }
.note { margin-top: 24px; color: var(--white); font-size: 11px; }

.promptbar { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 13px; background: #030509; border-top: 1px solid var(--line); border-bottom: 1px solid #384258; font-size: 13px; }
.promptbar label { color: var(--cyan); font-weight: 700; }
.promptbar input { min-width: 0; height: 100%; padding: 0; outline: 0; background: transparent; border: 0; caret-color: transparent; text-transform: lowercase; }
.cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.statusbar { background: var(--cyan); color: #031013; }
.statusbar i { font-style: normal; }
.statusbar nav { display: flex; gap: 25px; }
.statusbar a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { padding: 0; }
  .bbs { width: 100%; height: 100vh; border: 0; box-shadow: none; grid-template-rows: 28px minmax(0, 1fr) 40px 30px; }
  .topbar { font-size: 10px; }
  .display { padding: 5px; }
  .screen { padding: 16px 12px; }
  .wordmark { width: 94%; margin-top: 5px; }
  .tagline { margin-bottom: 14px; font-size: 9px; }
  .welcome { grid-template-columns: 70px 1fr; font-size: 10px; }
  .menu { grid-template-columns: 1fr; gap: 0; }
  .menu button, .menu a { padding: 7px 5px; grid-template-columns: 34px 1fr; }
  .menu span { font-size: 11px; }
  .last-call { margin-top: 10px; font-size: 9px; }
  .process li { grid-template-columns: 32px 76px 1fr; min-height: 48px; font-size: 10px; }
  .records div { grid-template-columns: 95px minmax(0, 1fr); font-size: 10px; }
  .offerings { grid-template-columns: 1fr; }
  .repository-gates { grid-template-columns: 1fr; }
  .offerings p { min-height: 0; }
  .token-intro { font-size: 11px; }
  .token-facts div { font-size: 11px; }
  .token-facts dd { align-items: flex-start; flex-direction: column; }
  .allocation > div { grid-template-columns: 1fr 112px 34px; gap: 8px; font-size: 10px; }
  .allocation-notes { grid-template-columns: 1fr; gap: 0; }
  .flywheel-steps { grid-template-columns: 1fr; gap: 10px; }
  .flywheel-steps li { min-height: 0; }
  .flywheel-steps li:not(:last-child)::after { top: auto; right: 14px; bottom: -13px; transform: rotate(90deg); }
  .copyline code { font-size: 9px; }
  .commands > div { min-height: 62px; grid-template-columns: 30px minmax(0, 1fr) auto; }
  .commands code { font-size: 10px; overflow-wrap: anywhere; }
  .statusbar > span { display: none; }
  .statusbar nav { width: 100%; justify-content: space-around; gap: 0; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active { animation: none; }
  .cursor { animation: none; }
}
