/* Commit: a developer's year as data. Paper, ink, one green in five levels. Square corners, hairlines. */
@font-face { font-family: "Departure"; src: url(/assets/fonts/DepartureMono-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Plex"; src: url(/assets/fonts/PlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/assets/fonts/PlexMono-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #F2F1EA; --paper-2: #E9E8E0; --cell: #DCDDD5; --line: #C9CAC2; --mute: #9A9C93; --ink-2: #6E7069; --ink: #121512;
  --l1: #C2E8B0; --l2: #7ACC86; --l3: #2FA352; --l4: #1B7A3A; --l5: #0E4D24;
  --disp: "Departure", ui-monospace, monospace; --mono: "Plex", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 32px; --max: 1520px;
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='1' y='1' width='12' height='12' fill='none' stroke='%23121512' stroke-width='2'/%3E%3C/svg%3E") 7 7, crosshair;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--mono); font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
a, button, [role=button], [onclick], summary, label, .ca, select { cursor: pointer; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .02em; margin: 0; line-height: 1.1; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lab { font-family: var(--disp); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--ink-2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--l3); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.pix { image-rendering: pixelated; }
img[src$="_native.png"] { image-rendering: pixelated; }

/* ---------- keys */
.key, .key2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 2px;
  font: 14px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; background: var(--paper); color: var(--ink);
  transition: background-color .12s, color .12s, transform .08s; user-select: none; }
.key { background: var(--l3); box-shadow: inset 0 1px 0 var(--l2); }
.key:hover { background: var(--l4); color: var(--paper); box-shadow: inset 0 1px 0 var(--l3); }
.key:active, .key2:active { transform: translateY(2px); }
.key:active { background: var(--l5); }
.key2:hover { background: var(--l1); }
.key2.sq { width: 40px; padding: 0; }
.key[disabled], .key2[disabled] { background: var(--cell); color: var(--mute); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.key.sm, .key2.sm { min-height: 32px; padding: 0 10px; font-size: 12px; }
.key.busy, .key2.busy { cursor: progress; }
.keys { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- header */
.hd { position: sticky; top: 0; z-index: 30; height: 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hd-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { min-height: 40px; display: inline-flex; align-items: center; gap: 10px; font: 18px/1 var(--disp); text-decoration: none; letter-spacing: .02em; }
.brand img { image-rendering: pixelated; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { font: 13px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 2px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--l3); }
.hd-r { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.hd .key, .hd .key2 { min-height: 36px; }
.hd .key2.sq { width: 36px; }
.wal .bl { font-family: var(--disp); }

/* ---------- year graph (cells) */
.yr { display: grid; width: 100%; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: var(--gap, 4px); cursor: var(--cur); }
.yr i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--cell); }
.yr i[data-l="1"], .ct i[data-l="1"] { background: var(--l1); }
.yr i[data-l="2"], .ct i[data-l="2"] { background: var(--l2); }
.yr i[data-l="3"], .ct i[data-l="3"] { background: var(--l3); }
.yr i[data-l="4"], .ct i[data-l="4"] { background: var(--l4); }
.yr i[data-l="5"], .ct i[data-l="5"] { background: var(--l5); }
.yr-m, .yr-name-m { display: none; }
.ct { display: inline-grid; grid-template-columns: repeat(var(--cols), var(--p, 8px)); grid-template-rows: repeat(7, var(--p, 8px)); grid-auto-flow: column; gap: var(--g, 2px); vertical-align: middle; }
.ct i { display: block; border-radius: 1px; }

/* ---------- hero */
.hero { position: relative; }
.hero-pin { min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: flex; }
.hero-in { width: 100%; padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tag { font: 22px/1.25 var(--disp); letter-spacing: .01em; }
.graph { position: relative; }
.hname { margin: 0; font: inherit; display: block; }
.yr-name-m { display: none; }
.gdemo { font: 11px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 4px 6px; border: 1px solid var(--line); }
.gtip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; background: var(--ink); color: var(--paper); font: 12px/1.3 var(--mono); padding: 6px 9px; white-space: nowrap; opacity: 0; transform: translate(-50%, -100%); transition: transform .12s ease-out, opacity .1s; }
.gtip.on { opacity: 1; }
.gitlog { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.gl-head { font: 13px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--l4); }
.gl-n { display: inline-flex; align-items: baseline; gap: 8px; }
.gl-n b { font-size: 17px; }
.gl-n .u { color: var(--ink-2); font-size: 13px; }
.gitlog .gl-n:first-of-type { margin-left: auto; }
.gitlog .gdemo { order: 9; }

/* CA chip */
.ca { display: inline-flex; align-items: center; gap: 8px; }
.ca-lab { font: 12px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.cachip { min-height: 34px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--paper); padding: 4px 4px 4px 10px; border-radius: 2px; font: 13px/1 var(--mono); transition: background-color .15s; }
.cachip .cl { font: 11px/1 var(--disp); text-transform: uppercase; border: 1px solid var(--ink); padding: 4px 6px; letter-spacing: .04em; }
.cachip:hover .cl { background: var(--l1); }
.cachip.copied, .cachip.copied .cl { background: var(--l3); }
span.cachip { cursor: default; color: var(--ink-2); border-color: var(--line); padding-right: 10px; }

/* vault: the lock and the dev wallet */
.vault { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 28px; margin-top: 4px; }
.v-side { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 22px; }
.v-l { justify-content: flex-end; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.v-note { font-size: 13px; color: var(--ink-2); }
.lockbox { position: relative; width: 282px; height: 282px; }
.lockbox img { position: absolute; left: 0; bottom: 0; width: 282px; height: 282px; image-rendering: pixelated; }
.lk-base { filter: grayscale(1) contrast(.55) brightness(1.35); opacity: .9; }
.lk-fill { position: absolute; inset: 0; overflow: hidden; transform: translateY(100%); }
.lk-fill-in { position: absolute; inset: 0; transform: translateY(-100%); }
.lk-fill-in img { left: 0; bottom: 0; }
.lockbox .lk-open { width: 384px; height: 384px; left: -51px; bottom: -9px; opacity: 0; }
.wcol { display: grid; grid-template-rows: repeat(10, 14px); gap: 3px; width: 14px; }
.wcol i { display: block; width: 14px; height: 14px; border-radius: 2px; background: var(--l3); }
.wcol i:nth-child(3n) { background: var(--l4); } .wcol i:nth-child(4n+1) { background: var(--l2); }
.v-amt { display: block; font-size: 20px; font-weight: 700; color: var(--l4); }
.hero.js .wcol i { opacity: 0; }
.hero.end .lk-fill { transform: none; } .hero.end .lk-fill-in { transform: none; } .hero.end .lk-open { opacity: 1; } .hero.end .lk-base, .hero.end .lk-fill { opacity: 0; } .hero.end .wcol i { opacity: 1; }
.fall { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; border-radius: 2px; will-change: transform; }

/* ---------- section heads */
section[id]:not(.hero) { padding: 96px 0; border-top: 1px solid var(--line); }
.sh { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.sh .ct { --p: 9px; --g: 2px; margin-bottom: 6px; }
.sh h2 { font-size: 40px; }
.sh p { color: var(--ink-2); font-size: 16px; }

/* ---------- graded: terminal + punch card */
.grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 576px); gap: 40px; align-items: start; }
.term { background: var(--ink); color: #E9E8E0; border-radius: 2px; min-height: 384px; display: flex; flex-direction: column; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid #2c302c; flex-wrap: wrap; }
.tab { min-height: 34px; font: 12px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; background: transparent; color: var(--mute); border: 1px solid #3a3f3a; border-radius: 2px; padding: 8px 10px; }
.tab:hover { color: var(--paper); border-color: var(--mute); }
.tab.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.term-src { margin-left: auto; font-size: 12px; color: var(--mute); }
.term-out { margin: 0; padding: 18px 20px 22px; font: 14px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; flex: 1; }
.term-out .g { color: var(--l2); } .term-out .d { color: var(--mute); } .term-out .w { color: #fff; font-weight: 700; } .term-out .z { color: var(--mute); text-decoration: line-through; }
.pcard { margin: 0; }
.pc { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.pc img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.holes { position: absolute; left: 13.5%; right: 13.2%; top: 26.5%; bottom: 26%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 5%; }
.hcol { display: grid; height: 100%; grid-template-rows: repeat(8, 1fr); gap: 4px; width: 38%; justify-self: center; }
.hcol i { display: block; border-radius: 1px; background: var(--cell); transition: transform .06s; }
.hcol i.p { background: var(--ink); transform: translateY(1px); }
.hcol.ok i.p { background: var(--l5); }
.pc-lab { margin-top: -12%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 5%; padding: 10px 13.2% 0 13.5%; font: 11px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.pbar { margin-top: 40px; display: grid; gap: 14px; }
.pb-cells { display: grid; grid-template-columns: repeat(50, 1fr); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 3px; }
.pb-cells i { aspect-ratio: 1; border-radius: 1px; background: var(--cell); }
.pb-cells i.on { background: var(--l3); }
.pb-cells i.cap { background: var(--l1); }
.pb-txt { font-size: 16px; }
.pb-txt b { font-size: 18px; }
.pb-txt .ar { color: var(--mute); margin: 0 6px; }
.pb-txt .cap { color: var(--ink-2); margin-left: 18px; }
.pb-txt .cap b { font-size: 16px; }

/* ---------- shipped feed */
.s-ship { background: var(--paper); }
.scoring { color: var(--ink); }
.feed { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 40px minmax(150px, 1.1fr) auto minmax(0, 1.6fr) 32px auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row:nth-child(even) { background: linear-gradient(var(--paper-2), var(--paper-2)) no-repeat; background-size: 100vw 100%; background-position: center; }
.row .av { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 2px; object-fit: cover; background: var(--cell); }
.row .nm { display: grid; gap: 2px; min-width: 0; }
.row .nm b { font: 16px/1.2 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm span { font-size: 13px; color: var(--ink-2); }
.row .nm a { text-decoration: none; display: inline-block; padding: 6px 0; } .row .nm a:hover { text-decoration: underline; }
.mini { display: grid; grid-template-columns: repeat(12, 7px); grid-template-rows: repeat(7, 7px); grid-auto-flow: column; gap: 2px; }
.mini i { border-radius: 1px; background: var(--cell); }
.mini i[data-l="1"] { background: var(--l1); } .mini i[data-l="2"] { background: var(--l2); } .mini i[data-l="3"] { background: var(--l3); } .mini i[data-l="4"] { background: var(--l4); }
.row .say { font-size: 15px; } .row .say b { font-weight: 700; }
.row .say small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.row .st { width: 32px; height: 32px; }
.row .act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row .carow { grid-column: 2 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: -6px; font-size: 13px; }
.row .carow a { color: var(--ink-2); display: inline-block; padding: 8px 0; } .row .carow a:hover { color: var(--ink); }
.row.flash .mini i[data-l] { animation: flash .6s steps(2) 1; }
@keyframes flash { 0% { background: var(--l1); } 100% { background: var(--l3); } }
.row.dead { color: var(--ink-2); } .row.dead .av { filter: grayscale(1); }
.empty { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px; margin-top: 16px; border: 2px dashed var(--line); }
.empty .mini { grid-template-columns: repeat(12, 9px); grid-template-rows: repeat(7, 9px); }
.empty p { font-size: 16px; } .empty .demo { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.feed-err { padding: 16px 0; color: var(--ink-2); }

/* ---------- quiet / shredder */
.s-quiet { background: var(--paper-2); }
.q-stage { display: grid; gap: 40px; }
.q-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; }
.q-row li { display: grid; gap: 8px; }
.q-row i { --o: 1; position: relative; display: block; aspect-ratio: 1; border-radius: 2px; background: var(--cell); overflow: hidden; }
.q-row i::after { content: ""; position: absolute; inset: 0; background: var(--l3); opacity: var(--o, 1); }
.q-row span { font: 12px/1 var(--mono); color: var(--ink-2); text-align: center; }
.q-row li:last-child i { outline: 2px solid var(--ink); outline-offset: 2px; }
.q-end { display: grid; grid-template-columns: auto auto 1fr; gap: 40px; align-items: end; padding-top: 72px; }
.shred { position: relative; width: 256px; height: 256px; }
.q-shr { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.q-card { position: absolute; left: 68px; top: -64px; width: 120px; height: 80px; transform-origin: 50% 100%; }
.q-grey { width: 128px; height: 128px; image-rendering: pixelated; margin-bottom: 20px; }
.q-nums { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; padding-bottom: 28px; }
.q-nums dt { font: 12px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 6px; }
.q-nums dd { margin: 0; font-size: 16px; } .q-nums dd b { font-size: 28px; font-weight: 700; }
.q-next { max-width: 280px; }

/* ---------- push / launch steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--paper); border: 2px solid var(--ink); padding: 26px 22px 22px; display: grid; gap: 12px; align-content: start;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.step::before { content: ""; position: absolute; left: -2px; top: -2px; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, var(--ink) 50%, var(--ink) calc(50% + 2.5px), transparent calc(50% + 2.5px)); }
.st-n { font: 13px/1 var(--mono); color: var(--l4); font-weight: 700; }
.step h3 { font-size: 20px; }
.step p { color: var(--ink-2); font-size: 14px; }
.st-code { font: 13px/1.4 var(--mono); background: var(--paper-2); border: 1px solid var(--line); padding: 8px 10px; word-break: break-all; }
.inp { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding: 8px 0; background: transparent; }
.inp .pr { color: var(--mute); font-weight: 700; }
.inp input, .inp textarea, .inp select { min-height: 34px; flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px/1.3 var(--mono); color: var(--ink); padding: 4px 0; }
.inp:focus-within { border-bottom-color: var(--l3); }
.inp .suf { color: var(--ink-2); font-size: 14px; }
.alltime { margin-top: 72px; padding: 0 var(--gut); }
.at-head { display: flex; justify-content: space-between; max-width: var(--max); margin: 0 auto 10px; }
.at-line { display: flex; align-items: center; gap: 12px; max-width: var(--max); margin: 0 auto; }
.at-row { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; min-width: 0; }
.at-row i { aspect-ratio: 1; border-radius: 1px; background: var(--cell); }
.at-row i[data-l="1"] { background: var(--l1); } .at-row i[data-l="2"] { background: var(--l2); } .at-row i[data-l="3"] { background: var(--l3); } .at-row i[data-l="4"] { background: var(--l4); } .at-row i[data-l="5"] { background: var(--l5); }
.at-row i:last-child { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- footer */
.ft { border-top: 2px solid var(--ink); margin-top: 0; }
.ft-in { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut) 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ft nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft nav a { font: 13px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); padding: 10px 0; display: inline-block; }
.ft nav a:hover { color: var(--ink); }
.ft .padca { margin-left: auto; }
.padca.sm .cachip { font-size: 12px; }

/* ---------- inner pages */
.page { padding: 56px 0 96px; }
.page h1 { font-size: 44px; margin: 14px 0 12px; }
.page .lead { color: var(--ink-2); font-size: 16px; max-width: 720px; }
.page .ct { --p: 8px; --g: 2px; }
.cards { display: grid; gap: 20px; margin-top: 36px; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.card h2 { font-size: 22px; display: flex; gap: 12px; align-items: baseline; }
.card h2 .st-n { font-size: 14px; }
.card.off { border-color: var(--line); color: var(--ink-2); }
.card.off h2 { color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: 13px; }
.err { color: var(--ink); background: var(--paper-2); border-left: 3px solid var(--ink); padding: 8px 12px; font-size: 14px; }
.okmsg { background: var(--l1); border-left: 3px solid var(--l4); padding: 8px 12px; font-size: 14px; }
.proof { display: grid; gap: 8px; }
.proof pre { margin: 0; background: var(--ink); color: var(--paper); padding: 14px 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; border-radius: 2px; }
.proof pre .g { color: var(--l2); }
.row2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pic { display: flex; align-items: center; gap: 14px; }
.pic img { width: 72px; height: 72px; border: 2px solid var(--ink); object-fit: cover; background: var(--cell); }
.split { display: flex; height: 44px; border: 2px solid var(--ink); }
.split div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; }
.split div + div { border-left: 2px solid var(--ink); }
.split b { font-weight: 700; }
.timer { font: 700 28px/1 var(--mono); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.kv div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font: 11px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 6px; }
.kv dd { margin: 0; font-size: 18px; font-weight: 700; }
.kv dd small { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.mycoin { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: start; }
.mycoin .av { width: 56px; height: 56px; border: 2px solid var(--ink); object-fit: cover; background: var(--cell); }
.mine-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px solid var(--ink); padding: 18px 22px; margin-top: 32px; background: var(--paper-2); }
.mine-top .big { font: 700 32px/1 var(--mono); }
.killer { font: 30px/1.35 var(--disp); max-width: 1100px; margin: 28px 0 40px; }
.killer b { font-family: var(--mono); font-weight: 700; color: var(--l4); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { font: 11px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); text-align: left; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); font-weight: 400; }
.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:nth-child(even) td { background: var(--paper-2); }
.t td.r, .t th.r { text-align: right; }
.tscroll { overflow-x: auto; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; margin-top: 32px; }
.toc { position: sticky; top: 80px; align-self: start; display: grid; gap: 4px; }
.toc a { font: 13px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); padding: 8px 0; }
.toc a:hover { color: var(--ink); }
.docs h2 { font-size: 26px; margin: 48px 0 14px; } .docs h2:first-child { margin-top: 0; }
.docs p, .docs li { color: #2b2e2b; margin: 0 0 10px; }
.docs ul, .docs ol { padding-left: 20px; margin: 0 0 14px; }
.docs code { font: 13px/1.4 var(--mono); background: var(--paper-2); border: 1px solid var(--line); padding: 1px 5px; }
.nf { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 40px var(--gut); text-align: center; }
.nf-in { display: grid; gap: 22px; justify-items: center; }
.nf .ct { --p: 14px; --g: 3px; }
.nf img { width: 256px; height: 256px; image-rendering: pixelated; }
.nf p { font: 20px/1.3 var(--disp); }

/* ---------- toasts + dialogs */
.tstack { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 2px solid var(--ink); padding: 12px 12px 12px 14px; font-size: 14px; }
.toast.ok { border-left: 8px solid var(--l3); } .toast.err { border-left: 8px solid var(--ink); background: var(--paper-2); }
.toast .tt { flex: 1; } .toast a { color: var(--l4); white-space: nowrap; }
.toast .tx { border: 0; background: none; font-size: 20px; line-height: 1; padding: 0 4px; min-width: 32px; min-height: 32px; }
dialog { border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(18, 21, 18, .42); }
dialog h2 { font-size: 22px; margin: 0 0 14px; padding-right: 40px; }
.dlg-x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--paper); font-size: 22px; line-height: 1; border-radius: 2px; }
.dlg-x:hover { background: var(--l1); }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--paper); text-align: left; font: 15px var(--mono); border-radius: 2px; }
.wp-item:hover { background: var(--l1); }
.wp-dot { width: 32px; height: 32px; background: var(--l3); border: 2px solid var(--ink); }
.wp-get { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.wp-cur, .wp-none { margin-bottom: 12px; } .wp-err { color: var(--ink); margin-top: 10px; }
.wp-off { margin-top: 14px; }
.trade { display: grid; gap: 14px; }
.seg { display: flex; border: 2px solid var(--ink); }
.seg button { flex: 1; min-height: 40px; border: 0; background: var(--paper); font: 13px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .grade { grid-template-columns: 1fr; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto 32px; }
  .row .say { grid-column: 2 / -1; grid-row: 2; }
  .row .act { grid-column: 2 / -1; justify-content: flex-start; }
  .row .mini { grid-column: 3; grid-row: 1; }
  .q-end { grid-template-columns: auto auto; }
  .q-nums { grid-column: 1 / -1; }
  .docs { grid-template-columns: 1fr; } .toc { display: none; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: 64px; }
  .hd-in { gap: 10px; }
  .brand { font-size: 16px; }
  .hd-r { gap: 6px; }
  .hd .wal { display: none; }
  .hd .key { padding: 0 10px; }
  .hero-pin { min-height: 0; }
  .hero-in { gap: 16px; padding-top: 22px; }
  .tag { font-size: 18px; }
  .yr-d { display: none; }
  .yr-m { display: grid; --gap: 3px; }
  .yr-name-m { display: block; margin-bottom: 14px; }
  .yr-name-m .ct { --p: calc((100vw - 32px - 42 * 1.5px) / 43); --g: 1.5px; }
  .gitlog { gap: 8px 18px; margin-top: 8px; }
  .gitlog .gl-n:first-of-type { margin-left: 0; }
  .gl-n b { font-size: 15px; }
  .vault { grid-template-columns: auto auto; justify-content: center; gap: 18px; }
  .v-l { display: none; }
  .lockbox, .lockbox img { width: 188px; height: 188px; }
  .lockbox .lk-open { width: 256px; height: 256px; left: -34px; bottom: -6px; }
  section[id]:not(.hero) { padding: 64px 0; }
  .sh h2 { font-size: 30px; }
  .sh .ct, .page .ct { --g: 1.5px; --p: min(6px, calc((100vw - 32px - (var(--cols) - 1) * 1.5px) / var(--cols))); }
  .term { min-height: 0; }
  .term-out { font-size: 13px; padding: 14px; }
  .pc-lab { font-size: 9px; }
  .pb-cells { grid-template-columns: repeat(25, 1fr); grid-template-rows: repeat(4, auto); }
  .pb-txt .cap { display: block; margin: 6px 0 0; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 10px 12px; }
  .row .mini { grid-column: 2 / -1; grid-row: 3; grid-template-columns: repeat(8, 7px); }
  .row .mini i:nth-child(n+57) { display: none; }
  .row .say { grid-row: 2; }
  .row .act { grid-row: 4; }
  .row .carow { grid-row: 5; margin-top: 0; }
  .empty { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .q-end { grid-template-columns: 1fr 1fr; gap: 16px; justify-items: center; padding-top: 56px; }
  .shred { width: 192px; height: 192px; } .q-card { left: 50px; top: -48px; width: 90px; height: 60px; }
  .q-grey { width: 128px; height: 128px; }
  .q-nums { grid-template-columns: 1fr 1fr; gap: 18px; justify-self: stretch; }
  .q-nums div:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .alltime { margin-top: 48px; }
  .at-line .key { padding: 0 10px; }
  .ft .padca { margin-left: 0; }
  .page h1 { font-size: 32px; }
  .grid2 { grid-template-columns: 1fr; }
  .mycoin { grid-template-columns: 48px 1fr; } .mycoin .av { width: 48px; height: 48px; } .mycoin .act { grid-column: 1 / -1; }
  .killer { font-size: 22px; }
  .split div { padding: 0 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .sh h2 { font-size: 26px; }
  .hd .key2.sq { width: 34px; min-height: 34px; }
  .hd .key { font-size: 12px; min-height: 34px; }
}
@media (min-width: 1700px) { .sh h2 { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* how it works: own player (play / pause, cell timeline with drag-seek, time, sound, full screen) */
.s-how { background: var(--paper); }
.player { position: relative; max-width: 1080px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--line); padding: 12px; }
.vp-scr { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; background: var(--paper); }
.vp-scr video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--paper); cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 18px; min-height: 52px; padding: 0 26px; }
.vp-big:active { transform: translate(-50%, calc(-50% + 2px)); }
.vp-tri { display: inline-block; width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vp-pp.on .vp-tri { width: 13px; height: 15px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.vp-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.vp-tl { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--cell) 0 14px, transparent 14px 18px); }
.vp-fill { position: absolute; left: 0; top: 0; bottom: 0; max-width: 100%; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--l3) 0 14px, transparent 14px 18px); }
.vp-k { position: absolute; top: 50%; width: 20px; height: 32px; margin: -16px 0 0 -10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 3px; }
.player.drag .vp-k, .vp-tl:focus-visible .vp-k { background: var(--l2); }
.vp-t { min-width: 104px; text-align: center; font-size: 13px; }
.vp-vol { cursor: pointer; display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.vp-vol button { position: relative; width: 12px; height: 32px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.vp-vol button::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; background: var(--cell); border-radius: 2px; }
.vp-vol button:nth-child(1)::before { height: 8px; } .vp-vol button:nth-child(2)::before { height: 14px; } .vp-vol button:nth-child(3)::before { height: 20px; } .vp-vol button:nth-child(4)::before { height: 26px; }
.vp-vol button.on::before { background: var(--l3); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; max-width: none; background: var(--paper-2); }
.player:fullscreen .vp-scr { max-height: calc(100vh - 80px); margin: 0 auto; width: min(100%, calc((100vh - 80px) * 16 / 9)); }
.player:empty::before { content: ""; display: block; aspect-ratio: 16 / 9; border: 2px solid var(--ink); background: var(--paper) url(/assets/video/howto.webp) center / contain no-repeat; }
.player:empty::after { content: ""; display: block; height: 44px; }
@media (max-width: 640px) { .vp-vol, .vp-m { display: none; } .vp-t { min-width: 0; font-size: 12px; } .player { padding: 8px; } .vp-bar { gap: 8px; } }
