:root {
	--bg: #16181c;
	--raise: #1e2127;
	--sink: #101216;
	--line: #343944;
	--text: #e7e9ed;
	--dim: #9ca4b1;
	--steel: #abafba;
	--blade: #5cc4ff;
	--ok: #7fd6a2;
	--warn: #f0c674;
	--bad: #ff8f7d;
	--display: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
	--body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	--mono: Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box }
html { scroll-padding-top: 88px; color-scheme: dark; scrollbar-gutter: stable }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column }
main { flex: 1; padding-bottom: 72px }
img { max-width: 100%; height: auto; display: block }
a { color: var(--blade); text-underline-offset: 3px }
:focus-visible { outline: 2px solid var(--blade); outline-offset: 3px }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance }
h1 { font-size: clamp(28px, 4vw, 38px) }
h2 { font-size: 24px }
h3 { font-size: 18px; color: var(--steel) }
p { margin: 0 0 14px }
code, pre, kbd { font-family: var(--mono); font-size: .92em }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px }
.wrap.narrow { max-width: 760px }
main > section.wrap, main > .wrap.doc { padding-top: 48px }
.dim { color: var(--dim) }
.lead { font-size: 19px; color: var(--steel); max-width: 60ch }
.skip { position: absolute; left: -999px }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--sink); padding: 8px 12px }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 70px }
.brand img { width: 104px }
.top nav { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none }
.top nav a { color: var(--steel); text-decoration: none; white-space: nowrap; padding: 22px 0; border-bottom: 2px solid transparent }
.top nav a:hover { color: var(--text) }
.top nav a[aria-current], .me[aria-current] span { color: var(--text); border-bottom-color: var(--blade) }
.me { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0 }
.me span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.avatar { width: 34px; height: 34px; border-radius: 4px; flex: none; object-fit: cover }
.avatar.blank { display: grid; place-items: center; background: var(--line); color: var(--text); font-family: var(--display); text-transform: uppercase }

.button, button { display: inline-block; background: var(--blade); color: #06141d; border: 1px solid var(--blade); border-radius: 4px; padding: 10px 18px; font: 600 16px/1.3 var(--body); text-decoration: none; cursor: pointer }
.button:hover, button:hover { background: #8ad5ff; border-color: #8ad5ff }
.button.small { padding: 7px 14px }
.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 400 }
.ghost:hover { background: var(--raise); border-color: var(--steel) }
.danger { color: var(--bad) }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 0 }

.hero { background: radial-gradient(90% 120% at 78% 100%, #2b2f37 0, var(--bg) 62%); border-bottom: 1px solid var(--line); overflow: hidden }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 0 }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; margin-bottom: 20px }
.pitch { padding: 40px 0 }
.rack { position: relative; padding-top: 28%; align-self: end; margin-bottom: -2px }
.rack img { position: relative; width: 100% }
.blade { position: absolute; bottom: 58%; width: 1.5%; height: 52%; border-radius: 99px 99px 0 0; background: #fff; box-shadow: 0 0 10px 3px var(--c), 0 0 34px 8px var(--c); transform: translateX(-50%) scaleY(1); transform-origin: bottom; animation: ignite .5s cubic-bezier(.2, .9, .3, 1) both }
.b1 { left: 10.8%; --c: #ff5a4d; animation-delay: .25s }
.b2 { left: 26.9%; --c: #5cc4ff; animation-delay: .4s }
.b3 { left: 42.8%; --c: #b57bff; animation-delay: .55s }
.b4 { left: 58.8%; --c: #ffc94d; animation-delay: .7s }
.b5 { left: 74.5%; --c: #62e08a; animation-delay: .85s }
.b6 { left: 88.4%; --c: #5cc4ff; animation-delay: 1s }
@keyframes ignite { from { transform: translateX(-50%) scaleY(0) } }

.rows h2, .split-head { margin-bottom: 22px }
.rows dl, .forms { margin: 0 }
.rows dl > div { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline }
.rows dt { font: 600 26px/1.2 var(--display); color: var(--text) }
.rows dd { margin: 0; color: var(--steel); max-width: 62ch }
.split-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap }

.powers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 10px }
.powers li { text-align: center; font-size: 14px; line-height: 1.3; color: var(--steel) }
.powers img { margin: 0 auto 8px; width: 64px; transition: transform .15s }
.powers li:hover img { transform: scale(1.12) }
.powers li:hover { color: var(--text) }

figure { margin: 0 }
figure a { display: block; overflow: hidden; border-radius: 4px; background: var(--sink) }
figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover }
figcaption { padding-top: 8px; color: var(--dim); font-size: 15px }
figcaption b { color: var(--text); font-weight: 600 }
.shots { display: grid; grid-template-columns: 2fr 1fr; gap: 20px }
.shots .big { grid-row: span 2 }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; margin-top: 24px }
.price { font: 600 56px/1.1 var(--display); color: var(--blade); margin: 14px 0 10px }
.buy h2 { margin: 40px 0 12px }
.buy li { margin-bottom: 8px }
.buy .dim { margin-top: 12px }
.close p { max-width: 60ch; color: var(--steel) }
.close h2 { margin-bottom: 12px; font-size: 30px }

.doc { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px }
.doc aside nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px }
.doc aside a { color: var(--dim); text-decoration: none }
.doc aside a:hover { color: var(--text) }
.doc article > section { padding-top: 40px }
.doc h2 { margin-bottom: 14px }
.doc h3 { margin: 26px 0 4px }
.doc p, .doc li, .prose li { max-width: 70ch }
.doc li, .prose li { margin-bottom: 8px }
.doc figure { margin-top: 18px }
.doc .powers li { margin: 0 }
.forms > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line) }
.forms dt { font-weight: 600 }
.forms dd { margin: 0; color: var(--steel) }
details { border-top: 1px solid var(--line); padding: 12px 0 }
summary { cursor: pointer }
details p { margin-top: 10px; color: var(--steel) }

.login { text-align: left }
.login h1, .prose h1 { margin-bottom: 16px }
.notice { margin: 20px 0 0; padding: 12px 16px; border-left: 3px solid var(--blade); background: var(--raise) }
.notice.bad { border-color: var(--bad) }
.crumb { margin-bottom: 10px }
.title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px }
.identity { display: flex; align-items: center; gap: 18px; margin-bottom: 24px }
.identity .avatar { width: 64px; height: 64px; font-size: 28px }
.identity p { margin: 4px 0 0 }
.facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 18px 0 30px }
.facts dt { color: var(--dim); font-size: 15px }
.facts dd { margin: 0; font: 600 22px/1.3 var(--display) }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--raise); padding: 22px; margin-top: 22px }
.panel h2 { font-size: 20px; margin-bottom: 14px }
.panel.team { border-color: #4b5568 }
.panel details { border: 0; padding: 0 }
.panel pre { background: var(--sink); border: 1px solid var(--line); border-radius: 4px; padding: 14px; overflow-x: auto }
.empty { border: 1px dashed var(--line); border-radius: 6px; padding: 28px; margin-top: 20px }
.empty p:last-child { margin: 0 }

.state { font-size: 14px; line-height: 1; padding: 5px 9px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap }
.state.ok { color: var(--ok) } .state.warn { color: var(--warn) } .state.bad { color: var(--bad) } .state.off { color: var(--dim) }
.tag { font-size: 13px; color: var(--blade); border: 1px solid; border-radius: 3px; padding: 1px 6px }
.list { list-style: none; margin: 20px 0 0; padding: 0; border-bottom: 1px solid var(--line) }
.list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-top: 1px solid var(--line); color: inherit; text-decoration: none }
.list a:hover { background: var(--raise) }
.list .main { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; overflow-wrap: anywhere }
.list .side { color: var(--dim); font-size: 15px }
.scroll { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums }
th { text-align: left; color: var(--dim); font-weight: 400 }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap }
td.end { text-align: right; padding-right: 0 }
td button { padding: 6px 12px; font-size: 15px }

form.inline { display: inline-flex; gap: 10px; flex-wrap: wrap }
form.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 22px 0 }
form.stack button { justify-self: start }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; align-items: end; margin-top: 20px }
form.grid .wide { grid-column: 1 / -1 }
form.grid button { justify-self: start }
form.grid + .dim { margin: 16px 0 0 }
label { display: block; color: var(--steel) }
input:not([type=hidden]), select, textarea { display: block; width: 100%; margin-top: 6px; background: var(--sink); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font: inherit }
input::placeholder { color: #6f7785 }
form.inline input:not([type=hidden]) { width: 240px; margin: 0 }
textarea { resize: vertical }

.tabs, .filter { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 18px 0 26px; overflow-x: auto }
.tabs a, .filter a { padding: 10px 0; color: var(--steel); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap }
.tabs a[aria-current], .filter a[aria-current] { color: var(--text); border-bottom-color: var(--blade) }
.filter { border: 0; margin: 0 }
.thread { list-style: none; margin: 26px 0; padding: 0 }
.thread > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line) }
.thread > li.team { background: linear-gradient(90deg, rgba(92, 196, 255, .09), transparent); padding-left: 14px; margin-left: -14px }
.thread .by { margin: 0 0 6px }
.thread time { color: var(--dim); font-size: 14px; margin-left: 6px }
.thread .text { margin: 0; overflow-wrap: anywhere }

footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 15px }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding-top: 22px; padding-bottom: 22px }
footer p { margin: 0 }
footer .links { display: flex; gap: 20px }

.strip { background: var(--sink); border-bottom: 1px solid var(--line) }
.flags { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 0 }
.flags a { display: block; padding: 4px; border-radius: 4px; border: 1px solid transparent; opacity: .55 }
.flags a:hover { opacity: 1 }
.flags a[aria-current] { opacity: 1; border-color: var(--blade) }
.flags img { width: 24px; height: 16px; border-radius: 2px }

.admin { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; padding-top: 40px; max-width: 1320px }
.admin aside nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px }
.admin aside a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; color: var(--steel); text-decoration: none }
.admin aside a:hover { background: var(--raise); color: var(--text) }
.admin aside a[aria-current] { background: var(--raise); color: var(--text); box-shadow: inset 3px 0 var(--blade) }
.count { background: var(--warn); color: #241a05; border-radius: 99px; padding: 0 8px; font-size: 14px; font-weight: 600 }
.admin .split-head { margin-bottom: 8px }
.help { color: var(--steel); max-width: 72ch; margin-bottom: 22px }
.gap { margin: 40px 0 12px }
.todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px }
.todo a { display: flex; gap: 18px; align-items: center; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none }
.todo a:hover { background: var(--raise) }
.todo .number { font: 600 34px/1 var(--display); color: var(--dim); min-width: 40px; text-align: center }
.todo .busy { border-color: var(--warn) }
.todo .busy .number { color: var(--warn) }
.todo b, .todo .dim { display: block }
.steps { margin: 0; padding-left: 22px }
.steps li { margin-bottom: 6px }
.search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 14px }
.search input:not([type=hidden]) { margin: 0 }
.admin .filter { flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px }
.hint { display: block; margin-top: 6px; color: var(--dim); font-size: 14px; line-height: 1.4 }
.admin form.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start }
.admin .panel form.grid:has([name=ip]) { align-items: end }
.admin form.grid > button { grid-column: 1 / -1 }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line) }
.choice:first-of-type { border-top: 0; padding-top: 0 }
.choice > div { flex: 1 1 320px }
.choice p { margin: 2px 0 0; color: var(--steel); max-width: 60ch }
td.long { white-space: normal; min-width: 200px; overflow-wrap: anywhere }

.tag.rank-owner { color: var(--warn) }
.tag.rank-admin { color: var(--blade) }
.tag.rank-support { color: var(--ok) }
.ranks { margin: 0 0 10px }
.ranks > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line) }
.ranks dt { font-weight: 600 }
.ranks dd { margin: 0; color: var(--steel) }
.member .actions { margin: 0; flex: none }
.panel.bad { border-color: var(--bad) }
.panel.bad .inline { width: 100% }

.editor .tools, .editor .sheet, .editor .note { display: none }
.editor.on .tools { display: flex }
.editor.on .sheet, .editor.on .note { display: block }
.editor.on textarea { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; margin: 0 }
.editor { position: relative }
.editor .tools { flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; padding: 8px; background: var(--raise); border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; position: sticky; top: 71px; z-index: 2 }
.editor .tools > span { display: flex; flex-wrap: wrap; gap: 4px; align-items: center }
.editor .tool { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--text); font: 15px/1 var(--body); cursor: pointer }
.editor .tool:hover { background: var(--line); border-color: transparent }
.editor .tool mark { padding: 0 4px }
.editor .tools select { width: auto; max-width: 130px; height: 34px; margin: 0; padding: 4px 6px; font-size: 15px }
.editor .color { grid-auto-flow: column; gap: 4px }
.editor .color input { width: 20px; height: 20px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer }
.editor .photo { border-color: var(--line); position: relative }
.editor .photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0 }
.editor .photo:focus-within, .editor .color:focus-within { outline: 2px solid var(--blade) }
.editor .sheet { min-height: 190px; max-height: 640px; overflow-y: auto; background: var(--sink); border: 1px solid var(--line); border-radius: 0 0 4px 4px; padding: 16px 18px; color: var(--text); overflow-wrap: anywhere }
.editor .sheet:focus { outline: 2px solid var(--blade); outline-offset: -1px }
.editor .note { margin: 8px 0 0; font-size: 15px }
.editor .note.bad { color: var(--bad) }
.sheet img, .text img { max-width: min(100%, 720px); height: auto; border-radius: 4px; margin: 8px 0 }
.sheet blockquote, .text blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--line); color: var(--steel) }
.sheet pre, .text pre { background: var(--raise); padding: 12px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 }
.sheet h2, .sheet h3, .text h2, .text h3 { margin: 10px 0 6px; color: var(--text) }
.sheet ul, .sheet ol, .text ul, .text ol { margin: 8px 0; padding-left: 26px }
mark { background: var(--warn); color: #241a05; border-radius: 2px }

.terms { width: min(820px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--text) }
.terms[open] { display: flex; flex-direction: column }
.terms::backdrop { background: rgba(8, 9, 12, .78) }
.terms .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line) }
.terms .head h2 { margin: 0; font-size: 22px }
.terms .head button { padding: 4px 12px; font-size: 20px }
.terms .scroll-y { overflow-y: auto; padding: 18px 22px; flex: 1; min-height: 0 }
.terms .agree { padding: 16px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px }
.terms .agree button, .terms-page .agree button { justify-self: start }
.terms h3, .terms-page h3 { margin: 24px 0 8px; color: var(--text) }
.terms ul, .terms-page ul { padding-left: 22px; margin: 0 }
.terms li, .terms-page li { margin-bottom: 8px; color: var(--steel); max-width: 72ch }
.terms-page .agree { display: grid; gap: 14px; margin-top: 30px }
label.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text) }
label.check input:not([type=hidden]) { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blade) }

@media (max-width: 860px) {
	.top .wrap { flex-wrap: wrap; gap: 0 18px; justify-content: space-between; padding-top: 10px }
	.top nav { order: 3; flex: 1 0 100% }
	.top nav a { padding: 12px 0 }
	html { scroll-padding-top: 130px }
	.hero .wrap { grid-template-columns: 1fr; gap: 0 }
	.pitch { padding: 20px 0 }
	.blade { height: 36% }
	.rows dl > div, .forms > div { grid-template-columns: 1fr; gap: 4px }
	.shots { grid-template-columns: 1fr }
	.doc { grid-template-columns: minmax(0, 1fr); gap: 12px }
	.admin { grid-template-columns: minmax(0, 1fr); gap: 20px }
	.editor .tools { position: static }
	.ranks > div { grid-template-columns: 1fr; gap: 2px }
	.admin aside nav { position: static; flex-direction: row; overflow-x: auto }
	.admin aside a { white-space: nowrap }
	.doc aside nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; border: 0; padding: 0 }
}

@media (prefers-reduced-motion: reduce) {
	.blade { animation: none }
	.powers img { transition: none }
}
