@nitrimandylis/flick 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/flick.js +3597 -0
- package/man/flick.1 +104 -0
- package/package.json +63 -4
- package/room/favicon.svg +1 -0
- package/room/fonts/space-grotesk.woff2 +0 -0
- package/room/fonts/space-mono.woff2 +0 -0
- package/room/room.html +80 -0
- package/room/room.js +551 -0
- package/room/style.css +389 -0
package/room/style.css
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Space Grotesk";
|
|
3
|
+
src: url("/fonts/space-grotesk.woff2") format("woff2");
|
|
4
|
+
font-weight: 300 700;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
}
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: "Space Mono";
|
|
9
|
+
src: url("/fonts/space-mono.woff2") format("woff2");
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
--void: #060a12;
|
|
16
|
+
--glass: rgba(6, 10, 18, 0.72);
|
|
17
|
+
--edge: rgba(232, 241, 245, 0.09);
|
|
18
|
+
--ink: #e8f1f5;
|
|
19
|
+
--mute: #7d8a9a;
|
|
20
|
+
--cyan: #3df5ff;
|
|
21
|
+
--magenta: #ff3dcb;
|
|
22
|
+
--glow: 0 0 6px rgba(61, 245, 255, 0.55), 0 0 18px rgba(61, 245, 255, 0.25);
|
|
23
|
+
--sans: "Space Grotesk", system-ui, sans-serif;
|
|
24
|
+
--mono: "Space Mono", ui-monospace, monospace;
|
|
25
|
+
--ease: cubic-bezier(0.23, 1, 0.32, 1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* { box-sizing: border-box; }
|
|
29
|
+
|
|
30
|
+
html, body {
|
|
31
|
+
margin: 0;
|
|
32
|
+
height: 100%;
|
|
33
|
+
background: var(--void);
|
|
34
|
+
color: var(--ink);
|
|
35
|
+
font-family: var(--sans);
|
|
36
|
+
font-size: 17px;
|
|
37
|
+
line-height: 1.5;
|
|
38
|
+
-webkit-font-smoothing: antialiased;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
button, input { font: inherit; color: inherit; }
|
|
42
|
+
|
|
43
|
+
button { cursor: pointer; }
|
|
44
|
+
|
|
45
|
+
:focus-visible {
|
|
46
|
+
outline: 2px solid var(--cyan);
|
|
47
|
+
outline-offset: 3px;
|
|
48
|
+
border-radius: 6px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.time { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
52
|
+
|
|
53
|
+
[hidden] { display: none !important; }
|
|
54
|
+
|
|
55
|
+
/* ---------- the neon sign (gate + landing) ---------- */
|
|
56
|
+
|
|
57
|
+
.sign {
|
|
58
|
+
border: 0;
|
|
59
|
+
background: none;
|
|
60
|
+
padding: 0.1em 0.2em;
|
|
61
|
+
font-size: clamp(64px, 13vw, 168px);
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
letter-spacing: -0.035em;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
color: #eafeff;
|
|
66
|
+
text-shadow:
|
|
67
|
+
0 0 4px rgba(61, 245, 255, 0.9),
|
|
68
|
+
0 0 14px rgba(61, 245, 255, 0.6),
|
|
69
|
+
0 0 42px rgba(61, 245, 255, 0.35),
|
|
70
|
+
0 0 90px rgba(61, 245, 255, 0.18);
|
|
71
|
+
animation: ignite 420ms steps(1, end) both;
|
|
72
|
+
transition: text-shadow 200ms var(--ease), transform 160ms var(--ease);
|
|
73
|
+
}
|
|
74
|
+
.sign:hover {
|
|
75
|
+
text-shadow:
|
|
76
|
+
0 0 4px rgba(61, 245, 255, 1),
|
|
77
|
+
0 0 18px rgba(61, 245, 255, 0.75),
|
|
78
|
+
0 0 56px rgba(61, 245, 255, 0.45),
|
|
79
|
+
0 0 120px rgba(61, 245, 255, 0.25);
|
|
80
|
+
}
|
|
81
|
+
.sign:active { transform: scale(0.98); }
|
|
82
|
+
.sign:disabled { opacity: 0.35; animation: none; cursor: default; }
|
|
83
|
+
|
|
84
|
+
/* Two flickers, then it holds: a tube catching. */
|
|
85
|
+
@keyframes ignite {
|
|
86
|
+
0% { opacity: 0.08; text-shadow: none; }
|
|
87
|
+
18% { opacity: 1; }
|
|
88
|
+
30% { opacity: 0.15; text-shadow: none; }
|
|
89
|
+
52% { opacity: 1; }
|
|
90
|
+
62% { opacity: 0.4; }
|
|
91
|
+
74% { opacity: 1; }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ---------- full-screen panels (landing, gate, empty room) ---------- */
|
|
95
|
+
|
|
96
|
+
.panel {
|
|
97
|
+
position: fixed;
|
|
98
|
+
inset: 0;
|
|
99
|
+
overflow-y: auto;
|
|
100
|
+
display: grid;
|
|
101
|
+
place-content: safe center;
|
|
102
|
+
justify-items: center;
|
|
103
|
+
gap: 28px;
|
|
104
|
+
padding: 32px;
|
|
105
|
+
text-align: center;
|
|
106
|
+
background:
|
|
107
|
+
radial-gradient(60% 50% at 50% 55%, rgba(61, 245, 255, 0.06), transparent 70%),
|
|
108
|
+
var(--void);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.panel p { margin: 0; max-width: 34ch; color: var(--mute); }
|
|
112
|
+
.panel .lead { color: var(--ink); font-size: 20px; }
|
|
113
|
+
|
|
114
|
+
.name {
|
|
115
|
+
display: grid;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
justify-items: center;
|
|
118
|
+
}
|
|
119
|
+
.name label { color: var(--mute); font-size: 15px; }
|
|
120
|
+
.name input {
|
|
121
|
+
width: 15ch;
|
|
122
|
+
border: 0;
|
|
123
|
+
border-bottom: 1px solid var(--edge);
|
|
124
|
+
background: transparent;
|
|
125
|
+
padding: 6px 2px;
|
|
126
|
+
font-size: 26px;
|
|
127
|
+
text-align: center;
|
|
128
|
+
outline: none;
|
|
129
|
+
transition: border-color 200ms var(--ease);
|
|
130
|
+
}
|
|
131
|
+
.name input:focus { border-color: var(--cyan); }
|
|
132
|
+
|
|
133
|
+
.quiet-button {
|
|
134
|
+
border: 1px solid var(--edge);
|
|
135
|
+
background: transparent;
|
|
136
|
+
border-radius: 999px;
|
|
137
|
+
padding: 10px 22px;
|
|
138
|
+
}
|
|
139
|
+
.quiet-button { transition: border-color 160ms var(--ease), color 160ms var(--ease), transform 140ms var(--ease); }
|
|
140
|
+
.quiet-button:active { transform: scale(0.97); }
|
|
141
|
+
@media (hover: hover) and (pointer: fine) {
|
|
142
|
+
.quiet-button:hover { border-color: var(--cyan); color: #fff; }
|
|
143
|
+
.stars button:hover { border-color: var(--cyan); }
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ---------- empty room ---------- */
|
|
147
|
+
|
|
148
|
+
.panel .nothing-on {
|
|
149
|
+
font-size: clamp(32px, 5.4vw, 64px);
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
letter-spacing: -0.03em;
|
|
152
|
+
line-height: 1.05;
|
|
153
|
+
color: var(--ink);
|
|
154
|
+
max-width: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.panel code {
|
|
158
|
+
font-family: var(--mono);
|
|
159
|
+
font-size: 0.92em;
|
|
160
|
+
color: var(--cyan);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* ---------- stage: the player and what floats over it ---------- */
|
|
164
|
+
|
|
165
|
+
.stage { position: fixed; inset: 0; background: #000; }
|
|
166
|
+
.stage video { width: 100%; height: 100%; display: block; background: #000; accent-color: var(--cyan); }
|
|
167
|
+
|
|
168
|
+
/* Subtitles in the room's type, on a soft plate rather than a black bar. */
|
|
169
|
+
.stage video::cue {
|
|
170
|
+
font-family: var(--sans);
|
|
171
|
+
font-size: 1.05em;
|
|
172
|
+
color: #fff;
|
|
173
|
+
background: rgba(6, 10, 18, 0.62);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.pill {
|
|
177
|
+
position: absolute;
|
|
178
|
+
z-index: 3;
|
|
179
|
+
top: 16px;
|
|
180
|
+
right: 16px;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: 14px;
|
|
184
|
+
max-width: calc(100vw - 32px);
|
|
185
|
+
padding: 8px 8px 8px 16px;
|
|
186
|
+
border: 1px solid var(--edge);
|
|
187
|
+
border-radius: 999px;
|
|
188
|
+
background: var(--glass);
|
|
189
|
+
backdrop-filter: blur(14px) saturate(1.2);
|
|
190
|
+
-webkit-backdrop-filter: blur(14px) saturate(1.2);
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
transition: opacity 220ms var(--ease), transform 220ms var(--ease);
|
|
194
|
+
}
|
|
195
|
+
.pill.asleep { opacity: 0; transform: translateY(-6px); pointer-events: none; transition-duration: 160ms; }
|
|
196
|
+
|
|
197
|
+
.dot {
|
|
198
|
+
width: 8px;
|
|
199
|
+
height: 8px;
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
flex: none;
|
|
202
|
+
background: var(--cyan);
|
|
203
|
+
box-shadow: var(--glow);
|
|
204
|
+
}
|
|
205
|
+
.dot.waiting { background: var(--mute); box-shadow: none; animation: breathe 2.4s ease-in-out infinite; }
|
|
206
|
+
.dot.drift { background: var(--magenta); box-shadow: 0 0 6px rgba(255, 61, 203, 0.6), 0 0 16px rgba(255, 61, 203, 0.3); }
|
|
207
|
+
@keyframes breathe { 50% { opacity: 0.35; } }
|
|
208
|
+
|
|
209
|
+
.pill .film { color: var(--mute); overflow: hidden; text-overflow: ellipsis; max-width: 24ch; }
|
|
210
|
+
.pill .time { color: var(--ink); }
|
|
211
|
+
.pill .time .of { color: var(--mute); }
|
|
212
|
+
|
|
213
|
+
.resync {
|
|
214
|
+
border: 0;
|
|
215
|
+
background: none;
|
|
216
|
+
padding: 0;
|
|
217
|
+
color: var(--magenta);
|
|
218
|
+
text-decoration: underline;
|
|
219
|
+
text-underline-offset: 3px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.cc {
|
|
223
|
+
border: 1px solid var(--edge);
|
|
224
|
+
border-radius: 6px;
|
|
225
|
+
background: transparent;
|
|
226
|
+
padding: 2px 6px;
|
|
227
|
+
font-size: 12px;
|
|
228
|
+
font-weight: 600;
|
|
229
|
+
letter-spacing: 0.04em;
|
|
230
|
+
color: var(--mute);
|
|
231
|
+
transition: color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
|
|
232
|
+
}
|
|
233
|
+
.cc.on { color: #fff; border-color: var(--cyan); box-shadow: var(--glow); }
|
|
234
|
+
|
|
235
|
+
.icon-button {
|
|
236
|
+
display: grid;
|
|
237
|
+
place-items: center;
|
|
238
|
+
width: 32px;
|
|
239
|
+
height: 32px;
|
|
240
|
+
border: 0;
|
|
241
|
+
border-radius: 50%;
|
|
242
|
+
background: transparent;
|
|
243
|
+
transition: background 160ms var(--ease);
|
|
244
|
+
}
|
|
245
|
+
.icon-button:hover { background: rgba(232, 241, 245, 0.08); }
|
|
246
|
+
.icon-button svg { width: 16px; height: 16px; }
|
|
247
|
+
|
|
248
|
+
/* Top centre: the bottom of the frame belongs to subtitles and the play bar. */
|
|
249
|
+
.toast {
|
|
250
|
+
position: absolute;
|
|
251
|
+
z-index: 3;
|
|
252
|
+
left: 50%;
|
|
253
|
+
top: 16px;
|
|
254
|
+
transform: translate(-50%, 0);
|
|
255
|
+
padding: 10px 18px;
|
|
256
|
+
border: 1px solid var(--edge);
|
|
257
|
+
border-left: 2px solid var(--cyan);
|
|
258
|
+
border-radius: 10px;
|
|
259
|
+
background: var(--glass);
|
|
260
|
+
backdrop-filter: blur(14px);
|
|
261
|
+
-webkit-backdrop-filter: blur(14px);
|
|
262
|
+
font-size: 15px;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
pointer-events: none;
|
|
265
|
+
transition: opacity 200ms var(--ease), transform 200ms var(--ease);
|
|
266
|
+
}
|
|
267
|
+
.toast.gone { opacity: 0; transform: translate(-50%, -8px); transition-duration: 150ms; }
|
|
268
|
+
|
|
269
|
+
.curtain {
|
|
270
|
+
position: absolute;
|
|
271
|
+
z-index: 2;
|
|
272
|
+
inset: 0;
|
|
273
|
+
display: grid;
|
|
274
|
+
place-content: center;
|
|
275
|
+
justify-items: center;
|
|
276
|
+
gap: 18px;
|
|
277
|
+
background: rgba(6, 10, 18, 0.94);
|
|
278
|
+
transition: opacity 240ms var(--ease);
|
|
279
|
+
}
|
|
280
|
+
.curtain.gone { opacity: 0; pointer-events: none; transition-duration: 180ms; }
|
|
281
|
+
.curtain p { margin: 0; max-width: 36ch; font-size: 22px; letter-spacing: -0.01em; text-align: center; }
|
|
282
|
+
.curtain .line {
|
|
283
|
+
width: 160px;
|
|
284
|
+
height: 2px;
|
|
285
|
+
background: rgba(61, 245, 255, 0.15);
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
border-radius: 2px;
|
|
288
|
+
}
|
|
289
|
+
.curtain .line::after {
|
|
290
|
+
content: "";
|
|
291
|
+
display: block;
|
|
292
|
+
height: 100%;
|
|
293
|
+
width: 100%;
|
|
294
|
+
background: var(--cyan);
|
|
295
|
+
box-shadow: var(--glow);
|
|
296
|
+
transform-origin: left;
|
|
297
|
+
animation: fill 6s linear forwards;
|
|
298
|
+
}
|
|
299
|
+
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
300
|
+
|
|
301
|
+
/* ---------- after the film ---------- */
|
|
302
|
+
|
|
303
|
+
.after {
|
|
304
|
+
position: fixed;
|
|
305
|
+
inset: 0;
|
|
306
|
+
overflow-y: auto;
|
|
307
|
+
background: var(--void);
|
|
308
|
+
}
|
|
309
|
+
.backdrop {
|
|
310
|
+
position: absolute;
|
|
311
|
+
inset: 0 0 auto 0;
|
|
312
|
+
height: 78vh;
|
|
313
|
+
background-size: cover;
|
|
314
|
+
background-position: center 30%;
|
|
315
|
+
opacity: 0.38;
|
|
316
|
+
mask-image: linear-gradient(to bottom, #000 30%, transparent);
|
|
317
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
|
|
318
|
+
}
|
|
319
|
+
.after-body {
|
|
320
|
+
position: relative;
|
|
321
|
+
max-width: 1080px;
|
|
322
|
+
margin: 0 auto;
|
|
323
|
+
padding: 26vh 40px 80px;
|
|
324
|
+
display: grid;
|
|
325
|
+
grid-template-columns: minmax(0, 62ch) 300px;
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
gap: 56px;
|
|
328
|
+
align-items: start;
|
|
329
|
+
}
|
|
330
|
+
.after h1 {
|
|
331
|
+
grid-column: 1 / -1;
|
|
332
|
+
margin: 0;
|
|
333
|
+
font-size: clamp(48px, 8vw, 104px);
|
|
334
|
+
font-weight: 600;
|
|
335
|
+
letter-spacing: -0.04em;
|
|
336
|
+
line-height: 0.95;
|
|
337
|
+
}
|
|
338
|
+
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -36px 0 0; grid-column: 1 / -1; color: var(--mute); }
|
|
339
|
+
.tagline { margin: 0 0 18px; font-size: 22px; line-height: 1.35; color: #fff; }
|
|
340
|
+
.plot, .about { margin: 0 0 18px; }
|
|
341
|
+
.about { color: var(--mute); }
|
|
342
|
+
.credits { margin: 28px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
|
|
343
|
+
.credits dt { color: var(--mute); }
|
|
344
|
+
.credits dd { margin: 0; }
|
|
345
|
+
|
|
346
|
+
.verdict {
|
|
347
|
+
position: sticky;
|
|
348
|
+
top: 32px;
|
|
349
|
+
display: grid;
|
|
350
|
+
gap: 18px;
|
|
351
|
+
padding: 24px;
|
|
352
|
+
border: 1px solid var(--edge);
|
|
353
|
+
border-radius: 20px;
|
|
354
|
+
background: var(--glass);
|
|
355
|
+
backdrop-filter: blur(14px);
|
|
356
|
+
-webkit-backdrop-filter: blur(14px);
|
|
357
|
+
}
|
|
358
|
+
.verdict .quiet-button { white-space: nowrap; }
|
|
359
|
+
.verdict h2 { margin: 0; font-size: 20px; font-weight: 500; }
|
|
360
|
+
.verdict p { margin: 0; color: var(--mute); }
|
|
361
|
+
.stars { display: flex; gap: 8px; }
|
|
362
|
+
.stars button {
|
|
363
|
+
width: 44px;
|
|
364
|
+
height: 44px;
|
|
365
|
+
border: 1px solid var(--edge);
|
|
366
|
+
border-radius: 50%;
|
|
367
|
+
background: transparent;
|
|
368
|
+
font-size: 18px;
|
|
369
|
+
transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease), transform 140ms var(--ease);
|
|
370
|
+
}
|
|
371
|
+
.stars button:active { transform: scale(0.95); }
|
|
372
|
+
.stars button.picked { border-color: var(--cyan); background: rgba(61, 245, 255, 0.12); box-shadow: var(--glow); }
|
|
373
|
+
.reveal { display: flex; gap: 32px; }
|
|
374
|
+
.reveal div { display: grid; }
|
|
375
|
+
.reveal strong { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #fff; text-shadow: var(--glow); }
|
|
376
|
+
.reveal span { color: var(--mute); }
|
|
377
|
+
|
|
378
|
+
@media (max-width: 760px) {
|
|
379
|
+
.after-body { grid-template-columns: 1fr; padding: 30vh 22px 60px; gap: 36px; }
|
|
380
|
+
.pill .film { display: none; }
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* Reduced motion keeps the fades (they explain what changed) and drops movement and loops. */
|
|
384
|
+
@media (prefers-reduced-motion: reduce) {
|
|
385
|
+
*, *::before, *::after { animation: none !important; }
|
|
386
|
+
.pill.asleep { transform: none; }
|
|
387
|
+
.toast, .toast.gone { transform: translate(-50%, 0); }
|
|
388
|
+
.sign:active, .quiet-button:active, .stars button:active { transform: none; }
|
|
389
|
+
}
|