/* shared look for the site, wiki and market: direction C (dark glass, thin white lines, pixel-stepped corners, cyan only on selection) */
@font-face { font-family: 'Pixel Operator'; src: url(fonts/PixelOperator.ttf); font-display: block; }
:root {
  --ink: #080a10; --glass: rgba(8, 10, 16, .78); --solid: #0e1119; --raise: #141826; --line: rgba(255, 255, 255, .16);
  --text: #fff; --mute: #a8abb4; --faint: #6c707a; --cyan: #7fe9ff; --gold: #ffe08a; --ori: #f5a43c; --red: #ff8a7a; --green: #8af07a; --lav: #cdbcf6;
  --step: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 4px, 2px 2px, 4px 2px);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 16px/24px 'Pixel Operator', monospace; -webkit-font-smoothing: none; }
body { margin: 0; overflow-x: hidden; }
img, canvas { image-rendering: pixelated; }
::selection { background: var(--cyan); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: 64px; line-height: 56px; letter-spacing: -1px; }
h2 { font-size: 32px; line-height: 32px; }
h3 { font-size: 16px; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); }
p { margin: 0 0 12px; max-width: 70ch; }
.mute { color: var(--mute); } .faint { color: var(--faint); } .gold { color: var(--gold); } .red { color: var(--red); } .green { color: var(--green); }
.num { font-variant-numeric: tabular-nums; }
.glass, .panel { position: relative; isolation: isolate; }
.glass::before, .panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--glass); box-shadow: inset 0 0 0 2px var(--line); clip-path: var(--step); }
.panel::before { background: var(--solid); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 16px 8px; text-decoration: none; position: relative; isolation: isolate; font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: var(--step); background: var(--glass); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn.main { color: #0c1220; } .btn.main::before { background: #f2f6ff; box-shadow: none; }
@media (hover: hover) { .btn:hover::before { box-shadow: inset 0 0 0 2px var(--cyan); } .btn.main:hover::before { background: #fff; box-shadow: inset 0 0 0 2px var(--cyan), inset 0 0 0 4px #fff; } }
.key { display: inline-block; min-width: 20px; padding: 0 5px 1px; text-align: center; background: #f2f6ff; color: #0c1220; clip-path: var(--step); line-height: 20px; }
.tag { display: inline-block; padding: 0 8px 1px; line-height: 20px; color: var(--ink); background: var(--gold); clip-path: var(--step); }
.tag.safe { background: var(--green); } .tag.mid { background: var(--gold); } .tag.edge { background: var(--red); } .tag.lav { background: var(--lav); } .tag.dim { background: rgba(255, 255, 255, .7); }
.field { position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 40px; }
.field::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(8, 10, 16, .9); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); clip-path: var(--step); }
.field:focus-within::before { box-shadow: inset 0 0 0 2px var(--cyan); }
.field input, .field select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 8px 0; }
.field select option { background: var(--solid); }
.ico { width: 32px; height: 32px; flex: none; }
.ico.big { width: 64px; height: 64px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-top: 2px solid var(--line); vertical-align: middle; }
th { font-weight: 400; color: var(--mute); white-space: nowrap; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 10, 16, .92); box-shadow: inset 0 -2px 0 var(--line); }
.top .bar { display: flex; align-items: center; gap: 16px; width: min(1280px, 100% - 32px); margin: 0 auto; min-height: 64px; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mute); }
.top .brand img { height: 36px; }
.top .grow { flex: 1; }
.top .links { display: flex; gap: 16px; }
.top .links a { text-decoration: none; color: var(--mute); padding: 10px 0; }
.top .links a:hover, .top .links a[aria-current=page] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); }
footer { width: min(1280px, 100% - 32px); margin: 0 auto; padding: 40px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--faint); }
footer a { color: var(--mute); }
@media (max-width: 760px) { .top .bar { flex-wrap: wrap; row-gap: 0; } .top .bar > .search { order: 9; width: 100%; flex: none; margin-bottom: 10px; } h1 { font-size: 32px; line-height: 32px; letter-spacing: 0; } .top .links { display: none; } .top .brand img { height: 28px; } .top .bar { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* phones: every tap target at least 44px */
@media (pointer: coarse), (max-width: 760px) {
  .btn, .field, .chip { min-height: 44px; }
  .top .brand { min-height: 44px; }
  footer a { display: inline-block; padding: 10px 4px; min-width: 44px; text-align: center; }
}
/* scrollbars: dark and thin, matching the page */
html { color-scheme: dark; scrollbar-color: rgba(255, 255, 255, .25) var(--ink); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); } ::-webkit-scrollbar-thumb:hover { background: rgba(127, 233, 255, .5); }
