/* HQ v1: below-the-fold styles. Critical above-the-fold CSS is inline in index.html. */

/* ---- Shared ---- */
code {
    font: 400 0.92em/1 var(--mono);
    padding: 2px 5px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    white-space: nowrap;
}
.panel {
    border: 1px solid var(--line);
    background: var(--panel);
}
.k {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.fine {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 70ch;
}
.lede {
    margin: -8px 0 24px;
    color: var(--text-2);
    max-width: 60ch;
}
.bull {
    color: var(--bull);
}
.bear {
    color: var(--bear);
}
.flag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 5px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.flag.gold {
    color: var(--gold);
}
.flag.dim {
    color: var(--muted);
    border-style: dashed;
}

/* Buttons: square, hard pixel shadow. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px 2px;
    border: 1px solid var(--line-2);
    background: var(--panel-2);
    color: var(--text);
    font: 400 26px/1 var(--display);
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition:
        transform 80ms ease,
        box-shadow 80ms ease;
}
.btn:hover:not(:disabled):not(.is-off) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}
.btn:active:not(:disabled):not(.is-off) {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}
.btn-go {
    background: var(--bull);
    border-color: var(--bull);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--bull-deep);
}
.btn-go:hover:not(.is-off) {
    box-shadow: 6px 6px 0 var(--bull-deep);
}
.btn-sm {
    min-height: 44px;
    padding: 0 14px 2px;
    font-size: 22px;
    box-shadow: 3px 3px 0 #000;
}
.btn:disabled,
.btn.is-off {
    cursor: not-allowed;
    background: transparent;
    border: 1px dashed var(--line-2);
    color: var(--muted);
    box-shadow: none;
}

/* Designed empty / loading / error states. */
.state {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 20px;
    border: 1px dashed var(--line-2);
    background: repeating-linear-gradient(
        -45deg,
        transparent 0 10px,
        rgba(37, 46, 58, 0.35) 10px 11px
    );
}
.state-big {
    margin: 0;
    font: 400 48px/0.9 var(--display);
    color: var(--dim);
}
.state-k {
    margin: 0;
    color: var(--text-2);
    max-width: 52ch;
}
.state .btn {
    justify-self: start;
    margin-top: 4px;
}

/* Mode badges: agent green / bootstrap gold / human grey / upstream muted. */
.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge.agent {
    color: var(--bull);
}
.badge.bootstrap {
    color: var(--gold);
}
.badge.human {
    color: var(--text-2);
    background: var(--panel-2);
}
.badge.upstream {
    color: var(--muted);
    border-style: dashed;
}
.badge.next {
    color: var(--gold);
    border-style: dashed;
}
.badge.failed,
.badge.revoked {
    color: var(--bear);
}
.badge.verified {
    color: var(--bull);
}
.badge.pending {
    color: var(--muted);
    border-style: dashed;
}

/* ---- Sections ---- */
.sec {
    padding-top: clamp(72px, 10vw, 120px);
}
.sec-h {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 24px;
}
.sec-h .idx {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--bull);
    padding: 3px 6px;
    border: 1px solid var(--bull-deep);
    transform: translateY(-6px);
}
.sec-h h2 {
    margin: 0;
    font: 400 clamp(40px, 10.6vw, 72px) / 0.9 var(--display);
    letter-spacing: 0.01em;
}
.sec-h .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
    align-self: center;
    min-width: 24px;
}

/* ---- 01 Today's build ---- */
.today {
    min-height: 200px;
}
.feat {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--line-2);
    background: var(--panel);
    box-shadow: 6px 6px 0 #000;
}
.feat-n {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-2);
    background: var(--panel-2);
}
.feat-k {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.feat-n b {
    display: block;
    font: 400 clamp(84px, 22vw, 128px) / 0.8 var(--display);
    color: var(--text);
    margin-top: 6px;
}
.feat-n .when {
    text-align: right;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: grid;
    gap: 8px;
    justify-items: end;
}
.feat-n .when strong {
    color: var(--bull);
    font-weight: 700;
}
.feat-body {
    padding: 18px;
}
.feat-body h3 {
    margin: 0 0 10px;
    font: 400 clamp(30px, 5vw, 40px) / 0.95 var(--display);
}
.feat-body .src {
    margin: -4px 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.feat-body p {
    margin: 0 0 14px;
    color: var(--text-2);
    max-width: 62ch;
}
.feat-body .by {
    font-size: 12px;
    color: var(--gold);
    margin: -6px 0 14px;
}
.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--muted);
}
.meta b {
    color: var(--text-2);
    font-weight: 400;
}
.meta a {
    color: var(--text);
}
.go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--bull);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.go:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.feat .go {
    margin-top: 8px;
}

.tl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 48px 0 16px;
}
.tl-head h3 {
    margin: 0;
    font: 400 32px/1 var(--display);
}
.tl-head p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line);
}
.tl {
    position: relative;
    padding: 0 0 16px;
}
.tl-node {
    position: absolute;
    left: -30px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: var(--ink);
    border: 2px solid var(--muted);
}
.tl.agent .tl-node {
    border-color: var(--bull);
    background: var(--bull);
}
.tl.bootstrap .tl-node {
    border-color: var(--gold);
    background: var(--gold);
}
.tl.human .tl-node {
    border-color: var(--text-2);
    background: var(--text-2);
}
.tl.failed .tl-node {
    border-color: var(--bear);
    background: var(--bear);
}
.tl.next .tl-node {
    border-color: var(--gold);
    border-style: dashed;
    animation: blink 1.6s steps(2, jump-none) infinite;
}
.tl-card {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 12px 14px 12px;
}
.tl.next .tl-card {
    border-style: dashed;
    background: transparent;
}
.tl.revoked .tl-card {
    opacity: 0.7;
}
.tl-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--muted);
}
.tl-top b {
    font: 400 26px/1 var(--display);
    color: var(--text);
    letter-spacing: 0.02em;
}
.tl-card h4 {
    margin: 8px 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.tl-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-2);
    max-width: 70ch;
}
.tl-card .meta {
    margin-top: 2px;
}
.tl-card .go {
    min-height: 44px;
    font-size: 13px;
}
.tl.revoked h4 {
    text-decoration: line-through;
    text-decoration-color: var(--bear);
}

/* ---- 02 How it works: the loop ---- */
.loop {
    position: relative;
    padding: 0 34px 0 0;
}
.loop-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.loop-track .trk {
    fill: none;
    stroke: var(--line-2);
    stroke-width: 2;
    stroke-dasharray: 6 6;
}
.loop-track .arw {
    fill: var(--muted);
}
.loop-token {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--gold);
    box-shadow:
        0 0 0 2px var(--ink),
        0 0 14px var(--gold);
    opacity: 0;
    will-change: transform;
}
.loop.running .loop-token {
    opacity: 1;
}
.loop-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.step {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 14px 16px 16px;
    transition:
        border-color 200ms linear,
        box-shadow 200ms linear;
}
.step.hot {
    border-color: var(--gold);
    box-shadow: 4px 4px 0 var(--gold-deep);
}
.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.px-ico {
    image-rendering: pixelated;
}
.step-n {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.step h3 {
    margin: 0 0 6px;
    font: 400 30px/1 var(--display);
}
.step p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
}

/* ---- 03 Vote ---- */
.vote {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.vote-state {
    padding: 20px;
}
.vote-state > p {
    margin: 14px 0 0;
    color: var(--text-2);
}
.sqrt {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}
.wtable {
    width: 100%;
    margin: 18px 0 0;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.wtable caption {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
}
.wtable th,
.wtable td {
    text-align: right;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.wtable th:first-child,
.wtable td:first-child {
    text-align: left;
}
.wtable th {
    font-weight: 400;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.wtable td:last-child {
    color: var(--gold);
}
.vote-state .btn {
    margin-top: 18px;
    width: 100%;
}
.ex-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.ex-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.ex {
    position: relative;
    padding: 14px 16px;
    border: 1px dashed var(--line-2);
    background: repeating-linear-gradient(
        -45deg,
        transparent 0 10px,
        rgba(37, 46, 58, 0.3) 10px 11px
    );
    color: var(--muted);
}
.ex h3 {
    margin: 0 0 4px;
    padding-right: 90px;
    font: 400 28px/1 var(--display);
    color: #a3adb9;
}
.ex p {
    margin: 0;
    font-size: 13px;
}
.ex-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 7px 4px;
    border: 1px dashed var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transform: rotate(3deg);
}
.ex-bar {
    height: 8px;
    margin: 12px 0 6px;
    border: 1px dashed var(--line-2);
}
.ex-foot {
    font-size: 11px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- 04 Daily Challenge ---- */
.ch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.ch-clock {
    padding: 20px;
}
.countdown {
    margin: 10px 0 8px;
    font: 400 clamp(76px, 22vw, 120px) / 0.85 var(--display);
    color: var(--gold);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.countdown .c {
    display: inline-block;
    width: 0.5em;
    text-align: center;
}
.countdown .s {
    display: inline-block;
    width: 0.24em;
    text-align: center;
    color: var(--gold-deep);
}
.ch-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    margin: 20px 0;
    border: 1px solid var(--line);
}
.ch-meta div {
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.ch-meta div:last-child {
    border-right: 0;
}
.ch-meta dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ch-meta dd {
    margin: 4px 0 0;
    font: 400 24px/1 var(--display);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ch-clock .btn {
    width: 100%;
}
.prize {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.prize svg {
    flex: none;
    margin-top: 2px;
}
.prize p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
}
.ch-board {
    padding: 20px;
    min-width: 0;
}
.lb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 14px;
}
.lb-head h3 {
    margin: 0;
    font: 400 32px/1 var(--display);
}
.lb-head span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.lb {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.lb th {
    text-align: left;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 8px 8px 0;
}
.lb td {
    padding: 10px 8px 10px 0;
    border-top: 1px solid var(--line);
    white-space: nowrap;
}
.lb .num {
    text-align: right;
}
.lb th:last-child,
.lb td:last-child {
    padding-left: 14px;
}
.lb .rk {
    font: 400 24px/1 var(--display);
    color: var(--muted);
    width: 2.2em;
}
.lb .nm span {
    display: inline-block;
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.lb .sc {
    font: 400 24px/1 var(--display);
}
.lb tr.first .rk,
.lb tr.first .sc {
    color: var(--gold);
}
.lb .opt {
    display: none;
}
.lb-empty {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lb.ghost td {
    color: var(--dim);
    border-top-style: dashed;
}
.lb.ghost .rk,
.lb.ghost .sc {
    color: var(--dim);
}
.lb.ghost tbody {
    opacity: 0.55;
}
.lb-msg {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px dashed var(--line-2);
    background: var(--panel-2);
}
.lb-msg .state-k {
    color: var(--text);
}
.ch-board {
    display: flex;
    flex-direction: column;
}
#lb {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.chk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chk svg {
    width: 12px;
    height: 12px;
}

/* ---- 05 Receipts ---- */
.wallets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--line);
    background: var(--panel);
}
.wallet {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.wallet:last-child {
    border-bottom: 0;
}
.w-desc {
    margin: 4px 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.w-val {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 44px;
}
.w-val code {
    font-size: 13px;
    padding: 6px 8px;
}
.w-val a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    color: var(--text);
}
.w-bal {
    font-size: 12px;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}
.w-empty {
    font: 400 26px/1 var(--display);
    color: var(--dim);
}
.ledger {
    margin-top: 24px;
    padding: 20px;
}
.lg {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.lg th {
    text-align: left;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 10px 8px 0;
}
.lg td {
    padding: 10px 10px 10px 0;
    border-top: 1px solid var(--line);
    vertical-align: top;
}
.lg .amt {
    white-space: nowrap;
}
.lg .in {
    color: var(--bull);
}
.lg .out {
    color: var(--bear);
}
.lg a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
}
.lg .memo {
    color: var(--text-2);
    max-width: 36ch;
    overflow-wrap: anywhere;
}
.who {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.who-col {
    padding: 20px;
}
.who-h {
    margin: 0 0 12px;
    font: 400 30px/1 var(--display);
}
.who-h span {
    font: 400 11px/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: 6px;
    vertical-align: 0.4em;
}
.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ticks li {
    position: relative;
    padding: 8px 0 8px 22px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--text-2);
}
.ticks li:first-child {
    border-top: 0;
}
.ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--bull);
}
.ticks.op li::before {
    background: var(--text-2);
}
.ticks.no li::before {
    background: transparent;
    border: 2px solid var(--bear);
    width: 8px;
    height: 8px;
}
.who-no {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-left: 2px solid var(--bear);
    background: var(--panel-2);
    font-size: 13px;
    color: var(--text-2);
}
.notes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.note {
    padding: 16px 18px;
    border-left: 3px solid var(--muted);
    background: var(--panel);
}
.note.gold {
    border-left-color: var(--gold);
}
.note h3 {
    margin: 0 0 6px;
    font: 400 26px/1 var(--display);
}
.note p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
}
.note code {
    white-space: normal;
}

/* ---- 06 Coin ---- */
.coin {
    padding: 20px;
    display: grid;
    gap: 22px;
}
.ca-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
}
.ca-val {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: normal;
    word-break: break-all;
    background: var(--ink);
    border: 1px solid var(--line-2);
}
.ca-val.empty {
    font: 400 26px/1 var(--display);
    color: var(--dim);
    border-style: dashed;
}
.copied {
    margin: 6px 0 0;
    min-height: 1.5em;
    font-size: 12px;
    color: var(--bull);
}
.coin-go .btn {
    width: 100%;
}
.coin-go .fine {
    margin-top: 8px;
}
.coin-what {
    margin: 0;
    font-size: 15px;
    color: var(--text);
    max-width: 62ch;
    padding: 14px 16px;
    border-left: 3px solid var(--bull);
    background: var(--panel-2);
}
.does {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.does h3 {
    margin: 0 0 6px;
    font: 400 26px/1 var(--display);
}

/* ---- 07 FAQ ---- */
.faq {
    border-top: 1px solid var(--line);
}
.faq details {
    border-bottom: 1px solid var(--line);
}
.faq summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 12px 48px 12px 0;
    font: 400 clamp(26px, 4.4vw, 34px) / 1 var(--display);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    font: 400 26px/1 var(--display);
    color: var(--bull);
}
.faq details[open] summary::after {
    content: '−';
    background: var(--bull);
    color: var(--ink);
    border-color: var(--bull);
}
.faq summary:hover {
    color: var(--bull);
}
.faq details p {
    margin: 0 0 20px;
    max-width: 68ch;
    color: var(--text-2);
    line-height: 1.75;
}
.faq code {
    white-space: normal;
}

/* ---- Footer ---- */
.foot {
    margin-top: clamp(72px, 10vw, 120px);
    padding-top: 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.foot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 12px;
}
.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-left: -10px;
}
.foot-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    color: var(--text-2);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
}
.foot-links a:hover {
    color: var(--bull);
}
.foot p {
    margin: 0 0 10px;
    max-width: 90ch;
    line-height: 1.7;
}
.foot p a {
    color: var(--text);
}

/* ---- Breakpoints ---- */
@media (max-width: 599px) {
    /* Ledger rows become cards on phones. */
    .lg thead {
        display: none;
    }
    .lg,
    .lg tbody,
    .lg tr,
    .lg td {
        display: block;
        width: 100%;
    }
    .lg tbody {
        display: grid;
    }
    .lg tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        align-items: center;
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }
    .lg td {
        width: auto;
        border: 0;
        padding: 0;
    }
    .lg td:nth-child(2),
    .lg td:nth-child(4) {
        text-align: right;
    }
    .lg td.memo {
        grid-column: 1 / -1;
        max-width: none;
        font-size: 12px;
    }
    .lg td.memo:empty {
        display: none;
    }
    .lg td:nth-child(7) {
        text-align: right;
    }
}
@media (min-width: 600px) {
    .lb .opt {
        display: table-cell;
    }
    .coin-go .btn,
    .vote-state .btn,
    .ch-clock .btn {
        width: auto;
    }
    .who,
    .notes,
    .does {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wallets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .wallet {
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }
    .wallet:last-child {
        border-right: 0;
    }
}
@media (min-width: 720px) {
    .feat {
        grid-template-columns: 240px minmax(0, 1fr);
    }
    .feat-n {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        border-bottom: 0;
        border-right: 1px solid var(--line-2);
        padding: 20px;
    }
    .feat-n .when {
        text-align: left;
        justify-items: start;
    }
    .feat-body {
        padding: 22px 24px;
    }
}
@media (min-width: 900px) {
    .loop {
        padding: 0 0 48px;
    }
    .loop + .fine {
        margin-top: 20px;
    }
    .loop-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 36px;
    }
    .vote {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }
    .ch {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: stretch;
    }
    .coin {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 40px;
        padding: 28px;
    }
    .coin .ca,
    .coin .coin-go {
        grid-column: 1;
    }
    .coin .coin-what {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }
    .coin .does {
        grid-column: 1 / -1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn,
    .step {
        transition: none;
    }
    .tl.next .tl-node {
        animation: none;
    }
    .loop-token {
        display: none;
    }
}

.who-note {
    margin: -4px 0 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Live poll (hq/vote.js) */
.vote-status {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.vote-status.good {
    color: var(--bull);
}
.vote-status.bad {
    color: var(--bear);
}
.vote-status a {
    color: var(--bull);
}
.vote-card .btn {
    margin-top: 10px;
    min-height: 44px;
}
.vote-card .ex-bar i {
    background: var(--bull);
}
.vote-card.winner {
    border-color: var(--gold);
}

/* =====================================================================================================
   HQ v2 theme: the game's "Terminal Arcade" look carried onto the landing page. HUD corner brackets on
   panels, soft depth instead of hard offsets, 3D pixel buttons, glowing section markers.
   ===================================================================================================== */

:is(.feat, .tl-card, .step, .panel, .ex, .wallet, .who-col, .note, .ledger) {
    --cc: rgba(181, 154, 255, 0.5);
    border-color: var(--line-2);
    background:
        linear-gradient(var(--cc), var(--cc)) top left / 12px 2px no-repeat,
        linear-gradient(var(--cc), var(--cc)) top left / 2px 12px no-repeat,
        linear-gradient(var(--cc), var(--cc)) bottom right / 12px 2px no-repeat,
        linear-gradient(var(--cc), var(--cc)) bottom right / 2px 12px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%),
        var(--panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}
.feat {
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(181, 154, 255, 0.08);
}
.feat-n {
    background: linear-gradient(90deg, rgba(181, 154, 255, 0.1), transparent 70%), var(--panel-2);
}
.step.hot {
    --cc: var(--gold);
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(255, 203, 122, 0.35),
        0 0 36px rgba(255, 203, 122, 0.22);
}
.tl.next .tl-card {
    --cc: rgba(255, 203, 122, 0.6);
    background:
        linear-gradient(var(--cc), var(--cc)) top left / 12px 2px no-repeat,
        linear-gradient(var(--cc), var(--cc)) top left / 2px 12px no-repeat,
        repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 203, 122, 0.05) 10px 11px);
    box-shadow: none;
}

/* Section headers: a lit index chip, a glowing rule, and a piece of the game's art */
.sec {
    position: relative;
}
.sec-h {
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.sec-h .idx {
    flex: none;
    font: 400 24px/1 var(--display);
    letter-spacing: 0.04em;
    padding: 6px 9px 4px;
    color: #04130d;
    background: var(--bull);
    border: 0;
    transform: none;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    box-shadow: inset 0 -3px 0 var(--bull-deep);
    filter: drop-shadow(0 0 14px rgba(181, 154, 255, 0.45));
}
.sec-h h2 {
    text-shadow:
        0 4px 0 rgba(0, 0, 0, 0.55),
        0 0 36px rgba(234, 240, 245, 0.08);
}
.sec-h .rule {
    height: 2px;
    background: linear-gradient(90deg, var(--line-2), rgba(37, 46, 58, 0));
}
.sec-sprite {
    flex: none;
    width: auto;
    max-height: 76px;
    image-rendering: pixelated;
    opacity: 0;
    transition: opacity 400ms ease;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(181, 154, 255, 0.18));
}
.sec-sprite.painted {
    opacity: 1;
}
@media (max-width: 600px) {
    .sec-sprite {
        max-height: 54px;
    }
}

/* How it works: the game's icons on each step */
.px-ico {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}
.step-n {
    font: 400 26px/1 var(--display);
    color: var(--dim);
}
.loop-token {
    box-shadow:
        0 0 12px var(--gold),
        0 0 30px rgba(255, 203, 122, 0.6);
}

/* Buttons: the game's chunky 3D pixel buttons */
.btn {
    border: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    background: var(--panel-2);
    box-shadow:
        inset 0 0 0 1px var(--line-2),
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -5px 0 rgba(0, 0, 0, 0.55);
    padding-bottom: 5px;
}
.btn:hover:not(:disabled):not(.is-off) {
    transform: none;
    filter: brightness(1.15);
    box-shadow:
        inset 0 0 0 1px var(--line-2),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -5px 0 rgba(0, 0, 0, 0.55);
}
.btn:active:not(:disabled):not(.is-off) {
    transform: translateY(3px);
    box-shadow:
        inset 0 0 0 1px var(--line-2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.55);
}
.btn-go,
.btn-go:hover:not(.is-off) {
    background: var(--bull);
    color: #04130d;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -5px 0 var(--bull-deep);
}
.btn:disabled,
.btn.is-off {
    clip-path: none;
    box-shadow: none;
}

/* Timeline: lit nodes */
.tl-node {
    box-shadow: 0 0 12px rgba(181, 154, 255, 0.5);
}

/* FAQ */
.faq summary::after {
    border: 0;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    background: var(--panel-2);
    box-shadow:
        inset 0 0 0 1px var(--line-2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.5);
}
.faq details[open] summary::after {
    box-shadow: inset 0 -3px 0 var(--bull-deep);
}
.faq summary:hover {
    text-shadow: 0 0 20px rgba(181, 154, 255, 0.35);
}

/* Footer */
.foot {
    border-top: 0;
    background: linear-gradient(90deg, transparent, rgba(181, 154, 255, 0.5), transparent) top / 100%
        1px no-repeat;
}

/* Flags and code chips pick up the glow */
.flag.gold {
    box-shadow: 0 0 16px rgba(255, 203, 122, 0.15);
}
code {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--line-2);
}

@media (prefers-reduced-motion: reduce) {
    .sec-sprite {
        transition: none;
    }
}

/* Meet the bear market: the game's cast */
.bestiary {
    margin-top: clamp(40px, 6vw, 64px);
}
.bosses,
.foes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.bosses {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    margin-bottom: 10px;
}
.foes {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.boss,
.foe {
    --cc: rgba(255, 59, 92, 0.55);
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 4px;
    padding: 16px 12px 14px;
    text-align: center;
    border: 1px solid var(--line-2);
    background:
        linear-gradient(var(--cc), var(--cc)) top left / 12px 2px no-repeat,
        linear-gradient(var(--cc), var(--cc)) top left / 2px 12px no-repeat,
        linear-gradient(var(--cc), var(--cc)) bottom right / 12px 2px no-repeat,
        linear-gradient(var(--cc), var(--cc)) bottom right / 2px 12px no-repeat,
        radial-gradient(ellipse at 50% 70%, rgba(255, 59, 92, 0.12), transparent 65%),
        var(--panel);
}
.boss {
    min-height: 250px;
}
.boss canvas,
.foe canvas {
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
    margin-bottom: 6px;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45));
}
.boss canvas {
    max-height: 190px;
    width: auto;
}
.boss b,
.foe b {
    font: 400 26px/1 var(--display);
    color: var(--text);
}
.boss b {
    font-size: 30px;
    color: var(--bear);
    text-shadow: 0 0 18px rgba(255, 59, 92, 0.35);
}
.boss span,
.foe span {
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}
@media (max-width: 600px) {
    .bosses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .boss {
        min-height: 200px;
    }
    .boss canvas {
        max-height: 130px;
    }
    .foes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .foe b {
        font-size: 20px;
    }
}

/* Today's build: the clip */
.feat-media {
    margin: 0;
    position: relative;
    background: #000;
    border-bottom: 1px solid var(--line-2);
}
.feat-clip {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}
.feat-media figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px 3px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
    background: rgba(6, 8, 11, 0.8);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
/* the clip leads the card, full width, above the number and the notes */
.feat-media {
    grid-column: 1 / -1;
    order: -1;
}

/* Recent builds: the history folds after the latest few */
.timeline.collapsed > li:nth-child(n + 5) {
    display: none;
}
.tl-more {
    margin-top: 14px;
}
.bestiary {
    margin-top: 0;
}

/* The closing call to action */
.finale {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: clamp(84px, 12vw, 150px);
    padding: 36px 0 8px;
    text-align: center;
    background: radial-gradient(
        ellipse 60% 55% at 50% 40%,
        rgba(181, 154, 255, 0.1),
        transparent 70%
    );
}
.finale-bull {
    max-width: 72vw;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 36px rgba(181, 154, 255, 0.3));
}
.finale h2 {
    margin: 0;
    font: 400 clamp(58px, 12.5vw, 128px) / 0.85 var(--display);
    text-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
}
.finale h2 em {
    font-style: normal;
    color: var(--bull);
    text-shadow:
        0 6px 0 var(--bull-dark),
        0 0 44px rgba(181, 154, 255, 0.4);
}
.finale p {
    max-width: 50ch;
    margin: 0;
    color: var(--text-2);
}
.finale-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.finale .play {
    display: inline-flex;
}

/* Today's build with a clip, on wide screens: the clip left, the number and notes right */
@media (min-width: 960px) {
    .feat:has(.feat-media) {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }
    .feat:has(.feat-media) .feat-media {
        grid-column: 1;
        grid-row: 1 / span 2;
        order: 0;
        display: grid;
        align-items: center;
        border-bottom: 0;
        border-right: 1px solid var(--line-2);
    }
    .feat:has(.feat-media) .feat-n {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--line-2);
        padding: 16px 20px;
    }
    .feat:has(.feat-media) .feat-n .when {
        text-align: right;
        justify-items: end;
    }
    .feat:has(.feat-media) .feat-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .sec-h {
        gap: 12px;
    }
    .sec-h .rule {
        display: none;
    }
    .sec-sprite {
        max-height: 40px;
        margin-left: auto;
    }
}

/* ---- Ballot: AI proposals + holder requests (hq/vote.js) ---- */
.flag.bull {
    color: var(--bull);
    box-shadow: 0 0 16px rgba(181, 154, 255, 0.15);
}
.vote-how {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
}
.vote-how li {
    counter-increment: how;
    position: relative;
    min-height: 26px;
    padding-left: 38px;
}
.vote-how li::before {
    content: counter(how);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font: 400 20px/1 var(--display);
    color: var(--bg, #06080b);
    background: var(--bull);
}
.vote-how b {
    color: var(--text);
}
.ballot-col {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.ballot-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}
.ballot-head h3 {
    margin: 0;
    font: 400 32px/1 var(--display);
}
.ballot-head span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.vote-list .vote-card {
    border-style: solid;
    background: var(--panel);
    color: var(--text-2);
}
.vote-list .vote-card h3 {
    color: var(--text);
    padding-right: 130px;
}
.vote-list .vote-card .ex-stamp {
    border-style: solid;
    color: var(--bull);
    transform: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vote-list .vote-card.community .ex-stamp {
    color: var(--gold);
}
.vote-list .vote-card .ex-bar {
    border-style: solid;
}
.vote-list .vote-card .ex-bar i {
    display: block;
    height: 100%;
    background: var(--bull);
    box-shadow: 0 0 10px rgba(181, 154, 255, 0.45);
    transition: width 400ms ease;
}
.vote-list .vote-card.community .ex-bar i {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(255, 203, 122, 0.4);
}
.vote-list .vote-card.operator .ex-stamp {
    color: var(--info);
}
.vote-list .vote-card.operator .ex-bar i {
    background: var(--info);
    box-shadow: 0 0 10px rgba(70, 200, 255, 0.4);
}
.vote-list .vote-card.player .ex-stamp {
    color: var(--gold);
    max-width: 260px;
}
.ideas .flag {
    color: var(--bull);
}
.ideas-ts:empty {
    display: none;
}
.ideas-hint {
    margin: 0;
    color: var(--gold);
}
.ideas-feed {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line-2);
}
.ideas-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ideas-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}
.ideas-list li {
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-2);
    background: rgba(0, 0, 0, 0.25);
    border-left: 2px solid var(--line-2);
    overflow-wrap: anywhere;
}
.ideas-list li.ideas-empty {
    color: var(--muted);
    border-left-color: transparent;
}
.ideas-list time {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}
.vote-list .vote-card .op-note {
    margin-top: 10px;
    border-left: 2px solid var(--info);
    padding-left: 10px;
    color: var(--muted);
    font-size: 12px;
}
.req {
    display: grid;
    gap: 8px;
    padding: 20px;
}
.req-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}
.req-h h3 {
    margin: 0;
    font: 400 28px/1 var(--display);
}
.req-rules {
    margin: 4px 0 6px;
    padding: 0 0 0 18px;
    display: grid;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-2);
}
.req-rules b {
    color: var(--gold);
}
.req label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.req label span {
    text-transform: none;
    letter-spacing: 0;
}
.req input,
.req textarea {
    width: 100%;
    padding: 10px 12px;
    font: 400 14px/1.4 var(--mono);
    color: var(--text);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line-2);
    border-radius: 0;
    resize: vertical;
}
.req input:focus,
.req textarea:focus {
    outline: none;
    border-color: var(--bull);
}
.req input:disabled,
.req textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.req-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}
.req-count {
    font-size: 11px;
    color: var(--muted);
}
.req .vote-status {
    margin: 0;
}
@media (max-width: 520px) {
    .vote-list .vote-card h3 {
        padding-right: 0;
        margin-top: 26px;
    }
    .req-foot .btn {
        width: 100%;
    }
}

/* ---- Daily prize + winners (hq.js loadWinners) ---- */
.prize-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.prize .prize-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}
.prize .prize-h b {
    font: 400 24px/1 var(--display);
    color: var(--gold);
}
.prize-how {
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-2);
}
.winners {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 12.5px;
}
.winners li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}
.winners .w-who {
    color: var(--text);
}
.winners .w-what {
    color: var(--muted);
}
.winners .w-what.paid {
    /* not the gold .paid banner below: a plain line in the list */
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--bull);
}
.winners a {
    color: var(--bull);
}
.pot-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    background: rgba(255, 203, 122, 0.05);
    font-size: 12.5px;
    color: var(--text);
}
@media (max-width: 520px) {
    .pot-line {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .pot-line .pot-k:not(:first-child) {
        margin-top: 6px;
    }
}
.pot-line .pot-k {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.prize-rules {
    font-size: 12.5px;
    color: var(--text-2);
}
.prize-rules summary {
    cursor: pointer;
    color: var(--muted);
}
.prize-rules ul {
    margin: 6px 0 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 4px;
}
.winners .w-pay {
    flex-basis: 100%;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.winners .w-pay li {
    padding: 4px 8px;
    background: none;
    border-style: dashed;
}

/* =====================================================================================================
   Final pass: less text, more signal. Live status line in the hero, folded fine print, compact history,
   and sections that rise into view (motion only when the viewer allows it).
   ===================================================================================================== */

.live-line {
    flex-wrap: wrap;
    gap: 6px 8px !important;
}
.live-line .dot {
    width: 8px;
    height: 8px;
    background: var(--bull);
    box-shadow: 0 0 10px var(--bull);
    animation: blink 1.6s steps(2, start) infinite;
}
.live-line b {
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}
.ll-sep {
    color: var(--muted);
}

details.more {
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}
details.more > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    color: var(--text-2);
}
details.more > summary::-webkit-details-marker {
    display: none;
}
details.more > summary::before {
    content: '+';
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font: 400 16px/1 var(--display);
    color: var(--bull);
    border: 1px solid var(--line-2);
}
details.more[open] > summary::before {
    content: '–';
}
details.more > summary:hover {
    color: var(--text);
}
details.more .wtable {
    margin-top: 10px;
}
.sig-note {
    margin: 8px 0 0 !important;
    font-size: 11.5px;
}
.req-need {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-2);
}
.req-need b {
    color: var(--gold);
}
.req details.more {
    margin-top: 4px;
}
.req-fields {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}
.req.off .req-fields {
    display: none;
}
.req.off {
    border-style: dashed;
}

/* Build history: one glance per build */
.timeline .tl:not(.next) .tl-card p:not(.src) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feat-go {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}
.go.dim {
    color: var(--text-2);
}
.go.dim:hover {
    color: var(--text);
}

/* Sections rise into view */
@media (prefers-reduced-motion: no-preference) {
    .rv {
        opacity: 0;
        transform: translateY(28px);
        transition:
            opacity 700ms ease,
            transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .rv.in {
        opacity: 1;
        transform: none;
    }
    .rv .sec-h .rule {
        transform-origin: left;
        transform: scaleX(0);
        transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms;
    }
    .rv.in .sec-h .rule {
        transform: scaleX(1);
    }
}

/* Wallets before they exist: one compact row */
.wallets.none {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wallets.none .wallet {
    padding: 12px 14px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
}
.wallets.none .wallet:last-child {
    border-right: 0;
}
.wallets.none .w-desc {
    display: none;
}
.wallets.none .w-val {
    margin-top: 4px;
    font-size: 12px;
}
@media (max-width: 520px) {
    .wallets.none .wallet {
        padding: 10px;
    }
    .wallets.none .k {
        font-size: 9.5px;
    }
}
.wallets.none .w-empty {
    font-size: 17px;
    line-height: 1.1;
}
@media (max-width: 520px) {
    .wallets.none .w-empty {
        font-size: 14px;
    }
}
.ll-short {
    display: none;
}
@media (max-width: 520px) {
    .live-line {
        letter-spacing: 0.08em !important;
    }
    .ll-long {
        display: none;
    }
    .ll-short {
        display: inline;
    }
}

/* ---- Hero: Day 0 vs now. Build #0 gameplay (video) clipped left of a divider that sweeps over the live build. */
.then {
    position: absolute;
    inset: 0;
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
    pointer-events: none;
    background: #10121a;
}
.then video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.then-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x, 50%);
    z-index: 4;
    width: 44px;
    margin-left: -22px;
    cursor: ew-resize;
    touch-action: none;
    outline: none;
}
.then-handle::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--bull);
    box-shadow: 0 0 14px var(--bull);
}
.then-handle i {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    background: var(--bull);
    box-shadow:
        0 0 0 3px #06080b,
        0 0 22px rgba(181, 154, 255, 0.7);
    clip-path: polygon(
        0 50%,
        24% 18%,
        24% 38%,
        76% 38%,
        76% 18%,
        100% 50%,
        76% 82%,
        76% 62%,
        24% 62%,
        24% 82%
    );
}
.then-handle:focus-visible i {
    background: var(--gold);
}
.then-tag {
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
    padding: 4px 7px 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(6, 8, 11, 0.82);
    border: 1px solid var(--line-2);
    pointer-events: none;
}
.then-tag.l {
    right: 44px;
    color: var(--muted);
}
.then-tag.r {
    left: 44px;
    color: var(--bull);
    border-color: rgba(181, 154, 255, 0.5);
}

/* Board legend, clickable status, prize address */
.chip-link {
    text-decoration: none;
    cursor: pointer;
}
.chip-link:hover .badge,
.chip-link:focus-visible .badge {
    color: var(--text);
    border-style: solid;
}
.lb-legend {
    margin: 14px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
}
.lb-legend b {
    color: var(--text-2);
    font-weight: 700;
}
.prize-addr {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.prize-addr label {
    font-size: 12px;
    color: var(--text-2);
}
.pa-row {
    display: flex;
    gap: 6px;
}
.pa-row input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font: 400 16px/1.2 var(--mono);
    color: var(--text);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line-2);
    border-radius: 0;
}
.pa-row input:focus {
    outline: none;
    border-color: var(--bull);
}
.pa-note {
    margin: 0 !important;
    font-size: 11px !important;
    color: var(--muted) !important;
}
.pa-note.good {
    color: var(--bull) !important;
}
.pa-note.bad {
    color: var(--bear) !important;
}
.prize-body {
    flex: 1 1 auto;
}
.prize-addr,
.pa-row {
    min-width: 0;
}
.pa-row input {
    width: 100%;
}
.pa-row .btn {
    flex: none;
    min-width: 0;
    width: auto;
    padding-left: 14px;
    padding-right: 14px;
}
.badge.op {
    margin-left: 8px;
    height: 18px;
    font-size: 9.5px;
    color: var(--muted);
    border-style: dashed;
}

/* Live: the nightly Build Agent run */
.nav-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-live i {
    width: 7px;
    height: 7px;
    background: var(--muted);
}
.nav-live.on {
    color: var(--bear) !important;
}
.nav-live.on i {
    background: var(--bear);
    box-shadow: 0 0 8px var(--bear);
    animation: blink 1.2s steps(2, start) infinite;
}
.live-now {
    color: var(--bear);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
@media (prefers-reduced-motion: reduce) {
    .nav-live.on i {
        animation: none;
    }
}

/* The AI's take on a holder request */
.ai-take {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 2px solid var(--bull);
    background: rgba(181, 154, 255, 0.06);
}
.ai-take.slice {
    border-left-color: var(--gold);
    background: rgba(255, 203, 122, 0.06);
}
.ai-take.no {
    border-left-color: var(--bear);
    background: rgba(255, 59, 92, 0.06);
}
.ai-take p {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: var(--text-2) !important;
}
.ai-take p::before {
    content: 'BLACKHORN: ';
    color: var(--bull);
    font-weight: 700;
}
.ai-tag {
    justify-self: start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bull);
}
.ai-take.slice .ai-tag {
    color: var(--gold);
}
.ai-take.no .ai-tag {
    color: var(--bear);
}

/* The latest prize the AI paid */
.paid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--gold);
    background: linear-gradient(90deg, rgba(255, 203, 122, 0.14), rgba(255, 203, 122, 0.03));
    box-shadow: 0 0 30px rgba(255, 203, 122, 0.12);
    color: var(--text);
    text-decoration: none;
}
.paid-k {
    font: 400 26px/1 var(--display);
    color: var(--gold);
    letter-spacing: 0.04em;
}
.paid-t {
    flex: 1 1 260px;
    font-size: 13.5px;
}
.paid-go {
    font-size: 12px;
    color: var(--gold);
}
.paid:hover .paid-go {
    text-decoration: underline;
}
