/* ───────── ALL · the look (loaded last, wins over every older layer) ─────────
   Black page with a sparse pixel field, white type, one red. Huge tight Inter Display headlines, a pixel font for
   labels, thin 1px lines. Every page lives in one centred column that is 40% of the screen wide; the rest stays
   empty on purpose. Fonts are served by the site itself (no Google Fonts: no third party sees the visit). */
@font-face { font-family: 'Inter'; src: url(/fonts/inter-400.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-500.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-600.woff) format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url(/fonts/inter-display-600.woff) format('woff'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url(/fonts/inter-display-700.woff) format('woff'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'ALL Pixel'; src: url(/fonts/all-pixel.woff) format('woff'); font-weight: 400; font-display: block; }

:root {
  --bg: #0A0A0A; --surface: #101010; --surface-2: #151515; --line: #232323; --line-2: #1A1A1A;
  --ink: #EDEDEB; --mute: #9A9A98; --dim: #6A6A68;
  --red: #E9332D; --red-hi: #FF4B42; --red-soft: rgba(233, 51, 45, .12);
  --green: #6FD39A; --amber: #E5B45B;
  --accent: var(--red); --accent-ink: #fff; --accent-soft: var(--red-soft); --hi: var(--red);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --serif: var(--display);
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --pix: 'ALL Pixel', ui-monospace, monospace;
  --side-w: 0px !important;
  --nav-h: 76px !important;
  --colw: 40vw;          /* the column: 40% text and page, 60% empty */
  --gut: 0px;
  color-scheme: dark;
}
/* narrow screens: 40% would be unreadable, so the column grows (big screens keep exactly 40%) */
@media (max-width: 1599px) { :root { --colw: min(56vw, 900px); } }
@media (max-width: 1199px) { :root { --colw: min(78vw, 880px); } }
@media (max-width: 860px)  { :root { --colw: calc(100vw - 32px); } }

/* every per-module accent from the older layers collapses into the one red */
body[data-module] { --accent: var(--red); --accent-ink: #fff; --accent-soft: var(--red-soft); --hi: var(--red); --bg: #0A0A0A; --surface: #101010; --surface-2: #151515; --line: #232323; --line-2: #1A1A1A; --ink: #EDEDEB; --mute: #9A9A98; --dim: #6A6A68; }

html { background: var(--bg) !important; }
body { background: var(--bg) !important; background-image: none !important; color: var(--ink); font: 400 15px/1.6 var(--sans); padding: 0 !important; letter-spacing: -.006em; }
body::before, body::after { display: none !important; content: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 3px; }

/* backdrop pixel field, fixed behind everything */
#backdrop { position: fixed !important; inset: 0 !important; left: 0 !important; z-index: 0; pointer-events: none; background: none !important; }
#backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#view, .nav, .toasts, .modal { position: relative; }

/* ───────── the column ───────── */
.col { width: var(--colw); margin-inline: auto; }
#view { width: var(--colw); margin: 0 auto; min-height: 100vh; padding-top: var(--nav-h); z-index: 1; container: col / inline-size; outline: none; }
#view .wrap, #view .page, #view .tl, #view .ag, #view .au, #view .ot, #view .mu, #view .vc, #view .bp, #view .lc, #view .ck-page, #view .adm { max-width: none !important; width: 100%; margin-inline: 0; padding-inline: 0 !important; }
#view section { padding-inline: 0 !important; }

/* ───────── type ───────── */
.label { font: 400 10.5px/1.2 var(--pix) !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--mute); }
.label.red, .red { color: var(--red) !important; }
.mono { font-family: var(--mono); }
h1, h2, h3, .serif { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; color: var(--ink); }
h1 { line-height: .95; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--ink); opacity: .42; font-family: inherit; }
#view h1 { font-size: clamp(40px, 3.9vw, 84px) !important; letter-spacing: -.055em !important; font-weight: 700 !important; text-transform: none !important; }
#view h2 { font-size: clamp(28px, 2.3vw, 48px) !important; letter-spacing: -.045em !important; line-height: 1 !important; text-transform: none !important; }
#view h3 { letter-spacing: -.03em; }
.nl-dot { display: inline-block; width: .16em; height: .16em; background: var(--red); margin-left: .06em; vertical-align: baseline; border-radius: 50%; }
p { color: var(--mute); }
a.acc, .acc { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.up { color: var(--green) !important; } .down { color: var(--red) !important; } .warn { color: var(--amber) !important; }

/* ───────── controls ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 2px !important; border: 1px solid #2E2E2E !important; background: rgba(10, 10, 10, .6) !important; color: var(--ink) !important; font: 600 14px/1 var(--sans) !important; letter-spacing: -.01em !important; text-transform: none !important; box-shadow: none !important; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.btn:hover { border-color: var(--ink) !important; background: rgba(237, 237, 235, .04) !important; }
.btn.primary, .btn.acc { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.btn.primary:hover { background: var(--red-hi) !important; border-color: var(--red-hi) !important; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px !important; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arrow { font-family: var(--sans); }
.input, .textarea, select, input[type="text"], input[type="number"], input:not([type]), textarea { background: #0D0D0D !important; border: 1px solid #262626 !important; border-radius: 2px !important; color: var(--ink) !important; box-shadow: none !important; }
.input:focus, .textarea:focus, select:focus, input:focus, textarea:focus { border-color: var(--red) !important; outline: none; }
.input::placeholder, textarea::placeholder { color: #5E5E5C; }
.field > span { font: 400 10px/1.2 var(--pix); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.chip { border-radius: 2px !important; border-color: var(--line) !important; background: transparent !important; font-family: var(--mono); }
.chip.on { color: var(--green) !important; }
.copy { color: var(--ink); border-bottom: 1px dashed #3A3A3A; }
.copy:hover { border-color: var(--red); }
code { background: #111 !important; border: 1px solid var(--line) !important; border-radius: 2px !important; color: var(--ink) !important; }
.err, .error { color: var(--red-hi) !important; }
.skel { background: linear-gradient(90deg, #111 0%, #171717 50%, #111 100%) !important; background-size: 200% 100% !important; border-radius: 2px !important; }

/* panels: every card / box in every module gets the same quiet frame */
.card, .panel, .box, .state, .empty, .tl-coin, .tl-rules > div, .tl-steps li, .tl-kpis > div, .ag-card, .ag-panel, .au-card, .au-lot, .ot-card, .mu-card, .vc-card, .lc-card, .bp-card, .adm-card, .hub-faq details, .ck-card, .ag-coin, .au-flow > *, .ag-how > *, .ag-stats > *, .ag-kpis > *, .au-kv > *, .mu-kv > * {
  border-radius: 2px !important; border-color: var(--line) !important; box-shadow: none !important; background-color: rgba(14, 14, 14, .82) !important; background-image: none !important;
}
.state, .empty { border: 1px dashed #2A2A2A !important; color: var(--mute); }

/* hero art frames from older layers: no blueprint frames, just the ring on black */
.tl-screen, .ag-sketch, .au-la, .vc-net, .mu-canvas, .ot-canvas, .ck-art, .cd-art, .bp-art, .hub-pv-frame { border: 0 !important; background: none !important; box-shadow: none !important; }
.tl-screen::before, .tl-screen::after, .ag-sketch::before, .ag-sketch::after { display: none !important; }
canvas.wire-c, canvas.ring-c { display: block; width: 100%; height: 100%; min-height: 300px; }
.tl-play { font: 400 10px/1 var(--pix) !important; letter-spacing: .16em; color: var(--red) !important; background: none !important; border: 0 !important; }

/* ───────── top bar ───────── */
.nav.nl-nav { position: fixed !important; inset: 0 0 auto 0 !important; width: 100% !important; height: var(--nav-h) !important; display: block !important; padding: 0 !important; z-index: 60; background: rgba(10, 10, 10, .78) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 0 !important; border-bottom: 1px solid var(--line) !important; overflow: visible !important; }
.nl-bar { height: 100%; display: flex; align-items: center; gap: 22px; }
.nl-nav .brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.nl-nav .all-mark { width: 22px; height: 22px; color: var(--ink); }
.all-mark .am-core { animation: amCore 3.2s steps(1) infinite; }
@keyframes amCore { 0%, 86% { opacity: 1; } 88% { opacity: .2; } 92% { opacity: 1; } 95% { opacity: .3; } }
.nl-nav .brand-word { font: 400 17px/1 var(--pix) !important; letter-spacing: .28em !important; color: var(--ink); text-transform: uppercase; }
.nl-nav .tb-body { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; position: static !important; transform: none !important; background: none !important; border: 0 !important; padding: 0 !important; width: auto !important; }
.nl-nav .modnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; flex-direction: row !important; }
.nl-nav .modnav > a, .nl-more-btn, .nl-nav .guide-btn { display: inline-flex !important; align-items: baseline; gap: 6px; padding: 8px 9px !important; border-radius: 2px !important; font: 500 14px/1 var(--sans) !important; letter-spacing: -.01em !important; text-transform: none !important; color: #BDBDBB !important; background: none !important; white-space: nowrap; border: 0 !important; height: auto !important; width: auto !important; }
.nl-nav .modnav a i, .nl-more-btn i { font: 400 9px/1 var(--pix); font-style: normal; color: var(--dim); letter-spacing: .08em; width: auto !important; padding: 0 !important; }
.nl-nav .modnav a i::after { content: none !important; }
.nl-nav .modnav a small { display: none !important; }
.nl-nav .modnav > a > span, .nl-more-btn span { display: inline !important; }
.nl-nav .modnav > a:hover, .nl-more-btn:hover, .nl-nav .guide-btn:hover { color: var(--ink) !important; }
.nl-nav .modnav a[aria-current="page"] { color: var(--ink) !important; background: none !important; box-shadow: inset 0 -2px 0 var(--red) !important; }
.nl-nav .modnav a[aria-current="page"] i { color: var(--red); }
.nl-nav .guide-btn em, .nl-nav .guide-btn > span:first-child:empty { display: none; }
.nl-sep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; flex: none; }
.nl-plain i { display: none; }
.nl-more { position: relative; }
.nl-more-btn b { font: 400 12px/1 var(--pix); color: var(--red); transition: transform .25s; display: inline-block; }
.nl-more.open .nl-more-btn b { transform: rotate(45deg); }
.nl-more.has-cur .nl-more-btn { color: var(--ink) !important; box-shadow: inset 0 -2px 0 var(--red); }
.nl-menu { position: absolute; top: calc(100% + 14px); left: -10px; width: 380px; padding: 8px; background: #0C0C0C; border: 1px solid var(--line); display: grid; gap: 2px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s; z-index: 70; }
.nl-more.open .nl-menu { opacity: 1; transform: none; pointer-events: auto; }
.nl-menu a { display: grid !important; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 10px 10px !important; border-radius: 2px; color: var(--ink) !important; font: 500 14px/1.2 var(--sans) !important; border-left: 2px solid transparent; }
.nl-menu a i { font: 400 9px/1 var(--pix); font-style: normal; color: var(--dim); }
.nl-menu a span { display: grid !important; gap: 3px; }
.nl-menu a small { display: block !important; font: 400 12px/1.3 var(--sans); color: var(--dim); }
.nl-menu a:hover { background: #141414; border-left-color: var(--red); }
.nl-menu a[aria-current="page"] { border-left-color: var(--red); background: #141414; }
.nl-menu a[aria-current="page"] i { color: var(--red); }
.nl-nav .tb-tools { display: flex; align-items: center; gap: 8px; flex: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.nl-nav .ca-chip { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line) !important; border-radius: 2px !important; background: transparent !important; font: 400 9.5px/1 var(--pix) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--mute) !important; }
.nl-nav .ca-chip .mono { font-family: var(--mono); letter-spacing: 0; text-transform: none; font-size: 12px; }
.nl-nav .ca-k { color: var(--ink); }
.nl-nav .x-link { width: 32px; height: 32px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid var(--line) !important; border-radius: 2px !important; }
.nl-nav .net { width: 32px; height: 32px; padding: 0 !important; justify-content: center; border: 1px solid var(--line) !important; border-radius: 2px !important; }
.nl-nav .net .net-label { display: none; }
.nl-nav .net .dot { width: 6px; height: 6px; border-radius: 0 !important; box-shadow: none !important; background: var(--dim); }
.nl-nav .net.ok .dot { background: var(--green); } .nl-nav .net.part .dot { background: var(--amber); }
.nl-nav .wbtn { height: 34px !important; padding: 0 14px !important; border-radius: 2px !important; background: var(--red) !important; border: 1px solid var(--red) !important; color: #fff !important; font: 600 13.5px/1 var(--sans) !important; letter-spacing: -.01em !important; text-transform: none !important; width: auto !important; }
.nl-nav .wbtn:hover { background: var(--red-hi) !important; }
.nl-nav .wbtn.on { background: transparent !important; border-color: var(--line) !important; font: 500 12px/1 var(--mono) !important; }
.nl-nav .menu-btn { display: none; }
.tb-ruler, .tb-mark, .nav-ink { display: none !important; }

/* tight column: hide the CA chip first, then the X box, then the numbers */
@media (max-width: 2299px) { .nl-nav .ca-slot { display: none; } }
@media (max-width: 2099px) and (min-width: 861px) { .nl-nav .modnav > a i, .nl-more-btn i { display: none; } .nl-sep { display: none; } }
@media (max-width: 2099px) { .nl-nav .guide-btn { display: none !important; } }
@media (max-width: 1360px) { .nl-nav .modnav > a i, .nl-more-btn i { display: none; } }
@media (max-width: 860px) {
  :root { --nav-h: 62px !important; }
  .nl-nav .menu-btn { display: inline-flex !important; margin-left: auto; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 2px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
  .nl-nav .menu-btn span { width: 16px; height: 1px; background: var(--ink); display: block; }
  .nl-nav .tb-body { position: fixed !important; inset: var(--nav-h) 0 0 0 !important; display: none; flex-direction: column; align-items: stretch; padding: 18px 16px !important; background: #0A0A0A !important; overflow-y: auto; }
  .nl-nav .tb-body.open { display: flex; }
  .nl-nav .modnav { flex-direction: column !important; align-items: stretch; flex: none; }
  .nl-nav .modnav > a, .nl-more-btn, .nl-nav .guide-btn { padding: 14px 6px !important; font-size: 18px !important; border-bottom: 1px solid var(--line-2) !important; }
  .nl-nav .modnav > a i, .nl-more-btn i { display: inline !important; }
  .nl-more-btn { display: none !important; }
  .nl-menu { position: static; opacity: 1; transform: none; pointer-events: auto; width: auto; border: 0; padding: 0; background: none; }
  .nl-menu a { padding: 14px 6px !important; font-size: 18px !important; border-bottom: 1px solid var(--line-2); }
  .nl-menu a small { display: none !important; }
  .nl-sep { display: none; }
  .nl-nav .guide-btn { display: inline-flex !important; }
  .nl-nav .tb-tools { padding-top: 16px !important; flex-wrap: wrap; }
  .nl-nav .ca-slot { display: inline; }
}

/* ticker band: stays inside the 40% column, edge to edge between the side rails */
.nl-tick { position: relative; width: auto; left: auto; margin-left: calc(-1 * var(--rail-pad)); margin-right: calc(-1 * var(--rail-pad)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(12, 12, 12, .85); overflow: hidden; height: 48px; display: flex; align-items: center; }
.nl-tick-run { display: flex; align-items: center; gap: 26px; white-space: nowrap; animation: tick 60s linear infinite; padding-left: 26px; }
.nl-tick-run span { font: 400 11px/1 var(--pix); letter-spacing: .2em; color: #C9C9C7; }
.nl-tick-run i { width: 40px; height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 11px); }
@keyframes tick { to { transform: translateX(-33.333%); } }
.nl-ticker { display: none; }

/* toasts, modal */
.toast { background: #0F0F0F !important; border: 1px solid var(--line) !important; border-left: 2px solid var(--red) !important; border-radius: 2px !important; color: var(--ink); box-shadow: none !important; }
.toast.bad { border-left-color: var(--red-hi) !important; }
.modal { background: rgba(0, 0, 0, .72) !important; backdrop-filter: blur(4px); z-index: 90; position: fixed !important; }
.modal .dialog { background: #0D0D0D !important; border: 1px solid var(--line) !important; border-radius: 2px !important; box-shadow: none !important; }
.steps li.active::before, .steps li.done::before { background: var(--red) !important; border-color: var(--red) !important; }

/* page transition canvas */
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; }
#fx.on { opacity: 1; }

/* footer */
.foot { width: 100%; margin: 80px 0 0 !important; padding: 26px 0 40px !important; border-top: 1px solid var(--line) !important; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font: 400 10px/1.4 var(--pix) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--dim) !important; background: none !important; }
.foot-l { display: inline-flex; align-items: center; gap: 10px; }

/* guide (tour) */
.tour-card, .tour .card { background: #0D0D0D !important; border: 1px solid var(--line) !important; border-top: 2px solid var(--red) !important; border-radius: 2px !important; }
.tour-ring, .tour-hl { border-color: var(--red) !important; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .66) !important; border-radius: 2px !important; }

/* ───────── older module layouts inside the narrow column ───────── */
@container col (max-width: 1150px) {
  .tl-hero, .ag-hero, .vc-hero, .vc-top, .au-hero-b, .au-lotp, .mu-dtop, .mu-cgrid, .ot-grid, .ot-ngrid, .au-lgrid, .ag-form, .ag-two, .bp-work, .bp-sheet, .hub-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .tl-steps, .au-flow, .ag-how, .hub-how-s { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ag-kpis { grid-template-columns: repeat(3, 1fr) !important; }
  .ag-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .tl-screen, .ag-sketch, .vc-net, .mu-canvas, .ot-canvas, .au-la { min-height: 340px; height: 380px; }
}
@container col (max-width: 620px) {
  .tl-steps, .au-flow, .ag-how, .hub-how-s, .tl-rules, .tl-kpis, .mu-kv, .au-kv, .ag-card-n, .vc-two { grid-template-columns: minmax(0, 1fr) !important; }
  .ag-kpis, .ag-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .ot-o { grid-template-columns: 1fr 1fr !important; }
}

/* fixes over the layout layer */
.nl-dot { display: inline-block !important; font-style: normal; }
.nl-pill { border-radius: 13px !important; }
.nl-nav .guide-btn span { border: 0 !important; width: auto !important; height: auto !important; background: none !important; font: inherit !important; color: inherit !important; display: inline !important; padding: 0 !important; }
.guide-card, .guide-pop, .tour-pop, .guide-hint, [class*="guide-"] .card { background: #0D0D0D !important; border: 1px solid var(--line) !important; border-top: 2px solid var(--red) !important; border-radius: 2px !important; }
.nw { white-space: nowrap; }
h1 em, h2 em, h3 em { color: var(--red) !important; opacity: 1 !important; text-decoration: none !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
/* Mutation / P2P heroes: the ring sits on the right, not under the headline */
@container col (min-width: 700px) {
  .mu-canvas, .ot-canvas { left: auto !important; right: 0 !important; width: 44% !important; }
  .mu-hero > :not(canvas), .ot-hero > :not(canvas) { max-width: 54%; }
}

/* ───────── the column's side rails: two thin lines from top to bottom, through the top bar ─────────
   The column is 40% of the screen between the lines; content sits a little inside them. */
:root { --rail-pad: 22px; }
.nl-rails { position: fixed; top: 0; bottom: 0; left: 50%; width: var(--colw); transform: translateX(-50%); border-left: 1px solid #262626; border-right: 1px solid #262626; background: rgba(255, 255, 255, .014); pointer-events: none; z-index: 61; }
.nl-bar.col, #view { box-sizing: border-box; padding-inline: var(--rail-pad) !important; }
.nl-nav .nl-bar { height: 100%; }
/* inner sections stay inside the padding */
@media (max-width: 860px) { :root { --colw: 100vw; --rail-pad: 16px; } .nl-rails { border: 0; background: none; } }
.nl-nav .nl-menu a { text-transform: none !important; letter-spacing: -.01em !important; font: 600 15px/1.2 var(--sans) !important; }
.nl-nav .nl-menu a small { display: block !important; text-transform: none !important; letter-spacing: 0 !important; font: 400 12.5px/1.3 var(--sans) !important; color: var(--dim) !important; }
.nl-nav .nl-menu a span { display: grid !important; gap: 3px; }
/* Tools menu: an invisible bridge over the gap under the button, so moving down never leaves the menu */
.nl-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nl-more { padding-bottom: 0; }
.nl-nav .nl-menu a[aria-current="page"] { box-shadow: none !important; border-left-color: var(--red) !important; background: #141414 !important; }
