/* wrld — rulr's paper-terminal register: cream paper, a dot grid, JetBrains Mono, ink line-work and green # fills */
@font-face { font-family: 'JBM'; src: url('../fonts/jbm.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --paper: #f6f3ec; --paper2: #efebe1; --grid: #d0c8b9; --ink: #1d3934; --ink2: #34504a; --mid: #5b6762; --mute: #7d8984; --pale: #b5c2bd; --line: #c9cfc6;
  --green: #4fbf7c; --green2: #2f8f6e; --green3: #1f7a58; --violet: #6a55c9; --burn: #c2470e; --hold: #1a64c2; --air: #0b7a6a; --crea: #966000; --chest: #c2307a; --red: #b42318;
  --gut: 32px; --w: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='15' y='15' width='2' height='2' fill='%23d0c8b9'/%3E%3C/svg%3E"); overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 13.5px/1.62 'JBM', ui-monospace, Menlo, Consolas, monospace; overflow-x: clip; -webkit-font-smoothing: antialiased; font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a.u, .prose a { text-decoration: underline; text-decoration-color: var(--pale); text-underline-offset: 3px; }
a.u:hover, .prose a:hover { text-decoration-color: var(--green2); }
::selection { background: var(--green); color: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
pre { margin: 0; font-family: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--mute); } .mid { color: var(--mid); } .g { color: var(--green2); } .gg { color: var(--green); } .v { color: var(--violet); }
.burn { color: var(--burn); } .hold { color: var(--hold); } .air { color: var(--air); } .crea { color: var(--crea); } .chest { color: var(--chest); } .red { color: var(--red); }
b, strong { font-weight: 700; }

/* ---------- header ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px 22px 10px; }
.logo { display: flex; align-items: center; gap: 9px; justify-self: start; }
.logo img { width: 30px; height: 30px; display: block; }
.logo .wn { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink); } .logo .wn i { font-style: normal; color: var(--green2); }
.logo pre { font-size: 6.6px; line-height: 1.16; font-weight: 600; letter-spacing: 0; }
.logo .ln { color: var(--ink); } .logo .lg { color: var(--green); } .logo .ld { color: var(--green2); } .logo .lp { color: var(--pale); }
.logo pre .f { color: var(--green); font-weight: 700; } .logo pre .s { color: var(--ink); font-weight: 700; }
.nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.nav a { color: var(--mid); padding: 6px 2px; } .nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 700; } .nav a.on::before { content: '['; } .nav a.on::after { content: ']'; }
.acts { display: flex; gap: 12px; align-items: center; justify-self: end; }
.br { display: inline-flex; align-items: center; gap: 4px; padding: 8px 4px; color: var(--ink); font-weight: 700; background: none; border: 0; cursor: pointer; white-space: nowrap; min-height: 40px; }
.br::before { content: '['; color: var(--mute); font-weight: 400; margin-right: 4px; } .br::after { content: ']'; color: var(--mute); font-weight: 400; margin-left: 4px; }
.br:hover { color: var(--green3); } .br .p { color: var(--green2); }
.br.sm { font-weight: 500; min-height: 32px; padding: 4px 2px; }

/* ---------- tape ---------- */
.tape { border-top: 1px dashed var(--pale); border-bottom: 1px dashed var(--pale); overflow: hidden; white-space: nowrap; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape .in { display: inline-block; padding: 9px 0; animation: tape 90s linear infinite; }
.tape:hover .in { animation-play-state: paused; }
.tape .it { margin-right: 18px; color: var(--mid); } .tape .it b { color: var(--ink); } .tape .sep { color: var(--pale); margin-right: 18px; }
.tape .ar { color: var(--crea); font-weight: 700; }
@keyframes tape { to { transform: translateX(-50%); } }
.up { color: var(--green2); } .dn { color: var(--burn); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: center; padding-top: 34px; padding-bottom: 30px; }
.prompt { color: var(--ink); font-size: 14px; margin-bottom: 20px; min-height: 1.6em; }
.prompt .gt { color: var(--green2); font-weight: 700; margin-right: 8px; }
.cur { display: inline-block; width: .6em; height: 1.1em; background: var(--ink); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; margin-left: 1px; }
.cur.u { height: 2px; vertical-align: 0; }
@keyframes blink { 50% { opacity: 0; } }
.big { font-size: min(.9vw, 9.6px); line-height: 1.18; font-weight: 700; white-space: pre; overflow: hidden; }
.big .f1 { color: var(--ink); } .big .s1 { color: var(--pale); } .big .f2 { color: var(--green); } .big .s2 { color: var(--ink); }
.big + .big { margin-top: .9em; }
.lede { max-width: 58ch; margin: 26px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink2); }
.cta { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 26px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px dashed var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; isolation: isolate; min-height: 44px; transition: transform .12s; }
.btn::after { content: ''; position: absolute; left: 6px; top: 6px; right: -7px; bottom: -7px; z-index: -2;
  background: repeating-linear-gradient(0deg, var(--green) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, var(--green) 0 2px, transparent 2px 4px); opacity: .9; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--paper); z-index: -1; }
.btn:hover { transform: translate(-1px, -1px); } .btn:active { transform: translate(3px, 3px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost::after { display: none; }
.btn .k { color: var(--green2); }
.globe { position: relative; }
.globe pre { font-size: 12.4px; line-height: 1; font-weight: 600; white-space: pre; user-select: none; }
.globe .gl { color: var(--ink); } .globe .gd { color: var(--green); } .globe .gs { color: var(--green2); } .globe .go { color: var(--pale); } .globe .gp { color: var(--burn); font-weight: 800; }
.pins { margin-top: 12px; font-size: 12px; color: var(--mid); display: grid; gap: 2px; }
.pins .pin { display: flex; justify-content: space-between; gap: 10px; } .pins .pin b { color: var(--ink); font-weight: 600; }
.pins .pin.lit b { color: var(--burn); }

/* ---------- the official-token strip ---------- */
.ca { display: inline-grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 10px 14px; border: 1px dashed var(--pale); margin-top: 28px; max-width: 100%; font-size: 12.5px; }
.ca .k { color: var(--green3); font-weight: 700; } .ca code { overflow-wrap: anywhere; }
.ca .r { grid-column: 2; display: flex; gap: 14px; }

/* ---------- sections: dashed boxes with a # heading, like a terminal pane ---------- */
.sec { padding-top: 34px; padding-bottom: 6px; scroll-margin-top: 10px; }
.box { border: 1px dashed var(--pale); background: rgba(246, 243, 236, .72); }
.box > .hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px dashed var(--pale); }
.box > .hd h2 { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; }
.box > .hd h2::before { content: '# '; color: var(--green2); }
.box > .hd .ctl { display: flex; gap: 12px; color: var(--mute); font-size: 12px; align-items: center; }
.box > .bd { padding: 18px 16px; }
.sub { color: var(--mid); margin: 0 0 16px; max-width: 76ch; }
.cols { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k3 { font-size: 11.5px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; margin-bottom: 8px; }

/* live world board */
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row .nm { font-weight: 700; } .row .vl { text-align: right; white-space: nowrap; }
.row .sp { grid-column: 1 / -1; color: var(--green2); letter-spacing: 1px; font-size: 12px; line-height: 1; height: 13px; overflow: hidden; }
.row .meta { grid-column: 1 / -1; color: var(--mute); font-size: 12px; }
.tag { display: inline-block; padding: 0 6px; border: 1px solid currentColor; font-size: 11px; line-height: 17px; font-weight: 700; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; color: var(--mute); font-size: 12px; padding: 10px 16px; border-top: 1px dashed var(--pale); }
.foot a { text-decoration: underline; text-decoration-color: var(--pale); }
.off { color: var(--mute); }
.off::before { content: '● '; color: var(--burn); }
.livedot::before { content: '● '; color: var(--green); animation: blink 2s steps(1) infinite; }

/* pipeline */
.pipe pre { font-size: 12.5px; line-height: 1.32; white-space: pre; overflow: hidden; }
.pipe .st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pipe .st div { color: var(--mid); font-size: 12.5px; } .pipe .st b { color: var(--ink); display: block; }
.pipe .st span { color: var(--green2); font-weight: 800; margin-right: 6px; }
.pipe .hot { color: var(--burn); font-weight: 800; } .pipe .ok { color: var(--green2); font-weight: 800; } .pipe .pk { color: var(--green); font-weight: 800; }

/* rule editor */
.rule { border: 1px dashed var(--pale); padding: 12px 12px 10px; background: var(--paper); position: relative; }
.rule + .rule { margin-top: 10px; }
.rule .ln { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rule .w { color: var(--violet); font-weight: 700; } .rule .arr { color: var(--mute); }
.rule .n { position: absolute; right: 10px; top: 8px; color: var(--mute); font-size: 11.5px; }
.rule .x { position: absolute; right: 6px; bottom: 6px; }
select, input[type=text], input[type=number], input[type=url], textarea {
  background: var(--paper); border: 0; border-bottom: 1px solid var(--ink2); padding: 7px 4px; min-height: 36px; border-radius: 0; outline: none; max-width: 100%;
}
select { cursor: pointer; padding-right: 18px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 9px) 50%, calc(100% - 5px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--green2); box-shadow: 0 1px 0 var(--green2); }
input::placeholder, textarea::placeholder { color: var(--pale); }
input.num { width: 92px; } input.pct { width: 58px; } input.sm { width: 64px; }
.city { position: relative; display: inline-block; }
.city .dd { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 260px; background: var(--paper); border: 1px dashed var(--ink2); margin-top: 2px; }
.city .dd button { display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; cursor: pointer; }
.city .dd button:hover, .city .dd button:focus { background: var(--paper2); outline: none; }
.rule .meta2 { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); font-size: 12px; align-items: center; }
.code { background: var(--paper2); border-left: 3px solid var(--green); padding: 12px 14px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.code .kw { color: var(--violet); font-weight: 700; } .code .cm { color: var(--mute); } .code .fn { color: var(--ink); font-weight: 700; } .code .st { color: var(--green3); }
.code .burn { color: var(--burn); font-weight: 700; } .code .hold { color: var(--hold); font-weight: 700; } .code .air { color: var(--air); font-weight: 700; } .code .crea { color: var(--crea); font-weight: 700; }
.code .cp { position: absolute; right: 8px; top: 6px; }
.verdict { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--pale); display: grid; gap: 4px; }
.verdict .big2 { font-weight: 800; font-size: 15px; }
.verdict .yes { color: var(--green3); } .verdict .no { color: var(--mid); } .verdict .na { color: var(--burn); }

/* templates */
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpl { border: 1px dashed var(--pale); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.tpl h3 { margin: 0; font-size: 13.5px; } .tpl h3::before { content: '$ '; color: var(--green2); }
.tpl p { margin: 0; color: var(--mid); font-size: 12.5px; }
.tpl .code { font-size: 11.5px; padding: 10px; flex: 1; }
.tpl .r { display: flex; gap: 14px; }

/* boards */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--mute); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px dashed var(--pale); }
.tbl td { padding: 10px 8px; border-bottom: 1px dotted var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .coin { display: flex; gap: 10px; align-items: center; } .tbl .coin img { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line); background: var(--paper2); }
.tbl .coin b { display: block; } .tbl .rl { color: var(--mid); font-size: 11.5px; }
.empty { padding: 26px 8px; color: var(--mid); }
.empty pre { color: var(--pale); font-size: 11px; line-height: 1.15; margin-bottom: 12px; }
.feed { display: grid; }
.ev { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 12.5px; }
.ev:last-child { border-bottom: 0; }
.ev .t { color: var(--mute); } .ev .l { display: flex; gap: 10px; white-space: nowrap; }
.ev .kind { font-weight: 800; margin-right: 6px; } .ev.fire .kind { color: var(--burn); } .ev.claim .kind { color: var(--hold); } .ev.launch .kind { color: var(--green3); } .ev.fee .kind { color: var(--crea); } .ev.error .kind { color: var(--red); } .ev.refund .kind { color: var(--chest); }

/* engine */
.cant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px dashed var(--pale); }
.cant > div { padding: 12px 14px; border-bottom: 1px dotted var(--line); }
.cant > div:nth-child(odd) { border-right: 1px dashed var(--pale); }
.cant .h { font-size: 11.5px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px dashed var(--pale); margin-top: 18px; }
.facts > div { padding: 12px 14px; border-right: 1px dashed var(--pale); }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font-size: 18px; } .facts span { color: var(--mid); font-size: 12px; }
.bar { font-size: 12px; color: var(--green); letter-spacing: 0; white-space: pre; }

/* FAQ */
details { border-bottom: 1px dotted var(--line); }
details summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 700; display: flex; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+'; color: var(--green2); font-weight: 800; width: 1ch; }
details[open] summary::before { content: '-'; }
details > div { padding: 0 0 14px 22px; color: var(--ink2); max-width: 80ch; }
details::details-content { transition: height .25s, content-visibility .25s allow-discrete; height: 0; overflow: clip; }
details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.end { padding-top: 40px; padding-bottom: 46px; color: var(--mute); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* launch */
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.side { position: sticky; top: 14px; display: grid; gap: 14px; }
.step { margin-top: 18px; }
.step > h2 { margin: 0 0 12px; font-size: 13.5px; font-weight: 800; } .step > h2 span { color: var(--green2); margin-right: 8px; }
.fld { display: grid; gap: 4px; margin-bottom: 14px; }
.fld label { font-size: 12px; color: var(--mid); }
.fld input, .fld textarea { width: 100%; }
.fld textarea { min-height: 70px; resize: vertical; border: 1px solid var(--line); padding: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pic { display: flex; gap: 14px; align-items: center; }
.pic .drop { width: 92px; height: 92px; border: 1px dashed var(--ink2); display: grid; place-items: center; cursor: pointer; background: var(--paper2); color: var(--mute); font-size: 11px; text-align: center; overflow: hidden; flex: none; }
.pic .drop img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.costs { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.costs td { padding: 5px 0; border-bottom: 1px dotted var(--line); } .costs td:last-child { text-align: right; }
.costs tr.t td { font-weight: 800; border-bottom: 0; padding-top: 8px; }
.prog { display: grid; gap: 6px; font-size: 12.5px; }
.prog .s { display: flex; gap: 8px; color: var(--mute); } .prog .s.on { color: var(--ink); } .prog .s.ok { color: var(--green3); } .prog .s.bad { color: var(--red); }
.prog .s::before { content: '[ ]'; } .prog .s.on::before { content: '[~]'; color: var(--crea); } .prog .s.ok::before { content: '[x]'; } .prog .s.bad::before { content: '[!]'; }
.msg { padding: 10px 12px; border: 1px dashed var(--burn); color: var(--burn); font-size: 12.5px; }
.msg.ok { border-color: var(--green2); color: var(--green3); }
.addr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.addr code { background: var(--paper2); padding: 3px 6px; }
.range { width: 100%; accent-color: var(--green2); }

/* coin page */
.chead { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-top: 26px; }
.chead img { width: 96px; height: 96px; object-fit: cover; border: 1px dashed var(--ink2); background: var(--paper2); }
.chead h1 { margin: 0; font-size: 22px; } .chead h1 .sym { color: var(--green2); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px dashed var(--pale); margin-top: 20px; }
.stats > div { padding: 12px 14px; border-right: 1px dashed var(--pale); } .stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 16px; } .stats span { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.rstate { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.rstate:last-child { border-bottom: 0; }
.rstate .i { color: var(--green2); font-weight: 800; } .rstate .rd { color: var(--mid); font-size: 12px; margin-top: 4px; }
.rstate .stt { text-align: right; font-size: 12px; } .rstate .stt b { display: block; }

/* docs */
.dgrid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; gap: 34px; align-items: start; padding-top: 24px; }
.dnav { position: sticky; top: 14px; display: grid; gap: 2px; font-size: 12.5px; }
.dnav .h { color: var(--mute); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 4px; }
.dnav a { color: var(--mid); padding: 3px 0; } .dnav a.on, .dnav a:hover { color: var(--ink); } .dnav a.on::before { content: '> '; color: var(--green2); }
.prose h1 { font-size: 22px; margin: 0 0 6px; } .prose h2 { font-size: 15px; margin: 34px 0 10px; scroll-margin-top: 12px; }
.prose h2 .e { color: var(--green2); margin-right: 8px; }
.prose p, .prose li { color: var(--ink2); max-width: 74ch; } .prose ul { padding-left: 18px; }
.prose .meta3 { color: var(--mute); font-size: 12px; margin-bottom: 20px; }
.note { border-left: 3px solid var(--crea); padding: 8px 12px; background: var(--paper2); margin: 14px 0; color: var(--ink2); }
.note b { color: var(--crea); }
.toc { position: sticky; top: 14px; font-size: 12px; display: grid; gap: 4px; } .toc .h { color: var(--mute); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { color: var(--mid); } .toc a:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, calc(100% + 48px)); opacity: 0; background: var(--ink); color: var(--paper); padding: 9px 14px; font-size: 12.5px; transition: transform .25s, opacity .25s; z-index: 99; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); } .rv.vis { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); } .globe { justify-self: start; }
  .big { font-size: min(1.2vw, 9.6px); }
  .lgrid { grid-template-columns: minmax(0, 1fr); } .side { position: static; }
  .dgrid { grid-template-columns: 170px minmax(0, 1fr); } .toc { display: none; }
}
@media (max-width: 860px) {
  .cols, .tpls { grid-template-columns: minmax(0, 1fr); }
  .facts, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div, .stats > div { border-bottom: 1px dashed var(--pale); }
  .pipe .st { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { grid-template-columns: auto auto; } .nav { grid-column: 1 / -1; order: 3; justify-content: center; gap: 16px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); } .dnav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; } .dnav .h { width: 100%; }
}
@media (max-width: 640px) {
  :root { --gut: 20px; }
  body { font-size: 13px; }
  .big { font-size: min(1.32vw, 9.6px); }
  .globe pre { font-size: 10.4px; }
  .cant { grid-template-columns: minmax(0, 1fr); } .cant > div:nth-child(odd) { border-right: 0; }
  .ev { grid-template-columns: minmax(0, 1fr) auto; } .ev .t { grid-column: 1 / -1; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .rstate { grid-template-columns: 26px minmax(0, 1fr); } .rstate .stt { grid-column: 2; text-align: left; }
  .chead { grid-template-columns: 72px minmax(0, 1fr); } .chead img { width: 72px; height: 72px; } .chead .r2 { grid-column: 1 / -1; }
  .tbl .hide-s { display: none; }
  .acts .br:not(.launchb) { display: none; }
  .top { gap: 10px; padding-left: 14px; padding-right: 14px; } .nav { gap: 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .tape .in, .cur { animation: none; } .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* world events board */
.evrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 18px; padding: 12px 0; border-bottom: 1px dotted var(--line); align-items: center; }
.evrow:last-child { border-bottom: 0; }
.evrow .q { font-weight: 700; grid-column: 1; } .evrow .o { grid-column: 2; white-space: nowrap; text-align: right; } .evrow .a { grid-column: 3; display: flex; gap: 14px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.evrow .o { font-size: 12.5px; } .evrow .bar { color: var(--green2); letter-spacing: 0; } .evrow .w { font-size: 11.5px; grid-column: 1 / -1; }
#evTabs .br.on { font-weight: 800; }
@media (max-width: 860px) { .evrow { grid-template-columns: minmax(0, 1fr); } .evrow .q, .evrow .o, .evrow .a { grid-column: 1; } .evrow .a { justify-content: flex-start; } .evrow .bar { font-size: 10px; } }

/* ---------- motion ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .48s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * var(--st, 45ms)); }
@keyframes flup { 0% { background: rgba(79,191,124,.28); } 100% { background: transparent; } }
@keyframes fldn { 0% { background: rgba(194,71,14,.2); } 100% { background: transparent; } }
.fl-up { animation: flup 1.4s ease-out; } .fl-dn { animation: fldn 1.4s ease-out; }
.fading { opacity: 0; transform: translateY(4px); }
#evList, #lvPx, #lvWx, #lvGm, #lvEv, #coinsBd, #feed { transition: opacity .16s, transform .16s; }
/* the hero types itself in: each ASCII line is wiped on left to right */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero .big { animation: wipe 1.1s cubic-bezier(.6,.1,.2,1) both .35s; } .hero .big + .big { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero .lede { animation: rise .7s cubic-bezier(.2,.7,.2,1) both 1.1s; } .hero .cta { animation: rise .7s cubic-bezier(.2,.7,.2,1) both 1.25s; } .hero .ca { animation: rise .7s cubic-bezier(.2,.7,.2,1) both 1.4s; }
@keyframes globein { from { opacity: 0; transform: scale(.94) rotate(-4deg); } to { opacity: 1; transform: none; } }
.hero .globe { animation: globein 1.2s cubic-bezier(.2,.7,.2,1) both .2s; }
.pins .pin { transition: color .3s, transform .3s; } .pins .pin.lit { transform: translateX(4px); }
.top { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; } .tape { animation: rise .6s cubic-bezier(.2,.7,.2,1) both .1s; }
/* hover life */
.box { transition: border-color .25s, box-shadow .25s; } .box:hover { border-color: var(--mute); }
.row, .evrow, .ev, .tbl tbody tr, .rstate { transition: background .2s, transform .2s; }
.row:hover, .evrow:hover, .ev:hover, .tbl tbody tr:hover { background: rgba(239,235,225,.85); }
.evrow:hover .q { color: var(--green3); }
.tpl { transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s; } .tpl:hover { transform: translateY(-3px); border-color: var(--green2); }
.btn { transition: transform .15s cubic-bezier(.2,.7,.2,1); } .btn::after { transition: transform .2s cubic-bezier(.2,.7,.2,1); } .btn:hover::after { transform: translate(2px, 2px); }
.br { transition: color .2s; } .nav a { transition: color .2s; }
a.u, .prose a { transition: text-decoration-color .2s; }
.rule { transition: border-color .25s; } .rule:focus-within { border-color: var(--green2); }
.code { transition: border-color .3s; }
.verdict.pop { animation-duration: .4s; }
.tag { animation: pop .4s both; }
#evTabs .br { position: relative; } #evTabs .br.on::before { color: var(--green2); }
@media (prefers-reduced-motion: reduce) { .pop, .hero .big, .hero .lede, .hero .cta, .hero .ca, .hero .globe, .top, .tape, .tag { animation: none !important; } .tpl:hover { transform: none; } }
.rv:not(.vis) .pop { animation-play-state: paused; }

/* the living background sits between the paper and the page */
#bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: bgin 1.6s ease both .4s; }
@keyframes bgin { from { opacity: 0; } to { opacity: 1; } }
body { position: relative; }
@keyframes paper { to { background-position: 32px 32px; } }
html { animation: paper 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { html { animation: none; } }

/* politic.fun political register: grey-first inversion, one red signal accent */
:root { --paper:#1b1b1b; --paper2:#242424; --grid:#303030; --ink:#e4e4df; --ink2:#b7b7b1; --mid:#92928c; --mute:#70706b; --pale:#555550; --line:#41413d; --green:#bcbcb5; --green2:#d5d5ce; --green3:#ededE7; --violet:#a0a0a0; --burn:#db5a4e; --hold:#aaa; --air:#aaa; --crea:#c9c9c1; --chest:#c7c7c0; --red:#e15b50; }
html { background-color:var(--paper); background-image:radial-gradient(#353532 1px,transparent 1px); background-size:32px 32px; }
.logo img { width:30px; height:30px; object-fit:cover; image-rendering:pixelated; filter:grayscale(1); }
.box, .btn::before { background:var(--paper2); }
.top { background:rgba(27,27,27,.9); }
.drop { background:var(--paper2)!important; }
.route-card pre { color: var(--ink); font-size: 12px; line-height: 1.3; font-weight: 600; }

.politics-panel { display: block !important; }
.news-grid, .odds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.news-item, .odds-item { display: grid; gap: 10px; padding: 14px; background: var(--paper); text-decoration: none; }
.news-item { grid-template-columns: 24px 1fr auto; align-items: start; }
.news-item img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); }
.news-item b, .news-item small, .odds-q { display: block; }
.news-item b { font-size: 13px; line-height: 1.35; }
.news-item small { color: var(--mid); font-size: 10px; margin-top: 8px; }
.news-item em, .odds-item em { color: var(--green2); font-style: normal; font-size: 11px; }
.news-item:hover, .odds-item:hover { background: var(--paper2); }
.odds-item { gap: 12px; }
.odds-q { font-size: 13px; line-height: 1.35; min-height: 36px; }
.odds-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font: 11px var(--mono); }
.odds-line b { color: var(--green2); }
.odds-bar { display: block; height: 5px; background: var(--pale); }
.odds-bar i { display: block; height: 100%; background: var(--green2); }
@media(max-width:700px){.news-grid,.odds-grid{grid-template-columns:1fr}}

.video-frame { position:absolute; inset:0; overflow:hidden; pointer-events:none; opacity:.72; mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%); -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%); }
.video-frame::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,var(--paper) 0%,transparent 18%,transparent 78%,var(--paper) 100%),linear-gradient(90deg,var(--paper) 0%,transparent 16%,transparent 84%,var(--paper) 100%); opacity:.56; }
.video-frame video { width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.08); }
.route-card { min-height:320px; overflow:hidden; }
.route-card > pre, .route-card > .pins { position:relative; z-index:1; text-shadow:0 1px 8px var(--paper); }
@media(max-width:700px){.route-card{min-height:280px}}

/* final media framing */
.logo img { width: 48px; height: 36px; object-fit: contain; object-position: center; }
.logo { gap: 8px; }
.route-card { width: 285px; min-height: 215px; height: 215px; justify-self: end; border-radius: 18px; }
.video-frame { inset: 10px; border-radius: 16px; mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; -webkit-mask-composite: source-in; }
.video-frame video { object-fit: contain; border-radius: 16px; background: #090909; }
.route-card > pre { font-size: 10px; line-height: 1.15; }
.route-card > .pins { font-size: 10px; }
@media(max-width:700px){.route-card{width:260px;height:195px;min-height:195px;justify-self:start}.logo img{width:44px;height:34px}}

.route-card { width: 340px; min-height: 250px; height: 250px; }
.video-frame { opacity: .98; z-index: 1; }
.video-frame::after { opacity: .24; }
.route-card > pre, .route-card > .pins { z-index: 2; }
@media(max-width:700px){.route-card{width:300px;height:225px;min-height:225px}}

/* The launch visual is a standalone card, never a background behind route copy. */
.route-card { padding: 0; background: #090909; border: 1px solid var(--line); }
.route-card .video-frame { position: absolute; inset: 0; opacity: 1; border-radius: 18px; mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.route-card .video-frame::after { opacity: .12; }
.route-card .video-frame video { object-fit: contain; }
.pic .drop { position: relative; }
.pic .drop.has-image { border-color: var(--green2); }
.pic .drop .pic-ok { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 1px 2px; background: rgba(246,243,236,.9); color: var(--green3); font-size: 9px; font-weight: 700; }
