:root{color-scheme:dark;--bg:#080f14;--panel:#111f28;--line:#2b424c;--mint:#85efc1;--muted:#aac0c7}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#19303a 0,transparent 65%),var(--bg);color:#edf6f4;font:16px/1.6 system-ui}main{max-width:1320px;margin:auto;padding:28px}header,nav,.controls,.title-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}header{justify-content:space-between;margin-bottom:32px}nav a{font-size:14px}a{color:var(--mint);text-underline-offset:4px}h1{font-size:clamp(32px,4vw,52px);line-height:1.1;margin:8px 0 18px;letter-spacing:-.035em}h2{font-size:22px;line-height:1.25}h3{font-size:16px}p{color:var(--muted)}small,.eyebrow{color:var(--mint);font-size:12px;letter-spacing:.13em;text-transform:uppercase}.grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px}section,aside,.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:22px}canvas{width:100%;height:560px;touch-action:none;border-radius:20px;background:#0b1921}.controls{margin:12px 0}button,select{font:inherit;color:var(--mint);background:#172c33;border:1px solid #44616b;border-radius:10px;padding:10px 14px}button{cursor:pointer}select{max-width:100%;flex:1;min-width:150px}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #e8d588;outline-offset:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats section{padding:20px}.metric{font-size:28px;color:#effaf4;font-weight:650;font-variant-numeric:tabular-nums}#status{border-left:3px solid var(--mint);padding:10px 16px;background:#132b2b;border-radius:4px;margin:20px 0}.row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:16px 0}.row:last-child{border:0}.row p{margin:4px 0;font-size:14px}.badge{display:inline-block;border:1px solid #4a665f;color:var(--mint);padding:3px 10px;border-radius:30px;font-size:12px}.fine{font-size:13px;color:var(--muted)}.address{word-break:break-all;font-family:monospace;font-size:13px}#coin-image{width:88px;height:88px;object-fit:contain;border-radius:16px;background:#213c43}footer{border-top:1px solid var(--line);margin-top:35px;padding:24px 0;color:var(--muted)}[hidden]{display:none!important}@media(max-width:760px){main{padding:18px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}canvas{height:390px}header{align-items:flex-start}section,aside{padding:18px}.stats section{margin-bottom:0}.stats{margin-bottom:22px}.row{align-items:flex-start}h1{font-size:36px}}
.directory-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}.directory-controls label{display:flex;flex-direction:column;gap:6px;color:var(--muted)}input{font:inherit;background:#172c33;color:#edf6f4;border:1px solid #44616b;border-radius:10px;padding:10px 14px;min-width:0}input:focus-visible{outline:3px solid #e8d588;outline-offset:3px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}caption{text-align:left;padding:8px 0}th,td{padding:16px 12px;border-bottom:1px solid var(--line)}th{font-size:13px;color:var(--muted)}td{font-variant-numeric:tabular-nums}td:first-child{min-width:180px}td:nth-child(n+4){white-space:nowrap}@media(max-width:760px){.directory-controls{grid-template-columns:1fr}.table-wrap{margin-top:18px}}
header>nav{flex:1 1 100%;padding:12px 0;border-top:1px solid var(--line);gap:10px 20px}nav a[aria-current=page]{color:#fff;text-decoration-thickness:3px}.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.footer-grid a{display:block;margin:8px 0}.footer-grid h3{color:var(--muted)}.book-cover{display:block;width:min(100%,400px);min-height:230px;margin:30px auto;background:linear-gradient(105deg,#362c25,#684c32 12%,#3e3028 15%,#392c25);border:2px solid #ad8e52;border-left:14px solid #261f1b;color:#e8d39f;font:600 28px/1.3 Georgia,serif;box-shadow:10px 14px 0 #080f1480,inset 0 0 0 8px #73583b;transition:transform .35s}.book-cover:hover{transform:rotate(-2deg)}.book-pages{position:relative;background:#e8dfc9;color:#302b24;border-radius:4px;padding:28px;animation:open-book .4s ease-out}.book-pages p,.book-pages th{color:#554b3f}.book-pages a{color:#215a48}.book-pages td,.book-pages th{border-color:#b8ad94}.book-pages nav{gap:10px}.book-pages button{color:#493a27;background:#f6efdf;border-color:#998466}.book-pages button[aria-pressed=true]{background:#493a27;color:#fff}.book-pages:before{content:'';position:absolute;pointer-events:none;inset:0;background:radial-gradient(circle at 15% 20%,#ead9a5 0 2px,transparent 4px),radial-gradient(circle at 80% 10%,#ead9a5 0 2px,transparent 5px);animation:dust .7s both}.book-pages:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 8px 0 15px #32230d22}@keyframes open-book{from{opacity:0;transform:perspective(1000px) rotateY(-12deg)}to{opacity:1;transform:none}}@keyframes dust{to{transform:translateY(-40px);opacity:0}}@media(prefers-reduced-motion:reduce){.book-cover,.book-pages,.book-pages:before{animation:none;transition:none}.book-cover:hover{transform:none}}@media(max-width:600px){.footer-grid{grid-template-columns:1fr 1fr}.book-pages{padding:16px}.book-pages nav{display:grid}.book-pages button{width:100%;text-align:left}}

.book-pages.quiet,.book-pages.quiet:before{animation:none}.book-pages.quiet:before{display:none}
#content label{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}#content label input{width:100%}#content section>button{margin:0 12px 12px 0}#content .book-cover{margin:30px auto}td{overflow-wrap:anywhere}td:first-child{max-width:360px}

/* The chronicles: a cloth-bound volume and a two-leaf paper spread. */
body[data-page=history] .chronicle-stage{background:radial-gradient(ellipse at center,#3c423630,transparent 70%);border:0;padding:32px 0 56px;overflow:visible;perspective:1800px}
.chronicle{position:relative;margin:auto;max-width:1000px;filter:drop-shadow(0 30px 23px #0007)}
.chronicle.is-closed{width:min(360px,90%)}
.chronicle-cover{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:20px;width:100%;min-height:500px;padding:40px 30px;border:1px solid #9b8454;border-left:18px solid #172b2a;border-radius:4px 14px 14px 4px;color:#dac595;background:linear-gradient(90deg,#102522,#29433b 7%,#1b352e 12%,#213a32 90%,#102820);box-shadow:inset 0 0 0 9px #1a3029,inset 0 0 0 10px #8b7955,8px 5px 0 -1px #cec2a7,13px 7px 0 -1px #746950,17px 9px 0 #18312b;transform:rotate(-3deg);transition:transform .4s;cursor:pointer}
.chronicle-cover:after{content:'';position:absolute;inset:22px 18px;border:1px solid #97825380;pointer-events:none}
.chronicle-cover:hover{transform:rotate(-1deg) translateY(-6px)}
.cover-kicker,.cover-subtitle,.cover-volume,.cover-hint{font-size:10px;letter-spacing:.22em}.cover-title{font:42px/1.2 Georgia,serif;letter-spacing:-.04em}.cover-star{font-size:22px}.cover-subtitle{font-size:8px}.cover-volume{font:italic 16px Georgia,serif;letter-spacing:0}.cover-hint{margin-top:15px;font-size:9px;color:#d7c7a1}
.cover-globe{display:block;position:relative;width:112px;height:112px;border:1px solid #c4ab72;border-radius:50%;margin:0 0 8px}.cover-globe:before,.cover-globe:after{content:'';position:absolute;inset:22% 0;border:1px solid #c4ab72;border-radius:50%}.cover-globe:after{inset:0 26%}.cover-globe i{position:absolute;top:50%;left:0;width:100%;border-top:1px solid #c4ab72}.cover-globe i:nth-child(2){transform:rotate(90deg)}.cover-globe i:nth-child(3){inset:-10px;border:1px solid #c4ab7244;border-radius:50%;width:auto}
.chronicle-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:580px;border:9px solid #1c352c;border-radius:5px 12px 12px 5px;box-shadow:0 5px 0 #c3b79c,0 8px 0 #6f614d,0 12px 0 #19312a;background:#e9dfc5;color:#3e3629}
.chronicle-frontispiece,.chronicle-sheet{position:relative;background:repeating-linear-gradient(0deg,#6e542503 0 1px,transparent 1px 4px),#eee5cf}
.chronicle-frontispiece{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:45px 30px;background-color:#e6dcc3;box-shadow:inset -25px 0 30px -20px #4c382d80,inset 3px 0 8px #fff8}
.folio-kicker{font:10px/1.5 system-ui;letter-spacing:.2em;color:#79603e}.folio-title{font:46px/1.14 Georgia,serif;white-space:pre-line;margin-top:35px}.folio-ornament{font-size:36px;color:#917449;margin:25px}.folio-verse{font:italic 17px/1.8 Georgia,serif;white-space:pre-line;color:#796b56}.folio-imprint{font-size:8px;letter-spacing:.25em;position:absolute;bottom:32px}
.chronicle-sheet{display:flex;flex-direction:column;padding:20px 28px 16px;box-shadow:inset 24px 0 30px -28px #392410aa;transform-origin:left center}
.folio-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #a48a5f66;padding-bottom:12px;font-size:8px;letter-spacing:.16em;color:#79603e}
.chronicle button.folio-close,.chronicle button.folio-turn{background:none;border:0;border-radius:0;color:#645035;font:12px/1.5 Georgia,serif;padding:6px;cursor:pointer}.chronicle button:focus-visible{outline:2px solid #967335;outline-offset:3px}.chronicle button:disabled{opacity:.25;cursor:default}
.folio-content{flex:1;padding-top:28px}.folio-content h2{font:32px/1.1 Georgia,serif;color:#403321;margin:8px 0}.folio-deck{font:italic 14px Georgia,serif;color:#897253;margin:0 0 26px}.folio-content .folio-note{font:10px/1.6 system-ui;color:#82735c;margin-top:18px}.folio-content a{color:#315849}.folio-content table{font-size:12px}.folio-content th{font-size:9px;color:#82735c;font-weight:500}.folio-content td,.folio-content th{padding:13px 5px;border-color:#b8a48255;white-space:normal;min-width:0;max-width:none}.folio-content td:first-child{width:20px;color:#8b7652}.folio-content td small{display:block;letter-spacing:0;font-size:9px;color:#82735c}.folio-empty{text-align:center;padding:48px 10px 35px}.folio-empty>span{font:40px Georgia,serif;color:#b4a27c}.folio-empty h3{font:italic 20px Georgia,serif;color:#65553c}.folio-empty p{font:13px/1.8 Georgia,serif;color:#857459;max-width:250px;margin:16px auto}
.folio-navigation{display:flex;justify-content:space-between;flex-wrap:nowrap;border-top:1px solid #a48a5f66;padding-top:10px;margin-top:20px}.folio-number{font:12px Georgia,serif;color:#917c59}
.animate-book .chronicle-spread{animation:unfold-volume .65s ease-out}.animate-book .chronicle-sheet{animation:turn-folio .65s ease-out}.chronicle-dust{pointer-events:none;position:absolute;inset:0;overflow:visible}.chronicle-dust i{display:none}.animate-book.is-open .chronicle-dust i{display:block;position:absolute;left:calc(18% + var(--n)*3%);top:38%;width:3px;height:3px;border-radius:50%;background:#dfce9e;animation:chronicle-dust 1s ease-out both;animation-delay:calc(var(--n)*12ms)}
@keyframes unfold-volume{from{opacity:.2;transform:scaleX(.6) rotateY(-12deg)}to{opacity:1;transform:none}}@keyframes turn-folio{from{opacity:.3;transform:rotateY(-35deg)}to{opacity:1;transform:none}}@keyframes chronicle-dust{from{opacity:.7;transform:translate(0,0) scale(1)}to{opacity:0;transform:translate(calc((var(--n) - 9)*8px),-140px) scale(.3)}}
@media(max-width:700px){.chronicle-spread{grid-template-columns:1fr;min-height:540px}.chronicle-frontispiece{display:none}.chronicle-sheet{padding:18px 20px}.folio-content h2{font-size:29px}.chronicle-cover{min-height:450px}.folio-content table{font-size:11px}.chronicle-stage{padding-top:14px!important}}
@media(prefers-reduced-motion:reduce){.chronicle *, .chronicle *:before{animation:none!important;transition:none!important}.chronicle-dust{display:none}.chronicle-cover:hover{transform:rotate(-3deg)}}
.chronicle.turning .chronicle-spread{animation:none}.chronicle.turning .chronicle-dust{display:none}

.country-portrait{display:block;width:96px;height:96px;object-fit:cover;border-radius:16px;border:1px solid var(--mint);margin:16px 0}#globe{box-shadow:inset 0 0 80px #0004;border:1px solid var(--line)}

.coin-thumb{width:28px;height:28px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-right:9px}.table-wrap table{min-width:760px}.table-wrap td:nth-child(3){min-width:130px;overflow-wrap:normal}

#globe{cursor:grab}#globe.dragging{cursor:grabbing}

/* Moon recognition returns alongside the live globe; 3D mounts only on demand. */
.globe-stage{position:relative}.moon-card{position:absolute;top:14px;right:12px;display:flex;align-items:center;gap:12px;max-width:min(280px,65%);padding:12px 15px;text-align:left;background:#0a1720e8;border:1px solid #58737f;border-radius:16px;box-shadow:0 8px 30px #0005}.moon-card small{font-size:9px;letter-spacing:1.4px;color:#b8c9d6}.moon-card strong{display:block;margin-top:5px;font-size:13px;overflow-wrap:anywhere}.moon-card:disabled{opacity:.6;cursor:default}.moon-orb{flex:none;width:46px;height:46px;border-radius:50%;background:#b9bcc1 url('./moon.jpg') center/cover;box-shadow:inset -14px -5px 15px #040911e6,0 0 20px #bccde529}#moon-dialog{width:min(820px,calc(100% - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box;padding:32px;border:1px solid #536879;border-radius:22px;color:#e8f3ef;background:radial-gradient(ellipse at 50% 35%,#1a2b3c,#091118 75%)}#moon-dialog::backdrop{background:#02070bc9;backdrop-filter:blur(5px)}#moon-close{position:absolute;right:14px;top:12px;padding:4px 12px;font-size:24px}#moon-body>h2{padding-right:22px}#moon-scene{height:clamp(240px,45vh,420px);width:100%;position:relative}#moon-scene canvas{display:block;cursor:grab;touch-action:none}#moon-scene canvas:active{cursor:grabbing}.moon-controls{display:flex;gap:8px;flex-wrap:wrap}.moon-controls button{padding:9px 12px;font-size:12px}@media(max-width:600px){.moon-card{top:8px;right:4px;padding:8px;gap:8px;max-width:70%}.moon-orb{width:34px;height:34px}#moon-dialog{padding:25px 18px}.moon-card strong{font-size:11px}}

/* Keep dense records inside their own scroll area on narrow screens. */
.chronicle-sheet,.folio-content,.table-wrap{min-width:0;max-width:100%}.chronicle-spread{min-width:0}.row>div,.row>span{min-width:0;overflow-wrap:anywhere}.table-wrap:focus-visible{outline:3px solid #e8d588;outline-offset:3px}@media(max-width:700px){.chronicle-spread{grid-template-columns:minmax(0,1fr)}.folio-content .table-wrap table{min-width:520px}.folio-top{gap:10px}.folio-navigation button{min-height:44px}}

.revenue-ranges{display:flex;flex-wrap:wrap;gap:8px}.revenue-ranges button{padding:9px 16px;border:1px solid #34515c;border-radius:20px;background:transparent;color:inherit;cursor:pointer}.revenue-ranges button[aria-pressed="true"]{background:#80efc1;color:#081316}.revenue-ranges button:focus-visible{outline:2px solid white;outline-offset:3px}

.coin-address{display:flex;flex-wrap:wrap;gap:10px;align-items:end;max-width:100%;margin:14px 0}.coin-address label{flex:1 1 220px;min-width:0;font-size:13px;color:#afc5cb}.coin-address input{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:12px;border:1px solid #365663;border-radius:8px;background:#08161c;color:#e3f4ee;font:13px ui-monospace,monospace;user-select:text}.coin-address button{min-height:44px;padding:10px 16px;cursor:pointer}.address-status{flex-basis:100%;font-size:13px;color:#83eac3;overflow-wrap:anywhere}.row>div{min-width:0;width:100%}@media(max-width:480px){.coin-address label{flex-basis:100%}.coin-address button{width:100%}}

/* Compact shared navigation, with a touch-friendly drawer on every screen. */
.site-header{display:flex;flex-wrap:nowrap;gap:14px;align-items:center;margin-bottom:0;padding:12px 0 18px;border-bottom:1px solid var(--line)}
.brand-image{display:block;width:220px;max-width:100%;height:auto}.site-header>a{min-width:0;flex:1}.site-header>a img{max-width:100%}
.site-header button{margin:0;min-height:44px;flex-shrink:0}.menu-toggle{padding:10px;background:transparent;border:1px solid var(--line)}
.menu-toggle svg,.site-drawer nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.header-wallet{background:var(--mint);color:#071712;font-size:14px;font-weight:650;padding:11px 15px;border:0}.header-wallet-status{font-size:13px;overflow-wrap:anywhere;margin:8px 0 20px}.header-wallet-status:empty{margin:0 0 24px}
.site-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(320px,86vw);height:100dvh;max-height:100dvh;padding:28px 18px;border:0;border-right:1px solid var(--line);background:#101d25;color:#edf6f4;overflow-y:auto;box-shadow:15px 0 60px #0005;animation:drawer-in .18s ease-out}
.site-drawer::backdrop,.wallet-dialog::backdrop{background:#02070baa;backdrop-filter:blur(3px)}.drawer-brand{display:block;margin:28px 12px 24px}.drawer-brand img{width:225px}
.site-drawer nav{display:flex;flex-direction:column;align-items:stretch;gap:5px}.site-drawer nav a{display:flex;align-items:center;gap:16px;padding:12px 16px;text-decoration:none;color:#bad0d6;border-radius:10px;font-size:15px;min-height:48px}.site-drawer nav a:hover,.site-drawer nav a[aria-current=page]{background:#213b3b;color:var(--mint)}
.dialog-close{position:absolute;right:12px;top:10px;background:transparent;border:0;color:inherit;font-size:26px;padding:3px 12px;margin:0;min-height:44px}.drawer-resources{margin:22px 0;padding:18px 16px;border-top:1px solid var(--line)}.drawer-resources a{display:block;margin:12px 0;text-decoration:none;color:var(--muted)}.drawer-resources a:last-child{color:var(--mint);margin-top:24px}
.menu-open{overflow:hidden}.wallet-dialog{position:fixed;background:#111f28;color:#edf6f4;border:1px solid var(--line);border-radius:20px;padding:32px;max-width:440px;width:calc(100% - 32px)}.wallet-dialog h2{padding-right:25px}.primary-link{display:inline-flex;align-items:center;justify-content:center;background:var(--mint);color:#071712;text-decoration:none;font-weight:650;border-radius:10px;min-height:46px;padding:11px 18px;margin:12px 0}.globe-layout{margin-top:20px}.globe-layout>div{min-width:0}
@keyframes drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(max-width:760px){.site-header{gap:10px}.brand-image{width:185px}.header-wallet{font-size:12px;padding:10px}.menu-toggle{padding:9px}.globe-layout{gap:16px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stats section:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.stats section{padding:16px 12px;min-width:0}.stats small{font-size:10px;letter-spacing:.06em}.stats .metric{font-size:22px}.globe-layout canvas{height:360px}.globe-layout aside{margin-bottom:0}.site-header+ .header-wallet-status+h1{margin-top:18px}}
@media(max-width:380px){.brand-image{width:140px}.site-header{gap:7px}.header-wallet{font-size:11px;padding:9px}.menu-toggle{padding:7px}}
@media(prefers-reduced-motion:reduce){.site-drawer{animation:none}}

/* Keep shared navigation colors independent of launch-form button styles. */
.site-header .menu-toggle{color:var(--mint);background:transparent}.site-header .menu-toggle svg{stroke:var(--mint)}
.fee-split{margin:14px 0 18px}.fee-split p{font-size:14px;margin:0 0 10px}.fee-split-bar{display:flex;overflow:hidden;height:10px;border-radius:6px;gap:2px}.fee-split-bar span:nth-child(1){width:60%;background:#85efc1}.fee-split-bar span:nth-child(2){width:15%;background:#91bcff}.fee-split-bar span:nth-child(3){width:20%;background:#d8baf8}.fee-split-bar span:nth-child(4){width:5%;background:#f3ca7b}.fee-split-legend{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin-top:10px;font-size:12px;line-height:1.5;color:var(--muted)}.fee-split-legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--swatch)}.fee-split-legend strong{color:#edf6f4}

/* Let the globe dashboard use wide desktop displays without stretching forms. */
@media(min-width:1100px){body:has(#globe) main{max-width:1800px;padding-inline:clamp(28px,3vw,56px)}body:has(#globe) .globe-layout{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}}

/* Independent globe and lettering keep the wordmark legible at every size. */
.brand-lockup{display:flex;align-items:center;gap:14px;width:330px;max-width:100%}.site-header .brand-globe,.drawer-brand .brand-globe{width:50px;height:50px;flex:none;object-fit:contain}.brand-lettering{display:block;width:266px;min-width:0;height:auto;overflow:hidden}.drawer-brand .brand-lockup{width:265px;gap:10px}.drawer-brand .brand-globe{width:42px;height:42px}
@media(max-width:760px){.brand-lockup{width:220px;gap:8px}.site-header .brand-globe{width:32px;height:32px}.brand-lettering{flex:1;width:180px}.site-header>a{overflow:hidden}}
@media(max-width:400px){.brand-lockup{gap:5px}.site-header .brand-globe{width:26px;height:26px}}

/* Compact Moon entry; details stay inside the dialog. */
.moon-card{width:64px;height:64px;min-height:44px;padding:6px;max-width:none;border:0;border-radius:50%;background:transparent;box-shadow:none;justify-content:center}.moon-card>span:not(.moon-orb){display:none}.moon-card .moon-orb{width:50px;height:50px}.moon-card:hover{background:#18313b80}.moon-card:focus-visible{outline:2px solid #85efc1;outline-offset:3px}@media(max-width:600px){.moon-card{width:52px;height:52px;top:8px;right:8px;padding:4px}.moon-card .moon-orb{width:42px;height:42px}}

/* Keep both book pages equal and fit the archive table within its page. */
.folio-content .table-wrap table{min-width:0;width:100%;table-layout:fixed}
.folio-content th,.folio-content td{overflow-wrap:anywhere}
.folio-content th:first-child,.folio-content td:first-child{width:2.5em}
