/* Puzzle71 — terminal/CRT style: black field, red frames with corner squares, mono + condensed caps */
:root {
  --bg: #000;
  --red: #ff0000;
  --red-2: #e23a3a;     /* secondary text, still readable on black */
  --red-3: #a51d1d;     /* faint lines */
  --line: rgba(255, 0, 0, .55);
  --green: #00ff00;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: var(--cond);
  --font: var(--mono);
  --wrap: 1280px;
  /* four 8px corner squares, drawn with backgrounds so any box can be "framed" */
  --corners:
    linear-gradient(var(--red), var(--red)) top left / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) top right / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 8px 8px no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--red); background: var(--bg); -webkit-font-smoothing: antialiased; }
/* CRT scanlines */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.28) 2px 3px); mix-blend-mode: multiply; }
::selection { background: var(--red); color: #000; }
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { background: var(--red); color: #000; text-decoration: none; }
button { font: inherit; cursor: pointer; text-transform: inherit; }
:focus-visible { outline: 1px dashed var(--red); outline-offset: 4px; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.frame, .panel, .lens, .tracker, .stats, .cta-block, .card, .wheel li, .empty, .ca-box {
  border: 1px solid var(--line); background: var(--corners); background-color: #000; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; color: var(--red); margin: 0; letter-spacing: -.01em; line-height: .9; }
h1 { font-size: clamp(56px, 10vw, 150px); }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1; }
h1 span, h2 span, .ol { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
p { margin: 0 0 1em; }
.lede { font-size: 15px; color: var(--red-2); max-width: 58ch; }
.grad-text { color: var(--red); }
.kicker, .snip { font-size: 13px; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: "://"; margin-right: 6px; }
.fine { color: var(--red-2); font-size: 12.5px; }
b, strong { font-weight: 600; }

/* ---------- Buttons: [bracketed] ---------- */
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 12px 18px; font-family: var(--mono); font-size: 14px; color: var(--red); background: #000; border: 1px solid var(--red); text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s; }
.btn::before { content: "["; } .btn::after { content: "]"; }
.btn:hover { background: var(--red); color: #000; }
.btn-dark, .btn-grad { background: var(--red); color: #000; }
.btn-dark:hover, .btn-grad:hover { background: #000; color: var(--red); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar-outer { border-bottom: 1px solid var(--line); }
.topbar { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px; font-size: 12.5px; color: var(--red); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; text-align: center; }
.topbar button { background: none; border: 0; color: var(--red); padding: 0 4px; }
.topbar button:hover { background: var(--red); color: #000; }

/* ---------- Header ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid var(--line); }
.nav-top { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-mark { font-size: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--red); font-size: 15px; }
.brand:hover { background: none; color: var(--red); }
.brand img { width: 40px; height: 40px; border: 1px solid var(--red); object-fit: cover; }
.brand b { font-weight: 400; }
.nav-buy { justify-self: end; text-decoration: none; }
.nav-buy.is-off { opacity: .55; }
.nav { max-width: var(--wrap); margin: 0 auto; padding: 6px 24px 12px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 32px; align-items: start; font-size: 13px; }
.nav-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 26px; }
.nav-links a { text-decoration: none; }
.nav-links a::before { content: ""; }
.nav-links a[aria-current="page"]::before { content: "> "; }
.nav-meta { display: grid; grid-template-columns: auto auto; gap: 0 10px; margin: 0; }
.nav-meta dt { color: var(--red-2); }
.nav-meta dd { margin: 0; }
.burger { display: none; background: none; border: 0; color: var(--red); padding: 0; justify-self: end; }
.mobile-menu { display: none; padding: 8px 24px 18px; border-top: 1px solid var(--line); }
.mobile-menu a, .mobile-menu .nav-buy { display: block; padding: 10px 0; text-decoration: none; font-size: 16px; }
.nav-wrap.open .mobile-menu { display: block; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-meta:last-of-type { display: none; }
  .burger { display: block; }
  .nav-top .nav-buy { display: none; }
  .nav-top { grid-template-columns: auto 1fr; gap: 16px; }
}

/* ---------- Boot loader ---------- */
.boot { position: fixed; inset: 0; z-index: 9999; background: #000; display: grid; place-items: center; padding: 20px; transition: opacity .45s; }
.boot.out { opacity: 0; }
.boot-frame { width: min(1100px, 100%); height: min(620px, 80vh); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; padding: 28px; font-size: 14px; }
.boot-frame p { margin: 0; }
.b2, .b5 { text-align: center; } .b3, .b6 { text-align: right; } .b4, .b5, .b6 { align-self: end; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 48px 0; }
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(48px, 8vw, 116px); margin-bottom: 26px; max-width: 14ch; }
.page-head .lede { margin-bottom: 14px; }
.section-title { margin-bottom: 36px; }

/* ---------- Home hero ---------- */
.hero { padding: 40px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 16px; align-items: end; }
.hero-word { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(72px, 15vw, 230px); line-height: .82; margin: 0; }
.hero-word span { color: transparent; -webkit-text-stroke: 2px var(--red); }
.hw1 { grid-column: 1 / 8; }
.hw2 { grid-column: 8 / 13; justify-self: end; }
.hw3 { grid-column: 3 / 13; }
.hero-snip { font-size: 13px; margin: 0; }
.hs1 { grid-column: 1 / 3; align-self: start; }
.hs2 { grid-column: 9 / 13; align-self: start; }
.hero-body { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.coin { width: 220px; height: 220px; object-fit: cover; border: 1px solid var(--red); padding: 6px; background: var(--corners); filter: saturate(1.1) contrast(1.05); }
.mainsummary { font-family: var(--cond); text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; font-weight: 600; margin: 0 0 18px; max-width: 22ch; }
.hero .lede { margin-bottom: 26px; }
@media (max-width: 760px) {
  .hw1, .hw2, .hw3, .hs1, .hs2 { grid-column: 1 / -1; justify-self: start; }
  .hero-body { grid-template-columns: 1fr; gap: 24px; }
  .coin { width: 160px; height: 160px; }
}

/* overview cards */
.overview { padding: 48px 0; }
.overview-title { font-size: 13px; margin-bottom: 18px; }
.overview-title::before { content: ">> "; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; gap: 16px; align-items: center; padding: 22px; text-decoration: none; color: var(--red); }
.card:hover { background-color: var(--red); color: #000; }
.card:hover svg * { stroke: #000; }
.card svg { width: 44px; height: 44px; flex: none; }
.card-title { font-family: var(--cond); text-transform: uppercase; font-weight: 600; font-size: 28px; line-height: 1; margin: 0 0 4px; }
.card-link { margin: 0; font-size: 12.5px; }
.card-link::before { content: "://"; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.mainlist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.mainlist li { display: flex; gap: 14px; align-items: center; }
.mainlist svg { width: 28px; height: 28px; flex: none; }

/* ---------- Keyspace lens ---------- */
.lens { max-width: 960px; margin: 48px auto 0; padding: 24px; text-align: left; }
.lens-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ticker { font-size: clamp(14px, 1.8vw, 18px); }
.ticker small { color: var(--red-2); font-size: 12px; margin-right: 8px; }
.lens-bar { position: relative; height: 40px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--red-3) calc(10% - 1px) 10%); overflow: hidden; }
.lens-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width 1s ease; }
.lens-fill.enlarged { min-width: 3px; box-shadow: 0 0 12px 2px var(--red); }
.lens-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--red-2); margin-top: 6px; gap: 12px; }
.lens-note { margin: 16px 0 0; color: var(--red-2); }
.lens-note b { color: var(--red); }

/* ---------- Statement ---------- */
.statement p { font-family: var(--cond); text-transform: uppercase; font-weight: 600; font-size: clamp(30px, 4vw, 56px); line-height: .98; max-width: 22ch; margin: 0; }
.statement .muted { color: transparent; -webkit-text-stroke: 1px var(--red); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 12px; color: var(--red-2); margin-bottom: 6px; }
.stat dt::before { content: "> "; }
.stat dd { margin: 0; font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; }
.stat dd small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--red-2); margin-left: 6px; text-transform: lowercase; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green); }
.live-dot::before { content: ""; width: 8px; height: 8px; background: var(--green); animation: blink 1.2s steps(1) infinite; }
.live-dot.idle { color: var(--red-2); }
.live-dot.idle::before { background: var(--red-2); animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Steps ---------- */
.night { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.night h2 .dim { display: block; color: transparent; -webkit-text-stroke: 1px var(--red); }
.wheel { margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wheel li { list-style: none; padding: 22px; }
.wheel .n { font-size: 13px; }
.wheel .n::before { content: "["; } .wheel .n::after { content: "]"; }
.wheel h3 { margin: 18px 0 10px; }
.wheel p { color: var(--red-2); margin: 0; }
@media (max-width: 900px) { .wheel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wheel { grid-template-columns: 1fr; } }

/* ---------- Split checklist ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist strong { font-weight: 400; }
.checklist strong::before { content: "://"; }
.checklist span { color: var(--red-2); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } .checklist li { grid-template-columns: 1fr; gap: 2px; } }
.marquee { display: none; }

/* ---------- CTA ---------- */
.cta-block { padding: 64px 28px; max-width: var(--wrap); margin: 0 auto; }
.cta-block h2 { max-width: 14ch; margin-bottom: 20px; }
.cta-block .lede { margin-bottom: 26px; }

/* ---------- Panels, tables, prose ---------- */
.panel { padding: 24px; }
.panel + .panel { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .panel + .panel { margin-top: 0; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 400; color: var(--red-2); padding: 10px 12px; border-bottom: 1px solid var(--red); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--red-3); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; background: var(--red-2); }
.status.live { color: var(--green); }
.status.live::before { background: var(--green); animation: blink 1.2s steps(1) infinite; }
.empty { padding: 32px; text-align: center; color: var(--red-2); border-style: dashed; }
.empty strong { display: block; color: var(--red); font-weight: 400; margin-bottom: 4px; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(36px, 4.4vw, 60px); margin: 56px 0 18px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--red-2); }
.prose strong { color: var(--red); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--red); }
.callout { border: 1px solid var(--red); border-left-width: 6px; padding: 16px 20px; margin: 24px 0; color: var(--red); }
.callout::before { content: "!! "; }
.callout.warn { background: rgba(255,0,0,.08); }

.kv { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--red-3); margin: 0; }
.kv dt { color: var(--red-2); }
.kv dd { word-break: break-all; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }

.big-counter { font-family: var(--mono); font-size: clamp(24px, 4.6vw, 58px); font-variant-numeric: tabular-nums; word-break: break-all; line-height: 1.1; text-shadow: 0 0 18px rgba(255,0,0,.45); }
.chart { width: 100%; height: 240px; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--red-2); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--red-3); }
.log time { color: var(--red-2); }

.ca-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px; }
.ca-box code { font-size: 14px; word-break: break-all; flex: 1; min-width: 200px; }

.calc label { display: block; color: var(--red-2); margin-bottom: 8px; }
.calc input { width: 100%; font: inherit; font-size: 20px; padding: 12px 14px; color: var(--red); background: #000; border: 1px solid var(--red); caret-color: var(--red); }
.calc input:focus { outline: 1px dashed var(--red); outline-offset: 3px; }
.calc-out { margin-top: 18px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 44px; line-height: 1; }
.calc-out small { display: block; font-family: var(--mono); font-weight: 400; text-transform: lowercase; font-size: 12.5px; color: var(--red-2); margin-top: 8px; }

/* ---------- BTC tracker ---------- */
.tracker { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px 36px; align-items: end; padding: 22px 24px; }
.t-label { font-size: 12px; color: var(--red-2); margin: 0 0 4px; }
.t-label::before { content: "> "; }
.t-big { font-family: var(--cond); font-weight: 600; font-size: clamp(42px, 5vw, 72px); line-height: .95; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.chg { font-size: 12.5px; padding: 1px 6px; border: 1px solid currentColor; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.t-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--green); margin: 0; white-space: nowrap; }
.t-status::before { content: ""; width: 8px; height: 8px; background: var(--green); animation: blink 1.2s steps(1) infinite; }
.tracker.idle .t-status { color: var(--red-2); }
.tracker.idle .t-status::before { background: var(--red-2); animation: none; }
@media (max-width: 760px) { .tracker { grid-template-columns: 1fr; } }

/* ---------- Budget ---------- */
.budget-bar { height: 14px; border: 1px solid var(--red); margin: 16px 0 10px; padding: 2px; }
.budget-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 8px); transition: width 1s linear; }
.budget-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--red-2); }
.budget-meta b { color: var(--red); font-weight: 400; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 88px; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-big { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(110px, 16vw, 240px); line-height: .78; }
.foot-big span { color: transparent; -webkit-text-stroke: 2px var(--red); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 6px; }
.foot-fine { margin-top: 44px; max-width: 80ch; }
.foot-bottom { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--red-2); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-big { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
