/* RugLynx — obsidian, gold and radar-cyan, taken from the coin art. Logical properties throughout for RTL. */
/* ChartIQ. Theme: dark is the default; data-theme="light" is the opt-in (js/config.js sets it before first paint).
   Palette comes from the logo: a bright mint on near-black, with a hot pink-red for losses. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f5; --bg-2: #e8f0ec; --surface: #ffffff; --surface-2: #fafdfb;
  --line: rgba(6, 24, 18, .13); --line-2: rgba(6, 24, 18, .26);
  --text: #06130e; --text-2: #3c5149; --text-3: #5d7168;
  --brand: #0efbc5; --brand-hi: #5dffd9; --brand-lo: #04b88f; --brand-ink: #00765a; --on-brand: #03140f;
  --info: #1168d8; --info-lo: #0b4fa8;
  --ok: #05875f; --warn: #a15c00; --risk: #d6243f; --unk: #5d6f68;
  --up: #07b88a; --down: #e0304f;
  --brand-rgb: 14, 251, 197; --info-rgb: 17, 104, 216; --risk-rgb: 214, 36, 63;
  --ov-1: rgba(6, 24, 18, .03); --ov-2: rgba(6, 24, 18, .055); --ov-3: rgba(6, 24, 18, .09);
  --nav-bg: rgba(243, 247, 245, .86); --nav-bg-solid: rgba(243, 247, 245, .98);
  --title-a: #06130e; --title-b: #0c4a39;
  --err-text: #a3132c; --glow-o: .55;
  --card-shadow: 0 1px 0 rgba(6, 24, 18, .04), 0 14px 30px -18px rgba(6, 24, 18, .22);
  --pop: 5px 5px 0 #06130e; --pop-brand: 4px 4px 0 var(--brand);
  --chart-bg: #ffffff; --chart-grid: rgba(6, 24, 18, .07); --chart-text: #5d7168;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060908; --bg-2: #0a100e; --surface: #0e1513; --surface-2: #121b18;
  --line: rgba(14, 251, 197, .11); --line-2: rgba(14, 251, 197, .24);
  --text: #ecfff9; --text-2: #9bb8af; --text-3: #6b857b;
  --brand: #0efbc5; --brand-hi: #5dffd9; --brand-lo: #04b88f; --brand-ink: #0efbc5; --on-brand: #03140f;
  --info: #5aa9ff; --info-lo: #2f7fd6;
  --ok: #0efbc5; --warn: #ffc857; --risk: #ff5d7a; --unk: #7c968c;
  --up: #0efbc5; --down: #ff4d6d;
  --brand-rgb: 14, 251, 197; --info-rgb: 90, 169, 255; --risk-rgb: 255, 93, 122;
  --ov-1: rgba(255, 255, 255, .03); --ov-2: rgba(255, 255, 255, .055); --ov-3: rgba(255, 255, 255, .09);
  --nav-bg: rgba(6, 9, 8, .78); --nav-bg-solid: rgba(6, 9, 8, .96);
  --title-a: #ffffff; --title-b: #a8f5e2;
  --err-text: #ffb3c0; --glow-o: 1; --card-shadow: none;
  --pop: 5px 5px 0 rgba(14, 251, 197, .55); --pop-brand: 4px 4px 0 rgba(14, 251, 197, .5);
  --chart-bg: #08100d; --chart-grid: rgba(14, 251, 197, .07); --chart-text: #6b857b;
}
:root {
  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-pixel: "Pixelify Sans", "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-inline-size: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--brand-rgb), .35); }
.mono, code { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.dim { color: var(--text-3); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 8px 14px; background: #4f3ff0; color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { inline-size: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { inline-size: min(820px, 100% - var(--gutter) * 2); }

/* ───────── buttons ───────── */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: var(--h); padding-inline: 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, opacity 180ms ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 38px; padding-inline: 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 54px; padding-inline: 28px; font-size: 16px; }
.btn--brand { background: linear-gradient(180deg, #7a66ff, #4f3ff0 60%, #4132e0); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 10px 28px -10px rgba(var(--brand-rgb), .7); }
.btn--ghost { background: var(--ov-1); border-color: var(--line-2); color: var(--text); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--brand:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 14px 36px -8px rgba(var(--brand-rgb), .8); transform: translateY(-1px); }
  .btn--ghost:hover { border-color: rgba(var(--info-rgb), .5); background: rgba(var(--info-rgb), .06); }
}
.chip-btn {
  min-block-size: 38px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ov-1);
  font: 500 13px/1 var(--f-body); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.chip-btn:active { transform: scale(.97); }
.chip-btn[aria-pressed="true"] { border-color: var(--brand-ink); color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { border-color: rgba(var(--info-rgb), .5); } }
.link { display: inline-flex; gap: 6px; color: var(--info); font-weight: 600; font-size: 14px; margin-block-start: 16px; }
.link::after { content: "→"; transition: transform 200ms var(--ease-out); }
[dir="rtl"] .link::after { content: "←"; }
@media (hover: hover) and (pointer: fine) { .link:hover::after { transform: translateX(4px); } [dir="rtl"] .link:hover::after { transform: translateX(-4px); } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--info); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ───────── nav ───────── */
.nav { position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 50; block-size: var(--nav-h); transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease; border-block-end: 1px solid transparent; }
.nav.is-stuck { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; block-size: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { block-size: 38px; inline-size: auto; filter: drop-shadow(0 0 10px rgba(var(--info-rgb), .3)); }
.brand__name { font: 700 20px/1 var(--f-display); letter-spacing: .06em; direction: ltr; color: var(--text); }
.brand__name b { color: var(--brand-ink); font-weight: 700; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); background: var(--ov-2); } }
.nav__end { display: flex; align-items: center; gap: 10px; }
.burger { display: none; inline-size: 42px; block-size: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ov-1); position: relative; cursor: pointer; }
.burger span { position: absolute; inset-inline: 12px; block-size: 2px; border-radius: 2px; background: var(--text); transition: transform 220ms var(--ease-out); }
.burger span:nth-child(1) { inset-block-start: 15px; } .burger span:nth-child(2) { inset-block-start: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav__end .btn { display: none; }
  .nav__links {
    position: fixed; inset-inline: 0; inset-block-start: var(--nav-h); flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px;
    background: var(--nav-bg-solid); backdrop-filter: blur(16px); border-block-end: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 16px; }
}

/* ───────── sections ───────── */
.sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.sec--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.sec__head { max-inline-size: 720px; margin-block-end: clamp(28px, 4vw, 48px); }
.kicker { font: 500 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-block-end: 14px; }
[dir="rtl"] .kicker { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.sec__head h2, .token__copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
[dir="rtl"] .sec__head h2 { line-height: 1.3; }
.sub { margin-block-start: 16px; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.1rem); max-inline-size: 62ch; }
.fine { color: var(--text-3); font-size: 13px; line-height: 1.6; max-inline-size: 70ch; }

.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--card-shadow); }

/* lenses */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.lens { padding: 26px; position: relative; display: flex; flex-direction: column; transition: border-color 220ms ease, transform 260ms var(--ease-out); }
.lens h3 { font-size: 1.28rem; margin-block: 18px 10px; }
.lens p { color: var(--text-2); font-size: 15px; }
.lens .link { margin-block-start: auto; padding-block-start: 18px; }
.lens__ic { inline-size: 40px; block-size: 40px; fill: none; stroke: var(--brand-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lens--live .lens__ic { stroke: var(--info); }
@media (hover: hover) and (pointer: fine) { .lens:hover { border-color: rgba(var(--brand-rgb), .38); transform: translateY(-3px); } }
.badge { align-self: flex-start; padding: 5px 10px; border-radius: 99px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; border: 1px solid; }
.badge--live { color: var(--info); border-color: rgba(var(--info-rgb), .4); background: rgba(var(--info-rgb), .08); }
.badge--next { color: var(--brand-ink); border-color: rgba(var(--brand-rgb), .4); background: rgba(var(--brand-rgb), .08); }
.badge--later { color: var(--text-2); border-color: var(--line-2); background: var(--ov-1); }
.lens .badge { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; }

/* ───────── fields ───────── */
.field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; padding-inline: 16px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color 180ms ease, box-shadow 220ms ease; }
.field:focus-within { border-color: var(--info); box-shadow: 0 0 0 4px rgba(var(--info-rgb), .12); }
.field svg { flex: none; inline-size: 20px; block-size: 20px; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; }
.field input { flex: 1; min-inline-size: 0; background: none; border: 0; outline: 0; padding-block: 12px; font: 400 15px var(--f-mono); color: var(--text); text-overflow: ellipsis; }
.field input::placeholder { color: var(--text-3); font-family: var(--f-body); }
.field--sm { padding-inline: 14px; min-inline-size: min(100%, 280px); flex: 1 1 240px; }
.field--sm input { padding-block: 9px; font-size: 14px; }
.hint { margin-block-start: 12px; color: var(--text-3); font-size: 13.5px; }
.form-err { margin-block-start: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(var(--risk-rgb), .4); background: rgba(var(--risk-rgb), .08); color: var(--err-text); font-size: 14px; }
.scan__form { max-inline-size: 760px; margin-block-end: 28px; }
.scan__form .btn { --h: 46px; }

/* ───────── report ───────── */
.report__empty { padding: clamp(32px, 6vw, 56px); text-align: center; border-style: dashed; border-color: var(--line-2); }
.empty__ic svg { inline-size: 54px; block-size: 54px; fill: none; stroke: var(--text-3); stroke-width: 1.3; stroke-linecap: round; }
.empty__t { font: 600 1.1rem var(--f-display); margin-block: 14px 6px; }
.empty__d { color: var(--text-2); max-inline-size: 48ch; margin-inline: auto; font-size: 15px; }
.rep { padding: clamp(18px, 3vw, 30px); animation: rise 420ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.rep__top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; justify-content: space-between; padding-block-end: 22px; border-block-end: 1px solid var(--line); }
.tok { display: flex; align-items: center; gap: 14px; min-inline-size: 0; }
.tok__ic { inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--surface-2) center/cover; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; font: 700 16px var(--f-display); color: var(--brand-ink); overflow: hidden; }
.tok__ic img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tok__n { font: 600 1.25rem/1.2 var(--f-display); overflow-wrap: anywhere; }
.tok__s { color: var(--text-3); font: 400 13px var(--f-mono); }
.rep__links { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-block: 22px; }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--ov-1); border: 1px solid var(--line); }
.stat dt { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.stat dd { margin: 4px 0 0; font: 500 1.15rem var(--f-mono); direction: ltr; text-align: start; }
.chg-up { color: var(--ok); } .chg-dn { color: var(--risk); }
.sum { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 16px; }
.sum span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--ov-1); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.sigs { display: grid; gap: 10px; }
.sig { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 8px 18px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--ov-1); border: 1px solid var(--line); border-inline-start: 3px solid var(--c, var(--unk)); animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.sig--ok { --c: var(--ok); } .sig--warn { --c: var(--warn); } .sig--risk { --c: var(--risk); } .sig--unk { --c: var(--unk); } .sig--info { --c: var(--info); }
.sig__st { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--c); padding-block-start: 3px; }
[dir="rtl"] .sig__st { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.sig__t { font-weight: 600; font-size: 15px; }
.sig__v { margin-block-start: 3px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.sig__v .mono { color: var(--text); }
.sig__src { font: 400 11.5px var(--f-mono); color: var(--text-3); white-space: nowrap; padding-block-start: 4px; }
.sb { display: inline-block; inline-size: 12px; block-size: 12px; background: var(--c); flex: none; }
.sb--ok, .sig--ok .sb { --c: var(--ok); border-radius: 50%; }
.sb--warn, .sig--warn .sb { --c: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sb--risk, .sig--risk .sb { --c: var(--risk); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sb--unk, .sig--unk .sb { --c: var(--unk); border-radius: 50%; background: none; border: 2px dashed var(--c); }
.sig--info .sb { --c: var(--info); border-radius: 3px; }
.rep__foot { margin-block-start: 20px; padding-block-start: 16px; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
@media (max-width: 720px) { .sig { grid-template-columns: 1fr; } .sig__src { padding: 0; } }

.skel { background: linear-gradient(100deg, var(--ov-2) 30%, var(--ov-3) 50%, var(--ov-2) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.skel--l { block-size: 54px; margin-block-end: 10px; border-radius: 12px; }

/* ───────── radar ───────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-block-end: 16px; }
.select { display: grid; gap: 4px; font-size: 12px; color: var(--text-3); }
.select select { appearance: none; min-block-size: 44px; padding: 0 36px 0 14px; padding-inline: 14px 36px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.500 5 5 5-5' fill='none' stroke='%2366747b' stroke-width='1.700' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font-size: 14px; cursor: pointer; }
[dir="rtl"] .select select { background-position: left 14px center; }
.toolbar > .chip-btn { min-block-size: 44px; }
.tablebox { overflow: clip; }
.tbl { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; padding: 14px 16px; font: 500 12px var(--f-body); letter-spacing: .05em; color: var(--text-3); border-block-end: 1px solid var(--line); background: var(--ov-1); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .tbl tbody tr:hover { background: rgba(var(--brand-rgb), .045); } }
.tbl th.num, .num { text-align: end; font-family: var(--f-mono); font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; }
th.num { direction: inherit; font-family: var(--f-body); }
.tbl td.tcell { max-inline-size: 280px; }
.tcell .tok__ic { inline-size: 34px; block-size: 34px; font-size: 13px; }
.tcell .tok { gap: 11px; }
.tcell .tok__n { font-size: 14.5px; font-weight: 600; font-family: var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 190px; }
.tcell .tok__s { font-size: 12px; }
.tbl .btn { --h: 34px; font-size: 13px; padding-inline: 12px; }
.tbl td:last-child { text-align: end; }
.more { display: flex; justify-content: center; padding: 6px 16px 18px; }
.state { padding: 44px 20px; text-align: center; color: var(--text-2); }
.state b { display: block; font: 600 1.05rem var(--f-display); color: var(--text); margin-block-end: 6px; }
.state .btn { margin-block-start: 16px; }
.tablebox__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 16px; font-size: 12px; color: var(--text-2); }
.tbl tbody tr.skelrow td { padding-block: 16px; } .skelrow .skel { block-size: 16px; }
.flash { animation: flash 900ms ease-out; }
@keyframes flash { from { background: rgba(var(--info-rgb), .12); } }

@media (max-width: 900px) {
  .tbl, .tbl tbody { display: block; }
  .tbl thead { display: none; }
  .tbl tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; border-block-end: 1px solid var(--line); }
  .tbl td { padding: 0; border: 0; text-align: start; direction: inherit; }
  .tbl td.tcell { grid-column: 1 / -1; max-inline-size: none; }
  .tbl td[data-label]:not(.tcell):not(:last-child)::before { content: attr(data-label); display: block; font: 400 11px var(--f-body); color: var(--text-3); margin-block-end: 2px; }
  .tbl td.num { text-align: start; }
  .tbl td:last-child { grid-column: 1 / -1; }
  .tbl td:last-child .btn { inline-size: 100%; }
  .tcell .tok__n { max-inline-size: none; }
}

/* ───────── method ───────── */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-block-end: 28px; }
.rule { padding: 24px 4px 0; border-block-start: 1px solid var(--line-2); }
.rule__n { font: 500 13px var(--f-mono); color: var(--brand-ink); }
.rule h3 { font-size: 1.2rem; margin-block: 10px 8px; }
.rule p { color: var(--text-2); font-size: 15px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-block: 36px 24px; }
.catalog__col { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ov-1); }
.catalog__col h3 { font-size: .95rem; letter-spacing: .02em; color: var(--text-2); margin-block-end: 12px; font-weight: 600; }
.catalog__col li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 9px; border-block-start: 1px solid var(--line); font-size: 14px; }
.st { font: 500 11px/1 var(--f-mono); font-style: normal; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.st--live { color: var(--info); background: rgba(var(--info-rgb), .09); }
.st--plan { color: var(--text-3); background: var(--ov-2); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-block-end: 18px; }
.legend span { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.legend .sb { grid-row: span 2; }
.legend b { font-size: 14px; } .legend small { color: var(--text-3); font-size: 12.5px; }

/* ───────── roadmap ───────── */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.road__i { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ov-1); display: grid; gap: 12px; align-content: start; }
.road__i--now { border-color: rgba(var(--info-rgb), .3); background: linear-gradient(180deg, rgba(var(--info-rgb), .05), transparent); }
.road__i h3 { font-size: 1.2rem; }
.road__i li { position: relative; padding-inline-start: 18px; color: var(--text-2); font-size: 14.5px; padding-block: 4px; }
.road__i li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 13px; inline-size: 6px; block-size: 6px; border-radius: 1px; background: var(--brand); transform: rotate(45deg); }

/* ───────── faq ───────── */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--ov-1); transition: border-color 200ms ease; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--f-mono); color: var(--brand-ink); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }

/* ───────── footer ───────── */
.foot { border-block-start: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.foot__in { display: grid; gap: 22px; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand img { block-size: 34px; inline-size: auto; }
.foot__links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.foot__links a { min-block-size: 32px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--brand-ink); } }

/* ───────── reveal ───────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────── wallet report ───────── */
.hold .tbl td:first-child { max-inline-size: 260px; }
.sec-h { font: 600 1rem var(--f-display); margin-block: 26px 12px; color: var(--text-2); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-h small { font: 400 12px var(--f-body); color: var(--text-3); }
.acts { display: grid; gap: 8px; }
.act { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 3px solid var(--c, var(--unk)); background: var(--ov-1); }
.act--info { --c: var(--info); } .act--unk { --c: var(--unk); }
.act__k { font: 600 12.5px var(--f-mono); color: var(--c); letter-spacing: .04em; text-transform: uppercase; }
[dir="rtl"] .act__k { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.act__d { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.act__d small { display: block; color: var(--text-3); font-size: 12px; margin-block-start: 2px; }
.act a { color: var(--info); font: 500 12.5px var(--f-mono); }
@media (max-width: 720px) { .act { grid-template-columns: 1fr; } }

/* theme toggle */
.theme-btn { inline-size: 38px; block-size: 38px; padding: 0; display: inline-grid; place-items: center; }
.theme-btn svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: opacity 180ms ease, transform 260ms var(--ease-out); }
.theme-btn .i-sun { opacity: 0; transform: rotate(-40deg) scale(.7); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(40deg) scale(.7); }

/* brand wordmark */
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.035em; color: var(--text); text-transform: none; }
.brand__name b { color: var(--brand-ink); font-weight: 700; }
.brand img { border-radius: 9px; filter: none; }
.theme-btn { min-inline-size: 38px; }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--ov-2); }

/* intel page header */
.intel-head { padding-block: calc(var(--nav-h) + 40px) 8px; }
.intel-h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; max-inline-size: 18ch; margin-block-end: 16px; }

/* ───────── accounts ───────── */
body.has-sheet { overflow: hidden; }
.acct { position: relative; display: flex; align-items: center; gap: 8px; }
.acct .btn--sm, .acct .chip-btn { --h: 38px; }
.acct__user { display: inline-flex; align-items: center; gap: 8px; min-block-size: 38px; padding: 4px 12px 4px 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--ov-1); color: var(--text); font: 600 13.5px var(--f-body); cursor: pointer; max-inline-size: 180px; }
.acct__user i { inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f-display); color: #fff; background: linear-gradient(145deg, #7a66ff, #4f3ff0); flex: none; font-style: normal; }
.acct__user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); inline-size: 240px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .35); display: grid; gap: 2px; z-index: 60; }
.acct__menu[hidden] { display: none; }
.acct__who { display: grid; padding: 8px 10px 4px; } .acct__who b { overflow-wrap: anywhere; }
.acct__stats { display: flex; justify-content: space-between; padding: 4px 10px 10px; font-size: 12.5px; color: var(--text-2); border-block-end: 1px solid var(--line); margin-block-end: 4px; }
.acct__stats b { color: var(--text); font-family: var(--f-mono); }
.acct__menu a, .acct__menu button { display: block; text-align: start; padding: 10px; border-radius: 9px; border: 0; background: none; font: 500 14px var(--f-body); color: var(--text); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .acct__menu a:hover, .acct__menu button:hover { background: var(--ov-2); } }
@media (max-width: 560px) { .acct__login { display: none; } .acct__user span { display: none; } .acct__user { padding: 4px; } }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 22, .55); backdrop-filter: blur(6px); overflow-y: auto; }
.modal__card { position: relative; inline-size: min(100%, 420px); padding: 28px 26px 22px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px; animation: rise 300ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal__card h2 { font-size: 1.5rem; padding-inline-end: 28px; }
.modal__lead { color: var(--text-2); font-size: 14.5px; margin-block-start: -6px; }
.modal__x { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; inline-size: 34px; block-size: 34px; border-radius: 10px; border: 0; background: var(--ov-2); color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.modal__switch { font-size: 14px; color: var(--text-2); text-align: center; }
.modal__guest { justify-self: center; color: var(--text-3); font-size: 13.5px; }
.authform { display: grid; gap: 12px; }
.fld { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.fld input { min-block-size: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 15px var(--f-body); transition: border-color 160ms ease, box-shadow 200ms ease; }
.fld input:focus { outline: 0; border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .16); }
.fld__err { color: var(--risk); font-weight: 500; min-block-size: 0; }
.fld__err:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .modal__card { animation: none; } }
@media (max-width: 860px) { .nav__end .acct .btn { display: inline-flex; } }

/* ───────── account dialog motion (transform and opacity only, ease-out, under 350 ms) ───────── */
.modal { animation: fadeIn 200ms ease-out both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal.is-closing { animation: fadeOut 170ms ease-in forwards; pointer-events: none; }
.modal.is-closing .modal__card { animation: sink 170ms ease-in forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sink { to { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal__card { animation: rise 320ms var(--ease-out) both; }
.stagger > * { animation: fieldIn 340ms var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 60ms; } .stagger > *:nth-child(2) { animation-delay: 105ms; } .stagger > *:nth-child(3) { animation-delay: 150ms; }
.stagger > *:nth-child(4) { animation-delay: 195ms; } .stagger > *:nth-child(5) { animation-delay: 240ms; } .stagger > *:nth-child(6) { animation-delay: 285ms; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(8px); } }
.modal__card.shake { animation: shake 360ms cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 15%, 55% { transform: translateX(-6px); } 35%, 75% { transform: translateX(5px); } }
.fld__box { position: relative; display: block; } .fld__box input { inline-size: 100%; padding-inline-end: 64px; }
.fld__eye { position: absolute; inset-block: 6px; inset-inline-end: 6px; padding-inline: 10px; border: 0; border-radius: 8px; background: var(--ov-2); color: var(--text-2); font: 600 12px var(--f-body); cursor: pointer; }
.fld input:user-invalid { border-color: var(--risk); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; inline-size: 20px; block-size: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 10px 4px; }
.done h2 { padding: 0; font-size: 1.6rem; animation: fieldIn 360ms var(--ease-out) 380ms both; }
.done p { color: var(--text-2); max-inline-size: 32ch; animation: fieldIn 360ms var(--ease-out) 450ms both; }
.done__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-block-start: 8px; animation: fieldIn 360ms var(--ease-out) 520ms both; }
.tick { inline-size: 84px; block-size: 84px; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; }
.tick circle { stroke: rgba(var(--brand-rgb), .25); fill: rgba(var(--brand-rgb), .09); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 520ms var(--ease-out) 60ms forwards; }
.tick path { stroke: var(--brand-ink); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 380ms var(--ease-out) 380ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal__card.is-done { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .modal, .modal__card, .stagger > *, .done h2, .done p, .done__row { animation: none !important; }
  .tick circle, .tick path { animation: none; stroke-dashoffset: 0; }
  .btn.is-loading::after { animation-duration: 1.6s; }
}

/* ═════════ brand v2: mint on black, pixel touches, chunky pressable buttons ═════════ */
.skip { background: var(--brand); color: var(--on-brand); }
.btn { border-width: 2px; }
.btn--brand { background: var(--brand); color: var(--on-brand); border-color: #03140f; box-shadow: 0 4px 0 #03140f, 0 12px 28px -12px rgba(var(--brand-rgb), .7); font-weight: 700; transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), filter 160ms ease; }
:root[data-theme="dark"] .btn--brand { border-color: #03140f; box-shadow: 0 4px 0 #04b88f, 0 12px 30px -12px rgba(var(--brand-rgb), .6); }
.btn--brand:active { transform: translateY(3px); box-shadow: 0 1px 0 #03140f, 0 6px 14px -8px rgba(var(--brand-rgb), .6); }
:root[data-theme="dark"] .btn--brand:active { box-shadow: 0 1px 0 #04b88f; }
@media (hover: hover) and (pointer: fine) { .btn--brand:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 6px 0 #03140f, 0 16px 34px -12px rgba(var(--brand-rgb), .8); } :root[data-theme="dark"] .btn--brand:hover { box-shadow: 0 6px 0 #04b88f, 0 16px 34px -12px rgba(var(--brand-rgb), .7); } .btn--brand:active { transform: translateY(3px); } }
.btn--ghost { border-color: var(--line-2); font-weight: 600; }
.btn--sm { border-width: 1.5px; }
.chip-btn { border-width: 1.5px; }
.chip-btn[aria-pressed="true"] { border-color: var(--brand-ink); }

/* the logo as a black sticker: wordmark and mascot read the same on light and dark pages */
.brand { gap: 0; padding: 3px 14px 3px 3px; border-radius: 14px; background: #050807; border: 1.5px solid #050807; box-shadow: 3px 3px 0 var(--brand); transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }
:root[data-theme="dark"] .brand { border-color: rgba(var(--brand-rgb), .45); box-shadow: 3px 3px 0 rgba(var(--brand-rgb), .4); }
.brand img { block-size: 34px; inline-size: 34px; border-radius: 10px; filter: none; margin-inline-end: 9px; }
.brand__name { font: 700 1.05rem/1 var(--f-pixel); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: none; }
.brand__name b { color: var(--brand); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .brand:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--brand); } }
.brand:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--brand); }
.foot__brand { display: inline-flex; align-items: center; padding: 3px 14px 3px 3px; border-radius: 14px; background: #050807; box-shadow: 3px 3px 0 var(--brand); inline-size: fit-content; }
.foot__brand img { block-size: 30px; inline-size: 30px; border-radius: 9px; margin-inline-end: 8px; }

.acct__user i { background: var(--brand); color: var(--on-brand); font-family: var(--f-pixel); }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(var(--brand-rgb), .16); }

/* pixel font for the small, loud things */
.kicker { font-family: var(--f-pixel); font-size: 14px; letter-spacing: .1em; font-weight: 600; }
.badge { font-family: var(--f-pixel); font-size: 12.5px; letter-spacing: .04em; border-width: 1.5px; }
.st { font-family: var(--f-pixel); font-size: 12px; }
.rule__n, .step__n, .rk, .lvl, .dbadge, .eyebrow { font-family: var(--f-pixel); }
.badge--live { color: var(--brand-ink); border-color: rgba(var(--brand-rgb), .55); background: rgba(var(--brand-rgb), .12); }
.badge--next { color: var(--text-2); border-color: var(--line-2); background: var(--ov-2); }
.st--live { color: var(--brand-ink); background: rgba(var(--brand-rgb), .14); }
.card, .step, .facts li, .scale, .daily, .board, .panel2, .scard, .habit, .recent__row, .pstat { border-width: 1.5px; }
::selection { background: rgba(var(--brand-rgb), .4); }
.fld input:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .22); }
.modal__card { border-width: 2px; box-shadow: var(--pop), 0 40px 90px -30px rgba(0, 0, 0, .6); }
.tick circle { stroke: rgba(var(--brand-rgb), .5); fill: rgba(var(--brand-rgb), .14); }
.tick path { stroke: var(--brand-ink); }

.brand__word { block-size: 17px; inline-size: auto; display: block; margin-inline-end: 2px; }
.foot__brand .brand__word { block-size: 15px; }
.brand img.brand__word { border-radius: 0; margin-inline-end: 2px; block-size: 17px; inline-size: auto; }

/* ═════════ more pixel touches ═════════ */
html { scrollbar-color: rgba(var(--brand-rgb), .55) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { inline-size: 11px; block-size: 11px; } ::-webkit-scrollbar-thumb { background: rgba(var(--brand-rgb), .5); border-radius: 8px; border: 3px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
.toast { font-family: var(--f-pixel); font-size: 15px; letter-spacing: .02em; border: 2px solid #03140f; box-shadow: 4px 4px 0 var(--brand); background: #050807; color: #fff; }
.brand img:first-child { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover img:first-child { transform: rotate(-8deg) scale(1.06); } }
.foot { position: relative; overflow: clip; }
.foot::after { content: ""; position: absolute; inset-inline-end: 4%; inset-block-end: -6px; inline-size: 120px; block-size: 76px; background: url("../assets/brand/mascot-head.png") center/contain no-repeat; opacity: .9; pointer-events: none; }
@media (max-width: 640px) { .foot::after { inline-size: 84px; block-size: 54px; opacity: .85; } }
.field:focus-within { border-color: var(--brand-ink); }
.btn--ghost:hover { border-color: var(--brand-ink); }
.card, .acard, .step { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .step:hover, .feat:hover, .lens:hover { transform: translate(-2px, -3px); box-shadow: 4px 5px 0 var(--brand); } }

/* ───────── shared dialog extras (used on every page) ───────── */
/* recovery ticket */
.done--code { gap: 12px; }
.ticket { inline-size: 100%; display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 2px dashed var(--brand-ink); background: rgba(var(--brand-rgb), .1); text-align: center; }
.ticket__label { font: 600 12px var(--f-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.ticket__code { font: 700 clamp(1.05rem, 4.4vw, 1.45rem) var(--f-pixel); letter-spacing: .06em; padding: 12px 8px; border-radius: 12px; background: #050807; color: var(--brand); user-select: all; overflow-wrap: anywhere; }
.ticket__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; } .ticket__note { color: var(--text-2); min-inline-size: 70px; text-align: start; }
.ticket__why { font-size: 12.5px; color: var(--text-2); }
.check { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { inline-size: 20px; block-size: 20px; accent-color: var(--brand-ink); }
.btn:disabled { opacity: .45; }
.meterbox { display: flex; align-items: center; gap: 10px; margin-block-start: -4px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; } .meter i { block-size: 6px; border-radius: 3px; background: var(--ov-3); transition: background-color 200ms ease; }
.meter[data-n="1"] i:nth-child(-n+1) { background: var(--risk); } .meter[data-n="2"] i:nth-child(-n+2) { background: var(--warn); } .meter[data-n="3"] i:nth-child(-n+3), .meter[data-n="4"] i { background: var(--ok); }
.meter__t { min-inline-size: 48px; font: 600 12px var(--f-pixel); color: var(--text-2); }
input.codefld { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; inset-block-start: 38%; inset-inline-start: 50%; inline-size: 9px; block-size: 9px; animation: burst 1.2s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.6); opacity: 1; } 85% { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 110px)) rotate(var(--r)) scale(1); opacity: 0; } }
.modal__card { position: relative; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .acct-mascot { animation: none; } }


.foot__brand .brand__word { inline-size: auto; block-size: 15px; }

.toast { position: fixed; inset-inline: 16px; inset-block-end: 20px; z-index: 90; max-inline-size: 420px; margin-inline: auto; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.toast[hidden] { display: none; }
