/*
 * Набор игр Link — общий игровой вид (вынесено из games/tiles).
 * Яркий фон-градиент, объёмные глянцевые фишки, кнопки с кромкой, каркас меню и игры,
 * окно поверх поля и на весь экран, эффекты.
 *
 * Источник правды — games/_kit/kit.css. В папку игры файл копирует _kit/sync.sh; там его не править.
 * Игра подключает kit.css первым, свой styles.css — вторым и переопределяет в нём переменные темы.
 * Все имена анимаций набора начинаются с «k-», чтобы не пересекаться с анимациями игры.
 */

/* ---------- Тема ---------- */

:root {
  color-scheme: dark;

  /* Фон: три цвета сверху вниз и два свечения по углам. */
  --bg-top: #4338de;
  --bg-mid: #5a2ccb;
  --bg-bottom: #29178c;
  --glow-a: rgba(74, 190, 255, 0.5);
  --glow-b: rgba(255, 92, 200, 0.38);

  /* Рамка поля: ободок, нижняя кромка, дно. */
  --frame: #4b3bd6;
  --frame-lip: #1b1168;
  --pit: #1e1674;
  --socket: rgba(255, 255, 255, 0.075);

  /* Тёмные оттенки фона — тройками R, G, B, чтобы брать их с любой прозрачностью. */
  --shade-rgb: 10, 4, 60;
  --deep-rgb: 18, 9, 84;
  --deep: rgba(var(--deep-rgb), 0.5);
  --tile-shade: rgba(var(--shade-rgb), 0.5);

  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --title-hi: #d9dcff;

  /* Шесть классических цветов фишек: светлый край, основной тон, тёмный край. */
  --c1: #2d7dff; --c1h: #96beff; --c1l: #235ac8;
  --c2: #19c3f0; --c2h: #8ce1f8; --c2l: #158cbe;
  --c3: #34c759; --c3h: #9ae3ac; --c3l: #288f51;
  --c4: #ffcc1a; --c4h: #ffe68c; --c4l: #ba9324;
  --c5: #ff3b3b; --c5h: #ff9d9d; --c5l: #ba2a3b;
  --c6: #a04dff; --c6h: #d0a6ff; --c6l: #7637c8;
  /* Белая и чёрная фишки — для шашек, реверси и подобных. */
  --cw: #f1f3fb; --cwh: #ffffff; --cwl: #b4bbd6;
  --ck: #343a52; --ckh: #6d7696; --ckl: #171a29;

  --well-pad: 10px;
  --stack: 12px;
  --vh: 100vh;

  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@supports (height: 100dvh) {
  :root {
    --vh: 100dvh;
  }
}

@media (max-height: 620px) {
  :root {
    --stack: 7px;
  }
}

/*
 * Готовые оттенки фона: <html data-hue="green">. Без атрибута — фиолетовый, как в «Плитке».
 * Свой оттенок игра задаёт теми же переменными в :root своего styles.css.
 */
html[data-hue="violet"] {
  --bg-top: #4338de; --bg-mid: #5a2ccb; --bg-bottom: #29178c;
  --glow-a: rgba(74, 190, 255, 0.5); --glow-b: rgba(255, 92, 200, 0.38);
  --frame: #4b3bd6; --frame-lip: #1b1168; --pit: #1e1674;
  --shade-rgb: 10, 4, 60; --deep-rgb: 18, 9, 84; --title-hi: #d9dcff;
}

html[data-hue="blue"] {
  --bg-top: #2473ea; --bg-mid: #1c52d2; --bg-bottom: #102c8e;
  --glow-a: rgba(96, 224, 255, 0.5); --glow-b: rgba(140, 96, 255, 0.42);
  --frame: #2b66e0; --frame-lip: #0a1f6e; --pit: #0f2579;
  --shade-rgb: 4, 14, 66; --deep-rgb: 8, 22, 92; --title-hi: #d6e6ff;
}

html[data-hue="azure"] {
  --bg-top: #2aa7f2; --bg-mid: #1c84e2; --bg-bottom: #154fb4;
  --glow-a: rgba(150, 250, 255, 0.5); --glow-b: rgba(108, 110, 255, 0.42);
  --frame: #2a93ea; --frame-lip: #0b3585; --pit: #103c92;
  --shade-rgb: 4, 28, 84; --deep-rgb: 8, 40, 112; --title-hi: #d8f2ff;
}

html[data-hue="teal"] {
  --bg-top: #12a9b4; --bg-mid: #0c84a0; --bg-bottom: #075273;
  --glow-a: rgba(130, 255, 214, 0.45); --glow-b: rgba(70, 120, 255, 0.4);
  --frame: #1699b0; --frame-lip: #053a52; --pit: #06425c;
  --shade-rgb: 2, 32, 52; --deep-rgb: 3, 44, 68; --title-hi: #d2fbf4;
}

html[data-hue="green"] {
  --bg-top: #27ad5e; --bg-mid: #178f54; --bg-bottom: #0a5c3e;
  --glow-a: rgba(200, 255, 120, 0.42); --glow-b: rgba(40, 200, 226, 0.38);
  --frame: #25a462; --frame-lip: #06402b; --pit: #074a31;
  --shade-rgb: 2, 38, 26; --deep-rgb: 3, 50, 34; --title-hi: #dcfbe2;
}

html[data-hue="orange"] {
  --bg-top: #f28b25; --bg-mid: #e2641c; --bg-bottom: #a9371b;
  --glow-a: rgba(255, 228, 116, 0.5); --glow-b: rgba(255, 82, 132, 0.4);
  --frame: #ec7c23; --frame-lip: #7a2410; --pit: #872b13;
  --shade-rgb: 72, 20, 6; --deep-rgb: 96, 30, 10; --title-hi: #ffecd0;
}

html[data-hue="red"] {
  --bg-top: #e84c50; --bg-mid: #cb314b; --bg-bottom: #80173a;
  --glow-a: rgba(255, 176, 112, 0.48); --glow-b: rgba(190, 84, 255, 0.38);
  --frame: #de4252; --frame-lip: #5c0e28; --pit: #68112d;
  --shade-rgb: 58, 6, 24; --deep-rgb: 80, 10, 34; --title-hi: #ffdfe0;
}

html[data-hue="pink"] {
  --bg-top: #de4aac; --bg-mid: #b832b3; --bg-bottom: #6b1b8e;
  --glow-a: rgba(255, 168, 204, 0.5); --glow-b: rgba(112, 124, 255, 0.42);
  --frame: #ce42b0; --frame-lip: #4a1068; --pit: #541372;
  --shade-rgb: 46, 6, 62; --deep-rgb: 60, 10, 82; --title-hi: #ffdcf2;
}

html[data-hue="grape"] {
  --bg-top: #8b42e6; --bg-mid: #6c2bc6; --bg-bottom: #3d1686;
  --glow-a: rgba(255, 130, 220, 0.42); --glow-b: rgba(80, 150, 255, 0.42);
  --frame: #7d3adc; --frame-lip: #2a0c66; --pit: #300f70;
  --shade-rgb: 24, 4, 60; --deep-rgb: 34, 8, 84; --title-hi: #ead9ff;
}

html[data-hue="night"] {
  --bg-top: #2b3a7c; --bg-mid: #1e2760; --bg-bottom: #0e1236;
  --glow-a: rgba(92, 156, 255, 0.42); --glow-b: rgba(176, 92, 255, 0.32);
  --frame: #35448f; --frame-lip: #080b26; --pit: #0c1030;
  --shade-rgb: 2, 4, 24; --deep-rgb: 6, 8, 36; --title-hi: #d6dcff;
}

/* ---------- Сброс и страница ---------- */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  background: var(--bg-mid);
}

/* Контейнер мини-аппа не должен перехватывать жесты: ни прокрутки, ни масштаба у игры нет. */
body {
  touch-action: none;
  background:
    radial-gradient(85% 50% at 0% 0%, var(--glow-a) 0%, transparent 65%),
    radial-gradient(90% 55% at 100% 100%, var(--glow-b) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

/* В полях ввода текст выделяется и вставляется, как обычно. */
input,
textarea {
  font: inherit;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Фишка: глазурь с бликом и тёмной кромкой ---------- */

/*
 * Цвет задают классы .c1 … .c6 (и .cw, .ck) на самой фишке или на её родителе.
 * .tile — квадратная плитка, .disc — круглая фишка. Размер задаёт игра.
 */
.tile,
.shard,
.sky i,
.logo i {
  background:
    radial-gradient(130% 105% at 24% 8%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(162deg, var(--tile-hi, transparent) 0%, var(--tile, transparent) 46%, var(--tile-lo, transparent) 100%);
}

.tile {
  border-radius: 24%;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3.5px 0 rgba(0, 0, 0, 0.16),
    0 2px 3px var(--tile-shade);
}

.disc {
  border-radius: 50%;
  background:
    radial-gradient(62% 46% at 34% 20%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(160deg, var(--tile-hi, transparent) 0%, var(--tile, transparent) 48%, var(--tile-lo, transparent) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    0 3px 4px var(--tile-shade);
}

/* Пустая клетка поля — неглубокая лунка. */
.socket {
  border-radius: 24%;
  background: var(--socket);
  box-shadow: inset 0 2px 3px rgba(var(--shade-rgb), 0.45);
}

.c1 { --tile: var(--c1); --tile-hi: var(--c1h); --tile-lo: var(--c1l); }
.c2 { --tile: var(--c2); --tile-hi: var(--c2h); --tile-lo: var(--c2l); }
.c3 { --tile: var(--c3); --tile-hi: var(--c3h); --tile-lo: var(--c3l); }
.c4 { --tile: var(--c4); --tile-hi: var(--c4h); --tile-lo: var(--c4l); }
.c5 { --tile: var(--c5); --tile-hi: var(--c5h); --tile-lo: var(--c5l); }
.c6 { --tile: var(--c6); --tile-hi: var(--c6h); --tile-lo: var(--c6l); }
.cw { --tile: var(--cw); --tile-hi: var(--cwh); --tile-lo: var(--cwl); }
.ck { --tile: var(--ck); --tile-hi: var(--ckh); --tile-lo: var(--ckl); }

/* ---------- Значки ---------- */

/* Значки вставляет kit.js по атрибуту data-icon (см. README). */
.ico {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

.ico-fill {
  fill: currentColor;
}

.ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Фон: плывущие фишки ---------- */

.sky {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Во время партии фон тише, чтобы не спорить с полем. */
body:not(.in-menu) .sky {
  opacity: 0.45;
}

.sky i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 26%;
  opacity: 0.2;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -4px 0 rgba(0, 0, 0, 0.14);
  transform: rotate(var(--r));
  animation: k-drift var(--t) ease-in-out infinite alternate;
}

/* Круглые фишки на фоне: <div class="sky sky-round">. */
.sky-round i {
  border-radius: 50%;
}

.sky i:nth-child(1) { --x: 6%; --y: 9%; --s: 46px; --r: -14deg; --t: 11s; }
.sky i:nth-child(2) { --x: 80%; --y: 5%; --s: 34px; --r: 18deg; --t: 13s; }
.sky i:nth-child(3) { --x: 88%; --y: 30%; --s: 56px; --r: 9deg; --t: 15s; }
.sky i:nth-child(4) { --x: -3%; --y: 40%; --s: 40px; --r: 22deg; --t: 12s; }
.sky i:nth-child(5) { --x: 12%; --y: 72%; --s: 60px; --r: -9deg; --t: 16s; }
.sky i:nth-child(6) { --x: 78%; --y: 70%; --s: 38px; --r: -20deg; --t: 10s; }
.sky i:nth-child(7) { --x: 44%; --y: 90%; --s: 44px; --r: 12deg; --t: 14s; }
.sky i:nth-child(8) { --x: 60%; --y: 16%; --s: 24px; --r: -6deg; --t: 9s; }
.sky i:nth-child(9) { --x: 30%; --y: 4%; --s: 28px; --r: 26deg; --t: 12s; }

@keyframes k-drift {
  from { transform: translateY(-10px) rotate(var(--r)); }
  to { transform: translateY(14px) rotate(calc(var(--r) + 10deg)); }
}

/* ---------- Кнопки: объёмные, с кромкой снизу ---------- */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 20px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.btn:active {
  transform: translateY(4px);
}

.btn:disabled {
  opacity: 0.55;
  filter: saturate(0.6);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe066 0%, #ffbf1f 100%);
  color: #5a3100;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 5px 0 #c97b00, 0 10px 18px rgba(var(--shade-rgb), 0.4);
}

.btn-gold:active {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 1px 0 #c97b00, 0 3px 6px rgba(var(--shade-rgb), 0.4);
}

.btn-blue {
  background: linear-gradient(180deg, #5cd0ff 0%, #1f9ef6 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 #0c62b8, 0 10px 18px rgba(var(--shade-rgb), 0.4);
  text-shadow: 0 1px 0 rgba(8, 60, 130, 0.6);
}

.btn-blue:active {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 1px 0 #0c62b8, 0 3px 6px rgba(var(--shade-rgb), 0.4);
}

.btn-ghost {
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.btn-ghost:active {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-ghost .ico {
  width: 20px;
  height: 20px;
}

.btn-big {
  height: 66px;
  border-radius: 24px;
  font-size: 24px;
}

.btn-big .ico {
  width: 28px;
  height: 28px;
}

/* Кнопка в две строки: название и мелкая подпись в <small>. */
.btn-two {
  flex-direction: column;
  gap: 1px;
  height: 62px;
  border-radius: 22px;
}

.btn-two small {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.92;
  white-space: normal;
}

/*
 * Параметр партии в меню: объёмный выключатель, а не галочка из настроек.
 *   <button class="toggle" type="button" role="switch" aria-checked="false">
 *     <i data-icon="check" aria-hidden="true"></i>
 *     <span><b>Название</b><small>пояснение</small></span>     (или просто <span>Название</span>)
 *   </button>
 * Включён — золотой, как главная кнопка; состояние держит aria-checked (его меняет игра).
 */
.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 6px 14px 6px 10px;
  border: 0;
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.13) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), 0 4px 0 rgba(var(--deep-rgb), 0.55), 0 9px 14px rgba(var(--shade-rgb), 0.28);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: left;
  text-shadow: 0 1px 0 rgba(var(--shade-rgb), 0.45);
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.toggle:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), 0 1px 0 rgba(var(--deep-rgb), 0.55), 0 3px 6px rgba(var(--shade-rgb), 0.28);
}

/* Гнездо с галочкой: пустое — тёмная лунка, включённое — белая фишка с галочкой. */
.toggle > i {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: rgba(var(--shade-rgb), 0.5);
  box-shadow: inset 0 2.5px 4px rgba(var(--shade-rgb), 0.7), 0 1px 0 rgba(255, 255, 255, 0.22);
}

.toggle > i .ico {
  width: 22px;
  height: 22px;
  color: #c97b00;
  stroke-width: 3.4;
  transform: scale(0) rotate(-30deg);
  transition: transform 0.22s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.toggle > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.toggle b {
  font-weight: 800;
}

.toggle small {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 15px;
  opacity: 0.86;
}

.toggle[aria-checked="true"],
.toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe066 0%, #ffbf1f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 4px 0 #c97b00, 0 9px 14px rgba(var(--shade-rgb), 0.34);
  color: #5a3100;
  text-shadow: none;
}

.toggle[aria-checked="true"]:active,
.toggle[aria-pressed="true"]:active {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 1px 0 #c97b00, 0 3px 6px rgba(var(--shade-rgb), 0.34);
}

.toggle[aria-checked="true"] > i,
.toggle[aria-pressed="true"] > i {
  background: linear-gradient(180deg, #ffffff, #fff1c4);
  box-shadow: inset 0 -2px 0 rgba(201, 123, 0, 0.35), 0 2px 0 #c97b00;
}

.toggle[aria-checked="true"] > i .ico,
.toggle[aria-pressed="true"] > i .ico {
  transform: none;
}

/*
 * Выбор одного значения из нескольких (размер поля, число игроков): ряд объёмных фишек.
 *   <div class="pick" role="radiogroup" aria-label="Размер поля">
 *     <button type="button" role="radio" aria-checked="true">3×3</button>
 *     <button type="button" role="radio" aria-checked="false">4×4</button>
 *   </div>
 * Выбранная — золотая. Это не сегментный переключатель: у каждой фишки своя кромка.
 */
.pick {
  display: flex;
  gap: 8px;
  width: 100%;
}

.pick > button {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  padding: 0 6px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.13) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), 0 4px 0 rgba(var(--deep-rgb), 0.55);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(var(--shade-rgb), 0.45);
  white-space: nowrap;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.pick > button:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), 0 1px 0 rgba(var(--deep-rgb), 0.55);
}

.pick > button[aria-checked="true"],
.pick > button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe066 0%, #ffbf1f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 4px 0 #c97b00;
  color: #5a3100;
  text-shadow: none;
}

@media (max-height: 620px) {
  .toggle {
    min-height: 46px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 17px;
  }

  .toggle > i {
    width: 29px;
    height: 29px;
  }

  .pick > button {
    height: 42px;
  }
}

/* Квадратная кнопка в шапке игры. */
.hud-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 3px 0 rgba(var(--deep-rgb), 0.45);
  color: #fff;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.hud-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 0 0 rgba(var(--deep-rgb), 0.45);
}

.hud-btn:disabled {
  opacity: 0.45;
}

/* Выключатель звука: волны при включённом, крестик при выключенном. */
.ico-sound .cross {
  display: none;
}

[aria-pressed="false"] > .ico-sound .waves {
  display: none;
}

[aria-pressed="false"] > .ico-sound .cross {
  display: inline;
}

/* Плашка: рекорд, счётчик, подпись. Значок-корону красит в золото. */
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 17px;
  background: var(--deep);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill .ico,
.menu-best .ico {
  width: 20px;
  height: 20px;
  color: var(--c4);
}

/* ---------- Стартовый экран ---------- */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.in-menu .menu {
  display: flex;
}

.in-menu .app {
  visibility: hidden;
}

.lang-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  min-width: 52px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 3px 0 rgba(var(--deep-rgb), 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3);
}

/*
 * Значок игры из фишек. По умолчанию — четыре плитки 2×2: <div class="logo"><i class="c4"></i>…</div>.
 * Свою форму игра собирает сама, оставив класс .logo ради покачивания.
 */
.logo {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  grid-auto-rows: 46px;
  gap: 6px;
  transform: rotate(-9deg);
  animation: k-bob 2.6s ease-in-out infinite alternate;
}

.logo i {
  border-radius: 26%;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -4px 0 rgba(0, 0, 0, 0.15),
    0 5px 8px var(--tile-shade);
  animation: k-pop-in 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) both;
}

.logo i:nth-child(2) { animation-delay: 70ms; }
.logo i:nth-child(3) { animation-delay: 140ms; }
.logo i:nth-child(4) { animation-delay: 210ms; }

@keyframes k-bob {
  from { transform: rotate(-9deg) translateY(-4px); }
  to { transform: rotate(-5deg) translateY(6px); }
}

@keyframes k-pop-in {
  from { transform: scale(0); }
}

.title {
  margin: 26px 0 0;
  font-size: min(68px, 19vw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  text-shadow:
    0 2px 0 var(--title-hi),
    0 7px 0 var(--frame-lip),
    0 14px 24px rgba(var(--shade-rgb), 0.55);
  animation: k-pop-in 0.5s 0.12s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

/* Длинное название: <h1 class="title title-long">. */
.title-long {
  font-size: min(52px, 14.5vw);
}

.menu-best {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin: 22px 0 0;
  padding: 0 16px 0 12px;
  border-radius: 17px;
  background: var(--deep);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: min(280px, 100%);
  margin-top: 40px;
}

@media (max-height: 620px) {
  .title {
    margin-top: 18px;
    font-size: min(56px, 17vw);
  }

  .title-long {
    font-size: min(44px, 13vw);
  }

  .menu-best {
    margin-top: 14px;
  }

  .menu-actions {
    gap: 15px;
    margin-top: 26px;
  }
}

/* ---------- Игровой экран ---------- */

/*
 * Столбик: шапка .top, счёт .tally, сцена .stage (забирает всю свободную высоту), низ .foot.
 * Размер поля внутри сцены считает kit.fit() — см. README, «Размер поля».
 */
.app {
  position: relative;
  height: var(--vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--stack);
  /* Низ с запасом: контейнер Link не сообщает отступ под жестовую полосу. */
  padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.top,
.tally,
.foot {
  flex: none;
  width: 100%;
  max-width: var(--col, 460px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.tools {
  display: flex;
  gap: 8px;
}

.tally {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score {
  height: 56px;
  font-size: 56px;
  font-weight: 900;
  line-height: 56px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 0 rgba(var(--deep-rgb), 0.55);
}

@media (max-height: 620px) {
  .score {
    height: 46px;
    font-size: 46px;
    line-height: 46px;
  }
}

/* Строка под счётом: метки, серия, жизни. */
.sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 26px;
  margin-top: 2px;
}

/* Тихая метка и «горячая» метка (серия, множитель). */
.tag {
  padding: 0 10px;
  border-radius: 12px;
  background: var(--deep);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

.tag-hot {
  padding: 0 11px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ff9a3d, #ff4d5e);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #b3202f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(140, 20, 30, 0.6);
  animation: k-nudge 0.36s cubic-bezier(0.3, 1.8, 0.5, 1);
}

@keyframes k-nudge {
  from { transform: scale(0.5) rotate(-8deg); }
}

.stage {
  flex: 1 1 0;
  align-self: stretch;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Рамка поля: тёмное дно, ободок, кромка снизу. */
.well {
  position: relative;
  flex: none;
  padding: var(--well-pad);
  border-radius: 26px;
  background: var(--pit);
  box-shadow:
    inset 0 3px 8px rgba(var(--shade-rgb), 0.6),
    0 0 0 4px var(--frame),
    0 -1px 0 5px rgba(255, 255, 255, 0.22),
    0 9px 0 4px var(--frame-lip),
    0 20px 30px rgba(var(--shade-rgb), 0.5);
  margin: 5px 5px 13px;
}

.board {
  position: relative;
  touch-action: none;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--ink-2);
  text-align: center;
  text-wrap: balance;
}

/* ---------- Отклики ---------- */

/* Счёт подпрыгивает: kit.fx.bump(el). */
.k-bump {
  animation: k-bump 0.34s cubic-bezier(0.3, 1.7, 0.5, 1);
}

@keyframes k-bump {
  40% { transform: scale(1.2); }
}

/* Отказ: kit.fx.shake(el). */
.k-shake {
  animation: k-shake 0.3s ease-in-out;
}

@keyframes k-shake {
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}

/* Осколки: kit.fx.burst(). Размер — переменная --shard на контейнере. */
.shard {
  position: absolute;
  z-index: 3;
  width: var(--shard, 12px);
  height: var(--shard, 12px);
  border-radius: 30%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: k-shard 0.7s cubic-bezier(0.15, 0.7, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes k-shard {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  14% { transform: translate(calc(-50% + var(--dx) * 0.4), calc(-50% + var(--dy) * 0.3)) scale(1.15); opacity: 1; }
  68% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.35); opacity: 0; }
}

/* Очки, вылетающие из места хода: kit.fx.floatText(). */
.gain {
  position: absolute;
  z-index: 4;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 2px 0 var(--frame-lip),
    0 0 10px rgba(var(--shade-rgb), 0.7);
  transform: translate(-50%, -50%);
  animation: k-gain 0.95s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes k-gain {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.4); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  30% { transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1); }
}

/* Похвала словом: kit.fx.praise(). */
.praise {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 6;
  color: var(--c4);
  font-size: min(46px, 12vw);
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 2px 0 #fff3b8,
    0 5px 0 #a35a00,
    0 10px 18px rgba(var(--shade-rgb), 0.6);
  transform: translate(-50%, -50%) rotate(-7deg);
  animation: k-praise 1.05s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes k-praise {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(0.2); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1.15); }
  30% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -95%) rotate(-7deg) scale(1.05); }
}

/* Праздник победы: kit.fx.confetti(). */
.confetti {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--tile-hi), var(--tile) 55%, var(--tile-lo));
  opacity: 0;
  animation: k-confetti var(--t) cubic-bezier(0.25, 0.5, 0.5, 1) var(--d) both;
}

@keyframes k-confetti {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) rotateX(0deg); opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translate3d(var(--dx), calc(var(--vh) + 60px), 0) rotate(var(--rot)) rotateX(var(--flip)); opacity: 0; }
}

/* Короткое сообщение внизу экрана: kit.toast(). */
.toast {
  position: fixed;
  /* Ширина — по тексту, но не шире экрана: left и right заданы оба, иначе на строку оставалась бы половина экрана. */
  left: 20px;
  right: 20px;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 50;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(var(--deep-rgb), 0.94);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.22), 0 4px 0 rgba(var(--shade-rgb), 0.55), 0 12px 22px rgba(var(--shade-rgb), 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
  text-wrap: balance;
  animation: k-toast 0.32s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.toast.out {
  animation: k-toast-out 0.22s ease-in both;
}

@keyframes k-toast {
  from { opacity: 0; transform: translateY(24px) scale(0.8); }
}

@keyframes k-toast-out {
  to { opacity: 0; transform: translateY(16px); }
}

/* ---------- Окно: итог партии, вопросы ---------- */

/* Поверх поля (внутри .well). */
.over {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(var(--deep-rgb), 0.76);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: k-fade 0.25s ease-out;
}

@keyframes k-fade {
  from { opacity: 0; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 8px;
  text-align: center;
  animation: k-card 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

@keyframes k-card {
  from { transform: scale(0.6); }
}

.card p {
  margin: 0;
}

.over-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 24px;
  color: var(--ink-2);
  text-wrap: balance;
}

/* Окно без счёта: заголовок — главное в окне. */
.over-title.solo {
  font-size: 23px;
  line-height: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 3px 0 rgba(var(--shade-rgb), 0.55);
}

.over-score {
  font-size: min(72px, 19vw);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 5px 0 rgba(var(--shade-rgb), 0.6);
}

.over-score.long {
  font-size: min(54px, 14.5vw);
}

.over-score.xlong {
  font-size: min(40px, 10.5vw);
}

.card .over-text {
  max-width: 300px;
  margin-top: 8px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink-2);
  white-space: pre-line;
  text-wrap: pretty;
}

.card .over-note {
  display: flex;
  align-items: center;
  height: 28px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--deep);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.over-note.record {
  background: linear-gradient(180deg, #ffe066, #ffbf1f);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 2px 0 #c97b00;
  color: #5a3100;
}

.over-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 8px;
  margin-top: 18px;
}

/* Главная кнопка занимает строку целиком, остальные встают под ней в ряд. */
.over-actions .btn-gold,
.over-actions .btn-blue {
  flex: 0 0 100%;
  margin-bottom: 4px;
}

/* Окно на весь экран: отдельная панель с рамкой по центру. */
.over-full {
  position: fixed;
  z-index: 40;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: rgba(var(--deep-rgb), 0.8);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.over-full .card {
  width: min(340px, 100%);
  padding: 24px 20px 26px;
  border-radius: 28px;
  background: var(--pit);
  box-shadow:
    inset 0 3px 8px rgba(var(--shade-rgb), 0.6),
    0 0 0 4px var(--frame),
    0 -1px 0 5px rgba(255, 255, 255, 0.22),
    0 9px 0 4px var(--frame-lip),
    0 24px 40px rgba(var(--shade-rgb), 0.6);
}

.over-full .over-actions {
  width: 100%;
  margin-top: 20px;
}

@media (max-height: 620px) {
  .over:not(.over-full) .over-score {
    font-size: 48px;
  }

  .over:not(.over-full) .over-score.long {
    font-size: 40px;
  }

  .over:not(.over-full) .over-score.xlong {
    font-size: 32px;
  }

  .over:not(.over-full) .over-actions {
    margin-top: 10px;
  }

  .over:not(.over-full) .over-actions .btn-gold,
  .over:not(.over-full) .over-actions .btn-blue {
    height: 46px;
  }
}

/* ---------- Служебное ---------- */

/* Только для экранного диктора. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 30;
  text-align: center;
}

/* Меньше движения: анимации мгновенные, но надписи-отклики остаются видны. */
@keyframes k-hold {
  0% { opacity: 0; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes k-show {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .praise,
  .gain {
    animation: k-hold 1s linear both !important;
  }

  .toast {
    animation: k-show 0.2s linear both !important;
  }
}

/* ---------- Аватар игрока (профиль Link) ---------- */

/*
 * kit.avatar({ name, username, url }): круглая глянцевая фишка с инициалами, поверх — фото из Link,
 * когда оно загрузилось. Размер — переменная --ava (по умолчанию 32px).
 */
.k-ava {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ava, 32px);
  height: var(--ava, 32px);
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(62% 46% at 34% 20%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(160deg, var(--tile-hi, #8aa) 0%, var(--tile, #577) 48%, var(--tile-lo, #355) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 3px 4px rgba(var(--shade-rgb), 0.45);
  color: #fff;
  font-size: calc(var(--ava, 32px) * 0.4);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(var(--shade-rgb), 0.45);
}

.k-ava-ini {
  letter-spacing: -0.02em;
}

.k-ava img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.k-ava.k-ava-on img {
  opacity: 1;
}

/* ---------- Экран «Откройте игру в Link» ---------- */

/*
 * Игры работают только внутри Link. Пока мост Link не подтвердил вход — ожидание (три плитки
 * появляются не сразу, чтобы при быстром ответе ничего не мигало); если входа нет — этот экран
 * поверх всего, без кнопки «играть». Ставит и убирает kit.js.
 */
.link-gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 24px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(85% 50% at 0% 0%, var(--glow-a) 0%, transparent 65%),
    radial-gradient(90% 55% at 100% 100%, var(--glow-b) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
  color: var(--ink);
  text-align: center;
  touch-action: none;
}

body .link-gate .sky {
  opacity: 1;
}

.link-gate-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.link-gate-wait {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 52px;
  opacity: 0;
  animation: k-gate-show 0.2s 0.4s ease-out both;
}

.link-gate-wait i {
  width: 24px;
  height: 24px;
  border-radius: 30%;
  animation: k-gate-hop 0.95s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.14s);
}

@keyframes k-gate-show {
  to { opacity: 1; }
}

@keyframes k-gate-hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  28% { transform: translateY(-22px) scale(0.94, 1.06); }
  48% { transform: translateY(0) scale(1.12, 0.86); }
}

.link-gate.fail .link-gate-box {
  animation: k-card 0.32s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

/* Значок игры — копия значка из меню, чуть меньше. */
.link-gate-logo {
  flex: none;
  margin: 0 0 18px;
  zoom: 0.8;
}

.link-gate-game {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.link-gate-title {
  margin: 6px 0 0;
  font-size: min(38px, 10.5vw);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 2px 0 var(--title-hi),
    0 5px 0 var(--frame-lip),
    0 10px 18px rgba(var(--shade-rgb), 0.5);
}

.link-gate-text {
  margin: 16px 0 0;
  max-width: 340px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}

/* Путь в Link: «Link › Мини-приложения › Игра» — объёмные плашки. */
.link-gate-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
}

.link-gate-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.link-gate-step {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 34px;
  padding: 0 13px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--deep);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.12), 0 3px 0 rgba(var(--shade-rgb), 0.4);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-gate-brand {
  background: linear-gradient(180deg, #5cd0ff 0%, #1f9ef6 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #0c62b8;
  text-shadow: 0 1px 0 rgba(8, 60, 130, 0.6);
}

.link-gate-here {
  background: linear-gradient(180deg, #ffe066 0%, #ffbf1f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 #c97b00;
  color: #5a3100;
}

.link-gate-arrow {
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
}

.link-gate-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-height: 620px) {
  .link-gate-logo {
    zoom: 0.6;
    margin-bottom: 10px;
  }

  .link-gate-text {
    margin-top: 12px;
    font-size: 15px;
  }

  .link-gate-path {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-gate-wait,
  .link-gate.fail .link-gate-box {
    animation-duration: 0.01s;
  }
}
