1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
/* Match the source handbook's justified body text. */
.vp-doc p,
.vp-doc li {
text-align: justify;
}
/**
* ============================================================================
* "HUD" theme - ported from 174bg/manager/public/theme.css so the two
* 174bg sites (manager.174bg.net and handbook.174bg.net) share a look: a
* near-black navy backdrop with a faint cyan grid + radial glow, Orbitron
* headings, Rajdhani body text, and glassy cyan-bordered panels. Manager has
* no light mode at all, so this is applied unconditionally (see
* `appearance: "force-dark"` in config.mts) rather than scoped to `.dark`.
* ============================================================================
*/
:root {
--hud-bg: #070b14;
--hud-bg-grid: rgba(56, 189, 248, 0.06);
--hud-panel: rgba(15, 23, 42, 0.72);
--hud-panel-solid: #0f172a;
--hud-panel-border: rgba(56, 189, 248, 0.22);
--hud-panel-border-strong: rgba(56, 189, 248, 0.5);
--hud-text: #dbe7f3;
--hud-text-dim: #7e93ab;
--hud-accent: #38bdf8;
--hud-accent-2: #22d3ee;
--hud-accent-glow: rgba(56, 189, 248, 0.45);
--hud-row-alt: rgba(56, 189, 248, 0.04);
/* Map onto VitePress's own theme variables. */
--vp-font-family-base: "Rajdhani", system-ui, sans-serif;
--vp-c-bg: var(--hud-bg);
--vp-c-bg-alt: var(--hud-panel-solid);
--vp-c-bg-elv: var(--hud-panel-solid);
--vp-c-bg-soft: var(--hud-panel-solid);
--vp-c-border: var(--hud-panel-border);
--vp-c-divider: var(--hud-panel-border);
--vp-c-gutter: var(--hud-panel-border);
--vp-c-text-1: var(--hud-text);
--vp-c-text-2: var(--hud-text-dim);
--vp-c-text-3: var(--hud-text-dim);
--vp-c-brand-1: var(--hud-accent);
--vp-c-brand-2: var(--hud-accent-2);
--vp-c-brand-3: var(--hud-accent);
--vp-c-brand-soft: rgba(56, 189, 248, 0.16);
/* VitePress applies these to several nav/sidebar-internal elements (e.g.
`.content-body`, the sidebar curtain) directly, not just the outer
`.VPNavBar`/`.VPSidebar`. Setting them here (rather than force-overriding
just the outer elements with `!important`) keeps every part of the nav
bar - including bits VitePress itself makes transparent around the
title on wide/sidebar layouts - the same glass color instead of a
patchwork of the wrong shade. */
--vp-nav-bg-color: var(--hud-panel);
--vp-sidebar-bg-color: var(--hud-panel);
}
/* Faint cyan grid + top glow behind the whole site, like the Manager page. */
html,
body {
background-color: var(--hud-bg);
background-image:
radial-gradient(
ellipse 80% 60% at 50% -10%,
rgba(56, 189, 248, 0.18),
transparent 60%
),
linear-gradient(var(--hud-bg-grid) 1px, transparent 1px),
linear-gradient(90deg, var(--hud-bg-grid) 1px, transparent 1px);
background-size:
100% 100%,
44px 44px,
44px 44px;
background-attachment: fixed;
}
/* Nav bar and sidebar become frosted glass panels over that grid. Only blur
on the outer elements - `.content-body` sits *inside* `.VPNavBar`, so
giving it its own `backdrop-filter` too double-blurs the (already blurred)
layer beneath it, which compounds into a flat near-black block instead of
a translucent panel. */
.VPNavBar,
.VPSidebar {
backdrop-filter: blur(10px);
}
.VPNavBar {
border-bottom: 1px solid var(--hud-panel-border);
}
.VPSidebar {
border-right: 1px solid var(--hud-panel-border);
}
/* Orbitron for headings and nav/sidebar chrome, in place of the default font. */
.vp-doc h1,
.vp-doc h2,
.vp-doc h3,
.VPNavBarTitle .title,
.VPNavBarMenuLink,
.VPSidebarItem.level-0 > .item .text {
font-family: "Orbitron", sans-serif;
}
.VPNavBarTitle .title {
color: var(--hud-accent);
/* Orbitron is noticeably wider than the default font. VitePress gives the
title a fixed-width column matching the sidebar, so shrink the text (and
drop the extra letter-spacing) to fit - otherwise it overflows past its
column and visually overlaps the search box/nav links next to it on wide
(sidebar-visible) layouts. `text-overflow: ellipsis` is a safety net in
case it's ever still too wide (e.g. a longer title in the future). */
font-size: 0.75rem;
letter-spacing: 0.01em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.VPNavBarMenuLink,
.VPSidebarItem.level-0 > .item .text {
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 0.8em;
}
/* Page titles get the same gradient + glow treatment as Manager's <h1>. */
.vp-doc h1 {
font-weight: 900;
letter-spacing: 0.03em;
background: linear-gradient(120deg, var(--hud-accent), var(--hud-accent-2));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 0 28px var(--hud-accent-glow);
}
.vp-doc h2 {
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--hud-accent);
}
.vp-doc h3 {
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--hud-accent-2);
}
/* Content links: understated until hovered, like Manager's `a`/`a:hover`. */
.vp-doc :not(.header-anchor):not(.custom-block-title) > a,
.vp-doc a:not(.header-anchor) {
color: var(--hud-accent-2);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.15s ease;
}
.vp-doc a:not(.header-anchor):hover {
border-bottom-color: var(--hud-accent-2);
}
/* Ranks table styled like Manager's data tables. */
.vp-doc table {
border-collapse: collapse;
}
.vp-doc thead th {
font-family: "Orbitron", sans-serif;
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--hud-accent);
border-bottom: 2px solid var(--hud-panel-border-strong);
}
.vp-doc tbody tr:nth-child(even) {
background: var(--hud-row-alt);
}
.vp-doc tbody tr:hover {
background: rgba(56, 189, 248, 0.1);
}
/**
* Role "Prerequisites" lists use a `::: info` container. Style it as a glassy
* HUD panel (like Manager's `#required-info`/`#anonymous` cards) instead of
* VitePress's default boxed callout.
*/
.custom-block.info {
background: var(--hud-panel);
border: 1px solid var(--hud-panel-border);
border-radius: 14px;
backdrop-filter: blur(10px);
}
.custom-block.info .custom-block-title {
font-family: "Orbitron", sans-serif;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--hud-accent);
}
/**
* The local search modal's input row (`.search-bar`) has a border but no
* background of its own by default, so it blends into the modal shell
* behind it and barely reads as a distinct field. Give it its own panel
* shade to match the rest of the HUD chrome.
*/
.VPLocalSearchBox .search-bar {
background-color: var(--hud-panel-solid);
}
/**
* Same problem for the collapsed search button that sits in the top bar:
* VitePress gives it `background-color: var(--vp-c-bg-alt)` (the same solid
* navy as the button in the modal) but only adds a visible border on hover,
* so at rest it barely stands out against the nav bar's translucent glass
* behind it. Add a persistent border to match the rest of the HUD chrome.
*/
.DocSearch-Button {
border-color: var(--hud-panel-border);
}
|