:root {
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --ink: #f5f5f7;
  --ink-2: #a5a5ae;
  --ink-3: #6f6f79;
  --line: rgba(255, 255, 255, 0.062);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: #0f0f13;
  --card-2: #14141a;
  --card-3: #191920;
  --acc: #b44bff;
  --acc-hi: #c977ff;
  --acc-deep: #8a24e0;
  --acc-soft: rgba(180, 75, 255, 0.13);
  --green: #48d97e;
  --amber: #f5b83d;
  --red: #fb7185;
  --r: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 24px 60px -34px #000;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.stage { flex: 1 0 auto; }

/* backdrop: quiet dot grid under a single soft accent bloom */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 46% at 50% -6%, rgba(180, 75, 255, 0.15), transparent 62%),
    radial-gradient(60% 40% at 50% 0%, rgba(180, 75, 255, 0.07), transparent 72%);
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(92% 74% at 50% 26%, #000 12%, transparent 82%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46vh;
  background: linear-gradient(to bottom, transparent, var(--bg) 88%);
}

.mono, code, b.mono, .readout dd, table.hist td:first-child { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.mono, .readout dd { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: 13.5px; color: var(--ink); }
h3 { font-size: 13px; }
p { margin: 0; }
a { color: inherit; }

/* nav */
.nav {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 7px 9px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(12, 12, 15, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.brand {
  display: flex; align-items: center;
  text-decoration: none;
  padding: 6px; margin: -6px -6px -6px -8px; border-radius: 9px;
  transition: background 0.16s var(--ease);
}
.brand:hover { background: rgba(255, 255, 255, 0.05); }
.brand svg { width: 23px; height: 23px; color: var(--acc); flex: none; }
.brand:hover svg { color: var(--acc-hi); }
.brand svg { transition: color 0.18s var(--ease); }

.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.links a {
  color: var(--ink-3); font-size: 13px; font-weight: 500; text-decoration: none;
  padding: 7px 11px; border-radius: 8px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.links a.on { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { color: var(--ink-3); font-size: 12.5px; margin-right: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 15px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.045); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s, transform 0.12s, box-shadow 0.24s, color 0.16s;
}
.btn:hover { background: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: transparent; }
.btn.sq { width: 36px; padding: 0; }
.btn.white {
  background: linear-gradient(180deg, var(--acc-hi), var(--acc));
  color: #12061e; border-color: rgba(255, 255, 255, 0.14); font-weight: 600;
  box-shadow: 0 10px 30px -14px rgba(180, 75, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.white:hover { background: linear-gradient(180deg, #d79aff, var(--acc-hi)); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: rgba(180, 75, 255, 0.32); color: #fff; }

/* hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 24px 40px;
  text-align: center;
}
.hero .mark-lg {
  width: 66px; height: 66px; color: var(--acc); display: block; margin: 0 auto 18px;
  filter: drop-shadow(0 8px 34px rgba(180, 75, 255, 0.42));
}
.hero h1 {
  font-size: 0;
  line-height: 0;
  margin: 0;
}
.hero h1 img {
  display: block;
  width: min(780px, 92%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 80px rgba(180, 75, 255, 0.28));
}
.lede { margin: 22px auto 0; max-width: 48ch; color: #b0b0b8; font-size: 15.5px; line-height: 1.6; }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.fine {
  margin: 26px 0 0;
  color: var(--ink-3);
  font-size: 11.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  letter-spacing: 0.01em;
}
.fine b { font-weight: 500; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3f; display: inline-block; margin-right: 6px; vertical-align: 1px; transition: background 0.3s, box-shadow 0.3s; }
.dot.live { background: var(--green); box-shadow: 0 0 9px var(--green); }

/* routed pages */
.stage { position: relative; z-index: 1; display: flex; flex-direction: column; }
.view[hidden] { display: none; }
.view { animation: view-in 0.34s var(--ease) both; padding-bottom: 44px; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-head { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 22px; }
.page-head .eyebrow-sm { margin-bottom: 12px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.04; letter-spacing: -0.038em; }
.page-head .lede { margin: 14px 0 0; max-width: 62ch; font-size: 14.5px; }

.view > .panel, .view > .gate, .view > .stack, .view > .notes, .view > .strength {
  width: min(860px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.view > .panel + .panel, .view > .panel + .notes, .view > .notes + .panel { margin-top: 12px; }
.view > .stack { display: grid; gap: 12px; }

.strength {
  counter-reset: s;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  margin: 58px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.strength article::before {
  counter-increment: s; content: "0" counter(s);
  display: block; margin-bottom: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; color: var(--acc);
}
.strength h3 { font-size: 13.5px; font-weight: 600; letter-spacing: -0.012em; }
.strength p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.62; color: var(--ink-3); }

.gate {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card);
  padding: 30px 22px !important; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.gate p { margin: 0 0 16px; color: var(--ink-2); font-size: 13.5px; }
body.guest .authed-only { display: none !important; }
body:not(.guest) .gate-only { display: none !important; }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; padding-bottom: 6px; }
.notes h3 { font-size: 12.5px; }
.notes p { margin: 6px 0 0; font-size: 12px; line-height: 1.65; color: var(--ink-3); }

.rules { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.rules li::marker { color: var(--acc); }
.rules b { color: var(--ink); font-weight: 500; }
.faq .rules { margin-top: 6px; }

.steps { margin: 14px 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 14px; }
.steps .fine { margin: 0; text-align: left; justify-content: flex-start; }
.steps .btn { justify-content: center; min-width: 150px; }
.steps-note { margin-top: 6px !important; color: var(--ink-2); }
@media (max-width: 640px) {
  .steps li { grid-template-columns: 1fr; gap: 6px; }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 20px 50px -44px #000;
  padding: 18px;
}
.panel.composer { position: relative; z-index: 10; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hint { font-size: 11.5px; color: var(--ink-3); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; align-items: end; }
.row.end { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; flex-wrap: wrap; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-3); }
.inline { display: flex; gap: 8px; }

input {
  height: 40px; width: 100%; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #0d0d11; color: var(--ink); font: inherit; font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #56565e; }
input:focus { border-color: rgba(180, 75, 255, 0.55); background: #101016; outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg button { height: 38px; padding: 0 15px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; transition: background 0.14s, color 0.14s; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.seg button.on { background: rgba(255, 255, 255, 0.09); color: var(--ink); }

.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; padding-bottom: 11px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: #17171c; border: 1px solid var(--line-2); position: relative; transition: background 0.18s, border-color 0.18s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform 0.18s var(--ease), background 0.18s; }
.switch input:checked + span { background: rgba(180, 75, 255, 0.24); border-color: rgba(180, 75, 255, 0.6); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--acc); }
.switch em { font-style: normal; }

/* picker */
.picker { position: relative; }
.picker .chev { position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
#gameSearch { padding-right: 30px; }
.menu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 244px; overflow-y: auto; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: #14141a; box-shadow: 0 26px 60px -24px #000;
}
.menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 9px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
}
.menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.tier { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.tier.green { color: var(--green); }
.tier.amber { color: var(--amber); }
.tier.red { color: var(--red); }

.chips { display: flex; gap: 6px; }
.chips button { height: 25px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font: inherit; font-size: 11px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.chips button:hover { color: var(--ink-2); border-color: var(--line-2); }
.chips button.on { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }

/* dashboard */
.connect {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(180, 75, 255, 0.1), transparent 72%), var(--card);
}
.eyebrow-sm { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.connect code.block { margin-top: 0; }
.connect code.block b { color: var(--ink); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.stat { background: var(--card-2); padding: 14px 15px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); }
.stat b { font-size: 16px; font-weight: 600; }
.stat em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }

.scroll.tall { max-height: 348px; }
.st { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); }
.st.running { color: var(--green); border-color: rgba(72, 217, 126, 0.35); background: rgba(72, 217, 126, 0.07); }
.st.queued { color: var(--amber); border-color: rgba(245, 184, 61, 0.32); background: rgba(245, 184, 61, 0.07); }
.st.failed { color: var(--red); border-color: rgba(251, 113, 133, 0.32); background: rgba(251, 113, 133, 0.07); }
table.hist td.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; }
.fine.left { justify-content: flex-start; text-align: left; margin-top: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 90; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #17171e; color: var(--ink);
  font-size: 12.5px; box-shadow: 0 20px 50px -20px #000;
  animation: toast 1.6s var(--ease) forwards;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  12%, 78% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}

/* plans + invoice */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
  padding: 16px; color: var(--ink); font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.plan:hover { border-color: var(--line-2); background: var(--card-3); }
.plan.on {
  border-color: rgba(180, 75, 255, 0.6);
  background: linear-gradient(180deg, rgba(180, 75, 255, 0.14), transparent 74%), #15131c;
  box-shadow: 0 0 0 3px rgba(180, 75, 255, 0.08);
}
.plan .pn { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan .pn b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.plan .price { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.plan .price small { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.plan li { font-size: 11.5px; color: var(--ink-3); }
.plan li::before { content: "·"; margin-right: 6px; color: var(--acc); }
.plan .tag { position: absolute; top: -8px; right: 12px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--acc); color: #12061e; font-weight: 700; }

.assets { display: flex; gap: 9px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.assets > span { font-size: 11px; color: var(--ink-3); margin-right: 2px; }
.assets .route-note { flex: 1 0 100%; margin-top: 2px; }

.pick { position: relative; }
.panel.menu-up { position: relative; z-index: 30; }
.pickbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-3); color: var(--ink);
  font: inherit; font-size: 12.5px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pickbtn:hover { background: #1f1f28; border-color: rgba(180, 75, 255, 0.5); }
.pickbtn svg { flex: none; }
.pickbtn .chev {
  width: 5px; height: 5px; margin-left: 1px;
  border-right: 1.4px solid var(--ink-3); border-bottom: 1.4px solid var(--ink-3);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.18s var(--ease);
}
.pickbtn[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-1px, -1px); }

.assetmenu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  width: 224px; max-height: 284px; overflow-y: auto; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 11px; background: #15151c;
  box-shadow: 0 28px 64px -22px #000;
  animation: menu-in 0.14s var(--ease) both;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.assetmenu .opt {
  display: flex; width: 100%; align-items: center; gap: 9px;
  padding: 7px 9px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
}
.assetmenu .opt svg { flex: none; }
.assetmenu .opt:hover, .assetmenu .opt:focus-visible { background: rgba(180, 75, 255, 0.14); color: var(--ink); outline: none; }
.assetmenu .opt[aria-selected="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.055); }
.assetmenu .opt .tick { margin-left: auto; flex: none; }
.assetmenu .opt[aria-selected="true"] .tick::after { content: "✓"; font-size: 11px; color: var(--acc); }

.buy { margin-left: auto; height: 36px; border-radius: 10px; background: linear-gradient(180deg, var(--acc-hi), var(--acc)); color: #12061e; border: 1px solid rgba(255, 255, 255, 0.14); font: inherit; font-size: 13px; font-weight: 600; padding: 0 18px; cursor: pointer; transition: background 0.15s; box-shadow: 0 10px 26px -16px rgba(180, 75, 255, 0.8); }
.buy:hover { background: linear-gradient(180deg, #d79aff, var(--acc-hi)); }
.buy:disabled { opacity: 0.45; cursor: not-allowed; }

.invoice { border-color: rgba(180, 75, 255, 0.32); }
.inv-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.inv-amount { font-size: 24px; font-weight: 500; margin: 4px 0 10px; letter-spacing: -0.02em; }
.inv-actions { display: flex; gap: 8px; margin-top: 12px; }
.qr { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.qr img { display: block; width: 132px; height: 132px; }
.st.paid { color: var(--green); border-color: rgba(72, 217, 126, 0.35); background: rgba(72, 217, 126, 0.07); }
.st.partial { color: var(--amber); border-color: rgba(245, 184, 61, 0.32); }
.st.expired { color: var(--ink-3); }

/* duo: readout + actives */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.readout > div { background: var(--card-2); padding: 13px 14px; }
.readout dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-3); }
.readout dd { margin: 4px 0 0; font-size: 16px; }

.actives { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.actives li { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--card-2); }
.actives li.empty { color: var(--ink-3); border-style: dashed; font-size: 12.5px; }
.act-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.act-top b { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 500; }
.bar { height: 3px; margin-top: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-deep), var(--acc)); transition: width 0.5s var(--ease); }
.act-meta { display: flex; gap: 10px; align-items: center; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.stop { margin-left: auto; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 6px; font-size: 11.5px; padding: 3px 8px; cursor: pointer; }
.stop:hover { color: var(--red); border-color: rgba(251, 113, 133, 0.5); }

.scroll { max-height: 230px; overflow-y: auto; }
table.hist { width: 100%; border-collapse: collapse; font-size: 12px; }
table.hist th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 500; padding: 0 8px 9px; position: sticky; top: 0; background: var(--card); }
table.hist td { padding: 8px; border-top: 1px solid var(--line); color: var(--ink-2); }
table.hist tbody tr:hover td { background: rgba(255, 255, 255, 0.023); }
table.hist td:first-child { color: var(--ink); font-size: 11.5px; }

/* games */
.games-wrap { max-height: 560px; overflow-y: auto; padding-right: 4px; margin-right: -4px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 8px; }
.game { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card-2); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s; }
.game:hover { border-color: rgba(180, 75, 255, 0.4); background: var(--card-3); transform: translateY(-1px); }
.game .gn { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.game .gn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game .gn > span:last-child { flex: none; }
.game .gp { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

.keyrow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
code { font-size: 12px; color: var(--ink); }
code.block { display: block; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0c0c10; color: var(--ink-2); overflow-x: auto; line-height: 1.7; }

.error { margin: 12px 0 0; color: var(--red); font-size: 12.5px; }

footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1120px; margin: 26px auto 0; padding: 20px 24px 30px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
}
footer .fine { margin: 0; }
footer .fmark { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; letter-spacing: -0.01em; }
footer .fmark svg { width: 16px; height: 16px; color: var(--acc); }
footer .fsocial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--ink-3); text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s, background 0.16s, transform 0.12s;
}
footer .fsocial:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
footer .fsocial:active { transform: translateY(1px); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 9px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 10px; padding: 8px 10px; }
  .links {
    position: static; transform: none; order: 3; width: 100%;
    gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 2px;
  }
  .links::-webkit-scrollbar { display: none; }
  .links a { white-space: nowrap; font-size: 12.5px; }
  .nav-end { margin-left: auto; }
  .duo, .keyrow { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .readout { grid-template-columns: repeat(4, 1fr); }
  .hero { padding-top: 26px; padding-bottom: 30px; }
  .hero .mark-lg { width: 54px; height: 54px; }
  .page-head { padding-top: 38px; }
  .strength { grid-template-columns: 1fr; gap: 24px; }
  .notes { grid-template-columns: 1fr; }
  .fine { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .readout { grid-template-columns: repeat(2, 1fr); }
  .ctas .btn { width: 100%; }
  .connect { flex-direction: column; align-items: flex-start; }
  .inv-grid { grid-template-columns: 1fr; }
  .qr { display: none; }
  .plans { grid-template-columns: 1fr; }
  .buy { margin-left: 0; flex: 1 0 100%; }
  .assetmenu { width: min(260px, calc(100vw - 64px)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; scroll-behavior: auto; }
}
