/* CLONE — cell-division design */
:root {
  --bg: #FFFFFF;
  --bg2: #F5F5F3;
  --ink: #0A0A0A;
  --ink2: #3A3A3A;
  --muted: #7A7A76;
  --line: #E7E7E3;
  --line2: #D2D2CC;
  --cell: #0A0A0A;
  --on-cell: #FFFFFF;
  --acc: #D7FF3C;
  --acc-ink: #0A0A0A;
  --dot: #0A0A0A12;
  --hdr: rgba(255, 255, 255, .82);
  --ok: #16A34A;
  --bad: #E0301E;
  --disp: 'Unbounded', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg2: #141414;
  --ink: #F4F4F0;
  --ink2: #CFCFCA;
  --muted: #8C8C86;
  --line: #222220;
  --line2: #34342F;
  --cell: #F4F4F0;
  --on-cell: #0A0A0A;
  --dot: #FFFFFF14;
  --hdr: rgba(10, 10, 10, .82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  transition: background-color .3s, color .3s;
}
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.h-xl, .h-l, h1, h2, h3 { font-family: var(--disp); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.h-xl { font-size: clamp(40px, 7.4vw, 108px); font-weight: 900; text-transform: uppercase; }
.h-l { font-size: clamp(30px, 4.6vw, 64px); font-weight: 900; text-transform: uppercase; }
.hl { background: var(--acc); color: var(--acc-ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: .18em; }
.label { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding: 5px 12px; border: 1px solid var(--line2); border-radius: 99px; background: var(--bg); }
.label.inv { color: #fff; border-color: #ffffff40; background: transparent; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #16A34A80; animation: live 1.8s infinite; vertical-align: middle; }
@keyframes live { 70% { box-shadow: 0 0 0 8px #16A34A00; } 100% { box-shadow: 0 0 0 0 #16A34A00; } }

/* ---------- buttons ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); border-radius: 99px; padding: 13px 24px; background: transparent; color: var(--ink); white-space: nowrap; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .15s, color .15s; }
.b:hover { transform: scale(1.04); }
.b:active { transform: scale(.97); }
.b:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.b-ink { background: var(--ink); color: var(--bg); }
.b-line { background: var(--bg); }
.b-line:hover { background: var(--ink); color: var(--bg); }
.b-acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.b-sm { padding: 8px 16px; font-size: 12px; }
.b-lg { padding: 18px 32px; font-size: 15px; }
.ar { display: inline-block; transition: transform .2s; }
.b:hover .ar { transform: translateX(4px); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line2); background: var(--bg); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: border-color .15s, transform .2s; flex: none; }
.icon-btn:hover { border-color: var(--ink); transform: rotate(-8deg); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn[hidden] { display: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 4vw, 48px); background: var(--hdr); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--disp); font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.brand.small { font-size: 16px; }
.brand-mark { width: 50px; height: 25px; fill: var(--ink); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.brand.small .brand-mark { width: 36px; height: 18px; }
.brand:hover .brand-mark { transform: scaleX(1.14); }
.nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line2); border-radius: 99px; background: var(--bg); }
.nav a { font-family: var(--mono); font-size: 13px; text-decoration: none; padding: 7px 16px; border-radius: 99px; color: var(--ink2); transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--bg2); }
.nav a.on { background: var(--ink); color: var(--bg); }
.hdr-r { display: flex; align-items: center; gap: 8px; }
.ca-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line2); background: var(--bg); border-radius: 99px; padding: 7px 14px 7px 7px; cursor: pointer; font-family: var(--mono); font-size: 12.5px; transition: border-color .15s; }
.ca-pill:hover { border-color: var(--ink); }
.ca-k { background: var(--acc); color: var(--acc-ink); border-radius: 99px; padding: 2px 8px; font-weight: 500; }
.ca-pill.soon .ca-v { color: var(--muted); }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { display: block; width: 14px; height: 2px; background: var(--ink); transition: transform .2s; }
body.sheet-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.sheet-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { display: none; }

/* ---------- hero ---------- */
.view { display: none; }
.view.show { display: block; }
.hero { text-align: center; padding: clamp(36px, 6vw, 80px) 16px 8px; max-width: 1200px; margin: 0 auto; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--ink2); margin: 0 0 22px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink2); max-width: 640px; margin: 26px auto 30px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ca-big { margin: 26px auto 0; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 10px 8px 8px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg); cursor: pointer; font-family: var(--mono); font-size: 13px; transition: border-color .15s; }
.ca-big:hover { border-color: var(--ink); }
.ca-big span { background: var(--ink); color: var(--bg); border-radius: 99px; padding: 4px 10px; flex: none; }
.ca-big b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-big em { font-style: normal; color: var(--muted); padding-right: 6px; flex: none; }
.ca-big.soon b { color: var(--muted); }

/* specimen: dish + stats */
.specimen { display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; gap: clamp(16px, 3vw, 48px); align-items: center; max-width: 1320px; margin: clamp(30px, 5vw, 60px) auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.spec-side { display: flex; flex-direction: column; gap: 48px; }
.spec-r { text-align: right; }
.spec-lab { position: relative; }
.spec-lab span { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line2); margin-bottom: 10px; }
.spec-lab b { font-family: var(--disp); font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.03em; line-height: 1; }
.dish-wrap { position: relative; }
.dish { aspect-ratio: 1; width: 100%; }
.dish svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dish-cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 6px; padding: 0 8%; }
.dish-cap span:first-child { color: var(--ink); }

/* colony svg parts */
.cv-cell { fill: var(--cell); }
.cv-dish { fill: var(--bg); stroke: var(--line2); stroke-width: 1.5; }
.cv-tick { stroke: var(--line2); stroke-width: 1.5; }
.cv-tick.major { stroke: var(--ink2); }
.cv-cross { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.cv-ringbg { fill: none; stroke: var(--line); }
.cv-ring { fill: none; stroke: var(--acc); stroke-linecap: round; transition: stroke-dasharray .4s; }
:root:not([data-theme="dark"]) .cv-ring { filter: drop-shadow(0 0 0 #0A0A0A) drop-shadow(0 0 .6px #0A0A0A); }
.cv-txt { fill: var(--on-cell); font-family: var(--mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cv-pulse { fill: var(--acc); stroke: var(--ink); stroke-width: 1; }
.cv-plus { fill: var(--ink); font-family: var(--disp); font-weight: 900; text-anchor: middle; animation: plus 1.1s ease-out forwards; }
@keyframes plus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-18px); } }
.cv-hit { fill: transparent; cursor: pointer; }
.cv-hit:hover { fill: var(--acc); fill-opacity: .35; }
.cv-orig { transition: transform .14s; transform-box: fill-box; transform-origin: center; }

/* live log strip */
.log { margin: clamp(36px, 5vw, 64px) 0 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--bg); overflow: hidden; white-space: nowrap; }
.log-in { display: inline-flex; animation: scroll 60s linear infinite; }
.log:hover .log-in { animation-play-state: paused; }
.log a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font-family: var(--mono); font-size: 13px; text-decoration: none; border-right: 1px solid var(--line2); }
.log a:hover { background: var(--acc); color: var(--acc-ink); }
.log img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- blocks ---------- */
.block { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px) 40px; }
.block-head { margin-bottom: 44px; }
.block-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.seg { display: flex; padding: 4px; border: 1px solid var(--line2); border-radius: 99px; background: var(--bg); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 13px; padding: 8px 16px; border-radius: 99px; color: var(--ink2); }
.seg button.on { background: var(--ink); color: var(--bg); }

/* phases */
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--bg); }
.phase { padding: 26px 24px 30px; border-right: 1px solid var(--line2); }
.phase:last-child { border-right: 0; }
.ph-art { height: 120px; border-radius: 18px; background: var(--bg2); display: grid; place-items: center; margin-bottom: 22px; }
.ph-art svg { width: 82%; max-width: 200px; height: 100%; fill: var(--cell); overflow: visible; }
.ph-n { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.phase h3 { font-size: 24px; font-weight: 900; text-transform: uppercase; margin: 6px 0 10px; }
.phase p { margin: 0; color: var(--ink2); font-size: 15px; }
.c-breathe { animation: breathe 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scale(1.12); } }
.c-ring { fill: none; stroke: var(--cell); stroke-width: 2.5; }
.c-fill { fill: var(--acc); stroke: var(--cell); stroke-width: 1; animation: fillup 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fillup { 0% { transform: scale(.1); } 80%, 100% { transform: scale(1); } }
.c-split-l { animation: splitL 2.8s ease-in-out infinite; }
.c-split-r { animation: splitR 2.8s ease-in-out infinite; }
@keyframes splitL { 0%, 15% { transform: translateX(0); } 70%, 100% { transform: translateX(-24px); } }
@keyframes splitR { 0%, 15% { transform: translateX(0); } 70%, 100% { transform: translateX(24px); } }
.c-k { animation: 3.2s ease-in-out infinite; }
.k1 { animation-name: k1; } .k2 { animation-name: k2; } .k3 { animation-name: k3; } .k4 { animation-name: k4; }
@keyframes k1 { 0%, 5% { transform: translate(0, 0); } 35%, 100% { transform: translate(-30px, -8px); } }
@keyframes k2 { 0%, 25% { transform: translate(0, 0); } 55%, 100% { transform: translate(30px, -8px); } }
@keyframes k3 { 0%, 45% { transform: translate(0, 0); } 75%, 100% { transform: translate(-16px, 22px); } }
@keyframes k4 { 0%, 60% { transform: translate(0, 0); } 90%, 100% { transform: translate(18px, 22px); } }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.note { border: 1px solid var(--line2); border-radius: 22px; padding: 20px 22px; background: var(--bg); }
.note-k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--bg); border-radius: 99px; padding: 3px 10px; }
.note p { margin: 12px 0 0; color: var(--ink2); font-size: 15px; }
.note b { color: var(--ink); }

/* explore cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { display: block; text-decoration: none; border: 1px solid var(--line2); border-radius: 28px; padding: 18px; background: var(--bg); transition: border-color .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.card h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sym { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mini { margin: 14px 0; aspect-ratio: 16 / 10; background: var(--bg2); border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.mini svg { width: 100%; height: 100%; fill: var(--cell); }
.card-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.card-row b { color: var(--ink); }
.meter { margin-top: 12px; }
.meter-lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.track { height: 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line2); overflow: hidden; }
.track b { display: block; height: 100%; background: var(--acc); border-right: 2px solid var(--ink); border-radius: 99px; transition: width .5s; min-width: 0; }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; background: var(--ink); color: var(--bg); vertical-align: middle; }
.badge.wait { background: var(--acc); color: var(--acc-ink); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line2); border-radius: 28px; color: var(--muted); grid-column: 1 / -1; background: var(--bg); font-family: var(--mono); font-size: 14px; }
.empty svg { width: 90px; height: 45px; fill: var(--cell); display: block; margin: 0 auto 16px; }

/* ranking table */
.tbl-wrap { border: 2px solid var(--ink); border-radius: 28px; overflow: auto; background: var(--bg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover { background: var(--bg2); }
.tbl .rk { font-family: var(--disp); font-weight: 900; font-size: 18px; width: 50px; }
.tbl tr:nth-child(1) .rk span { background: var(--acc); color: var(--acc-ink); border-radius: 99px; padding: 2px 10px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ink); }
.tbl td.empty-td { padding: 0; }
.tbl td.empty-td .empty { border: 0; }

/* colony detail */
.nd-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nd-head > img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); flex: none; }
.nd-head h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line2); background: var(--bg); border-radius: 99px; padding: 6px 12px; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.nd-desc { color: var(--ink2); max-width: 760px; margin: 18px 0 0; }
.nd-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; margin: 26px 0; background: var(--bg); }
.nd-stats div { padding: 18px 20px; border-right: 1px solid var(--line2); }
.nd-stats div:last-child { border-right: 0; }
.nd-stats b { display: block; font-family: var(--disp); font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; }
.nd-stats span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.nd-main { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line2); border-radius: 28px; padding: 22px; background: var(--bg); min-width: 0; }
.panel h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.next-box { background: var(--bg2); border-radius: 18px; padding: 14px 16px; margin-bottom: 8px; }
.next-box p { margin: 10px 0 0; font-size: 14px; color: var(--ink2); }
.clist, .events { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.clist li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.clist .idx { font-family: var(--disp); font-weight: 900; font-size: 13px; width: 44px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--bg2); }
.clist li.orig .idx { background: var(--ink); color: var(--bg); }
.clist .nm { min-width: 0; }
.clist .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clist small { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.events li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.events li > span:last-child { font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; }
.events a { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { display: none; position: relative; margin: 60px clamp(16px, 4vw, 48px) 0; border-radius: 36px; background: #0A0A0A; color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 70px); }
.cta.show { display: block; }
:root[data-theme="dark"] .cta { border: 1px solid var(--line2); }
.cta-in { position: relative; max-width: 620px; }
.cta .h-l { margin-bottom: 30px; }
.cta-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(560px, 60%); opacity: .95; }
.cta-art svg { width: 100%; fill: #fff; overflow: visible; }
.cta-a { animation: ctaL 4s ease-in-out infinite; }
.cta-b { animation: ctaR 4s ease-in-out infinite; }
@keyframes ctaL { 0%, 20% { transform: translateX(0); } 60%, 80% { transform: translateX(-74px); } 100% { transform: translateX(0); } }
@keyframes ctaR { 0%, 20% { transform: translateX(0); } 60%, 80% { transform: translateX(74px); } 100% { transform: translateX(0); } }

/* ---------- footer ---------- */
.foot { max-width: 1320px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 48px; }
.foot-row { display: flex; align-items: center; gap: 12px; }
.foot p { color: var(--muted); font-size: 13px; max-width: 620px; margin: 14px 0 0; }

/* ---------- launch drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: #0A0A0A66; backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-card { width: min(540px, 100%); height: 100%; overflow: auto; background: var(--bg); border-left: 2px solid var(--ink); padding: 26px clamp(18px, 3vw, 32px) 40px; animation: slide .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-top h2 { font-size: 26px; font-weight: 900; text-transform: uppercase; }
.drawer-top .label { margin-bottom: 10px; }
.drawer .muted { margin: 10px 0 20px; font-size: 15px; }
form label { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink2); margin-bottom: 14px; }
form label small { color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: 6px; font: 15px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .15s; }
input:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
input.locked { background: var(--bg2); color: var(--muted); cursor: not-allowed; }
.f-top { display: grid; grid-template-columns: 132px 1fr; gap: 16px; }
.drop { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; background: var(--bg2); margin: 0; }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop span { font-family: var(--mono); font-size: 12px; line-height: 1.3; pointer-events: none; }
.drop span svg { width: 44px; height: 22px; fill: var(--cell); display: block; margin: 0 auto 6px; }
.drop small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bill { border: 2px solid var(--ink); border-radius: 22px; padding: 16px 18px; margin: 6px 0 18px; }
.bill div { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.bill div span { color: var(--ink2); }
.bill b { font-family: var(--mono); font-weight: 500; }
.bill .sum { border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.bill .sum b { background: var(--acc); color: var(--acc-ink); padding: 0 8px; border-radius: 99px; }
.bill p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.bill p b { font-family: var(--sans); font-weight: 700; color: var(--ink); }
.f-actions { display: flex; gap: 10px; }
.f-actions .b { flex: 1; }
.steps { margin-top: 18px; display: grid; gap: 8px; }
.steps > div:not(.success) { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.steps .on { color: var(--ink); }
.steps .on i { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps .done { color: var(--ink); }
.steps .done i { background: var(--acc); border-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; border: 2px solid var(--ink); border-radius: 22px; padding: 22px; margin-top: 8px; background: var(--bg2); }
.success svg { width: 80px; height: 40px; fill: var(--cell); }
.success h3 { font-size: 20px; font-weight: 900; }
.success .btns { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.err { color: var(--bad); font-size: 14px; margin: 14px 0 0; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 13px; padding: 11px 20px; border-radius: 99px; box-shadow: 0 10px 30px -10px #0006; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .specimen { grid-template-columns: 1fr 1fr; }
  .dish-wrap { grid-column: 1 / -1; order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .spec-side { gap: 24px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase:nth-child(2) { border-right: 0; }
  .phase:nth-child(-n+2) { border-bottom: 1px solid var(--line2); }
  .nd-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .ca-pill:not(.wide), .hide-m { display: none; }
  .hdr-r { margin-left: auto; }
  .burger { display: inline-flex; }
  .sheet { position: fixed; top: 66px; left: 12px; right: 12px; z-index: 39; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid var(--ink); border-radius: 26px; background: var(--bg); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  body.sheet-open .sheet { opacity: 1; transform: none; pointer-events: auto; }
  .sheet a { font-family: var(--disp); font-weight: 700; text-transform: uppercase; text-decoration: none; padding: 12px 14px; border-radius: 16px; }
  .sheet a.on { background: var(--bg2); }
  .sheet .ca-pill { justify-content: flex-start; overflow: hidden; }
  .notes { grid-template-columns: 1fr; }
  .nd-stats { grid-template-columns: 1fr 1fr; }
  .nd-stats div:nth-child(2) { border-right: 0; }
  .nd-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line2); }
  .cta-art { opacity: .25; right: -120px; width: 90%; }
}
@media (max-width: 560px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 40px; height: 20px; }
  #walletBtn { display: none; }
  .phases { grid-template-columns: 1fr; }
  .phase { border-right: 0 !important; border-bottom: 1px solid var(--line2); }
  .phase:last-child { border-bottom: 0; }
  .spec-lab b { font-size: 26px; }
  .f-top { grid-template-columns: 1fr; justify-items: center; }
  .f-col { width: 100%; }
  .f-two { grid-template-columns: 1fr; }
  .tbl th:nth-child(5), .tbl td:nth-child(5), .tbl th:nth-child(6), .tbl td:nth-child(6) { display: none; }
  .dish-cap { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
