/* NEURON — a brain on a block clock.
   Layout language: deep navy hero, an instrument-panel data section, a
   scroll-lit column of mechanics, and a gradient footer with the wordmark
   sunk into the horizon. */

:root {
  --ink-900: #04080f;
  --ink-800: #060d1a;
  --navy-700: #0a1729;
  --navy-600: #0e2749;
  --blue-500: #13417e;
  --blue-400: #2f6fd0;
  --accent: #2f7bf6;
  --accent-hi: #5a9dff;
  --ice-300: #b9cbe2;
  --ice-200: #d3e0ee;
  --ice-100: #e4ecf5;
  --ice-50: #f1f5fa;
  --paper: #fafcfe;
  --text: #0b1420;
  --text-dim: #5a6a7e;
  --on-dark: #eaf1fa;
  --on-dark-dim: #90a4bf;
  --hair: rgba(120, 160, 210, .22);
  --hair-dark: rgba(10, 25, 45, .12);
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(20px, 4vw, 64px);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink-800);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- shared type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-weight: 400; letter-spacing: -.028em; line-height: 1.03; }
.display { font-size: clamp(44px, 7.4vw, 108px); }
.h2 { font-size: clamp(34px, 5vw, 68px); }
.h3 { font-size: clamp(24px, 2.6vw, 38px); }

.rule { height: 1px; background: var(--hair-dark); border: 0; }

/* ---------- nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  background: rgba(6, 13, 26, .72); backdrop-filter: blur(16px);
  border-bottom-color: var(--hair);
}
#nav.on-light { color: var(--text); }
#nav.on-light.stuck { background: rgba(250, 252, 254, .82); border-bottom-color: var(--hair-dark); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); }
#nav.on-light .brand { color: var(--text); }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 9px 14px; border-radius: 3px;
  color: var(--on-dark); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1); transition: .2s;
}
#nav.on-light .navlinks a { color: var(--text); background: rgba(11, 20, 32, .05); border-color: var(--hair-dark); }
.navlinks a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.navlinks .go {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  background: var(--accent); border-color: var(--accent); color: #fff;
}
@media (max-width: 900px) { .navlinks a:not(.go):not(.keep) { display: none; } }

/* ---------- buttons ---------- */
.cta { display: inline-flex; align-items: stretch; }
.cta > span, .cta > b {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 15px 20px; background: #fff; color: var(--text);
  display: flex; align-items: center; transition: .2s;
}
.cta > i { width: 46px; background: var(--accent); display: grid; place-items: center; color: #fff; transition: .2s; }
.cta:hover > span { background: var(--ice-100); }
.cta:hover > i { background: var(--accent-hi); }
.cta.ghost > span { background: rgba(255, 255, 255, .09); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .18); }
.cta.ghost:hover > span { background: rgba(255, 255, 255, .16); }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 11px 11px 11px 18px; border-radius: 3px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--on-dark); cursor: pointer; transition: .2s;
}
.pill.dark { background: rgba(11, 20, 32, .06); border-color: var(--hair-dark); color: var(--text); }
.pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill svg { width: 15px; height: 15px; }

/* ============================================================ HERO */
#hero { position: relative; min-height: 100svh; background: var(--ink-800); overflow: hidden; display: flex; flex-direction: column; }
#hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 42%, rgba(24, 74, 150, .40), transparent 62%),
    radial-gradient(90% 70% at 8% 12%, rgba(4, 8, 15, .94), transparent 58%),
    linear-gradient(to bottom, rgba(4, 8, 15, .55) 0%, transparent 26%, transparent 52%, rgba(4, 8, 15, .82) 100%);
}
.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + 6vh) var(--gut) 28px;
}
.hero-lead { max-width: 900px; }
.hero-lead h1 { color: #fff; }
.hero-lead h1 em { font-style: normal; color: var(--ice-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }

.hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.listed { color: var(--on-dark-dim); display: flex; align-items: center; gap: 12px; }
.listed .label { color: var(--on-dark-dim); }
.listed b { color: var(--on-dark); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.hero-note { max-width: 430px; color: var(--ice-300); font-size: 16px; margin-top: 18px; }

.livecard {
  width: min(430px, 92vw); background: rgba(8, 18, 34, .66); backdrop-filter: blur(14px);
  border: 1px solid var(--hair); padding: 16px 18px; display: grid; gap: 8px;
}
.livecard .top { display: flex; justify-content: space-between; gap: 16px; color: var(--on-dark-dim); }
.livecard .body { color: var(--on-dark); font-size: 17px; line-height: 1.35; min-height: 2.7em; }
.livecard .body b { color: var(--accent-hi); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.dot.pulse { animation: beat 1.6s infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-actions { margin-top: 26px; }
}

/* ============================================================ light sections */
.light { background: linear-gradient(to bottom, var(--ice-200), var(--paper) 42%, var(--ice-100)); color: var(--text); }
.sec { padding: clamp(70px, 10vw, 140px) var(--gut); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head .label { color: var(--accent); }
.tick-mark { width: 6px; height: 6px; background: var(--accent); display: block; margin-bottom: 20px; }

/* ---------- dashboard: headline | instrument | ladder ---------- */
.dash { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 46px); align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
.dash-lead p { color: var(--text-dim); max-width: 40ch; margin-top: 28px; font-size: 16px; }

.panel-dark {
  background: linear-gradient(165deg, #04080f 0%, #08172c 34%, #16407c 78%, #2f6fd0 100%);
  color: var(--on-dark); padding: 24px; display: grid; gap: 18px; border: 1px solid var(--hair);
}
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stat-row .label { color: var(--on-dark-dim); }
.stat-row b { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
#spark { width: 100%; height: 190px; }
.panel-dark .cta { width: 100%; }
.panel-dark .cta > span { flex: 1; justify-content: center; background: rgba(255, 255, 255, .13); color: #fff; }
.panel-dark .cta:hover > span { background: rgba(255, 255, 255, .22); }

.ladder { display: grid; gap: 14px; }
.rung {
  position: relative; background: linear-gradient(120deg, var(--ice-100), rgba(255, 255, 255, .55));
  border: 1px solid var(--hair-dark); padding: 18px 20px; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.rung .n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; background: var(--ink-800); color: #fff; padding: 4px 9px; align-self: flex-start; }
.rung p { font-size: 17px; max-width: 26ch; position: relative; z-index: 1; }
.rung svg { position: absolute; right: -6px; bottom: -10px; width: 150px; height: 150px; opacity: .30; color: var(--blue-400); }

/* ---------- mechanics: scroll-lit rows ---------- */
.mech { background: linear-gradient(to bottom, #0a1729 0%, #123566 34%, #0d2245 72%, #050b16 100%); color: var(--on-dark); }
.mech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 1000px) { .mech-grid { grid-template-columns: 1fr; } }
.mech-rows { display: grid; gap: clamp(30px, 5vh, 62px); }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); opacity: .26; filter: blur(1.2px); transition: opacity .5s, filter .5s; }
.mrow.lit { opacity: 1; filter: none; }
.mrow .label { color: var(--accent-hi); display: block; margin-bottom: 12px; }
.mrow h3 { color: #fff; }
.mrow p { color: var(--ice-300); font-size: 16px; align-self: center; }
@media (max-width: 620px) { .mrow { grid-template-columns: 1fr; gap: 10px; } }
.mech-art { position: sticky; top: calc(var(--nav-h) + 4vh); }
.mech-art canvas { width: 100%; aspect-ratio: 3 / 4; }
.mech-art .cap { color: var(--on-dark-dim); text-align: center; margin-top: 8px; }

/* ---------- reveal paragraph ---------- */
.reveal-sec { background: linear-gradient(to bottom, #050b16, #0d2a55 40%, #4c7fc4 78%, var(--ice-100)); color: #fff; }
.reveal { font-size: clamp(24px, 3.5vw, 50px); line-height: 1.22; letter-spacing: -.025em; max-width: 36ch; }
.reveal .w { white-space: nowrap; }
.reveal span { transition: color .3s, opacity .3s; }
.reveal span.off { color: rgba(255, 255, 255, .17); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(60px, 9vw, 120px); }
.feature { display: grid; gap: 12px; }
.feature svg { width: 46px; height: 46px; color: var(--accent-hi); }
.feature h4 { font-size: 17px; font-weight: 600; }
.feature p { font-size: 16px; color: rgba(255, 255, 255, .68); }
.reveal-sec .feature h4 { color: #fff; }

/* ============================================================ CONNECTOME (the live thing) */
#connectome { background: var(--ink-900); color: var(--on-dark); padding: clamp(60px, 8vw, 110px) var(--gut) clamp(70px, 9vw, 130px); }
#connectome .sec-head .label { color: var(--accent-hi); }
#connectome h2 { color: #fff; }
.explorer {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 330px; gap: 14px;
  border: 1px solid var(--hair); background: linear-gradient(160deg, #060d1a, #08182e);
  min-height: 640px;
}
@media (max-width: 1200px) { .explorer { grid-template-columns: 240px minmax(0, 1fr); } .explorer .rail-right { grid-column: 1 / -1; } }
@media (max-width: 780px) { .explorer { grid-template-columns: 1fr; } }

.rail { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rail-left { border-right: 1px solid var(--hair); }
.rail-right { border-left: 1px solid var(--hair); }
@media (max-width: 1200px) { .rail-right { border-left: 0; border-top: 1px solid var(--hair); } }
@media (max-width: 780px) { .rail-left { border-right: 0; border-bottom: 1px solid var(--hair); } }
.rail h4 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); }

.stage { position: relative; min-height: 420px; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stage .hint {
  position: absolute; left: 14px; bottom: 12px; color: var(--on-dark-dim);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; pointer-events: none;
}
.stage .mode {
  position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-dim); background: rgba(6, 13, 26, .7); padding: 6px 10px; border: 1px solid var(--hair);
}

.search { display: flex; border: 1px solid var(--hair); background: rgba(0, 0, 0, .3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: 11px 12px; font-size: 15px; color: var(--on-dark); }
.search input:focus { outline: none; }
.search input::placeholder { color: #5d7290; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; padding: 6px 9px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hair); color: var(--on-dark-dim); transition: .15s;
}
.chip:hover, .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.readout { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.readout div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #071223; padding: 9px 12px; }
.readout span { color: var(--on-dark-dim); font-size: 15px; }
.readout b { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent-hi); text-align: right; overflow-wrap: anywhere; }
.readout b a { text-decoration: none; }
.readout b a:hover { text-decoration: underline; }

.bar { height: 6px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width .35s; }
.bar.over i { background: linear-gradient(90deg, #ffb454, #ffd48a); }

.act { display: grid; gap: 8px; }
.act button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 14px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #fff; transition: .18s;
}
.act button:hover:not(:disabled) { background: var(--accent-hi); border-color: var(--accent-hi); }
.act button.ghost { background: rgba(255, 255, 255, .05); border-color: var(--hair); color: var(--on-dark); }
.act button.ghost:hover:not(:disabled) { border-color: var(--accent-hi); color: var(--accent-hi); background: rgba(47, 123, 246, .12); }
.act button:disabled { opacity: .34; cursor: not-allowed; }
.act .split { display: flex; gap: 8px; }
.act .split input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .3); border: 1px solid var(--hair); padding: 10px 12px; font-size: 15px; }
.act .split input:focus { outline: none; border-color: var(--accent); }
.act .split button { width: auto; }

.reflex { font-size: 15px; color: var(--ice-300); line-height: 1.45; min-height: 3em; }
.reflex b { font-family: var(--mono); color: var(--accent-hi); font-weight: 600; margin: 0 3px 0 7px; }
.reflex em { font-style: normal; color: var(--on-dark-dim); }

.feed { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; min-height: 180px; max-height: 340px; padding-right: 4px; }
.feed::-webkit-scrollbar { width: 5px; }
.feed::-webkit-scrollbar-thumb { background: var(--hair); }
.feed .ev { background: rgba(255, 255, 255, .035); border-left: 2px solid var(--on-dark-dim); padding: 7px 11px; font-size: 15px; line-height: 1.35; }
.feed .ev.learn { border-left-color: var(--accent-hi); }
.feed .ev.fire { border-left-color: #ffb454; }
.feed .ev.mine { border-left-color: #7ee0a8; }
.feed .ev.adopt { border-left-color: #fff; }
.feed .ev .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-dim); margin-right: 8px; }
.feed .ev.learn .k { color: var(--accent-hi); }
.feed .ev.fire .k { color: #ffb454; }
.feed .ev.mine .k { color: #7ee0a8; }
.feed .ev .t { float: right; font-family: var(--mono); font-size: 12px; color: #55688a; }

.legend { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-dim); }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 9px; vertical-align: 0px; }

/* ============================================================ activity cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: grid; gap: 12px; }
.card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #04080f 0%, #0c2244 46%, #2f6fd0 100%);
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 20px;
}
.card .thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .thumb .big { position: relative; font-family: var(--mono); font-size: clamp(26px, 3vw, 40px); font-weight: 600; color: #fff; letter-spacing: -.02em; text-align: center; }
.card .thumb .big small { display: block; font-size: 12px; letter-spacing: .14em; color: var(--ice-300); margin-top: 6px; font-weight: 600; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .meta .label { border: 1px solid var(--hair-dark); padding: 4px 8px; color: var(--text-dim); }
.card .meta .when { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--text-dim); background: var(--ice-100); padding: 4px 8px; }
.card h4 { font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.card .arrow { width: 34px; height: 34px; border: 1px solid var(--hair-dark); display: grid; place-items: center; transition: .2s; }
.card:hover .arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================ footer */
footer { background: linear-gradient(to bottom, var(--ice-100) 0%, #93b4dc 32%, #1b4d92 68%, #05101f 100%); color: #fff; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .7fr)) auto; gap: clamp(20px, 3vw, 48px); padding: clamp(60px, 8vw, 110px) var(--gut) 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h3 { font-size: clamp(22px, 2.4vw, 32px); }
.subscribe { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .4); margin-top: 22px; max-width: 420px; }
.subscribe input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 2px; font-size: 16px; color: #fff; }
.subscribe input:focus { outline: none; }
.subscribe input::placeholder { color: rgba(255, 255, 255, .55); }
.foot-col .label { color: rgba(255, 255, 255, .6); margin-bottom: 14px; display: block; }
.foot-col a { display: block; padding: 4px 0; font-size: 17px; color: rgba(255, 255, 255, .92); }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.totop { display: grid; gap: 10px; justify-items: end; }
.totop i { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; cursor: pointer; }
.totop i:hover { background: rgba(255, 255, 255, .16); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding: 0 var(--gut) 26px; color: rgba(255, 255, 255, .6); }
.foot-legal .label { color: inherit; }
.wordmark {
  font-size: clamp(72px, 21vw, 300px); font-weight: 600; letter-spacing: -.05em; line-height: .8;
  text-align: center; padding: 0 var(--gut);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .92) 8%, rgba(255, 255, 255, .10) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; margin-bottom: -.14em; overflow: hidden;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px); z-index: 90;
  background: rgba(6, 13, 26, .93); border: 1px solid var(--accent); color: var(--on-dark);
  padding: 13px 18px; font-size: 16px; max-width: min(560px, calc(100vw - 32px));
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; backdrop-filter: blur(10px);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast a { color: var(--accent-hi); text-decoration: underline; }

/* ---------- scroll-in ---------- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
  .mrow { opacity: 1; filter: none; }
}

/* live / sandbox toggle riding on the stage badge */
.stage .mode button {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; padding: 4px 9px; margin-left: 2px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--hair); color: var(--on-dark);
  transition: .18s;
}
.stage .mode button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.stage .mode button:disabled { opacity: .4; cursor: not-allowed; }
body.sandbox .stage .mode { border-color: rgba(255, 180, 84, .5); }
