:root{--paper:#f8f2e7;--ink:#30271e;--muted:#817266;--red:#ad442f;--border:#e4d8c6;--green:#597b43;--white:#fffaf0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{text-decoration:none;color:inherit}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #a34a34;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.06em;line-height:1.04}header{max-width:1380px;margin:auto;padding:17px 32px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border)}.brand{font-size:31px;font-weight:900;letter-spacing:-2px;display:flex;align-items:center;gap:8px;line-height:1}.brand img{width:38px;height:38px;border-radius:50%;object-fit:cover}.brand span{color:var(--red)}nav{display:flex;gap:28px;font-size:13px;font-weight:650;color:#65594d}.head-status,.mode{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:24px;padding:7px 12px;font-size:11px;font-weight:700;background:#fff9ed;white-space:nowrap}.head-status i,.dot{width:7px;height:7px;border-radius:50%;background:#c78d42}.mode.live .dot,.head-status.live i{background:#638b4a;box-shadow:0 0 0 4px #638b4a20}.mode.error .dot,.head-status.error i{background:#ad442f}main{max-width:1380px;margin:auto;padding:0 32px}.intro{display:grid;grid-template-columns:1.45fr 1fr;gap:40px;align-items:center;padding:32px 0 35px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#88725c;display:flex;align-items:center;gap:7px}.mini-icon{color:var(--red);font-size:17px}.intro h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(48px,6.3vw,91px);letter-spacing:-.075em;margin:8px 0 15px}.intro h1 em{color:var(--red);font-weight:500}.intro p{max-width:535px;color:var(--muted);font-size:15px}.intro-actions{display:flex;align-items:center;gap:18px;margin-top:18px}.primary{display:inline-flex;align-items:center;gap:22px;background:#a9422f;border:1px solid #963a28;border-radius:8px;padding:11px 15px;color:#fff8e9;font-weight:700;font-size:13px;transition:transform .2s,background .2s}.primary:hover{transform:translateY(-2px);background:#913b2a}.quiet{font-size:12px;color:var(--muted)}.portrait{position:relative;overflow:hidden;border:1px solid #d6cbb7;border-radius:18px;height:clamp(210px,22vw,310px);background:#c5dba2}.portrait img{width:100%;height:100%;object-fit:cover;object-position:center 55%;display:block}.portrait-caption{position:absolute;left:14px;bottom:14px;background:#fff7e6e8;border:1px solid #fff9;border-radius:9px;padding:9px 13px;backdrop-filter:blur(8px)}.portrait-caption span{display:block;font-size:8px;letter-spacing:.15em;color:#796e5b;font-weight:700}.portrait-caption strong{font-family:Georgia,serif;font-size:20px;letter-spacing:-.06em}.colony-section{padding:24px 0 38px;border-top:1px solid var(--border);scroll-margin-top:12px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-title h2,.about h2{font-family:Georgia,serif;font-size:clamp(34px,4.5vw,58px);font-weight:500;margin-top:7px}.section-description{color:var(--muted);font-size:13px;margin:9px 0 17px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.stats article{padding:13px 15px;background:#fffbf2;border:1px solid var(--border);border-radius:10px;min-width:0}.stats article span,.stats article small{display:block}.stats article span{font-size:9px;letter-spacing:.12em;color:#887564;font-weight:800}.stats strong{display:block;font-size:30px;letter-spacing:-.065em;font-variant-numeric:tabular-nums;line-height:1.13;margin:6px 0 4px}.stats strong.small-value{font-size:22px;letter-spacing:-.045em;line-height:1.55}.stats small{font-size:10px;color:var(--muted)}.colony-shell{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:12px;align-items:stretch}.map-panel,.side-panel{border:1px solid #ded0b8;border-radius:14px;overflow:hidden;background:var(--white)}.map-panel{display:flex;flex-direction:column}.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}.map-label{display:flex;gap:9px;align-items:center}.map-label b,.map-label small{display:block}.map-label b{font-size:13px}.map-label small{font-size:10px;color:var(--muted)}.map-mark{width:34px;height:34px;background:#f0e2c9;color:#9e4e36;border-radius:8px;display:grid;place-items:center;font-size:20px}.map-controls{display:flex;gap:5px}.map-controls button{border:1px solid #ded0ba;background:#fffaf0;color:#5a4738;border-radius:7px;min-width:29px;height:29px;padding:0 6px;font-size:17px;line-height:1}.map-controls button:hover{background:#efdfc5}.map-stage{position:relative;overflow:hidden;min-height:380px;aspect-ratio:1.62;background:#3d2c20;flex:1;isolation:isolate}#colonyCanvas{width:100%;height:100%;position:absolute;inset:0;display:block;touch-action:none;cursor:grab}#colonyCanvas.dragging{cursor:grabbing}.map-overlay{pointer-events:none;position:absolute;top:11px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:800;letter-spacing:.10em;color:#f9e9cc}.map-overlay span{display:inline-flex;align-items:center;gap:5px;background:#35291fc7;border:1px solid #f4d6a839;padding:5px 8px;border-radius:20px}.map-overlay span span{background:none;border:none;padding:0}.map-overlay i{background:#f3be6c;width:6px;height:6px;border-radius:50%}.map-hint{position:absolute;bottom:13px;left:12px;color:#efdfc5;background:#2c231bd1;border-radius:6px;padding:5px 8px;font-size:10px;pointer-events:none}.map-legend{position:absolute;right:12px;bottom:13px;display:flex;gap:10px;font-size:9px;color:#f2e0c3;padding:6px 8px;background:#2c231bd1;border-radius:6px;pointer-events:none}.map-legend span{display:flex;align-items:center;gap:4px}.map-legend i{width:7px;height:7px;border-radius:50%;background:#d36b48}.map-legend i.new{background:#f8d278}.map-legend i.selected{background:#f7f1df;border:2px solid #e8ad60}.map-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;gap:10px;font-size:10px;color:var(--muted)}.map-footer>span{display:flex;gap:6px;align-items:center}.tiny-green{width:6px;height:6px;background:#7d9d65;border-radius:50%;flex:none}.text-btn{border:0;background:none;color:#a34a34;font-size:11px;font-weight:750;padding:3px;white-space:nowrap}.side-panel{display:flex;flex-direction:column}.side-section{padding:15px;border-bottom:1px solid var(--border)}.side-section:last-child{border-bottom:0}.side-section h3{font-size:21px;margin:7px 0 12px;letter-spacing:-.055em}.search-wrap{display:flex;border:1px solid #d8c8b3;border-radius:8px;overflow:hidden;background:#fffdf6}.search-wrap input{min-width:0;flex:1;border:0;background:transparent;padding:9px;font-size:11px;outline:none!important;color:var(--ink)}.search-wrap button{width:36px;border:0;border-left:1px solid var(--border);background:#f3e7d4;font-size:20px;color:#8f4c38}.hint{font-size:10px;color:var(--muted);margin:7px 0 10px;overflow-wrap:anywhere}.soft-btn{border:1px solid #d8c8b3;background:#fffaf0;color:#694b36;border-radius:7px;padding:8px 10px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:5px}.soft-btn:hover{background:#f2e4ce}.identity{min-height:127px}.empty-pass{display:flex;align-items:center;gap:10px;color:var(--muted);margin-top:12px;font-size:12px}.empty-pass>span{font-size:29px;color:#c5ab8e}.passport-top{display:flex;align-items:center;gap:9px;margin:10px 0}.passport-top img{width:45px;height:45px;border-radius:9px;object-fit:cover}.passport-top b{display:block;font-size:16px;letter-spacing:-.04em}.passport-top small{font-size:10px;color:var(--muted)}.passport-wallet{font:10px/1.4 ui-monospace,monospace;overflow-wrap:anywhere;color:#826a53;margin:8px 0}.passport-row{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;margin:5px 0}.passport-row b{color:var(--ink);text-align:right;overflow-wrap:anywhere}.activity{flex:1}.activity-head{display:flex;align-items:center;justify-content:space-between;gap:7px}.tiny-tag{border-radius:5px;background:#f0e0c6;color:#9c6d39;font-size:8px;font-weight:800;padding:3px 6px;letter-spacing:.09em}.feed-item{display:flex;align-items:start;gap:9px;padding:9px 0;border-bottom:1px dashed #e6d9c5;font-size:11px}.feed-item:last-child{border-bottom:0}.feed-item i{background:#b4bd91;border-radius:50%;width:7px;height:7px;margin-top:5px;flex:none}.feed-item b{display:block;font-size:11px;font-weight:700}.feed-item small{display:block;color:var(--muted);font-size:10px}.demo-tools p{font-size:10px;color:var(--muted);margin:6px 0 9px}.demo-tools>div:last-child{display:flex;gap:5px;flex-wrap:wrap}.note{display:flex;gap:8px;align-items:start;margin-top:12px;color:#8a7966;font-size:11px}.how{padding:35px 0;border-top:1px solid var(--border)}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.how-grid article{padding:20px;border:1px solid var(--border);background:#fffbf2;border-radius:13px}.step{color:#987b5c;font-size:10px;letter-spacing:.15em}.step-art{font-size:34px;color:#b24c36;line-height:1.3;margin:10px 0}.how-grid h3{font-size:24px;margin:8px 0}.how-grid p,.about p{font-size:13px;color:var(--muted);line-height:1.7}.about{display:flex;gap:35px;align-items:center;padding:25px;border:1px solid var(--border);border-radius:16px;background:#eee3cf;margin:15px 0 36px}.about img{width:min(28%,230px);border-radius:13px}.about p{max-width:500px;margin:12px 0}.about .soft-btn{margin-top:3px}footer{background:#352a20;color:#f5e8d2;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:20px max(24px,calc((100vw - 1316px)/2));font-size:12px}footer small{color:#c8b9a2;font-size:10px}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:980px){.colony-shell{grid-template-columns:minmax(0,1fr) 255px}.map-stage{min-height:420px;aspect-ratio:1.35}.side-section{padding:12px}.map-legend{gap:5px}.map-hint{display:none}}@media(max-width:760px){header,main{padding-inline:17px}header{flex-wrap:wrap}nav{order:3;width:100%;justify-content:space-between;gap:10px;font-size:12px}.intro{gap:17px;padding:24px 0;grid-template-columns:1fr 1fr}.intro h1{font-size:clamp(34px,7vw,55px)}.intro p{font-size:12px}.intro-actions{flex-wrap:wrap;gap:8px}.portrait{height:200px}.colony-shell{grid-template-columns:1fr}.map-stage{min-height:320px;aspect-ratio:1.45}.side-panel{display:grid;grid-template-columns:1fr 1fr}.side-section{border-right:1px solid var(--border)}.stats{grid-template-columns:repeat(2,1fr)}.how-grid{grid-template-columns:1fr}.about{padding:15px;gap:15px}.about img{width:32%}}@media(max-width:440px){.intro{grid-template-columns:1fr}.portrait{height:220px}.intro h1{font-size:55px}.map-toolbar{padding:8px;gap:5px}.map-controls{gap:3px}.map-controls button{min-width:25px;height:27px}.map-stage{min-height:290px}.map-legend{left:8px;right:auto;bottom:8px}.map-overlay{left:8px;right:8px;top:8px;font-size:8px}.side-panel{grid-template-columns:1fr}.section-title h2{font-size:35px}.mode{padding:5px 8px;font-size:10px}.map-footer{font-size:9px}.about h2{font-size:30px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Colony world: surface greens give way to soil, roots and the underground atlas. */
:root{--paper:#efe5cc;--border:#d9c7aa;--muted:#6d604d;--white:#fff9eb}body{background: url('/terrain.svg'),linear-gradient(180deg,#e1e5c4 0,#e8e8cb 270px,#eee2c9 620px,#e6d3b3 100%);background-size:720px 480px,100% 100%;background-attachment:scroll;overflow-x:clip}header{border-bottom-color:#b9b894}.intro{position:relative;isolation:isolate;padding-block:38px 44px}.intro::before{content:"";position:absolute;z-index:-1;inset:0 -32px;background:radial-gradient(ellipse at 75% 45%,#fff8df75,transparent 65%);pointer-events:none}.intro h1 em{color:#9e3f2a}.portrait{border:3px solid #fff9e6;box-shadow:0 12px 35px #493b2424;height:clamp(245px,27vw,350px)}.portrait img{object-position:center 43%}.colony-section{position:relative;isolation:isolate;padding-top:35px;padding-bottom:38px;border-top:0}.colony-section::before{content:"";position:absolute;z-index:-1;inset:0 -32px;background:linear-gradient(180deg,#8b9870 0 7px,#4a3424 7px,#3c2b21 42%,#34251c 100%);border-radius:24px;box-shadow:inset 0 0 0 1px #6c4a31,0 12px 26px #49341d19}.colony-section::after{content:"";position:absolute;z-index:-1;inset:7px -32px 0;background:url('/terrain.svg');opacity:.7;pointer-events:none}.colony-section>.section-title .eyebrow{color:#c6ad85}.colony-section>.section-title h2{color:#fff3dc}.colony-section>.section-description,.colony-section>.note{color:#dac7ac}.stats article{background:#fff7e6;border-color:#c5a77c;box-shadow:0 3px 8px #23190d25}.map-panel,.side-panel{border-color:#b6996e;box-shadow:0 5px 16px #21170d40}.map-toolbar,.map-footer{background:#faf0dd}.side-panel{background:#fff8e9}.passport-top{padding:10px;border:1px solid #d5c6a8;background:#e8e8cf;border-radius:10px;box-shadow:0 2px 6px #59482d0d}.passport-top img{width:63px;height:63px;object-position:center;border:1px solid #aeb48c;border-radius:7px}.passport-top b{font-size:17px}.passport-wallet{padding:6px;border-radius:5px;background:#f3e8d4}.how{border-top:0;padding-top:46px}.how-grid article{background:#fff7e6;box-shadow:0 4px 14px #573c1710}.about{background:linear-gradient(120deg,#dce1bf,#e7d5b9);border-color:#c8b997}.gallery-section{padding:10px 0 55px;scroll-margin-top:16px}.gallery-intro{max-width:310px;color:var(--muted);font-size:13px;line-height:1.6}.art-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:22px}.art-card{border:1px solid #cbb99d;border-radius:13px;overflow:hidden;background:#fff8e9;box-shadow:0 5px 16px #48321814;transition:transform .2s,box-shadow .2s}.art-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px #48321824}.art-open{position:relative;display:block;width:100%;padding:0;border:0;background:#c9b991;overflow:hidden}.art-open img{display:block;width:100%;aspect-ratio:1;object-fit:cover;transition:transform .35s}.art-open:hover img{transform:scale(1.035)}.art-expand{position:absolute;right:10px;top:10px;border-radius:50%;background:#fff8e9e8;width:30px;height:30px;display:grid;place-items:center;font-size:17px;color:#523d29;box-shadow:0 2px 9px #0002}.art-meta{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:7px}.art-meta small{display:block;color:#867153;font-weight:700;font-size:9px;letter-spacing:.07em;text-transform:uppercase}.art-meta h3{margin-top:5px;font-size:17px;letter-spacing:-.04em}.art-meta>a{flex:none;width:29px;height:29px;display:grid;place-items:center;border:1px solid #d9c6a5;border-radius:7px;color:#7a4b32;font-weight:800}.art-meta>a:hover{background:#f0e2c6}.art-dialog{padding:0;border:1px solid #b59c76;border-radius:14px;background:#fff8e9;color:#30271e;width:min(90vw,640px);max-height:90vh;overflow:auto;box-shadow:0 25px 100px #1b150f99}.art-dialog::backdrop{background:#21170dc9;backdrop-filter:blur(4px)}.dialog-bar,.dialog-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 15px}.dialog-bar button{border:0;background:none;font-size:24px;color:inherit;line-height:1}.art-dialog>img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#e3d3b3}.dialog-foot{justify-content:flex-end}@media(max-width:980px){.art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.colony-section::before,.colony-section::after{inset-inline:-9px;border-radius:16px}.intro::before{inset-inline:-17px}.gallery-section .section-title{align-items:flex-start;flex-direction:column;gap:9px}.art-grid{gap:10px}.art-meta h3{font-size:14px}.art-meta small{font-size:8px}.art-meta{padding:9px}.portrait{height:240px}}@media(max-width:440px){nav{flex-wrap:wrap;justify-content:space-between;column-gap:8px;font-size:11px}.portrait{height:270px}.art-meta>a{width:24px;height:24px}}

.ca-bar{display:flex;align-items:center;justify-content:center;gap:12px;width:fit-content;max-width:calc(100% - 24px);margin:16px auto 0;padding:9px 14px;border:1px solid #d5c7b1;background:#fff9ed;border-radius:12px;color:#433b30;box-sizing:border-box}.ca-bar code{font-size:12px;overflow-wrap:anywhere;user-select:all;min-width:0}.ca-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:#9e4b32}.ca-bar button{border:0;border-radius:7px;background:#a94930;color:white;padding:7px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0}@media(max-width:600px){.ca-bar{gap:7px;padding:8px}.ca-bar code{font-size:10px}.ca-bar button{padding:7px 9px}}
