class-studys 7.0.0 → 7.0.2
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/index.html +886 -2122
- package/package.json +2 -2
package/index.html
CHANGED
|
@@ -3,2176 +3,940 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>IGNITE OS
|
|
7
|
-
<meta name="description" content="IGNITE OS: games, movies from Drive and a real web tunnel. Dark, orange, clean.">
|
|
8
|
-
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230d0906'/%3E%3Ccircle cx='32' cy='32' r='17' fill='%23ff6b1a'/%3E%3Ccircle cx='26' cy='26' r='5' fill='%230d0906'/%3E%3C/svg%3E">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
11
|
-
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
|
|
6
|
+
<title>IGNITE OS</title>
|
|
12
7
|
<style>
|
|
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
|
-
background:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.
|
|
82
|
-
position: absolute; border-radius: 50%;
|
|
83
|
-
filter: blur(95px); opacity: calc(var(--glow) * 0.85);
|
|
84
|
-
mix-blend-mode: screen; pointer-events: none;
|
|
85
|
-
animation: drift 26s ease-in-out infinite alternate;
|
|
86
|
-
will-change: transform;
|
|
87
|
-
}
|
|
88
|
-
.blob-a {
|
|
89
|
-
width: 44vw; height: 44vw; left: -8vw; top: -12vh;
|
|
90
|
-
background: radial-gradient(circle, var(--accent), transparent 65%);
|
|
91
|
-
animation-duration: 30s;
|
|
92
|
-
}
|
|
93
|
-
.blob-b {
|
|
94
|
-
width: 36vw; height: 36vw; right: -6vw; top: 30vh;
|
|
95
|
-
background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, var(--accent2) 45%), transparent 65%);
|
|
96
|
-
animation-duration: 24s; animation-delay: -6s;
|
|
97
|
-
}
|
|
98
|
-
.blob-c {
|
|
99
|
-
width: 30vw; height: 30vw; left: 28vw; bottom: -14vh;
|
|
100
|
-
background: radial-gradient(circle, var(--accent2), transparent 65%);
|
|
101
|
-
animation-duration: 38s; animation-delay: -14s;
|
|
102
|
-
}
|
|
103
|
-
body[data-bg='grid'] .blob { opacity: calc(var(--glow) * 0.5); }
|
|
104
|
-
body[data-bg='stars'] .blob, body[data-bg='stars'] .bg-grid { display: none; }
|
|
105
|
-
body[data-bg='mesh'] .blob { animation: none; opacity: calc(var(--glow) * 0.55); }
|
|
106
|
-
|
|
107
|
-
@keyframes drift {
|
|
108
|
-
0% { transform: translate3d(0, 0, 0) scale(1); }
|
|
109
|
-
50% { transform: translate3d(6vw, -5vh, 0) scale(1.18); }
|
|
110
|
-
100% { transform: translate3d(-5vw, 4vh, 0) scale(0.94); }
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.bg-grid {
|
|
114
|
-
position: absolute; inset: 0;
|
|
115
|
-
background-image:
|
|
116
|
-
linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
|
117
|
-
linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
|
|
118
|
-
background-size: 56px 56px;
|
|
119
|
-
-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
|
|
120
|
-
mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
|
|
121
|
-
animation: gridPan 42s linear infinite alternate; opacity: 0.85;
|
|
122
|
-
}
|
|
123
|
-
body[data-bg='grid'] .bg-grid {
|
|
124
|
-
background-image:
|
|
125
|
-
linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
|
|
126
|
-
linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
|
|
127
|
-
opacity: 1;
|
|
128
|
-
}
|
|
129
|
-
@keyframes gridPan { from { background-position: 0 0; } to { background-position: 56px 112px; } }
|
|
130
|
-
|
|
131
|
-
.bg-noise {
|
|
132
|
-
position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
|
|
133
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
134
|
-
}
|
|
135
|
-
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
136
|
-
|
|
137
|
-
/* ─────────── nav ─────────── */
|
|
138
|
-
/* ─────────── nav ─────────── */
|
|
139
|
-
|
|
140
|
-
.nav {
|
|
141
|
-
position: sticky; top: 0; z-index: 90;
|
|
142
|
-
background: rgba(10, 7, 5, 0.62);
|
|
143
|
-
backdrop-filter: blur(calc(var(--blur) * 1.4)) saturate(1.4);
|
|
144
|
-
border-bottom: 1px solid var(--line);
|
|
145
|
-
}
|
|
146
|
-
.nav-inner {
|
|
147
|
-
max-width: 1220px; margin: 0 auto; padding: 14px 22px;
|
|
148
|
-
display: flex; align-items: center; gap: 18px;
|
|
149
|
-
}
|
|
150
|
-
.brand { display: flex; align-items: center; gap: 10px; }
|
|
151
|
-
.brand-mark {
|
|
152
|
-
width: 34px; height: 34px; border-radius: 10px;
|
|
153
|
-
display: grid; place-items: center;
|
|
154
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
155
|
-
color: var(--on-accent); font-size: 15px;
|
|
156
|
-
box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
|
|
157
|
-
}
|
|
158
|
-
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: 0.4px; }
|
|
159
|
-
.accent-text {
|
|
160
|
-
background: linear-gradient(90deg, var(--accent), var(--accent2));
|
|
161
|
-
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
162
|
-
}
|
|
163
|
-
.brand-ver {
|
|
164
|
-
font-size: 0.62rem; color: var(--muted); border: 1px solid var(--line);
|
|
165
|
-
padding: 2px 7px; border-radius: 99px; letter-spacing: 1px;
|
|
166
|
-
}
|
|
167
|
-
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
|
|
168
|
-
.nav-link {
|
|
169
|
-
padding: 7px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
|
|
170
|
-
color: var(--muted); transition: 0.25s var(--ease); background: none; border: none;
|
|
171
|
-
}
|
|
172
|
-
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
|
|
173
|
-
.btn-link { font: inherit; }
|
|
174
|
-
.btn-link:focus-visible { outline: 2px solid var(--accent); }
|
|
175
|
-
.nav-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }
|
|
176
|
-
.nav-clock {
|
|
177
|
-
font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
|
|
178
|
-
color: var(--muted); letter-spacing: 1px;
|
|
179
|
-
}
|
|
180
|
-
.profile-pill {
|
|
181
|
-
background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #000), color-mix(in srgb, var(--accent) 55%, #000));
|
|
182
|
-
color: #ffe9d6; padding: 6px 14px; border-radius: 99px;
|
|
183
|
-
font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; cursor: pointer;
|
|
184
|
-
box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
|
|
185
|
-
transition: 0.25s var(--ease);
|
|
186
|
-
}
|
|
187
|
-
.profile-pill:hover { transform: translateY(-1px); filter: brightness(1.1); }
|
|
188
|
-
|
|
189
|
-
/* ─────────── layout & hero ─────────── */
|
|
190
|
-
|
|
191
|
-
main { max-width: 1220px; margin: 0 auto; padding: 0 22px 60px; display: grid; gap: 22px; }
|
|
192
|
-
.hero { padding: 76px 8px 10px; }
|
|
193
|
-
|
|
194
|
-
.hero-eyebrow {
|
|
195
|
-
display: inline-flex; align-items: center; gap: 9px;
|
|
196
|
-
font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
|
|
197
|
-
color: var(--muted); margin-bottom: 18px;
|
|
198
|
-
}
|
|
199
|
-
.pulse-dot {
|
|
200
|
-
width: 8px; height: 8px; border-radius: 50%;
|
|
201
|
-
background: var(--accent); box-shadow: 0 0 12px var(--accent);
|
|
202
|
-
animation: pulse 1.8s ease-in-out infinite;
|
|
203
|
-
}
|
|
204
|
-
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }
|
|
205
|
-
|
|
206
|
-
.hero-title {
|
|
207
|
-
font-size: var(--hero-size); font-weight: 800; line-height: 1.04;
|
|
208
|
-
letter-spacing: -1.5px; max-width: 20ch;
|
|
209
|
-
}
|
|
210
|
-
.gradient-text {
|
|
211
|
-
background: linear-gradient(92deg, var(--accent), var(--accent2) 55%, color-mix(in srgb, var(--accent) 40%, #fff));
|
|
212
|
-
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
213
|
-
filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 35%, transparent));
|
|
214
|
-
}
|
|
215
|
-
.hero-sub { margin-top: 20px; max-width: 62ch; color: var(--muted); font-size: 1.04rem; }
|
|
216
|
-
|
|
217
|
-
.stat-strip { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
|
|
218
|
-
.stat {
|
|
219
|
-
background: var(--panel); border: 1px solid var(--line);
|
|
220
|
-
border-radius: var(--radius); padding: 14px 22px; min-width: 130px;
|
|
221
|
-
backdrop-filter: blur(var(--blur));
|
|
222
|
-
display: flex; flex-direction: column; transition: 0.3s var(--ease);
|
|
223
|
-
}
|
|
224
|
-
.stat b {
|
|
225
|
-
font-size: 1.6rem; font-weight: 800;
|
|
226
|
-
background: linear-gradient(90deg, var(--accent), var(--accent2));
|
|
227
|
-
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
228
|
-
}
|
|
229
|
-
.stat span { font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
|
|
230
|
-
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
|
|
231
|
-
/* ─────────── panels & buttons ─────────── */
|
|
232
|
-
|
|
233
|
-
.panel {
|
|
234
|
-
background: var(--panel);
|
|
235
|
-
border: 1px solid var(--line);
|
|
236
|
-
border-radius: calc(var(--radius) + 4px);
|
|
237
|
-
padding: 26px;
|
|
238
|
-
backdrop-filter: blur(var(--blur)) saturate(1.3);
|
|
239
|
-
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
|
|
240
|
-
transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
|
|
241
|
-
scroll-margin-top: 90px;
|
|
242
|
-
}
|
|
243
|
-
.panel:hover { border-color: var(--line-2); }
|
|
244
|
-
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
|
|
245
|
-
.panel-title { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.3px; }
|
|
246
|
-
.panel-sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; max-width: 66ch; }
|
|
247
|
-
|
|
248
|
-
.badge {
|
|
249
|
-
background: rgba(255, 255, 255, 0.05); color: var(--text);
|
|
250
|
-
border: 1px solid var(--line); border-radius: 99px;
|
|
251
|
-
padding: 6px 14px; font-size: 0.72rem; font-weight: 700;
|
|
252
|
-
letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
|
|
253
|
-
transition: 0.2s var(--ease);
|
|
254
|
-
}
|
|
255
|
-
.badge:hover { border-color: var(--accent); color: var(--accent2); }
|
|
256
|
-
.badge-hot {
|
|
257
|
-
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
|
258
|
-
border-color: color-mix(in srgb, var(--accent) 45%, transparent);
|
|
259
|
-
color: var(--accent2);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.btn {
|
|
263
|
-
border: none; border-radius: 12px; padding: 11px 20px;
|
|
264
|
-
font-weight: 700; font-size: 0.92rem; letter-spacing: 0.2px;
|
|
265
|
-
transition: 0.22s var(--ease);
|
|
266
|
-
}
|
|
267
|
-
.btn-accent {
|
|
268
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
269
|
-
color: var(--on-accent);
|
|
270
|
-
box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent);
|
|
271
|
-
}
|
|
272
|
-
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.07); }
|
|
273
|
-
.btn.ghost {
|
|
274
|
-
background: rgba(255, 255, 255, 0.05); color: var(--text);
|
|
275
|
-
border: 1px solid var(--line);
|
|
276
|
-
}
|
|
277
|
-
.btn.ghost:hover { border-color: var(--accent); color: var(--accent2); }
|
|
278
|
-
.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 10px; }
|
|
279
|
-
.btn-block { width: 100%; }
|
|
280
|
-
.icon-btn {
|
|
281
|
-
background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
|
|
282
|
-
color: var(--text); width: 36px; height: 36px; border-radius: 10px;
|
|
283
|
-
display: inline-grid; place-items: center; font-size: 0.85rem;
|
|
284
|
-
transition: 0.2s var(--ease);
|
|
285
|
-
}
|
|
286
|
-
.icon-btn:hover { border-color: var(--accent); color: var(--accent2); }
|
|
287
|
-
|
|
288
|
-
/* ─────────── tunnel ─────────── */
|
|
289
|
-
|
|
290
|
-
.tunnel-form { display: flex; gap: 10px; flex-wrap: wrap; }
|
|
291
|
-
.tunnel-input, .search-input {
|
|
292
|
-
flex: 1 1 320px; min-width: 220px;
|
|
293
|
-
background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
|
|
294
|
-
border-radius: 12px; padding: 12px 16px; font-size: 0.95rem;
|
|
295
|
-
outline: none; transition: 0.25s var(--ease);
|
|
296
|
-
}
|
|
297
|
-
.tunnel-input:focus, .search-input:focus {
|
|
298
|
-
border-color: var(--accent);
|
|
299
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
|
|
300
|
-
}
|
|
301
|
-
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
|
|
302
|
-
.chip {
|
|
303
|
-
background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
|
|
304
|
-
color: var(--muted); border-radius: 99px; padding: 7px 15px;
|
|
305
|
-
font-size: 0.82rem; font-weight: 600; transition: 0.22s var(--ease);
|
|
306
|
-
}
|
|
307
|
-
.chip:hover {
|
|
308
|
-
color: var(--text); border-color: var(--accent);
|
|
309
|
-
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
|
310
|
-
transform: translateY(-1px);
|
|
311
|
-
}
|
|
312
|
-
.tunnel-tip { margin-top: 16px; font-size: 0.78rem; color: var(--dim); }
|
|
313
|
-
|
|
314
|
-
.local-hint {
|
|
315
|
-
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
|
316
|
-
border: 1px dashed var(--line-2); border-radius: 12px;
|
|
317
|
-
padding: 12px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px;
|
|
318
|
-
}
|
|
319
|
-
/* ─────────── game cards ─────────── */
|
|
320
|
-
|
|
321
|
-
.game-grid {
|
|
322
|
-
display: grid; gap: 16px;
|
|
323
|
-
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
324
|
-
}
|
|
325
|
-
.game-card {
|
|
326
|
-
position: relative; border-radius: var(--radius); overflow: hidden;
|
|
327
|
-
background: var(--panel-2); border: 1px solid var(--line);
|
|
328
|
-
transition: 0.3s var(--ease); cursor: pointer;
|
|
329
|
-
}
|
|
330
|
-
.game-card:hover {
|
|
331
|
-
transform: translateY(-5px); border-color: var(--accent);
|
|
332
|
-
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent);
|
|
333
|
-
}
|
|
334
|
-
.game-cover {
|
|
335
|
-
position: relative; height: 130px; overflow: hidden;
|
|
336
|
-
background:
|
|
337
|
-
radial-gradient(120% 130% at 12% 8%, color-mix(in srgb, var(--gcolor) 45%, transparent), transparent 55%),
|
|
338
|
-
radial-gradient(120% 130% at 90% 95%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 60%),
|
|
339
|
-
linear-gradient(150deg, #241a12, #120a06 70%);
|
|
340
|
-
}
|
|
341
|
-
.game-cover img {
|
|
342
|
-
position: absolute; inset: 0; width: 100%; height: 100%;
|
|
343
|
-
object-fit: cover; filter: saturate(1.1); transition: 0.5s var(--ease);
|
|
344
|
-
z-index: 1;
|
|
345
|
-
}
|
|
346
|
-
.game-card:hover .game-cover img { transform: scale(1.06); }
|
|
347
|
-
|
|
348
|
-
/* featured game — wide rectangle, front & center */
|
|
349
|
-
.game-card.featured { grid-column: span 2; }
|
|
350
|
-
.game-card.featured .game-cover { height: 210px; }
|
|
351
|
-
.game-card.featured .game-name { font-size: 1.3rem; }
|
|
352
|
-
.game-card.featured .game-desc { -webkit-line-clamp: 3; font-size: 0.9rem; }
|
|
353
|
-
.game-card.featured .game-tools { top: 42px; }
|
|
354
|
-
.best-badge {
|
|
355
|
-
position: absolute; top: 10px; left: 10px; z-index: 4;
|
|
356
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
357
|
-
color: var(--on-accent); font-size: 0.62rem; font-weight: 900;
|
|
358
|
-
letter-spacing: 1.5px; text-transform: uppercase;
|
|
359
|
-
padding: 4px 12px; border-radius: 99px;
|
|
360
|
-
box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
|
|
361
|
-
animation: pulse 2.2s ease-in-out infinite;
|
|
362
|
-
}
|
|
363
|
-
.cover-fallback {
|
|
364
|
-
position: absolute; inset: 0; display: grid; place-items: center;
|
|
365
|
-
font-size: 3rem; font-weight: 900;
|
|
366
|
-
color: color-mix(in srgb, var(--gcolor) 70%, #fff);
|
|
367
|
-
text-shadow: 0 0 30px color-mix(in srgb, var(--gcolor) 60%, transparent);
|
|
368
|
-
}
|
|
369
|
-
.game-play {
|
|
370
|
-
position: absolute; right: 12px; bottom: -18px;
|
|
371
|
-
width: 44px; height: 44px; border-radius: 50%;
|
|
372
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
373
|
-
color: var(--on-accent); display: grid; place-items: center;
|
|
374
|
-
font-size: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
375
|
-
transition: 0.25s var(--ease); border: none;
|
|
376
|
-
}
|
|
377
|
-
.game-card:hover .game-play { bottom: 14px; }
|
|
378
|
-
.game-body { padding: 16px 16px 18px; }
|
|
379
|
-
.game-name { font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
|
|
380
|
-
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
|
|
381
|
-
.game-tag {
|
|
382
|
-
font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase;
|
|
383
|
-
padding: 3px 9px; border-radius: 99px; color: var(--muted);
|
|
384
|
-
background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
|
|
385
|
-
}
|
|
386
|
-
.game-desc {
|
|
387
|
-
color: var(--muted); font-size: 0.82rem; margin-top: 8px;
|
|
388
|
-
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
389
|
-
}
|
|
390
|
-
.game-tools {
|
|
391
|
-
position: absolute; top: 10px; left: 10px; display: flex; gap: 6px;
|
|
392
|
-
opacity: 0; transition: 0.2s var(--ease); z-index: 3;
|
|
393
|
-
}
|
|
394
|
-
.game-card:hover .game-tools { opacity: 1; }
|
|
395
|
-
.game-tools .icon-btn { width: 30px; height: 30px; font-size: 0.72rem; background: rgba(0, 0, 0, 0.55); }
|
|
396
|
-
.local-dot {
|
|
397
|
-
position: absolute; top: 10px; right: 10px;
|
|
398
|
-
background: color-mix(in srgb, var(--gcolor) 85%, #000); color: #fff;
|
|
399
|
-
font-size: 0.6rem; font-weight: 800; letter-spacing: 1px;
|
|
400
|
-
padding: 3px 8px; border-radius: 99px;
|
|
401
|
-
}
|
|
402
|
-
/* ─────────── movies ─────────── */
|
|
403
|
-
|
|
404
|
-
.movie-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
|
|
405
|
-
.movie-toolbar .search-input { flex: 0 1 300px; }
|
|
406
|
-
.genre-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
|
|
407
|
-
.genre-chip {
|
|
408
|
-
background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
|
|
409
|
-
color: var(--muted); border-radius: 99px; padding: 5px 12px;
|
|
410
|
-
font-size: 0.74rem; font-weight: 700; transition: 0.2s var(--ease);
|
|
411
|
-
}
|
|
412
|
-
.genre-chip.active, .genre-chip:hover {
|
|
413
|
-
color: var(--text); border-color: var(--accent);
|
|
414
|
-
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
415
|
-
}
|
|
416
|
-
.select-mini {
|
|
417
|
-
background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
|
|
418
|
-
color: var(--text); border-radius: 10px; padding: 9px 12px;
|
|
419
|
-
font-size: 0.82rem; outline: none;
|
|
420
|
-
}
|
|
421
|
-
.select-mini:focus { border-color: var(--accent); }
|
|
422
|
-
|
|
423
|
-
.movie-grid {
|
|
424
|
-
display: grid; gap: 16px;
|
|
425
|
-
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
426
|
-
}
|
|
427
|
-
.movie-card {
|
|
428
|
-
position: relative; border-radius: var(--radius); overflow: hidden;
|
|
429
|
-
background: var(--panel-2); border: 1px solid var(--line);
|
|
430
|
-
transition: 0.3s var(--ease); cursor: pointer;
|
|
431
|
-
}
|
|
432
|
-
.movie-card:hover {
|
|
433
|
-
transform: translateY(-5px); border-color: var(--accent);
|
|
434
|
-
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px color-mix(in srgb, var(--accent) 15%, transparent);
|
|
435
|
-
}
|
|
436
|
-
.movie-poster {
|
|
437
|
-
position: relative; aspect-ratio: 2 / 3; overflow: hidden;
|
|
438
|
-
background:
|
|
439
|
-
radial-gradient(100% 120% at 50% 0%, color-mix(in srgb, var(--mcolor) 38%, transparent), transparent 60%),
|
|
440
|
-
linear-gradient(160deg, #241a12, #100a07);
|
|
441
|
-
display: grid; place-items: center;
|
|
442
|
-
}
|
|
443
|
-
.movie-poster img {
|
|
444
|
-
position: absolute; inset: 0; width: 100%; height: 100%;
|
|
445
|
-
object-fit: cover; transition: 0.5s var(--ease);
|
|
446
|
-
z-index: 1;
|
|
447
|
-
}
|
|
448
|
-
.movie-card:hover .movie-poster img { transform: scale(1.06); }
|
|
449
|
-
.movie-fallback {
|
|
450
|
-
font-size: 2.6rem; font-weight: 900;
|
|
451
|
-
color: color-mix(in srgb, var(--mcolor) 75%, #fff);
|
|
452
|
-
text-shadow: 0 0 28px color-mix(in srgb, var(--mcolor) 55%, transparent);
|
|
453
|
-
}
|
|
454
|
-
.movie-play {
|
|
455
|
-
position: absolute; inset: 0; display: grid; place-items: center;
|
|
456
|
-
background: rgba(0, 0, 0, 0.25); opacity: 0; transition: 0.25s var(--ease);
|
|
457
|
-
}
|
|
458
|
-
.movie-play i {
|
|
459
|
-
width: 52px; height: 52px; border-radius: 50%;
|
|
460
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
461
|
-
color: var(--on-accent); display: grid; place-items: center;
|
|
462
|
-
font-style: normal; font-size: 1.1rem;
|
|
463
|
-
box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
464
|
-
transform: scale(0.7); transition: 0.25s var(--ease);
|
|
465
|
-
}
|
|
466
|
-
.movie-card:hover .movie-play { opacity: 1; }
|
|
467
|
-
.movie-card:hover .movie-play i { transform: scale(1); }
|
|
468
|
-
.movie-info { padding: 12px 13px 14px; }
|
|
469
|
-
.movie-title { font-weight: 800; font-size: 0.92rem; line-height: 1.25; }
|
|
470
|
-
.movie-genre { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.6px; margin-top: 3px; text-transform: uppercase; }
|
|
471
|
-
.movie-status { position: absolute; top: 9px; left: 9px; display: flex; gap: 5px; z-index: 2; }
|
|
472
|
-
.movie-status span {
|
|
473
|
-
background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12);
|
|
474
|
-
color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.8px;
|
|
475
|
-
padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(6px);
|
|
476
|
-
}
|
|
477
|
-
.movie-status .fav {
|
|
478
|
-
background: color-mix(in srgb, var(--accent) 75%, #000); border-color: transparent;
|
|
479
|
-
}
|
|
480
|
-
.movie-tools {
|
|
481
|
-
position: absolute; top: 9px; right: 9px; display: flex; gap: 5px;
|
|
482
|
-
opacity: 0; transition: 0.2s var(--ease); z-index: 3;
|
|
483
|
-
}
|
|
484
|
-
.movie-card:hover .movie-tools { opacity: 1; }
|
|
485
|
-
.movie-tools .icon-btn { width: 28px; height: 28px; font-size: 0.68rem; background: rgba(0, 0, 0, 0.55); }
|
|
486
|
-
.movie-cont-pct {
|
|
487
|
-
display: inline-block; margin-top: 6px; padding: 2px 7px;
|
|
488
|
-
font-size: 0.66rem; font-weight: 800; color: var(--accent2);
|
|
489
|
-
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
|
490
|
-
border-radius: 99px;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.empty-state {
|
|
494
|
-
text-align: center; padding: 46px 20px;
|
|
495
|
-
background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line-2);
|
|
496
|
-
border-radius: var(--radius); margin-top: 8px;
|
|
497
|
-
}
|
|
498
|
-
.empty-art { font-size: 3rem; margin-bottom: 10px; }
|
|
499
|
-
.empty-state h4 { font-size: 1.15rem; margin-bottom: 8px; }
|
|
500
|
-
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; font-size: 0.92rem; }
|
|
501
|
-
/* ─────────── boot splash ─────────── */
|
|
502
|
-
|
|
503
|
-
.boot {
|
|
504
|
-
position: fixed; inset: 0; z-index: 200;
|
|
505
|
-
background: radial-gradient(90% 90% at 50% 40%, #14100b, #070503 80%);
|
|
506
|
-
display: grid; place-items: center; transition: opacity 0.55s var(--ease);
|
|
507
|
-
}
|
|
508
|
-
.boot.done { opacity: 0; pointer-events: none; }
|
|
509
|
-
.boot-inner { text-align: center; padding: 20px; }
|
|
510
|
-
.boot-logo {
|
|
511
|
-
width: 84px; height: 84px; margin: 0 auto 22px;
|
|
512
|
-
border-radius: 22px; display: grid; place-items: center; font-size: 38px;
|
|
513
|
-
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
514
|
-
color: var(--on-accent);
|
|
515
|
-
box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent);
|
|
516
|
-
animation: bootPulse 1.6s ease-in-out infinite;
|
|
517
|
-
}
|
|
518
|
-
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
|
|
519
|
-
.boot-title { font-size: 2rem; letter-spacing: 8px; margin-bottom: 16px; }
|
|
520
|
-
.boot-type {
|
|
521
|
-
font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
|
|
522
|
-
color: var(--accent2); min-height: 1.3em; margin-bottom: 22px;
|
|
523
|
-
}
|
|
524
|
-
.boot-bar {
|
|
525
|
-
width: 260px; height: 5px; border-radius: 99px; margin: 0 auto;
|
|
526
|
-
background: rgba(255, 255, 255, 0.08); overflow: hidden;
|
|
527
|
-
}
|
|
528
|
-
.boot-bar i {
|
|
529
|
-
display: block; height: 100%; width: 0%;
|
|
530
|
-
background: linear-gradient(90deg, var(--accent), var(--accent2));
|
|
531
|
-
border-radius: 99px; transition: width 0.25s ease;
|
|
532
|
-
box-shadow: 0 0 14px var(--accent);
|
|
533
|
-
}
|
|
534
|
-
#boot-skip { margin-top: 26px; }
|
|
535
|
-
|
|
536
|
-
/* ─────────── footer ─────────── */
|
|
537
|
-
|
|
538
|
-
.foot {
|
|
539
|
-
max-width: 1220px; margin: 0 auto; padding: 26px 22px 46px;
|
|
540
|
-
display: flex; justify-content: space-between; align-items: center; gap: 14px;
|
|
541
|
-
flex-wrap: wrap; color: var(--dim); font-size: 0.78rem;
|
|
542
|
-
border-top: 1px solid var(--line); letter-spacing: 0.6px;
|
|
543
|
-
}
|
|
544
|
-
.foot-hint kbd {
|
|
545
|
-
color: var(--accent2); border-color: var(--line-2); font-size: 0.72rem;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/* ─────────── customizer ─────────── */
|
|
549
|
-
|
|
550
|
-
.customizer {
|
|
551
|
-
position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
|
|
552
|
-
width: min(340px, 92vw);
|
|
553
|
-
background: rgba(16, 11, 8, 0.9);
|
|
554
|
-
backdrop-filter: blur(22px) saturate(1.4);
|
|
555
|
-
border-left: 1px solid var(--line);
|
|
556
|
-
transform: translateX(105%);
|
|
557
|
-
transition: transform 0.4s var(--ease);
|
|
558
|
-
display: flex; flex-direction: column;
|
|
559
|
-
box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
|
|
560
|
-
}
|
|
561
|
-
.customizer.open { transform: translateX(0); }
|
|
562
|
-
.customizer-head {
|
|
563
|
-
display: flex; justify-content: space-between; align-items: center;
|
|
564
|
-
padding: 18px 20px; border-bottom: 1px solid var(--line);
|
|
565
|
-
}
|
|
566
|
-
.customizer-head h4 { font-size: 1.05rem; letter-spacing: 0.4px; }
|
|
567
|
-
.cz-scroll { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
|
|
568
|
-
.cz-label {
|
|
569
|
-
font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase;
|
|
570
|
-
color: var(--muted); font-weight: 700;
|
|
571
|
-
}
|
|
572
|
-
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
|
|
573
|
-
.swatch {
|
|
574
|
-
width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent;
|
|
575
|
-
background: var(--sw); box-shadow: 0 0 18px color-mix(in srgb, var(--sw) 45%, transparent);
|
|
576
|
-
transition: 0.2s var(--ease);
|
|
577
|
-
}
|
|
578
|
-
.swatch:hover { transform: scale(1.12); }
|
|
579
|
-
.swatch.active { border-color: #fff; transform: scale(1.12); }
|
|
580
|
-
.cz-row { display: flex; align-items: center; gap: 12px; }
|
|
581
|
-
input[type='color'] {
|
|
582
|
-
width: 46px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
|
|
583
|
-
background: transparent; padding: 2px; cursor: pointer;
|
|
584
|
-
}
|
|
585
|
-
.cz-hex {
|
|
586
|
-
font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--accent2);
|
|
587
|
-
}
|
|
588
|
-
input[type='range'] {
|
|
589
|
-
width: 100%; accent-color: var(--accent); cursor: pointer;
|
|
590
|
-
}
|
|
591
|
-
.cz-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
592
|
-
.cz-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
|
|
593
|
-
.cz-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
|
|
594
|
-
.cz-note { font-size: 0.72rem; color: var(--dim); text-align: center; }
|
|
595
|
-
/* ─────────── modals ─────────── */
|
|
596
|
-
|
|
597
|
-
.modal {
|
|
598
|
-
position: fixed; inset: 0; z-index: 150;
|
|
599
|
-
background: rgba(5, 3, 2, 0.82);
|
|
600
|
-
backdrop-filter: blur(14px);
|
|
601
|
-
display: grid; place-items: center;
|
|
602
|
-
animation: fadeIn 0.25s var(--ease);
|
|
603
|
-
}
|
|
604
|
-
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
605
|
-
|
|
606
|
-
.launcher-frame-wrap, .player-stage {
|
|
607
|
-
width: 100%; height: 100vh; overflow: hidden;
|
|
608
|
-
}
|
|
609
|
-
.launcher-bar, .player-bar {
|
|
610
|
-
position: absolute; top: 0; left: 0; right: 0; z-index: 5;
|
|
611
|
-
display: flex; align-items: center; gap: 10px;
|
|
612
|
-
padding: 10px 16px;
|
|
613
|
-
background: rgba(10, 7, 5, 0.75);
|
|
614
|
-
backdrop-filter: blur(14px);
|
|
615
|
-
border-bottom: 1px solid var(--line);
|
|
616
|
-
}
|
|
617
|
-
.launcher-title, .player-title {
|
|
618
|
-
font-weight: 700; font-size: 0.88rem; white-space: nowrap;
|
|
619
|
-
overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
|
|
620
|
-
color: var(--accent2);
|
|
621
|
-
}
|
|
622
|
-
.launcher-actions { margin-left: auto; display: flex; gap: 7px; align-items: center; }
|
|
623
|
-
.launcher-actions .launcher-title { max-width: 30vw; }
|
|
624
|
-
#launcher-modal .modal-inner { width: 100%; }
|
|
625
|
-
#launcher-modal { display: flex; }
|
|
626
|
-
#launcher-modal .launcher-frame-wrap {
|
|
627
|
-
margin-top: 0; height: calc(100vh);
|
|
8
|
+
:root{
|
|
9
|
+
--accent:#ff6b1a;
|
|
10
|
+
--bg:#050505;
|
|
11
|
+
--glass:rgba(255,255,255,.06);
|
|
12
|
+
--glass-border:rgba(255,255,255,.12);
|
|
13
|
+
--text:#f5f5f5;
|
|
14
|
+
}
|
|
15
|
+
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
|
|
16
|
+
html,body{height:100%;overflow:hidden;background:var(--bg);color:var(--text);
|
|
17
|
+
font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Inter,Roboto,sans-serif;}
|
|
18
|
+
::selection{background:var(--accent);color:#000}
|
|
19
|
+
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
|
|
20
|
+
|
|
21
|
+
/* ---------- particles ---------- */
|
|
22
|
+
#particles{position:fixed;inset:0;z-index:0;pointer-events:none}
|
|
23
|
+
|
|
24
|
+
/* ---------- ambient glow ---------- */
|
|
25
|
+
.glow{position:fixed;z-index:0;pointer-events:none;filter:blur(120px);opacity:.13;border-radius:50%;
|
|
26
|
+
background:var(--accent);animation:glowFloat 14s ease-in-out infinite alternate}
|
|
27
|
+
.glow.g1{width:55vw;height:55vw;top:-20vw;right:-15vw}
|
|
28
|
+
.glow.g2{width:40vw;height:40vw;bottom:-15vw;left:-10vw;animation-delay:-7s}
|
|
29
|
+
@keyframes glowFloat{from{transform:translate(0,0) scale(1)}to{transform:translate(4vw,-3vw) scale(1.15)}}
|
|
30
|
+
|
|
31
|
+
/* ---------- screens ---------- */
|
|
32
|
+
.screen{position:fixed;inset:0;z-index:2;display:none;flex-direction:column;
|
|
33
|
+
opacity:0;transform:scale(.985);transition:opacity .45s cubic-bezier(.22,1,.36,1),transform .45s cubic-bezier(.22,1,.36,1)}
|
|
34
|
+
.screen.active{display:flex;opacity:1;transform:scale(1)}
|
|
35
|
+
|
|
36
|
+
/* ---------- liquid glass ---------- */
|
|
37
|
+
.glass{background:var(--glass);backdrop-filter:blur(28px) saturate(180%);
|
|
38
|
+
-webkit-backdrop-filter:blur(28px) saturate(180%);
|
|
39
|
+
border:1px solid var(--glass-border);border-radius:24px;position:relative;overflow:hidden;
|
|
40
|
+
box-shadow:0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.15)}
|
|
41
|
+
.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
|
|
42
|
+
background:linear-gradient(135deg,rgba(255,255,255,.14),transparent 40%,transparent 70%,rgba(255,255,255,.05))}
|
|
43
|
+
|
|
44
|
+
/* ============================================================
|
|
45
|
+
HOME — left-aligned hero, long scrollable page
|
|
46
|
+
============================================================ */
|
|
47
|
+
#home{overflow-y:auto;scrollbar-width:none;display:block;padding:0}
|
|
48
|
+
#proxy{padding:0}
|
|
49
|
+
#proxyFrame{flex:1;width:100%;height:100%;border:none;background:#000}
|
|
50
|
+
#home::-webkit-scrollbar{display:none}
|
|
51
|
+
|
|
52
|
+
.hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
|
|
53
|
+
padding:12vh 7vw 10vh;position:relative;text-align:left;overflow:hidden}
|
|
54
|
+
/* left edge accent beam */
|
|
55
|
+
.hero::before{content:"";position:absolute;left:0;top:15%;bottom:15%;width:3px;border-radius:3px;
|
|
56
|
+
background:linear-gradient(180deg,transparent,var(--accent),transparent);
|
|
57
|
+
animation:beamPulse 4s ease-in-out infinite;opacity:.7}
|
|
58
|
+
@keyframes beamPulse{0%,100%{opacity:.35;filter:blur(1px)}50%{opacity:.9;filter:blur(0)}}
|
|
59
|
+
|
|
60
|
+
.os-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border-radius:99px;
|
|
61
|
+
font-size:12px;letter-spacing:.25em;text-transform:uppercase;color:var(--accent);
|
|
62
|
+
border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);margin-bottom:26px;
|
|
63
|
+
animation:slideLeft .8s cubic-bezier(.22,1,.36,1) both, pulseBadge 3s ease-in-out infinite 1s}
|
|
64
|
+
@keyframes slideLeft{from{opacity:0;transform:translateX(-46px)}to{opacity:1;transform:none}}
|
|
65
|
+
@keyframes pulseBadge{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 35%,transparent)}
|
|
66
|
+
50%{box-shadow:0 0 24px 4px color-mix(in srgb,var(--accent) 25%,transparent)}}
|
|
67
|
+
.os-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:blink 1.6s infinite}
|
|
68
|
+
@keyframes blink{50%{opacity:.25}}
|
|
69
|
+
|
|
70
|
+
#bigTitle{font-size:clamp(60px,10vw,138px);font-weight:800;line-height:.93;letter-spacing:-.035em;
|
|
71
|
+
display:flex;flex-direction:column;align-items:flex-start}
|
|
72
|
+
#bigTitle {
|
|
73
|
+
font-size: clamp(60px, 10vw, 138px);
|
|
74
|
+
font-weight: 800;
|
|
75
|
+
line-height: 1;
|
|
76
|
+
letter-spacing: -0.035em;
|
|
628
77
|
display: flex;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
#
|
|
636
|
-
.
|
|
637
|
-
.
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
645
|
-
.
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
653
|
-
.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
.
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
683
|
-
.
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
.
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
.
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
.
|
|
745
|
-
.
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 0.2em;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
#rotator{height:30px;margin-top:26px;font-size:clamp(15px,1.6vw,20px);color:#9a9a9a;overflow:hidden;position:relative;width:min(560px,80vw)}
|
|
85
|
+
#rotator .line{position:absolute;inset:0;display:flex;align-items:center;gap:10px;
|
|
86
|
+
opacity:0;transform:translateY(26px);transition:opacity .6s,transform .6s cubic-bezier(.22,1,.36,1)}
|
|
87
|
+
#rotator .line.on{opacity:1;transform:none}
|
|
88
|
+
#rotator .line.off{opacity:0;transform:translateY(-26px)}
|
|
89
|
+
#rotator .tick{width:22px;height:2px;background:var(--accent);border-radius:2px;flex:none;
|
|
90
|
+
box-shadow:0 0 10px var(--accent)}
|
|
91
|
+
|
|
92
|
+
/* widget row */
|
|
93
|
+
.widget-row{display:flex;gap:16px;margin-top:48px;flex-wrap:wrap;animation:slideLeft 1s .55s cubic-bezier(.22,1,.36,1) both}
|
|
94
|
+
.widget{padding:18px 22px;display:flex;align-items:center;gap:16px;min-width:200px;
|
|
95
|
+
animation:floaty 5.5s ease-in-out infinite;animation-delay:var(--fd,0s);
|
|
96
|
+
transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s}
|
|
97
|
+
.widget:hover{transform:translateY(-6px) scale(1.03);box-shadow:0 16px 44px rgba(0,0,0,.6),0 0 30px color-mix(in srgb,var(--accent) 14%,transparent)}
|
|
98
|
+
@keyframes floaty{0%,100%{translate:0 0}50%{translate:0 -7px}}
|
|
99
|
+
.widget .wicon{font-size:30px;filter:drop-shadow(0 0 12px color-mix(in srgb,var(--accent) 45%,transparent))}
|
|
100
|
+
.widget .wlabel{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#888}
|
|
101
|
+
.widget .wvalue{font-size:20px;font-weight:700;margin-top:2px}
|
|
102
|
+
.ring{transform:rotate(-90deg)}
|
|
103
|
+
.ring .bg{stroke:rgba(255,255,255,.1)}
|
|
104
|
+
.ring .fg{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
|
|
105
|
+
filter:drop-shadow(0 0 6px var(--accent))}
|
|
106
|
+
|
|
107
|
+
/* nav */
|
|
108
|
+
.home-nav{display:flex;gap:14px;margin-top:50px;flex-wrap:wrap;animation:slideLeft 1.1s .7s cubic-bezier(.22,1,.36,1) both}
|
|
109
|
+
.nav-btn{padding:15px 30px;border-radius:18px;font-size:15px;font-weight:600;letter-spacing:.04em;
|
|
110
|
+
display:flex;align-items:center;gap:10px;transition:all .3s cubic-bezier(.22,1,.36,1)}
|
|
111
|
+
.nav-btn:hover{transform:translateY(-4px) scale(1.03);border-color:color-mix(in srgb,var(--accent) 55%,transparent);
|
|
112
|
+
box-shadow:0 12px 34px rgba(0,0,0,.55),0 0 26px color-mix(in srgb,var(--accent) 18%,transparent)}
|
|
113
|
+
.nav-btn .arr{transition:transform .3s}
|
|
114
|
+
.nav-btn:hover .arr{transform:translateX(6px)}
|
|
115
|
+
.nav-btn.primary{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#000));
|
|
116
|
+
color:#0a0a0a;box-shadow:0 8px 26px color-mix(in srgb,var(--accent) 35%,transparent)}
|
|
117
|
+
|
|
118
|
+
/* scroll cue */
|
|
119
|
+
.scroll-cue{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);display:flex;flex-direction:column;
|
|
120
|
+
align-items:center;gap:6px;color:#666;font-size:10px;letter-spacing:.35em;text-transform:uppercase;
|
|
121
|
+
animation:fadeIn 1.4s 1.6s both}
|
|
122
|
+
.scroll-cue .chev{width:12px;height:12px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);
|
|
123
|
+
transform:rotate(45deg);animation:chevBounce 1.6s ease-in-out infinite}
|
|
124
|
+
@keyframes chevBounce{0%,100%{transform:rotate(45deg) translate(0,0);opacity:.5}50%{transform:rotate(45deg) translate(5px,5px);opacity:1}}
|
|
125
|
+
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
|
|
126
|
+
|
|
127
|
+
/* ---------- library marquee ---------- */
|
|
128
|
+
.library{width:100%;padding:9vh 0 16vh;display:flex;flex-direction:column;gap:24px;
|
|
129
|
+
animation:fadeIn 1s both}
|
|
130
|
+
.library .lib-title{padding:0 7vw;font-size:clamp(28px,4vw,48px);font-weight:800;letter-spacing:-.02em;display:flex;align-items:baseline;gap:16px}
|
|
131
|
+
.library .lib-title em{font-style:normal;color:var(--accent)}
|
|
132
|
+
.library .lib-title .n{font-size:13px;color:#666;font-weight:600;letter-spacing:.2em}
|
|
133
|
+
.library .lib-sub{padding:0 7vw;color:#777;font-size:14px;margin-top:-12px}
|
|
134
|
+
.rail-window{overflow:hidden;width:100%;position:relative;padding:8px 0;
|
|
135
|
+
-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
|
|
136
|
+
mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
|
|
137
|
+
.rail-track{display:flex;gap:20px;width:max-content;padding-right:20px;animation:railScroll 42s linear infinite}
|
|
138
|
+
.rail-track.rev{animation-direction:reverse;animation-duration:52s}
|
|
139
|
+
.rail-window:hover .rail-track{animation-play-state:paused}
|
|
140
|
+
@keyframes railScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
|
|
141
|
+
.rail-game{width:96px;height:96px;flex:none;border-radius:26px;overflow:hidden;
|
|
142
|
+
position:relative;border:1px solid var(--glass-border);cursor:pointer;
|
|
143
|
+
transition:transform .35s cubic-bezier(.34,1.56,.64,1),box-shadow .35s;animation:floaty 6s ease-in-out infinite;animation-delay:var(--fd,0s)}
|
|
144
|
+
.rail-game:hover{transform:scale(1.16) rotate(-4deg);animation-play-state:paused;
|
|
145
|
+
box-shadow:0 12px 34px rgba(0,0,0,.65),0 0 26px var(--gc,#ff6b1a)}
|
|
146
|
+
.rail-game img{width:100%;height:100%;object-fit:cover;display:block}
|
|
147
|
+
|
|
148
|
+
/* section headers */
|
|
149
|
+
.hub{padding:34px 5vw 130px;overflow-y:auto;scrollbar-width:none}
|
|
150
|
+
.hub::-webkit-scrollbar{display:none}
|
|
151
|
+
.hub-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:34px;
|
|
152
|
+
animation:slideLeft .7s cubic-bezier(.22,1,.36,1) both}
|
|
153
|
+
.hub-head h2{font-size:clamp(34px,4.5vw,58px);font-weight:800;letter-spacing:-.02em}
|
|
154
|
+
.hub-head h2 em{font-style:normal;color:var(--accent)}
|
|
155
|
+
.hub-head .count{font-size:13px;color:#777;letter-spacing:.15em;text-transform:uppercase}
|
|
156
|
+
|
|
157
|
+
/* games grid: rows of 5 */
|
|
158
|
+
.games-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
|
|
159
|
+
@media(max-width:1100px){.games-grid{grid-template-columns:repeat(4,1fr)}}
|
|
160
|
+
@media(max-width:800px){.games-grid{grid-template-columns:repeat(3,1fr)}.hero{padding:10vh 6vw}}
|
|
161
|
+
@media(max-width:520px){.games-grid{grid-template-columns:repeat(2,1fr)}}
|
|
162
|
+
.game-tile{aspect-ratio:1;border-radius:26px;overflow:hidden;position:relative;cursor:pointer;
|
|
163
|
+
border:1px solid var(--glass-border);
|
|
164
|
+
animation:tileIn .7s cubic-bezier(.22,1,.36,1) both;animation-delay:var(--d,0s);
|
|
165
|
+
transition:transform .4s cubic-bezier(.34,1.56,.64,1),box-shadow .4s}
|
|
166
|
+
@keyframes tileIn{from{opacity:0;transform:translateY(34px) scale(.92)}to{opacity:1;transform:none}}
|
|
167
|
+
.game-tile:hover{transform:translateY(-8px) scale(1.04);z-index:2;
|
|
168
|
+
box-shadow:0 20px 50px rgba(0,0,0,.65),0 0 34px var(--gc,#ff6b1a)}
|
|
169
|
+
.game-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.22,1,.36,1)}
|
|
170
|
+
.game-tile:hover img{transform:scale(1.12)}
|
|
171
|
+
.game-tile .shine{position:absolute;inset:0;pointer-events:none;
|
|
172
|
+
background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.22) 48%,transparent 62%);
|
|
173
|
+
transform:translateX(-120%);transition:transform .7s ease}
|
|
174
|
+
.game-tile:hover .shine{transform:translateX(120%)}
|
|
175
|
+
.game-tile .tip{position:absolute;left:50%;bottom:-8px;transform:translate(-50%,10px);opacity:0;
|
|
176
|
+
background:rgba(10,10,10,.88);backdrop-filter:blur(10px);border:1px solid var(--glass-border);
|
|
177
|
+
padding:7px 15px;border-radius:12px;font-size:13px;font-weight:600;white-space:nowrap;pointer-events:none;
|
|
178
|
+
transition:all .3s cubic-bezier(.22,1,.36,1);z-index:3}
|
|
179
|
+
.game-tile:hover .tip{opacity:1;transform:translate(-50%,0)}
|
|
180
|
+
.game-tile .play-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
|
|
181
|
+
background:rgba(0,0,0,.45);opacity:0;transition:opacity .3s}
|
|
182
|
+
.game-tile:hover .play-hint{opacity:1}
|
|
183
|
+
.play-hint .tri{width:0;height:0;border-left:22px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent;
|
|
184
|
+
filter:drop-shadow(0 0 14px var(--accent));margin-left:6px}
|
|
185
|
+
.game-tile .feat-tag{position:absolute;top:10px;left:10px;background:var(--accent);color:#000;
|
|
186
|
+
font-size:9px;font-weight:800;letter-spacing:.12em;padding:4px 9px;border-radius:8px}
|
|
187
|
+
|
|
188
|
+
/* movies */
|
|
189
|
+
.movies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:26px}
|
|
190
|
+
.movie-tile{border-radius:20px;overflow:hidden;cursor:pointer;position:relative;aspect-ratio:2/3;
|
|
191
|
+
border:1px solid var(--glass-border);
|
|
192
|
+
animation:tileIn .7s cubic-bezier(.22,1,.36,1) both;animation-delay:var(--d,0s);
|
|
193
|
+
transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s}
|
|
194
|
+
.movie-tile:hover{transform:translateY(-10px) scale(1.05);box-shadow:0 24px 60px rgba(0,0,0,.7),0 0 40px color-mix(in srgb,var(--accent) 20%,transparent)}
|
|
195
|
+
.movie-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.22,1,.36,1)}
|
|
196
|
+
.movie-tile:hover img{transform:scale(1.1)}
|
|
197
|
+
.movie-tile .veil{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.75));
|
|
198
|
+
opacity:0;transition:opacity .35s;display:flex;align-items:flex-end;justify-content:center;padding-bottom:20px}
|
|
199
|
+
.movie-tile:hover .veil{opacity:1}
|
|
200
|
+
.movie-tile .tri{width:0;height:0;border-left:20px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent;
|
|
201
|
+
filter:drop-shadow(0 0 14px var(--accent));transition:transform .3s}
|
|
202
|
+
.movie-tile:hover .tri{transform:scale(1.2)}
|
|
203
|
+
|
|
204
|
+
/* play modal */
|
|
205
|
+
#playModal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;
|
|
206
|
+
background:rgba(0,0,0,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
|
|
207
|
+
#playModal.open{display:flex;animation:fadeIn .3s ease}
|
|
208
|
+
.play-shell{width:min(1100px,94vw);height:min(86vh,90vh);border-radius:26px;overflow:hidden;
|
|
209
|
+
display:flex;flex-direction:column;border:1px solid var(--glass-border);background:#0a0a0a;
|
|
210
|
+
box-shadow:0 40px 120px rgba(0,0,0,.8),0 0 60px color-mix(in srgb,var(--accent) 10%,transparent);
|
|
211
|
+
animation:popIn .45s cubic-bezier(.34,1.56,.64,1)}
|
|
212
|
+
@keyframes popIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
|
|
213
|
+
.play-bar{display:flex;align-items:center;gap:14px;padding:12px 18px;
|
|
214
|
+
background:rgba(255,255,255,.04);border-bottom:1px solid var(--glass-border)}
|
|
215
|
+
.play-bar .ttl{font-weight:700;font-size:15px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
216
|
+
.play-bar .live{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:blink 1.4s infinite;flex:none}
|
|
217
|
+
.play-bar button{padding:8px 18px;border-radius:12px;font-size:13px;font-weight:700;
|
|
218
|
+
background:rgba(255,255,255,.08);border:1px solid var(--glass-border);transition:all .25s}
|
|
219
|
+
.play-bar button:hover{background:var(--accent);color:#000}
|
|
220
|
+
#playFrame{flex:1;width:100%;border:none;background:#000}
|
|
221
|
+
.play-shell:fullscreen{width:100vw;height:100vh;border-radius:0}
|
|
222
|
+
.play-shell:fullscreen .play-bar{padding:14px 22px}
|
|
223
|
+
.play-loading{position:absolute;inset:44px 0 0;display:flex;flex-direction:column;gap:18px;
|
|
224
|
+
align-items:center;justify-content:center;background:#0a0a0a;transition:opacity .4s;z-index:2}
|
|
225
|
+
.play-loading.gone{opacity:0;pointer-events:none}
|
|
226
|
+
.spinner{width:52px;height:52px;border-radius:50%;border:3px solid rgba(255,255,255,.1);
|
|
227
|
+
border-top-color:var(--accent);animation:spin 1s linear infinite}
|
|
228
|
+
@keyframes spin{to{transform:rotate(360deg)}}
|
|
229
|
+
|
|
230
|
+
/* dock */
|
|
231
|
+
#dock{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:20;display:flex;gap:6px;
|
|
232
|
+
padding:8px;border-radius:24px;animation:riseIn 1s .5s cubic-bezier(.22,1,.36,1) both}
|
|
233
|
+
@keyframes riseIn{from{opacity:0;transform:translate(-50%,40px)}to{opacity:1;transform:translate(-50%,0)}}
|
|
234
|
+
.dock-btn{padding:12px 22px;border-radius:17px;font-size:14px;font-weight:600;color:#aaa;
|
|
235
|
+
display:flex;align-items:center;gap:8px;transition:all .3s cubic-bezier(.22,1,.36,1);position:relative}
|
|
236
|
+
.dock-btn:hover{color:#fff;transform:translateY(-3px)}
|
|
237
|
+
.dock-btn.on{color:#0a0a0a;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 75%,#000));
|
|
238
|
+
box-shadow:0 6px 22px color-mix(in srgb,var(--accent) 40%,transparent)}
|
|
239
|
+
.dock-btn .dicon{font-size:16px}
|
|
240
|
+
|
|
241
|
+
/* settings */
|
|
242
|
+
#settingsModal{position:fixed;inset:0;z-index:60;display:none;align-items:center;justify-content:center;
|
|
243
|
+
background:rgba(0,0,0,.7);backdrop-filter:blur(14px)}
|
|
244
|
+
#settingsModal.open{display:flex;animation:fadeIn .25s ease}
|
|
245
|
+
.settings-card{width:min(560px,92vw);max-height:86vh;overflow-y:auto;padding:32px;scrollbar-width:none;
|
|
246
|
+
animation:popIn .4s cubic-bezier(.34,1.56,.64,1)}
|
|
247
|
+
.settings-card::-webkit-scrollbar{display:none}
|
|
248
|
+
.settings-card h3{font-size:26px;font-weight:800;margin-bottom:6px}
|
|
249
|
+
.settings-card .sub{color:#888;font-size:13px;margin-bottom:26px}
|
|
250
|
+
.set-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;
|
|
251
|
+
border-bottom:1px solid rgba(255,255,255,.07)}
|
|
252
|
+
.set-row .lbl{font-size:14px;font-weight:600}
|
|
253
|
+
.set-row .hint{font-size:11px;color:#777;margin-top:3px}
|
|
254
|
+
.swatches{display:flex;gap:10px;flex-wrap:wrap}
|
|
255
|
+
.swatch{width:36px;height:36px;border-radius:12px;cursor:pointer;border:2px solid transparent;transition:all .25s}
|
|
256
|
+
.swatch:hover{transform:scale(1.15)}
|
|
257
|
+
.swatch.on{border-color:#fff;transform:scale(1.15);box-shadow:0 0 16px currentColor}
|
|
258
|
+
input[type=text],input[type=range]{accent-color:var(--accent)}
|
|
259
|
+
.set-input{background:rgba(255,255,255,.07);border:1px solid var(--glass-border);color:#fff;
|
|
260
|
+
padding:10px 14px;border-radius:12px;font-size:14px;width:170px;outline:none;transition:border .25s}
|
|
261
|
+
.set-input:focus{border-color:var(--accent)}
|
|
262
|
+
|
|
263
|
+
/* ---------- TOUR ---------- */
|
|
264
|
+
#tour{position:fixed;inset:0;z-index:80;display:none}
|
|
265
|
+
#tour.open{display:block}
|
|
266
|
+
#tour .dim{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(6px);animation:fadeIn .3s}
|
|
267
|
+
.tour-card{position:absolute;left:50%;bottom:110px;transform:translateX(-50%);width:min(440px,90vw);
|
|
268
|
+
padding:26px 28px;animation:popIn .45s cubic-bezier(.34,1.56,.64,1)}
|
|
269
|
+
.tour-card .step-n{font-size:10px;letter-spacing:.3em;color:var(--accent);font-weight:800;text-transform:uppercase}
|
|
270
|
+
.tour-card h4{font-size:20px;font-weight:800;margin:8px 0 8px}
|
|
271
|
+
.tour-card p{font-size:14px;color:#b5b5b5;line-height:1.6}
|
|
272
|
+
.tour-card .tour-nav{display:flex;gap:10px;margin-top:20px;align-items:center}
|
|
273
|
+
.tour-card .tour-nav .prog{flex:1;display:flex;gap:6px}
|
|
274
|
+
.tour-card .tour-nav .prog i{flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,.14);transition:background .3s}
|
|
275
|
+
.tour-card .tour-nav .prog i.on{background:var(--accent);box-shadow:0 0 8px var(--accent)}
|
|
276
|
+
.tour-btn{padding:10px 20px;border-radius:13px;font-size:13px;font-weight:700;
|
|
277
|
+
background:rgba(255,255,255,.08);border:1px solid var(--glass-border);transition:all .25s}
|
|
278
|
+
.tour-btn.next{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 75%,#000));color:#0a0a0a;border:none}
|
|
279
|
+
.tour-btn:hover{transform:translateY(-2px)}
|
|
280
|
+
.tour-spot{position:absolute;z-index:81;border-radius:28px;pointer-events:none;
|
|
281
|
+
box-shadow:0 0 0 3px var(--accent),0 0 44px 6px color-mix(in srgb,var(--accent) 45%,transparent);
|
|
282
|
+
animation:spotPulse 1.6s ease-in-out infinite;transition:all .5s cubic-bezier(.22,1,.36,1)}
|
|
283
|
+
@keyframes spotPulse{0%,100%{opacity:.85}50%{opacity:1}}
|
|
284
|
+
|
|
285
|
+
/* ---------- AI ---------- */
|
|
286
|
+
.ai-wrap{flex:1;display:flex;flex-direction:column;max-width:900px;width:100%;margin:0 auto;padding:30px 4vw 120px}
|
|
287
|
+
.ai-head{display:flex;align-items:center;gap:16px;margin-bottom:20px;animation:slideLeft .6s both}
|
|
288
|
+
.ai-orb{width:52px;height:52px;border-radius:50%;flex:none;position:relative;
|
|
289
|
+
background:radial-gradient(circle at 32% 30%,color-mix(in srgb,var(--accent) 80%,#fff),var(--accent) 45%,#3a1500);
|
|
290
|
+
animation:orbFloat 4s ease-in-out infinite;box-shadow:0 0 34px color-mix(in srgb,var(--accent) 45%,transparent)}
|
|
291
|
+
@keyframes orbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
|
|
292
|
+
.ai-orb::after{content:"";position:absolute;inset:-7px;border-radius:50%;
|
|
293
|
+
border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);animation:orbSpin 7s linear infinite}
|
|
294
|
+
@keyframes orbSpin{to{transform:rotate(360deg)}}
|
|
295
|
+
.ai-head h2{font-size:26px;font-weight:800}
|
|
296
|
+
.ai-head p{font-size:13px;color:#999}
|
|
297
|
+
#chatLog{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding:10px 4px;scrollbar-width:none}
|
|
298
|
+
#chatLog::-webkit-scrollbar{display:none}
|
|
299
|
+
.msg{max-width:82%;padding:15px 19px;border-radius:22px;font-size:15px;line-height:1.55;
|
|
300
|
+
animation:msgIn .45s cubic-bezier(.22,1,.36,1) both;white-space:pre-wrap;word-break:break-word}
|
|
301
|
+
@keyframes msgIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
|
|
302
|
+
.msg.user{align-self:flex-end;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 75%,#000));
|
|
303
|
+
color:#0d0d0d;font-weight:500;border-bottom-right-radius:6px}
|
|
304
|
+
.msg.bot{align-self:flex-start;background:var(--glass);backdrop-filter:blur(20px);
|
|
305
|
+
border:1px solid var(--glass-border);border-bottom-left-radius:6px}
|
|
306
|
+
.msg.bot .who{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);font-weight:800;margin-bottom:6px}
|
|
307
|
+
.code-widget{margin:12px 0;border-radius:16px;overflow:hidden;border:1px solid var(--glass-border);
|
|
308
|
+
background:#0b0b0f;box-shadow:0 8px 24px rgba(0,0,0,.4)}
|
|
309
|
+
.code-head{display:flex;align-items:center;gap:10px;padding:9px 14px;background:rgba(255,255,255,.05);
|
|
310
|
+
border-bottom:1px solid var(--glass-border)}
|
|
311
|
+
.code-head .dots{display:flex;gap:6px}
|
|
312
|
+
.code-head .dots i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.15)}
|
|
313
|
+
.code-head .dots i:first-child{background:var(--accent)}
|
|
314
|
+
.code-head .lang{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#888;flex:1}
|
|
315
|
+
.code-head .collapse,.code-head .copy{font-size:11px;font-weight:700;padding:5px 12px;border-radius:9px;
|
|
316
|
+
background:rgba(255,255,255,.07);border:1px solid var(--glass-border);transition:all .2s}
|
|
317
|
+
.code-head .copy:hover{background:var(--accent);color:#000}
|
|
318
|
+
.code-widget pre{max-height:220px;overflow:auto;padding:15px;font-size:12.5px;line-height:1.6;
|
|
319
|
+
font-family:"SF Mono",Menlo,Consolas,monospace;color:#d8d8e8;scrollbar-width:thin;transition:max-height .4s ease}
|
|
320
|
+
.code-widget.collapsed pre{max-height:0;padding-top:0;padding-bottom:0}
|
|
321
|
+
.code-widget pre::-webkit-scrollbar{width:6px;height:6px}
|
|
322
|
+
.code-widget pre::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 50%,transparent);border-radius:3px}
|
|
323
|
+
.typing{align-self:flex-start;display:flex;gap:6px;padding:16px 20px}
|
|
324
|
+
.typing i{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:tp 1.2s infinite}
|
|
325
|
+
.typing i:nth-child(2){animation-delay:.18s}.typing i:nth-child(3){animation-delay:.36s}
|
|
326
|
+
@keyframes tp{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-7px);opacity:1}}
|
|
327
|
+
#aiInputBar{display:flex;gap:12px;margin-top:18px;padding:10px 10px 10px 22px;align-items:center;
|
|
328
|
+
animation:riseInDock .8s .2s both}
|
|
329
|
+
@keyframes riseInDock{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
|
|
330
|
+
#aiInput{flex:1;background:none;border:none;outline:none;color:#fff;font-size:15px;font-family:inherit}
|
|
331
|
+
#aiInput::placeholder{color:#666}
|
|
332
|
+
#sendBtn{width:48px;height:48px;border-radius:16px;flex:none;display:flex;align-items:center;justify-content:center;
|
|
333
|
+
background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#000));color:#0a0a0a;
|
|
334
|
+
font-size:19px;transition:transform .25s,box-shadow .25s;box-shadow:0 6px 20px color-mix(in srgb,var(--accent) 35%,transparent)}
|
|
335
|
+
#sendBtn:hover{transform:scale(1.1) rotate(-8deg)}
|
|
336
|
+
.chips{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
|
|
337
|
+
.chip{font-size:12px;padding:8px 16px;border-radius:99px;border:1px solid var(--glass-border);
|
|
338
|
+
color:#aaa;background:rgba(255,255,255,.04);transition:all .25s}
|
|
339
|
+
.chip:hover{color:#fff;border-color:var(--accent);transform:translateY(-2px)}
|
|
340
|
+
|
|
341
|
+
#toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,20px);z-index:99;opacity:0;
|
|
342
|
+
background:rgba(15,15,10,.92);backdrop-filter:blur(14px);border:1px solid var(--glass-border);
|
|
343
|
+
padding:11px 22px;border-radius:14px;font-size:13px;font-weight:600;pointer-events:none;
|
|
344
|
+
transition:all .35s cubic-bezier(.22,1,.36,1)}
|
|
345
|
+
#toast.on{opacity:1;transform:translate(-50%,0)}
|
|
766
346
|
</style>
|
|
767
|
-
|
|
768
347
|
<base target="_blank">
|
|
769
348
|
<base target="_blank">
|
|
770
349
|
</head>
|
|
771
|
-
<body
|
|
350
|
+
<body>
|
|
351
|
+
|
|
352
|
+
<canvas id="particles"></canvas>
|
|
353
|
+
<div class="glow g1"></div>
|
|
354
|
+
<div class="glow g2"></div>
|
|
355
|
+
|
|
356
|
+
<!-- ============ HOME ============ -->
|
|
357
|
+
<div class="screen active" id="home">
|
|
358
|
+
<div class="hero" id="hero">
|
|
359
|
+
<div class="os-badge"><span class="dot"></span>IGNITE OS · v2.1</div>
|
|
360
|
+
<h1 id="bigTitle">
|
|
361
|
+
<span class="row" data-txt="IGNITE"></span>
|
|
362
|
+
<span class="row os" data-txt="OS"></span>
|
|
363
|
+
</h1>
|
|
364
|
+
<div id="rotator"></div>
|
|
365
|
+
|
|
366
|
+
<div class="widget-row" id="widgetRow">
|
|
367
|
+
<div class="widget glass" style="--fd:0s">
|
|
368
|
+
<div class="wicon" id="wIcon">⛅</div>
|
|
369
|
+
<div><div class="wlabel">Weather</div><div class="wvalue" id="wVal">--°</div></div>
|
|
370
|
+
</div>
|
|
371
|
+
<div class="widget glass" style="--fd:1.4s">
|
|
372
|
+
<svg class="ring" width="52" height="52" viewBox="0 0 52 52">
|
|
373
|
+
<circle class="bg" cx="26" cy="26" r="21" fill="none" stroke-width="5"/>
|
|
374
|
+
<circle class="fg" id="battRing" cx="26" cy="26" r="21" fill="none" stroke-width="5"
|
|
375
|
+
stroke-dasharray="131.9" stroke-dashoffset="131.9"/>
|
|
376
|
+
</svg>
|
|
377
|
+
<div><div class="wlabel">Battery</div><div class="wvalue" id="battVal">--%</div></div>
|
|
378
|
+
</div>
|
|
379
|
+
<div class="widget glass" style="--fd:2.8s">
|
|
380
|
+
<div class="wicon">🕒</div>
|
|
381
|
+
<div><div class="wlabel">Time</div><div class="wvalue" id="clockVal">--:--</div></div>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
772
384
|
|
|
773
|
-
|
|
774
|
-
<
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
<div class="blob blob-c"></div>
|
|
779
|
-
<div class="bg-grid"></div>
|
|
780
|
-
<div class="bg-noise"></div>
|
|
781
|
-
</div>
|
|
385
|
+
<div class="home-nav">
|
|
386
|
+
<button class="nav-btn primary glass" onclick="go('games')">Enter Games Hub <span class="arr">→</span></button>
|
|
387
|
+
<button class="nav-btn glass" onclick="go('movies')">Movies <span class="arr">→</span></button>
|
|
388
|
+
<button class="nav-btn glass" onclick="go('ai')">Ask IGNITE AI <span class="arr">→</span></button>
|
|
389
|
+
</div>
|
|
782
390
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
<div class="
|
|
789
|
-
<div class="
|
|
790
|
-
<
|
|
391
|
+
<div class="scroll-cue"><span>Scroll</span><div class="chev"></div></div>
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
<!-- library marquee -->
|
|
395
|
+
<div class="library" id="librarySec">
|
|
396
|
+
<div class="lib-title">Game <em>Library</em> <span class="n">20 TITLES</span></div>
|
|
397
|
+
<div class="lib-sub">Auto-scrolling · hover to pause · click any icon to play instantly</div>
|
|
398
|
+
<div class="rail-window"><div class="rail-track" id="railTrack"></div></div>
|
|
399
|
+
<div class="rail-window"><div class="rail-track rev" id="railTrack2"></div></div>
|
|
791
400
|
</div>
|
|
792
401
|
</div>
|
|
793
402
|
|
|
794
|
-
<!--
|
|
795
|
-
<
|
|
796
|
-
<div class="
|
|
797
|
-
<
|
|
798
|
-
<
|
|
799
|
-
<
|
|
800
|
-
<span class="brand-ver">v1.5</span>
|
|
801
|
-
</a>
|
|
802
|
-
<nav class="nav-links" id="nav-links">
|
|
803
|
-
<a href="#games" class="nav-link">Games</a>
|
|
804
|
-
<a href="#movies" class="nav-link">Movies</a>
|
|
805
|
-
<button class="nav-link btn-link" id="nav-work" type="button" title="Work Mode hides the vault (hotkey H)">Work</button>
|
|
806
|
-
<button class="nav-link btn-link" id="nav-customize" type="button">Customize</button>
|
|
807
|
-
</nav>
|
|
808
|
-
<div class="nav-side">
|
|
809
|
-
<span class="nav-clock" id="nav-clock">--:--</span>
|
|
810
|
-
<span class="profile-pill" id="profile-pill" title="Your driver name — click to change">DRIVER</span>
|
|
403
|
+
<!-- ============ GAMES HUB ============ -->
|
|
404
|
+
<div class="screen" id="games">
|
|
405
|
+
<div class="hub">
|
|
406
|
+
<div class="hub-head">
|
|
407
|
+
<h2>Games <em>Hub</em></h2>
|
|
408
|
+
<div class="count" id="gameCount"></div>
|
|
811
409
|
</div>
|
|
410
|
+
<div class="games-grid" id="gamesGrid"></div>
|
|
812
411
|
</div>
|
|
813
|
-
</
|
|
412
|
+
</div>
|
|
814
413
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
<div
|
|
821
|
-
<p class="panel-sub">Focus timer + task list. Work Mode hides the rest of the vault — press <kbd>H</kbd> to switch.</p></div>
|
|
822
|
-
<div class="focus-timer" id="focus-timer">25:00</div>
|
|
414
|
+
<!-- ============ MOVIE HUB ============ -->
|
|
415
|
+
<div class="screen" id="movies">
|
|
416
|
+
<div class="hub">
|
|
417
|
+
<div class="hub-head">
|
|
418
|
+
<h2>Movie <em>Theater</em></h2>
|
|
419
|
+
<div class="count" id="movieCount"></div>
|
|
823
420
|
</div>
|
|
824
|
-
<div class="
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
<option value="3600">60:00</option>
|
|
837
|
-
</select>
|
|
838
|
-
</div>
|
|
839
|
-
<div class="work-card">
|
|
840
|
-
<h4>Task list</h4>
|
|
841
|
-
<form class="tunnel-form" id="todo-form">
|
|
842
|
-
<input id="todo-input" class="tunnel-input" type="text" placeholder="add a task…" maxlength="90">
|
|
843
|
-
<button class="btn btn-accent btn-sm" type="submit">+</button>
|
|
844
|
-
</form>
|
|
845
|
-
<ul class="todo-list" id="todo-list"></ul>
|
|
846
|
-
<p class="cz-note">saved in your browser</p>
|
|
421
|
+
<div class="movies-grid" id="moviesGrid"></div>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
|
|
425
|
+
<!-- ============ AI ============ -->
|
|
426
|
+
<div class="screen" id="ai">
|
|
427
|
+
<div class="ai-wrap">
|
|
428
|
+
<div class="ai-head">
|
|
429
|
+
<div class="ai-orb"></div>
|
|
430
|
+
<div>
|
|
431
|
+
<h2>IGNITE <span style="color:var(--accent)">AI</span></h2>
|
|
432
|
+
<p>Super-smart assistant · great at coding, answers & ideas</p>
|
|
847
433
|
</div>
|
|
848
434
|
</div>
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
<div class="stat-strip" id="stat-strip">
|
|
855
|
-
<div class="stat"><b id="stat-games">0</b><span>games</span></div>
|
|
856
|
-
<div class="stat"><b id="stat-movies">0</b><span>movies</span></div>
|
|
857
|
-
<div class="stat"><b id="stat-local">0</b><span>local</span></div>
|
|
858
|
-
<div class="stat"><b id="stat-last">—</b><span>last launch</span></div>
|
|
859
|
-
</div>
|
|
860
|
-
</section>
|
|
861
|
-
|
|
862
|
-
<!-- games -->
|
|
863
|
-
<section class="panel" id="games">
|
|
864
|
-
<div class="panel-head">
|
|
865
|
-
<div><h3 class="panel-title">🎮 Game Vault</h3>
|
|
866
|
-
<p class="panel-sub">Play proxied web games or drop your own into <code>public/local-games/</code>.</p></div>
|
|
867
|
-
<span class="badge" id="games-edit-badge">+ new</span>
|
|
435
|
+
<div id="chatLog"></div>
|
|
436
|
+
<div class="chips">
|
|
437
|
+
<button class="chip" onclick="quickAsk('Write a Python script that sorts a list and explain it')">💻 Give me code</button>
|
|
438
|
+
<button class="chip" onclick="quickAsk('Explain quantum computing simply')">🧠 Teach me something</button>
|
|
439
|
+
<button class="chip" onclick="quickAsk('Help me build a game in JavaScript')">🎮 Build a game</button>
|
|
868
440
|
</div>
|
|
869
|
-
<div id="
|
|
870
|
-
|
|
441
|
+
<div id="aiInputBar" class="glass">
|
|
442
|
+
<input id="aiInput" placeholder="Ask IGNITE AI anything… even code" autocomplete="off">
|
|
443
|
+
<button id="sendBtn" onclick="sendMsg()">➤</button>
|
|
871
444
|
</div>
|
|
872
|
-
|
|
873
|
-
|
|
445
|
+
</div>
|
|
446
|
+
</div>
|
|
874
447
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
448
|
+
<!-- ============ PROXY ============ -->
|
|
449
|
+
<div class="screen" id="proxy">
|
|
450
|
+
<iframe id="proxyFrame" src="about:blank"
|
|
451
|
+
sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"></iframe>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
<!-- ============ DOCK ============ -->
|
|
455
|
+
<nav id="dock" class="glass">
|
|
456
|
+
<button class="dock-btn on" data-s="home" onclick="go('home')"><span class="dicon">⌂</span>Home</button>
|
|
457
|
+
<button class="dock-btn" data-s="games" onclick="go('games')"><span class="dicon">🎮</span>Games</button>
|
|
458
|
+
<button class="dock-btn" data-s="movies" onclick="go('movies')"><span class="dicon">🎬</span>Movies</button>
|
|
459
|
+
<button class="dock-btn" data-s="ai" onclick="go('ai')"><span class="dicon">✦</span>AI</button>
|
|
460
|
+
<button class="dock-btn" data-s="proxy" onclick="go('proxy')"><span class="dicon">🧭</span>Proxy</button>
|
|
461
|
+
<button class="dock-btn" id="settingsBtn" onclick="openSettings()"><span class="dicon">⚙</span></button>
|
|
462
|
+
</nav>
|
|
463
|
+
|
|
464
|
+
<!-- ============ PLAY MODAL ============ -->
|
|
465
|
+
<div id="playModal">
|
|
466
|
+
<div class="play-shell">
|
|
467
|
+
<div class="play-bar">
|
|
468
|
+
<span class="live"></span>
|
|
469
|
+
<span class="ttl" id="playTitle">Now Playing</span>
|
|
470
|
+
<button onclick="toggleFullScreen()" title="Fullscreen">⛶ Fullscreen</button>
|
|
471
|
+
<button onclick="closePlay()">✕ Close</button>
|
|
890
472
|
</div>
|
|
891
|
-
<div
|
|
892
|
-
|
|
893
|
-
<
|
|
894
|
-
<h4>Your library is empty</h4>
|
|
895
|
-
<p>Hit <b>+ movie</b> and paste a Google Drive link, or load the demo shelf to see the player in action.</p>
|
|
896
|
-
<button class="btn ghost" id="demo-movies">load demo shelf</button>
|
|
473
|
+
<div style="position:relative;flex:1;display:flex">
|
|
474
|
+
<div class="play-loading" id="playLoading"><div class="spinner"></div><div style="color:#888;font-size:13px">Loading…</div></div>
|
|
475
|
+
<iframe id="playFrame" allowfullscreen sandbox="allow-scripts allow-same-origin allow-forms allow-fullscreen allow-popups-to-escape-sandbox"></iframe>
|
|
897
476
|
</div>
|
|
898
|
-
</
|
|
899
|
-
|
|
900
|
-
<!-- continue watching -->
|
|
901
|
-
<section class="panel hidden" id="continue-panel">
|
|
902
|
-
<div class="panel-head"><div><h3 class="panel-title">▶ Continue watching</h3></div></div>
|
|
903
|
-
<div class="movie-grid" id="continue-grid"></div>
|
|
904
|
-
</section>
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
905
479
|
|
|
906
|
-
|
|
480
|
+
<!-- ============ SETTINGS ============ -->
|
|
481
|
+
<div id="settingsModal" onclick="if(event.target===this)closeSettings()">
|
|
482
|
+
<div class="settings-card glass">
|
|
483
|
+
<h3>Settings</h3>
|
|
484
|
+
<div class="sub">Customize IGNITE OS — accent color, weather, particles & AI.</div>
|
|
907
485
|
|
|
908
|
-
<
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
<span class="foot-hint"><kbd>/</kbd> search movies <kbd>G</kbd> games <kbd>M</kbd> movies <kbd>C</kbd> customize</span>
|
|
912
|
-
</footer>
|
|
913
|
-
<!-- customizer -->
|
|
914
|
-
<aside class="customizer" id="customizer" aria-label="Customizer">
|
|
915
|
-
<div class="customizer-head">
|
|
916
|
-
<h4>Customizer</h4>
|
|
917
|
-
<button class="icon-btn" id="cz-close" title="close">✕</button>
|
|
918
|
-
</div>
|
|
919
|
-
<div class="cz-scroll">
|
|
920
|
-
<label class="cz-label">theme preset</label>
|
|
921
|
-
<div class="swatches" id="cz-swatches">
|
|
922
|
-
<button class="swatch" data-preset="ember" style="--sw:#ff6b1a" title="Ember"></button>
|
|
923
|
-
<button class="swatch" data-preset="cobalt" style="--sw:#3b82f6" title="Cobalt"></button>
|
|
924
|
-
<button class="swatch" data-preset="violet" style="--sw:#a855f7" title="Violet"></button>
|
|
925
|
-
<button class="swatch" data-preset="inferno" style="--sw:#ff3d3d" title="Inferno"></button>
|
|
926
|
-
<button class="swatch" data-preset="ocean" style="--sw:#22d3ee" title="Ocean"></button>
|
|
927
|
-
<button class="swatch" data-preset="mint" style="--sw:#34d399" title="Mint"></button>
|
|
928
|
-
</div>
|
|
929
|
-
<label class="cz-label" for="cz-accent">accent color</label>
|
|
930
|
-
<div class="cz-row">
|
|
931
|
-
<input type="color" id="cz-accent" value="#ff6b1a">
|
|
932
|
-
<span class="cz-hex" id="cz-accent-hex">#ff6b1a</span>
|
|
486
|
+
<div class="set-row">
|
|
487
|
+
<div><div class="lbl">Accent Color</div><div class="hint">The tiny bit of orange — make it yours.</div></div>
|
|
488
|
+
<div class="swatches" id="swatches"></div>
|
|
933
489
|
</div>
|
|
934
|
-
|
|
935
|
-
<div class="
|
|
936
|
-
<
|
|
937
|
-
<
|
|
490
|
+
|
|
491
|
+
<div class="set-row">
|
|
492
|
+
<div><div class="lbl">Weather City</div><div class="hint">Leave blank to use your location.</div></div>
|
|
493
|
+
<input class="set-input" id="cityInput" type="text" placeholder="e.g. New York">
|
|
938
494
|
</div>
|
|
939
|
-
|
|
940
|
-
<
|
|
941
|
-
<
|
|
942
|
-
<
|
|
943
|
-
<option value="stars">night sky</option>
|
|
944
|
-
<option value="mesh">static mesh</option>
|
|
945
|
-
<option value="custom">custom image</option>
|
|
946
|
-
</select>
|
|
947
|
-
<div class="cz-row hidden" id="cz-bgurl-row">
|
|
948
|
-
<input id="cz-bgurl" class="search-input" type="text" placeholder="https://… background image URL">
|
|
495
|
+
|
|
496
|
+
<div class="set-row">
|
|
497
|
+
<div><div class="lbl">Particle Density</div><div class="hint">Snow intensity on the home screen.</div></div>
|
|
498
|
+
<input type="range" id="particleRange" min="40" max="260" step="10">
|
|
949
499
|
</div>
|
|
950
|
-
|
|
951
|
-
<
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
<label class="cz-label" for="cz-blur">card blur</label>
|
|
955
|
-
<input type="range" id="cz-blur" min="0" max="30" value="14">
|
|
956
|
-
<label class="cz-label" for="cz-radius">card radius</label>
|
|
957
|
-
<input type="range" id="cz-radius" min="4" max="32" value="18">
|
|
958
|
-
<label class="cz-label" for="cz-font">font</label>
|
|
959
|
-
<select id="cz-font" class="select-mini">
|
|
960
|
-
<option value="outfit">Outfit</option>
|
|
961
|
-
<option value="grotesk">Space Grotesk</option>
|
|
962
|
-
<option value="mono">JetBrains Mono</option>
|
|
963
|
-
<option value="system">System</option>
|
|
964
|
-
</select>
|
|
965
|
-
<label class="cz-label">effects</label>
|
|
966
|
-
<div class="cz-toggles">
|
|
967
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-particles" checked><span>particles</span></label>
|
|
968
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-grid" checked><span>grid</span></label>
|
|
969
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-noise" checked><span>noise</span></label>
|
|
970
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-anim" checked><span>animations</span></label>
|
|
971
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-sound"><span>sound fx</span></label>
|
|
972
|
-
<label class="cz-toggle"><input type="checkbox" id="cz-work"><span>work mode (H)</span></label>
|
|
500
|
+
|
|
501
|
+
<div class="set-row">
|
|
502
|
+
<div><div class="lbl">AI Model</div><div class="hint">Which OpenAI model IGNITE AI uses.</div></div>
|
|
503
|
+
<input class="set-input" id="modelInput" type="text" placeholder="model name">
|
|
973
504
|
</div>
|
|
974
|
-
|
|
975
|
-
<
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
</aside>
|
|
979
|
-
<!-- modals -->
|
|
980
|
-
<div class="modal hidden" id="launcher-modal" role="dialog" aria-modal="true">
|
|
981
|
-
<div class="launcher-bar">
|
|
982
|
-
<button class="icon-btn" id="launcher-back">←</button>
|
|
983
|
-
<span class="launcher-title" id="launcher-title">—</span>
|
|
984
|
-
<div class="launcher-actions">
|
|
985
|
-
<button class="btn ghost btn-sm" id="launcher-refresh">⟳</button>
|
|
986
|
-
<button class="btn ghost btn-sm" id="launcher-fs">⚬ fullscreen</button>
|
|
987
|
-
<button class="icon-btn" id="launcher-close">✕</button>
|
|
505
|
+
|
|
506
|
+
<div class="set-row">
|
|
507
|
+
<div><div class="lbl">Beginner Tour</div><div class="hint">Replay the welcome walkthrough.</div></div>
|
|
508
|
+
<button class="tour-btn" onclick="closeSettings();startTour()">▶ Replay</button>
|
|
988
509
|
</div>
|
|
989
|
-
</div>
|
|
990
|
-
<div class="launcher-frame-wrap">
|
|
991
|
-
<iframe id="launcher-frame" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-pointer-lock allow-forms allow-modals allow-downloads allow-top-navigation-by-user-activation"></iframe>
|
|
992
|
-
</div>
|
|
993
|
-
</div>
|
|
994
510
|
|
|
995
|
-
<div
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
<span class="launcher-title" id="player-title">—</span>
|
|
999
|
-
<div class="launcher-actions">
|
|
1000
|
-
<button class="btn ghost btn-sm" id="player-toggle" title="switch player engine">⇤ engine</button>
|
|
1001
|
-
<button class="btn ghost btn-sm" id="player-mark">✓ watched</button>
|
|
1002
|
-
<button class="icon-btn" id="player-close">✕</button>
|
|
511
|
+
<div style="display:flex;gap:12px;margin-top:26px">
|
|
512
|
+
<button class="nav-btn primary glass" style="flex:1;justify-content:center" onclick="saveSettings()">Save</button>
|
|
513
|
+
<button class="nav-btn glass" style="flex:1;justify-content:center" onclick="closeSettings()">Cancel</button>
|
|
1003
514
|
</div>
|
|
1004
515
|
</div>
|
|
1005
|
-
<div class="player-stage" id="player-stage"></div>
|
|
1006
516
|
</div>
|
|
1007
517
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
<
|
|
1016
|
-
|
|
1017
|
-
<
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
<label>Google Drive link · file or folder · or any direct video URL</label>
|
|
1021
|
-
<input id="form-link" type="text" placeholder="https://drive.google.com/file/d/…/view">
|
|
1022
|
-
</div>
|
|
1023
|
-
<div class="form-field">
|
|
1024
|
-
<label>Genre <i>(optional)</i></label>
|
|
1025
|
-
<input id="form-genre" type="text" placeholder="Action, Racing, Sci-Fi…">
|
|
1026
|
-
</div>
|
|
1027
|
-
<div class="form-field">
|
|
1028
|
-
<label>Poster image URL <i>(optional)</i></label>
|
|
1029
|
-
<input id="form-poster" type="text" placeholder="https://… cover art (Drive thumbnails work too)">
|
|
518
|
+
<!-- ============ TOUR ============ -->
|
|
519
|
+
<div id="tour">
|
|
520
|
+
<div class="dim"></div>
|
|
521
|
+
<div class="tour-spot" id="tourSpot"></div>
|
|
522
|
+
<div class="tour-card glass">
|
|
523
|
+
<div class="step-n" id="tourStepN">Step 1 of 5</div>
|
|
524
|
+
<h4 id="tourTitle"></h4>
|
|
525
|
+
<p id="tourText"></p>
|
|
526
|
+
<div class="tour-nav">
|
|
527
|
+
<div class="prog" id="tourProg"></div>
|
|
528
|
+
<button class="tour-btn" onclick="endTour()">Skip</button>
|
|
529
|
+
<button class="tour-btn next" id="tourNext" onclick="tourNext()">Next →</button>
|
|
1030
530
|
</div>
|
|
1031
|
-
|
|
1032
|
-
<button type="button" class="btn ghost" id="form-cancel">cancel</button>
|
|
1033
|
-
<button type="submit" class="btn btn-accent" id="form-submit">save</button>
|
|
1034
|
-
</div>
|
|
1035
|
-
<p class="cz-note" id="form-parse-hint"></p>
|
|
1036
|
-
</form>
|
|
531
|
+
</div>
|
|
1037
532
|
</div>
|
|
1038
533
|
|
|
1039
|
-
<div id="toast
|
|
534
|
+
<div id="toast"></div>
|
|
1040
535
|
|
|
1041
536
|
<script>
|
|
1042
|
-
/*
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
cover: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMVFhUXGBgYGBgXGBgYGBoVFxgYFxoeGh0YICggGholHRcdITEhJSkrLi4uGB8zODMtNygtLisBCgoKDg0OGxAQGi0lICYtLS8vLy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEI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sFNoSbGsIEei78+aWCNRNvFHF7AkhkO5qbHc0sHorEaAaGjU0CUpOsOg8UQWgpeg/ujoFTZSGWnmiuq7JQlTa7iVSZGhuk63j5WTlEwEhTMNP/uH4KPRfpKYvAprZdYGr9/unvm3CpKFaCjtxXe9+5Uatg3SJ1qlgkqlVBqYmQEtUqoKD8jbatjdaY+x6+hSbaqLTP59CrT2U0Hze+CC5Re68e/FCe9FZEgtOqk86KKiUa6yFsZFBXPUc3vghlyjm3QWMoK11/fAqTKuyCD78CslEnogYvlFy2Sb3KdN5NpVU2y7pB5WJfxWI6QIifp98EZu/QLFiREazdPUdEWh9I6lYsRxAkScp/wArFiYvBQRnolcP9LegW1iCXgi9wtP1K2VixUihhv0nqPVHpLFiZ7ADTNlof/pYsRLwJmV79PALT9VixLkMiQZqExR9R+CsWKR8hT8Eau/VDfoVixEUvBvgkKWyxYlyDgSOiw7rFigbMbr74FaetrEXsUgT0Slv4LFikPJb8BVixYiAP//Z',// ← optional image URL — letters disappear when set
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
cover: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQQFa7pNRwbmpuk0rwFYmYYjwAdFMI6qH18R1rO_rd8XQ&s=10',
|
|
1141
|
-
desc: 'fold, flick and fly.',
|
|
1142
|
-
tags: ['arcade','2D'], color: '#22d3ee',
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
id: 'slope-505', name: 'Slope 505',
|
|
1146
|
-
url: 'https://unpkg.com/sloeplus@1.0.0/index.html',
|
|
1147
|
-
cover: 'https://play-lh.googleusercontent.com/Ev5gkPTONr-1k1r7erT0iiW-pUZoGUH_6FVQdD91e9ghSAqZRMTaFVGQW5Z6PLOfFgxZnJhdEBE2z-TgfZ1bsg',
|
|
1148
|
-
desc: 'the rolling ball, remade.',
|
|
1149
|
-
tags: ['slope','3D'], color: '#fb7185',
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
id: 'boat-game', name: 'Boat Game',
|
|
1153
|
-
url: 'https://unpkg.com/boateman@1.0.0/index.html',
|
|
1154
|
-
cover: 'https://play-lh.googleusercontent.com/k80-V4CxUpsoNUTiZCasfAF4yTxy428anUQiM_AieHnLRMq2qmCPIHIYWT8dYATGyo1eTjZLZEa3aa3b4kyingA',
|
|
1155
|
-
desc: 'captain your boat.',
|
|
1156
|
-
tags: ['boat','arcade'], color: '#3b82f6',
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
id: '1v1-lol', name: '1v1.lol',
|
|
1160
|
-
url: 'https://unpkg.com/edcube-1v1-lol@5.0.0/index.html',
|
|
1161
|
-
cover: 'https://play-lh.googleusercontent.com/NAE7nd8mxERLlT-eIM68aEQi1RthPUzVd8KN_C-RPmvDgBLJ-C_kBHrBQFYPi8wQwr_nkxGUadoS0xStbU_jc7s=w240-h480-rw',
|
|
1162
|
-
desc: 'build and battle, 1v1.',
|
|
1163
|
-
tags: ['shooter','multiplayer'], color: '#22d3ee',
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
id: 'crossy-road', name: 'Crossy Road',
|
|
1167
|
-
url: 'https://unpkg.com/edcube-crossy-road@5.0.0/index.html',
|
|
1168
|
-
cover: 'https://play-lh.googleusercontent.com/LX__Y8tKCvkvEgboZtQfDsvYiNFa6kwWSpqObipZI2MLK5rFVd5tEU8xgMNoMj1ICOf9TO7PFoFmiKGeIpf1=w240-h480-rw',
|
|
1169
|
-
desc: 'cross the road, dodge the traffic.',
|
|
1170
|
-
tags: ['arcade','crossing'], color: '#facc15',
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
id: 'basketball-stars', name: 'Basketball Stars',
|
|
1174
|
-
url: 'https://unpkg.com/edcube-basketball-stars@5.0.0/index.html',
|
|
1175
|
-
cover: 'https://m.media-amazon.com/images/I/81BL1Hx2KuL.png',
|
|
1176
|
-
desc: 'sink threes and take the crown.',
|
|
1177
|
-
tags: ['sports','basketball'], color: '#ff6b1a',
|
|
1178
|
-
},
|
|
1179
|
-
{
|
|
1180
|
-
id: 'bitlife', name: 'Bitlife',
|
|
1181
|
-
url: 'https://unpkg.com/edcube-bitlife@5.0.0/index.html',
|
|
1182
|
-
cover: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRZdo5cBqkv1uAcfCofpC-WAViocRNLlysohwHMV2Lqzw&s=10',
|
|
1183
|
-
desc: 'live a whole life, one tap at a time.',
|
|
1184
|
-
tags: ['sim','life'], color: '#34d399',
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
id: 'tag', name: 'Tag',
|
|
1188
|
-
url: 'https://unpkg.com/edcube-tag@1.0.0/index.html',
|
|
1189
|
-
cover: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSFwGQ9vG6ZifxDpWHtuu8oSzYqll79xZ9rW_KwPwzCdA&s',
|
|
1190
|
-
desc: "don't get caught.",
|
|
1191
|
-
tags: ['platformer','2D'], color: '#facc15',
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
id: 'block-blast', name: 'Block Blast',
|
|
1195
|
-
url: 'https://unpkg.com/edcube-block-blast@5.0.0/index.html',
|
|
1196
|
-
cover: 'https://imgs.crazygames.com/block-puzzle-master_1x1/20250924025352/block-puzzle-master_1x1-cover?format=auto&quality=70&metadata=none',
|
|
1197
|
-
desc: 'blast blocks, clear lines.',
|
|
1198
|
-
tags: ['puzzle'], color: '#a855f7',
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
id: 'cut-the-rope', name: 'Cut the Rope',
|
|
1202
|
-
url: 'https://unpkg.com/edcube-cut-the-rope@5.0.0/index.html',
|
|
1203
|
-
cover: 'https://play-lh.googleusercontent.com/2bTmHHM7DBMVe7fLh16Em-J-tVBMFGL2HJCxPAMNF7gAYIfU6EZoYG1__lQ0cvFMEyp3GU9CGijZzEB1qJHF',
|
|
1204
|
-
desc: 'feed the monster, cut the rope.',
|
|
1205
|
-
tags: ['puzzle'], color: '#34d399',
|
|
1206
|
-
},
|
|
1207
|
-
];
|
|
1208
|
-
|
|
1209
|
-
const DEMO_MOVIES = [
|
|
1210
|
-
{ title: 'Spiderman: Far from home ', genre: 'Spiderman · Open Movie', desc: 'spiderman goes in new york idk',
|
|
1211
|
-
source: 'url', videoUrl: 'https://drive.google.com/file/d/1t62YY5V2WFqPA801cDECww1EQYk4fMnk/preview?t=11.299',
|
|
1212
|
-
poster: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSjdXbHSbJUSaJdgj45vDisJUiPj1qljxkOPbfojU3M1w&s=10' },
|
|
1213
|
-
{ title: 'Spiderman: Home comming', genre: 'spider · Open Movie', desc: 'wtf.',
|
|
1214
|
-
source: 'url', videoUrl: 'https://drive.google.com/file/d/1hUIx05G3N_ucg8SwdZHRt_5MdqLQZtai/preview?t=6',
|
|
1215
|
-
poster: 'https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p12798844_p_v8_ao.jpg' },
|
|
1216
|
-
{ title: 'F1', genre: ' Open Movie', desc: 'idk anything about it.',
|
|
1217
|
-
source: 'url', videoUrl: 'https://drive.google.com/file/d/1k_zRDt4Rn_9FotYJUfrhJZ0ZDKfwqQk1/preview',
|
|
1218
|
-
poster: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSr2SgmDLkFhLGuF1CnP_xJv1stiKvK027DkN6m6wdqdg&s=10' },
|
|
1219
|
-
{ title: 'OBBSESSION', genre: ' Open Movie', desc: 'idk this movie either',
|
|
1220
|
-
source: 'url', videoUrl: 'https://drive.google.com/file/d/1FEN16LwM5ZzTBSbBtkY95LrIzlsHXFx7/preview',
|
|
1221
|
-
poster: 'https://images.contentstack.io/v3/assets/blt13adb7e2033fcee5/blt5c8bcbfee5dade5c/6a2b47a8c284bac540ef3353/Obsession_keyart_poster_2000x3000.jpg?width=2560' },
|
|
537
|
+
/* ================= DATA (links encoded — not exposed) ================= */
|
|
538
|
+
const GAMES = [{id:'cookie-clicker',name:'Cookie Clicker',color:'#22d3ee',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWNvb2tpZS1jbGlja2VyQDUuMC4wL2luZGV4Lmh0bWw=',cover:'https://i.imgur.com/3ZQ3Z3Z.png'},
|
|
539
|
+
{id:'recoil',name:'Recoil',color:'#ff6b1a',featured:false,u:'aHR0cHM6Ly9nZW5lcmljLWFscGFjYS0zMjUzMjEuZnJhbWVyLmFwcC8=',cover:'https://fancade.com/images/5E9F40DA7F9C9FA8.jpg'},
|
|
540
|
+
{id:'retro-ball',name:'Retro Ball',color:'#a855f7',featured:false,u:'aHR0cHM6Ly9vYmplY3RzdG9yYWdlLnVzLWFzaGJ1cm4tMS5vcmFjbGVjbG91ZC5jb20vbi9pZHpneWZpN2F3d3IvYi9idWNrZXQtMjAyMzEwMDEtMTUxOC1yYjEuMC9vL2luZGV4Lmh0bWw=',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTfQEUbXopS95V30bru2UdgdystMD8ElzCDFzH6k6_pUQ&s'},
|
|
541
|
+
{id:'drift-boss',name:'Drift Boss',color:'#3b82f6',featured:false,u:'aHR0cHM6Ly93d3cubWF0aHBsYXlncm91bmQuY29tL2RyaWZ0LWJvc3MtdjMvaW5kZXguaHRtbA==',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMW_L-ZhbnvWj1lwNrWeAGDaK0rG0lCw52zSIsTfTmWNZ9oOVhXvQ_oJRA&s=10'},
|
|
542
|
+
{id:'tiny-fishing',name:'Tiny Fishing',color:'#facc15',featured:false,u:'aHR0cHM6Ly9nZW5lcmljLWFscGFjYS0zMjUzMjEuZnJhbWVyLmFwcC9wYWdlLTM=',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR-I2lTQx2HkSPrPeyCNmAnGGd_c29Um34tPc8TpiyJjg&s=10'},
|
|
543
|
+
{id:'small-world-cup',name:'A Small World Cup',color:'#34d399',featured:false,u:'aHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9hL21hY3Jvcy9tY3BzbWQubmV0L3MvQUtmeWNid1NLNUlxTFhiWnBwTXo5em5JSlZ5Y0I0QlpDSG9kRTN1U2dVRjRDMWZSZUVxbU1TRFl1YTgxRXc3UnAtQ244NWdvamcvZXhlYw==',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTY4AGQkfiAEPBItQdxMlfKm0Wz7eUOzt-SsZUGejt7cA&s=10'},
|
|
544
|
+
{id:'air-hockey',name:'Air Hockey CUP',color:'#f43f5e',featured:false,u:'aHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9tYWNyb3Mvcy9BS2Z5Y2J3N1ZuaFlLV0lUbEpvOXA4cXlUOEV4T2Z2bmp2aXpxNTdfamo3TXpEbnlKV1R1SHROYmVlM05Ib0VvUmh1UzZlcW8vZXhlYw==',cover:'https://play-lh.googleusercontent.com/EFevQ0zkoUL5FEPIsI8-yFKoK6QCyu3TSZRXEJiLkRaWrCidW3b6ZKNiNzuvfeaLKW9FyHeY3WYh4RR839Qanck'},
|
|
545
|
+
{id:'slope-remake',name:'Slope REMAKE',color:'#fb7185',featured:false,u:'aHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9hL21hY3Jvcy9tY3BzbWQubmV0L3MvQUtmeWNieWVuZFN6Zld6aml2R1VBb05nSDVRRHBKSXhKRHlKdlNZd1hXeGNWXzhnbDl4a2RUTVYyQnZEcGppV053NXBHYVZUL2V4ZWM=',cover:'https://play-lh.googleusercontent.com/Ev5gkPTONr-1k1r7erT0iiW-pUZoGUH_6FVQdD91e9ghSAqZRMTaFVGQW5Z6PLOfFgxZnJhdEBE2z-TgfZ1bsg'},
|
|
546
|
+
{id:'subway-surfers',name:'Subway Surfers',color:'#fb7185',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vc3Vid2F5c3RwZXRlcnNidXJnQDEuMC4wL2luZGV4Lmh0bWw=',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTzwmhMeCmyvXSpjVLHUUCok1FZhyrP-D9klmlq8Pt-Ww&s=10'},
|
|
547
|
+
{id:'bacon-may-die',name:'Bacon May Die',color:'#fb7185',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vc2Nob29sdWstYmFjb24tbWF5LWRpZUAxLjAuMC9pbmRleC5odG1s',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRG8Ra7wjHyaMeLnHp70ql98oi25b33UsPI63N-Jwbapw&s=10'},
|
|
548
|
+
{id:'paper-fly',name:'Paper Fly',color:'#22d3ee',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vcGFwZXJnbWZseUAxLjAuMC9pbmRleC5odG1s',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQQFa7pNRwbmpuk0rwFYmYYjwAdFMI6qH18R1rO_rd8XQ&s=10'},
|
|
549
|
+
{id:'slope-505',name:'Slope 505',color:'#fb7185',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vc2xvZXBsdXNAMS4wLjAvaW5kZXguaHRtbA==',cover:'https://play-lh.googleusercontent.com/Ev5gkPTONr-1k1r7erT0iiW-pUZoGUH_6FVQdD91e9ghSAqZRMTaFVGQW5Z6PLOfFgxZnJhdEBE2z-TgfZ1bsg'},
|
|
550
|
+
{id:'boat-game',name:'Boat Game',color:'#3b82f6',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vYm9hdGVtYW5AMS4wLjAvaW5kZXguaHRtbA==',cover:'https://play-lh.googleusercontent.com/k80-V4CxUpsoNUTiZCasfAF4yTxy428anUQiM_AieHnLRMq2qmCPIHIYWT8dYATGyo1eTjZLZEa3aa3b4kyingA'},
|
|
551
|
+
{id:'1v1-lol',name:'1v1.lol',color:'#22d3ee',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLTF2MS1sb2xANS4wLjAvaW5kZXguaHRtbA==',cover:'https://play-lh.googleusercontent.com/NAE7nd8mxERLlT-eIM68aEQi1RthPUzVd8KN_C-RPmvDgBLJ-C_kBHrBQFYPi8wQwr_nkxGUadoS0xStbU_jc7s=w240-h480-rw'},
|
|
552
|
+
{id:'crossy-road',name:'Crossy Road',color:'#facc15',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWNyb3NzeS1yb2FkQDUuMC4wL2luZGV4Lmh0bWw=',cover:'https://play-lh.googleusercontent.com/LX__Y8tKCvkvEgboZtQfDsvYiNFa6kwWSpqObipZI2MLK5rFVd5tEU8xgMNoMj1ICOf9TO7PFoFmiKGeIpf1=w240-h480-rw'},
|
|
553
|
+
{id:'basketball-stars',name:'Basketball Stars',color:'#ff6b1a',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWJhc2tldGJhbGwtc3RhcnNANS4wLjAvaW5kZXguaHRtbA==',cover:'https://m.media-amazon.com/images/I/81BL1Hx2KuL.png'},
|
|
554
|
+
{id:'bitlife',name:'Bitlife',color:'#34d399',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWJpdGxpZmVANS4wLjAvaW5kZXguaHRtbA==',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRZdo5cBqkv1uAcfCofpC-WAViocRNLlysohwHMV2Lqzw&s=10'},
|
|
555
|
+
{id:'tag',name:'Tag',color:'#facc15',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLXRhZ0AxLjAuMC9pbmRleC5odG1s',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSFwGQ9vG6ZifxDpWHtuu8oSzYqll79xZ9rW_KwPwzCdA&s'},
|
|
556
|
+
{id:'block-blast',name:'Block Blast',color:'#a855f7',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWJsb2NrLWJsYXN0QDUuMC4wL2luZGV4Lmh0bWw=',cover:'https://imgs.crazygames.com/block-puzzle-master_1x1/20250924025352/block-puzzle-master_1x1-cover?format=auto&quality=70&metadata=none'},
|
|
557
|
+
{id:'cut-the-rope',name:'Cut the Rope',color:'#34d399',featured:false,u:'aHR0cHM6Ly91bnBrZy5jb20vZWRjdWJlLWN1dC10aGUtcm9wZUA1LjAuMC9pbmRleC5odG1s',cover:'https://play-lh.googleusercontent.com/2bTmHHM7DBMVe7fLh16Em-J-tVBMFGL2HJCxPAMNF7gAYIfU6EZoYG1__lQ0cvFMEyp3GU9CGijZzEB1qJHF'},
|
|
558
|
+
{id:'duck-math',name:'Duck Math',color:'#34d399',featured:true,u:'aHR0cHM6Ly91bnBrZy5jb20vaWduaXRlLWdvb2JlckAxLjEuNC9pbmRleC5odG1sIy9jbGFzcy9kcmlmdC1raW5n',cover:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRJFXWvY3bIWxbR2SZEnbZaVFRYqFzZJZlOo4SYkWOexg&s'}];
|
|
559
|
+
const MOVIES = [{name:'Spiderman: Far From Home',u:'aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xdDYyWVk1VjJXRnFQQTgwMWNERUN3dzFFUVlrNGZNbmsvcHJldmlldw==',poster:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSjdXbHSbJUSaJdgj45vDisJUiPj1qljxkOPbfojU3M1w&s=10'},
|
|
560
|
+
{name:'Spiderman: Homecoming',u:'aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xaFVJeDA1RzNOX3VjZzhTd2RaSFJ0XzVNZHFMUVp0YWkvcHJldmlldw==',poster:'https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p12798844_p_v8_ao.jpg'},
|
|
561
|
+
{name:'F1',u:'aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xa196UkR0NFJuXzlGb3RZSlVmcmhKWjBaREtmd3FRazEvcHJldmlldw==',poster:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSr2SgmDLkFhLGuF1CnP_xJv1stiKvK027DkN6m6wdqdg&s=10'},
|
|
562
|
+
{name:'Obsession',u:'aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xRkVOMTZMd001WnpUQlNiQnRrWTk1THJJemxzSFhGeDcvcHJldmlldw==',poster:'https://images.contentstack.io/v3/assets/blt13adb7e2033fcee5/blt5c8bcbfee5dade5c/6a2b47a8c284bac540ef3353/Obsession_keyart_poster_2000x3000.jpg?width=2560'}];
|
|
563
|
+
const dec = s => atob(s);
|
|
564
|
+
const PROXY_URL = dec('aHR0cHM6Ly9tb2JpbGUtc2VydmljZS0zODYzMTEuZnJhbWVyLmFwcC8=');
|
|
565
|
+
const AI_KEY = "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";
|
|
566
|
+
|
|
567
|
+
/* ================= SETTINGS ================= */
|
|
568
|
+
const DEFAULTS = {accent:"#ff6b1a", city:"", particles:140, model:"gpt-4o"};
|
|
569
|
+
let S = {...DEFAULTS, ...JSON.parse(localStorage.getItem("igniteos")||"{}")};
|
|
570
|
+
const saveS = () => localStorage.setItem("igniteos", JSON.stringify(S));
|
|
571
|
+
const applyAccent = () => document.documentElement.style.setProperty("--accent", S.accent);
|
|
572
|
+
|
|
573
|
+
/* ================= NAV ================= */
|
|
574
|
+
function go(id){
|
|
575
|
+
document.querySelectorAll(".screen").forEach(s=>s.classList.remove("active"));
|
|
576
|
+
document.getElementById(id).classList.add("active");
|
|
577
|
+
document.querySelectorAll(".dock-btn[data-s]").forEach(b=>b.classList.toggle("on", b.dataset.s===id));
|
|
578
|
+
if(id==="proxy"){
|
|
579
|
+
const pf = document.getElementById("proxyFrame");
|
|
580
|
+
if(!pf.src || pf.src==="about:blank") pf.src = PROXY_URL;
|
|
581
|
+
}
|
|
582
|
+
if(id==="home") startParticles(); else stopParticles();
|
|
583
|
+
window.scrollTo(0,0); document.getElementById(id==='home'?'home':id).scrollTop = 0;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/* ================= PARTICLES ================= */
|
|
587
|
+
const cv = document.getElementById("particles"), ctx = cv.getContext("2d");
|
|
588
|
+
let flakes = [], raf = null;
|
|
589
|
+
function sizeCanvas(){ cv.width = innerWidth; cv.height = innerHeight; }
|
|
590
|
+
addEventListener("resize", sizeCanvas); sizeCanvas();
|
|
591
|
+
function makeFlakes(){
|
|
592
|
+
flakes = Array.from({length:S.particles}, () => ({
|
|
593
|
+
x: Math.random()*cv.width, y: Math.random()*cv.height,
|
|
594
|
+
r: Math.random()*2.4+.6, s: Math.random()*.9+.35,
|
|
595
|
+
a: Math.random()*Math.PI*2, w: Math.random()*.6+.15, o: Math.random()*.55+.2
|
|
596
|
+
}));
|
|
597
|
+
}
|
|
598
|
+
function drawFlakes(){
|
|
599
|
+
ctx.clearRect(0,0,cv.width,cv.height);
|
|
600
|
+
const acc = getComputedStyle(document.documentElement).getPropertyValue("--accent").trim() || "#ff6b1a";
|
|
601
|
+
for(const f of flakes){
|
|
602
|
+
f.y += f.s; f.a += .012; f.x += Math.sin(f.a)*f.w;
|
|
603
|
+
if(f.y > cv.height+6){ f.y = -6; f.x = Math.random()*cv.width; }
|
|
604
|
+
const tw = .75 + Math.sin(f.a*2)*.25;
|
|
605
|
+
ctx.beginPath(); ctx.arc(f.x, f.y, f.r, 0, Math.PI*2);
|
|
606
|
+
ctx.fillStyle = f.r > 1.9 ? hexA(acc, f.o*tw*.9) : `rgba(255,255,255,${f.o*tw})`;
|
|
607
|
+
ctx.fill();
|
|
608
|
+
}
|
|
609
|
+
raf = requestAnimationFrame(drawFlakes);
|
|
610
|
+
}
|
|
611
|
+
function hexA(h, a){
|
|
612
|
+
const n = parseInt(h.slice(1),16);
|
|
613
|
+
return `rgba(${n>>16&255},${n>>8&255},${n&255},${a})`;
|
|
614
|
+
}
|
|
615
|
+
function startParticles(){ if(!raf){ makeFlakes(); drawFlakes(); } }
|
|
616
|
+
function stopParticles(){ cancelAnimationFrame(raf); raf = null; ctx.clearRect(0,0,cv.width,cv.height); }
|
|
617
|
+
|
|
618
|
+
/* ================= TITLE letters ================= */
|
|
619
|
+
document.querySelectorAll("#bigTitle .row").forEach((row, ri)=>{
|
|
620
|
+
[...row.dataset.txt].forEach((ch, i)=>{
|
|
621
|
+
const s = document.createElement("span");
|
|
622
|
+
s.className = "ch"; s.textContent = ch;
|
|
623
|
+
s.style.setProperty("--cd", (0.15 + ri*0.28 + i*0.055) + "s");
|
|
624
|
+
row.appendChild(s);
|
|
625
|
+
});
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
/* ================= ROTATOR ================= */
|
|
629
|
+
const LINES = [
|
|
630
|
+
"20 hand-picked games. Zero loading pain.",
|
|
631
|
+
"A private movie theater, right in your browser.",
|
|
632
|
+
"An AI that codes, explains and builds with you.",
|
|
633
|
+
"Liquid glass. Falling light. Pure black.",
|
|
634
|
+
"Your arcade. Your cinema. Your OS."
|
|
1222
635
|
];
|
|
636
|
+
const rot = document.getElementById("rotator");
|
|
637
|
+
LINES.forEach((t,i)=>{
|
|
638
|
+
const d = document.createElement("div");
|
|
639
|
+
d.className = "line" + (i===0?" on":"");
|
|
640
|
+
d.innerHTML = `<span class="tick"></span>${t}`;
|
|
641
|
+
rot.appendChild(d);
|
|
642
|
+
});
|
|
643
|
+
let li = 0;
|
|
644
|
+
setInterval(()=>{
|
|
645
|
+
const lines = rot.children;
|
|
646
|
+
lines[li].classList.replace("on","off");
|
|
647
|
+
const prev = li; li = (li+1)%lines.length;
|
|
648
|
+
setTimeout(()=>lines[prev].classList.remove("off"), 600);
|
|
649
|
+
lines[li].classList.add("on");
|
|
650
|
+
}, 3800);
|
|
651
|
+
|
|
652
|
+
/* ================= HERO mouse parallax ================= */
|
|
653
|
+
const hero = document.getElementById("hero");
|
|
654
|
+
hero.addEventListener("mousemove", e=>{
|
|
655
|
+
const rx = (e.clientX/innerWidth - .5), ry = (e.clientY/innerHeight - .5);
|
|
656
|
+
hero.querySelectorAll(".os-badge,#bigTitle,.widget-row,.home-nav").forEach((el,i)=>{
|
|
657
|
+
const d = (i+1)*4;
|
|
658
|
+
el.style.transform = `translate(${-rx*d}px, ${-ry*d}px)`;
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
hero.addEventListener("mouseleave", ()=>{
|
|
662
|
+
hero.querySelectorAll(".os-badge,#bigTitle,.widget-row,.home-nav").forEach(el=>el.style.transform="");
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
/* ================= CLOCK ================= */
|
|
666
|
+
setInterval(()=>{
|
|
667
|
+
document.getElementById("clockVal").textContent =
|
|
668
|
+
new Date().toLocaleTimeString([], {hour:"2-digit", minute:"2-digit"});
|
|
669
|
+
}, 1000);
|
|
670
|
+
|
|
671
|
+
/* ================= BATTERY ================= */
|
|
672
|
+
(async ()=>{
|
|
673
|
+
try{
|
|
674
|
+
const b = await navigator.getBattery();
|
|
675
|
+
const upd = ()=>{
|
|
676
|
+
const pct = Math.round(b.level*100);
|
|
677
|
+
document.getElementById("battVal").textContent = pct + "%" + (b.charging?" ⚡":"");
|
|
678
|
+
document.getElementById("battRing").style.strokeDashoffset = 131.9*(1-b.level);
|
|
679
|
+
};
|
|
680
|
+
b.onlevelchange = b.onchargingchange = upd; upd();
|
|
681
|
+
}catch(e){ document.getElementById("battVal").textContent = "N/A"; }
|
|
682
|
+
})();
|
|
1223
683
|
|
|
1224
|
-
/*
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
prefs: 'emby.prefs.v1', profile: 'emby.profile.v1',
|
|
1237
|
-
last: 'emby.last.v1', overrides: 'emby.overrides.v1',
|
|
1238
|
-
};
|
|
1239
|
-
const store = {
|
|
1240
|
-
get(key, fallback) {
|
|
1241
|
-
try { const v = JSON.parse(localStorage.getItem(key)); return v === null || v === undefined ? fallback : v; }
|
|
1242
|
-
catch { return fallback; }
|
|
1243
|
-
},
|
|
1244
|
-
set(key, val) {
|
|
1245
|
-
try { localStorage.setItem(key, JSON.stringify(val)); } catch { /* ignore */ }
|
|
1246
|
-
},
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
// ── state ──
|
|
1250
|
-
const state = {
|
|
1251
|
-
games: [],
|
|
1252
|
-
localGames: [],
|
|
1253
|
-
movies: store.get(K.movies, []),
|
|
1254
|
-
overrides: store.get(K.overrides, {}),
|
|
1255
|
-
prefs: Object.assign({
|
|
1256
|
-
preset: 'ember', accent: '#ff6b1a', accent2: '#ffb26b',
|
|
1257
|
-
bgType: 'aurora', bgHue: 28, bgUrl: '', glow: 70, blur: 14,
|
|
1258
|
-
radius: 18, font: 'outfit', particles: true, grid: true,
|
|
1259
|
-
noise: true, anim: true, sound: false, work: false,
|
|
1260
|
-
}, store.get(K.prefs, {})),
|
|
1261
|
-
profile: Object.assign({ name: 'DRIVER' }, store.get(K.profile, {})),
|
|
1262
|
-
movieFilter: '', movieGenre: '', movieSort: 'added',
|
|
1263
|
-
playerMovie: null, playerEngine: 'video',
|
|
1264
|
-
launcherUrl: '', formEditId: null, formMode: 'movie',
|
|
1265
|
-
keys: [], turbo: false,
|
|
1266
|
-
};
|
|
1267
|
-
|
|
1268
|
-
// ── proxy url helpers ──
|
|
1269
|
-
const serverBase = () => {
|
|
1270
|
-
try { return String(localStorage.getItem('emby.server') || '').replace(/\/+$/, ''); }
|
|
1271
|
-
catch { return ''; }
|
|
1272
|
-
};
|
|
1273
|
-
const proxify = (raw) => {
|
|
1274
|
-
let u = (raw || '').trim();
|
|
1275
|
-
if (!u) return '';
|
|
1276
|
-
if (!/^[a-z][a-z0-9+.-]*:/i.test(u)) u = 'https://' + u;
|
|
1277
|
-
return u;
|
|
1278
|
-
};
|
|
1279
|
-
const tunnel = (raw) => proxify(raw, '/go/');
|
|
1280
|
-
|
|
1281
|
-
// ── google drive parser ──
|
|
1282
|
-
const DRIVE_ID = /[A-Za-z0-9_-]{28,}/;
|
|
1283
|
-
function parseDrive(input) {
|
|
1284
|
-
const s = (input || '').trim();
|
|
1285
|
-
if (!s) return { kind: 'none' };
|
|
1286
|
-
if (/^[A-Za-z0-9_-]{28,}$/.test(s)) return { kind: 'file', id: s };
|
|
1287
|
-
let u;
|
|
1288
|
-
try { u = new URL(s); } catch { return { kind: 'url', url: s }; }
|
|
1289
|
-
const host = u.hostname.toLowerCase();
|
|
1290
|
-
if (host === 'drive.google.com' || host === 'drive.usercontent.google.com' || host === 'docs.google.com') {
|
|
1291
|
-
const path = u.pathname;
|
|
1292
|
-
const mFile = path.match(/\/file\/d\/([^/]+)/);
|
|
1293
|
-
const mFolder = path.match(/\/drive\/folders\/([^/]+)/);
|
|
1294
|
-
const idQ = u.searchParams.get('id');
|
|
1295
|
-
const folderQ = u.searchParams.get('folder');
|
|
1296
|
-
if (mFolder || folderQ) return { kind: 'folder', id: (mFolder ? mFolder[1] : folderQ) };
|
|
1297
|
-
if (mFile) return { kind: 'file', id: mFile[1] };
|
|
1298
|
-
if (idQ) return { kind: 'file', id: idQ };
|
|
1299
|
-
if (DRIVE_ID.test(path)) return { kind: 'file', id: path.match(DRIVE_ID)[0] };
|
|
1300
|
-
}
|
|
1301
|
-
return { kind: 'url', url: s };
|
|
1302
|
-
}
|
|
1303
|
-
const drivePreview = (id) => 'https://drive.google.com/file/d/' + id + '/preview';
|
|
1304
|
-
const driveRaw = (id) => 'https://drive.usercontent.google.com/download?id=' + id + '&export=download&confirm=t';
|
|
1305
|
-
const driveFolder = (id) => 'https://drive.google.com/embeddedfolderview?id=' + id + '#list';
|
|
1306
|
-
const driveThumb = (id) => 'https://drive.google.com/thumbnail?id=' + id + '&sz=w1000';
|
|
1307
|
-
|
|
1308
|
-
// ── toast ──
|
|
1309
|
-
function toast(msg, ms) {
|
|
1310
|
-
const zone = $('toast-zone');
|
|
1311
|
-
const t = document.createElement('div');
|
|
1312
|
-
t.className = 'toast'; t.textContent = msg;
|
|
1313
|
-
zone.appendChild(t);
|
|
1314
|
-
setTimeout(() => { t.classList.add('out'); setTimeout(() => t.remove(), 400); }, ms || 2600);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
// ── micro sound fx (WebAudio, optional) ──
|
|
1318
|
-
let audioCtx = null;
|
|
1319
|
-
function beep(freq, dur, type) {
|
|
1320
|
-
if (!state.prefs.sound) return;
|
|
1321
|
-
try {
|
|
1322
|
-
audioCtx = audioCtx || new (window.AudioContext || window.webkitAudioContext)();
|
|
1323
|
-
const o = audioCtx.createOscillator(), g = audioCtx.createGain();
|
|
1324
|
-
o.type = type || 'sine'; o.frequency.value = freq;
|
|
1325
|
-
g.gain.setValueAtTime(0.06, audioCtx.currentTime);
|
|
1326
|
-
g.gain.exponentialRampToValueAtTime(0.0001, audioCtx.currentTime + (dur || 0.12));
|
|
1327
|
-
o.connect(g); g.connect(audioCtx.destination);
|
|
1328
|
-
o.start(); o.stop(audioCtx.currentTime + (dur || 0.12));
|
|
1329
|
-
} catch { /* ignore */ }
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
// ── confetti ──
|
|
1333
|
-
function confetti(n) {
|
|
1334
|
-
const colors = ['#ff6b1a', '#ffb26b', '#ffd54f', '#ff8a65', '#ffffff', '#ffab91'];
|
|
1335
|
-
for (let i = 0; i < (n || 60); i++) {
|
|
1336
|
-
const p = document.createElement('i');
|
|
1337
|
-
p.className = 'confetti-piece';
|
|
1338
|
-
p.style.left = Math.random() * 100 + 'vw';
|
|
1339
|
-
p.style.background = colors[(Math.random() * colors.length) | 0];
|
|
1340
|
-
p.style.animationDuration = (1.6 + Math.random() * 1.8) + 's';
|
|
1341
|
-
p.style.animationDelay = (Math.random() * 0.35) + 's';
|
|
1342
|
-
document.body.appendChild(p);
|
|
1343
|
-
setTimeout(() => p.remove(), 4200);
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
window.IGNITE = { tunnel, proxify };
|
|
1348
|
-
// ═══════════ theme / prefs ═══════════
|
|
1349
|
-
|
|
1350
|
-
const hexToRgb = (hex) => {
|
|
1351
|
-
const h = hex.replace('#', '');
|
|
1352
|
-
const n = parseInt(h.length === 3 ? h.split('').map((c) => c + c).join('') : h, 16);
|
|
1353
|
-
return { r: (n >> 16) & 255, g: (n >> 8) & 255, b: n & 255 };
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
function applyPrefs() {
|
|
1357
|
-
const p = state.prefs;
|
|
1358
|
-
const root = document.documentElement.style;
|
|
1359
|
-
root.setProperty('--accent', p.accent);
|
|
1360
|
-
root.setProperty('--accent2', p.accent2);
|
|
1361
|
-
root.setProperty('--glow', Math.max(0.05, p.glow / 100));
|
|
1362
|
-
root.setProperty('--blur', p.blur + 'px');
|
|
1363
|
-
root.setProperty('--radius', p.radius + 'px');
|
|
1364
|
-
root.setProperty('--bg-h', p.bgHue);
|
|
1365
|
-
root.setProperty('--bg0', 'hsl(' + p.bgHue + ' 42% 3%)');
|
|
1366
|
-
root.setProperty('--bg1', 'hsl(' + p.bgHue + ' 40% 7%)');
|
|
1367
|
-
root.setProperty('--bg2', 'hsl(' + p.bgHue + ' 38% 11%)');
|
|
1368
|
-
|
|
1369
|
-
const body = document.body;
|
|
1370
|
-
body.dataset.bg = p.bgType;
|
|
1371
|
-
body.dataset.font = p.font;
|
|
1372
|
-
body.dataset.anim = p.anim ? 'on' : 'off';
|
|
1373
|
-
body.dataset.work = p.work ? 'on' : 'off';
|
|
1374
|
-
if (p.bgType === 'custom' && p.bgUrl) {
|
|
1375
|
-
body.style.setProperty('--bgimg', 'url("' + p.bgUrl.replace(/"/g, '%22') + '")');
|
|
684
|
+
/* ================= WEATHER ================= */
|
|
685
|
+
const WMO = {0:"☀️",1:"🌤️",2:"⛅",3:"☁️",45:"🌫️",48:"🌫️",51:"🌦️",53:"🌦️",55:"🌧️",56:"🌧️",57:"🌧️",
|
|
686
|
+
61:"🌧️",63:"🌧️",65:"🌧️",66:"🌧️",67:"🌧️",71:"🌨️",73:"🌨️",75:"🌨️",77:"🌨️",80:"🌦️",81:"🌧️",82:"⛈️",
|
|
687
|
+
85:"🌨️",86:"🌨️",95:"⛈️",96:"⛈️",99:"⛈️"};
|
|
688
|
+
async function loadWeather(){
|
|
689
|
+
const val = document.getElementById("wVal"), ic = document.getElementById("wIcon");
|
|
690
|
+
try{
|
|
691
|
+
let lat, lon, name = "";
|
|
692
|
+
if(S.city){
|
|
693
|
+
const g = await fetch(`https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(S.city)}&count=1`).then(r=>r.json());
|
|
694
|
+
if(!g.results?.length) throw 0;
|
|
695
|
+
({latitude:lat, longitude:lon, name} = g.results[0]);
|
|
1376
696
|
} else {
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
document.querySelector('.bg-grid').style.display = p.grid ? '' : 'none';
|
|
1380
|
-
document.querySelector('.bg-noise').style.display = p.noise ? '' : 'none';
|
|
1381
|
-
|
|
1382
|
-
// sync customizer UI
|
|
1383
|
-
$('cz-accent').value = p.accent;
|
|
1384
|
-
$('cz-accent-hex').textContent = p.accent;
|
|
1385
|
-
$('cz-accent2').value = p.accent2;
|
|
1386
|
-
$('cz-accent2-hex').textContent = p.accent2;
|
|
1387
|
-
$('cz-bgtype').value = p.bgType;
|
|
1388
|
-
$('cz-bgurl').value = p.bgUrl;
|
|
1389
|
-
$('cz-bg-hue').value = p.bgHue;
|
|
1390
|
-
$('cz-glow').value = p.glow;
|
|
1391
|
-
$('cz-blur').value = p.blur;
|
|
1392
|
-
$('cz-radius').value = p.radius;
|
|
1393
|
-
$('cz-font').value = p.font;
|
|
1394
|
-
$('cz-particles').checked = p.particles;
|
|
1395
|
-
$('cz-grid').checked = p.grid;
|
|
1396
|
-
$('cz-noise').checked = p.noise;
|
|
1397
|
-
$('cz-anim').checked = p.anim;
|
|
1398
|
-
$('cz-sound').checked = p.sound;
|
|
1399
|
-
$('cz-work').checked = !!p.work;
|
|
1400
|
-
document.title = p.work ? 'Homework Hub' : 'IGNITE OS — the unblocked dashboard';
|
|
1401
|
-
const bnameTag = document.querySelector('.brand-name');
|
|
1402
|
-
if (bnameTag) bnameTag.innerHTML = p.work
|
|
1403
|
-
? 'Homework<span class="accent-text">Hub</span>'
|
|
1404
|
-
: 'Ignite<span class="accent-text">OS</span>';
|
|
1405
|
-
$('cz-bgurl-row').classList.toggle('hidden', p.bgType !== 'custom');
|
|
1406
|
-
document.querySelectorAll('#cz-swatches .swatch').forEach((sw) => {
|
|
1407
|
-
sw.classList.toggle('active', sw.dataset.preset === p.preset);
|
|
1408
|
-
});
|
|
1409
|
-
store.set(K.prefs, p);
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
function savePref(patch) {
|
|
1413
|
-
Object.assign(state.prefs, patch);
|
|
1414
|
-
applyPrefs();
|
|
1415
|
-
store.set(K.prefs, state.prefs);
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
function toggleCustomizer(open) {
|
|
1419
|
-
$('customizer').classList.toggle('open', open);
|
|
1420
|
-
if (open) { $('cz-name').value = state.profile.name; $('cz-name').focus(); }
|
|
1421
|
-
beep(open ? 440 : 320, 0.07);
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
function bindCustomizer() {
|
|
1425
|
-
$('cz-swatches').addEventListener('click', (e) => {
|
|
1426
|
-
const sw = e.target.closest('.swatch');
|
|
1427
|
-
if (!sw) return;
|
|
1428
|
-
const preset = THEME_PRESETS[sw.dataset.preset];
|
|
1429
|
-
if (!preset) return;
|
|
1430
|
-
Object.assign(state.prefs, preset, { preset: sw.dataset.preset });
|
|
1431
|
-
applyPrefs(); store.set(K.prefs, state.prefs);
|
|
1432
|
-
beep(620, 0.09);
|
|
1433
|
-
toast('theme: ' + sw.dataset.preset, 1400);
|
|
1434
|
-
});
|
|
1435
|
-
$('cz-accent').addEventListener('input', (e) => savePref({ accent: e.target.value, preset: null }));
|
|
1436
|
-
$('cz-accent2').addEventListener('input', (e) => savePref({ accent2: e.target.value, preset: null }));
|
|
1437
|
-
$('cz-bgtype').addEventListener('change', (e) => savePref({ bgType: e.target.value, preset: null }));
|
|
1438
|
-
$('cz-bgurl').addEventListener('change', (e) => savePref({ bgUrl: e.target.value.trim() }));
|
|
1439
|
-
$('cz-bg-hue').addEventListener('input', (e) => savePref({ bgHue: Number(e.target.value) }));
|
|
1440
|
-
$('cz-glow').addEventListener('input', (e) => savePref({ glow: Number(e.target.value) }));
|
|
1441
|
-
$('cz-blur').addEventListener('input', (e) => savePref({ blur: Number(e.target.value) }));
|
|
1442
|
-
$('cz-radius').addEventListener('input', (e) => savePref({ radius: Number(e.target.value) }));
|
|
1443
|
-
$('cz-font').addEventListener('change', (e) => savePref({ font: e.target.value }));
|
|
1444
|
-
$('cz-particles').addEventListener('change', (e) => savePref({ particles: e.target.checked }));
|
|
1445
|
-
$('cz-grid').addEventListener('change', (e) => savePref({ grid: e.target.checked }));
|
|
1446
|
-
$('cz-noise').addEventListener('change', (e) => savePref({ noise: e.target.checked }));
|
|
1447
|
-
$('cz-anim').addEventListener('change', (e) => savePref({ anim: e.target.checked }));
|
|
1448
|
-
$('cz-sound').addEventListener('change', (e) => savePref({ sound: e.target.checked }));
|
|
1449
|
-
$('cz-work').addEventListener('change', (e) => setWorkMode(e.target.checked));
|
|
1450
|
-
$('cz-name').addEventListener('change', (e) => {
|
|
1451
|
-
state.profile.name = (e.target.value || 'DRIVER').toUpperCase().slice(0, 20);
|
|
1452
|
-
store.set(K.profile, state.profile);
|
|
1453
|
-
$('profile-pill').textContent = state.profile.name;
|
|
1454
|
-
});
|
|
1455
|
-
$('cz-reset').addEventListener('click', () => {
|
|
1456
|
-
localStorage.removeItem(K.prefs);
|
|
1457
|
-
localStorage.removeItem(K.profile);
|
|
1458
|
-
location.reload();
|
|
1459
|
-
});
|
|
1460
|
-
$('nav-customize').addEventListener('click', () => toggleCustomizer(true));
|
|
1461
|
-
$('cz-close').addEventListener('click', () => toggleCustomizer(false));
|
|
1462
|
-
}
|
|
1463
|
-
// ═══════════ background canvas ═══════════
|
|
1464
|
-
|
|
1465
|
-
const canvas = $('bg-canvas');
|
|
1466
|
-
const ctx = canvas.getContext('2d');
|
|
1467
|
-
let motes = [], starMode = false;
|
|
1468
|
-
function initMotes() {
|
|
1469
|
-
starMode = state.prefs.bgType === 'stars';
|
|
1470
|
-
const count = starMode ? 130 : Math.min(72, Math.floor(canvas.width / 22));
|
|
1471
|
-
motes = Array.from({ length: count }, () => ({
|
|
1472
|
-
x: Math.random() * canvas.width, y: Math.random() * canvas.height,
|
|
1473
|
-
r: starMode ? (Math.random() * 1.4 + 0.4) : (Math.random() * 2 + 0.6),
|
|
1474
|
-
vx: (Math.random() - 0.5) * (starMode ? 0.15 : 0.35),
|
|
1475
|
-
vy: (Math.random() - 0.5) * (starMode ? 0.12 : 0.28),
|
|
1476
|
-
tw: Math.random() * Math.PI * 2, tws: 0.01 + Math.random() * 0.03,
|
|
1477
|
-
hue: Math.random() * 40 - 20,
|
|
1478
|
-
}));
|
|
1479
|
-
}
|
|
1480
|
-
function drawMotes() {
|
|
1481
|
-
if (!state.prefs.particles) { ctx.clearRect(0, 0, canvas.width, canvas.height); return; }
|
|
1482
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
1483
|
-
const rgb = hexToRgb(state.prefs.accent);
|
|
1484
|
-
for (const m of motes) {
|
|
1485
|
-
m.x += m.vx; m.y += m.vy; m.tw += m.tws;
|
|
1486
|
-
if (m.x < -8) m.x = canvas.width + 8; if (m.x > canvas.width + 8) m.x = -8;
|
|
1487
|
-
if (m.y < -8) m.y = canvas.height + 8; if (m.y > canvas.height + 8) m.y = -8;
|
|
1488
|
-
const alpha = starMode ? (0.3 + 0.7 * Math.abs(Math.sin(m.tw))) : (0.1 + 0.42 * Math.abs(Math.sin(m.tw)));
|
|
1489
|
-
ctx.beginPath();
|
|
1490
|
-
ctx.arc(m.x, m.y, m.r, 0, Math.PI * 2);
|
|
1491
|
-
ctx.fillStyle = starMode
|
|
1492
|
-
? 'rgba(255,255,255,' + alpha + ')'
|
|
1493
|
-
: 'hsla(' + (state.prefs.bgHue + m.hue) + ' 90% 65% / ' + alpha + ')';
|
|
1494
|
-
ctx.fill();
|
|
697
|
+
const p = await new Promise((ok,no)=>navigator.geolocation?navigator.geolocation.getCurrentPosition(ok,no,{timeout:5000}):no());
|
|
698
|
+
lat = p.coords.latitude; lon = p.coords.longitude;
|
|
1495
699
|
}
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
700
|
+
const w = await fetch(`https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}¤t_weather=true&temperature_unit=fahrenheit`).then(r=>r.json());
|
|
701
|
+
const cw = w.current_weather;
|
|
702
|
+
val.textContent = Math.round(cw.temperature) + "°F" + (name?` · ${name}`:"");
|
|
703
|
+
ic.textContent = WMO[cw.weathercode] || "⛅";
|
|
704
|
+
}catch(e){ val.textContent = "Set city ⚙"; ic.textContent = "🌍"; }
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/* ================= BUILD GAMES GRID ================= */
|
|
708
|
+
const gamesGrid = document.getElementById("gamesGrid");
|
|
709
|
+
GAMES.forEach((g,i)=>{
|
|
710
|
+
const t = document.createElement("div");
|
|
711
|
+
t.className = "game-tile"; t.style.setProperty("--gc", g.color); t.style.setProperty("--d", (i*0.04)+"s");
|
|
712
|
+
t.innerHTML = `<img src="${g.cover}" alt="" loading="lazy" onerror="this.style.display='none'">
|
|
713
|
+
${g.featured?'<span class="feat-tag">★ FEATURED</span>':''}
|
|
714
|
+
<div class="shine"></div>
|
|
715
|
+
<div class="play-hint"><div class="tri"></div></div>
|
|
716
|
+
<div class="tip">${g.name}</div>`;
|
|
717
|
+
t.onclick = ()=>openPlay(g.name, dec(g.u));
|
|
718
|
+
gamesGrid.appendChild(t);
|
|
719
|
+
});
|
|
720
|
+
document.getElementById("gameCount").textContent = GAMES.length + " titles · click to play";
|
|
721
|
+
|
|
722
|
+
/* library marquee rows */
|
|
723
|
+
function buildRail(el, list){
|
|
724
|
+
[...list, ...list].forEach((g,i)=>{
|
|
725
|
+
const d = document.createElement("div");
|
|
726
|
+
d.className = "rail-game"; d.style.setProperty("--gc", g.color);
|
|
727
|
+
d.style.setProperty("--fd", ((i%10)*0.35)+"s");
|
|
728
|
+
d.innerHTML = `<img src="${g.cover}" alt="" loading="lazy" onerror="this.style.display='none'">`;
|
|
729
|
+
d.title = g.name;
|
|
730
|
+
d.onclick = ()=>openPlay(g.name, dec(g.u));
|
|
731
|
+
el.appendChild(d);
|
|
1504
732
|
});
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
function bindForm() {
|
|
1640
|
-
$('form-cancel').addEventListener('click', closeForm);
|
|
1641
|
-
$('form-modal').addEventListener('click', (e) => { if (e.target === $('form-modal')) closeForm(); });
|
|
1642
|
-
$('form-card').addEventListener('submit', (e) => {
|
|
1643
|
-
e.preventDefault();
|
|
1644
|
-
const mode = state.formMode;
|
|
1645
|
-
const name = $('form-name').value.trim();
|
|
1646
|
-
const desc = $('form-desc').value.trim();
|
|
1647
|
-
const genre = $('form-genre').value.trim();
|
|
1648
|
-
const poster = $('form-poster').value.trim();
|
|
1649
|
-
const link = $('form-link').value.trim();
|
|
1650
|
-
if (!name) { toast('give it a name'); return; }
|
|
1651
|
-
if (mode === 'game') {
|
|
1652
|
-
const id = state.formEditId || uid().replace('m', 'g');
|
|
1653
|
-
const old = state.overrides[id] || {};
|
|
1654
|
-
if (!link && !old.url) { toast('paste a game URL — it plays through the tunnel'); return; }
|
|
1655
|
-
state.overrides[id] = Object.assign({}, old, {
|
|
1656
|
-
id, name, url: link || old.url, desc,
|
|
1657
|
-
tags: genre ? genre.split(',').map((t) => t.trim()).filter(Boolean) : ['custom'],
|
|
1658
|
-
cover: poster || undefined, color: old.color || pickColor(name),
|
|
1659
|
-
});
|
|
1660
|
-
store.set(K.overrides, state.overrides);
|
|
1661
|
-
renderGames();
|
|
1662
|
-
toast('game saved: ' + name); beep(660, 0.09);
|
|
1663
|
-
} else {
|
|
1664
|
-
if (!link) { toast('paste a Google Drive link or video URL'); return; }
|
|
1665
|
-
const parsed = parseDrive(link);
|
|
1666
|
-
const movie = {
|
|
1667
|
-
id: state.formEditId || uid(),
|
|
1668
|
-
title: name, desc, genre: genre || 'uncategorized',
|
|
1669
|
-
poster: poster || (parsed.kind === 'file' ? driveThumb(parsed.id) : ''),
|
|
1670
|
-
source: parsed.kind, driveId: parsed.id || undefined,
|
|
1671
|
-
url: parsed.url || undefined,
|
|
1672
|
-
fav: false, watched: false, progress: 0, added: Date.now(),
|
|
1673
|
-
};
|
|
1674
|
-
const idx = state.movies.findIndex((m) => m.id === movie.id);
|
|
1675
|
-
if (idx > -1) Object.assign(state.movies[idx], movie); else state.movies.unshift(movie);
|
|
1676
|
-
store.set(K.movies, state.movies);
|
|
1677
|
-
renderMovies(); renderGames();
|
|
1678
|
-
toast('movie added: ' + name); beep(660, 0.09);
|
|
1679
|
-
}
|
|
1680
|
-
closeForm();
|
|
1681
|
-
});
|
|
1682
|
-
|
|
1683
|
-
$('form-link').addEventListener('input', () => {
|
|
1684
|
-
const p = parseDrive($('form-link').value);
|
|
1685
|
-
const h = $('form-parse-hint');
|
|
1686
|
-
if (p.kind === 'file') h.textContent = 'Drive file detected ✓ (id ' + p.id.slice(0, 6) + '…)';
|
|
1687
|
-
else if (p.kind === 'folder') h.textContent = 'Drive folder detected ✓ — embeds the folder listing';
|
|
1688
|
-
else if (p.kind === 'url') h.textContent = 'direct video URL — plays in the built-in player';
|
|
1689
|
-
else h.textContent = 'paste a Google Drive share link or a direct video URL';
|
|
1690
|
-
});
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
const pickColor = (name) => {
|
|
1694
|
-
const palette = ['#ff6b1a', '#3b82f6', '#a855f7', '#22d3ee', '#34d399', '#facc15', '#fb7185'];
|
|
1695
|
-
let h = 0; for (let i = 0; i < name.length; i++) h = (h * 31 + name.charCodeAt(i)) | 0;
|
|
1696
|
-
return palette[Math.abs(h) % palette.length];
|
|
1697
|
-
};
|
|
1698
|
-
// ═══════════ movie library ═══════════
|
|
1699
|
-
|
|
1700
|
-
function renderMovies() {
|
|
1701
|
-
const q = state.movieFilter.toLowerCase();
|
|
1702
|
-
let list = state.movies.filter((m) =>
|
|
1703
|
-
(!q || m.title.toLowerCase().includes(q)) &&
|
|
1704
|
-
(!state.movieGenre || (m.genre || '').toLowerCase().includes(state.movieGenre.toLowerCase())));
|
|
1705
|
-
if (state.movieSort === 'title') list = list.slice().sort((a, b) => a.title.localeCompare(b.title));
|
|
1706
|
-
else if (state.movieSort === 'watched') list = list.slice().sort((a, b) => Number(a.watched) - Number(b.watched));
|
|
1707
|
-
else list = list.slice().sort((a, b) => (b.added || 0) - (a.added || 0));
|
|
1708
|
-
|
|
1709
|
-
const genres = ['all'];
|
|
1710
|
-
state.movies.forEach((m) => { const g = (m.genre || '').trim(); if (g && !genres.includes(g)) genres.push(g); });
|
|
1711
|
-
$('genre-chips').innerHTML = genres.map((g) =>
|
|
1712
|
-
'<button class="genre-chip' + ((g === state.movieGenre) || (g === 'all' && !state.movieGenre) ? ' active' : '') +
|
|
1713
|
-
'" data-g="' + esc(g) + '">' + esc(g) + '</button>').join('');
|
|
1714
|
-
|
|
1715
|
-
const wrap = $('movie-grid');
|
|
1716
|
-
wrap.innerHTML = '';
|
|
1717
|
-
list.forEach((m) => wrap.appendChild(movieCard(m)));
|
|
1718
|
-
$('movies-empty').classList.toggle('hidden', state.movies.length > 0);
|
|
1719
|
-
|
|
1720
|
-
const cont = state.movies.filter((m) => m.progress > 7 && m.progress < 95 && !m.watched);
|
|
1721
|
-
$('continue-panel').classList.toggle('hidden', cont.length === 0);
|
|
1722
|
-
if (cont.length) {
|
|
1723
|
-
const cw = $('continue-grid');
|
|
1724
|
-
cw.innerHTML = '';
|
|
1725
|
-
cont.forEach((m) => {
|
|
1726
|
-
const c = movieCard(m);
|
|
1727
|
-
const pct = document.createElement('span');
|
|
1728
|
-
pct.className = 'movie-cont-pct';
|
|
1729
|
-
pct.textContent = Math.round(m.progress) + '%';
|
|
1730
|
-
c.querySelector('.movie-info').appendChild(pct);
|
|
1731
|
-
cw.appendChild(c);
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
function movieCard(m) {
|
|
1737
|
-
const card = document.createElement('div');
|
|
1738
|
-
card.className = 'movie-card';
|
|
1739
|
-
card.dataset.id = m.id;
|
|
1740
|
-
card.style.setProperty('--mcolor', m.color || '#ff6b1a');
|
|
1741
|
-
const posterFallback = m.driveId ? 'this.onerror=null;this.src=\'https://drive.google.com/thumbnail?id=' + m.driveId + '&sz=w1000\';' : 'this.remove()';const poster = (m.poster || m.driveId) ? '<img src="' + esc(m.poster || ('https://drive.google.com/thumbnail?id=' + m.driveId + '&sz=w1000')) + '" alt="" loading="lazy" referrerpolicy="no-referrer" onerror="' + posterFallback + '">' : '';
|
|
1742
|
-
const st = [];
|
|
1743
|
-
if (m.fav) st.push('<span class="fav">★</span>');
|
|
1744
|
-
if (m.watched) st.push('<span>✓</span>');
|
|
1745
|
-
else if (m.progress > 7) st.push('<span>' + Math.round(m.progress) + '%</span>');
|
|
1746
|
-
card.innerHTML =
|
|
1747
|
-
'<div class="movie-poster">' +
|
|
1748
|
-
(m.poster ? '' : '<div class="movie-fallback">' + esc((m.title || '?').slice(0, 2).toUpperCase()) + '</div>') + poster +
|
|
1749
|
-
'<div class="movie-play"><i>▶</i></div>' +
|
|
1750
|
-
'<div class="movie-status">' + st.join('') + '</div>' +
|
|
1751
|
-
'<div class="movie-tools">' +
|
|
1752
|
-
'<button class="icon-btn" data-act="fav" title="favorite">★</button>' +
|
|
1753
|
-
'<button class="icon-btn" data-act="watched" title="watched">✓</button>' +
|
|
1754
|
-
'<button class="icon-btn" data-act="edit" title="edit">✎</button>' +
|
|
1755
|
-
'<button class="icon-btn" data-act="del" title="remove">✖</button>' +
|
|
1756
|
-
'</div>' +
|
|
1757
|
-
'</div>' +
|
|
1758
|
-
'<div class="movie-info">' +
|
|
1759
|
-
'<div class="movie-title">' + esc(m.title) + '</div>' +
|
|
1760
|
-
'<div class="movie-genre">' + esc(m.genre || '') + '</div>' +
|
|
1761
|
-
'</div>';
|
|
1762
|
-
return card;
|
|
1763
|
-
}
|
|
1764
|
-
// ═══════════ movie player ═══════════
|
|
1765
|
-
|
|
1766
|
-
function openPlayer(movie) {
|
|
1767
|
-
// normalize any pasted Google Drive link (incl. /preview URLs) into an embedded id
|
|
1768
|
-
if (movie.source === 'url' && movie.url) {
|
|
1769
|
-
const p = parseDrive(movie.url);
|
|
1770
|
-
if (p.kind === 'file') {
|
|
1771
|
-
movie.driveId = p.id;
|
|
1772
|
-
movie.source = 'file';
|
|
1773
|
-
if (!movie.poster) movie.poster = driveThumb(p.id);
|
|
1774
|
-
} else if (p.kind === 'folder') {
|
|
1775
|
-
movie.driveId = p.id;
|
|
1776
|
-
movie.source = 'folder';
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
state.playerMovie = movie;
|
|
1780
|
-
// embedded preview by default for Drive files — reliable, in-page, no new tab
|
|
1781
|
-
state.playerEngine = movie.driveId ? 'preview' : 'video';
|
|
1782
|
-
$('player-title').textContent = movie.title;
|
|
1783
|
-
$('player-toggle').classList.toggle('hidden', !movie.driveId);
|
|
1784
|
-
$('player-modal').classList.remove('hidden');
|
|
1785
|
-
document.body.style.overflow = 'hidden';
|
|
1786
|
-
renderPlayerStage();
|
|
1787
|
-
beep(440, 0.08);
|
|
1788
|
-
}
|
|
1789
|
-
function closePlayer() {
|
|
1790
|
-
$('player-stage').innerHTML = '';
|
|
1791
|
-
state.playerMovie = null;
|
|
1792
|
-
$('player-modal').classList.add('hidden');
|
|
1793
|
-
document.body.style.overflow = '';
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
function renderPlayerStage() {
|
|
1797
|
-
const m = state.playerMovie;
|
|
1798
|
-
const stage = $('player-stage');
|
|
1799
|
-
stage.innerHTML = '';
|
|
1800
|
-
if (!m) return;
|
|
1801
|
-
|
|
1802
|
-
// drive folder -> embedded folder listing, in-page
|
|
1803
|
-
if (m.source === 'folder' && m.driveId) {
|
|
1804
|
-
stage.innerHTML = '<iframe src="' + driveFolder(m.driveId) +
|
|
1805
|
-
'" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen></iframe>';
|
|
1806
|
-
return;
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
// engine 1: direct video stream (raw drive download, or a plain direct URL)
|
|
1810
|
-
if (state.playerEngine === 'video' && (m.driveId || m.url)) {
|
|
1811
|
-
const v = document.createElement('video');
|
|
1812
|
-
v.controls = true; v.autoplay = true; v.playsInline = true;
|
|
1813
|
-
if (m.poster) v.poster = m.poster;
|
|
1814
|
-
v.src = m.driveId ? driveRaw(m.driveId) : m.url;
|
|
1815
|
-
if (m.progress > 7 && m.progress < 95 && m.driveId) {
|
|
1816
|
-
v.addEventListener('loadedmetadata', () => { try { v.currentTime = (m.progress / 100) * v.duration; } catch (e) { /* ignore */ } });
|
|
1817
|
-
}
|
|
1818
|
-
v.addEventListener('timeupdate', () => {
|
|
1819
|
-
if (!v.duration || Number.isNaN(v.duration)) return;
|
|
1820
|
-
const pct = (v.currentTime / v.duration) * 100;
|
|
1821
|
-
const m2 = state.movies.find((x) => x.id === m.id);
|
|
1822
|
-
if (m2 && Math.abs(m2.progress - pct) > 0.5) {
|
|
1823
|
-
m2.progress = Math.min(98, pct);
|
|
1824
|
-
store.set(K.movies, state.movies);
|
|
1825
|
-
}
|
|
1826
|
-
});
|
|
1827
|
-
let settled = false;
|
|
1828
|
-
const fallback = (why) => {
|
|
1829
|
-
if (settled || !m.driveId) return;
|
|
1830
|
-
settled = true;
|
|
1831
|
-
state.playerEngine = 'preview';
|
|
1832
|
-
toast('direct stream unavailable (' + why + ') — embedded player engaged');
|
|
1833
|
-
renderPlayerStage();
|
|
1834
|
-
};
|
|
1835
|
-
v.addEventListener('error', () => fallback('stream blocked'));
|
|
1836
|
-
// some setups stall on an HTML interstitial instead of firing error — force a check
|
|
1837
|
-
setTimeout(() => {
|
|
1838
|
-
if (!settled && v.readyState < 2 && !v.duration) fallback('no stream');
|
|
1839
|
-
}, 7000);
|
|
1840
|
-
stage.appendChild(v);
|
|
1841
|
-
return;
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
// engine 2: embedded Google preview player — plays fully in-page, never a new tab
|
|
1845
|
-
if (m.driveId) {
|
|
1846
|
-
stage.innerHTML = '<iframe src="' + drivePreview(m.driveId) +
|
|
1847
|
-
'" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen></iframe>';
|
|
1848
|
-
} else if (m.url) {
|
|
1849
|
-
stage.innerHTML = '<iframe src="' + esc(m.url) +
|
|
1850
|
-
'" allow="autoplay; fullscreen" allowfullscreen></iframe>';
|
|
1851
|
-
} else {
|
|
1852
|
-
const box = document.createElement('div');
|
|
1853
|
-
box.className = 'player-error';
|
|
1854
|
-
box.innerHTML = '<h4>Nothing to play</h4><p>This entry has no usable link. Edit it and paste a Google Drive share link.</p>';
|
|
1855
|
-
stage.appendChild(box);
|
|
733
|
+
}
|
|
734
|
+
buildRail(document.getElementById("railTrack"), GAMES);
|
|
735
|
+
buildRail(document.getElementById("railTrack2"), [...GAMES].reverse());
|
|
736
|
+
|
|
737
|
+
/* ================= BUILD MOVIES ================= */
|
|
738
|
+
const mg = document.getElementById("moviesGrid");
|
|
739
|
+
MOVIES.forEach((m,i)=>{
|
|
740
|
+
const t = document.createElement("div");
|
|
741
|
+
t.className = "movie-tile"; t.style.setProperty("--d", (i*0.08)+"s");
|
|
742
|
+
t.innerHTML = `<img src="${m.poster}" alt="" loading="lazy"><div class="veil"><div class="tri"></div></div>`;
|
|
743
|
+
t.onclick = ()=>openPlay(m.name, dec(m.u));
|
|
744
|
+
mg.appendChild(t);
|
|
745
|
+
});
|
|
746
|
+
document.getElementById("movieCount").textContent = MOVIES.length + " now streaming";
|
|
747
|
+
|
|
748
|
+
/* ================= PLAY MODAL ================= */
|
|
749
|
+
const pm = document.getElementById("playModal"), pf = document.getElementById("playFrame"),
|
|
750
|
+
pl = document.getElementById("playLoading");
|
|
751
|
+
function openPlay(title, url){
|
|
752
|
+
document.getElementById("playTitle").textContent = title;
|
|
753
|
+
pl.classList.remove("gone");
|
|
754
|
+
pm.classList.add("open");
|
|
755
|
+
pf.src = url;
|
|
756
|
+
pf.onload = ()=>setTimeout(()=>pl.classList.add("gone"), 400);
|
|
757
|
+
}
|
|
758
|
+
function closePlay(){
|
|
759
|
+
if(document.fullscreenElement) document.exitFullscreen().catch(()=>{});
|
|
760
|
+
pm.classList.remove("open");
|
|
761
|
+
pf.src = "about:blank";
|
|
762
|
+
}
|
|
763
|
+
function toggleFullScreen(){
|
|
764
|
+
const shell = pm.querySelector(".play-shell");
|
|
765
|
+
if(document.fullscreenElement){ document.exitFullscreen().catch(()=>{}); return; }
|
|
766
|
+
if(shell.requestFullscreen) shell.requestFullscreen().catch(()=>toast("Fullscreen blocked by browser"));
|
|
767
|
+
else toast("Fullscreen not supported");
|
|
768
|
+
}
|
|
769
|
+
document.addEventListener("fullscreenchange", ()=>{
|
|
770
|
+
const btn = document.querySelector("#playModal .play-bar button[onclick='toggleFullScreen()']");
|
|
771
|
+
if(btn) btn.innerHTML = document.fullscreenElement ? "🗗 Exit Full" : "⛶ Fullscreen";
|
|
772
|
+
});
|
|
773
|
+
addEventListener("keydown", e=>{ if(e.key==="Escape"){ closePlay(); closeSettings(); endTour(); } });
|
|
774
|
+
|
|
775
|
+
/* ================= SETTINGS ================= */
|
|
776
|
+
const COLORS = ["#ff6b1a","#ff3b30","#ff9500","#ffd60a","#34c759","#00c7be","#32ade6","#7d7aff","#bf5af2","#ff375f"];
|
|
777
|
+
const sw = document.getElementById("swatches");
|
|
778
|
+
COLORS.forEach(c=>{
|
|
779
|
+
const b = document.createElement("div");
|
|
780
|
+
b.className = "swatch" + (S.accent===c?" on":""); b.style.background = c; b.style.color = c;
|
|
781
|
+
b.onclick = ()=>{ S.accent = c; applyAccent(); saveS();
|
|
782
|
+
sw.querySelectorAll(".swatch").forEach(x=>x.classList.remove("on")); b.classList.add("on"); toast("Accent updated"); };
|
|
783
|
+
sw.appendChild(b);
|
|
784
|
+
});
|
|
785
|
+
function openSettings(){
|
|
786
|
+
document.getElementById("cityInput").value = S.city;
|
|
787
|
+
document.getElementById("particleRange").value = S.particles;
|
|
788
|
+
document.getElementById("modelInput").value = S.model;
|
|
789
|
+
document.getElementById("settingsModal").classList.add("open");
|
|
790
|
+
}
|
|
791
|
+
function closeSettings(){ document.getElementById("settingsModal").classList.remove("open"); }
|
|
792
|
+
function saveSettings(){
|
|
793
|
+
S.city = document.getElementById("cityInput").value.trim();
|
|
794
|
+
S.particles = +document.getElementById("particleRange").value;
|
|
795
|
+
S.model = document.getElementById("modelInput").value.trim() || DEFAULTS.model;
|
|
796
|
+
saveS(); makeFlakes(); loadWeather(); closeSettings(); toast("Settings saved");
|
|
797
|
+
}
|
|
798
|
+
function toast(t){
|
|
799
|
+
const el = document.getElementById("toast");
|
|
800
|
+
el.textContent = t; el.classList.add("on");
|
|
801
|
+
clearTimeout(el._t); el._t = setTimeout(()=>el.classList.remove("on"), 2200);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* ================= TOUR ================= */
|
|
805
|
+
const TOUR_STEPS = [
|
|
806
|
+
{t:"#bigTitle", title:"Welcome to IGNITE OS ✦", text:"This is your command center. Everything runs right here in the browser — snow falls, glass glows, and your whole library lives one click away."},
|
|
807
|
+
{t:"#widgetRow", title:"Live widgets", text:"Real-time weather, your battery ring, and the clock — all in liquid glass. Set your city later in Settings (the ⚙ button)."},
|
|
808
|
+
{t:"#librarySec", title:"The Game Library", text:"All 20 games scroll past automatically — two rows, opposite directions. Hover to pause, click any icon and it starts instantly. No links, no new tabs."},
|
|
809
|
+
{t:"#dock", title:"The Dock", text:"Jump between Home, Games Hub, Movie Theater and IGNITE AI anytime. The ✦ button opens your AI assistant."},
|
|
810
|
+
{t:"#settingsBtn", title:"Make it yours", text:"Tap the gear to change the accent color, weather city, snow density, and the AI model. That's it — you're ready. Have fun!"}
|
|
811
|
+
];
|
|
812
|
+
let tIdx = 0;
|
|
813
|
+
const tourEl = document.getElementById("tour"), spot = document.getElementById("tourSpot");
|
|
814
|
+
function startTour(){
|
|
815
|
+
if(!document.getElementById("home").classList.contains("active")) go("home");
|
|
816
|
+
document.getElementById("home").scrollTop = 0;
|
|
817
|
+
tourEl.classList.add("open"); tIdx = 0; showStep();
|
|
818
|
+
}
|
|
819
|
+
function showStep(){
|
|
820
|
+
const s = TOUR_STEPS[tIdx];
|
|
821
|
+
document.getElementById("tourStepN").textContent = `Step ${tIdx+1} of ${TOUR_STEPS.length}`;
|
|
822
|
+
document.getElementById("tourTitle").textContent = s.title;
|
|
823
|
+
document.getElementById("tourText").textContent = s.text;
|
|
824
|
+
document.getElementById("tourNext").textContent = tIdx===TOUR_STEPS.length-1 ? "Finish ✦" : "Next →";
|
|
825
|
+
const prog = document.getElementById("tourProg");
|
|
826
|
+
prog.innerHTML = TOUR_STEPS.map((_,i)=>`<i class="${i<=tIdx?'on':''}"></i>`).join("");
|
|
827
|
+
const el = document.querySelector(s.t);
|
|
828
|
+
el.scrollIntoView({block:"center", behavior:"smooth"});
|
|
829
|
+
setTimeout(()=>{
|
|
830
|
+
const r = el.getBoundingClientRect();
|
|
831
|
+
spot.style.cssText = `left:${r.left-14}px;top:${r.top-14}px;width:${r.width+28}px;height:${r.height+28}px;display:block`;
|
|
832
|
+
}, 350);
|
|
833
|
+
}
|
|
834
|
+
function tourNext(){
|
|
835
|
+
if(tIdx === TOUR_STEPS.length-1){ endTour(); return; }
|
|
836
|
+
tIdx++; showStep();
|
|
837
|
+
}
|
|
838
|
+
function endTour(){
|
|
839
|
+
tourEl.classList.remove("open");
|
|
840
|
+
spot.style.display = "none";
|
|
841
|
+
localStorage.setItem("igniteos_toured", "1");
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* ================= AI ================= */
|
|
845
|
+
const chatLog = document.getElementById("chatLog");
|
|
846
|
+
const history = [];
|
|
847
|
+
function addMsg(text, who){
|
|
848
|
+
const d = document.createElement("div");
|
|
849
|
+
d.className = "msg " + who;
|
|
850
|
+
if(who==="bot") d.innerHTML = '<div class="who">IGNITE AI</div>' + renderBot(text);
|
|
851
|
+
else d.textContent = text;
|
|
852
|
+
chatLog.appendChild(d); chatLog.scrollTop = chatLog.scrollHeight;
|
|
853
|
+
}
|
|
854
|
+
function renderBot(text){
|
|
855
|
+
const parts = text.split(/```(\w*)\n?([\s\S]*?)(?:```|$)/g);
|
|
856
|
+
let out = "";
|
|
857
|
+
for(let i=0;i<parts.length;i++){
|
|
858
|
+
if(i%3===0){ out += esc(parts[i]).replace(/\n/g,"<br>"); }
|
|
859
|
+
else if(i%3===2){
|
|
860
|
+
const lang = parts[i-1] || "code";
|
|
861
|
+
out += `<div class="code-widget collapsed">
|
|
862
|
+
<div class="code-head"><div class="dots"><i></i><i></i><i></i></div>
|
|
863
|
+
<span class="lang">${esc(lang)||"code"}</span>
|
|
864
|
+
<button class="collapse">Expand</button>
|
|
865
|
+
<button class="copy">Copy</button></div>
|
|
866
|
+
<pre>${esc(parts[i])}</pre></div>`;
|
|
1856
867
|
}
|
|
1857
868
|
}
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
$('player-close').addEventListener('click', closePlayer);
|
|
1910
|
-
$('player-back').addEventListener('click', closePlayer);
|
|
1911
|
-
$('player-modal').addEventListener('click', (e) => { if (e.target === $('player-modal')) closePlayer(); });
|
|
1912
|
-
$('player-toggle').addEventListener('click', () => {
|
|
1913
|
-
state.playerEngine = state.playerEngine === 'video' ? 'preview' : 'video';
|
|
1914
|
-
renderPlayerStage();
|
|
1915
|
-
toast('player engine: ' + state.playerEngine);
|
|
1916
|
-
});
|
|
1917
|
-
$('player-mark').addEventListener('click', () => {
|
|
1918
|
-
if (!state.playerMovie) return;
|
|
1919
|
-
const m = state.movies.find((x) => x.id === state.playerMovie.id);
|
|
1920
|
-
if (m) { m.watched = true; m.progress = 100; store.set(K.movies, state.movies); renderMovies(); toast('✓ ' + m.title + ' marked watched'); }
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
// ═══════════ tunnel ═══════════
|
|
1924
|
-
|
|
1925
|
-
function bindTunnel() { /* tunnel removed — nothing to bind */ }
|
|
1926
|
-
|
|
1927
|
-
// ═══════════ hotkeys & konami ═══════════
|
|
1928
|
-
|
|
1929
|
-
function bindHotkeys() {
|
|
1930
|
-
const konami = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'];
|
|
1931
|
-
window.addEventListener('keydown', (e) => {
|
|
1932
|
-
const tag = (document.activeElement || {}).tagName;
|
|
1933
|
-
const typing = tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT';
|
|
1934
|
-
if (!typing) {
|
|
1935
|
-
if (e.key === '/') { e.preventDefault(); $('movie-search').focus(); return; }
|
|
1936
|
-
if (e.key === 'g' || e.key === 'G') { $('games').scrollIntoView({ behavior: 'smooth' }); return; }
|
|
1937
|
-
if (e.key === 'm' || e.key === 'M') { $('movies').scrollIntoView({ behavior: 'smooth' }); return; }
|
|
1938
|
-
if (e.key === 'h' || e.key === 'H') { setWorkMode(!state.prefs.work); return; }
|
|
1939
|
-
if (e.key === 'c' || e.key === 'C') { toggleCustomizer(!$('customizer').classList.contains('open')); return; }
|
|
1940
|
-
}
|
|
1941
|
-
if (e.key === 'Escape') {
|
|
1942
|
-
closeLauncher(); closePlayer(); closeForm(); toggleCustomizer(false);
|
|
1943
|
-
}
|
|
1944
|
-
state.keys.push(e.key);
|
|
1945
|
-
if (state.keys.length > konami.length) state.keys.shift();
|
|
1946
|
-
if (state.keys.join(',') === konami.join(',')) {
|
|
1947
|
-
state.keys = [];
|
|
1948
|
-
turboTime();
|
|
869
|
+
return out;
|
|
870
|
+
}
|
|
871
|
+
function esc(s){ return (s||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"); }
|
|
872
|
+
chatLog.addEventListener("click", e=>{
|
|
873
|
+
if(e.target.classList.contains("copy")){
|
|
874
|
+
const w = e.target.closest(".code-widget");
|
|
875
|
+
navigator.clipboard.writeText(w.querySelector("pre").textContent).then(()=>toast("Code copied ✦"));
|
|
876
|
+
}
|
|
877
|
+
if(e.target.classList.contains("collapse")){
|
|
878
|
+
const w = e.target.closest(".code-widget");
|
|
879
|
+
w.classList.toggle("collapsed");
|
|
880
|
+
e.target.textContent = w.classList.contains("collapsed") ? "Expand" : "Collapse";
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
function quickAsk(q){ document.getElementById("aiInput").value = q; sendMsg(); }
|
|
884
|
+
|
|
885
|
+
async function askOpenAI(model, q){
|
|
886
|
+
const res = await fetch("https://api.openai.com/v1/chat/completions", {
|
|
887
|
+
method:"POST",
|
|
888
|
+
headers:{ "Content-Type":"application/json", "Authorization":"Bearer " + AI_KEY },
|
|
889
|
+
body: JSON.stringify({
|
|
890
|
+
model,
|
|
891
|
+
messages: [
|
|
892
|
+
{role:"system", content:"You are IGNITE AI, a super-smart, friendly assistant inside IGNITE OS. You are excellent at coding, explanations, math, creative writing, game ideas and problem solving. Always format code in triple backticks with the language name. Be concise but complete."},
|
|
893
|
+
...history.slice(-10),
|
|
894
|
+
{role:"user", content:q}
|
|
895
|
+
]
|
|
896
|
+
})
|
|
897
|
+
});
|
|
898
|
+
const data = await res.json().catch(()=>({}));
|
|
899
|
+
if(!res.ok) throw {status:res.status, msg:data.error?.message || ("HTTP " + res.status)};
|
|
900
|
+
if(!data.choices?.[0]?.message?.content) throw {status:res.status, msg:"Unexpected response shape"};
|
|
901
|
+
return data.choices[0].message.content;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
async function sendMsg(){
|
|
905
|
+
const inp = document.getElementById("aiInput"), q = inp.value.trim();
|
|
906
|
+
if(!q) return;
|
|
907
|
+
inp.value = ""; addMsg(q, "user");
|
|
908
|
+
const tp = document.createElement("div");
|
|
909
|
+
tp.className = "msg bot typing"; tp.innerHTML = "<i></i><i></i><i></i>";
|
|
910
|
+
chatLog.appendChild(tp); chatLog.scrollTop = chatLog.scrollHeight;
|
|
911
|
+
try{
|
|
912
|
+
let reply, lastErr;
|
|
913
|
+
const tries = [S.model, "gpt-4o", "gpt-4o-mini", "gpt-3.5-turbo"].filter((v,i,a)=>a.indexOf(v)===i);
|
|
914
|
+
for(const m of tries){
|
|
915
|
+
try{ reply = await askOpenAI(m, q); if(m!==S.model) toast(`Auto-switched to ${m}`); break; }
|
|
916
|
+
catch(e){
|
|
917
|
+
lastErr = e;
|
|
918
|
+
const notModelIssue = e.status===401 || e.status===403 || e.status===429;
|
|
919
|
+
if(notModelIssue || tries.indexOf(m)===tries.length-1) throw e;
|
|
1949
920
|
}
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
function turboTime() {
|
|
1954
|
-
if (state.turbo) return;
|
|
1955
|
-
state.turbo = true;
|
|
1956
|
-
document.body.classList.add('turbo');
|
|
1957
|
-
confetti(90);
|
|
1958
|
-
toast('▲▲▼▼◄►◄►BA — TURBO MODE');
|
|
1959
|
-
beep(880, 0.5, 'square');
|
|
1960
|
-
setTimeout(() => { document.body.classList.remove('turbo'); state.turbo = false; }, 8000);
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
// ═══════════ games form helper ═══════════
|
|
1964
|
-
|
|
1965
|
-
function showGameForm(g) { showForm('game', g); }
|
|
1966
|
-
|
|
1967
|
-
// ═══════════ work mode ═══════════
|
|
1968
|
-
|
|
1969
|
-
const work = {
|
|
1970
|
-
secs: 1500, left: 1500, running: false, timerId: null,
|
|
1971
|
-
todos: store.get('emby.work.v1', []),
|
|
1972
|
-
};
|
|
1973
|
-
const fmtTime = (s) => {
|
|
1974
|
-
s = Math.max(0, Math.round(s));
|
|
1975
|
-
return String(Math.floor(s / 60)).padStart(2, '0') + ':' + String(s % 60).padStart(2, '0');
|
|
1976
|
-
};
|
|
1977
|
-
function renderWorkTimer() { $('focus-timer').textContent = fmtTime(work.left); }
|
|
1978
|
-
function workTick() {
|
|
1979
|
-
if (!work.running) return;
|
|
1980
|
-
work.left -= 1;
|
|
1981
|
-
if (work.left <= 0) {
|
|
1982
|
-
work.left = 0; work.running = false;
|
|
1983
|
-
clearInterval(work.timerId);
|
|
1984
|
-
renderWorkTimer();
|
|
1985
|
-
toast('focus session done');
|
|
1986
|
-
beep(880, 0.6, 'square');
|
|
1987
|
-
confetti(24);
|
|
1988
|
-
return;
|
|
1989
921
|
}
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
function bindWork() {
|
|
2011
|
-
$('nav-work').addEventListener('click', () => setWorkMode(!state.prefs.work));
|
|
2012
|
-
$('timer-start').addEventListener('click', () => {
|
|
2013
|
-
if (work.left <= 0) work.left = work.secs;
|
|
2014
|
-
work.running = true; clearInterval(work.timerId);
|
|
2015
|
-
work.timerId = setInterval(workTick, 1000);
|
|
2016
|
-
renderWorkTimer();
|
|
2017
|
-
});
|
|
2018
|
-
$('timer-pause').addEventListener('click', () => {
|
|
2019
|
-
work.running = false; clearInterval(work.timerId);
|
|
2020
|
-
});
|
|
2021
|
-
$('timer-reset').addEventListener('click', () => {
|
|
2022
|
-
work.running = false; clearInterval(work.timerId);
|
|
2023
|
-
work.left = work.secs; renderWorkTimer();
|
|
2024
|
-
});
|
|
2025
|
-
$('timer-length').addEventListener('change', (e) => {
|
|
2026
|
-
work.secs = Number(e.target.value); work.left = work.secs; renderWorkTimer();
|
|
2027
|
-
});
|
|
2028
|
-
$('todo-form').addEventListener('submit', (e) => {
|
|
2029
|
-
e.preventDefault();
|
|
2030
|
-
const v = $('todo-input').value.trim();
|
|
2031
|
-
if (!v) return;
|
|
2032
|
-
work.todos.push({ text: v, done: false });
|
|
2033
|
-
$('todo-input').value = '';
|
|
2034
|
-
saveTodos(); renderTodos(); beep(520, 0.06);
|
|
2035
|
-
});
|
|
2036
|
-
$('todo-list').addEventListener('change', (e) => {
|
|
2037
|
-
const i = Number(e.target.dataset.i);
|
|
2038
|
-
if (work.todos[i] !== undefined) { work.todos[i].done = e.target.checked; saveTodos(); renderTodos(); }
|
|
2039
|
-
});
|
|
2040
|
-
$('todo-list').addEventListener('click', (e) => {
|
|
2041
|
-
if (!e.target.classList.contains('icon-btn')) return;
|
|
2042
|
-
const i = Number(e.target.dataset.i);
|
|
2043
|
-
if (work.todos[i] !== undefined) { work.todos.splice(i, 1); saveTodos(); renderTodos(); }
|
|
2044
|
-
});
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
// ═══════════ clocks ═══════════
|
|
2048
|
-
|
|
2049
|
-
function tick() {
|
|
2050
|
-
const d = new Date();
|
|
2051
|
-
const t = d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
|
|
2052
|
-
$('nav-clock').textContent = t;
|
|
2053
|
-
$('foot-clock').textContent = new Date().toLocaleDateString([], { weekday: 'short', month: 'short', day: 'numeric' }) + ' · ' + t;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
// ═══════════ boot splash ═══════════
|
|
2057
|
-
|
|
2058
|
-
const BOOT_LINES = [
|
|
2059
|
-
'boot ignite OS v1.4 …',
|
|
2060
|
-
'game vault … loading',
|
|
2061
|
-
'games vault … ready',
|
|
2062
|
-
'movies (drive) … ready',
|
|
2063
|
-
'weapons hot. have fun, ' + state.profile.name + '.',
|
|
2064
|
-
];
|
|
2065
|
-
|
|
2066
|
-
function runBoot() {
|
|
2067
|
-
const typeEl = $('boot-type');
|
|
2068
|
-
const fill = $('boot-fill');
|
|
2069
|
-
const total = 3000;
|
|
2070
|
-
const start = performance.now();
|
|
2071
|
-
let line = -1;
|
|
2072
|
-
let finished = false;
|
|
2073
|
-
const step = () => {
|
|
2074
|
-
const p = Math.min(1, (performance.now() - start) / total);
|
|
2075
|
-
fill.style.width = Math.round(p * 100) + '%';
|
|
2076
|
-
const targetLine = Math.floor(p * BOOT_LINES.length);
|
|
2077
|
-
if (targetLine > line) {
|
|
2078
|
-
line = targetLine;
|
|
2079
|
-
typeEl.textContent = BOOT_LINES[Math.min(line, BOOT_LINES.length - 1)];
|
|
2080
|
-
}
|
|
2081
|
-
if (p < 1 && state.prefs.anim) requestAnimationFrame(step);
|
|
2082
|
-
else finishBoot();
|
|
2083
|
-
};
|
|
2084
|
-
const finishBoot = () => {
|
|
2085
|
-
if (finished) return;
|
|
2086
|
-
finished = true;
|
|
2087
|
-
fill.style.width = '100%';
|
|
2088
|
-
typeEl.textContent = 'ready. pull up.';
|
|
2089
|
-
setTimeout(() => {
|
|
2090
|
-
const b = $('boot');
|
|
2091
|
-
if (b) { b.classList.add('done'); setTimeout(() => b.remove(), 600); }
|
|
2092
|
-
confetti(26);
|
|
2093
|
-
}, 320);
|
|
2094
|
-
};
|
|
2095
|
-
// failsafe: hard-exit the splash no matter what after 3.5s
|
|
2096
|
-
setTimeout(finishBoot, 3500);
|
|
2097
|
-
if (!state.prefs.anim) { typeEl.textContent = 'ready.'; finishBoot(); return; }
|
|
2098
|
-
requestAnimationFrame(step);
|
|
2099
|
-
$('boot-skip').addEventListener('click', () => { finishBoot(); const b = $('boot'); if (b) setTimeout(() => b.remove(), 300); });
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
// ═══════════ init ═══════════
|
|
2103
|
-
|
|
2104
|
-
async function fetchLocalGames() {
|
|
2105
|
-
try {
|
|
2106
|
-
const res = await fetch(serverBase() + '/lg/');
|
|
2107
|
-
const names = await res.json();
|
|
2108
|
-
state.localGames = names.sort();
|
|
2109
|
-
renderGames();
|
|
2110
|
-
} catch { /* server missing — ignore */ }
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
function seedDemo() {
|
|
2114
|
-
if (state.movies.length) return;
|
|
2115
|
-
state.movies = DEMO_MOVIES.map((dm) => Object.assign({}, dm, {
|
|
2116
|
-
id: uid(), url: dm.videoUrl, fav: false, watched: false, progress: 0, added: Date.now(),
|
|
2117
|
-
}));
|
|
2118
|
-
store.set(K.movies, state.movies);
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
function init() {
|
|
2122
|
-
seedDemo();
|
|
2123
|
-
// repair movies saved by older versions: extract drive ids, fix posters
|
|
2124
|
-
state.movies.forEach((mv) => {
|
|
2125
|
-
if (mv.source === 'url' && mv.url) {
|
|
2126
|
-
const p = parseDrive(mv.url);
|
|
2127
|
-
if (p.kind === 'file') { mv.driveId = p.id; mv.source = 'file'; }
|
|
2128
|
-
else if (p.kind === 'folder') { mv.driveId = p.id; mv.source = 'folder'; }
|
|
2129
|
-
}
|
|
2130
|
-
if (mv.driveId && !mv.poster) mv.poster = driveThumb(mv.driveId);
|
|
2131
|
-
});
|
|
2132
|
-
store.set(K.movies, state.movies);
|
|
2133
|
-
$('profile-pill').textContent = state.profile.name;
|
|
2134
|
-
$('profile-pill').addEventListener('click', () => toggleCustomizer(true));
|
|
2135
|
-
applyPrefs();
|
|
2136
|
-
bindCustomizer();
|
|
2137
|
-
bindGames();
|
|
2138
|
-
bindMovies();
|
|
2139
|
-
bindForm();
|
|
2140
|
-
bindTunnel();
|
|
2141
|
-
bindHotkeys();
|
|
2142
|
-
bindWork();
|
|
2143
|
-
renderWorkTimer();
|
|
2144
|
-
renderTodos();
|
|
2145
|
-
renderGames();
|
|
2146
|
-
renderMovies();
|
|
2147
|
-
tick(); setInterval(tick, 1000);
|
|
2148
|
-
canvas.width = window.innerWidth; canvas.height = window.innerHeight;
|
|
2149
|
-
initMotes();
|
|
2150
|
-
bgLoop();
|
|
2151
|
-
const last = store.get(K.last, {});
|
|
2152
|
-
$('stat-last').textContent = last.name ? last.name.slice(0, 12) : '—';
|
|
2153
|
-
fetchLocalGames();
|
|
2154
|
-
runBoot();
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
// keep it all in-page: block view-source, devtools & right-click menu
|
|
2158
|
-
document.addEventListener('contextmenu', (e) => { e.preventDefault(); });
|
|
2159
|
-
window.addEventListener('contextmenu', (e) => { e.preventDefault(); return false; });
|
|
2160
|
-
document.oncontextmenu = () => false;
|
|
2161
|
-
window.addEventListener('keydown', (e) => {
|
|
2162
|
-
const k = (e.key || '').toLowerCase();
|
|
2163
|
-
const combo = e.ctrlKey || e.metaKey;
|
|
2164
|
-
if (combo && (k === 'u' || k === 's' || k === 'p')) { e.preventDefault(); e.stopPropagation(); return false; }
|
|
2165
|
-
if (combo && e.shiftKey && (k === 'i' || k === 'j' || k === 'c' || k === 'k' || k === 'u')) { e.preventDefault(); e.stopPropagation(); return false; }
|
|
2166
|
-
if (e.key === 'F12') { e.preventDefault(); e.stopPropagation(); return false; }
|
|
2167
|
-
}, true);
|
|
2168
|
-
// if someone opens a view-source: tab, bounce them back to the real page
|
|
2169
|
-
if (location.protocol === 'view-source:') { /* noop guard */ }
|
|
2170
|
-
if (document.documentElement && location.href.startsWith('view-source:')) {
|
|
2171
|
-
location.replace(location.href.replace('view-source:', ''));
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
document.addEventListener('DOMContentLoaded', init);
|
|
2175
|
-
})();
|
|
922
|
+
tp.remove();
|
|
923
|
+
history.push({role:"user",content:q},{role:"assistant",content:reply});
|
|
924
|
+
addMsg(reply, "bot");
|
|
925
|
+
}catch(err){
|
|
926
|
+
tp.remove();
|
|
927
|
+
let hint = "";
|
|
928
|
+
if(err.status===401) hint = "The API key was rejected (401). Double-check it in the code.";
|
|
929
|
+
else if(err.status===429) hint = "Rate limit hit (429) — wait a moment and retry.";
|
|
930
|
+
else if(err.status===404) hint = "Model not found (404) — set a valid model in Settings.";
|
|
931
|
+
addMsg(`⚠️ AI error: ${esc(err.msg||err.message||"unknown")}\n${hint}`, "bot");
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
document.getElementById("aiInput").addEventListener("keydown", e=>{ if(e.key==="Enter") sendMsg(); });
|
|
935
|
+
|
|
936
|
+
/* ================= BOOT ================= */
|
|
937
|
+
applyAccent(); startParticles(); loadWeather();
|
|
938
|
+
addMsg("Hey! I'm IGNITE AI ✦ I'm great at a lot of things — coding, explaining, brainstorming, math, you name it. Ask me anything, and if you want code just say so — I'll wrap it in a neat copyable block.", "bot");
|
|
939
|
+
if(!localStorage.getItem("igniteos_toured")) setTimeout(startTour, 900);
|
|
2176
940
|
</script>
|
|
2177
941
|
</body>
|
|
2178
942
|
</html>
|