@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');
:root { --bg: #000; --card: #161716; --card2: #0e0e0f; --line: #ffffff1a; --line2: #404040; --text: #fff; --muted: #ccc; --dim: #999; --accent: #a48feb; --deep: #523b9c; --good: #6ee7a8; --bad: #ff6b6b; --warn: #f5c26b; }
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--text); font: 400 15px/1.5 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.beams { position: fixed; inset: 0 0 auto 0; height: 520px; pointer-events: none; z-index: 0; background: radial-gradient(60% 70% at 50% -10%, #523b9c88, transparent 70%), radial-gradient(30% 50% at 20% -10%, #a48feb33, transparent 70%), radial-gradient(30% 50% at 80% -10%, #a48feb33, transparent 70%); }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
nav.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: #000000b3; border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.logo img { width: 28px; height: 28px; }
nav.top .links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
nav.top .links a:hover, nav.top .links a.on { color: #fff; }
nav.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff0d; cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s, opacity .2s; }
.btn:hover { background: #ffffff1a; }
.btn.pri { background: #fff; color: #000; border-color: #fff; }
.btn.pri:hover { background: #e9e4ff; }
.btn.acc { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.xlink { width: 42px; padding: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 500; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.head { padding: 64px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head p { max-width: 560px; margin-top: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff0d; font-size: 13px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } .g2 { grid-template-columns: 1fr; } nav.top .links { display: none; } }
@media (max-width: 560px) { .g3, .g4 { grid-template-columns: 1fr; } .head { padding-top: 40px; } }
.stat b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.stat span { color: var(--dim); font-size: 13px; }
.tok { display: flex; align-items: center; gap: 12px; }
.tok img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #222; }
.tok .n { font-weight: 600; } .tok .s { color: var(--dim); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.kv span:nth-child(odd) { color: var(--dim); } .kv span:nth-child(even) { text-align: right; }
.phase { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.phase.open { color: var(--accent); border-color: #a48feb55; } .phase.fuse { color: var(--bad); border-color: #ff6b6b55; } .phase.turned, .phase.full { color: var(--good); border-color: #6ee7a855; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: #ffffff22; position: relative; min-height: 2px; transition: height .5s; }
.bars i.bid { background: linear-gradient(#a48feb, #523b9c); }
.bars i.with { background: repeating-linear-gradient(135deg, #a48feb55 0 4px, transparent 4px 8px); border: 1px dashed #a48feb88; border-bottom: 0; }
.bars i.mid { width: 2px; flex: 0 0 2px; background: #fff; height: 100% !important; border-radius: 0; }
.axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input.in, select.in { height: 46px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card2); padding: 0 14px; outline: none; width: 100%; }
input.in:focus { border-color: var(--accent); }
.range { display: flex; align-items: center; gap: 10px; } .range input { flex: 1; accent-color: var(--accent); }
.note { font-size: 13px; color: var(--dim); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.ok { color: var(--good); font-size: 13px; }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); }
.empty h3 { color: #fff; margin-bottom: 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff08; width: max-content; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.tabs a.on { background: #fff; color: #000; }
footer.bot { border-top: 1px solid var(--line); margin-top: 90px; padding: 34px 0 50px; color: var(--dim); font-size: 13px; }
footer.bot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.bot a:hover { color: #fff; }
.modal { position: fixed; inset: 0; z-index: 80; background: #000a; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.modal .card { width: min(460px, 100%); }
.lines { display: grid; gap: 8px; margin: 14px 0; font-size: 14px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 90; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 14px; display: none; }
.toast.on { display: block; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.docs aside { position: sticky; top: 90px; align-self: start; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.docs section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.docs section p, .docs section li { color: var(--muted); margin-top: 10px; max-width: 720px; }
.docs ol, .docs ul { padding-left: 20px; }
.docs code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #ffffff10; padding: 2px 6px; border-radius: 6px; color: #e9e4ff; word-break: break-all; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .docs aside { display: none; } }
