/* TOKENCITY: a drawing sheet. Cream table, ink hairlines, square mono caps, one coral accent.
   Panels share borders and carry no radius or shadow (brand/STYLE.md). */
:root {
  --page: #ede6d6; --card: #f4efe5; --shade: #dbcab5; --ink: #2a2420; --muted: #6e6964;
  --coral: #e5643f; --terra: #bf5c40; --sand: #d4ac7f; --park: #92906a; --water: #d5d0c1;
  --line: 1.5px solid var(--ink); --hair: 1px solid rgba(42, 36, 32, .22);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 2.4vw, 28px); --max: 1440px; --bar: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
::selection { background: var(--coral); color: var(--page); }
.hide { display: none !important; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--coral); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: var(--line); background: var(--coral); border-color: var(--coral); color: var(--page); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 0; white-space: nowrap; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--shade); border-color: var(--shade); color: var(--muted); cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--page); }
.btn.ink { background: var(--ink); border-color: var(--ink); }
.btn.ink:hover { background: var(--coral); border-color: var(--coral); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
.btn.block { display: flex; width: 100%; }
.btn.on { background: var(--ink); border-color: var(--ink); color: var(--page); }
.ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.ib:hover { background: var(--ink); color: var(--page); }
.ib img { width: 18px; height: 18px; }
.ib:hover img { filter: invert(1) sepia(.2); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: var(--line); }
.bar-in { max-width: var(--max); margin: 0 auto; height: var(--bar); display: flex; align-items: center; gap: 22px; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--sans); letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
.nav a { display: flex; align-items: center; padding: 0 16px; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-left: var(--hair); }
.nav a:last-of-type { border-right: var(--hair); }
.nav a:hover { background: var(--card); }
.nav a.on { background: var(--ink); color: var(--page); }
.nav .nav-cta { display: none; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.socials { display: inline-flex; gap: 6px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: var(--line); background: var(--card); font: 500 11px/1 var(--mono); letter-spacing: .06em; cursor: pointer; }
.ca b { font-weight: 700; }
.ca em { font-style: normal; color: var(--coral); text-transform: uppercase; }
.ca.off { cursor: default; color: var(--muted); border-color: var(--shade); }
.ca.off b { color: var(--ink); }
.wallet { min-width: 108px; }
.burger { display: none; }

/* ---------- page frame ---------- */
#view { outline: none; min-height: calc(100vh - var(--bar)); }
.page-in { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
[data-fade] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-fade].is-in { opacity: 1; transform: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.doc { max-width: 1240px; margin: 0 auto; padding: 36px var(--pad) 64px; }
.crumb { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(34px, 4.6vw, 60px); }
h2 { font-size: clamp(22px, 2.2vw, 30px); }
.lede { max-width: 62ch; margin: 12px 0 0; font: 400 14px/1.6 var(--mono); color: var(--muted); }
.kicker { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card { border: var(--line); background: var(--card); }

/* ---------- panels: hairline boxes that share borders ---------- */
.panel { border: var(--line); background: var(--page); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-bottom: var(--line); font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.panel-h .grow { flex: 1; }
.panel-b { padding: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); display: inline-block; }
.dot.live { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- the 3D stage and its map furniture ---------- */
.stage { position: relative; overflow: hidden; background: var(--page); border-bottom: var(--line); touch-action: none; user-select: none; }
.stage canvas.c3 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.stage canvas.c3:active { cursor: grabbing; }
.c3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.c3-labels > * { position: absolute; left: 0; top: 0; will-change: transform; }
.north { position: absolute; top: 18px; right: 22px; z-index: 3; display: grid; justify-items: center; gap: 2px; font: 700 13px/1 var(--mono); pointer-events: none; }
.north svg { width: 26px; height: 34px; }
.scale { position: absolute; right: 22px; bottom: 18px; z-index: 3; pointer-events: none; font: 500 10px/1 var(--mono); letter-spacing: .06em; }
.scale i { display: flex; width: 150px; height: 7px; border: var(--line); margin-bottom: 5px; }
.scale i::before, .scale i::after { content: ""; flex: 1; }
.scale i::before { background: var(--ink); }
.scale span { display: flex; justify-content: space-between; width: 158px; margin-left: -4px; }
.tools { position: absolute; z-index: 3; display: flex; flex-direction: column; border: var(--line); background: var(--page); }
.tools button { width: 36px; height: 36px; border: 0; border-bottom: var(--hair); background: transparent; cursor: pointer; font: 700 15px/1 var(--mono); display: grid; place-items: center; }
.tools button:last-child { border-bottom: 0; }
.tools button:hover { background: var(--ink); color: var(--page); }
.ptag { display: flex; flex-direction: column; align-items: center; transition: opacity .2s; }
.ptag b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; border: var(--line); background: var(--page); font: 700 11px/1 var(--mono); }
.ptag i { width: 1.5px; height: 26px; background: var(--ink); }
.ptag.coral b { background: var(--coral); border-color: var(--coral); color: var(--page); }
.ptag.coral i { background: var(--coral); }
.ptag em { position: absolute; bottom: calc(100% + 4px); white-space: nowrap; padding: 3px 7px; background: var(--ink); color: var(--page); font: 500 10px/1.2 var(--mono); font-style: normal; letter-spacing: .04em; }
.hovtip { position: absolute; z-index: 4; pointer-events: none; padding: 7px 10px; border: var(--line); background: var(--page); font: 500 11px/1.4 var(--mono); white-space: nowrap; transform: translate(14px, 14px); }
.hovtip b { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stage-hint { position: absolute; left: 22px; bottom: 18px; z-index: 3; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

/* ---------- home hero ---------- */
.hero { position: relative; }
.hero .stage { height: clamp(520px, 74vh, 760px); }
.hero-card { position: absolute; z-index: 3; left: var(--pad); top: 36px; width: min(440px, calc(100% - 2 * var(--pad))); border: var(--line); background: var(--page); padding: 26px 26px 24px; }
.hero-card h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 900; }
.hero-card p { margin: 14px 0 20px; font: 400 13px/1.65 var(--mono); color: var(--ink); }
.hero-card .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cap { position: absolute; z-index: 3; left: var(--pad); bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: var(--line); background: var(--page); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.hero-cap:hover { background: var(--ink); color: var(--page); }
.hero .tools { right: 22px; top: 76px; }
.hero .stage-hint { left: auto; right: 22px; bottom: 46px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--line); background: var(--page); }
.strip > div { display: flex; flex-direction: column; gap: 6px; padding: 16px var(--pad); border-right: var(--line); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip small { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.strip b { font: 800 22px/1.05 var(--sans); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip b.c { color: var(--coral); }

/* ---------- home lower sheet ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); max-width: var(--max); margin: 28px auto 0; padding: 0 var(--pad); }
.sheet > .panel + .panel { border-left: 0; }
.find { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: var(--line); background: var(--card); min-width: 0; flex: 0 1 260px; }
.find input { border: 0; background: transparent; outline: 0; width: 100%; font: 500 12px/1 var(--mono); }
.seg { display: inline-flex; border: var(--line); }
.seg button { height: 31px; padding: 0 12px; border: 0; background: transparent; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.seg button + button { border-left: var(--line); }
.seg button.on { background: var(--ink); color: var(--page); }

/* ruled schedule */
.sched { width: 100%; border-collapse: collapse; font: 500 13px/1.3 var(--mono); }
.sched th { text-align: left; padding: 10px 12px; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: var(--line); border-right: var(--hair); white-space: nowrap; }
.sched td { padding: 10px 12px; border-bottom: var(--hair); border-right: var(--hair); vertical-align: middle; white-space: nowrap; }
.sched th:last-child, .sched td:last-child { border-right: 0; }
.sched tr:last-child td { border-bottom: 0; }
.sched tbody tr { cursor: pointer; }
.sched tbody tr:hover td { background: var(--card); }
.sched .no { width: 52px; color: var(--muted); }
.sched .num { text-align: right; font-variant-numeric: tabular-nums; }
.city-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.city-cell b { font: 800 15px/1.1 var(--sans); letter-spacing: -.02em; }
.city-cell small { display: block; color: var(--muted); font-size: 11px; }
.frame { flex: none; width: 36px; height: 36px; border: var(--line); background: var(--card); display: grid; place-items: center; overflow: hidden; font: 700 11px/1 var(--mono); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.lg { width: 76px; height: 76px; font-size: 18px; }
.tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: var(--line); font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tier.t0 { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.tier.t5 { background: var(--coral); border-color: var(--coral); color: var(--page); }
.tier.t4 { background: var(--ink); color: var(--page); }
.bar-meter { display: inline-block; width: 64px; height: 7px; border: 1px solid var(--ink); vertical-align: middle; margin-right: 8px; position: relative; }
.bar-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--terra); }
.reg-more { padding: 12px 16px; border-top: var(--line); font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.reg-scroll { overflow-x: auto; }

/* live builds feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: var(--hair); font: 500 12px/1.45 var(--mono); }
.feed li:last-child { border-bottom: 0; }
.feed li.new { animation: arrive 1.2s ease; }
@keyframes arrive { from { background: rgba(229, 100, 63, .18); } to { background: transparent; } }
.feed .k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px; border: var(--line); font: 700 10px/1 var(--mono); }
.feed .k.c { background: var(--coral); border-color: var(--coral); color: var(--page); }
.feed b { font-weight: 700; }
.feed small { display: block; color: var(--muted); font-size: 11px; }
.feed time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.feed a { text-decoration: none; }
.feed a:hover b { color: var(--coral); }
.empty { display: grid; gap: 8px; justify-items: start; padding: 22px 16px; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.empty b { font: 800 17px/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }

/* how it works */
.how { max-width: var(--max); margin: 56px auto 0; padding: 0 var(--pad); }
.how-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.how-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); }
.steps > div { padding: 22px; border-right: var(--line); }
.steps > div:last-child { border-right: 0; }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 17px; border: var(--line); font: 700 12px/1 var(--mono); margin-bottom: 16px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; font: 400 13px/1.6 var(--mono); color: var(--muted); }
.ladder { width: 100%; border-collapse: collapse; border: var(--line); border-top: 0; font: 500 12px/1.35 var(--mono); }
.ladder td, .ladder th { padding: 11px 14px; border-bottom: var(--hair); border-right: var(--hair); text-align: left; vertical-align: top; }
.ladder th { font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: var(--line); }
.ladder td:last-child, .ladder th:last-child { border-right: 0; }
.ladder tr:last-child td { border-bottom: 0; }
.ladder .tn { font: 800 15px/1 var(--sans); letter-spacing: -.02em; }
.ladder tr.here td { background: var(--card); }
.ladder tr.here .tn { color: var(--coral); }
.ladder tr.locked td { color: var(--muted); }
.fine-print { margin: 14px 0 0; font: 400 12px/1.6 var(--mono); color: var(--muted); max-width: 90ch; }

/* ---------- world page ---------- */
.w-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding: 22px var(--pad); border-bottom: var(--line); }
.w-top h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; }
.w-top .sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }
.w-top .grow { flex: 1; min-width: 200px; }
.w-top .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.w-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; border-bottom: var(--line); }
.w-main .stage { height: calc(100vh - var(--bar) - 112px); min-height: 560px; border-bottom: 0; border-right: var(--line); }
.w-main .tools { right: 22px; top: 76px; }
.w-side { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--bar) - 112px); min-height: 560px; overflow-y: auto; }
.w-side > section { border-bottom: var(--line); }
.w-side > section:last-child { border-bottom: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stats > div { padding: 14px 16px; border-bottom: var(--hair); border-right: var(--hair); min-width: 0; }
.stats > div:nth-child(2n) { border-right: 0; }
.stats small { display: block; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; margin: 6px 0 4px; font: 800 26px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats b.c { color: var(--coral); }
.stats p { margin: 0; font: 400 10.5px/1.45 var(--mono); color: var(--muted); }
.stats .wide { grid-column: 1 / -1; border-right: 0; }
.market-note { padding: 12px 16px; font: 400 11px/1.55 var(--mono); color: var(--muted); }
.state-note { margin: 0; padding: 14px 16px; font: 400 12px/1.6 var(--mono); background: var(--card); border-bottom: var(--hair); }
.state-note b { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; display: block; margin-bottom: 4px; }
.mini-ladder { list-style: none; margin: 0; padding: 0; }
.mini-ladder li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: var(--hair); font: 500 11px/1.35 var(--mono); }
.mini-ladder li:last-child { border-bottom: 0; }
.mini-ladder li .t { font-weight: 700; }
.mini-ladder li em { font-style: normal; color: var(--muted); text-align: right; }
.mini-ladder li.done .t::after { content: " \2713"; }
.mini-ladder li.here { background: var(--card); }
.mini-ladder li.here .t { color: var(--coral); }
.mini-ladder li.locked { color: var(--muted); }

/* build drawer, inside the stage */
.build { position: absolute; z-index: 5; left: 22px; top: 18px; width: min(360px, calc(100% - 44px)); border: var(--line); background: var(--page); }
.build .panel-h button { margin-left: auto; border: 0; background: transparent; cursor: pointer; font: 700 16px/1 var(--mono); }
.build-b { padding: 14px 16px 16px; display: grid; gap: 12px; }
.build .where { font: 500 12px/1.5 var(--mono); color: var(--muted); }
.build .where b { color: var(--ink); }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); border-top: var(--hair); border-left: var(--hair); }
.kinds button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 10px; border: 0; border-right: var(--hair); border-bottom: var(--hair); background: transparent; cursor: pointer; text-align: left; font: 700 12px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.kinds button small { font: 400 10px/1.2 var(--mono); text-transform: none; letter-spacing: 0; color: var(--muted); }
.kinds button:hover:not(:disabled) { background: var(--card); }
.kinds button.on { background: var(--ink); color: var(--page); }
.kinds button.on small { color: var(--shade); }
.kinds button:disabled { cursor: not-allowed; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42, 36, 32, .05) 6px 7px); }
.signrow { display: flex; gap: 8px; align-items: center; }
.signrow input { flex: 1; }
.signrow em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--muted); }
.build .note { margin: 0; font: 400 11px/1.55 var(--mono); color: var(--muted); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 700 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: .04em; text-transform: none; }
input[type=text], input[type=url], input[type=number], input[type=password], input[type=search], input:not([type]), textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: var(--line); border-radius: 0; background: var(--card); font: 500 13px/1.3 var(--mono); outline: 0; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--coral); }
.find input, .signrow input:focus { min-height: 0; }
.find input { padding: 0; border: 0; min-height: 0; }
.status { padding: 11px 13px; border: var(--line); background: var(--card); font: 400 12px/1.55 var(--mono); }
.status.ok { border-color: var(--park); background: #ebe8d9; }
.status.err { border-color: var(--terra); background: #f3e2d6; }
.status .btn { margin-top: 10px; }

/* ---------- launch page ---------- */
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; margin-top: 28px; border: var(--line); }
.pub-form { border-right: var(--line); min-width: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; border-bottom: var(--line); }
.step:last-child { border-bottom: 0; }
.step-n { padding: 20px 0; text-align: center; border-right: var(--line); font: 700 13px/1 var(--mono); }
.step-b { padding: 20px 22px 24px; display: grid; gap: 14px; min-width: 0; }
.step-b h2 { font-size: 24px; }
.sub { margin: -6px 0 0; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.fine { margin: 0; font: 400 11px/1.6 var(--mono); color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1.5px dashed var(--ink); background: var(--card); cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--coral); }
.drop.has { border-style: solid; }
.drop .th { flex: none; width: 64px; height: 64px; border: var(--line); display: grid; place-items: center; font: 700 22px/1 var(--mono); overflow: hidden; background: var(--page); }
.drop .th img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font: 800 15px/1.2 var(--sans); }
.drop small { display: block; margin-top: 4px; font: 400 11px/1.5 var(--mono); color: var(--muted); }
.tick-in { display: flex; align-items: stretch; }
.tick-in i { display: grid; place-items: center; width: 34px; border: var(--line); border-right: 0; font: 700 13px/1 var(--mono); font-style: normal; background: var(--page); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: var(--line); border-left: var(--line); }
.cats button { display: grid; gap: 4px; padding: 12px; text-align: left; border: 0; border-right: var(--line); border-bottom: var(--line); background: var(--page); cursor: pointer; }
.cats button b { font: 800 15px/1.1 var(--sans); letter-spacing: -.02em; }
.cats button span { font: 400 11px/1.4 var(--mono); color: var(--muted); }
.cats button:hover { background: var(--card); }
.cats button.on { background: var(--ink); color: var(--page); }
.cats button.on span { color: var(--shade); }
.lbl { font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border: var(--line); cursor: pointer; padding: 0; }
.swatches button.on { outline: 2.5px solid var(--coral); outline-offset: 3px; }
.devbuy { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.devbuy input { width: 110px; min-height: 34px; padding: 6px 9px; }
.chip { height: 34px; padding: 0 12px; border: var(--line); background: transparent; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.chip.on, .chip:hover { background: var(--ink); color: var(--page); }
.check { display: flex; gap: 14px; flex-wrap: wrap; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check i { width: 12px; height: 12px; border: var(--line); border-color: var(--muted); }
.check .ok { color: var(--ink); }
.check .ok i { background: var(--coral); border-color: var(--coral); }
.pub-side { min-width: 0; background: var(--card); }
.pub-side .sticky { position: sticky; top: calc(var(--bar) + 16px); }
.charter { border-bottom: var(--line); }
.charter-art { position: relative; aspect-ratio: 4 / 3; border-bottom: var(--line); background: var(--page); overflow: hidden; }
.charter-art canvas, .charter-art svg { width: 100%; height: 100%; display: block; }
.charter-art .seal { position: absolute; right: 12px; top: 12px; width: 56px; height: 56px; border: var(--line); background: var(--page); display: grid; place-items: center; overflow: hidden; font: 700 15px/1 var(--mono); }
.charter-art .seal img { width: 100%; height: 100%; object-fit: cover; }
.charter-b { padding: 16px 18px; display: grid; gap: 6px; }
.charter-b h3 { font-size: 26px; overflow-wrap: anywhere; }
.charter-b .tg { font: 400 12px/1.5 var(--mono); color: var(--muted); min-height: 1.5em; }
.charter-meta { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair); margin-top: 8px; }
.charter-meta div { padding: 10px 0; font: 500 11px/1.3 var(--mono); }
.charter-meta small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.charter-meta i { display: inline-block; width: 11px; height: 11px; border: 1px solid var(--ink); vertical-align: -1px; margin-right: 6px; }
.side-h { padding: 12px 18px; border-bottom: var(--line); font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- footer ---------- */
.foot { margin-top: 72px; border-top: var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in nav { display: flex; gap: 20px; flex-wrap: wrap; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.foot-in nav a { text-decoration: none; }
.foot-in nav a:hover { color: var(--coral); }
.foot-in .socials { margin-left: auto; }
.foot-note { max-width: var(--max); margin: 0 auto; padding: 14px var(--pad) 28px; border-top: var(--hair); font: 400 11px/1.6 var(--mono); color: var(--muted); }
.w-page + .foot, .hero-page + .foot { margin-top: 56px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 11px 16px; border: var(--line); background: var(--ink); color: var(--page); font: 500 12px/1.4 var(--mono); max-width: min(560px, 92vw); animation: toastIn .25s ease both; }
.toast.err { background: var(--terra); border-color: var(--terra); }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ca { display: none; }
  .w-main { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: var(--bar); left: 0; right: 0; height: auto; flex-direction: column; background: var(--page); border-bottom: var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 16px var(--pad); border: 0; border-top: var(--hair); }
  .nav .nav-cta { display: flex; color: var(--coral); }
  .burger { display: inline-grid; }
  .bar-end .cta { display: none; }
  .sheet { grid-template-columns: 1fr; }
  .sheet > .panel + .panel { border-left: var(--line); border-top: 0; }
  .w-main { grid-template-columns: 1fr; }
  .w-main .stage { height: 64vh; min-height: 420px; border-right: 0; border-bottom: var(--line); }
  .w-side { max-height: none; min-height: 0; overflow: visible; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-form { border-right: 0; border-bottom: var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: var(--line); }
  .steps > div:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --bar: 58px; }
  .bar-in { gap: 10px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .socials .ib { width: 32px; height: 32px; }
  .wallet { min-width: 0; padding: 0 10px; }
  .hero .stage { height: 700px; }
  .hero-card { top: 14px; padding: 18px; }
  .hero-cap { right: var(--pad); line-height: 1.4; }
  .hero .stage-hint { display: none; }
  .hero-card h1 { font-size: 34px; }
  .hero-card p { font-size: 12px; margin: 10px 0 14px; }
  .hero .tools { top: auto; bottom: 108px; right: 14px; }
  .hero .north { bottom: 108px; }
  .north { top: auto; bottom: 64px; left: 18px; right: auto; }
  .scale { display: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(2) { border-right: 0; }
  .strip > div:nth-child(-n+2) { border-bottom: var(--line); }
  .strip b { font-size: 18px; }
  .sched .hide-s { display: none; }
  .fields { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step-b { padding: 16px; }
  .build { left: 10px; top: 10px; width: calc(100% - 20px); }
  .w-main .tools { top: auto; bottom: 18px; right: 12px; }
  .foot-in .socials { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
