/* «Ваша колония» - игра на первом экране. Светлая: белые карточки, бежевый фон сцены, графит,
   оранжевый - только на кнопке покупки и предупреждениях. Перекрывает старые .kol-* из sayt.css. */

.kol-scena.igra { height: clamp(640px, calc(100vh - 140px), 780px); background: radial-gradient(120% 95% at 64% 40%, #ffffff 0%, #fbf8f3 45%, var(--bezh) 100%); }
.igra canvas { cursor: grab; }
.igra.ig-scena canvas { cursor: default; }

/* ---------- карточка колонии */
.ig-karta {
  position: absolute; left: 18px; top: 18px; bottom: 18px; width: 322px; z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: 22px; padding: 18px 18px 16px; box-shadow: var(--ten-2);
  overflow-y: auto; scrollbar-width: none;
}
.ig-karta::-webkit-scrollbar { display: none; }
.ig-nadz { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tekst-2); }
.ig-nadz i { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.16); animation: zhiv 2.4s ease-in-out infinite; }
.ig-pauza .ig-nadz i { background: var(--tekst-3); box-shadow: none; animation: none; }
.ig-karta h1 { font-size: 28px; line-height: 1.1; margin: -2px 0 0; letter-spacing: -0.01em; }
.ig-vid { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--bezh); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ig-vid:hover { background: var(--bezh-2); }
.ig-vid span { display: flex; flex-direction: column; min-width: 0; }
.ig-vid b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-vid small { font-size: 12.5px; color: var(--tekst-2); font-weight: 600; }
.ig-vid em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--tekst); background: #fff; border-radius: 9px; padding: 5px 9px; }

.ig-vremya { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ig-den { font-size: 15px; font-weight: 700; color: var(--tekst-2); white-space: nowrap; }
.ig-den b { font-size: 22px; font-weight: 800; color: var(--tekst); font-variant-numeric: tabular-nums; margin-left: 2px; }
.ig-skor { display: flex; gap: 2px; background: var(--bezh); border-radius: 12px; padding: 3px; }
.ig-skor button { height: 32px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--tekst); cursor: pointer; display: inline-grid; place-items: center; }
.ig-skor button:hover { background: #fff; }
.ig-skor button[aria-pressed="true"] { background: var(--grafit); color: #fff; }
.ig-skor svg { width: 15px; height: 15px; }

.ig-cifry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-cifry div { background: var(--bezh); border-radius: 12px; padding: 7px 6px; text-align: center; }
.ig-cifry b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ig-cifry span { font-size: 11.5px; color: var(--tekst-2); font-weight: 600; }

.ig-sost { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.ig-pol { display: flex; flex-direction: column; gap: 4px; }
.ig-pol span { font-size: 12px; font-weight: 700; color: var(--tekst-2); }
.ig-pol i { --v: 1; position: relative; display: block; height: 7px; border-radius: 5px; background: var(--bezh-2); overflow: hidden; }
.ig-pol i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 5px; background: #4a4239; transition: width 0.4s ease, background 0.3s; }
.ig-pol[data-u="1"] i::after { background: var(--oranzh); }
.ig-pol[data-u="2"] i::after { background: #d2452c; }
.ig-pol[data-u="2"] span { color: #c03a22; }

.ig-problema { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: #fff4e0; box-shadow: inset 0 0 0 1px rgba(240, 154, 7, 0.35); }
.ig-problema[hidden] { display: none; }
.ig-problema[data-u="2"] { background: #fdebe6; box-shadow: inset 0 0 0 1px rgba(210, 69, 44, 0.35); }
.ig-problema span { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ig-problema button { flex: none; height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: var(--grafit); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ig-problema button[hidden] { display: none; }
.ig-sob { margin: 0; min-height: 40px; font-size: 13.5px; line-height: 1.42; font-weight: 600; color: var(--tekst); }
.ig-sob.vazhno { color: #8a3d0c; }
.ig-sob.ig-mig { animation: mig 0.6s ease; }

.ig-zhurnal-kn { display: flex; align-items: center; gap: 9px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--bezh); font: inherit; font-size: 14px; font-weight: 700; color: var(--tekst); cursor: pointer; }
.ig-zhurnal-kn:hover { background: var(--bezh-2); }
.ig-zhurnal-kn svg { width: 18px; height: 18px; flex: none; }
.ig-zhurnal-kn span { white-space: nowrap; }
.ig-zhurnal-kn em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--oranzh); border-radius: 8px; padding: 2px 7px; white-space: nowrap; }
.ig-kupit { width: 100%; margin-top: auto; text-transform: none; letter-spacing: 0; font-size: 15px; height: 48px; white-space: nowrap; }
.ig-kupit span { font-weight: 800; margin-left: 4px; }
.ig-ferma-ss { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.ig-ferma-ss:hover { color: var(--tekst); }
.ig-mini { display: none; }

/* ---------- инструменты и камера */
.ig-instr { position: absolute; left: 356px; right: 18px; bottom: 18px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: flex-end; pointer-events: none; }
.ig-fermy { position: absolute; top: 18px; right: 330px; z-index: 2; }
.ig-instr > * { pointer-events: auto; }
.ig-gr { display: flex; align-items: center; gap: 3px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-radius: 16px; padding: 5px; box-shadow: var(--ten-1); }
.ig-gr-imya { font-size: 12.5px; font-weight: 700; color: var(--tekst-2); padding: 0 6px 0 9px; white-space: nowrap; }
.ig-kn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--tekst); cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, transform 0.12s; }
.ig-kn:hover { background: var(--bezh); }
.ig-kn:active { transform: scale(0.96); }
.ig-kn[aria-pressed="true"] { background: var(--grafit); color: #fff; }
.ig-kn svg { width: 19px; height: 19px; flex: none; }
.ig-kn-f { padding: 0 11px; font-weight: 800; }
.ig-kv { width: 40px; padding: 0; justify-content: center; }
.ig-kamera { position: absolute; right: 18px; top: 18px; z-index: 2; }
.ig-podsk { position: absolute; right: 20px; top: 78px; z-index: 2; max-width: 440px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--tekst-2); background: rgba(255, 255, 255, 0.82); padding: 7px 12px; border-radius: 11px; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; text-align: right; }
.ig-podsk.vidno { opacity: 1; transform: none; }
.ig-scena .ig-instr, .ig-scena .ig-kamera, .ig-scena .ig-fermy { opacity: 0.45; pointer-events: none; }
/* как управлять камерой - всегда на виду; мигает, когда крутят колесо без Ctrl */
.ig-upr { position: absolute; right: 18px; bottom: 78px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.ig-upr span { font-size: 12.5px; font-weight: 600; color: var(--tekst-2); background: rgba(255, 255, 255, 0.9); padding: 6px 10px; border-radius: 10px; box-shadow: var(--ten-1); white-space: nowrap; }
.ig-upr b { font-weight: 800; color: var(--tekst); }
.ig-upr.mig span:last-child { animation: upr-mig 1.4s ease; }
@keyframes upr-mig { 0%, 100% { background: rgba(255, 255, 255, 0.9); color: var(--tekst-2); } 15%, 70% { background: var(--grafit); color: #fff; } }
.ig-upr.mig span:last-child b { animation: upr-mig-b 1.4s ease; }
@keyframes upr-mig-b { 0%, 100% { color: var(--tekst); } 15%, 70% { color: #fff; } }
.ig-scena .ig-upr { display: none; }

/* ---------- карточка муравья */
.ig-kartochka { position: absolute; z-index: 4; width: 250px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--ten-2); font-size: 13px; }
.ig-kartochka[hidden] { display: none; }
.ig-kart-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ig-kart-sh b { font-size: 15px; font-weight: 800; }
.ig-kartochka p { margin: 5px 0 0; color: var(--tekst-2); font-weight: 600; line-height: 1.4; }
.ig-kart-kn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ig-kn-glav { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--grafit); font: inherit; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; white-space: nowrap; }
.ig-kn-glav:hover { background: #3a332c; }
.ig-kn-vtor { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bezh); font: inherit; font-size: 13px; font-weight: 700; color: var(--tekst); cursor: pointer; white-space: nowrap; }
.ig-kn-vtor:hover { background: var(--bezh-2); }
.ig-imya { display: flex; gap: 6px; flex: 1; }
.ig-imya input { flex: 1; min-width: 0; height: 34px; border: 0; border-radius: 10px; background: var(--bezh); padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--tekst); }
.ig-x { width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: var(--bezh); font: inherit; font-size: 20px; line-height: 1; color: var(--tekst); cursor: pointer; }
.ig-x:hover { background: var(--bezh-2); }

/* ---------- окна: журнал, дневник, виды, переселение */
.ig-okno { position: absolute; right: 18px; top: 18px; bottom: 18px; width: min(460px, calc(100% - 380px)); z-index: 5; display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: var(--ten-2); overflow: hidden; }
.ig-okno[hidden] { display: none; }
.ig-okno-malo { bottom: auto; }
.ig-okno-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--liniya); }
.ig-okno-sh > b { font-size: 17px; font-weight: 800; }
.ig-okno-telo { flex: 1; overflow-y: auto; padding: 14px 18px 18px; }
.ig-tabs { display: flex; gap: 4px; background: var(--bezh); border-radius: 12px; padding: 3px; }
.ig-tabs button { height: 34px; padding: 0 11px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--tekst-2); cursor: pointer; white-space: nowrap; }
.ig-tabs button[aria-selected="true"] { background: #fff; color: var(--tekst); box-shadow: var(--ten-1); }
.ig-tabs span { font-size: 12px; color: var(--tekst-3); margin-left: 2px; }
.ig-stat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ig-stat div { background: var(--bezh); border-radius: 12px; padding: 8px 4px; text-align: center; }
.ig-stat b { display: block; font-size: 18px; font-weight: 800; }
.ig-stat span { font-size: 11px; color: var(--tekst-2); font-weight: 600; line-height: 1.2; display: block; }
.ig-rekord { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.ig-ist { list-style: none; margin: 12px 0 0; padding: 0; }
.ig-ist li { font-size: 13.5px; line-height: 1.42; padding: 5px 0 5px 14px; position: relative; color: var(--tekst); font-weight: 500; }
.ig-ist li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--tekst-3); }
.ig-ist li.vazhno { font-weight: 700; }
.ig-ist li.vazhno::before { background: var(--oranzh); }
.ig-ist li.ig-ist-den { padding: 12px 0 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tekst-3); }
.ig-ist li.ig-ist-den::before { display: none; }
.ig-pod { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--tekst-2); font-weight: 600; }
.ig-fakty { display: grid; gap: 8px; }
.ig-fakt { background: var(--bezh); border-radius: 14px; padding: 11px 13px; }
.ig-fakt-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ig-fakt-sh b { font-size: 14px; font-weight: 800; }
.ig-fakt-sh small { font-size: 11.5px; color: var(--tekst-3); font-weight: 700; white-space: nowrap; }
.ig-fakt p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--tekst); font-weight: 500; }
.ig-fakt a { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--tekst); border-bottom: 2px solid var(--oranzh); }
.ig-fakt.zakryt { background: #fff; box-shadow: inset 0 0 0 1px var(--liniya); }
.ig-fakt.zakryt b { color: var(--tekst-3); }
.ig-fakt.zakryt p { color: var(--tekst-3); }
.ig-iz-igry { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--bezh); }
.ig-iz-igry div { display: flex; flex-direction: column; min-width: 0; }
.ig-iz-igry b { font-size: 13.5px; font-weight: 800; }
.ig-iz-igry span { font-size: 12px; color: var(--tekst-2); font-weight: 600; }
.ig-iz-igry .knopka { flex: none; height: 40px; padding: 0 14px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.ig-zanovo { display: block; margin: 14px auto 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--tekst-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ig-sovet { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--bezh); font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.ig-sovet.ploho { background: #fff4e0; box-shadow: inset 0 0 0 1px rgba(240, 154, 7, 0.35); }
.ig-ryad { display: flex; gap: 8px; margin-top: 6px; }
.ig-ryad .knopka { height: 44px; padding: 0 18px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.ig-ryad .ig-kn-vtor { height: 44px; padding: 0 16px; font-size: 14px; }
.ig-ozon { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.ig-vidy { display: grid; gap: 4px; padding-top: 6px; }
.ig-vidy-gr { font-size: 11.5px; font-weight: 800; color: var(--tekst-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 4px 2px; }
.ig-vid-p { display: flex; align-items: center; gap: 11px; width: 100%; padding: 6px 8px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ig-vid-p:hover { background: var(--bezh); }
.ig-vid-p[aria-pressed="true"] { background: var(--bezh); box-shadow: inset 0 0 0 2px var(--grafit); }
.ig-vid-p img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: #fff; }
.ig-vid-p span { display: flex; flex-direction: column; min-width: 0; }
.ig-vid-p b { font-size: 14px; font-weight: 800; }
.ig-vid-p small { font-size: 12px; color: var(--tekst-2); font-weight: 600; }

/* список частей фермы */
.ig-chasti { display: grid; gap: 2px; }
.ig-chast-p { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 11px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ig-chast-p:hover { background: var(--bezh); }
.ig-chast-p b { font-size: 14px; font-weight: 700; }
.ig-chast-p span { font-size: 13px; font-weight: 600; color: var(--tekst-2); white-space: nowrap; }
.ig-chast-p.ploho span { color: #b4530f; font-weight: 800; }
.ig-okno-malo { max-height: calc(100% - 36px); }

/* ---------- средние экраны */
@media (max-width: 1240px) and (min-width: 901px) {
  .ig-karta { width: 300px; }
  .ig-instr { left: 330px; }
  .ig-fermy { right: 300px; }
  .ig-kn { padding: 0 10px; font-size: 13.5px; }
  .ig-okno { width: min(420px, calc(100% - 340px)); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .ig-kn span { display: none; }
  .ig-uhod .ig-kn { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- телефон и планшет: сцена сверху, под ней инструменты и карточка */
@media (max-width: 900px) {
  .kol-scena.igra { height: auto; }
  .igra canvas { height: 58vh; min-height: 360px; max-height: 540px; }
  .ig-mini { display: flex; flex-direction: column; position: absolute; left: 10px; top: 10px; z-index: 2; max-width: calc(100% - 200px); background: rgba(255, 255, 255, 0.9); border-radius: 13px; padding: 7px 11px; box-shadow: var(--ten-1); }
  .ig-mini b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ig-mini span { font-size: 12px; color: var(--tekst-2); font-weight: 700; }
  .ig-kamera { top: 10px; right: 10px; padding: 3px; }
  .ig-kamera .ig-kn { height: 38px; }
  .ig-kamera .ig-kv { width: 34px; }
  .ig-kamera .ig-sverhu { display: none; }
  .ig-sverhu span { display: none; }
  .ig-sverhu { width: 38px; padding: 0; justify-content: center; }
  .ig-podsk { display: none; }
  /* на телефоне подсказка - строкой под фермой, а не поверх неё (и не под кнопкой чата) */
  .ig-upr { position: relative; right: auto; bottom: auto; order: 1; margin: 6px 12px 0; gap: 2px 12px; flex-wrap: wrap; }
  .ig-upr span { font-size: 12px; padding: 0; background: none; box-shadow: none; }
  .ig-kartochka { width: auto; }
  .ig-instr { position: relative; left: auto; right: auto; bottom: auto; order: 2; margin: 10px 10px 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .ig-uhod { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 2px; }
  .ig-uhod .ig-kn { flex-direction: column; gap: 4px; height: 58px; padding: 0 7px; font-size: 11.5px; justify-content: center; white-space: nowrap; text-align: center; line-height: 1.15; }
  .ig-uhod .ig-kn svg { width: 22px; height: 22px; }
  /* справа место под круглую кнопку чата (она висит в правом нижнем углу экрана) - XXXL не под ней */
  .ig-fermy { position: relative; top: auto; right: auto; order: 2; margin: 8px 84px 0 10px; justify-content: space-between; }
  .ig-fermy .ig-kn { flex: 1; justify-content: center; }
  .ig-karta { position: relative; left: auto; top: auto; bottom: auto; width: auto; order: 3; margin: 10px; box-shadow: var(--ten-1); padding: 16px; overflow: visible; }
  .ig-karta .ig-nadz, .ig-karta h1 { display: none; }
  .ig-kupit { margin-top: 4px; }
  .ig-okno { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 82vh; z-index: 90; box-shadow: 0 10px 40px rgba(40, 25, 10, 0.25); }
  .ig-okno-malo { bottom: 8px; }
  .ig-stat { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .ig-tabs button { padding: 0 8px; font-size: 12.5px; }
  .ig-kupit { font-size: 14px; }
}

/* кнопка чата сайта не закрывает кнопки игры: js/koloniya.js поднимает её над ними или прячет, пока игра под ней */
.chat { transition: bottom 0.25s ease; }
.chat-kn { transition: transform 0.15s, opacity 0.2s; }
body.ig-chat-vverh .chat { bottom: var(--ig-chat-niz, 20px); }
body.ig-chat-skryt .chat-kn { opacity: 0; pointer-events: none; }

/* круг 3 арт-директора: полосы ухода с процентом, карточка по содержимому, имя вида на телефоне */
.ig-pol { position: relative; }
.ig-pol::after { content: attr(data-p); position: absolute; right: 0; top: 0; font-size: 13px; font-weight: 800; color: var(--tekst); }
.ig-pol i { background: #ece6dc; }
.ig-pol i::after, .ig-pol[data-u="1"] i::after { background: var(--oranzh); }
.ig-pol[data-u="2"] i::after { background: #d2452c; }
.ig-pol[data-u="2"]::after { color: #c03a22; }
.ig-karta { height: auto !important; bottom: auto !important; }
.ig-kupit { margin-top: 16px !important; }
@media (max-width: 560px) {
  .ig-mini b { white-space: normal; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .chat { bottom: max(88px, var(--ig-chat-niz, 88px)); }
}

/* круг 1 тестера-мирмекипера: счётчик «сбежало», цель-ступень, разбор финала, полоски на телефоне */
.ig-cifry.chetyre { grid-template-columns: repeat(4, 1fr); }
.ig-cifry div[hidden] { display: none; }
.ig-cel { --v: 0; display: flex; flex-direction: column; gap: 5px; padding: 8px 11px 9px; border-radius: 12px; background: var(--bezh); }
.ig-cel[hidden] { display: none; }
.ig-cel div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.ig-cel span { font-size: 12.5px; font-weight: 700; color: var(--tekst-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ig-cel b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.ig-cel i { position: relative; display: block; height: 5px; border-radius: 4px; background: #ece6dc; overflow: hidden; }
.ig-cel i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--grafit); transition: width 0.4s ease; }
/* плашка на кнопке «Части фермы» не вылезает за карточку */
.ig-zhurnal-kn { min-width: 0; }
.ig-zhurnal-kn span { flex: none; }
.ig-zhurnal-kn em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ig-zhurnal-kn[data-k="zhurnal-kn"] em { flex: none; overflow: visible; }
/* окно «Колония обречена» */
.ig-okno-final .ig-stat { margin-bottom: 4px; }
.ig-razbor-zag { margin: 14px 0 6px; font-weight: 800; color: var(--tekst); }
.ig-razbor { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ig-razbor li { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 9px 11px; border-radius: 12px; background: var(--bezh); }
.ig-razbor b { grid-row: span 2; font-size: 12.5px; font-weight: 800; color: #b4530f; white-space: nowrap; }
.ig-razbor span { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ig-razbor small { font-size: 12.5px; font-weight: 600; color: var(--tekst-2); line-height: 1.4; }
/* полоски ухода строкой над кнопками - только на телефоне */
.ig-mpol { display: none; }
@media (max-width: 900px) {
  .ig-mpol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; order: 2; margin: 8px 12px 0; }
  .ig-mp { --v: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .ig-mp b { font-size: 11px; font-weight: 700; color: var(--tekst-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ig-mp i { position: relative; display: block; height: 6px; border-radius: 4px; background: #ece6dc; overflow: hidden; }
  .ig-mp i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 4px; transition: width 0.4s ease; }
  .ig-mp[data-c="voda"] i::after { background: #3b82f6; }
  .ig-mp[data-c="vlaga"] i::after { background: #14a3a3; }
  .ig-mp[data-c="syt"] i::after { background: var(--oranzh); }
  .ig-mp[data-c="chist"] i::after { background: #22a06b; }
  .ig-mp[data-u="2"] i::after { background: #d2452c; }
  .ig-mp[data-u="2"] b { color: #c03a22; }
  .ig-razbor li { grid-template-columns: 64px 1fr; }
}

/* круг 2 тестера: строка «ускорение снято», награды плашкой, день и цель на телефоне */
.ig-sbros { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 11px; border-radius: 11px; background: var(--bezh); }
.ig-sbros[hidden] { display: none; }
.ig-sbros span { font-size: 12.5px; font-weight: 700; color: var(--tekst-2); line-height: 1.3; min-width: 0; }
.ig-sbros button { flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--tekst); cursor: pointer; white-space: nowrap; }
.ig-sbros button:hover { background: var(--grafit); color: #fff; }
.ig-dost { position: absolute; left: 356px; top: 22px; z-index: 3; padding: 9px 15px 9px 13px; border-radius: 14px; background: #fff; box-shadow: var(--ten-2); font-size: 14px; font-weight: 800; color: var(--tekst); white-space: nowrap; pointer-events: none; }
.ig-dost::before { content: "★"; color: var(--oranzh); margin-right: 8px; }
.ig-dost[hidden] { display: none; }
.ig-dost.ig-mig { animation: dost-poyav 0.45s ease; }
@keyframes dost-poyav { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1240px) and (min-width: 901px) { .ig-dost { left: 330px; } }
.ig-mp-den { display: none; }
@media (max-width: 900px) {
  .ig-dost { left: 50%; top: 60px; transform: translateX(-50%); white-space: normal; max-width: calc(100% - 40px); text-align: center; animation: none !important; }
  .ig-mp-den { display: block; grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--tekst); }
}
/* в переезде кормить можно - кнопки корма живые, остальное ждёт */
.ig-scena .ig-instr { opacity: 1; }
.ig-scena .ig-uhod [data-deystvie], .ig-scena .ig-uhod [data-instr="pincet"] { opacity: 0.4; pointer-events: none; }
