speakid-hangman 1.0.9 → 1.0.12

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,6 +1,6 @@
1
1
  import { jsx as o, jsxs as m, Fragment as G } from "react/jsx-runtime";
2
- import { useState as h, useMemo as Q, useCallback as ue, useEffect as me } from "react";
3
- const a = {
2
+ import { useState as u, useMemo as Q, useCallback as he, useEffect as ue } from "react";
3
+ const l = {
4
4
  gmCenterScreen: {
5
5
  position: "relative",
6
6
  zIndex: 1,
@@ -204,17 +204,17 @@ const a = {
204
204
  display: "block"
205
205
  }
206
206
  };
207
- function He({
207
+ function je({
208
208
  mistakes: r,
209
209
  maxMistakes: J,
210
- size: _ = 200
210
+ size: P = 200
211
211
  }) {
212
- const c = _, g = _ * 1.25, w = Math.max(3, _ / 100), C = 10 * (c / 200), x = 240 * (g / 250), y = 150 * (c / 200), b = 80 * (c / 200), ee = 20 * (g / 250), N = 240 * (g / 250), M = 80 * (c / 200), P = 20 * (g / 250), L = 150 * (c / 200), H = 150 * (c / 200), v = 20 * (g / 250), I = 50 * (g / 250), F = 150 * (c / 200), R = 70 * (g / 250), V = 20 * (c / 200), T = 150 * (c / 200), te = 90 * (g / 250), A = 150 * (g / 250), f = 150 * (c / 200), B = 110 * (g / 250), p = 130 * (c / 200), O = 130 * (g / 250), ne = 150 * (c / 200), E = 110 * (g / 250), he = 170 * (c / 200), z = 130 * (g / 250), oe = 150 * (c / 200), Z = 150 * (g / 250), d = 130 * (c / 200), re = 190 * (g / 250), j = 150 * (c / 200), ie = 150 * (g / 250), u = 170 * (c / 200), ae = 190 * (g / 250), k = r === 0 || r <= J * 0.5 ? "#1f2937" : r <= J * 0.75 ? "#f59e0b" : "#ec4c44";
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";
213
213
  return /* @__PURE__ */ m(
214
214
  "svg",
215
215
  {
216
- width: c,
217
- height: g,
216
+ width: p,
217
+ height: h,
218
218
  viewBox: "0 0 200 250",
219
219
  style: {
220
220
  display: "block",
@@ -244,7 +244,7 @@ function He({
244
244
  x1: b,
245
245
  y1: ee,
246
246
  x2: b,
247
- y2: N,
247
+ y2: _,
248
248
  stroke: k,
249
249
  strokeWidth: w
250
250
  }
@@ -253,9 +253,9 @@ function He({
253
253
  "line",
254
254
  {
255
255
  x1: M,
256
- y1: P,
256
+ y1: N,
257
257
  x2: L,
258
- y2: P,
258
+ y2: N,
259
259
  stroke: k,
260
260
  strokeWidth: w
261
261
  }
@@ -264,7 +264,7 @@ function He({
264
264
  "line",
265
265
  {
266
266
  x1: H,
267
- y1: v,
267
+ y1: S,
268
268
  x2: H,
269
269
  y2: I,
270
270
  stroke: k,
@@ -276,7 +276,7 @@ function He({
276
276
  {
277
277
  cx: F,
278
278
  cy: R,
279
- r: V,
279
+ r: U,
280
280
  stroke: k,
281
281
  fill: "none",
282
282
  strokeWidth: w
@@ -288,7 +288,7 @@ function He({
288
288
  x1: T,
289
289
  y1: te,
290
290
  x2: T,
291
- y2: A,
291
+ y2: Y,
292
292
  stroke: k,
293
293
  strokeWidth: w
294
294
  }
@@ -298,8 +298,8 @@ function He({
298
298
  {
299
299
  x1: f,
300
300
  y1: B,
301
- x2: p,
302
- y2: O,
301
+ x2: d,
302
+ y2: D,
303
303
  stroke: k,
304
304
  strokeWidth: w
305
305
  }
@@ -309,8 +309,8 @@ function He({
309
309
  {
310
310
  x1: ne,
311
311
  y1: E,
312
- x2: he,
313
- y2: z,
312
+ x2: me,
313
+ y2: W,
314
314
  stroke: k,
315
315
  strokeWidth: w
316
316
  }
@@ -319,8 +319,8 @@ function He({
319
319
  "line",
320
320
  {
321
321
  x1: oe,
322
- y1: Z,
323
- x2: d,
322
+ y1: V,
323
+ x2: g,
324
324
  y2: re,
325
325
  stroke: k,
326
326
  strokeWidth: w
@@ -331,7 +331,7 @@ function He({
331
331
  {
332
332
  x1: j,
333
333
  y1: ie,
334
- x2: u,
334
+ x2: a,
335
335
  y2: ae,
336
336
  stroke: k,
337
337
  strokeWidth: w
@@ -341,12 +341,12 @@ function He({
341
341
  }
342
342
  );
343
343
  }
344
- function Ye({
344
+ function Oe({
345
345
  gameCubeSize: r = 400,
346
346
  screenHeight: J = 800,
347
- screenWidth: _ = 800,
348
- logoUrl: c,
349
- showLogo: g = !0,
347
+ screenWidth: P = 800,
348
+ logoUrl: p,
349
+ showLogo: h = !0,
350
350
  baseURL: w
351
351
  } = {}) {
352
352
  const C = {
@@ -367,89 +367,89 @@ function Ye({
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] = h("lobby"), [b, ee] = h(""), [N] = h("Normal"), [M, P] = h(0), [L, H] = h(1), [v, I] = h(""), [F, R] = h([]), [V, T] = h(0), [te, A] = h(0), [f, B] = h(null), [p, O] = h(null), [ne, E] = h(1), [he, z] = h([]), oe = N === "Easy" ? 8 : N === "Normal" ? 6 : 4, Z = w || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman` : "/cloud/speakid/games/hangman"), [d, re] = h(!1), [j, ie] = h(!1), [u, ae] = h(!1), [$, k] = h(!1), s = Q(() => {
371
- const e = (p || r || 1e3) / 400, t = u ? 0.8 : 1, i = $ ? 0.9 : 1, l = t * i;
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;
372
372
  return {
373
- headline1: d ? Math.max(24, Math.min(30, 30 * e * l)) : Math.max(28, Math.min(32, 32 * e * i)),
373
+ headline1: g ? Math.max(24, Math.min(30, 30 * e * c)) : Math.max(28, Math.min(32, 32 * e * i)),
374
374
  // Desktop: 32px
375
- headline2: Math.max(20, Math.min(28, 24 * e * l)),
375
+ headline2: Math.max(20, Math.min(28, 24 * e * c)),
376
376
  // Desktop: 24px
377
- headline3: d ? Math.max(14, Math.min(18, 16 * e * l)) : Math.max(20, Math.min(26, 24 * e * l)),
377
+ headline3: g ? Math.max(14, Math.min(18, 16 * e * c)) : Math.max(20, Math.min(26, 24 * e * c)),
378
378
  // Desktop: 24px
379
- bodyL: Math.max(14, Math.min(20, 18 * e * l)),
379
+ bodyL: Math.max(14, Math.min(20, 18 * e * c)),
380
380
  // Desktop: 18px
381
- bodyM: d ? Math.max(12, Math.min(16, 14 * e * l)) : Math.max(14, Math.min(18, 16 * e * l)),
381
+ bodyM: g ? Math.max(12, Math.min(16, 14 * e * c)) : Math.max(14, Math.min(18, 16 * e * c)),
382
382
  // Desktop: 16px
383
- bodyS: d ? Math.max(10, Math.min(14, 12 * e * l)) : Math.max(12, Math.min(16, 14 * e * l)),
383
+ bodyS: g ? Math.max(10, Math.min(14, 12 * e * c)) : Math.max(12, Math.min(16, 14 * e * c)),
384
384
  // Desktop: 14px
385
- wordDisplay: Math.max(18, Math.min(32, 26 * e * l)),
385
+ wordDisplay: Math.max(18, Math.min(32, 26 * e * c)),
386
386
  // Адаптивный размер
387
- button: Math.max(12, Math.min(18, 16 * e * l))
387
+ button: Math.max(12, Math.min(18, 16 * e * c))
388
388
  // Desktop: 16px
389
389
  };
390
- }, [d, p, r, u, $]), fe = Q(() => {
391
- const e = (p || r || 1e3) / 400, t = u ? 0.65 : 1, i = $ ? 0.85 : 1;
392
- return j ? Math.max(8, Math.min(12, 10 * e)) : Math.max(12, Math.min(24, 16 * e)) * t * i;
393
- }, [j, p, r, u, $]), n = Q(() => {
394
- const e = (p || r || 1e3) / 400, t = u ? 0.65 : 1, i = $ ? 0.85 : 1;
395
- return j ? Math.max(3, Math.min(6, 5 * e)) : Math.max(4, Math.min(12, 8 * e)) * t * i;
396
- }, [j, p, r, u, $]), S = Q(() => {
397
- const e = (p || r || 1e3) / 400, t = $ ? 0.9 : 1;
398
- return Math.max(6, Math.min(10, 8 * e * t));
399
- }, [p, r, $]), we = (e, t) => e.split("").every((i) => t.includes(i)), ke = (e, t) => e.split("").map((i) => t.includes(i) ? i : "_").join(" "), Me = (e) => "abcdefghijklmnopqrstuvwxyz".split("").filter((i) => !e.includes(i)), U = (e, t = []) => {
400
- var q;
390
+ }, [g, d, r, a, $]), fe = Q(() => {
391
+ const e = (d || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
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;
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;
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;
401
401
  if (!e || !C[e]) {
402
- const W = Object.keys(C)[0];
403
- return ((q = C[W]) == null ? void 0 : q[0]) || "";
402
+ const z = Object.keys(C)[0];
403
+ return ((A = C[z]) == null ? void 0 : A[0]) || "";
404
404
  }
405
405
  const i = C[e];
406
406
  if (!i || i.length === 0)
407
407
  return "";
408
- const l = i.filter((W) => !t.includes(W)), Y = l.length > 0 ? l : i;
409
- if (Y.length === 0)
408
+ const c = i.filter((z) => !n.includes(z)), X = c.length > 0 ? c : i;
409
+ if (X.length === 0)
410
410
  return "";
411
- let D;
411
+ let q;
412
412
  if (typeof crypto < "u" && crypto.getRandomValues) {
413
- const W = new Uint32Array(1);
414
- crypto.getRandomValues(W);
415
- const ge = W[0] / 4294967295;
416
- D = Math.floor(ge * Y.length);
413
+ const z = new Uint32Array(1);
414
+ crypto.getRandomValues(z);
415
+ const ge = z[0] / 4294967295;
416
+ q = Math.floor(ge * X.length);
417
417
  } else
418
- D = Math.floor(Math.random() * Y.length);
419
- return Y[D];
418
+ q = Math.floor(Math.random() * X.length);
419
+ return X[q];
420
420
  }, $e = () => {
421
421
  if (!b) return;
422
- z([]);
423
- const e = U(b, []);
422
+ W([]);
423
+ const e = Z(b, []);
424
424
  if (!e) {
425
425
  y("category");
426
426
  return;
427
427
  }
428
- I(e), z([e]), R([]), T(0), H(1), A(0), B(null), y("game");
429
- }, se = ue((e) => {
428
+ I(e), W([e]), R([]), T(0), H(1), Y(0), B(null), y("game");
429
+ }, se = he((e) => {
430
430
  if (x !== "game" || f !== null) return;
431
- const t = e.toLowerCase();
432
- /^[a-z]$/.test(t) && (R((i) => i.includes(t) ? i : [...i, t]), I((i) => (i && !i.includes(t) && T((l) => l + 1), i)));
433
- }, [x, f]), le = ue((e) => {
431
+ const n = e.toLowerCase();
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) => {
434
434
  se(e.key);
435
435
  }, [se]);
436
- me(() => {
436
+ ue(() => {
437
437
  if (x === "game")
438
438
  return window.addEventListener("keydown", le), () => window.removeEventListener("keydown", le);
439
439
  }, [x, le]);
440
- const Se = v ? ke(v, F) : "", xe = v ? we(v, F) : !1, ye = V >= 10, ve = Me(F), ce = ue(() => {
440
+ const ve = S ? ke(S, F) : "", xe = S ? we(S, F) : !1, ye = U >= 10, Se = Me(F), ce = he(() => {
441
441
  if (!b || L >= M) {
442
442
  y("result");
443
443
  return;
444
444
  }
445
- H((e) => e + 1), z((e) => {
446
- const t = U(b, e);
447
- return t ? (I(t), [...e, t]) : e;
445
+ H((e) => e + 1), W((e) => {
446
+ const n = Z(b, e);
447
+ return n ? (I(n), [...e, n]) : e;
448
448
  }), R([]), T(0), B(null);
449
449
  }, [b, L, M]);
450
- me(() => {
450
+ ue(() => {
451
451
  if (xe && f === null) {
452
- B("win"), A((t) => t + 1);
452
+ B("win"), Y((n) => n + 1);
453
453
  const e = setTimeout(() => {
454
454
  ce();
455
455
  }, 2e3);
@@ -468,24 +468,24 @@ function Ye({
468
468
  y("result");
469
469
  return;
470
470
  }
471
- H((e) => e + 1), z((e) => {
472
- const t = U(b, e);
473
- return t ? (I(t), [...e, t]) : e;
471
+ H((e) => e + 1), W((e) => {
472
+ const n = Z(b, e);
473
+ return n ? (I(n), [...e, n]) : e;
474
474
  }), R([]), T(0), B(null);
475
475
  };
476
- me(() => {
476
+ ue(() => {
477
477
  const e = () => {
478
- const t = window.innerWidth, i = window.innerHeight, l = t < 768 || t === 926 && i === 428 || t === 932 && i === 430, Y = i < 700, D = t / i > 1.8, q = t === 1024 && i === 600, W = l && t > i, ge = t >= 1200 && t <= 1400;
479
- if (re(l), ie(q), ae(W), k(ge), l)
480
- O(null), E(1);
481
- else if (Y)
482
- O(null), E(1);
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);
481
+ else if (z)
482
+ D(null), E(1);
483
483
  else {
484
- const ze = t - 80, We = i - 80, be = Math.min(ze, We);
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
- const Ce = Math.max(400, Math.min(1200, pe));
488
- O(Ce), E(D ? 0.85 : 1);
487
+ const Re = Math.max(400, Math.min(1200, pe));
488
+ D(Re), E(ge ? 0.85 : 1);
489
489
  }
490
490
  };
491
491
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
@@ -534,8 +534,8 @@ function Ye({
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 = !d && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !d && g && (x !== "game" || Fe), Te = {
538
- ...a.gmCenterScreen,
537
+ `, Fe = !g && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !g && h && (x !== "game" || Fe), Te = {
538
+ ...l.gmCenterScreen,
539
539
  width: "100%",
540
540
  height: "100%",
541
541
  padding: `${fe}px`,
@@ -546,41 +546,41 @@ function Ye({
546
546
  position: "relative",
547
547
  boxSizing: "border-box",
548
548
  background: "transparent"
549
- }, X = Q(
549
+ }, O = Q(
550
550
  () => {
551
551
  if (!de)
552
552
  return null;
553
553
  const e = window.innerWidth;
554
- if (d && e > window.innerHeight)
554
+ if (g && e > window.innerHeight)
555
555
  return null;
556
- const t = c || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman/logo` : "/cloud/speakid/games/hangman/logo");
557
- return /* @__PURE__ */ o("div", { style: a.gmLogoFixed, children: /* @__PURE__ */ m("picture", { children: [
556
+ const n = p || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman/logo` : "/cloud/speakid/games/hangman/logo");
557
+ return /* @__PURE__ */ o("div", { style: l.gmLogoFixed, children: /* @__PURE__ */ m("picture", { children: [
558
558
  /* @__PURE__ */ o(
559
559
  "source",
560
560
  {
561
- srcSet: `${t}.svg`,
561
+ srcSet: `${n}.svg`,
562
562
  type: "image/svg+xml"
563
563
  }
564
564
  ),
565
565
  /* @__PURE__ */ o(
566
566
  "img",
567
567
  {
568
- src: `${t}.png`,
568
+ src: `${n}.png`,
569
569
  alt: "SPEAKID Logo",
570
- style: a.gmLogoImg,
570
+ style: l.gmLogoImg,
571
571
  loading: "lazy"
572
572
  }
573
573
  )
574
574
  ] }) });
575
575
  },
576
- [d, de, c, x]
576
+ [g, de, p, x]
577
577
  ), Be = () => x === "lobby" ? /* @__PURE__ */ m(G, { children: [
578
- X,
578
+ O,
579
579
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
580
580
  /* @__PURE__ */ o("h1", { style: {
581
- ...a.gmHeadline1,
581
+ ...l.gmHeadline1,
582
582
  fontSize: `${s.headline1}px`,
583
- marginBottom: `${n * 3}px`,
583
+ marginBottom: `${t * 3}px`,
584
584
  position: "relative",
585
585
  zIndex: 1
586
586
  }, children: "HANGMAN" }),
@@ -593,8 +593,8 @@ function Ye({
593
593
  fontWeight: 500,
594
594
  // Medium для более заметности
595
595
  fontSize: `${s.button}px`,
596
- padding: `${n * 1.2}px ${n * 3}px`,
597
- borderRadius: `${S * 1.5}px`,
596
+ padding: `${t * 1.2}px ${t * 3}px`,
597
+ borderRadius: `${v * 1.5}px`,
598
598
  position: "relative",
599
599
  zIndex: 1,
600
600
  display: "flex",
@@ -626,7 +626,7 @@ function Ye({
626
626
  viewBox: "0 0 24 24",
627
627
  fill: "none",
628
628
  xmlns: "http://www.w3.org/2000/svg",
629
- style: { display: "block", marginRight: `${n}px` },
629
+ style: { display: "block", marginRight: `${t}px` },
630
630
  children: /* @__PURE__ */ o(
631
631
  "path",
632
632
  {
@@ -654,14 +654,14 @@ function Ye({
654
654
  /* @__PURE__ */ o(
655
655
  "img",
656
656
  {
657
- src: `${Z}/sun.png`,
657
+ src: `${V}/sun.png`,
658
658
  alt: "Sun",
659
659
  style: {
660
660
  position: "absolute",
661
- left: d ? "-10%" : "5%",
661
+ left: g ? "-10%" : "5%",
662
662
  top: "20%",
663
663
  width: "auto",
664
- height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((p || r || 1e3) * 0.33, 300)}px`,
664
+ height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
665
665
  maxHeight: "33vh",
666
666
  objectFit: "contain",
667
667
  opacity: 0.6
@@ -671,14 +671,14 @@ function Ye({
671
671
  /* @__PURE__ */ o(
672
672
  "img",
673
673
  {
674
- src: `${Z}/character.png`,
674
+ src: `${V}/character.png`,
675
675
  alt: "Hangman character",
676
676
  style: {
677
677
  position: "absolute",
678
- right: d ? "5%" : "10%",
678
+ right: g ? "5%" : "10%",
679
679
  bottom: "10%",
680
680
  width: "auto",
681
- height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((p || r || 1e3) * 0.33, 300)}px`,
681
+ height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
682
682
  maxHeight: "33vh",
683
683
  objectFit: "contain",
684
684
  opacity: 0.6
@@ -687,7 +687,7 @@ function Ye({
687
687
  )
688
688
  ] })
689
689
  ] }) : x === "category" ? /* @__PURE__ */ m(G, { children: [
690
- X,
690
+ O,
691
691
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
692
692
  /* @__PURE__ */ o(
693
693
  "button",
@@ -700,14 +700,14 @@ function Ye({
700
700
  e.currentTarget.style.backgroundColor = "#f9f9f9";
701
701
  },
702
702
  style: {
703
- ...a.gmButton,
704
- ...a.gmButtonSecondary,
703
+ ...l.gmButton,
704
+ ...l.gmButtonSecondary,
705
705
  fontSize: `${s.button}px`,
706
- padding: `${n}px ${n * 1.5}px`,
707
- borderRadius: `${S}px`,
706
+ padding: `${t}px ${t * 1.5}px`,
707
+ borderRadius: `${v}px`,
708
708
  position: "absolute",
709
- top: "60px",
710
- // ✅ Под логотипом (24px top логотипа + 28px высота + 8px отступ)
709
+ top: "24px",
710
+ // ✅ Поднял кнопку назад выше
711
711
  left: "24px",
712
712
  // ✅ Та же позиция что и логотип
713
713
  zIndex: 10
@@ -715,26 +715,26 @@ function Ye({
715
715
  children: "←"
716
716
  }
717
717
  ),
718
- /* @__PURE__ */ o("div", { style: { ...a.gmButtonGroup, gap: `${n}px`, marginBottom: `${n * 3}px`, marginTop: `${n * 4}px`, position: "relative", zIndex: 1 }, children: Object.keys(C).map((e) => /* @__PURE__ */ o(
718
+ /* @__PURE__ */ o("div", { style: { ...l.gmButtonGroup, gap: `${t}px`, marginBottom: `${t * 3}px`, marginTop: `${t * 4}px`, position: "relative", zIndex: 1 }, children: Object.keys(C).map((e) => /* @__PURE__ */ o(
719
719
  "button",
720
720
  {
721
721
  onClick: () => {
722
722
  ee(e), y("rounds");
723
723
  },
724
- onMouseEnter: (t) => {
725
- t.currentTarget.style.backgroundColor = "#f0f0f0", t.currentTarget.style.borderColor = "#1f2937", t.currentTarget.style.transform = "scale(1.05)";
724
+ onMouseEnter: (n) => {
725
+ n.currentTarget.style.backgroundColor = "#f0f0f0", n.currentTarget.style.borderColor = "#1f2937", n.currentTarget.style.transform = "scale(1.05)";
726
726
  },
727
- onMouseLeave: (t) => {
728
- t.currentTarget.style.backgroundColor = "transparent", t.currentTarget.style.borderColor = "#e5e7eb", t.currentTarget.style.transform = "scale(1)";
727
+ onMouseLeave: (n) => {
728
+ n.currentTarget.style.backgroundColor = "transparent", n.currentTarget.style.borderColor = "#e5e7eb", n.currentTarget.style.transform = "scale(1)";
729
729
  },
730
730
  style: {
731
731
  fontFamily: '"Onest", system-ui, sans-serif',
732
732
  fontWeight: 500,
733
733
  fontSize: `${s.button}px`,
734
- padding: `${n * 1.2}px ${n * 2}px`,
735
- borderRadius: `${S * 2}px`,
734
+ padding: `${t * 1.2}px ${t * 2}px`,
735
+ borderRadius: `${v * 2}px`,
736
736
  // Более округлые для облачков
737
- margin: `${n / 2}px`,
737
+ margin: `${t / 2}px`,
738
738
  background: "transparent",
739
739
  border: "2px solid #e5e7eb",
740
740
  color: "#1f2937",
@@ -747,7 +747,7 @@ function Ye({
747
747
  e
748
748
  )) })
749
749
  ] }) : x === "rounds" ? /* @__PURE__ */ m(G, { children: [
750
- X,
750
+ O,
751
751
  /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
752
752
  /* @__PURE__ */ o(
753
753
  "button",
@@ -760,14 +760,14 @@ function Ye({
760
760
  e.currentTarget.style.backgroundColor = "#f9f9f9";
761
761
  },
762
762
  style: {
763
- ...a.gmButton,
764
- ...a.gmButtonSecondary,
763
+ ...l.gmButton,
764
+ ...l.gmButtonSecondary,
765
765
  fontSize: `${s.button}px`,
766
- padding: `${n}px ${n * 1.5}px`,
767
- borderRadius: `${S}px`,
766
+ padding: `${t}px ${t * 1.5}px`,
767
+ borderRadius: `${v}px`,
768
768
  position: "absolute",
769
- top: "60px",
770
- // ✅ Под логотипом (24px top логотипа + 28px высота + 8px отступ)
769
+ top: "24px",
770
+ // ✅ Поднял кнопку назад выше
771
771
  left: "24px",
772
772
  // ✅ Та же позиция что и логотип
773
773
  zIndex: 10
@@ -775,27 +775,27 @@ function Ye({
775
775
  children: "←"
776
776
  }
777
777
  ),
778
- /* @__PURE__ */ o("h1", { style: { ...a.gmHeadline1, fontSize: `${s.headline1}px`, marginBottom: `${n * 2}px`, position: "relative", zIndex: 1 }, children: "Choose rounds" }),
779
- /* @__PURE__ */ o("div", { style: { ...a.gmButtonGroup, gap: `${n}px`, marginBottom: `${n * 3}px`, position: "relative", zIndex: 1 }, children: [1, 3, 5].map((e) => /* @__PURE__ */ o(
778
+ /* @__PURE__ */ o("h1", { style: { ...l.gmHeadline1, fontSize: `${s.headline1}px`, marginBottom: `${t * 2}px`, position: "relative", zIndex: 1 }, children: "Choose rounds" }),
779
+ /* @__PURE__ */ o("div", { style: { ...l.gmButtonGroup, gap: `${t}px`, marginBottom: `${t * 3}px`, position: "relative", zIndex: 1 }, children: [1, 3, 5].map((e) => /* @__PURE__ */ o(
780
780
  "button",
781
781
  {
782
782
  onClick: () => {
783
- P(e), $e();
783
+ N(e), $e();
784
784
  },
785
- onMouseEnter: (t) => {
786
- t.currentTarget.style.backgroundColor = "#f0f0f0", t.currentTarget.style.borderColor = "#1f2937", t.currentTarget.style.transform = "scale(1.05)";
785
+ onMouseEnter: (n) => {
786
+ n.currentTarget.style.backgroundColor = "#f0f0f0", n.currentTarget.style.borderColor = "#1f2937", n.currentTarget.style.transform = "scale(1.05)";
787
787
  },
788
- onMouseLeave: (t) => {
789
- t.currentTarget.style.backgroundColor = "transparent", t.currentTarget.style.borderColor = "#e5e7eb", t.currentTarget.style.transform = "scale(1)";
788
+ onMouseLeave: (n) => {
789
+ n.currentTarget.style.backgroundColor = "transparent", n.currentTarget.style.borderColor = "#e5e7eb", n.currentTarget.style.transform = "scale(1)";
790
790
  },
791
791
  style: {
792
792
  fontFamily: '"Onest", system-ui, sans-serif',
793
793
  fontWeight: 500,
794
794
  fontSize: `${s.button}px`,
795
- padding: `${n * 1.2}px ${n * 2}px`,
796
- borderRadius: `${S * 2}px`,
795
+ padding: `${t * 1.2}px ${t * 2}px`,
796
+ borderRadius: `${v * 2}px`,
797
797
  // Более округлые для облачков
798
- margin: `${n / 2}px`,
798
+ margin: `${t / 2}px`,
799
799
  background: "transparent",
800
800
  border: "2px solid #e5e7eb",
801
801
  color: "#1f2937",
@@ -808,139 +808,146 @@ function Ye({
808
808
  e
809
809
  )) })
810
810
  ] }) : x === "game" ? /* @__PURE__ */ m(G, { children: [
811
- X,
812
- !u && /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
811
+ O,
812
+ !a && /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
813
813
  " ",
814
814
  /* @__PURE__ */ m("div", { style: {
815
- ...a.gmInfoBox,
816
- padding: `${u ? n * 0.6 : n * 0.8}px`,
817
- // ✅ Уменьшаем padding в landscape
818
- marginBottom: `${u ? n * 0.3 : n * 0.5}px`,
819
- // ✅ Уменьшаем margin в landscape
820
- maxWidth: `${(p || r) * 0.9}px`
815
+ ...l.gmInfoBox,
816
+ padding: `${a ? t * 0.5 : t * 0.8}px`,
817
+ // ✅ Унифицированный padding для всех landscape iPhone
818
+ marginBottom: `${a ? t * 0.2 : t * 0.5}px`,
819
+ // ✅ Унифицированный margin для всех landscape iPhone
820
+ maxWidth: `${(d || r) * 0.9}px`,
821
+ textAlign: "center",
822
+ // ✅ Центрируем текст по плашке
823
+ display: "flex",
824
+ flexDirection: "column",
825
+ alignItems: "center",
826
+ justifyContent: "center"
821
827
  }, children: [
822
- /* @__PURE__ */ m("h3", { style: { ...a.gmHeadline3, fontSize: `${s.headline3}px`, marginBottom: `${n * 0.5}px` }, children: [
828
+ /* @__PURE__ */ m("h3", { style: { ...l.gmHeadline3, fontSize: `${s.headline3}px`, marginBottom: `${t * 0.2}px`, textAlign: "center" }, children: [
823
829
  "Category: ",
824
830
  b
825
831
  ] }),
826
- /* @__PURE__ */ m("p", { style: { ...a.gmBodyM, fontSize: `${s.bodyM}px`, marginBottom: "0px" }, children: [
832
+ /* @__PURE__ */ m("p", { style: { ...l.gmBodyM, fontSize: `${s.bodyM}px`, marginBottom: "0px", textAlign: "center" }, children: [
827
833
  "Round ",
828
834
  L,
829
835
  " of ",
830
836
  M
831
837
  ] })
832
838
  ] }),
833
- v && /* @__PURE__ */ m("p", { style: {
834
- ...a.gmBodyS,
839
+ S && /* @__PURE__ */ m("p", { style: {
840
+ ...l.gmBodyS,
835
841
  fontSize: `${s.bodyS}px`,
836
- marginTop: `${u ? n * 0.3 : n * 0.5}px`,
837
- // ✅ Уменьшаем margin в landscape
838
- marginBottom: `${u ? n * 0.5 : n}px`
839
- // ✅ Уменьшаем margin в landscape
842
+ marginTop: `${a ? t * 0.2 : t * 0.5}px`,
843
+ // ✅ Унифицированный margin для всех landscape iPhone
844
+ marginBottom: `${a ? t * 0.3 : t}px`
845
+ // ✅ Унифицированный margin для всех landscape iPhone
840
846
  }, children: [
841
847
  "I am thinking of a word that is ",
842
- /* @__PURE__ */ o("strong", { children: v.length }),
848
+ /* @__PURE__ */ o("strong", { children: S.length }),
843
849
  " letters long"
844
850
  ] }),
845
851
  /* @__PURE__ */ o("div", { style: {
846
- margin: `${u ? n * 0.5 : n}px 0`,
847
- // ✅ Уменьшаем margin в landscape
852
+ margin: `${a ? t * 0.3 : t}px 0`,
853
+ // ✅ Унифицированный margin для всех landscape iPhone
848
854
  display: "flex",
849
855
  justifyContent: "center",
850
856
  alignItems: "center"
851
857
  }, children: /* @__PURE__ */ o(
852
- He,
858
+ je,
853
859
  {
854
- mistakes: V,
860
+ mistakes: U,
855
861
  maxMistakes: oe,
856
- size: j ? Math.max(80, Math.min(110, (p || r) * 0.16)) : d ? u ? Math.max(70, Math.min(120, Math.min(window.innerWidth * 0.25, window.innerHeight * 0.15))) : Math.max(100, Math.min(150, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, (p || r) * 0.2))
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))
857
863
  }
858
864
  ) }),
859
865
  /* @__PURE__ */ o("div", { style: {
860
- ...a.gmWordDisplay,
861
- fontSize: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9))}px`,
862
- margin: `${u ? n * 0.5 : n}px 0`,
863
- // ✅ Уменьшаем margin в landscape
864
- letterSpacing: `${n * 0.8}px`,
865
- minHeight: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9)) * 1.2}px`
866
- }, children: Se || "Loading..." }),
867
- /* @__PURE__ */ m("div", { style: {
868
- ...a.gmInfoBox,
869
- padding: `${u ? n * 0.6 : n}px`,
870
- // ✅ Уменьшаем padding в landscape
871
- marginTop: `${u ? n * 0.5 : n}px`,
872
- // ✅ Уменьшаем margin в landscape
873
- marginBottom: `${u ? n * 0.5 : n}px`,
874
- // ✅ Уменьшаем margin в landscape
875
- maxWidth: `${(p || r) * 0.95}px`
876
- }, children: [
877
- /* @__PURE__ */ o("p", { style: {
878
- ...a.gmBodyS,
879
- fontSize: `${s.bodyS}px`,
880
- marginBottom: `${n}px`,
881
- fontWeight: 500
882
- // Medium
883
- }, children: "Available letters:" }),
884
- /* @__PURE__ */ o("div", { style: {
885
- display: "flex",
886
- flexWrap: "wrap",
887
- gap: `${n / 3}px`,
888
- justifyContent: "center",
889
- fontSize: `${Math.max(9, Math.min(12, s.bodyS * 0.75))}px`,
890
- fontFamily: '"Onest", system-ui, sans-serif'
891
- }, children: ve.map((e) => /* @__PURE__ */ o(
866
+ ...l.gmWordDisplay,
867
+ fontSize: `${a ? Math.max(14, Math.min(20, s.wordDisplay * 0.8)) : Math.max(16, Math.min(24, s.wordDisplay * 0.9))}px`,
868
+ margin: `${a ? t * 0.3 : t}px 0`,
869
+ // ✅ Унифицированный margin для всех landscape iPhone
870
+ letterSpacing: `${a ? t * 0.6 : t * 0.8}px`,
871
+ minHeight: `${(a ? Math.max(14, Math.min(20, s.wordDisplay * 0.8)) : Math.max(16, Math.min(24, s.wordDisplay * 0.9))) * 1.2}px`
872
+ }, children: ve || "Loading..." }),
873
+ /* @__PURE__ */ o("div", { style: {
874
+ ...l.gmInfoBox,
875
+ padding: `${a ? t * 0.5 : t}px`,
876
+ // ✅ Унифицированный padding для всех landscape iPhone
877
+ marginTop: `${a ? t * 0.3 : t}px`,
878
+ // ✅ Унифицированный margin для всех landscape iPhone
879
+ marginBottom: `${a ? t * 0.3 : t}px`,
880
+ // ✅ Унифицированный margin для всех landscape iPhone
881
+ maxWidth: `${(d || r) * 0.95}px`
882
+ }, children: /* @__PURE__ */ o("div", { style: {
883
+ display: "flex",
884
+ flexWrap: "wrap",
885
+ gap: `${a ? t / 4 : t / 3}px`,
886
+ // ✅ Унифицированный gap для всех landscape iPhone
887
+ justifyContent: "center",
888
+ alignItems: "center",
889
+ fontFamily: '"Onest", system-ui, sans-serif'
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);
892
+ return /* @__PURE__ */ o(
892
893
  "button",
893
894
  {
894
895
  onClick: () => se(e),
895
896
  disabled: f !== null,
896
- onMouseEnter: (t) => {
897
- f === null && (t.currentTarget.style.backgroundColor = "#e5e7eb", t.currentTarget.style.cursor = "pointer");
897
+ onMouseEnter: (c) => {
898
+ f === null && (c.currentTarget.style.backgroundColor = "#e5e7eb", c.currentTarget.style.cursor = "pointer");
898
899
  },
899
- onMouseLeave: (t) => {
900
- f === null && (t.currentTarget.style.backgroundColor = "#f9f9f9", t.currentTarget.style.cursor = "pointer");
900
+ onMouseLeave: (c) => {
901
+ f === null && (c.currentTarget.style.backgroundColor = "#f9f9f9", c.currentTarget.style.cursor = "pointer");
901
902
  },
902
903
  style: {
903
- padding: `${n / 4}px ${n / 3}px`,
904
- borderRadius: `${S * 0.5}px`,
904
+ flex: "1 1 auto",
905
+ padding: `${a ? t * 0.4 : t * 0.5}px ${a ? t * 0.3 : t * 0.4}px`,
906
+ // ✅ Унифицированный padding для всех landscape iPhone
907
+ borderRadius: `${v * 0.5}px`,
905
908
  background: "#f9f9f9",
906
909
  color: "#1f2937",
907
910
  border: "1px solid #e5e7eb",
908
- minWidth: `${Math.max(n * 1.5, (p || r) * 0.04)}px`,
911
+ minWidth: `${n}px`,
912
+ maxWidth: `${i}px`,
909
913
  textAlign: "center",
910
- display: "inline-block",
914
+ display: "flex",
915
+ alignItems: "center",
916
+ justifyContent: "center",
911
917
  cursor: f === null ? "pointer" : "default",
912
918
  fontFamily: '"Onest", system-ui, sans-serif',
913
- fontSize: `${Math.max(9, Math.min(12, s.bodyS * 0.75))}px`,
919
+ fontSize: `${a ? Math.max(12, Math.min(16, s.bodyS * 1)) : Math.max(14, Math.min(20, s.bodyS * 1.2))}px`,
920
+ fontWeight: 500,
914
921
  transition: "background-color 0.2s ease"
915
922
  },
916
- children: e
923
+ children: e.toUpperCase()
917
924
  },
918
925
  e
919
- )) })
920
- ] }),
926
+ );
927
+ }) }) }),
921
928
  F.length > 0 && /* @__PURE__ */ o("div", { style: {
922
- ...a.gmGuessedLetters,
929
+ ...l.gmGuessedLetters,
923
930
  fontSize: `${Math.max(10, Math.min(12, s.bodyS * 0.85))}px`,
924
- marginTop: `${n * 0.5}px`,
931
+ marginTop: `${t * 0.5}px`,
925
932
  marginBottom: "2px"
926
933
  }, children: /* @__PURE__ */ m("span", { style: { color: "#6b7280" }, children: [
927
934
  "Guessed letters: ",
928
935
  /* @__PURE__ */ o("strong", { children: F.join(", ") })
929
936
  ] }) }),
930
937
  f === "win" && /* @__PURE__ */ o("div", { style: {
931
- ...a.gmStatusWin,
938
+ ...l.gmStatusWin,
932
939
  fontSize: `${s.bodyL}px`,
933
940
  margin: "2px 0"
934
941
  }, children: "🎉 You won this round!" }),
935
942
  f === "lose" && /* @__PURE__ */ m("div", { style: {
936
- ...a.gmStatusLose,
943
+ ...l.gmStatusLose,
937
944
  fontSize: `${s.bodyL}px`,
938
945
  margin: "2px 0"
939
946
  }, children: [
940
947
  "The hangman is complete! The word was: ",
941
- /* @__PURE__ */ o("strong", { children: v })
948
+ /* @__PURE__ */ o("strong", { children: S })
942
949
  ] }),
943
- f !== null && L < M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${n}px` }, children: /* @__PURE__ */ o(
950
+ f !== null && L < M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${t}px` }, children: /* @__PURE__ */ o(
944
951
  "button",
945
952
  {
946
953
  onClick: Le,
@@ -951,15 +958,15 @@ function Ye({
951
958
  e.currentTarget.style.backgroundColor = "#ec4c44";
952
959
  },
953
960
  style: {
954
- ...a.gmButton,
961
+ ...l.gmButton,
955
962
  fontSize: `${Math.max(11, Math.min(14, s.button * 0.85))}px`,
956
- padding: `${n * 0.6}px ${n * 1.2}px`,
957
- borderRadius: `${S}px`
963
+ padding: `${t * 0.6}px ${t * 1.2}px`,
964
+ borderRadius: `${v}px`
958
965
  },
959
966
  children: "NEXT"
960
967
  }
961
968
  ) }),
962
- f !== null && L >= M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${n}px` }, children: /* @__PURE__ */ o(
969
+ f !== null && L >= M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${t}px` }, children: /* @__PURE__ */ o(
963
970
  "button",
964
971
  {
965
972
  onClick: () => y("result"),
@@ -970,31 +977,31 @@ function Ye({
970
977
  e.currentTarget.style.backgroundColor = "#ec4c44";
971
978
  },
972
979
  style: {
973
- ...a.gmButton,
980
+ ...l.gmButton,
974
981
  fontSize: `${s.button}px`,
975
- padding: `${n}px ${n * 1.5}px`,
976
- borderRadius: `${S}px`
982
+ padding: `${t}px ${t * 1.5}px`,
983
+ borderRadius: `${v}px`
977
984
  },
978
985
  children: "View results"
979
986
  }
980
987
  ) }),
981
988
  f === null && F.length === 0 && /* @__PURE__ */ o("p", { style: {
982
- ...a.gmBodyS,
989
+ ...l.gmBodyS,
983
990
  fontSize: `${s.bodyS}px`,
984
- marginTop: `${n}px`,
985
- marginBottom: `${n}px`
991
+ marginTop: `${t}px`,
992
+ marginBottom: `${t}px`
986
993
  }, children: "Type a letter on your keyboard" })
987
994
  ] }) : x === "result" ? /* @__PURE__ */ m(G, { children: [
988
- X,
995
+ O,
989
996
  /* @__PURE__ */ o("h1", { style: {
990
- ...a.gmHeadline1,
997
+ ...l.gmHeadline1,
991
998
  fontSize: `${s.headline1}px`,
992
- marginBottom: `${n * 2}px`
999
+ marginBottom: `${t * 2}px`
993
1000
  }, children: "🎊 Game Finished!" }),
994
1001
  /* @__PURE__ */ m("p", { style: {
995
- ...a.gmBodyL,
1002
+ ...l.gmBodyL,
996
1003
  fontSize: `${s.bodyL}px`,
997
- marginBottom: `${n * 2}px`
1004
+ marginBottom: `${t * 2}px`
998
1005
  }, children: [
999
1006
  "You guessed ",
1000
1007
  /* @__PURE__ */ o("strong", { children: te }),
@@ -1005,7 +1012,7 @@ function Ye({
1005
1012
  /* @__PURE__ */ m("div", { style: {
1006
1013
  display: "flex",
1007
1014
  flexDirection: "column",
1008
- gap: `${n}px`,
1015
+ gap: `${t}px`,
1009
1016
  alignItems: "center"
1010
1017
  }, children: [
1011
1018
  /* @__PURE__ */ o(
@@ -1016,9 +1023,9 @@ function Ye({
1016
1023
  y("lobby");
1017
1024
  return;
1018
1025
  }
1019
- z([]);
1020
- const e = U(b, []);
1021
- e && (I(e), z([e]), R([]), T(0), H(1), A(0), B(null), y("game"));
1026
+ W([]);
1027
+ const e = Z(b, []);
1028
+ e && (I(e), W([e]), R([]), T(0), H(1), Y(0), B(null), y("game"));
1022
1029
  },
1023
1030
  onMouseEnter: (e) => {
1024
1031
  e.currentTarget.style.backgroundColor = "#d43a32";
@@ -1027,10 +1034,10 @@ function Ye({
1027
1034
  e.currentTarget.style.backgroundColor = "#ec4c44";
1028
1035
  },
1029
1036
  style: {
1030
- ...a.gmButton,
1037
+ ...l.gmButton,
1031
1038
  fontSize: `${s.button}px`,
1032
- padding: `${n}px ${n * 1.5}px`,
1033
- borderRadius: `${S}px`,
1039
+ padding: `${t}px ${t * 1.5}px`,
1040
+ borderRadius: `${v}px`,
1034
1041
  minWidth: "200px"
1035
1042
  },
1036
1043
  children: "Play again"
@@ -1047,11 +1054,11 @@ function Ye({
1047
1054
  e.currentTarget.style.backgroundColor = "#f9f9f9";
1048
1055
  },
1049
1056
  style: {
1050
- ...a.gmButton,
1051
- ...a.gmButtonSecondary,
1057
+ ...l.gmButton,
1058
+ ...l.gmButtonSecondary,
1052
1059
  fontSize: `${s.button}px`,
1053
- padding: `${n}px ${n * 1.5}px`,
1054
- borderRadius: `${S}px`,
1060
+ padding: `${t}px ${t * 1.5}px`,
1061
+ borderRadius: `${v}px`,
1055
1062
  minWidth: "200px"
1056
1063
  },
1057
1064
  children: "Exit"
@@ -1080,19 +1087,20 @@ function Ye({
1080
1087
  "div",
1081
1088
  {
1082
1089
  style: {
1083
- width: d ? "100%" : p || r || 1e3,
1084
- height: d ? "100%" : p || r || 1e3,
1090
+ width: g ? "100%" : d || r || 1e3,
1091
+ height: g ? "100%" : d || r || 1e3,
1085
1092
  display: "flex",
1086
1093
  justifyContent: "center",
1087
1094
  alignItems: "center",
1088
1095
  overflow: "hidden",
1089
- borderRadius: d ? 0 : "20px",
1096
+ borderRadius: g ? 0 : "20px",
1090
1097
  background: "#ffffff",
1091
- boxShadow: d ? "none" : "0 0 40px rgba(0,0,0,0.1)",
1092
- margin: d ? "0 auto" : "unset",
1098
+ boxShadow: g ? "none" : "0 0 40px rgba(0,0,0,0.1)",
1099
+ margin: g ? "0 auto" : "unset",
1093
1100
  position: "relative",
1094
1101
  // needed so absolute logo is inside the square
1095
- transform: `scale(${ne})`
1102
+ transform: g && !a ? `scale(${ne})` : void 0
1103
+ // ✅ scale только для портретного режима мобильных
1096
1104
  },
1097
1105
  children: /* @__PURE__ */ o(
1098
1106
  "div",
@@ -1114,8 +1122,8 @@ function Ye({
1114
1122
  );
1115
1123
  }
1116
1124
  export {
1117
- Ye as Game,
1118
- Ye as HangmanLobbyGame,
1119
- Ye as default
1125
+ Oe as Game,
1126
+ Oe as HangmanLobbyGame,
1127
+ Oe as default
1120
1128
  };
1121
1129
  //# sourceMappingURL=speakid-hangman.es.js.map