@mblinkov/whats-missing 20.0.55 → 20.0.56

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.
@@ -1,18 +1,18 @@
1
- import { jsx as w, jsxs as p, Fragment as Ln } from "react/jsx-runtime";
2
- import { useRef as U, useEffect as q, useState as h, useMemo as ri } from "react";
3
- const hi = `
1
+ import { jsx as t, jsxs as l, Fragment as Mn } from "react/jsx-runtime";
2
+ import { useRef as F, useEffect as _, useState as r, useMemo as Rn } from "react";
3
+ const ri = `
4
4
  @keyframes spin {
5
5
  from { transform: rotate(0deg); }
6
6
  to { transform: rotate(360deg); }
7
7
  }
8
8
  `;
9
9
  if (typeof document < "u" && !document.getElementById("spin-keyframes")) {
10
- const d = document.createElement("style");
11
- d.id = "spin-keyframes", d.innerHTML = hi, document.head.appendChild(d);
10
+ const w = document.createElement("style");
11
+ w.id = "spin-keyframes", w.innerHTML = ri, document.head.appendChild(w);
12
12
  }
13
- const si = {
13
+ const hi = {
14
14
  animation: "spin 1.4s linear infinite"
15
- }, o = {
15
+ }, e = {
16
16
  gmCenterScreen: {
17
17
  position: "relative",
18
18
  zIndex: 1,
@@ -124,8 +124,8 @@ const si = {
124
124
  // ✅ Обновлено только для качества логотипа
125
125
  gmLogoFixed: {
126
126
  position: "absolute",
127
- top: "16px",
128
- left: "24px",
127
+ top: "28px",
128
+ left: "16px",
129
129
  width: "120px",
130
130
  zIndex: 10,
131
131
  pointerEvents: "none",
@@ -145,13 +145,13 @@ const si = {
145
145
  },
146
146
  gmHourglass: {
147
147
  fontSize: "42px",
148
- ...si
148
+ ...hi
149
149
  }
150
- }, ai = window.origin + "/cloud/speakid/games/whatsmissing/", L = (d, a) => d.map(([g, s, ...b]) => ({
151
- src: `${ai}${a}/${s.replace(/\s/g, "%20")}.png`,
150
+ }, si = window.origin + "/cloud/speakid/games/whatsmissing/", C = (w, a) => w.map(([g, s, ...p]) => ({
151
+ src: `${si}${a}/${s.replace(/\s/g, "%20")}.png`,
152
152
  name: s,
153
- aliases: b?.length ? b : void 0
154
- })), gi = [
153
+ aliases: p?.length ? p : void 0
154
+ })), ai = [
155
155
  ["apple", "apple"],
156
156
  ["banana", "banana"],
157
157
  ["bread", "bread"],
@@ -177,7 +177,7 @@ const si = {
177
177
  ["strawberry", "strawberry"],
178
178
  ["tomato", "tomato"],
179
179
  ["watermelon", "watermelon"]
180
- ], pi = [
180
+ ], gi = [
181
181
  ["bear", "bear"],
182
182
  ["cat", "cat"],
183
183
  ["crocodile", "crocodile", "alligator"],
@@ -197,7 +197,7 @@ const si = {
197
197
  ["tortoise", "tortoise", "turtle"],
198
198
  ["wolf", "wolf"],
199
199
  ["zebra", "zebra"]
200
- ], li = [
200
+ ], pi = [
201
201
  ["ball", "ball"],
202
202
  ["balloon", "balloon"],
203
203
  ["blocks", "blocks"],
@@ -217,7 +217,7 @@ const si = {
217
217
  ["teddy_bear", "teddy bear"],
218
218
  ["yo-yo", "yo-yo"],
219
219
  ["crayons", "crayons"]
220
- ], ci = [
220
+ ], li = [
221
221
  ["t-shirt", "T-shirt"],
222
222
  ["dress", "dress"],
223
223
  ["hat", "hat"],
@@ -233,7 +233,7 @@ const si = {
233
233
  ["cap", "cap"],
234
234
  ["boots", "boots"],
235
235
  ["pyjamas", "pyjamas"]
236
- ], xi = [
236
+ ], ci = [
237
237
  ["car", "car"],
238
238
  ["bus", "bus"],
239
239
  ["bike", "bike"],
@@ -249,7 +249,7 @@ const si = {
249
249
  ["motorbike", "motorbike"],
250
250
  ["tram", "tram"],
251
251
  ["submarine", "submarine"]
252
- ], Hi = [
252
+ ], xi = [
253
253
  ["sun", "sun"],
254
254
  ["cloud", "cloud"],
255
255
  ["rain", "rain"],
@@ -265,7 +265,7 @@ const si = {
265
265
  ["snow", "snow"],
266
266
  ["butterfly", "butterfly"],
267
267
  ["bird", "bird"]
268
- ], Wi = [
268
+ ], Hi = [
269
269
  ["bed", "bed"],
270
270
  ["table", "table"],
271
271
  ["chair", "chair"],
@@ -281,7 +281,7 @@ const si = {
281
281
  ["plate", "plate"],
282
282
  ["mirror", "mirror"],
283
283
  ["book", "book"]
284
- ], mi = [
284
+ ], Wi = [
285
285
  ["book", "book"],
286
286
  ["pen", "pen"],
287
287
  ["pencil", "pencil"],
@@ -297,16 +297,16 @@ const si = {
297
297
  ["pencil_case", "pencil case"],
298
298
  ["paintbrush", "paintbrush"],
299
299
  ["backpack", "backpack"]
300
- ], K = {
301
- food: L(gi, "food"),
302
- animals: L(pi, "animals"),
303
- toys: L(li, "toys"),
304
- clothes: L(ci, "clothes"),
305
- transport: L(xi, "transport"),
306
- nature: L(Hi, "nature"),
307
- home: L(Wi, "home"),
308
- school: L(mi, "school")
309
- }, ui = [
300
+ ], Q = {
301
+ food: C(ai, "food"),
302
+ animals: C(gi, "animals"),
303
+ toys: C(pi, "toys"),
304
+ clothes: C(li, "clothes"),
305
+ transport: C(ci, "transport"),
306
+ nature: C(xi, "nature"),
307
+ home: C(Hi, "home"),
308
+ school: C(Wi, "school")
309
+ }, mi = [
310
310
  "animals",
311
311
  "food",
312
312
  "toys",
@@ -315,7 +315,7 @@ const si = {
315
315
  "nature",
316
316
  "home",
317
317
  "school"
318
- ], fi = {
318
+ ], ui = {
319
319
  animals: "🐶 Animals",
320
320
  food: "🍎 Food",
321
321
  toys: "🧸 Toys",
@@ -324,9 +324,9 @@ const si = {
324
324
  nature: "🌳 Nature",
325
325
  home: "🏠 Home",
326
326
  school: "📚 School"
327
- }, yi = () => {
328
- const d = document.createElement("style");
329
- d.id = "whats-missing-reset", d.textContent = `
327
+ }, fi = () => {
328
+ const w = document.createElement("style");
329
+ w.id = "whats-missing-reset", w.textContent = `
330
330
  #whats-missing-root, #whats-missing-root * {
331
331
  box-sizing: border-box;
332
332
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
@@ -354,9 +354,9 @@ const si = {
354
354
  }
355
355
  `;
356
356
  const a = document.getElementById("whats-missing-reset");
357
- a && a.remove(), document.head.appendChild(d);
357
+ a && a.remove(), document.head.appendChild(w);
358
358
  };
359
- class bi {
359
+ class yi {
360
360
  constructor(a) {
361
361
  this.seed = a;
362
362
  }
@@ -370,180 +370,173 @@ class bi {
370
370
  return Math.floor(this.next() * a);
371
371
  }
372
372
  }
373
- const ki = (d, a) => {
374
- const g = Array.from({ length: d.length + 1 }, () => Array(a.length + 1).fill(0));
375
- for (let s = 0; s <= d.length; s++) g[s][0] = s;
373
+ const bi = (w, a) => {
374
+ const g = Array.from({ length: w.length + 1 }, () => Array(a.length + 1).fill(0));
375
+ for (let s = 0; s <= w.length; s++) g[s][0] = s;
376
376
  for (let s = 0; s <= a.length; s++) g[0][s] = s;
377
- for (let s = 1; s <= d.length; s++)
378
- for (let b = 1; b <= a.length; b++)
379
- g[s][b] = d[s - 1] === a[b - 1] ? g[s - 1][b - 1] : Math.min(g[s - 1][b - 1], g[s][b - 1], g[s - 1][b]) + 1;
380
- return g[d.length][a.length];
381
- }, Ii = (d) => new Promise((a) => {
377
+ for (let s = 1; s <= w.length; s++)
378
+ for (let p = 1; p <= a.length; p++)
379
+ g[s][p] = w[s - 1] === a[p - 1] ? g[s - 1][p - 1] : Math.min(g[s - 1][p - 1], g[s][p - 1], g[s - 1][p]) + 1;
380
+ return g[w.length][a.length];
381
+ }, ki = (w) => new Promise((a) => {
382
382
  const g = new Image();
383
- g.onload = () => a(g), g.onerror = () => a(g), g.src = d;
384
- }), pn = async (d, a) => {
385
- const g = /* @__PURE__ */ new Map(), s = d.map(async (b) => {
386
- const S = await Ii(b);
387
- g.set(b, S);
383
+ g.onload = () => a(g), g.onerror = () => a(g), g.src = w;
384
+ }), cn = async (w, a) => {
385
+ const g = /* @__PURE__ */ new Map(), s = w.map(async (p) => {
386
+ const S = await ki(p);
387
+ g.set(p, S);
388
388
  });
389
389
  return await Promise.allSettled(s), g;
390
390
  };
391
- function Ti({
392
- gameCubeSize: d,
391
+ function vi({
392
+ gameCubeSize: w,
393
393
  screenHeight: a,
394
394
  screenWidth: g,
395
395
  seed: s
396
396
  }) {
397
- const b = U(null);
398
- q(() => (yi(), () => {
397
+ const p = F(null);
398
+ _(() => (fi(), () => {
399
399
  document.documentElement.style.overflow = "", document.body.style.overflow = "";
400
400
  const i = document.getElementById("whats-missing-reset");
401
- i && i.remove(), T.current && T.current.abort();
401
+ i && i.remove(), P.current && P.current.abort();
402
402
  }), []);
403
- const [S, ln] = h(null), [B, cn] = h([]), [D, Bn] = h(4), [xn, J] = h(1), [A, Hn] = h(!1), [Y, Wn] = h(1), [P, Cn] = h(null), [v, _] = h("ready"), [mn, un] = h(10), [Q, X] = h(10), [nn, fn] = h(20), [An, en] = h(0), [$, tn] = h(!1), [N, yn] = h(""), [E, on] = h(!1), [wn, bn] = h(!1), [kn, G] = h(null), [En, dn] = h([]), [jn, In] = h([]), [n, Dn] = h(!1), [Gn, V] = h(1), [Sn, O] = h(null), [I, Fn] = h(!1), [l, Un] = h(!1), [c, Yn] = h(!1), [x, _n] = h(!1), [H, $n] = h(!1), [W, Nn] = h(!1), [m, Vn] = h(!1), [u, On] = h(!1), [f, Zn] = h(!1), [rn, qn] = h(!1), [z, Kn] = h(!1), hn = U(/* @__PURE__ */ new Set()), Z = U(/* @__PURE__ */ new Map()), T = U(null), j = U(null);
404
- q(() => {
405
- s !== void 0 ? j.current = new bi(s) : j.current = null;
403
+ const [S, U] = r(null), [k, D] = r([]), [G, Ln] = r(4), [xn, en] = r(1), [B, Hn] = r(!1), [Y, Wn] = r(1), [z, Cn] = r(null), [T, O] = r("ready"), [mn, un] = r(10), [tn, on] = r(10), [wn, fn] = r(20), [Bn, dn] = r(0), [V, rn] = r(!1), [N, yn] = r(""), [A, hn] = r(!1), [sn, bn] = r(!1), [kn, $] = r(null), [An, an] = r([]), [En, vn] = r([]), [n, jn] = r(!1), [Dn, Z] = r(1), [Sn, q] = r(null), [I, Gn] = r(!1), [c, $n] = r(!1), [x, Fn] = r(!1), [H, _n] = r(!1), [W, Un] = r(!1), [m, Yn] = r(!1), [u, On] = r(!1), [f, Vn] = r(!1), [y, Nn] = r(!1), [M, Zn] = r(!1), gn = F(/* @__PURE__ */ new Set()), K = F(/* @__PURE__ */ new Map()), P = F(null), E = F(null);
404
+ _(() => {
405
+ s !== void 0 ? E.current = new yi(s) : E.current = null;
406
406
  }, [s]);
407
- const Jn = () => j.current ? j.current.next() : Math.random(), vn = (i) => j.current ? j.current.nextInt(i) : Math.floor(Math.random() * i);
408
- q(() => {
407
+ const qn = () => E.current ? E.current.next() : Math.random(), In = (i) => E.current ? E.current.nextInt(i) : Math.floor(Math.random() * i);
408
+ _(() => {
409
409
  const i = () => {
410
- const e = g ?? window.innerWidth, t = a ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, y = t < 700, R = e / t > 1.8, k = e === 768 && t === 1024, an = e === 1024 && t === 768, F = e === 820 && t === 1180, M = e === 1180 && t === 820, C = e === 540 && t === 720, zn = e === 720 && t === 540, Rn = e === 1024 && t === 1366, Mn = e === 1366 && t === 1024, ti = e >= 1200 && t >= 600 && !r;
411
- Fn(ti), Un(k), Yn(an), _n(F), $n(M), Nn(C), Vn(zn), On(Rn), Zn(Mn), Kn(R);
412
- const oi = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
413
- t < 700 || R || // ✅ Широкие экраны
414
- e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || k || an || F || M || C || zn || Rn || Mn || I;
415
- if (qn(oi), Dn(r), r)
416
- O(d && d >= 320 ? d : null), V(1);
417
- else if (y)
418
- O(d && d >= 400 ? d : null), V(1);
410
+ const o = g ?? window.innerWidth, d = a ?? window.innerHeight, h = o < 768 || o === 926 && d === 428 || o === 932 && d === 430, b = d < 700, R = o / d > 1.8, v = o === 768 && d === 1024, zn = o === 1024 && d === 768, J = o === 820 && d === 1180, L = o === 1180 && d === 820, j = o === 540 && d === 720, ii = o === 720 && d === 540, ei = o === 1024 && d === 1366, ti = o === 1366 && d === 1024, oi = o >= 1200 && d >= 600 && !h;
411
+ if (Gn(oi), $n(v), Fn(zn), _n(J), Un(L), Yn(j), On(ii), Vn(ei), Nn(ti), Zn(R), jn(h), h)
412
+ q(w && w >= 320 ? w : null), Z(1);
413
+ else if (b)
414
+ q(w && w >= 400 ? w : null), Z(1);
419
415
  else if (R) {
420
- const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
421
- O(gn), V(0.85);
416
+ const ln = w ? Math.max(400, Math.min(1200, w)) : Math.min(1e3, Math.min(o, d) * 0.9);
417
+ q(ln), Z(0.85);
422
418
  } else {
423
- const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
424
- O(gn), V(1);
419
+ const ln = w ? Math.max(400, Math.min(1200, w)) : Math.min(1e3, Math.min(o, d) * 0.9);
420
+ q(ln), Z(1);
425
421
  }
426
422
  };
427
423
  return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
428
- }, [g, a, d]);
429
- const sn = (i) => [...i].sort(() => Jn() - 0.5).slice(0, 6), Qn = (i) => {
430
- T.current && T.current.abort(), T.current = new AbortController();
431
- const t = K[i].map((r) => r.src);
432
- pn(t, T.current.signal).then((r) => {
433
- t.forEach((y) => {
434
- hn.current.add(y), r.has(y) && Z.current.set(y, r.get(y));
424
+ }, [g, a, w]);
425
+ const pn = (i) => [...i].sort(() => qn() - 0.5).slice(0, 6), Kn = (i) => {
426
+ P.current && P.current.abort(), P.current = new AbortController();
427
+ const d = Q[i].map((h) => h.src);
428
+ cn(d, P.current.signal).then((h) => {
429
+ d.forEach((b) => {
430
+ gn.current.add(b), h.has(b) && K.current.set(b, h.get(b));
435
431
  });
436
432
  }).catch(() => {
437
433
  });
438
434
  }, Tn = () => {
439
435
  if (!S) return;
440
- const i = sn(K[S]);
441
- cn(i), Hn(!0), tn(!1), Wn(1), en(0), dn([]), In([]);
442
- const e = i.map((t) => t.src);
443
- pn(e, T.current?.signal).then((t) => {
444
- e.forEach((r) => {
445
- hn.current.add(r), t.has(r) && Z.current.set(r, t.get(r));
436
+ const i = pn(Q[S]);
437
+ D(i), Hn(!0), rn(!1), Wn(1), dn(0), an([]), vn([]);
438
+ const o = i.map((d) => d.src);
439
+ cn(o, P.current?.signal).then((d) => {
440
+ o.forEach((h) => {
441
+ gn.current.add(h), d.has(h) && K.current.set(h, d.get(h));
446
442
  });
447
443
  }).catch(() => {
448
444
  }), Pn(i, [], !0);
449
- }, Pn = (i = B, e = jn, t = !1) => {
450
- const r = sn(i.length ? i : K[S]);
451
- let y = vn(r.length), R = r[y].name, k = 0;
452
- for (; e.includes(R) && k < 20; )
453
- y = vn(r.length), R = r[y].name, k++;
454
- if (cn(r), Cn(y), In([...e, R]), on(!1), yn(""), fn(20), G(null), S && !t) {
455
- const F = sn(K[S].filter((M) => !e.includes(M.name))).map((M) => M.src);
456
- pn(F, T.current?.signal).then((M) => {
457
- F.forEach((C) => {
458
- hn.current.add(C), M.has(C) && Z.current.set(C, M.get(C));
445
+ }, Pn = (i = k, o = En, d = !1) => {
446
+ const h = pn(i.length ? i : Q[S]);
447
+ let b = In(h.length), R = h[b].name, v = 0;
448
+ for (; o.includes(R) && v < 20; )
449
+ b = In(h.length), R = h[b].name, v++;
450
+ if (D(h), Cn(b), vn([...o, R]), hn(!1), yn(""), fn(20), $(null), S && !d) {
451
+ const J = pn(Q[S].filter((L) => !o.includes(L.name))).map((L) => L.src);
452
+ cn(J, P.current?.signal).then((L) => {
453
+ J.forEach((j) => {
454
+ gn.current.add(j), L.has(j) && K.current.set(j, L.get(j));
459
455
  });
460
456
  }).catch(() => {
461
457
  });
462
458
  }
463
- t ? (_("ready"), un(10), X(10)) : (_("memorize"), X(10));
459
+ d ? (O("ready"), un(10), on(10)) : (O("memorize"), on(10));
464
460
  };
465
- q(() => {
466
- if (!(!A || $ || E)) {
467
- if (v === "ready")
468
- if (mn <= 0) _("memorize");
461
+ _(() => {
462
+ if (!(!B || V || A)) {
463
+ if (T === "ready")
464
+ if (mn <= 0) O("memorize");
469
465
  else {
470
- const i = setTimeout(() => un((e) => e - 1), 1e3);
466
+ const i = setTimeout(() => un((o) => o - 1), 1e3);
471
467
  return () => clearTimeout(i);
472
468
  }
473
- if (v === "memorize")
474
- if (Q <= 0) _("guess");
469
+ if (T === "memorize")
470
+ if (tn <= 0) O("guess");
475
471
  else {
476
- const i = setTimeout(() => X((e) => e - 1), 1e3);
472
+ const i = setTimeout(() => on((o) => o - 1), 1e3);
477
473
  return () => clearTimeout(i);
478
474
  }
479
- if (v === "guess") {
480
- if (nn <= 0) {
481
- on(!0), G("wrong");
482
- const e = B[P].name, t = B[P].aliases, r = [e, ...t || []].join(", ");
483
- dn((y) => [
484
- ...y,
485
- { round: Y, answer: N, correct: r, result: "wrong" }
475
+ if (T === "guess") {
476
+ if (wn <= 0) {
477
+ hn(!0), $("wrong");
478
+ const o = k[z].name, d = k[z].aliases, h = [o, ...d || []].join(", ");
479
+ an((b) => [
480
+ ...b,
481
+ { round: Y, answer: N, correct: h, result: "wrong" }
486
482
  ]);
487
483
  return;
488
484
  }
489
- const i = setTimeout(() => fn((e) => e - 1), 1e3);
485
+ const i = setTimeout(() => fn((o) => o - 1), 1e3);
490
486
  return () => clearTimeout(i);
491
487
  }
492
488
  }
493
489
  }, [
494
- v,
490
+ T,
495
491
  mn,
496
- Q,
497
- nn,
498
- A,
499
- $,
500
- E,
492
+ tn,
493
+ wn,
501
494
  B,
502
- P,
495
+ V,
496
+ A,
497
+ k,
498
+ z,
503
499
  Y,
504
500
  N
505
501
  ]);
506
- const Xn = () => {
507
- if (P === null || wn) return;
508
- const i = B[P].name, e = B[P].aliases, t = N.toLowerCase().trim();
509
- let r = "wrong";
510
- const y = [i, ...e || []].map((k) => k.toLowerCase()), R = [i, ...e || []].join(", ");
511
- y.includes(t) ? (en((k) => k + 1), G("correct"), r = "correct") : y.some((k) => ki(t, k) === 1) ? (en((k) => k + 0.5), G("almost"), r = "almost") : (G("wrong"), r = "wrong"), dn((k) => [
512
- ...k,
513
- { round: Y, answer: t, correct: R, result: r }
502
+ const Jn = () => {
503
+ if (z === null || sn) return;
504
+ const i = k[z].name, o = k[z].aliases, d = N.toLowerCase().trim();
505
+ let h = "wrong";
506
+ const b = [i, ...o || []].map((v) => v.toLowerCase()), R = [i, ...o || []].join(", ");
507
+ b.includes(d) ? (dn((v) => v + 1), $("correct"), h = "correct") : b.some((v) => bi(d, v) === 1) ? (dn((v) => v + 0.5), $("almost"), h = "almost") : ($("wrong"), h = "wrong"), an((v) => [
508
+ ...v,
509
+ { round: Y, answer: d, correct: R, result: h }
514
510
  ]), bn(!0), setTimeout(() => {
515
- bn(!1), on(!0);
511
+ bn(!1), hn(!0);
516
512
  }, 600);
517
- }, ni = () => Y < D ? (Wn((i) => i + 1), Pn()) : tn(!0), ii = () => {
518
- T.current && T.current.abort(), Hn(!1), tn(!1), ln(null), J(2);
519
- }, ei = ri(() => {
520
- const i = g ?? window.innerWidth, e = a ?? window.innerHeight, t = !n && i >= 1200 && i <= 1400;
521
- return n && i > e || e < 700 && !t ? null : (
522
- // ensure logo is positioned inside the square container
523
- /* @__PURE__ */ w("div", { style: { ...o.gmLogoFixed, position: "absolute", top: 16, left: 16, zIndex: 30 }, children: /* @__PURE__ */ p("picture", { children: [
524
- /* @__PURE__ */ w(
525
- "source",
526
- {
527
- srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
528
- type: "image/svg+xml"
529
- }
530
- ),
531
- /* @__PURE__ */ w(
532
- "img",
533
- {
534
- src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
535
- alt: "SPEAKID Logo",
536
- style: o.gmLogoImg,
537
- loading: "lazy"
538
- }
539
- )
540
- ] }) })
541
- );
542
- }, [n, g, a]);
543
- return /* @__PURE__ */ w(
513
+ }, Qn = () => Y < G ? (Wn((i) => i + 1), Pn()) : rn(!0), Xn = () => {
514
+ P.current && P.current.abort(), Hn(!1), rn(!1), U(null), en(2);
515
+ }, ni = Rn(() => (
516
+ // ensure logo is positioned inside the square container
517
+ /* @__PURE__ */ t("div", { style: { ...e.gmLogoFixed, position: "absolute", top: 28, left: 16, zIndex: 30 }, children: /* @__PURE__ */ l("picture", { children: [
518
+ /* @__PURE__ */ t(
519
+ "source",
520
+ {
521
+ srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
522
+ type: "image/svg+xml"
523
+ }
524
+ ),
525
+ /* @__PURE__ */ t(
526
+ "img",
527
+ {
528
+ src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
529
+ alt: "SPEAKID Logo",
530
+ style: e.gmLogoImg,
531
+ loading: "lazy"
532
+ }
533
+ )
534
+ ] }) })
535
+ ), []);
536
+ return /* @__PURE__ */ l(
544
537
  "div",
545
538
  {
546
- ref: b,
539
+ ref: p,
547
540
  style: {
548
541
  width: "100%",
549
542
  height: "100%",
@@ -559,423 +552,507 @@ function Ti({
559
552
  right: 0,
560
553
  bottom: 0
561
554
  },
562
- children: /* @__PURE__ */ w(
563
- "div",
564
- {
565
- style: {
566
- width: n ? "100%" : Sn || d || 1e3,
567
- height: n ? "100%" : Sn || d || 1e3,
568
- display: "flex",
569
- justifyContent: "center",
570
- alignItems: "center",
571
- overflow: "hidden",
572
- borderRadius: n ? 0 : "20px",
573
- background: "linear-gradient(to bottom, #fff8f8 0%, #f9fafb 100%)",
574
- boxShadow: n ? "none" : "0 0 40px rgba(0,0,0,0.1)",
575
- margin: n ? "0 auto" : "unset",
576
- position: "relative",
577
- // needed so absolute logo is inside the square
578
- transform: `scale(${Gn})`
579
- // Применяем масштаб для широких экранов
580
- },
581
- children: /* @__PURE__ */ w(
582
- "div",
583
- {
584
- style: {
585
- transform: "translateZ(0)",
586
- width: "100%",
587
- height: "100%",
588
- display: "flex",
589
- justifyContent: "center",
590
- alignItems: "center"
591
- },
592
- children: /* @__PURE__ */ p("div", { id: "whats-missing-root", children: [
593
- !n && ei,
594
- !S && !A && xn === 1 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
595
- /* @__PURE__ */ w("h1", { style: o.gmHeadline1, children: "WHAT'S MISSING?" }),
596
- /* @__PURE__ */ p("div", { style: { marginTop: 24 }, children: [
597
- /* @__PURE__ */ w("p", { style: o.gmBodyS, children: "Choose number of rounds:" }),
598
- /* @__PURE__ */ w(
555
+ children: [
556
+ ni,
557
+ /* @__PURE__ */ t(
558
+ "div",
559
+ {
560
+ style: {
561
+ width: n ? "100%" : Sn || w || 1e3,
562
+ height: n ? "100%" : Sn || w || 1e3,
563
+ display: "flex",
564
+ justifyContent: "center",
565
+ alignItems: "center",
566
+ overflow: "hidden",
567
+ borderRadius: 0,
568
+ background: "transparent",
569
+ boxShadow: "none",
570
+ margin: "0 auto",
571
+ position: "relative",
572
+ // needed so absolute logo is inside the square
573
+ transform: `scale(${Dn})`
574
+ // Применяем масштаб для широких экранов
575
+ },
576
+ children: /* @__PURE__ */ t(
577
+ "div",
578
+ {
579
+ style: {
580
+ transform: "translateZ(0)",
581
+ width: "100%",
582
+ height: "100%",
583
+ display: "flex",
584
+ justifyContent: "center",
585
+ alignItems: "center"
586
+ },
587
+ children: /* @__PURE__ */ l("div", { id: "whats-missing-root", style: { position: "relative", width: "100%", height: "100%" }, children: [
588
+ !S && !B && xn === 1 && /* @__PURE__ */ l("div", { style: { ...e.gmCenterScreen, transform: "none" }, children: [
589
+ /* @__PURE__ */ t("h1", { style: e.gmHeadline1, children: "WHAT'S MISSING?" }),
590
+ /* @__PURE__ */ l("div", { style: { marginTop: 24 }, children: [
591
+ /* @__PURE__ */ t("p", { style: e.gmBodyS, children: "Choose number of rounds:" }),
592
+ /* @__PURE__ */ t(
593
+ "div",
594
+ {
595
+ style: {
596
+ display: "flex",
597
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
598
+ marginTop: 8
599
+ },
600
+ children: [3, 4, 5].map((i) => /* @__PURE__ */ t(
601
+ "button",
602
+ {
603
+ style: {
604
+ ...e.gmButton,
605
+ ...G === i ? e.gmButtonActive : {},
606
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "14px 28px",
607
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "13px" : "18px",
608
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "48px" : "64px"
609
+ },
610
+ onClick: () => Ln(i),
611
+ children: i
612
+ },
613
+ i
614
+ ))
615
+ }
616
+ )
617
+ ] }),
618
+ /* @__PURE__ */ t(
619
+ "button",
620
+ {
621
+ style: {
622
+ ...e.gmButton,
623
+ marginTop: 24,
624
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "10px 20px" : "14px 30px",
625
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "15px" : "18px",
626
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "132px" : "160px"
627
+ },
628
+ onClick: () => en(2),
629
+ children: "Play"
630
+ }
631
+ )
632
+ ] }),
633
+ !S && !B && xn === 2 && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
634
+ /* @__PURE__ */ t("p", { style: e.gmBodyM, children: "Select a theme:" }),
635
+ /* @__PURE__ */ l("p", { style: e.gmBodyS, children: [
636
+ "Rounds: ",
637
+ G
638
+ ] }),
639
+ /* @__PURE__ */ t(
599
640
  "div",
600
641
  {
601
642
  style: {
602
- display: "flex",
603
- gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
604
- marginTop: 8
643
+ display: "grid",
644
+ gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
645
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
646
+ maxWidth: n ? 280 : 420,
647
+ margin: "0 auto"
605
648
  },
606
- children: [3, 4, 5].map((i) => /* @__PURE__ */ w(
649
+ children: mi.map((i) => /* @__PURE__ */ t(
607
650
  "button",
608
651
  {
609
652
  style: {
610
- ...o.gmButton,
611
- ...D === i ? o.gmButtonActive : {},
612
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
613
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
614
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
653
+ ...e.gmButton,
654
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
655
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
615
656
  },
616
- onClick: () => Bn(i),
617
- children: i
657
+ onClick: () => {
658
+ U(i), Kn(i);
659
+ },
660
+ children: ui[i]
618
661
  },
619
662
  i
620
663
  ))
621
664
  }
665
+ ),
666
+ /* @__PURE__ */ t(
667
+ "button",
668
+ {
669
+ style: {
670
+ ...e.gmButton,
671
+ marginTop: 24,
672
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
673
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
674
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
675
+ },
676
+ onClick: () => en(1),
677
+ children: "Back"
678
+ }
622
679
  )
623
680
  ] }),
624
- /* @__PURE__ */ w(
625
- "button",
626
- {
627
- style: {
628
- ...o.gmButton,
629
- marginTop: 24,
630
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
631
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
632
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
633
- },
634
- onClick: () => J(2),
635
- children: "Play"
636
- }
637
- )
638
- ] }),
639
- !S && !A && xn === 2 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
640
- /* @__PURE__ */ w("p", { style: o.gmBodyM, children: "Select a theme:" }),
641
- /* @__PURE__ */ p("p", { style: o.gmBodyS, children: [
642
- "Rounds: ",
643
- D
644
- ] }),
645
- /* @__PURE__ */ w(
646
- "div",
647
- {
648
- style: {
649
- display: "grid",
650
- gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
651
- gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
652
- maxWidth: n ? 280 : 420,
653
- margin: "0 auto"
654
- },
655
- children: ui.map((i) => /* @__PURE__ */ w(
656
- "button",
657
- {
658
- style: {
659
- ...o.gmButton,
660
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
661
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
662
- },
663
- onClick: () => {
664
- ln(i), Qn(i);
665
- },
666
- children: fi[i]
681
+ S && !B && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
682
+ /* @__PURE__ */ l("h1", { style: e.gmHeadline1, children: [
683
+ "Theme selected: ",
684
+ S
685
+ ] }),
686
+ /* @__PURE__ */ l("p", { style: e.gmBodyM, children: [
687
+ "Rounds: ",
688
+ G
689
+ ] }),
690
+ /* @__PURE__ */ t(
691
+ "button",
692
+ {
693
+ style: {
694
+ ...e.gmButton,
695
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
696
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
697
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
667
698
  },
668
- i
669
- ))
670
- }
671
- ),
672
- /* @__PURE__ */ w(
673
- "button",
674
- {
675
- style: {
676
- ...o.gmButton,
677
- marginTop: 24,
678
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
679
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
680
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
681
- },
682
- onClick: () => J(1),
683
- children: "Back"
684
- }
685
- )
686
- ] }),
687
- S && !A && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
688
- /* @__PURE__ */ p("h1", { style: o.gmHeadline1, children: [
689
- "Theme selected: ",
690
- S
699
+ onClick: Tn,
700
+ children: "▶ Start game"
701
+ }
702
+ )
691
703
  ] }),
692
- /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
693
- "Rounds: ",
694
- D
704
+ V && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
705
+ /* @__PURE__ */ t(
706
+ "h1",
707
+ {
708
+ style: {
709
+ ...e.gmHeadline1,
710
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : e.gmHeadline1.marginTop,
711
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmHeadline1.marginBottom
712
+ },
713
+ children: "Results"
714
+ }
715
+ ),
716
+ /* @__PURE__ */ l(
717
+ "h2",
718
+ {
719
+ style: {
720
+ ...e.gmHeadline3,
721
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : e.gmHeadline3.marginTop,
722
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmHeadline3.marginBottom
723
+ },
724
+ children: [
725
+ "Your score: ",
726
+ Bn,
727
+ " / ",
728
+ G
729
+ ]
730
+ }
731
+ ),
732
+ /* @__PURE__ */ t(
733
+ "p",
734
+ {
735
+ style: {
736
+ ...e.gmBodyM,
737
+ color: "#10b981",
738
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : "12px",
739
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmBodyM.marginBottom
740
+ },
741
+ children: "Yahoo! You did it! 🍬✨"
742
+ }
743
+ ),
744
+ /* @__PURE__ */ l(
745
+ "table",
746
+ {
747
+ style: {
748
+ ...e.gmTable,
749
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : "20px",
750
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "4px" : "32px"
751
+ },
752
+ children: [
753
+ /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
754
+ /* @__PURE__ */ t("th", { children: "Round" }),
755
+ /* @__PURE__ */ t("th", { children: "Your Answer" }),
756
+ /* @__PURE__ */ t("th", { children: "Correct" }),
757
+ /* @__PURE__ */ t("th", { children: "Result" })
758
+ ] }) }),
759
+ /* @__PURE__ */ t("tbody", { children: An.map((i, o) => /* @__PURE__ */ l("tr", { children: [
760
+ /* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.round }),
761
+ /* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.answer || "—" }),
762
+ /* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.correct }),
763
+ /* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
764
+ ] }, o)) })
765
+ ]
766
+ }
767
+ ),
768
+ /* @__PURE__ */ l(
769
+ "div",
770
+ {
771
+ style: {
772
+ display: "flex",
773
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
774
+ marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I ? "12px" : "24px"
775
+ },
776
+ children: [
777
+ /* @__PURE__ */ t(
778
+ "button",
779
+ {
780
+ style: {
781
+ ...e.gmButton,
782
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
783
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
784
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
785
+ },
786
+ onClick: Tn,
787
+ children: "🔁 Play again"
788
+ }
789
+ ),
790
+ /* @__PURE__ */ t(
791
+ "button",
792
+ {
793
+ style: {
794
+ ...e.gmButton,
795
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
796
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
797
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
798
+ },
799
+ onClick: Xn,
800
+ children: "⬅️ Choose theme"
801
+ }
802
+ )
803
+ ]
804
+ }
805
+ )
695
806
  ] }),
696
- /* @__PURE__ */ w(
697
- "button",
698
- {
699
- style: {
700
- ...o.gmButton,
701
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
702
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
703
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
704
- },
705
- onClick: Tn,
706
- children: " Start game"
707
- }
708
- )
709
- ] }),
710
- $ && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
711
- /* @__PURE__ */ w(
712
- "h1",
713
- {
714
- style: {
715
- ...o.gmHeadline1,
716
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline1.marginTop,
717
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline1.marginBottom
718
- },
719
- children: "Results"
720
- }
721
- ),
722
- /* @__PURE__ */ p(
723
- "h2",
724
- {
725
- style: {
726
- ...o.gmHeadline3,
727
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline3.marginTop,
728
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline3.marginBottom
729
- },
730
- children: [
731
- "Your score: ",
732
- An,
733
- " / ",
734
- D
735
- ]
736
- }
737
- ),
738
- /* @__PURE__ */ w(
739
- "p",
740
- {
741
- style: {
742
- ...o.gmBodyM,
743
- color: "#10b981",
744
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "12px",
745
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmBodyM.marginBottom
746
- },
747
- children: "Yahoo! You did it! 🍬✨"
748
- }
749
- ),
750
- /* @__PURE__ */ p(
751
- "table",
752
- {
753
- style: {
754
- ...o.gmTable,
755
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "20px",
756
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "4px" : "32px"
757
- },
758
- children: [
759
- /* @__PURE__ */ w("thead", { children: /* @__PURE__ */ p("tr", { children: [
760
- /* @__PURE__ */ w("th", { children: "Round" }),
761
- /* @__PURE__ */ w("th", { children: "Your Answer" }),
762
- /* @__PURE__ */ w("th", { children: "Correct" }),
763
- /* @__PURE__ */ w("th", { children: "Result" })
764
- ] }) }),
765
- /* @__PURE__ */ w("tbody", { children: En.map((i, e) => /* @__PURE__ */ p("tr", { children: [
766
- /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.round }),
767
- /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.answer || "—" }),
768
- /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.correct }),
769
- /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
770
- ] }, e)) })
771
- ]
772
- }
773
- ),
774
- /* @__PURE__ */ p(
775
- "div",
776
- {
777
- style: {
778
- display: "flex",
779
- gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
780
- marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I ? "12px" : "24px"
781
- },
782
- children: [
783
- /* @__PURE__ */ w(
784
- "button",
785
- {
786
- style: {
787
- ...o.gmButton,
788
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
789
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
790
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
791
- },
792
- onClick: Tn,
793
- children: "🔁 Play again"
794
- }
795
- ),
796
- /* @__PURE__ */ w(
797
- "button",
798
- {
799
- style: {
800
- ...o.gmButton,
801
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
802
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
803
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
804
- },
805
- onClick: ii,
806
- children: "⬅️ Choose theme"
807
- }
808
- )
809
- ]
810
- }
811
- )
812
- ] }),
813
- A && !$ && /* @__PURE__ */ p("div", { style: o.gmGameLayout, children: [
814
- /* @__PURE__ */ p(
815
- "div",
816
- {
817
- style: {
818
- minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
819
- display: "flex",
820
- flexDirection: "column",
821
- justifyContent: "center",
822
- alignItems: "center",
823
- paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
824
- },
825
- children: [
826
- v === "ready" && /* @__PURE__ */ p(Ln, { children: [
827
- /* @__PURE__ */ w("h1", { style: { ...o.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
828
- /* @__PURE__ */ w("div", { style: o.gmHourglass, children: "⏳" })
829
- ] }),
830
- v === "memorize" && /* @__PURE__ */ p("p", { style: { ...o.gmBodyM, color: "#10b981" }, children: [
831
- "MEMORIZE (",
832
- Q,
833
- ")"
834
- ] }),
835
- v === "guess" && !E && /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
836
- "⏳ Time left: ",
837
- nn,
838
- "s"
839
- ] })
840
- ]
841
- }
842
- ),
843
- v !== "ready" && /* @__PURE__ */ w(
844
- "div",
845
- {
846
- style: {
847
- ...o.gmGrid,
848
- ...z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
849
- // ✅ Широкие экраны: полная ширина грида
850
- gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
851
- // desktop: 3 колонки фиксированного размера
852
- gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
853
- // desktop: стандартная высота
854
- gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
855
- justifyItems: "center",
856
- maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
857
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
858
- },
859
- children: B.map((i, e) => {
860
- const t = P === e && v === "guess" && !E;
861
- return /* @__PURE__ */ w(
862
- "div",
863
- {
864
- style: {
865
- width: "100%",
866
- height: "100%",
867
- borderRadius: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px" : "12px",
868
- overflow: "hidden",
869
- boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
870
- transition: "all 0.3s ease",
871
- cursor: "pointer",
872
- ...kn === "correct" && P === e ? {
873
- boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
874
- transform: "scale(1.03)"
875
- } : {},
876
- ...kn === "wrong" && P === e ? {
877
- boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
878
- transform: "scale(1.03)"
879
- } : {}
807
+ B && !V && /* @__PURE__ */ l("div", { style: e.gmGameLayout, children: [
808
+ /* @__PURE__ */ l(
809
+ "div",
810
+ {
811
+ style: {
812
+ minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
813
+ display: "flex",
814
+ flexDirection: "column",
815
+ justifyContent: "center",
816
+ alignItems: "center",
817
+ paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
818
+ },
819
+ children: [
820
+ T === "ready" && /* @__PURE__ */ l(Mn, { children: [
821
+ /* @__PURE__ */ t("h1", { style: { ...e.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
822
+ /* @__PURE__ */ t("div", { style: e.gmHourglass, children: "⏳" })
823
+ ] }),
824
+ T === "memorize" && /* @__PURE__ */ l("p", { style: { ...e.gmBodyM, color: "#10b981" }, children: [
825
+ "MEMORIZE (",
826
+ tn,
827
+ ")"
828
+ ] }),
829
+ T === "guess" && !A && /* @__PURE__ */ l("p", { style: e.gmBodyM, children: [
830
+ "⏳ Time left: ",
831
+ wn,
832
+ "s"
833
+ ] })
834
+ ]
835
+ }
836
+ ),
837
+ T !== "ready" && /* @__PURE__ */ t(
838
+ "div",
839
+ {
840
+ style: {
841
+ ...e.gmGrid,
842
+ ...M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
843
+ // ✅ Широкие экраны: полная ширина грида
844
+ gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
845
+ // desktop: 3 колонки фиксированного размера
846
+ gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
847
+ // desktop: стандартная высота
848
+ gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
849
+ justifyItems: "center",
850
+ maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
851
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
852
+ },
853
+ children: k.map((i, o) => {
854
+ const d = z === o && T === "guess" && !A;
855
+ return /* @__PURE__ */ t(
856
+ "div",
857
+ {
858
+ style: {
859
+ width: "100%",
860
+ height: "100%",
861
+ borderRadius: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px" : "12px",
862
+ overflow: "hidden",
863
+ backgroundColor: "#ffffff",
864
+ boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
865
+ transition: "all 0.3s ease",
866
+ cursor: "pointer",
867
+ ...kn === "correct" && z === o ? {
868
+ boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
869
+ transform: "scale(1.03)"
870
+ } : {},
871
+ ...kn === "wrong" && z === o ? {
872
+ boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
873
+ transform: "scale(1.03)"
874
+ } : {}
875
+ },
876
+ children: !d && (() => {
877
+ const h = K.current.get(i.src), b = h?.complete && h.src ? h.src : i.src;
878
+ return /* @__PURE__ */ t(
879
+ "img",
880
+ {
881
+ src: b,
882
+ alt: i.name,
883
+ fetchPriority: "high",
884
+ loading: "eager",
885
+ decoding: "async",
886
+ style: {
887
+ width: "100%",
888
+ height: "100%",
889
+ objectFit: "contain",
890
+ objectPosition: "center"
891
+ }
892
+ },
893
+ `${i.src}-${h?.complete ? "loaded" : "pending"}`
894
+ );
895
+ })()
880
896
  },
881
- children: !t && (() => {
882
- const r = Z.current.get(i.src), y = r?.complete && r.src ? r.src : i.src;
883
- return /* @__PURE__ */ w(
884
- "img",
885
- {
886
- src: y,
887
- alt: i.name,
888
- fetchPriority: "high",
889
- loading: "eager",
890
- decoding: "async",
891
- style: {
892
- width: "100%",
893
- height: "100%",
894
- objectFit: "cover"
897
+ o
898
+ );
899
+ })
900
+ }
901
+ ),
902
+ /* @__PURE__ */ l(
903
+ "div",
904
+ {
905
+ style: {
906
+ marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
907
+ height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
908
+ },
909
+ children: [
910
+ T === "guess" && !A && /* @__PURE__ */ t(
911
+ "div",
912
+ {
913
+ style: {
914
+ display: "flex",
915
+ flexDirection: "row",
916
+ flexWrap: "nowrap",
917
+ alignItems: "center",
918
+ justifyContent: "center",
919
+ minWidth: 0,
920
+ gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
921
+ width: "100%",
922
+ maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
923
+ },
924
+ children: /* @__PURE__ */ l(Mn, { children: [
925
+ /* @__PURE__ */ t(
926
+ "input",
927
+ {
928
+ type: "text",
929
+ placeholder: "Type the missing word",
930
+ value: N,
931
+ onChange: (i) => yn(i.target.value),
932
+ style: {
933
+ ...e.gmInput,
934
+ flex: "1 1 0",
935
+ minWidth: 0,
936
+ width: "auto",
937
+ maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : (window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700, "250px"),
938
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
939
+ boxSizing: "border-box",
940
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
941
+ }
895
942
  }
896
- },
897
- `${i.src}-${r?.complete ? "loaded" : "pending"}`
898
- );
899
- })()
900
- },
901
- e
902
- );
903
- })
904
- }
905
- ),
906
- /* @__PURE__ */ p(
907
- "div",
908
- {
909
- style: {
910
- marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
911
- height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
912
- },
913
- children: [
914
- v === "guess" && !E && /* @__PURE__ */ w(
915
- "div",
916
- {
917
- style: {
918
- display: "flex",
919
- flexDirection: rn ? "row" : "column",
920
- gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
921
- alignItems: "center",
922
- justifyContent: "center",
923
- width: "100%",
924
- maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
925
- },
926
- children: /* @__PURE__ */ p(Ln, { children: [
927
- /* @__PURE__ */ w(
928
- "input",
929
- {
930
- type: "text",
931
- placeholder: "Type the missing word",
932
- value: N,
933
- onChange: (i) => yn(i.target.value),
934
- style: {
935
- ...o.gmInput,
936
- width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
937
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
938
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
939
- flex: rn ? "1" : "none"
943
+ ),
944
+ /* @__PURE__ */ t(
945
+ "button",
946
+ {
947
+ style: {
948
+ ...e.gmButton,
949
+ marginLeft: 0,
950
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
951
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
952
+ minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
953
+ flexShrink: 0
954
+ },
955
+ onClick: Jn,
956
+ disabled: sn,
957
+ children: sn ? "..." : "Check"
940
958
  }
941
- }
942
- ),
943
- /* @__PURE__ */ w(
944
- "button",
945
- {
946
- style: {
947
- ...o.gmButton,
948
- marginLeft: rn ? "8px" : "0",
949
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
950
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
951
- minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
952
- flexShrink: 0
953
- },
954
- onClick: Xn,
955
- disabled: wn,
956
- children: wn ? "..." : "Check"
957
- }
958
- )
959
- ] })
960
- }
961
- ),
962
- E && /* @__PURE__ */ w(
963
- "button",
964
- {
965
- style: {
966
- ...o.gmButton,
967
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
968
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
969
- },
970
- onClick: ni,
971
- children: "Next round"
972
- }
973
- )
974
- ]
975
- }
976
- )
959
+ )
960
+ ] })
961
+ }
962
+ ),
963
+ A && /* @__PURE__ */ t(
964
+ "button",
965
+ {
966
+ style: {
967
+ ...e.gmButton,
968
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
969
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
970
+ },
971
+ onClick: Qn,
972
+ children: "Next round"
973
+ }
974
+ )
975
+ ]
976
+ }
977
+ )
978
+ ] })
977
979
  ] })
978
- ] })
980
+ }
981
+ )
982
+ }
983
+ )
984
+ ]
985
+ }
986
+ );
987
+ }
988
+ const X = 1280, nn = 720;
989
+ function Si(w, a) {
990
+ const g = Math.min(w, a);
991
+ return w <= 768 ? Math.max(280, w - 20) : Math.max(400, Math.min(1200, g - 40));
992
+ }
993
+ function Pi({
994
+ gameCubeSize: w,
995
+ screenHeight: a,
996
+ screenWidth: g,
997
+ seed: s
998
+ }) {
999
+ const [p, S] = r(() => ({
1000
+ width: typeof window < "u" ? window.innerWidth : X,
1001
+ height: typeof window < "u" ? window.innerHeight : nn
1002
+ }));
1003
+ _(() => {
1004
+ const k = () => {
1005
+ S({
1006
+ width: window.innerWidth,
1007
+ height: window.innerHeight
1008
+ });
1009
+ };
1010
+ k(), window.addEventListener("resize", k), window.addEventListener("orientationchange", k);
1011
+ const D = new ResizeObserver(k);
1012
+ return D.observe(document.documentElement), () => {
1013
+ window.removeEventListener("resize", k), window.removeEventListener("orientationchange", k), D.disconnect();
1014
+ };
1015
+ }, []);
1016
+ const U = Rn(() => Math.min(p.width / X, p.height / nn), [p.width, p.height]);
1017
+ return /* @__PURE__ */ t(
1018
+ "div",
1019
+ {
1020
+ style: {
1021
+ position: "relative",
1022
+ width: "100%",
1023
+ height: "100%",
1024
+ overflow: "hidden"
1025
+ },
1026
+ children: /* @__PURE__ */ t(
1027
+ "div",
1028
+ {
1029
+ style: {
1030
+ position: "absolute",
1031
+ left: "50%",
1032
+ top: "50%",
1033
+ width: `${X}px`,
1034
+ height: `${nn}px`,
1035
+ transform: `translate(-50%, -50%) scale(${U})`,
1036
+ transformOrigin: "center center"
1037
+ },
1038
+ children: /* @__PURE__ */ t(
1039
+ "div",
1040
+ {
1041
+ style: {
1042
+ width: `${X}px`,
1043
+ height: `${nn}px`,
1044
+ position: "relative",
1045
+ overflow: "hidden"
1046
+ },
1047
+ children: /* @__PURE__ */ t(
1048
+ vi,
1049
+ {
1050
+ gameCubeSize: w ?? Si(p.width, p.height),
1051
+ screenWidth: g ?? p.width,
1052
+ screenHeight: a ?? p.height,
1053
+ seed: s
1054
+ }
1055
+ )
979
1056
  }
980
1057
  )
981
1058
  }
@@ -984,6 +1061,8 @@ function Ti({
984
1061
  );
985
1062
  }
986
1063
  export {
987
- Ti as Game,
988
- K as themes
1064
+ Pi as AdaptiveGameShell,
1065
+ Pi as Game,
1066
+ vi as RawGame,
1067
+ Q as themes
989
1068
  };