speakid-hangman 1.0.12 → 1.0.14

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,5 +1,5 @@
1
1
  import { jsx as o, jsxs as m, Fragment as G } from "react/jsx-runtime";
2
- import { useState as u, useMemo as Q, useCallback as he, useEffect as ue } from "react";
2
+ import { useState as h, useMemo as Q, useCallback as ue, useEffect as he } from "react";
3
3
  const l = {
4
4
  gmCenterScreen: {
5
5
  position: "relative",
@@ -209,12 +209,12 @@ function je({
209
209
  maxMistakes: J,
210
210
  size: P = 200
211
211
  }) {
212
- const p = P, h = P * 1.25, w = Math.max(3, P / 100), C = 10 * (p / 200), x = 240 * (h / 250), y = 150 * (p / 200), b = 80 * (p / 200), ee = 20 * (h / 250), _ = 240 * (h / 250), M = 80 * (p / 200), N = 20 * (h / 250), L = 150 * (p / 200), H = 150 * (p / 200), S = 20 * (h / 250), I = 50 * (h / 250), F = 150 * (p / 200), R = 70 * (h / 250), U = 20 * (p / 200), T = 150 * (p / 200), te = 90 * (h / 250), Y = 150 * (h / 250), f = 150 * (p / 200), B = 110 * (h / 250), d = 130 * (p / 200), D = 130 * (h / 250), ne = 150 * (p / 200), E = 110 * (h / 250), me = 170 * (p / 200), W = 130 * (h / 250), oe = 150 * (p / 200), V = 150 * (h / 250), g = 130 * (p / 200), re = 190 * (h / 250), j = 150 * (p / 200), ie = 150 * (h / 250), a = 170 * (p / 200), ae = 190 * (h / 250), k = r === 0 || r <= J * 0.5 ? "#1f2937" : r <= J * 0.75 ? "#f59e0b" : "#ec4c44";
212
+ const p = P, u = P * 1.25, w = Math.max(3, P / 100), C = 10 * (p / 200), x = 240 * (u / 250), y = 150 * (p / 200), b = 80 * (p / 200), ee = 20 * (u / 250), _ = 240 * (u / 250), M = 80 * (p / 200), N = 20 * (u / 250), L = 150 * (p / 200), H = 150 * (p / 200), S = 20 * (u / 250), I = 50 * (u / 250), F = 150 * (p / 200), R = 70 * (u / 250), U = 20 * (p / 200), T = 150 * (p / 200), te = 90 * (u / 250), D = 150 * (u / 250), f = 150 * (p / 200), B = 110 * (u / 250), g = 130 * (p / 200), O = 130 * (u / 250), ne = 150 * (p / 200), E = 110 * (u / 250), me = 170 * (p / 200), W = 130 * (u / 250), oe = 150 * (p / 200), V = 150 * (u / 250), d = 130 * (p / 200), re = 190 * (u / 250), j = 150 * (p / 200), ie = 150 * (u / 250), a = 170 * (p / 200), ae = 190 * (u / 250), k = r === 0 || r <= J * 0.5 ? "#1f2937" : r <= J * 0.75 ? "#f59e0b" : "#ec4c44";
213
213
  return /* @__PURE__ */ m(
214
214
  "svg",
215
215
  {
216
216
  width: p,
217
- height: h,
217
+ height: u,
218
218
  viewBox: "0 0 200 250",
219
219
  style: {
220
220
  display: "block",
@@ -288,7 +288,7 @@ function je({
288
288
  x1: T,
289
289
  y1: te,
290
290
  x2: T,
291
- y2: Y,
291
+ y2: D,
292
292
  stroke: k,
293
293
  strokeWidth: w
294
294
  }
@@ -298,8 +298,8 @@ function je({
298
298
  {
299
299
  x1: f,
300
300
  y1: B,
301
- x2: d,
302
- y2: D,
301
+ x2: g,
302
+ y2: O,
303
303
  stroke: k,
304
304
  strokeWidth: w
305
305
  }
@@ -320,7 +320,7 @@ function je({
320
320
  {
321
321
  x1: oe,
322
322
  y1: V,
323
- x2: g,
323
+ x2: d,
324
324
  y2: re,
325
325
  stroke: k,
326
326
  strokeWidth: w
@@ -346,7 +346,7 @@ function Oe({
346
346
  screenHeight: J = 800,
347
347
  screenWidth: P = 800,
348
348
  logoUrl: p,
349
- showLogo: h = !0,
349
+ showLogo: u = !0,
350
350
  baseURL: w
351
351
  } = {}) {
352
352
  const C = {
@@ -367,56 +367,56 @@ function Oe({
367
367
  Environment: ["tree", "forest", "air", "water", "pollution", "recycle", "nature", "clean", "waste", "plastic", "energy", "animal", "climate", "earth", "ocean", "river", "planet", "save", "green", "environment", "litter", "organic"],
368
368
  Space: ["planet", "star", "sun", "moon", "astronaut", "rocket", "space", "galaxy", "universe", "telescope", "comet", "asteroid", "orbit", "gravity", "alien", "spaceship", "mars", "satellite", "sky", "eclipse"],
369
369
  Devices: ["computer", "laptop", "phone", "tablet", "tv", "keyboard", "mouse", "printer", "camera", "headphones", "charger", "screen", "watch", "microphone", "speaker", "console", "router", "battery", "cable", "remote"]
370
- }, [x, y] = u("lobby"), [b, ee] = u(""), [_] = u("Normal"), [M, N] = u(0), [L, H] = u(1), [S, I] = u(""), [F, R] = u([]), [U, T] = u(0), [te, Y] = u(0), [f, B] = u(null), [d, D] = u(null), [ne, E] = u(1), [me, W] = u([]), oe = _ === "Easy" ? 8 : _ === "Normal" ? 6 : 4, V = w || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman` : "/cloud/speakid/games/hangman"), [g, re] = u(!1), [j, ie] = u(!1), [a, ae] = u(!1), [$, k] = u(!1), s = Q(() => {
371
- const e = (d || r || 1e3) / 400, n = a ? 0.8 : 1, i = $ ? 0.9 : 1, c = n * i;
370
+ }, [x, y] = h("lobby"), [b, ee] = h(""), [_] = h("Normal"), [M, N] = h(0), [L, H] = h(1), [S, I] = h(""), [F, R] = h([]), [U, T] = h(0), [te, D] = h(0), [f, B] = h(null), [g, O] = h(null), [ne, E] = h(1), [me, W] = h([]), oe = _ === "Easy" ? 8 : _ === "Normal" ? 6 : 4, V = w || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman` : "/cloud/speakid/games/hangman"), [d, re] = h(!1), [j, ie] = h(!1), [a, ae] = h(!1), [$, k] = h(!1), s = Q(() => {
371
+ const e = (g || r || 1e3) / 400, n = a ? 0.8 : 1, i = $ ? 0.9 : 1, c = n * i;
372
372
  return {
373
- headline1: g ? Math.max(24, Math.min(30, 30 * e * c)) : Math.max(28, Math.min(32, 32 * e * i)),
373
+ headline1: d ? Math.max(24, Math.min(30, 30 * e * c)) : Math.max(28, Math.min(32, 32 * e * i)),
374
374
  // Desktop: 32px
375
375
  headline2: Math.max(20, Math.min(28, 24 * e * c)),
376
376
  // Desktop: 24px
377
- headline3: g ? Math.max(14, Math.min(18, 16 * e * c)) : Math.max(20, Math.min(26, 24 * e * c)),
377
+ headline3: d ? Math.max(14, Math.min(18, 16 * e * c)) : Math.max(20, Math.min(26, 24 * e * c)),
378
378
  // Desktop: 24px
379
379
  bodyL: Math.max(14, Math.min(20, 18 * e * c)),
380
380
  // Desktop: 18px
381
- bodyM: g ? Math.max(12, Math.min(16, 14 * e * c)) : Math.max(14, Math.min(18, 16 * e * c)),
381
+ bodyM: d ? Math.max(12, Math.min(16, 14 * e * c)) : Math.max(14, Math.min(18, 16 * e * c)),
382
382
  // Desktop: 16px
383
- bodyS: g ? Math.max(10, Math.min(14, 12 * e * c)) : Math.max(12, Math.min(16, 14 * e * c)),
383
+ bodyS: d ? Math.max(10, Math.min(14, 12 * e * c)) : Math.max(12, Math.min(16, 14 * e * c)),
384
384
  // Desktop: 14px
385
385
  wordDisplay: Math.max(18, Math.min(32, 26 * e * c)),
386
386
  // Адаптивный размер
387
387
  button: Math.max(12, Math.min(18, 16 * e * c))
388
388
  // Desktop: 16px
389
389
  };
390
- }, [g, d, r, a, $]), fe = Q(() => {
391
- const e = (d || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
390
+ }, [d, g, r, a, $]), fe = Q(() => {
391
+ const e = (g || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
392
392
  return j ? Math.max(8, Math.min(12, 10 * e)) : Math.max(12, Math.min(24, 16 * e)) * n * i;
393
- }, [j, d, r, a, $]), t = Q(() => {
394
- const e = (d || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
393
+ }, [j, g, r, a, $]), t = Q(() => {
394
+ const e = (g || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
395
395
  return j ? Math.max(3, Math.min(6, 5 * e)) : Math.max(4, Math.min(12, 8 * e)) * n * i;
396
- }, [j, d, r, a, $]), v = Q(() => {
397
- const e = (d || r || 1e3) / 400, n = $ ? 0.9 : 1;
396
+ }, [j, g, r, a, $]), v = Q(() => {
397
+ const e = (g || r || 1e3) / 400, n = $ ? 0.9 : 1;
398
398
  return Math.max(6, Math.min(10, 8 * e * n));
399
- }, [d, r, $]), we = (e, n) => e.split("").every((i) => n.includes(i)), ke = (e, n) => e.split("").map((i) => n.includes(i) ? i : "_").join(" "), Me = (e) => "abcdefghijklmnopqrstuvwxyz".split("").filter((i) => !e.includes(i)), Z = (e, n = []) => {
400
- var A;
399
+ }, [g, r, $]), we = (e, n) => e.split("").every((i) => n.includes(i)), ke = (e, n) => e.split("").map((i) => n.includes(i) ? i : "_").join(" "), Me = (e) => "abcdefghijklmnopqrstuvwxyz".split("").filter((i) => !e.includes(i)), Z = (e, n = []) => {
400
+ var Y;
401
401
  if (!e || !C[e]) {
402
402
  const z = Object.keys(C)[0];
403
- return ((A = C[z]) == null ? void 0 : A[0]) || "";
403
+ return ((Y = C[z]) == null ? void 0 : Y[0]) || "";
404
404
  }
405
405
  const i = C[e];
406
406
  if (!i || i.length === 0)
407
407
  return "";
408
- const c = i.filter((z) => !n.includes(z)), X = c.length > 0 ? c : i;
409
- if (X.length === 0)
408
+ const c = i.filter((z) => !n.includes(z)), A = c.length > 0 ? c : i;
409
+ if (A.length === 0)
410
410
  return "";
411
411
  let q;
412
412
  if (typeof crypto < "u" && crypto.getRandomValues) {
413
413
  const z = new Uint32Array(1);
414
414
  crypto.getRandomValues(z);
415
415
  const ge = z[0] / 4294967295;
416
- q = Math.floor(ge * X.length);
416
+ q = Math.floor(ge * A.length);
417
417
  } else
418
- q = Math.floor(Math.random() * X.length);
419
- return X[q];
418
+ q = Math.floor(Math.random() * A.length);
419
+ return A[q];
420
420
  }, $e = () => {
421
421
  if (!b) return;
422
422
  W([]);
@@ -425,19 +425,19 @@ function Oe({
425
425
  y("category");
426
426
  return;
427
427
  }
428
- I(e), W([e]), R([]), T(0), H(1), Y(0), B(null), y("game");
429
- }, se = he((e) => {
428
+ I(e), W([e]), R([]), T(0), H(1), D(0), B(null), y("game");
429
+ }, se = ue((e) => {
430
430
  if (x !== "game" || f !== null) return;
431
431
  const n = e.toLowerCase();
432
432
  /^[a-z]$/.test(n) && (R((i) => i.includes(n) ? i : [...i, n]), I((i) => (i && !i.includes(n) && T((c) => c + 1), i)));
433
- }, [x, f]), le = he((e) => {
433
+ }, [x, f]), le = ue((e) => {
434
434
  se(e.key);
435
435
  }, [se]);
436
- ue(() => {
436
+ he(() => {
437
437
  if (x === "game")
438
438
  return window.addEventListener("keydown", le), () => window.removeEventListener("keydown", le);
439
439
  }, [x, le]);
440
- const ve = S ? ke(S, F) : "", xe = S ? we(S, F) : !1, ye = U >= 10, Se = Me(F), ce = he(() => {
440
+ const ve = S ? ke(S, F) : "", xe = S ? we(S, F) : !1, ye = U >= 10, Se = Me(F), ce = ue(() => {
441
441
  if (!b || L >= M) {
442
442
  y("result");
443
443
  return;
@@ -447,9 +447,9 @@ function Oe({
447
447
  return n ? (I(n), [...e, n]) : e;
448
448
  }), R([]), T(0), B(null);
449
449
  }, [b, L, M]);
450
- ue(() => {
450
+ he(() => {
451
451
  if (xe && f === null) {
452
- B("win"), Y((n) => n + 1);
452
+ B("win"), D((n) => n + 1);
453
453
  const e = setTimeout(() => {
454
454
  ce();
455
455
  }, 2e3);
@@ -473,19 +473,19 @@ function Oe({
473
473
  return n ? (I(n), [...e, n]) : e;
474
474
  }), R([]), T(0), B(null);
475
475
  };
476
- ue(() => {
476
+ he(() => {
477
477
  const e = () => {
478
- const n = window.innerWidth, i = window.innerHeight, c = i < 800, A = n < 768 || c || (n === 926 && i === 428 || n === 932 && i === 430), z = i < 700, ge = n / i > 1.8, We = n === 1024 && i === 600, ze = A && n > i, Ce = n >= 1200 && n <= 1400;
479
- if (re(A), ie(We), ae(ze), k(Ce), A)
480
- D(null), E(1);
478
+ const n = window.innerWidth, i = window.innerHeight, c = n < 768, A = n > i && n < 1e3 && i < 500, Y = c || A || (n === 926 && i === 428 || n === 932 && i === 430), z = i < 700, ge = n / i > 1.8, We = n === 1024 && i === 600, ze = Y && n > i, Ce = n >= 1200 && n <= 1400;
479
+ if (re(Y), ie(We), ae(ze), k(Ce), Y)
480
+ O(null), E(1);
481
481
  else if (z)
482
- D(null), E(1);
482
+ O(null), E(1);
483
483
  else {
484
484
  const He = n - 80, Ie = i - 80, be = Math.min(He, Ie);
485
485
  let pe;
486
486
  r && r >= 320 ? pe = Math.min(r, be) : pe = Math.min(1e3, be * 0.9);
487
487
  const Re = Math.max(400, Math.min(1200, pe));
488
- D(Re), E(ge ? 0.85 : 1);
488
+ O(Re), E(ge ? 0.85 : 1);
489
489
  }
490
490
  };
491
491
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
@@ -534,7 +534,7 @@ function Oe({
534
534
  <path d="M 35% 85% Q 37% 83%, 39% 85% T 43% 85% T 47% 85%"
535
535
  fill="none" stroke="#FF4500" stroke-width="3.5" stroke-linecap="round"/>
536
536
  </svg>
537
- `, Fe = !g && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !g && h && (x !== "game" || Fe), Te = {
537
+ `, Fe = !d && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !d && u && (x !== "game" || Fe), Te = {
538
538
  ...l.gmCenterScreen,
539
539
  width: "100%",
540
540
  height: "100%",
@@ -546,12 +546,12 @@ function Oe({
546
546
  position: "relative",
547
547
  boxSizing: "border-box",
548
548
  background: "transparent"
549
- }, O = Q(
549
+ }, X = Q(
550
550
  () => {
551
551
  if (!de)
552
552
  return null;
553
553
  const e = window.innerWidth;
554
- if (g && e > window.innerHeight)
554
+ if (d && e > window.innerHeight)
555
555
  return null;
556
556
  const n = p || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman/logo` : "/cloud/speakid/games/hangman/logo");
557
557
  return /* @__PURE__ */ o("div", { style: l.gmLogoFixed, children: /* @__PURE__ */ m("picture", { children: [
@@ -573,9 +573,9 @@ function Oe({
573
573
  )
574
574
  ] }) });
575
575
  },
576
- [g, de, p, x]
576
+ [d, de, p, x]
577
577
  ), Be = () => x === "lobby" ? /* @__PURE__ */ m(G, { children: [
578
- O,
578
+ X,
579
579
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
580
580
  /* @__PURE__ */ o("h1", { style: {
581
581
  ...l.gmHeadline1,
@@ -658,10 +658,10 @@ function Oe({
658
658
  alt: "Sun",
659
659
  style: {
660
660
  position: "absolute",
661
- left: g ? "-10%" : "5%",
661
+ left: d ? "-10%" : "5%",
662
662
  top: "20%",
663
663
  width: "auto",
664
- height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
664
+ height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((g || r || 1e3) * 0.33, 300)}px`,
665
665
  maxHeight: "33vh",
666
666
  objectFit: "contain",
667
667
  opacity: 0.6
@@ -675,10 +675,10 @@ function Oe({
675
675
  alt: "Hangman character",
676
676
  style: {
677
677
  position: "absolute",
678
- right: g ? "5%" : "10%",
678
+ right: d ? "5%" : "10%",
679
679
  bottom: "10%",
680
680
  width: "auto",
681
- height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
681
+ height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((g || r || 1e3) * 0.33, 300)}px`,
682
682
  maxHeight: "33vh",
683
683
  objectFit: "contain",
684
684
  opacity: 0.6
@@ -687,7 +687,7 @@ function Oe({
687
687
  )
688
688
  ] })
689
689
  ] }) : x === "category" ? /* @__PURE__ */ m(G, { children: [
690
- O,
690
+ X,
691
691
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
692
692
  /* @__PURE__ */ o(
693
693
  "button",
@@ -706,8 +706,8 @@ function Oe({
706
706
  padding: `${t}px ${t * 1.5}px`,
707
707
  borderRadius: `${v}px`,
708
708
  position: "absolute",
709
- top: "24px",
710
- // ✅ Поднял кнопку назад выше
709
+ top: d ? "24px" : "64px",
710
+ // ✅ На десктопе под логотипом (24px + 28px логотип + 12px отступ)
711
711
  left: "24px",
712
712
  // ✅ Та же позиция что и логотип
713
713
  zIndex: 10
@@ -747,7 +747,7 @@ function Oe({
747
747
  e
748
748
  )) })
749
749
  ] }) : x === "rounds" ? /* @__PURE__ */ m(G, { children: [
750
- O,
750
+ X,
751
751
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
752
752
  /* @__PURE__ */ o(
753
753
  "button",
@@ -766,8 +766,8 @@ function Oe({
766
766
  padding: `${t}px ${t * 1.5}px`,
767
767
  borderRadius: `${v}px`,
768
768
  position: "absolute",
769
- top: "24px",
770
- // ✅ Поднял кнопку назад выше
769
+ top: d ? "24px" : "64px",
770
+ // ✅ На десктопе под логотипом (24px + 28px логотип + 12px отступ)
771
771
  left: "24px",
772
772
  // ✅ Та же позиция что и логотип
773
773
  zIndex: 10
@@ -808,7 +808,7 @@ function Oe({
808
808
  e
809
809
  )) })
810
810
  ] }) : x === "game" ? /* @__PURE__ */ m(G, { children: [
811
- O,
811
+ X,
812
812
  !a && /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
813
813
  " ",
814
814
  /* @__PURE__ */ m("div", { style: {
@@ -817,7 +817,7 @@ function Oe({
817
817
  // ✅ Унифицированный padding для всех landscape iPhone
818
818
  marginBottom: `${a ? t * 0.2 : t * 0.5}px`,
819
819
  // ✅ Унифицированный margin для всех landscape iPhone
820
- maxWidth: `${(d || r) * 0.9}px`,
820
+ maxWidth: `${(g || r) * 0.9}px`,
821
821
  textAlign: "center",
822
822
  // ✅ Центрируем текст по плашке
823
823
  display: "flex",
@@ -859,7 +859,7 @@ function Oe({
859
859
  {
860
860
  mistakes: U,
861
861
  maxMistakes: oe,
862
- size: j ? Math.max(80, Math.min(110, (d || r) * 0.16)) : g ? a ? Math.max(90, Math.min(130, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, (d || r) * 0.2))
862
+ size: j ? Math.max(80, Math.min(110, (g || r) * 0.16)) : d ? a ? Math.max(90, Math.min(130, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, (g || r) * 0.2))
863
863
  }
864
864
  ) }),
865
865
  /* @__PURE__ */ o("div", { style: {
@@ -878,7 +878,7 @@ function Oe({
878
878
  // ✅ Унифицированный margin для всех landscape iPhone
879
879
  marginBottom: `${a ? t * 0.3 : t}px`,
880
880
  // ✅ Унифицированный margin для всех landscape iPhone
881
- maxWidth: `${(d || r) * 0.95}px`
881
+ maxWidth: `${(g || r) * 0.95}px`
882
882
  }, children: /* @__PURE__ */ o("div", { style: {
883
883
  display: "flex",
884
884
  flexWrap: "wrap",
@@ -888,7 +888,7 @@ function Oe({
888
888
  alignItems: "center",
889
889
  fontFamily: '"Onest", system-ui, sans-serif'
890
890
  }, children: Se.map((e) => {
891
- const n = a ? Math.max((d || r) * 0.05, t * 1.5) : Math.max((d || r) * 0.06, t * 2), i = a ? Math.max((d || r) * 0.1, t * 2.5) : Math.max((d || r) * 0.12, t * 3);
891
+ const n = a ? Math.max((g || r) * 0.05, t * 1.5) : Math.max((g || r) * 0.06, t * 2), i = a ? Math.max((g || r) * 0.1, t * 2.5) : Math.max((g || r) * 0.12, t * 3);
892
892
  return /* @__PURE__ */ o(
893
893
  "button",
894
894
  {
@@ -992,7 +992,7 @@ function Oe({
992
992
  marginBottom: `${t}px`
993
993
  }, children: "Type a letter on your keyboard" })
994
994
  ] }) : x === "result" ? /* @__PURE__ */ m(G, { children: [
995
- O,
995
+ X,
996
996
  /* @__PURE__ */ o("h1", { style: {
997
997
  ...l.gmHeadline1,
998
998
  fontSize: `${s.headline1}px`,
@@ -1025,7 +1025,7 @@ function Oe({
1025
1025
  }
1026
1026
  W([]);
1027
1027
  const e = Z(b, []);
1028
- e && (I(e), W([e]), R([]), T(0), H(1), Y(0), B(null), y("game"));
1028
+ e && (I(e), W([e]), R([]), T(0), H(1), D(0), B(null), y("game"));
1029
1029
  },
1030
1030
  onMouseEnter: (e) => {
1031
1031
  e.currentTarget.style.backgroundColor = "#d43a32";
@@ -1087,19 +1087,19 @@ function Oe({
1087
1087
  "div",
1088
1088
  {
1089
1089
  style: {
1090
- width: g ? "100%" : d || r || 1e3,
1091
- height: g ? "100%" : d || r || 1e3,
1090
+ width: d ? "100%" : g || r || 1e3,
1091
+ height: d ? "100%" : g || r || 1e3,
1092
1092
  display: "flex",
1093
1093
  justifyContent: "center",
1094
1094
  alignItems: "center",
1095
1095
  overflow: "hidden",
1096
- borderRadius: g ? 0 : "20px",
1096
+ borderRadius: d ? 0 : "20px",
1097
1097
  background: "#ffffff",
1098
- boxShadow: g ? "none" : "0 0 40px rgba(0,0,0,0.1)",
1099
- margin: g ? "0 auto" : "unset",
1098
+ boxShadow: d ? "none" : "0 0 40px rgba(0,0,0,0.1)",
1099
+ margin: d ? "0 auto" : "unset",
1100
1100
  position: "relative",
1101
1101
  // needed so absolute logo is inside the square
1102
- transform: g && !a ? `scale(${ne})` : void 0
1102
+ transform: d && !a ? `scale(${ne})` : void 0
1103
1103
  // ✅ scale только для портретного режима мобильных
1104
1104
  },
1105
1105
  children: /* @__PURE__ */ o(