@font-face { font-family: 'Syne'; font-weight: 800; font-display: swap; src: url('fonts/Syne-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/JetBrainsMono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('fonts/JetBrainsMono-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url('fonts/JetBrainsMono-600-latin.woff2') format('woff2'); }
html, body { margin: 0; padding: 0; height: 100%; background: #0a0a14; color: #f0eaff; overflow: hidden; }
body { font-family: 'JetBrains Mono', monospace; -webkit-font-smoothing: antialiased; background: radial-gradient(1200px 700px at 70% -100px, rgba(168,85,247,0.22), transparent 60%), radial-gradient(900px 600px at 10% 30%, rgba(217,70,239,0.10), transparent 60%), radial-gradient(800px 500px at 50% 100%, rgba(6,214,224,0.06), transparent 60%), linear-gradient(180deg, #0a0a14, #060611); }
a { color: #c084fc; text-decoration: none; }
a:hover { color: #d946ef; }
::selection { background: rgba(168,85,247,0.45); color: #ffffff; }
[hidden] { display: none !important; }
#gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#jumpflash { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(190,235,255,0.95), rgba(120,160,255,0.5) 40%, rgba(10,10,20,0) 75%); }
#jumpflash.go { animation: jflash 0.8s ease; }
@keyframes jflash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.wordmark { position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.wordmark .mark { position: relative; padding: 18px 30px; pointer-events: auto; }
#wm { color: inherit; text-decoration: none; }
.wordmark .wl { display: inline-block; min-width: 1ch; text-align: center; }
.wordmark h1 .wl.hex { color: #67e8f9; text-shadow: 0 0 14px rgba(103,232,249,0.6); }
@keyframes wmflip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wm-eq { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #9be8ff; letter-spacing: 0.06em; white-space: nowrap; text-shadow: 0 0 12px rgba(103,232,249,0.4); }
.wordmark .ck { position: absolute; width: 11px; height: 11px; }
.wordmark .ck1 { top: 0; left: 0; border-top: 1.5px solid rgba(168,85,247,0.85); border-left: 1.5px solid rgba(168,85,247,0.85); }
.wordmark .ck2 { top: 0; right: 0; border-top: 1.5px solid rgba(168,85,247,0.85); border-right: 1.5px solid rgba(168,85,247,0.85); }
.wordmark .ck3 { bottom: 0; left: 0; border-bottom: 1.5px solid rgba(168,85,247,0.85); border-left: 1.5px solid rgba(168,85,247,0.85); }
.wordmark .ck4 { bottom: 0; right: 0; border-bottom: 1.5px solid rgba(168,85,247,0.85); border-right: 1.5px solid rgba(168,85,247,0.85); }
.wordmark h1 { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: clamp(17px, 2vw, 24px); letter-spacing: 0.45em; margin: 0 -0.45em 0 0; line-height: 1; color: #f0eaff; text-shadow: 0 0 18px rgba(168,85,247,0.35); }
.wordmark h1 .bg { color: #f7931a; text-shadow: 0 0 16px rgba(247,147,26,0.55); }
.wordmark .cur { display: inline-block; width: 0.55em; height: 1.05em; background: #a855f7; margin-left: 0.35em; vertical-align: -0.12em; box-shadow: 0 0 10px rgba(168,85,247,0.7); animation: blink 1.05s steps(2, end) infinite; }
@keyframes blink { to { visibility: hidden; } }
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 20px 14px; border-top: 1px solid rgba(168,85,247,0.10); font-size: 10.5px; letter-spacing: 0.12em; color: #8a85a8; background: linear-gradient(90deg, rgba(168,85,247,0.04), rgba(10,10,20,0.6) 50%, rgba(217,70,239,0.04)); backdrop-filter: blur(6px); }
.sb-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; }
.sb-row > span { white-space: nowrap; }
.statusbar .k { color: #7e7898; }
.statusbar .v { color: #f0eaff; font-weight: 500; }
.statusbar a.v { pointer-events: auto; }
.statusbar a.v:hover { color: #fbbf24; }
.statusbar [title] { cursor: help; }
.statusbar a[title], .statusbar button { cursor: pointer; }
.statusbar .dot { color: #a855f7; opacity: 0.5; }
.genesis { color: #f7931a; font-weight: 600; animation: btcPulse 2.4s ease-in-out infinite; pointer-events: auto; }
.genesis:hover { color: #fbbf24; }
.pow { font: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0 2px; margin: 0; color: #f0eaff; font-weight: 500; cursor: pointer; pointer-events: auto; }
.pow:hover { color: #fbbf24; }
.pow.on { color: #f7931a; font-weight: 600; text-shadow: 0 0 10px rgba(247,147,26,0.6); }
.hud { position: fixed; top: 16px; right: 20px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: 10.5px; letter-spacing: 0.12em; }
.hud-row { display: flex; align-items: center; gap: 10px; }
.hud-k { color: #7e7898; }
.hud-hint { color: #7e7898; font-size: 9.5px; letter-spacing: 0.1em; white-space: nowrap; }
.hud-btn { font: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; color: #8a85a8; cursor: pointer; }
.hud-btn:hover { color: #fbbf24; }
.hud-btn .ltr { display: inline-block; }
.hud-btn.bounce .ltr { animation: ltrb 0.5s ease both, ltrc 0.9s linear both; }
@keyframes ltrc { 0% { color: #f7931a; } 20% { color: #fbbf24; } 40% { color: #34d399; } 60% { color: #38bdf8; } 80% { color: #a78bfa; } 100% { color: inherit; } }
@keyframes ltrb { 0%, 100% { transform: none; } 40% { transform: translateY(-3px); } }
.hud-btn.on { color: #f7931a; font-weight: 600; text-shadow: 0 0 10px rgba(247,147,26,0.6); }
.hud-feed { color: #8a85a8; display: inline-flex; align-items: center; gap: 6px; }
.hud-feed::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7e7898; }
.hud-feed.live { color: #34d399; text-shadow: 0 0 10px rgba(52,211,153,0.5); text-decoration: underline; text-decoration-color: rgba(52,211,153,0.45); text-underline-offset: 3px; }
.hud-feed.live::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.8); animation: livePulse 1.6s ease-in-out infinite; }
.hud-feed:hover { color: #fbbf24; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes btcPulse { 0%, 100% { text-shadow: 0 0 6px rgba(247,147,26,0.35); } 50% { text-shadow: 0 0 16px rgba(247,147,26,0.8); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

.statusbar .age { color: #8a85a8; font-weight: 400; }
.hud-help { color: #7e7898; font-size: 9.5px; white-space: nowrap; }
.overlay { position: fixed; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; background: rgba(6,6,17,0.55); backdrop-filter: blur(4px); }
.card { position: relative; max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(168,85,247,0.5) transparent; width: min(520px, calc(100vw - 40px)); padding: 22px 26px 18px; background: rgba(8,10,24,0.9); border: 1px solid rgba(168,85,247,0.45); box-shadow: 0 0 40px rgba(168,85,247,0.18), inset 0 0 0 1px rgba(255,255,255,0.03); font-size: 12px; letter-spacing: 0.06em; color: #c9c3e0; }
.card::before, .card::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid #a855f7; }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card-genesis { border-color: rgba(247,147,26,0.5); box-shadow: 0 0 40px rgba(247,147,26,0.15); }
.card-genesis::before, .card-genesis::after { border-color: #f7931a; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(168,85,247,0.25); }
.card-title { color: #f0eaff; font-weight: 600; letter-spacing: 0.18em; font-size: 12px; white-space: nowrap; }
.card-genesis .card-title { color: #f7931a; }
.card-x { font: inherit; letter-spacing: inherit; background: none; border: 1px solid rgba(138,133,168,0.4); color: #8a85a8; padding: 2px 7px; cursor: pointer; font-size: 10px; }
.card-x:hover { color: #fbbf24; border-color: #fbbf24; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; }
.keys dt { color: #f0eaff; font-weight: 500; white-space: nowrap; }
.keys dd { margin: 0; color: #9be8ff; word-break: break-all; }
.card-genesis .keys dd { color: #ffd9a8; }
.keys .quote { color: #f0eaff; font-style: italic; word-break: normal; }
.card-foot { margin: 16px 0 0; font-size: 10.5px; color: #7e7898; }
.fallback { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-bottom: 80px; background: radial-gradient(900px 500px at 50% 40%, rgba(168,85,247,0.18), transparent 60%), #0a0a14; font-size: 12px; letter-spacing: 0.1em; color: #8a85a8; text-align: center; }
.fallback a { color: #f7931a; font-weight: 600; }

.hud-refresh { margin-left: 2px; font-size: 12px; line-height: 1; color: #7e7898; }
.hud-refresh.spin { animation: spin 0.9s linear infinite; color: #34d399; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-wide { width: min(640px, calc(100vw - 40px)); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.legend li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; line-height: 1.5; color: #9f99bd; text-wrap: pretty; }
.legend b { color: #f0eaff; font-weight: 500; margin-right: 6px; }
.legend .sw { width: 12px; height: 12px; margin-top: 3px; border-radius: 2px; box-shadow: 0 0 8px currentColor; }
.legend .sw-tree { background: linear-gradient(180deg, #fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); opacity: 0.8; }
.legend .sw-dots { background: radial-gradient(circle, #9be8ff 1.5px, transparent 2px) 0 0 / 4px 4px; }
.card-foot a { color: #c084fc; }
.card-foot b { color: #34d399; font-weight: 500; }
