:root {
    --bg: #08080a;
    --panel: #111116;
    --panel2: #17171e;
    --ink: #f0eadf;
    --muted: #aaa5af;
    --purple: #8a2be2;
    --purple2: #b245ff;
    --green: #a7c928;
    --line: #2b2a33;
    --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(138,43,226,.10), transparent 30%),
        var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8,8,10,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 900; letter-spacing: .5px; }
.brand-mark {
    width: 38px; height: 38px; border: 2px solid var(--purple2);
    color: var(--purple2); display: grid; place-items: center; border-radius: 50%;
    font-size: 12px; box-shadow: 0 0 20px rgba(178,69,255,.2);
}
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { text-decoration: none; font-size: 13px; font-weight: 900; letter-spacing: 1px; color: #c9c5ce; }
.site-nav a:hover, .site-nav a.active { color: var(--purple2); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); color: white; padding: 8px 12px; font-size: 22px; }
.launch-strip {
    text-align: center; padding: 8px 14px; background: var(--purple);
    color: white; font-size: 12px; letter-spacing: 1.2px; overflow-wrap: anywhere;
}
.hero { position: relative; min-height: 630px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,8,.94) 0%, rgba(6,6,8,.68) 40%, rgba(6,6,8,.15) 75%, rgba(6,6,8,.42)); }
.hero-content { position: relative; z-index: 2; padding: 70px 0; }
.hero-content h1, .page-hero h1 {
    margin: 10px 0 18px; font-size: clamp(48px, 8vw, 98px); line-height: .88;
    letter-spacing: -4px; max-width: 760px; text-transform: uppercase;
}
.hero-content h1 span, .page-hero h1 span { color: var(--purple2); }
.hero-content p { max-width: 620px; font-size: 20px; color: #d9d5dc; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    padding: 0 20px; text-decoration: none; border: 1px solid var(--line);
    font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.btn.primary { background: var(--purple); border-color: var(--purple); color: white; }
.btn.primary:hover { background: var(--purple2); }
.btn.ghost:hover { border-color: var(--purple2); color: var(--purple2); }
.section { padding: 86px 0; }
.dark-panel { background: var(--panel); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 58px; align-items: start; }
h2 { margin: 10px 0 20px; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -2px; text-transform: uppercase; }
h3 { font-size: 24px; margin: 12px 0; }
.lead { color: #c8c3cc; font-size: 18px; }
.quote-card { border: 1px solid var(--line); background: var(--panel); padding: 34px; transform: rotate(-1deg); }
.quote-card blockquote { margin: 18px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.scribble { color: var(--purple2); font-weight: 900; letter-spacing: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.text-link { color: var(--purple2); text-decoration: none; font-weight: 900; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 26px; border: 1px solid var(--line); background: #0d0d11; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card span, .token-sheet span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; }
.stat-card strong { font-size: 26px; color: var(--ink); overflow-wrap: anywhere; }
.stat-card strong.small-value { font-size: 16px; }
.x-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: start; }
.x-frame { border: 1px solid var(--line); background: #0d0d11; padding: 18px; min-height: 560px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.roadmap-grid.compact { grid-template-columns: repeat(4, 1fr); }
.chaos-card { padding: 30px; border: 1px solid var(--line); background: #0d0d11; position: relative; overflow: hidden; }
.chaos-card::after { content: "XX"; position: absolute; right: -12px; bottom: -22px; font-weight: 900; font-size: 74px; color: rgba(138,43,226,.08); transform: rotate(-12deg); }
.status { display: inline-block; padding: 5px 8px; border: 1px solid var(--green); color: var(--green); font-size: 10px; letter-spacing: 1px; font-weight: 900; text-transform: uppercase; }
.chaos-card p { color: var(--muted); }
.manifesto { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; }
.manifesto img { max-height: 620px; width: 100%; object-fit: contain; filter: drop-shadow(0 0 35px rgba(138,43,226,.15)); }
.risk { border-top: 1px solid #4a1d1d; background: linear-gradient(180deg, rgba(70,12,18,.18), transparent); }
.risk p { max-width: 900px; color: #c9c3c8; }
.page-hero { padding: 100px 0 75px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(138,43,226,.15), transparent 30%); }
.page-hero p { max-width: 760px; color: #c8c3cc; font-size: 19px; }
.document-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.doc-nav { position: sticky; top: 110px; border: 1px solid var(--line); background: var(--panel); padding: 22px; }
.doc-nav strong { color: var(--green); font-size: 11px; letter-spacing: 1.5px; }
.doc-nav a { display: block; padding: 9px 0; color: #aaa5af; text-decoration: none; font-size: 12px; border-bottom: 1px solid #202028; }
.doc-nav a:hover { color: var(--purple2); }
.doc-section { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.doc-num { color: var(--purple2); font-weight: 900; font-size: 20px; }
.doc-section h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 0; }
.doc-copy { color: #c9c4cc; font-size: 17px; }
.center-copy { max-width: 850px; text-align: center; }
.token-sheet { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.token-sheet > div { min-height: 110px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.token-sheet > div.full { grid-column: 1 / -1; }
.token-sheet strong { font-size: 24px; overflow-wrap: anywhere; }
.token-actions { margin-top: 26px; }
.site-footer { border-top: 1px solid var(--line); background: #050506; padding: 55px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #bbb6bf; text-decoration: none; }
.footer-grid a:hover { color: var(--purple2); }
.footer-brand { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 13px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #77727d; font-size: 12px; }

.admin-body { background: #0a0a0d; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: #0e0e13; border-right: 1px solid var(--line); padding: 28px 18px; }
.admin-nav .brand { margin-bottom: 30px; }
.admin-nav a { display: block; padding: 10px 12px; color: #c8c3cc; text-decoration: none; border-radius: 6px; }
.admin-nav a:hover, .admin-nav a.active { background: #191922; color: var(--purple2); }
.admin-main { padding: 36px; }
.admin-card { border: 1px solid var(--line); background: var(--panel); padding: 24px; margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-card h2 { font-size: 28px; }
label { display: block; font-size: 12px; font-weight: 900; letter-spacing: .8px; margin: 14px 0 7px; color: #c9c4cc; }
input[type=text], input[type=password], input[type=url], input[type=number], textarea, select {
    width: 100%; padding: 12px 13px; background: #0b0b0f; color: white; border: 1px solid #33323c; border-radius: 5px;
}
textarea { min-height: 140px; resize: vertical; }
.admin-button { background: var(--purple); color: white; border: 0; padding: 12px 18px; font-weight: 900; cursor: pointer; }
.admin-button.danger { background: #7b1e2b; }
.notice { border: 1px solid #3b713f; background: #112215; padding: 12px 14px; margin-bottom: 18px; }
.error { border-color: #7b1e2b; background: #241014; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(440px, 100%); border: 1px solid var(--line); background: var(--panel); padding: 30px; }
.login-card h1 { margin-top: 12px; }
.media-preview { max-width: 480px; max-height: 230px; object-fit: contain; border: 1px solid var(--line); background: #08080a; margin: 12px 0; }

@media (max-width: 900px) {
    .stat-grid, .roadmap-grid.compact { grid-template-columns: repeat(2, 1fr); }
    .split, .x-grid, .manifesto, .document-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .wrap { width: min(100% - 28px, var(--max)); }
    .menu-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        padding: 18px 22px 24px; background: #0b0b0f; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start;
    }
    .site-nav.open { display: flex; }
    .hero { min-height: 690px; align-items: end; }
    .hero-art img { object-position: center 20%; opacity: .66; }
    .hero-overlay { background: linear-gradient(180deg, rgba(6,6,8,.05), rgba(6,6,8,.45) 40%, rgba(6,6,8,.98) 72%); }
    .hero-content { padding: 330px 0 44px; }
    .hero-content h1, .page-hero h1 { letter-spacing: -2px; }
    .hero-content p { font-size: 17px; }
    .section { padding: 62px 0; }
    .stat-grid, .roadmap-grid, .roadmap-grid.compact, .token-sheet, .footer-grid { grid-template-columns: 1fr; }
    .token-sheet > div.full { grid-column: auto; }
    .section-head { align-items: start; flex-direction: column; }
    .doc-section { grid-template-columns: 1fr; gap: 8px; }
    .manifesto img { max-height: 420px; }
    .admin-main { padding: 22px 14px; }
}

.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-card {
    border: 1px solid var(--line); background: var(--panel); padding: 28px;
    min-height: 310px; display: flex; flex-direction: column; align-items: flex-start;
}
.doc-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-category { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.doc-card h2 { font-size: 32px; margin: 18px 0 14px; }
.doc-card p { color: #c8c3cc; flex: 1; }
.doc-coming {
    display: inline-flex; padding: 12px 16px; border: 1px dashed var(--line);
    color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 1px;
}
@media (max-width: 720px) {
    .docs-grid { grid-template-columns: 1fr; }
}

.lore-hero { background:
    radial-gradient(circle at 78% 10%, rgba(138,43,226,.22), transparent 30%),
    radial-gradient(circle at 20% 70%, rgba(167,201,40,.08), transparent 25%),
    var(--bg);
}
.lore-list { display:flex; flex-direction:column; gap:28px; }
.lore-entry {
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:34px;
    border:1px solid var(--line);
    background:var(--panel);
    padding:28px;
    align-items:start;
}
.lore-entry-copy { position:sticky; top:120px; }
.lore-kicker {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:var(--green);
    font-size:11px;
    font-weight:900;
    letter-spacing:1.4px;
    text-transform:uppercase;
}
.lore-kicker time { color:var(--muted); letter-spacing:.4px; }
.lore-entry h2 { margin-top:14px; }
.lore-embed-shell {
    min-height:220px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    border-left:1px solid var(--line);
    padding-left:22px;
}
.lore-embed-shell .twitter-tweet { width:100%!important; }
.home-lore-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.home-lore-card {
    border:1px solid var(--line);
    background:#0d0d11;
    padding:24px;
    min-height:230px;
    display:flex;
    flex-direction:column;
}
.home-lore-card h3 { font-size:26px; text-transform:uppercase; line-height:1.05; }
.home-lore-card p { color:var(--muted); flex:1; }
.lore-empty {
    border:1px dashed var(--line);
    background:var(--panel);
    padding:34px;
}
.lore-empty.compact { padding:22px; }
@media (max-width:900px) {
    .lore-entry { grid-template-columns:1fr; }
    .lore-entry-copy { position:static; }
    .lore-embed-shell { border-left:0; border-top:1px solid var(--line); padding-left:0; padding-top:22px; }
    .home-lore-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:720px) {
    .home-lore-grid { grid-template-columns:1fr; }
    .lore-entry { padding:20px; }
}

.fresh-chaos-shell {
    border-top:1px solid var(--line);
    padding-top:28px;
}
.fresh-chaos-shell.has-note {
    display:grid;
    grid-template-columns:minmax(220px,.6fr) minmax(0,1.4fr);
    gap:36px;
    align-items:start;
}
.fresh-chaos-shell.no-note {
    display:block;
}
.fresh-chaos-note {
    position:sticky;
    top:112px;
    align-self:start;
    padding:4px 0 18px;
}
.fresh-chaos-note-mark {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid var(--purple2);
    color:var(--purple2);
    border-radius:50%;
    font-size:12px;
    font-weight:900;
    margin-bottom:16px;
}
.fresh-chaos-note p {
    color:var(--muted);
    font-size:17px;
    line-height:1.55;
    margin:12px 0 22px;
    max-width:360px;
}
.fresh-chaos-embed {
    min-width:0;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}
.fresh-chaos-shell.no-note .fresh-chaos-embed {
    max-width:760px;
    margin:0 auto;
}
.fresh-chaos-embed .twitter-tweet {
    width:100%!important;
    margin-top:0!important;
}
.fresh-chaos-actions {
    display:flex;
    justify-content:center;
    margin-top:16px;
}
.fresh-chaos-empty {
    border:1px dashed var(--line);
    background:var(--panel);
    padding:34px;
}
.fresh-chaos-empty h3 {
    font-size:30px;
    margin:10px 0;
    text-transform:uppercase;
}
.fresh-chaos-empty p { color:var(--muted); }
@media (max-width:900px) {
    .fresh-chaos-shell.has-note {
        grid-template-columns:1fr;
        gap:22px;
    }
    .fresh-chaos-note {
        position:static;
        padding-bottom:0;
    }
    .fresh-chaos-note p {
        max-width:680px;
    }
    .fresh-chaos-embed {
        border-top:1px solid var(--line);
        padding-top:22px;
    }
}
@media (max-width:720px) {
    .fresh-chaos-shell { padding-top:20px; }
    .fresh-chaos-note-mark {
        width:36px;
        height:36px;
    }
}

.art-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(138,43,226,.22), transparent 32%),
        radial-gradient(circle at 18% 80%, rgba(167,201,40,.07), transparent 28%),
        var(--bg);
}
.art-grid {
    display:grid;
    gap:22px;
    align-items:start;
}
.art-grid.one {
    grid-template-columns:minmax(0, 820px);
    justify-content:center;
}
.art-grid.two {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    max-width:1040px;
    margin:0 auto;
}
.art-grid.many {
    grid-template-columns:repeat(3, minmax(0, 1fr));
}
.art-card {
    border:1px solid var(--line);
    background:var(--panel);
    overflow:hidden;
    min-width:0;
}
.art-grid.one .art-card {
    display:grid;
    grid-template-columns:minmax(0, 1.35fr) minmax(260px, .65fr);
    min-height:520px;
}
.art-open {
    width:100%;
    padding:0;
    border:0;
    background:#08080a;
    cursor:zoom-in;
    display:block;
    min-width:0;
}
.art-grid.one .art-open {
    height:100%;
}
.art-open img {
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    transition:transform .2s ease, opacity .2s ease;
}
.art-grid.one .art-open img {
    height:100%;
    aspect-ratio:auto;
    object-fit:contain;
    background:#070709;
}
.art-open:hover img {
    transform:scale(1.018);
    opacity:.94;
}
.art-card-copy {
    padding:22px;
}
.art-grid.one .art-card-copy {
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:34px;
    border-left:1px solid var(--line);
}
.art-meta {
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:var(--green);
    font-size:10px;
    font-weight:900;
    letter-spacing:1.1px;
}
.art-card h3 {
    text-transform:uppercase;
    font-size:24px;
    line-height:1.05;
}
.art-grid.one .art-card h3 {
    font-size:clamp(34px, 4vw, 54px);
    margin:18px 0;
}
.art-card p {
    color:var(--muted);
}
.art-grid.one .art-card p {
    font-size:17px;
    line-height:1.6;
}
.art-empty {
    border:1px dashed var(--line);
    padding:34px;
    background:var(--panel);
}
.art-lightbox {
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(3,3,5,.94);
}
.art-lightbox.open { display:flex; }
.art-lightbox-inner {
    width:min(1100px,100%);
    max-height:92vh;
    overflow:auto;
    border:1px solid var(--line);
    background:#0a0a0d;
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);
}
.art-lightbox-inner img {
    width:100%;
    max-height:88vh;
    object-fit:contain;
    background:#050506;
}
.art-lightbox-copy { padding:28px; }
.art-lightbox-copy h2 { font-size:32px; }
.art-lightbox-copy p { color:var(--muted); }
.art-protection-note {
    margin-top:24px;
    padding-top:14px;
    border-top:1px solid var(--line);
    color:var(--green);
    font-size:11px;
    font-weight:900;
    letter-spacing:1px;
}
.art-lightbox-close {
    position:fixed;
    top:18px;
    right:24px;
    z-index:1001;
    width:44px;
    height:44px;
    border:1px solid var(--line);
    background:#0c0c10;
    color:white;
    font-size:28px;
    cursor:pointer;
}
.admin-art-row {
    display:grid;
    grid-template-columns:220px 1fr;
    gap:22px;
    align-items:center;
}
@media (max-width:1050px) {
    .art-grid.many {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}
@media (max-width:900px) {
    .art-grid.one .art-card {
        grid-template-columns:1fr;
        min-height:0;
    }
    .art-grid.one .art-card-copy {
        border-left:0;
        border-top:1px solid var(--line);
    }
    .art-grid.two,
    .art-grid.many {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .art-lightbox-inner { grid-template-columns:1fr; }
}
@media (max-width:720px) {
    .art-grid.one,
    .art-grid.two,
    .art-grid.many {
        grid-template-columns:1fr;
    }
    .art-grid.one .art-card-copy {
        padding:24px;
    }
    .admin-art-row { grid-template-columns:1fr; }
}
