@font-face { font-family: "Exo 2"; font-weight: 400; src: url("/fonts/exo2-regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Exo 2"; font-weight: 600; src: url("/fonts/exo2-semibold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Sans Mono"; font-weight: 400; src: url("/fonts/noto-sans-mono.ttf") format("truetype"); font-display: swap; }
:root {
  --night: #04050b; --deep: #0a0c17; --ink: #f2f4ff; --haze: #a4a9c4; --mute: #6f7594;
  /* Blue is the player's path, violet the servers and their authors, amber the test status. */
  --route: #009dff; --forge: #b548ff; --signal: #ffb648; --ok: #4fd18b; --link: #7db4ff;
  --rule: rgba(242,244,255,.09); --rule-2: rgba(242,244,255,.17);
  --f-ui: "Exo 2", "Segoe UI", system-ui, sans-serif; --f-mono: "Noto Sans Mono", ui-monospace, Consolas, monospace;
  --wrap: 1140px; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.6; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
code { font-family: var(--f-mono); font-size: .84em; background: rgba(242,244,255,.06); padding: 1px 6px; overflow-wrap: anywhere; }
pre { font-family: var(--f-mono); font-size: 14px; margin: 0; background: var(--deep); border: 1px solid var(--rule-2); padding: 14px 16px; overflow-x: auto; max-width: 100%; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.defs { position: absolute; width: 0; height: 0; }

/* The logo's node in small: a coloured ring around a white core. */
.node { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid currentColor; background: radial-gradient(circle, #fff 0 30%, rgba(143,180,255,.6) 45%, transparent 60%); box-shadow: 0 0 8px currentColor; }

/* --- header --- */
.top { position: fixed; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.top.solid, .top.open { background: rgba(4,5,11,.9); backdrop-filter: blur(10px); border-color: var(--rule); }
.top .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 176px; height: auto; aspect-ratio: 5 / 1; object-fit: cover; display: block; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { position: relative; color: var(--haze); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 2px; background: var(--route); }
.top nav a[aria-current]::before { content: ""; position: absolute; right: 0; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; border: 2px solid var(--route); box-shadow: 0 0 6px var(--route); }
.top nav .gh { display: inline-flex; align-items: center; gap: 7px; }
.menu-btn { all: unset; display: none; margin-left: auto; cursor: pointer; padding: 10px 4px; font-size: 15px; color: var(--ink); }
.menu-btn:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
.menu-btn span { display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 14px) 100%, 0 100%); transition: background .2s, filter .2s; }
.btn.primary { background: var(--route); color: #02060d; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: rgba(242,244,255,.07); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn.ghost:hover { background: rgba(242,244,255,.12); }

/* --- hero --- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
/* The place for a real frame from a DarqlineMP server; a soft glow until there is one. */
.hero-shot { position: absolute; inset: 0 0 0 38%; z-index: -2; background: radial-gradient(ellipse at 60% 45%, rgba(0,157,255,.16), transparent 60%), radial-gradient(ellipse at 85% 80%, rgba(181,72,255,.14), transparent 55%); }
.hero-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night), transparent 45%), linear-gradient(0deg, var(--night), transparent 25%); }
.hero .wrap { width: 100%; }
.lane { display: flex; align-items: flex-end; height: 40px; margin: 0 0 30px calc(50% - 50vw); width: calc(50vw - 50% + min(560px, 92%)); filter: drop-shadow(0 0 5px rgba(80,100,255,.65)); }
.lane .run { flex: 1; height: 3px; margin-bottom: 8px; background: linear-gradient(90deg, transparent, #1e8cff 60%); transform-origin: left; }
.lane svg { width: 300px; height: 40px; flex: none; overflow: visible; }
.lane .jog { fill: none; stroke: url(#laneGrad); stroke-width: 3; stroke-dasharray: 280; }
.lane .low { fill: url(#laneGrad); }
.lane .hub { transform-box: fill-box; transform-origin: center; }
.lane .halo { fill: #3a5bff; filter: blur(5px); }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: .98; letter-spacing: -.02em; font-weight: 600; margin: 0 0 26px; }
.hero .lead { color: var(--haze); font-size: clamp(17px, 1.9vw, 21px); max-width: 33em; margin: 0 0 34px; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.status { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 0; color: var(--haze); font-size: 15px; }
.status .node { color: var(--signal); }
/* The one load sequence: the run comes in, the jog draws, the node lights, the words follow. */
@media (prefers-reduced-motion: no-preference) {
  .lane .run { animation: run .8s var(--ease) both; }
  .lane .jog { animation: jog .5s ease-out .7s both; }
  .lane .low { animation: fade .4s ease-out .95s both; }
  .lane .hub { animation: lit .55s var(--ease) 1.1s both; }
  .hero h1, .hero .lead, .cta, .status { animation: rise .8s var(--ease) both; }
  .hero h1 { animation-delay: .35s; } .hero .lead { animation-delay: .5s; } .cta { animation-delay: .65s; } .status { animation-delay: .8s; }
}
@keyframes run { from { transform: scaleX(0); } }
@keyframes jog { from { stroke-dashoffset: 280; } }
@keyframes fade { from { opacity: 0; } }
@keyframes lit { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.3); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* --- facts --- */
.facts { border-block: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0 auto; padding: 22px 20px; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--haze); font-size: 15.5px; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts .node { width: 8px; height: 8px; color: var(--route); box-shadow: none; }

/* --- sections --- */
.block { padding: 104px 0; }
.block.tight { padding-top: 24px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
.sub { color: var(--haze); max-width: 34em; margin: 0 0 40px; }
.sub.short { margin-bottom: 28px; }
/* Section headings sit on the page axis; narrow blocks follow them, wide ones span the column. */
.block > .wrap:not(.split) > h2, .block > .wrap:not(.split) > .sub { text-align: center; margin-inline: auto; }
.wrap > .narrow { max-width: 820px; margin-inline: auto; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); }
.points .node { margin-top: 8px; color: var(--route); }
.points.author .node { color: var(--forge); }
.points p { color: var(--haze); margin: 0; max-width: 36em; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 22px; left: calc((100% - 64px) / 6); right: calc((100% - 64px) / 6); height: 2px; background: var(--rule-2); }
.steps::after { background: var(--route); box-shadow: 0 0 10px rgba(0,157,255,.6); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.steps.in::after { transform: scaleX(1); }
.steps li { position: relative; text-align: center; }
.steps .n { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; border: 2px solid var(--rule-2); background: var(--night); font-weight: 600; transition: border-color .4s, box-shadow .4s; }
.steps.in .n { border-color: var(--route); box-shadow: 0 0 16px rgba(0,157,255,.45); }
.steps.in li:nth-child(2) .n { transition-delay: .6s; } .steps.in li:nth-child(3) .n { transition-delay: 1.2s; }
.steps p { color: var(--haze); margin: 0 auto; max-width: 24em; }

.needs { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.needs dt, .needs dd { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.needs dt { color: var(--haze); }
.needs dd { margin: 0; }
.needs dd small { display: block; color: var(--haze); font-size: 15.5px; margin-top: 4px; max-width: 40em; }

.dev .code { min-width: 0; }
.code { background: #070913; border: 1px solid var(--rule-2); border-top: 2px solid var(--forge); }
.code .file { padding: 10px 16px; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); }
.code pre { border: 0; background: none; padding: 18px 20px; font-size: 13.5px; line-height: 1.7; }
.code .k { color: #c792ea; } .code .s { color: #c3e88d; } .code .c { color: var(--mute); } .code .f { color: var(--link); }

.note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 24px 0; border-block: 1px solid var(--rule); }
.note .node { margin-top: 8px; color: var(--signal); }
.note p { color: var(--haze); margin: 0; max-width: 46em; }
.note b { color: var(--ink); font-weight: 600; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-top: 8px; border-right: 2px solid var(--haze); border-bottom: 2px solid var(--haze); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { color: var(--haze); margin: 0 0 20px; }

.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.social a { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.social a:hover b { color: var(--link); }
.social svg { width: 24px; height: 24px; flex: none; color: var(--haze); }
.social b { font-weight: 600; }
.social small { display: block; color: var(--haze); font-size: 14.5px; }

/* --- security page --- */
.doc-head { padding: 148px 0 36px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 14px; }
.doc-head p { color: var(--haze); max-width: 36em; margin: 0; font-size: 19px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 26px 110px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc summary { display: none; }
.toc nav { display: grid; gap: 2px; font-size: 15px; border-left: 1px solid var(--rule-2); }
.toc a { color: var(--mute); padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--route); }
.doc article section { padding-bottom: 56px; scroll-margin-top: 96px; }
.doc h2 { font-size: 28px; }
.doc p, .doc li { color: var(--haze); max-width: 40em; }
.doc b { color: var(--ink); font-weight: 600; }
.howto { padding-left: 22px; display: grid; gap: 10px; margin: 0 0 1em; }
.howto li { min-width: 0; }
.howto pre { margin-top: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.two h3 { color: var(--haze); font-size: 16px; font-weight: 400; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 13px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ticks.no li::before { width: 13px; height: 2px; top: 12px; border: 0; background: var(--signal); transform: none; }
.hosts { width: 100%; border-collapse: collapse; }
.hosts td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hosts td:first-child { width: 42%; padding-right: 16px; }
.hosts td:last-child { color: var(--haze); }
.keyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.keyline code { padding: 8px 10px; }
.copy { all: unset; cursor: pointer; font-size: 14px; padding: 8px 14px; background: rgba(242,244,255,.07); box-shadow: inset 0 0 0 1px var(--rule-2); }
.copy:hover { background: rgba(242,244,255,.13); }
.copy:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }

/* --- legal documents, rendered from docs/legal --- */
.legal { max-width: 800px; margin: 0 auto; padding: 140px 20px 100px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; }
.legal .meta { color: var(--haze); margin: 0 0 8px; }
.legal .versions { color: var(--mute); font-size: 15px; margin: 0 0 36px; }
.legal .older { border: 1px solid rgba(255,182,72,.35); background: rgba(255,182,72,.06); padding: 12px 16px; margin: 0 0 32px; color: var(--haze); }
.legal h2 { font-size: 23px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: #d3d7ec; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-top: 1px solid var(--rule-2); }
.table-wrap table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.table-wrap th { color: var(--haze); font-weight: 600; }
.table-wrap td { color: #d3d7ec; }
.table-wrap code { white-space: nowrap; overflow-wrap: normal; }

/* --- 404 --- */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 140px 20px 80px; }
.lost h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 12px; }
.lost p { color: var(--haze); margin: 0 0 28px; }
.lost .cta { justify-content: center; }

footer { border-top: 1px solid var(--rule); padding: 48px 0 56px; color: var(--mute); font-size: 14.5px; text-align: center; }
footer .brand img { width: 150px; margin: 0 auto 16px; opacity: .85; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 22px; }
footer .links a { color: var(--haze); text-decoration: none; }
footer .links a:hover { color: var(--ink); }
footer p { max-width: 52em; margin: 0 auto; }

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .social { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block-start: 10px; }
  .toc { position: static; border: 1px solid var(--rule-2); }
  .toc summary { display: block; cursor: pointer; padding: 12px 16px; font-weight: 600; }
  .toc nav { border-left: 0; padding: 0 16px 12px; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top .bar { height: 60px; }
  .brand img { width: 140px; }
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 14px; background: rgba(4,5,11,.97); border-bottom: 1px solid var(--rule); font-size: 17px; }
  .top.open nav { display: flex; }
  .top nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .top nav a[aria-current]::after, .top nav a[aria-current]::before { display: none; }
  .hero { padding-top: 104px; }
  .hero-shot { inset: 0; }
  .block { padding: 72px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before, .steps::after { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.in::after { transform: scaleY(1); }
  .steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; text-align: left; }
  .steps p { margin: 0; }
  /* The rail ends at the last circle: the text below it covers the rest. */
  .steps li:last-child::after { content: ""; position: absolute; z-index: 1; left: 0; top: 46px; bottom: -2px; width: 46px; background: var(--night); }
  .steps .n { margin: 0; }
  .needs { grid-template-columns: minmax(0, 1fr); }
  .needs dt { padding-bottom: 0; border-bottom: 0; }
  .needs dd { padding-top: 4px; }
  .code pre { font-size: 12px; }
  .social { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps::after { transform: none !important; transition: none; }
  .steps .n { transition: none; }
}
