:root {
  --bg: #0b0d12;
  --panel: #12161f;
  --panel-2: #181d28;
  --line: #232a38;
  --text: #e8ecf3;
  --muted: #8b95a8;
  --accent: #2f7de1;
  --accent-2: #22c3ee;
  --ok: #2fbf71;
  --warn: #e3a008;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb; --panel: #ffffff; --panel-2: #f0f2f7; --line: #e1e5ee;
    --text: #141821; --muted: #5d6779;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel-2); padding: .1em .4em; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand img { border-radius: 0; }
.hero-logo img { width: min(320px, 70vw); height: auto; display: block; margin-bottom: 18px; }
.brand-link { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 32px; align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; }
.cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.08); }

.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.stat.wide { grid-column: 1 / -1; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.value { font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.stat.wide .value { font-size: 16px; font-weight: 600; }
.health { grid-column: 1 / -1; margin: 0; }
.pill { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.pill.on { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.off { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

.section { padding-top: 56px; }
.section h2 { font-size: 28px; margin: 0 0 16px; letter-spacing: -.01em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select, input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 15px; min-width: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.card .game { color: var(--muted); font-size: 14px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tag { background: var(--panel-2); border-radius: 8px; padding: 3px 8px; font-family: var(--mono); }
.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.empty { color: var(--muted); }
.copy { display: flex; gap: 8px; align-items: center; margin: 6px 0; min-width: 0; }
.copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; padding: 8px; }
.btn.small { padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--text); font: inherit; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; font-size: 14px; }
.kv span { color: var(--muted); }
.kv code { overflow-wrap: anywhere; }
.tag.official { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
.small { font-size: 14px; margin: 0; max-width: 520px; }
.own-relay { margin-top: 14px; }
.own-relay p { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 14px; right: 16px; font-weight: 800; font-size: 28px; color: var(--accent); opacity: .5; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table > div { display: grid; grid-template-columns: 160px auto 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.table > div:first-child { border-top: 0; }
.table span { color: var(--muted); }
.table small { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
.foot { color: var(--muted); font-size: 14px; padding-top: 48px; padding-bottom: 32px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  nav { gap: 12px; }
  nav a:nth-child(n+3) { display: none; }
  .table > div { grid-template-columns: 1fr; gap: 4px; }
}
.credits { color: var(--muted); padding-left: 18px; }
.credits li { margin: 6px 0; }
.credits a, .foot a, #ldn a { color: var(--text); }
a.tag { text-decoration: none; }
