/* ==========================================================================
   Ethereum Terminals — site styles
   Dark CRT / terminal aesthetic. Monospace everywhere.
   ========================================================================== */

:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --panel: #0f1219;
  --panel-2: #131722;
  --panel-3: #181d2a;
  --line: #1c2230;
  --line-2: #283047;
  --text: #e3e6ee;
  --text-2: #b6bccb;
  --muted: #7d859a;
  --dim: #4a5166;

  --accent: #9d8dff;          /* ETH lavender */
  --accent-2: #c08cff;        /* purple phosphor */
  --accent-glow: rgba(157, 141, 255, 0.28);
  --green: #33ff66;
  --amber: #ffb000;
  --red: #ff5a4d;
  --cyan: #4fe8f0;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --sidebar-w: 236px;
  --ticker-h: 28px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(157,141,255,0.07), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(51,255,102,0.04), transparent 60%),
    var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #0b0b12; }

.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- ticker ---------- */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ticker-h); z-index: 40;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  overflow: hidden; font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
}
.ticker__track {
  display: inline-flex; white-space: nowrap; height: 100%; align-items: center;
  animation: ticker 70s linear infinite; will-change: transform;
}
.ticker__track span { padding: 0 22px; }
.ticker__track b { color: var(--text-2); font-weight: 500; }
.ticker__track em { color: var(--green); font-style: normal; }
.ticker__track em.is-off { color: var(--amber); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; padding-top: var(--ticker-h); position: relative; z-index: 1; }

.sidebar {
  position: fixed; top: var(--ticker-h); bottom: 0; left: 0; width: var(--sidebar-w);
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 18px; z-index: 30;
}
.brand { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 6px 4px; }
.brand__text { min-width: 0; flex: 1; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); padding: 3px; }
.brand__name { display: block; font-weight: 800; font-size: 13px; line-height: 1.1; letter-spacing: 0.12em; }
.brand__sub { display: block; font-size: 8.5px; letter-spacing: 0.02em; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius);
  color: var(--text-2); letter-spacing: 0.14em; font-size: 12px; font-weight: 500;
  border: 1px solid transparent; position: relative; transition: background .15s, color .15s, border-color .15s;
}
.nav__item:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav__item.is-active { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.nav__item.is-active::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.nav__idx { color: var(--dim); font-size: 10px; width: 18px; }
.nav__item.is-active .nav__idx { color: var(--accent); }
.nav__label { flex: 1; min-width: 0; }
.nav__tag { font-size: 9px; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); }
.nav__tag--live { color: var(--green); border-color: rgba(51,255,102,0.35); background: rgba(51,255,102,0.06); }
.nav__item--disabled { color: var(--dim); cursor: not-allowed; }
.nav__item--disabled:hover { background: transparent; color: var(--dim); }
.nav__soon { font-size: 9px; letter-spacing: 0.06em; color: var(--dim); text-transform: lowercase; border: 1px dashed var(--line-2); padding: 2px 6px; border-radius: 3px; white-space: nowrap; flex: none; line-height: 1.3; }

.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.sysline { display: flex; gap: 8px; align-items: center; font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-2); }
.sysline--dim { color: var(--muted); padding-left: 16px; }
.socials { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.socials a, .socials span {
  font-size: 10px; letter-spacing: 0.12em; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--text-2); background: var(--panel);
}
.socials a:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.socials span { color: var(--dim); border-style: dashed; }
.sidebar__ver { font-size: 9.5px; color: var(--dim); letter-spacing: 0.08em; margin-top: 6px; }

.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.led--green { background: var(--green); box-shadow: 0 0 8px rgba(51,255,102,0.7); animation: blink 3s infinite; }
.led--red { background: var(--red); box-shadow: 0 0 8px rgba(255,90,77,0.7); }
.led--amber { background: var(--amber); box-shadow: 0 0 8px rgba(255,176,0,0.7); }
.led--cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(79,232,240,0.7); }
.led--off { background: #2a2e3a; }
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.35; } }

.mobilebar { display: none; }
.sidebar-backdrop { display: none; }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 28px 32px 64px; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- typography ---------- */
.eyebrow { font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.eyebrow b { color: var(--accent); font-weight: 500; }
h1.display { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: 0.08em; line-height: 1; margin: 10px 0 14px; font-weight: 800; }
h2.section { font-size: 13px; letter-spacing: 0.2em; margin: 0; font-weight: 700; color: var(--text); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-head .sub { color: var(--muted); font-size: 11.5px; }
.lead { font-size: 14.5px; color: var(--text-2); max-width: 720px; margin: 0 0 14px; }
p { margin: 0 0 12px; color: var(--text-2); }
p.small, .small { font-size: 11.5px; color: var(--muted); }
.mono-dim { color: var(--muted); }
code { font-family: inherit; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; color: var(--text); }
pre { font-family: inherit; font-size: 12px; background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; color: var(--text-2); line-height: 1.6; }
hr.rule { border: 0; border-top: 1px dashed var(--line-2); margin: 28px 0; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.panel--dashed { border-style: dashed; border-color: var(--line-2); }
.panel--frame { position: relative; }
.panel--frame::before, .panel--frame::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent); opacity: .7;
}
.panel--frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel--frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel__title h3 { margin: 0; font-size: 11.5px; letter-spacing: 0.18em; font-weight: 700; color: var(--text); }
.pill { font-size: 9.5px; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.pill--green { color: var(--green); border-color: rgba(51,255,102,0.35); background: rgba(51,255,102,0.06); }
.pill--accent { color: var(--accent); border-color: rgba(157,141,255,0.4); background: rgba(157,141,255,0.08); }
.pill--amber { color: var(--amber); border-color: rgba(255,176,0,0.4); background: rgba(255,176,0,0.08); }
.pill--dim { color: var(--dim); border-style: dashed; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.stat { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__v { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); line-height: 1.1; }
.stat__v small { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat__k { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.stat--accent .stat__v { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 11.5px; letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase;
  padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); transition: all .15s;
  text-decoration: none !important;
}
.btn:hover { border-color: var(--accent); background: var(--panel-3); }
.btn--primary { background: var(--accent); color: #0b0b14; border-color: var(--accent); box-shadow: 0 0 22px var(--accent-glow); }
.btn--primary:hover { background: #ada0ff; border-color: #ada0ff; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 7px 12px; font-size: 10.5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .arrow { font-size: 12px; }

/* ---------- whitelist page ---------- */
.wl { display: grid; gap: 22px; }
.wl-card { background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%); border: 1px solid var(--line-2); border-radius: 12px; padding: 26px; position: relative; overflow: hidden; }
.wl-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 240px at 20% 0%, rgba(157,141,255,0.10), transparent 70%); }
.wl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; position: relative; }
.wl-head__id { display: flex; align-items: center; gap: 16px; }
.wl-head__logo { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 4px; box-shadow: 0 0 30px rgba(157,141,255,0.15); }
.wl-head h1 { margin: 0; font-size: 24px; letter-spacing: 0.14em; font-weight: 800; line-height: 1; }
.wl-head .sub { color: var(--muted); font-size: 11.5px; letter-spacing: 0.1em; margin-top: 6px; }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.wl-panel { background: rgba(15,18,25,0.7); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.wl-panel.is-locked { opacity: .55; }
.wl-panel.is-locked .field input { pointer-events: none; }

.task { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius); padding: 12px 12px 12px 14px; margin-bottom: 10px; transition: border-color .15s; }
.task.is-done { border-color: rgba(51,255,102,0.35); }
.task__check { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; font-size: 12px; color: var(--green); flex: none; background: var(--bg-2); }
.task.is-done .task__check { border-color: var(--green); background: rgba(51,255,102,0.1); }
.task__label { flex: 1; font-size: 13px; color: var(--text); }
.task__label small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; letter-spacing: 0.04em; }
.task .btn { flex: none; }
.task.is-done .btn { border-color: var(--line); color: var(--muted); }
.wl-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.field label i { color: var(--accent); font-style: normal; }
.field input {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157,141,255,0.15); }
.field input.is-invalid { border-color: var(--red); }
.field .hint { font-size: 10.5px; color: var(--muted); margin-top: 5px; min-height: 14px; }
.field .hint.is-error { color: var(--red); }
.wl-lock { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; }
.wl-foot { text-align: center; font-size: 10.5px; letter-spacing: 0.16em; color: var(--dim); margin-top: 22px; position: relative; }
.wl-foot b { color: var(--muted); font-weight: 500; }

.wl-success { text-align: center; padding: 26px 14px; }
.wl-success .big { font-size: 20px; letter-spacing: 0.16em; font-weight: 800; color: var(--green); margin: 10px 0 6px; }
.wl-success .ref { display: inline-block; margin: 12px 0; padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; font-size: 13px; letter-spacing: 0.1em; color: var(--text); }
.wl-success dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; margin: 14px auto 0; max-width: 380px; font-size: 12px; }
.wl-success dt { color: var(--muted); letter-spacing: 0.1em; font-size: 10.5px; text-transform: uppercase; align-self: center; }
.wl-success dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.wl-closed { text-align: center; padding: 26px 14px; }
.wl-closed .big { font-size: 16px; letter-spacing: 0.16em; font-weight: 800; color: var(--amber); margin: 10px 0 8px; }
.wl-closed p { max-width: 380px; margin: 0 auto 14px; }
.btn[aria-disabled="true"] { pointer-events: none; }
.hero-strip { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.hero-copy h2 { font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.1em; line-height: 1.05; margin: 8px 0 12px; font-weight: 800; }
.hero-copy h2 span { color: var(--accent); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-art { position: relative; min-height: 260px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(400px 200px at 50% 100%, rgba(157,141,255,0.08), transparent 70%), var(--bg-2); display: flex; align-items: flex-end; justify-content: center; }
.hero-art img { position: absolute; bottom: -6%; width: 62%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); transition: opacity .6s; }
.hero-art img.side { width: 46%; opacity: .55; bottom: -4%; }
.hero-art img.side.l { left: -6%; } .hero-art img.side.r { right: -6%; }
.hero-art .tag { position: absolute; top: 10px; left: 12px; }

/* ---------- traits page ---------- */
.trait-toc { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 8px; }
.trait-toc a { font-size: 10.5px; letter-spacing: 0.12em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--text-2); background: var(--panel); }
.trait-toc a:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 14px 12px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tcard__name { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.tcard__pct { color: var(--accent); font-weight: 700; font-size: 13px; }
.tcard__meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.06em; }
.bar { height: 4px; background: var(--bg-2); border-radius: 2px; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px var(--accent-glow); }
.tcard--rare .tcard__pct { color: var(--amber); }
.tcard--rare .bar > i { background: linear-gradient(90deg, var(--amber), #ffd166); }
.tcard--grail .tcard__pct { color: #ffd166; }
.tcard--grail { border-color: rgba(255,209,102,0.35); }
.tcard--grail::after { content: "GRAIL"; position: absolute; top: 10px; right: -22px; transform: rotate(35deg); font-size: 8px; letter-spacing: 0.2em; background: rgba(255,209,102,0.15); color: #ffd166; padding: 2px 26px; }
.swatches { display: flex; gap: 3px; margin-top: 10px; }
.swatches i { flex: 1; height: 14px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.06); }
.glow-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 8px; }

.rare-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rare-table th { text-align: left; font-size: 10px; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rare-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.rare-table tr:hover td { background: var(--panel-2); }
.rare-table td.num { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rare-table td.pct { text-align: right; color: var(--amber); font-weight: 700; }
.rare-table .rk { color: var(--dim); }
.table-wrap { overflow-x: auto; }

.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.note-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--text-2); font-size: 12px; }
.note-list li b { color: var(--text); font-weight: 600; }

.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 12px; }
.rule__id { font-size: 10px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 6px; }
.rule__cond { color: var(--text); }
.rule__cond .op { color: var(--amber); }
.rule__why { color: var(--muted); font-size: 11px; margin-top: 6px; }

/* ---------- gallery ---------- */
.gbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 16px; }
.gbar select { font-family: inherit; font-size: 11.5px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 10px; letter-spacing: 0.04em; }
.gbar .count { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; padding: 0; color: inherit; }
.gcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.gcard__img { aspect-ratio: 1; background: var(--bg-2); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; }
.gcard__meta { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; font-size: 11px; letter-spacing: 0.06em; }
.gcard__id { font-weight: 700; color: var(--text); }
.gcard__tier { font-size: 9.5px; letter-spacing: 0.14em; }
.tier--common { color: var(--muted); } .tier--uncommon { color: var(--cyan); } .tier--rare { color: var(--accent); } .tier--legendary { color: var(--amber); } .tier--mythic { color: #ffd166; }
.gjump { display: flex; gap: 6px; }
.gjump input { width: 84px; font-family: inherit; font-size: 11.5px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 10px; }
.gjump input:focus { outline: none; border-color: var(--accent); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.pg { font-family: inherit; font-size: 11px; letter-spacing: 0.08em; min-width: 32px; padding: 7px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); border-radius: 3px; cursor: pointer; }
.pg:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.pg.is-active { background: var(--accent); color: #0b0b14; border-color: var(--accent); font-weight: 700; }
.pg:disabled { opacity: .35; cursor: default; }
.pg--gap, .pg--info { border: 0; background: transparent; color: var(--dim); cursor: default; }
.pg--info { margin-left: auto; }
.attr[href] { color: inherit; }
.attr[href]:hover { border-color: var(--accent); text-decoration: none; }
.gempty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,8,0.85); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(980px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 20px; cursor: pointer; }
.modal__close:hover { border-color: var(--accent); }
.mbody { display: grid; grid-template-columns: 1.1fr 1fr; }
.mimg { background: var(--bg-2); border-right: 1px solid var(--line); }
.mimg img { width: 100%; aspect-ratio: 1; }
.minfo { padding: 22px; }
.minfo h3 { margin: 0; font-size: 20px; letter-spacing: 0.1em; font-weight: 800; }
.minfo .sub { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; margin: 4px 0 14px; }
.attrs { display: grid; gap: 6px; }
.attr { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 12px; padding: 7px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.attr__k { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.attr__v { color: var(--text); font-weight: 600; }
.attr__p { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.attr--rare .attr__p { color: var(--amber); }
.mactions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.score { display: flex; gap: 14px; margin: 0 0 14px; }
.score div { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.score .v { font-size: 18px; font-weight: 800; }
.score .k { font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 1fr 200px; gap: 34px; align-items: start; }
.docs__body { min-width: 0; }
.docs__body h2.section { margin-top: 44px; scroll-margin-top: 50px; }
.docs__body h2.section:first-of-type { margin-top: 20px; }
.docs__body h3 { font-size: 12px; letter-spacing: 0.14em; margin: 22px 0 8px; color: var(--text); }
.docs__body ul, .docs__body ol { color: var(--text-2); padding-left: 20px; margin: 0 0 12px; }
.docs__body li { margin-bottom: 5px; }
.docs__body li b { color: var(--text); font-weight: 600; }
.docs__toc { position: sticky; top: 46px; border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
.docs__toc a { font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); }
.docs__toc a:hover, .docs__toc a.is-active { color: var(--text); text-decoration: none; }
.docs__toc .toc-h { font-size: 9.5px; letter-spacing: 0.2em; color: var(--dim); margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); letter-spacing: 0.1em; font-size: 10.5px; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: 14px; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rm { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.rm__ph { font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); }
.rm__t { font-weight: 700; font-size: 13px; margin: 6px 0; letter-spacing: 0.08em; }
.rm__d { font-size: 11.5px; color: var(--muted); }
.rm--live { border-color: rgba(51,255,102,0.35); }
.rm--live .rm__ph { color: var(--green); }
.rm--next { border-color: rgba(157,141,255,0.35); }
.rm--next .rm__ph { color: var(--accent); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 12.5px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 14px 12px; margin: 0; font-size: 12px; }
.canvas-diagram { width: 100%; max-width: 560px; display: block; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }

/* ---------- soon page ---------- */
.soon { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.soon h1 { letter-spacing: 0.2em; font-size: 28px; margin: 10px 0; }
.soon .glyph { font-size: 44px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .wl-closed { text-align: center; padding: 26px 14px; }
.wl-closed .big { font-size: 16px; letter-spacing: 0.16em; font-weight: 800; color: var(--amber); margin: 10px 0 8px; }
.wl-closed p { max-width: 380px; margin: 0 auto 14px; }
.btn[aria-disabled="true"] { pointer-events: none; }
.hero-strip { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; }
  .docs { grid-template-columns: 1fr; }
  .docs__toc { display: none; }
}
@media (max-width: 860px) {
  :root { --ticker-h: 24px; }
  .mobilebar { display: flex; position: fixed; top: var(--ticker-h); left: 0; right: 0; height: 50px; z-index: 35; align-items: center; gap: 12px; padding: 0 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .mobilebar__menu { width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: 4px; font-size: 18px; cursor: pointer; }
  .mobilebar__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 12px; letter-spacing: 0.14em; font-weight: 800; flex: 1; }
  .mobilebar__brand img { border-radius: 4px; }
  .mobilebar__status { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.14em; color: var(--green); }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; top: calc(var(--ticker-h) + 50px); padding-top: 12px; width: min(300px, 84vw); }
  .sidebar .brand { display: none; }
  body.menu-open .sidebar { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 29; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-backdrop { top: calc(var(--ticker-h) + 50px); }
  body.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; padding: 66px 14px 48px; }
  .wl-grid { grid-template-columns: 1fr; }
  .wl-card { padding: 18px; }
  .mbody { grid-template-columns: 1fr; }
  .mimg { border-right: 0; border-bottom: 1px solid var(--line); }
  .kv { grid-template-columns: 1fr; }
  .attr { grid-template-columns: 80px 1fr auto; }
  .task { flex-wrap: wrap; }
  .task .btn { margin-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .led--green { animation: none; }
  .page { animation: none; }
}
