JSWAI commited on
Commit
3bddc4e
·
verified ·
1 Parent(s): cc03f43

Rename style.css to css/style.css

Browse files
Files changed (2) hide show
  1. css/style.css +317 -0
  2. style.css +0 -28
css/style.css ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ============================================================
2
+ RAIN WALKER — GLOBAL STYLES
3
+ ============================================================ */
4
+
5
+ :root {
6
+ --background: #000000;
7
+ --foreground: #ffffff;
8
+ }
9
+
10
+
11
+ /* ------------------------------------------------------------
12
+ RESET
13
+ ------------------------------------------------------------ */
14
+
15
+ * {
16
+ box-sizing: border-box;
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ html,
22
+ body {
23
+ width: 100%;
24
+ height: 100%;
25
+ overflow: hidden;
26
+
27
+ background: var(--background);
28
+ color: var(--foreground);
29
+ }
30
+
31
+ body {
32
+ position: fixed;
33
+ inset: 0;
34
+
35
+ font-family:
36
+ "Courier New",
37
+ Courier,
38
+ monospace;
39
+
40
+ overscroll-behavior: none;
41
+
42
+ /* Prevent accidental selection while interacting */
43
+ user-select: none;
44
+ -webkit-user-select: none;
45
+
46
+ /* Prevent mobile touch scrolling */
47
+ touch-action: none;
48
+ }
49
+
50
+
51
+ /* ============================================================
52
+ GAME
53
+ ============================================================ */
54
+
55
+ #game {
56
+ position: fixed;
57
+
58
+ inset: 0;
59
+
60
+ width: 100vw;
61
+ height: 100vh;
62
+
63
+ overflow: hidden;
64
+
65
+ background: #000000;
66
+ }
67
+
68
+
69
+ /*
70
+ Three.js creates this canvas automatically.
71
+ */
72
+
73
+ #game canvas {
74
+ position: absolute;
75
+
76
+ top: 0;
77
+ left: 0;
78
+
79
+ display: block;
80
+
81
+ width: 100%;
82
+ height: 100%;
83
+
84
+ outline: none;
85
+
86
+ /*
87
+ Important for the eventual hybrid low-poly /
88
+ pixel-art presentation.
89
+ */
90
+
91
+ image-rendering: pixelated;
92
+ image-rendering: crisp-edges;
93
+ }
94
+
95
+
96
+ /* ============================================================
97
+ LOADING SCREEN
98
+ ============================================================ */
99
+
100
+ #loading-screen {
101
+ position: fixed;
102
+
103
+ inset: 0;
104
+
105
+ z-index: 100;
106
+
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+
111
+ background: #000000;
112
+
113
+ opacity: 1;
114
+ visibility: visible;
115
+
116
+ transition:
117
+ opacity 1.2s ease,
118
+ visibility 1.2s ease;
119
+ }
120
+
121
+
122
+ /*
123
+ JavaScript adds this class once the GLB,
124
+ environment and renderer are ready.
125
+ */
126
+
127
+ #loading-screen.hidden {
128
+ opacity: 0;
129
+ visibility: hidden;
130
+
131
+ pointer-events: none;
132
+ }
133
+
134
+
135
+ .loader-content {
136
+ display: flex;
137
+ flex-direction: column;
138
+
139
+ align-items: center;
140
+
141
+ gap: 20px;
142
+ }
143
+
144
+
145
+ #loading-text {
146
+ font-size: 11px;
147
+
148
+ font-weight: 700;
149
+
150
+ letter-spacing: 4px;
151
+
152
+ color: rgba(255, 255, 255, 0.62);
153
+
154
+ text-transform: uppercase;
155
+ }
156
+
157
+
158
+ /* ------------------------------------------------------------
159
+ PIXEL LOADER
160
+ ------------------------------------------------------------ */
161
+
162
+ .loader-pixel {
163
+ width: 7px;
164
+ height: 7px;
165
+
166
+ background: #ffffff;
167
+
168
+ animation:
169
+ pixelPulse 1s steps(2, end) infinite;
170
+ }
171
+
172
+
173
+ @keyframes pixelPulse {
174
+
175
+ 0% {
176
+ opacity: 0.15;
177
+ transform: scale(1);
178
+ }
179
+
180
+ 50% {
181
+ opacity: 1;
182
+ transform: scale(1.5);
183
+ }
184
+
185
+ 100% {
186
+ opacity: 0.15;
187
+ transform: scale(1);
188
+ }
189
+ }
190
+
191
+
192
+ /* ============================================================
193
+ CINEMATIC SCREEN OVERLAY
194
+ ============================================================ */
195
+
196
+ #screen-overlay {
197
+ position: fixed;
198
+
199
+ inset: 0;
200
+
201
+ z-index: 50;
202
+
203
+ pointer-events: none;
204
+
205
+ background: #000000;
206
+
207
+ opacity: 1;
208
+
209
+ /*
210
+ main.js will fade this away when the scene starts.
211
+ */
212
+
213
+ transition: opacity 2s ease;
214
+ }
215
+
216
+
217
+ #screen-overlay.visible {
218
+ opacity: 1;
219
+ }
220
+
221
+
222
+ #screen-overlay.hidden {
223
+ opacity: 0;
224
+ }
225
+
226
+
227
+ /* ============================================================
228
+ OPTIONAL PIXEL / CRT ATMOSPHERE
229
+ ============================================================ */
230
+
231
+ /*
232
+ Very faint horizontal scan lines.
233
+
234
+ They're deliberately subtle because the character itself
235
+ will remain low-poly rather than becoming full pixel art.
236
+ */
237
+
238
+ #game::after {
239
+ content: "";
240
+
241
+ position: absolute;
242
+
243
+ inset: 0;
244
+
245
+ z-index: 10;
246
+
247
+ pointer-events: none;
248
+
249
+ background:
250
+ repeating-linear-gradient(
251
+ to bottom,
252
+ rgba(255, 255, 255, 0.012) 0px,
253
+ rgba(255, 255, 255, 0.012) 1px,
254
+ transparent 1px,
255
+ transparent 4px
256
+ );
257
+
258
+ opacity: 0.45;
259
+ }
260
+
261
+
262
+ /* ============================================================
263
+ VIGNETTE
264
+ ============================================================ */
265
+
266
+ #game::before {
267
+ content: "";
268
+
269
+ position: absolute;
270
+
271
+ inset: 0;
272
+
273
+ z-index: 11;
274
+
275
+ pointer-events: none;
276
+
277
+ background:
278
+ radial-gradient(
279
+ ellipse at center,
280
+ transparent 35%,
281
+ rgba(0, 0, 0, 0.18) 60%,
282
+ rgba(0, 0, 0, 0.72) 100%
283
+ );
284
+ }
285
+
286
+
287
+ /* ============================================================
288
+ MOBILE
289
+ ============================================================ */
290
+
291
+ @media (max-width: 700px) {
292
+
293
+ #loading-text {
294
+ font-size: 9px;
295
+
296
+ letter-spacing: 3px;
297
+ }
298
+
299
+ }
300
+
301
+
302
+ /* ============================================================
303
+ ACCESSIBILITY
304
+ ============================================================ */
305
+
306
+ @media (prefers-reduced-motion: reduce) {
307
+
308
+ .loader-pixel {
309
+ animation: none;
310
+ }
311
+
312
+ #loading-screen,
313
+ #screen-overlay {
314
+ transition-duration: 0.01ms;
315
+ }
316
+
317
+ }
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }