-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
368 lines (315 loc) · 8.23 KB
/
Copy pathstyle.css
File metadata and controls
368 lines (315 loc) · 8.23 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
/* ── Design tokens ─────────────────────────────────────────────── */
:root {
color-scheme: light;
--page: #f5f1ea;
--panel: #fffdf8;
--ink: #1e1a18;
--muted: #6d645d;
--rule: #d8cec3;
--accent: #955f3b;
--sat: env(safe-area-inset-top, 0px); /* iOS notch / Dynamic Island */
--sab: env(safe-area-inset-bottom, 0px); /* home indicator */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--page);
}
#cv-canvas {
display: block;
width: 100vw;
height: 100vh;
}
/* ── Atmosphere — subtle radial gradient for depth ─────────────── */
.atmosphere {
position: fixed;
inset: -10%;
pointer-events: none;
z-index: 1;
background:
radial-gradient(60% 52% at 14% 80%, rgba(45, 88, 128, 0.035), transparent 68%),
radial-gradient(55% 46% at 88% 14%, rgba(217, 119, 87, 0.04), transparent 68%);
}
/* ── Fixed corner links ─────────────────────────────────────────── */
.corner-links {
position: fixed;
top: calc(var(--sat) + 14px);
right: 24px;
display: flex;
align-items: center;
gap: 16px;
opacity: 0.3;
transition: opacity 0.2s;
z-index: 10;
}
.corner-links:hover { opacity: 0.7; }
.corner-links a {
display: flex;
align-items: center;
color: var(--muted);
text-decoration: none;
transition: color 160ms ease;
}
.corner-links a:hover { color: var(--ink); }
.corner-links svg {
width: 18px;
height: 18px;
}
.corner-apps-link {
font: 500 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.06em;
text-transform: uppercase;
padding-right: 4px;
border-right: 1px solid var(--rule);
margin-right: 4px;
}
/* ── Game switcher — floating pill bar ─────────────────────────── */
.game-switcher {
position: fixed;
bottom: calc(var(--sab) + 20px);
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
align-items: center;
gap: 2px;
padding: 5px;
border-radius: 999px;
background: color-mix(in srgb, var(--panel) 92%, white 8%);
border: 1px solid var(--rule);
box-shadow: 0 12px 32px rgb(54 40 23 / 0.06);
font: 500 10.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
opacity: 0.5;
transition: opacity 200ms ease;
}
.game-switcher:hover {
opacity: 1;
}
@media (max-width: 700px) {
.game-switcher {
font-size: 8.5px;
gap: 1px;
padding: 4px;
}
}
.switcher-btn {
background: transparent;
border: none;
cursor: pointer;
color: var(--muted);
padding: 7px 14px;
font: inherit;
letter-spacing: inherit;
text-transform: inherit;
transition: all 160ms ease;
white-space: nowrap;
word-break: keep-all;
border-radius: 999px;
}
.switcher-btn:hover {
color: var(--ink);
background: rgba(0,0,0,0.035);
}
.switcher-btn.active {
color: var(--ink);
font-weight: 600;
background: var(--page);
box-shadow: 0 1px 4px rgb(0 0 0 / 0.07);
}
@media (max-width: 700px) {
.switcher-btn { padding: 6px 10px; }
}
/* ── Score modal ────────────────────────────────────────────────── */
#score-modal {
display: none;
position: fixed;
inset: 0;
z-index: 100;
background: rgba(245,241,234,0.82);
backdrop-filter: blur(6px);
align-items: center;
justify-content: center;
}
#score-modal.visible {
display: flex;
}
.score-modal-box {
background: var(--panel);
border: 1px solid var(--rule);
border-radius: 18px;
padding: 32px 36px;
min-width: 280px;
max-width: 360px;
width: 90%;
display: flex;
flex-direction: column;
gap: 12px;
box-shadow: 0 18px 40px rgb(54 40 23 / 0.08);
}
.modal-game-label {
font: 600 10px/1 "SF Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
}
.modal-score-line {
font: 400 15px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
color: var(--muted);
}
.modal-score-line strong {
font-weight: 700;
color: var(--ink);
}
.score-modal-box label {
font: 400 12px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
color: var(--muted);
}
#player-name {
width: 100%;
border: 1px solid var(--rule);
border-radius: 8px;
padding: 10px 12px;
font: 400 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
color: var(--ink);
background: var(--panel);
outline: none;
transition: border-color 160ms ease;
}
#player-name:focus { border-color: var(--accent); }
.score-modal-actions {
display: flex;
gap: 10px;
margin-top: 4px;
}
.score-modal-actions button {
flex: 1;
padding: 11px 0;
border: none;
border-radius: 8px;
cursor: pointer;
font: 600 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.04em;
text-transform: uppercase;
transition: all 160ms ease;
}
#modal-submit {
background: var(--ink);
color: var(--panel);
}
#modal-submit:hover { opacity: 0.82; }
#modal-submit:disabled { opacity: 0.35; cursor: default; }
.btn-secondary {
background: rgba(30,26,24,0.06);
color: var(--muted);
}
.btn-secondary:hover { background: rgba(30,26,24,0.1); }
.modal-contact {
font: 400 11px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
color: var(--rule);
text-align: center;
margin-top: 4px;
}
.modal-contact a {
color: var(--muted);
text-decoration: none;
transition: color 160ms ease;
}
.modal-contact a:hover { color: var(--accent); }
/* ── Leaderboard overlay ────────────────────────────────────────── */
#leaderboard-view {
display: none;
position: fixed;
inset: 0;
z-index: 90;
background: var(--page);
align-items: flex-start;
justify-content: center;
padding-top: 64px;
overflow-y: auto;
}
#leaderboard-view.visible {
display: flex;
}
.lb-inner {
width: 100%;
max-width: 500px;
padding: 0 24px 40px;
}
.lb-header {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 24px;
}
.lb-header h2 {
font: 700 24px/1 Georgia, "Times New Roman", serif;
color: var(--ink);
}
#lb-close {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
color: var(--muted);
padding: 4px;
transition: color 160ms ease;
}
#lb-close:hover { color: var(--ink); }
.lb-game-tabs {
display: flex;
gap: 6px;
margin-bottom: 20px;
}
.lb-tab {
background: none;
border: 1px solid var(--rule);
border-radius: 999px;
padding: 6px 14px;
cursor: pointer;
font: 500 10px/1 "SF Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted);
transition: all 160ms ease;
}
.lb-tab:hover { border-color: var(--accent); color: var(--ink); }
.lb-tab.active { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 600; }
.lb-table {
width: 100%;
border-collapse: collapse;
font: 400 13px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.lb-table thead th {
text-align: left;
font: 600 9px/1 "SF Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--rule);
padding: 0 0 10px;
border-bottom: 1px solid var(--rule);
}
.lb-table thead th:last-child { text-align: right; }
.lb-table tbody tr:not(:last-child) td {
border-bottom: 1px solid rgba(216,206,195,0.4);
}
.lb-table td {
padding: 10px 0;
color: var(--muted);
}
.lb-rank { color: var(--rule); width: 32px; }
.lb-score { text-align: right; font-weight: 600; color: var(--ink); }
.lb-loading {
text-align: center;
color: var(--rule);
padding: 24px 0;
font-size: 12px;
}
/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition: none !important; }
}