forked from pointblank-club/pbctf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
412 lines (363 loc) · 10.8 KB
/
Copy pathglobals.css
File metadata and controls
412 lines (363 loc) · 10.8 KB
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ============================================================
PBCTF 5.0. Terminal HUD Design System
Dark cyberpunk / hacker terminal aesthetic.
Brand: Point Blank · Capture the Flag
============================================================ */
:root {
/* Surfaces. layered dark stack (void → elevated) */
--surface-void: #050507;
--surface-base: #0a0a0c;
--surface-1: #0e0e11;
--surface-2: #131318;
--surface-3: #1a1a21;
--surface-inset: #07070a;
/* Text */
--text-primary: #f5f5f7;
--text-secondary: rgba(245, 245, 247, 0.72);
--text-muted: rgba(245, 245, 247, 0.5);
--text-subtle: rgba(245, 245, 247, 0.32);
--text-disabled: rgba(245, 245, 247, 0.18);
/* Brand. neon green stays the identity */
--brand-primary: #00ff88;
--brand-primary-hover: #4dffae;
--brand-primary-press: #00cc6f;
--brand-primary-ink: #03110a;
--brand-soft: rgba(0, 255, 136, 0.1);
--brand-soft-2: rgba(0, 255, 136, 0.18);
--brand-glow: rgba(0, 255, 136, 0.32);
--brand-glow-strong: rgba(0, 255, 136, 0.55);
/* Accent. electric cyan, sparingly */
--accent-cyan: #38bdf8;
--accent-cyan-soft: rgba(56, 189, 248, 0.16);
/* Status */
--success: #00ff88;
--success-soft: rgba(0, 255, 136, 0.12);
--warning: #fbbf24;
--warning-soft: rgba(251, 191, 36, 0.12);
--danger: #f43f5e;
--danger-soft: rgba(244, 63, 94, 0.14);
--info: #38bdf8;
--info-soft: rgba(56, 189, 248, 0.12);
/* Borders */
--border-hairline: rgba(255, 255, 255, 0.06);
--border-soft: rgba(255, 255, 255, 0.1);
--border-default: rgba(255, 255, 255, 0.14);
--border-strong: rgba(255, 255, 255, 0.24);
--border-brand: rgba(0, 255, 136, 0.28);
--border-brand-strong: rgba(0, 255, 136, 0.55);
/* Shadows / glows */
--glow-sm: 0 0 12px rgba(0, 255, 136, 0.22);
--glow-md: 0 0 24px rgba(0, 255, 136, 0.32);
--glow-lg: 0 0 48px rgba(0, 255, 136, 0.4);
--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.4);
--shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 255, 136, 0.12);
/* Type system */
--font-display: "JetBrains Mono", "Space Grotesk", ui-monospace, monospace;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
--font-body: "Lexend", "Space Grotesk", system-ui, -apple-system, sans-serif;
--font-heading: "Space Grotesk", "Lexend", system-ui, sans-serif;
/* Radii. terminal: tight */
--radius-xs: 2px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 10px;
--radius-xl: 14px;
/* Compatibility shims for legacy shadcn primitives */
--background: 240 6% 4%;
--foreground: 240 5% 96%;
--card: 240 6% 5%;
--card-foreground: 240 5% 96%;
--popover: 240 6% 7%;
--popover-foreground: 240 5% 96%;
--primary: 152 100% 50%;
--primary-foreground: 152 80% 6%;
--secondary: 240 5% 11%;
--secondary-foreground: 240 5% 92%;
--muted: 240 5% 11%;
--muted-foreground: 240 5% 60%;
--accent: 240 5% 14%;
--accent-foreground: 240 5% 92%;
--destructive: 350 89% 60%;
--destructive-foreground: 240 5% 96%;
--border: 240 5% 16%;
--input: 240 5% 13%;
--ring: 152 100% 50%;
--radius: 6px;
}
@layer base {
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
@apply border-border;
}
html {
background: var(--surface-void);
color-scheme: dark;
}
body {
background: var(--surface-base);
color: var(--text-primary);
font-family: var(--font-body);
font-feature-settings: "ss01", "cv11";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
color: var(--text-primary);
letter-spacing: -0.02em;
}
::selection {
background: rgba(0, 255, 136, 0.35);
color: var(--text-primary);
}
/* Focus ring. accessible, on-brand */
:focus-visible {
outline: 2px solid var(--brand-primary);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
button:focus-visible,
a:focus-visible {
outline: 2px solid var(--brand-primary);
outline-offset: 3px;
}
}
/* ============================================================
Background. animated terminal grid + scanlines
============================================================ */
@keyframes grid-drift {
from { background-position: 0 0; }
to { background-position: 40px 40px; }
}
@keyframes scanline-drift {
0% { transform: translateY(-100%); }
100% { transform: translateY(100vh); }
}
@keyframes terminal-blink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}
@keyframes pulse-soft {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.65; transform: scale(0.92); }
}
@keyframes glow-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.35); }
50% { box-shadow: 0 0 0 4px rgba(0, 255, 136, 0); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes fade-up {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes glitch-x {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-1px); }
40% { transform: translateX(1px); }
60% { transform: translateX(-0.5px); }
80% { transform: translateX(0.5px); }
}
@layer utilities {
.anim-blink {
animation: terminal-blink 1.05s steps(2) infinite;
}
.anim-pulse-soft {
animation: pulse-soft 2.2s ease-in-out infinite;
}
.anim-fade-up {
animation: fade-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-glow-pulse {
animation: glow-pulse 2.4s ease-out infinite;
}
.anim-glitch:hover {
animation: glitch-x 0.28s linear 1;
}
/* Terminal grid background. subtle */
.bg-terminal-grid {
background-image:
linear-gradient(rgba(0, 255, 136, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 136, 0.045) 1px, transparent 1px);
background-size: 40px 40px;
background-position: 0 0;
}
.bg-terminal-grid-faint {
background-image:
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
background-size: 32px 32px;
}
/* Halo glow for hero sections */
.bg-halo {
background-image: radial-gradient(
ellipse 80% 60% at 50% 0%,
rgba(0, 255, 136, 0.18) 0%,
rgba(0, 255, 136, 0.06) 28%,
rgba(0, 255, 136, 0) 65%
);
}
.bg-halo-soft {
background-image: radial-gradient(
ellipse 70% 50% at 50% 30%,
rgba(0, 255, 136, 0.1) 0%,
rgba(0, 255, 136, 0) 60%
);
}
/* Scanline overlay */
.scanlines::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background-image: repeating-linear-gradient(
to bottom,
transparent 0,
transparent 2px,
rgba(0, 255, 136, 0.025) 3px,
transparent 4px
);
mix-blend-mode: screen;
z-index: 1;
}
/* Mono caret blink */
.caret::after {
content: "▌";
margin-left: 0.15em;
color: var(--brand-primary);
animation: terminal-blink 1.05s steps(2) infinite;
}
/* HUD corner brackets. use as `<div class="hud-corners">` */
.hud-corners {
position: relative;
}
.hud-corners::before,
.hud-corners::after {
content: "";
position: absolute;
width: 10px;
height: 10px;
border-color: var(--brand-primary);
border-style: solid;
pointer-events: none;
opacity: 0.7;
}
.hud-corners::before {
top: -1px;
left: -1px;
border-width: 1px 0 0 1px;
}
.hud-corners::after {
bottom: -1px;
right: -1px;
border-width: 0 1px 1px 0;
}
/* Scrollbar utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.thin-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.thin-scrollbar::-webkit-scrollbar-track { background: transparent; }
.thin-scrollbar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.thin-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(0, 255, 136, 0.3);
}
/* Text utilities */
.text-balance { text-wrap: balance; }
.text-mono { font-family: var(--font-mono); }
/* Glass surface. refined, less heavy */
.surface-card {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
border: 1px solid var(--border-soft);
box-shadow: var(--shadow-card);
}
.surface-elevated {
background: var(--surface-2);
border: 1px solid var(--border-default);
}
.surface-inset {
background: var(--surface-inset);
border: 1px solid var(--border-hairline);
}
/* Card surface.
* Translucent dark tint so the page's terminal grid reads through the
* card. The card is still measurably "darker" than the page so it
* registers as elevated, but the grid pattern is preserved as texture.
*
* Lift cues:
* - 1px inset top highlight (bevel from above)
* - quiet drop shadow
*
* NO internal gradients or halos — texture comes from the page grid
* showing through.
*/
.card-surface {
background-color: rgba(16, 16, 21, 0.55);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 1px 2px rgba(0, 0, 0, 0.5),
0 6px 18px -6px rgba(0, 0, 0, 0.55);
}
}
/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
.caret::after {
opacity: 1 !important;
animation: none !important;
}
}
/* Strip number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }
/* Legacy selectSlide kept for backward compat (used by a dropdown) */
@keyframes selectSlide {
0% { transform: scale(0.98); opacity: 0.8; }
50% { transform: scale(1.03); }
100% { transform: scale(1); opacity: 1; }
}
.animate-selectSlide { animation: selectSlide 0.35s ease-out; }
/* Glass utility classes. kept for compatibility but redefined */
.glass-effect {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-soft);
}
.glass-effect-light {
background: rgba(255, 255, 255, 0.025);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border-hairline);
}
/* Hide the floating reCAPTCHA v3 badge. Per Google's terms, the required
disclosure is shown inline on each auth form instead (see RecaptchaNotice). */
.grecaptcha-badge {
visibility: hidden;
}