/* «Битва Фермеров», мультяшный интерфейс: кремовые подушки с тёмным контуром и толстой нижней кромкой,
   сочные кнопки-леденцы, окна с лентой-заголовком. Один шрифт — Rubik, запасной — системный. */
:root { --ink: #3a1d0a; --cream: #fff8e7; --cream2: #ffeec6; --brown: #8a5a2a;
  --green-a: #b8ff6a; --green-b: #4cbb17; --green-c: #2f8f0c; --blue-a: #a8e0ff; --blue-b: #2f8fe8; --blue-c: #1d64c0;
  --pink-a: #ffc2e3; --pink-b: #e0559e; --wood-a: #f0b46a; --wood-b: #c47a34; --red-a: #ff8f7a; --red-b: #e8433a; }
/* всё, что нажимается, показывает палец под мышкой; выключенные кнопки — обычную стрелку */
button, [data-act], .m3-shop { cursor: pointer; }
button:disabled, [data-act][disabled], .disabled { cursor: default; }
body { background: #3f8f2e url(../img/page_bg.webp) center / cover no-repeat; font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); }
#scr-menu { background: #7fd0ff; }
#scr-game { background: #4d2c22; }
#cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }

/* кнопки-леденцы */
.btn { min-width: 250px; min-height: 54px; padding: 0 20px; border: 3px solid var(--ink); border-radius: 22px; font: inherit; font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(var(--blue-a), var(--blue-b) 55%, var(--blue-c)); text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .5);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 4px 0 rgba(255, 255, 255, .5), 0 6px 0 var(--ink), 0 10px 14px rgba(40, 20, 0, .3);
  transition: transform .07s, box-shadow .07s; position: relative; }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 4px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--ink); }
.btn-go { min-height: 64px; font-size: 24px; background: linear-gradient(var(--green-a), var(--green-b) 55%, var(--green-c)); animation: gopulse 1.6s ease-in-out infinite; }
.btn-sm { min-width: 0; min-height: 46px; font-size: 16px; border-radius: 18px; background: linear-gradient(var(--wood-a), var(--wood-b)); }
.btn-share { background: linear-gradient(var(--pink-a), var(--pink-b)); }
.btn-pair { display: flex; gap: 10px; }
.btn-pair .btn { flex: 1; min-width: 0; padding: 0 8px; white-space: nowrap; }   /* «Поделиться» помещается в половинку и стоит по центру */
@keyframes gopulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* окна: кремовая карточка, лента с заголовком, мягкое появление */
.overlay { background: radial-gradient(circle, rgba(30, 60, 20, .35), rgba(20, 30, 10, .7)); }
.overlay.show .panel { animation: panelin .32s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes panelin { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.panel { width: 318px; padding: 30px 18px 20px; margin-top: 18px; border-radius: 30px; color: var(--ink); align-items: stretch; gap: 11px;
  background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink);
  box-shadow: inset 0 -6px 0 rgba(200, 140, 60, .25), 0 8px 0 var(--ink), 0 20px 30px rgba(20, 10, 0, .45); }
.panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 8px; border-radius: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #f2c12e 0 14px, #ef3e5c 14px 28px, #8fdc4a 28px 42px, #3b9dff 42px 56px, #a46bff 56px 70px); opacity: .9; }
.panel-title { align-self: center; margin: -54px 0 2px; padding: 8px 30px 10px; font-size: 25px; font-weight: 900; color: #fff; text-align: center; white-space: nowrap;
  background: linear-gradient(var(--red-a), var(--red-b)); border: 3px solid var(--ink); border-radius: 16px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 var(--ink); position: relative; }
.panel-title::before, .panel-title::after { content: ""; position: absolute; top: 12px; width: 22px; height: 30px; background: #b8302a; border: 3px solid var(--ink); z-index: -1; }
.panel-title::before { left: -16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); border-right: 0; }
.panel-title::after { right: -16px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); border-left: 0; }
.res-line { font-size: 15px; font-weight: 700; text-align: center; color: var(--brown); }
.res-title { display: flex; justify-content: center; margin-top: -4px;}
.panel-res { gap: 10px; padding-top: 22px; width: 350px; }   /* 24.10 (Иван): окно итогов чуть шире (было 318) */
.res-stats { display: flex; gap: 7px; }
.res-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.res-stats b { font-size: 21px; font-weight: 900; color: var(--green-c); font-variant-numeric: tabular-nums; }
.res-stats span { font-size: 11px; color: var(--brown); font-weight: 700; }
.res-list { display: flex; flex-direction: column; gap: 5px; }
.res-row { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 6px; border-radius: 14px; background: #fff; border: 2px solid rgba(58, 29, 10, .18); font-size: 14px; font-weight: 800; }
.res-row svg { width: 24px; height: 24px; flex-shrink: 0; }
.res-row.me { background: #eaffd6; border-color: var(--green-b); box-shadow: 0 2px 0 var(--green-c); }   /* своя строка — зелёная, не как жёлтые достижения (Иван, 24.10) */
.res-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-c { font-size: 11px; color: var(--brown); font-weight: 700; }
.res-v { width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.help-row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.28; }
.help-row svg { flex-shrink: 0; width: 34px; height: 34px; }
.help-row i { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%); border: 3px solid var(--ink); }

/* рейтинг */
#lb-list { max-height: 300px; }
.lb-row { border-radius: 16px; background: #fff; color: var(--ink); font-weight: 800; border: 2px solid rgba(58, 29, 10, .15); }
.lb-row.top-1 { background: linear-gradient(90deg, #fff2a0, #ffd23f); }
.lb-row.top-2 { background: linear-gradient(90deg, #f4f7fb, #cdd5e0); }
.lb-row.top-3 { background: linear-gradient(90deg, #ffe0c4, #f0a46a); }
.lb-row.me { box-shadow: 0 0 0 3px var(--green-b); }
.lb-medal { font-weight: 900; }
.lb-medal.gold, .lb-medal.silver, .lb-medal.bronze { width: 30px; height: 30px; line-height: 26px; border-radius: 50%; border: 3px solid var(--ink); color: var(--ink); }
.lb-medal.gold { background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc21a 60%, #c98a00); }
.lb-medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c3ccd8 60%, #8a94a3); }
.lb-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffd9b0, #e0864a 60%, #a85a20); }
.lb-avatar { background: var(--green-b); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; border: 2px solid var(--ink); }
.lb-score { color: var(--green-c); font-size: 18px; font-weight: 900; }
.lb-empty { color: var(--brown); font-weight: 700; }
#toast { bottom: 300px;   /* выше панелей оживления и наблюдения внизу экрана */ padding: 10px 18px; border-radius: 18px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 15px; font-weight: 800; }

/* HUD: кремовые подушки поверх поля */
.hud { position: absolute; left: 0; top: 0; pointer-events: none; overflow: hidden; }
.hud > * { pointer-events: none; }
.hud .hud-pause, .hud .spect.show { pointer-events: auto; }
.bubble { background: linear-gradient(var(--cream), var(--cream2)); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 8px 12px rgba(20, 10, 0, .3); }
.hud-me { --crop: #f2c12e; position: absolute; left: 10px; top: 8px; width: 146px; padding: 6px 10px 9px 48px; border-radius: 20px; }
.hud-ico { position: absolute; left: -6px; top: -6px; width: 52px; height: 52px; filter: drop-shadow(0 3px 0 rgba(58, 29, 10, .35)); }
.hud-crop { font-size: 12px; font-weight: 800; color: var(--brown); }
.hud-pct { font-size: 28px; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-barbox { position: relative; height: 10px; margin: 6px 0 0 -38px; border-radius: 6px; background: #e8d4a8; overflow: hidden; border: 2px solid var(--ink); }
.hud-bar { height: 100%; background: repeating-linear-gradient(-45deg, var(--crop) 0 6px, color-mix(in srgb, var(--crop) 70%, #fff) 6px 12px); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s; }
.hud-barbox i { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--red-b); }
.hud-mid { position: absolute; left: 166px; top: 8px; display: grid; grid-template-columns: auto auto; justify-items: center; align-items: center; gap: 5px 4px; }
.hud-mid .hud-mode { grid-column: 1 / span 2; white-space: nowrap; }
.hud-time { display: flex; align-items: center; gap: 4px; padding: 3px 12px 3px 6px; border-radius: 16px; font-size: 20px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-time svg { width: 24px; height: 24px; }
.hud-mode { padding: 1px 9px; border-radius: 10px; background: rgba(255, 248, 231, .9); border: 2px solid var(--ink); font-size: 11px; font-weight: 800; color: var(--brown); }
.hud-pause { position: absolute; right: 10px; top: 30px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 25%, var(--green-a), var(--green-b) 70%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--ink); }
.hud-pause:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.hud-top { position: absolute; left: 10px; top: 92px; width: 152px; display: flex; flex-direction: column; gap: 4px; }
.top-row { --crop: #fff; display: flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 13px; background: rgba(255, 248, 231, .9); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; color: var(--ink); }
.top-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.top-row .crown { width: 16px; height: 16px; margin-left: -2px; }
.top-row.me { background: #fff2b0; box-shadow: 0 0 0 2px #ffa21a; }
.top-row.out { opacity: .55; text-decoration: line-through; }
.top-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-val { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.feed { position: absolute; left: 50%; top: 70px; width: 210px; margin-left: -105px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.feed-row { max-width: 210px; padding: 3px 10px; border-radius: 12px; background: var(--cream); border: 2px solid var(--ink); border-left-width: 6px; font-size: 12px; font-weight: 800; text-align: center; color: var(--ink);
  animation: feedin .3s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes feedin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.banner { position: absolute; left: 0; right: 0; top: 34%; display: none; justify-content: center; font-size: 100px; font-weight: 900; color: #fff2b0;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink), 0 14px 20px rgba(0, 0, 0, .4); }
.banner.show { display: flex; animation: bannerin .4s cubic-bezier(.2, 1.6, .4, 1); }
.banner.small { top: 44%; font-size: 22px; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
.banner.small.show { left: 50%; right: auto; transform: translateX(-50%); padding: 8px 18px; border-radius: 18px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); white-space: nowrap; animation: none; }
.banner.go { color: #c8ff6a; }
/* 28.10 (Сергей): ждём новый раунд (js/game.js) — поле прошлого раунда затемнено, перед текстом крутится колесо: видно, что игра не зависла */
.banner.small.wait.show { align-items: center; gap: 10px; }
#app.rwait #cv { filter: brightness(.5); }   /* поле прошлого раунда затемнено, пока ждём новый (класс ставит banner в js/game.js) */
.banner.wait::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(42, 26, 10, .22); border-top-color: var(--ink); animation: bwait .8s linear infinite; }
@keyframes bwait { to { transform: rotate(360deg); } }
@keyframes bannerin { from { transform: scale(1.9) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.spect { position: absolute; left: 50%; bottom: 26px; width: 304px; margin-left: -152px; display: none; flex-direction: column; align-items: center; gap: 7px; padding: 14px;
  border-radius: 24px; background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.spect.show { display: flex; }
.spect-text { font-size: 17px; font-weight: 900; text-align: center; color: var(--red-b); }
.spect-sub { font-size: 13px; font-weight: 600; color: var(--brown); text-align: center; }
.spect .btn { min-width: 160px; }
.spect .btn-go { min-width: 220px; min-height: 52px; font-size: 21px; }   /* «Новый бой» (аудит 25.10) */
.spect .btn-sm { min-width: 220px; min-height: 52px; font-size: 21px; border-radius: 22px; }   /* «В меню» — такого же размера, как «Новый бой» (Иван, 25.10) */

/* монеты за раунд, отметки целей на полосе, всплывающие цели и место */
.hud-coins { display: flex; align-items: center; gap: 4px; padding: 1px 10px 1px 4px; border-radius: 14px; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hud-coins svg { width: 22px; height: 22px; }
.mt { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--ink); opacity: .45; }
.mt.on { background: #ffd23f; opacity: 1; box-shadow: 0 0 6px #ffd23f; }
.mile-pop { position: absolute; left: 50%; top: 31%; display: none; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; }
.mile-pop.show { display: flex; animation: milein 1.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.mile-pop b { font-size: 46px; font-weight: 900; color: #c8ff6a; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); white-space: nowrap; }
.mile-pop.king b { color: #ffd23f; font-size: 36px; }
.mile-pop span { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 12px 3px 6px; border-radius: 16px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 22px; font-weight: 900; }
.mile-pop span svg { width: 28px; height: 28px; }
@keyframes milein { 0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-8deg); } 15% { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(2deg); } 25% { transform: translateX(-50%) scale(1) rotate(0); } 80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
.rank-pop { position: absolute; right: 12px; top: 238px; display: none; padding: 5px 14px; border-radius: 16px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 18px; font-weight: 900; color: #fff; pointer-events: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.rank-pop.up { background: linear-gradient(var(--green-a), var(--green-b)); }
.rank-pop.down { background: linear-gradient(var(--red-a), var(--red-b)); }
.rank-pop.show { display: block; animation: rankin 1.6s ease-out forwards; }
@keyframes rankin { 0% { opacity: 0; transform: translateX(30px); } 12% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* гараж */
.panel-garage { width: 336px; gap: 10px; }
.gar-head { display: flex; align-items: center; gap: 8px;}
.gar-coins { display: flex; align-items: center; gap: 4px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); font-weight: 900;}

.gar-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 16px; background: #e8d4a8; border: 2px solid var(--ink); }
.gar-tab { border: 0; border-radius: 12px; min-height: 36px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 800; color: var(--brown); background: none; }
.gar-tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.lb-tabs { width: max-content; margin: 2px auto 8px; }
.lb-tabs .gar-tab { min-width: 88px; padding: 6px 9px; font-size: 13px; }
#gar-list { max-height: 330px; display: flex; flex-direction: column; gap: 8px; }
.gar-card { display: flex; gap: 8px; padding: 8px 10px; border-radius: 18px; background: #fff; border: 3px solid rgba(58, 29, 10, .2);}
.gar-card.sel { border-color: var(--green-b); background: #f2ffe2; }
.gar-pic { width: 93px; height: 63px; flex-shrink: 0; }   /* 24.10: трактор по горизонтали и целиком (js/ui.js tractorPreview) */
.gar-ico { width: 46px; height: 46px; flex-shrink: 0; }
.gar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gar-txt b { font-weight: 900;}
.gar-txt span { font-size: 12px; font-weight: 600; color: var(--brown); line-height: 1.25; }
.gar-dots { display: flex; gap: 4px; margin-top: 3px; }
.gar-dots em { width: 16px; height: 8px; border-radius: 4px; background: #e8d4a8; border: 2px solid rgba(58, 29, 10, .35); }
.gar-dots em.on { background: var(--green-b); border-color: var(--green-c); }
.gar-btn { flex-shrink: 0; display: flex; align-items: center; gap: 3px; padding: 0 12px 0 6px; border: 3px solid var(--ink); font: inherit; font-weight: 900; color: var(--ink);
  background: linear-gradient(#fff2a0, #ffc21a); box-shadow: 0 4px 0 var(--ink);}

.gar-btn.pick { padding: 0 12px; background: linear-gradient(var(--green-a), var(--green-b)); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gar-btn.poor { filter: grayscale(.6); opacity: .75; }
.gar-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.gar-on { flex-shrink: 0; display: flex; align-items: center; padding: 0 12px; border: 3px solid var(--ink); font-weight: 900; color: #2a7a0a;
  background: linear-gradient(#f0ffe0, #b6ea8c); box-shadow: inset 0 -3px 0 rgba(30, 90, 0, .18), 0 1px 0 var(--ink); transform: translateY(3px); position: relative; isolation: isolate;}   /* 24.10 (Иван): «Выбран»/«Максимум» в стиле кнопок, но утоплены — уже нажато */
.gar-on::before { content: ""; position: absolute; z-index: -1; left: 6px; right: 6px; top: 2px; height: 36%; border-radius: 9px; background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .1)); pointer-events: none; }
/* кнопка рывка и значки бонусов */
.dash-btn { --cd: 0; position: absolute; left: 16px; bottom: 26px;   /* слева: на телефоне жать левой рукой, правая ведёт трактор */ width: 86px; height: 86px; border-radius: 50%; border: 4px solid var(--ink); display: none; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(rgba(58, 29, 10, .55) calc(var(--cd) * 360deg), transparent 0), radial-gradient(circle at 35% 25%, #ffe58a, #ffa21a 70%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 5px 0 var(--ink); pointer-events: auto; touch-action: none; font: inherit; color: var(--ink); }
.dash-btn.show { display: flex; }
.dash-btn svg { width: 40px; height: 40px; }
.dash-btn span { font-size: 12px; font-weight: 900; }
.dash-btn.ready { animation: gopulse 1s ease-in-out infinite; }
.dash-btn:active { transform: translateY(4px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.hud-fx { position: absolute; left: 10px; top: 236px; display: flex; flex-direction: column; gap: 4px; }
.hud-fx span { padding: 2px 10px; border-radius: 12px; border: 2px solid var(--ink); font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); animation: feedin .3s; }
.hud-fx .fx-f { background: linear-gradient(var(--red-a), var(--red-b)); }
.hud-fx .fx-u { background: linear-gradient(var(--green-a), var(--green-b)); }
.hud-fx .fx-s { background: linear-gradient(var(--blue-a), var(--blue-b)); }

/* оживление */
.revive { position: absolute; left: 50%; bottom: 24px; width: 312px; margin-left: -156px; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px 12px;
  border-radius: 26px; background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); pointer-events: auto; animation: panelin .3s cubic-bezier(.2, 1.5, .4, 1); }
.revive.show { display: flex; }
.revive-title { font-size: 22px; font-weight: 900; text-align: center; color: var(--red-b); }
.revive-sub { font-size: 13px; font-weight: 600; text-align: center; color: var(--brown); }
.revive .btn { min-width: 0; }
.btn-ico { width: 24px; height: 24px; vertical-align: -5px; margin: 0 2px; }
.revive-bar { height: 10px; border-radius: 6px; background: #e8d4a8; border: 2px solid var(--ink); overflow: hidden; }
.revive-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-b), #ffd23f); transform-origin: 0 50%; }
/* достижения */
#ach-list { max-height: 360px; display: flex; flex-direction: column; gap: 7px; }
.ach-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 18px; background: #fff; border: 3px solid rgba(58, 29, 10, .18); }
.ach-card.done { background: #f2ffe2; border-color: var(--green-b); }
.ach-ico { width: 40px; height: 40px; flex-shrink: 0; }
.ach-card:not(.done) .ach-ico { filter: grayscale(.7); opacity: .7; }
.ach-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ach-txt b { font-size: 15px; font-weight: 900; }
.ach-txt span { font-size: 12px; font-weight: 600; color: var(--brown); }
.ach-txt small { font-size: 11px; font-weight: 800; color: var(--brown); font-variant-numeric: tabular-nums; }
.ach-bar { display: block; height: 8px; margin-top: 2px; border-radius: 5px; background: #e8d4a8; overflow: hidden; }
.ach-bar em { display: block; height: 100%; background: linear-gradient(90deg, var(--green-b), var(--green-a)); }
.ach-rew { flex-shrink: 0; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 900; color: var(--green-c); }
.ach-rew svg { width: 20px; height: 20px; }
/* 24.10: четыре вкладки достижений (Победы, Урожай, Схватки, Ферма) — под каждой сколько выполнено из 25 */
.ach-tabs { align-self: stretch; }
.ach-tabs .gar-tab { flex: 1; min-width: 0; padding: 4px 1px 3px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; white-space: nowrap; font-size: 13px; }
.ach-tabs .gar-tab small { font-size: 10.5px; font-weight: 800; color: #9a7a52; font-variant-numeric: tabular-nums; }
.ach-tabs .gar-tab.on small { color: var(--green-c); }
.ach-tabs .gar-tab.full small { color: var(--green-c); }
/* 24.10 (Иван): места игроков и новые достижения — один список в одной прокрутке; не влезло — низ тает, пока не долистали */
.res-scroll { display: flex; flex-direction: column; gap: 5px; max-height: clamp(150px, calc(100vh - 380px), 300px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffa21a transparent; padding: 1px 2px 4px; margin: 0 -2px; }   /* низкий экран — список короче, окно целиком на экране */
.res-scroll > * { flex-shrink: 0; }
.res-scroll.more { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.res-scroll.more.end { -webkit-mask-image: none; mask-image: none; }
.res-ach { display: flex; flex-direction: column; gap: 4px; }
.res-ach div { flex-shrink: 0; }
.res-ach-n { text-align: center; font-size: 12px; font-weight: 800; color: #b8741a; margin: 0 0 -1px; }
.res-ach:not(:empty) { margin-bottom: 4px; }
.res-ach div { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 14px; background: #fff2b0; border: 2px solid #ffa21a; font-size: 13px; font-weight: 800; }
.res-ach svg { width: 24px; height: 24px; flex-shrink: 0; }

/* номер комнаты над паузой */
.hud-room { position: absolute; right: 6px; top: 200px; min-width: 100px; text-align: center; display: none; padding: 1px 9px; border-radius: 10px; background: rgba(255, 248, 231, .95); border: 2px solid var(--ink); font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.hud-room.show { display: block; }

  background: linear-gradient(var(--pink-a), var(--pink-b)); box-shadow: 0 3px 0 var(--ink); pointer-events: auto; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
/* затемнение краёв поля (раньше рисовалось на холсте каждый кадр) */
.vign { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle farthest-corner at 50% 50%, rgba(10, 0, 20, 0) 55%, rgba(10, 0, 20, .3) 100%); }
/* временные усиления в бою: справа внизу, с оставшимся временем */
.hud-bst { position: absolute; right: 10px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hud-bst span { display: flex; align-items: center; gap: 4px; padding: 1px 9px 1px 2px; border-radius: 13px; background: rgba(255, 248, 231, .95); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; animation: feedin .3s; }
.hud-bst span i { font-style: normal; }
.hud-bst span b { color: #2a7a14; font-variant-numeric: tabular-nums; }
.hud-bst svg { width: 22px; height: 22px; display: block; }
/* гараж (как в agrario.net): вкладки делят ширину поровну и не вылезают; кнопка покупки — под описанием, справа */
.gar-head .gar-tabs { flex: 1 1 100%; min-width: 0; }   /* три вкладки (Тракторы, Улучшения, Скины) — своим рядом во всю ширину, под очками */
.gar-head { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.gar-head .gar-tab { flex: 1; min-width: 0; white-space: nowrap;}
.gar-card { align-items: center; }
.gar-txt b { font-size: 15px; line-height: 1.15; }
.gar-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
.gar-foot > :only-child { margin-left: auto; }
.gar-foot .gar-dots { margin-top: 0; }
.gar-btn { min-height: 36px; font-size: 15px; border-radius: 14px; }
.gar-btn svg { width: 20px; height: 20px; }
.gar-on { min-height: 36px; border-radius: 14px; font-size: 14px; }
.gar-coins { font-size: 16px; padding: 3px 10px 3px 4px; }
.gar-coins svg { width: 22px; height: 22px; }
/* окно «Предложить улучшение» */
.panel-idea { width: 340px; gap: 10px; }
.idea-intro { font-size: 15px; line-height: 1.35; font-weight: 700; text-align: center; color: var(--brown); }
.idea-text { width: 100%; min-height: 128px; resize: none; padding: 10px 12px; border-radius: 14px; border: 3px solid var(--ink); background: #fff;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; outline: none; box-shadow: inset 0 3px 0 rgba(58, 29, 10, .12); }
.idea-text:focus { border-color: #2f8fe8; }
.idea-cnt { margin-top: -6px; font-size: 12px; font-weight: 700; color: var(--brown); text-align: right; }
.panel-idea .btn-pair { display: flex; gap: 10px; width: 100%; }
.panel-idea .btn-pair .btn { min-height: 54px; font-size: 18px; }
.btn-grey { background: linear-gradient(#f3ead6, #d9c9a6); color: var(--ink); text-shadow: none; animation: none; }
#idea-send[disabled] { opacity: .6; }
/* обучение по шагам (как в agrario.net): сценка, точки шагов, фраза, «Назад / Дальше», крестик */
.panel-tut { width: 336px; gap: 9px; }
.tut-cv { display: block; width: 300px; height: 180px; align-self: center; border-radius: 16px; border: 3px solid var(--ink); background: #5b3324; box-shadow: 0 4px 0 rgba(58, 29, 10, .35); }
.tut-dots { display: flex; justify-content: center; gap: 6px; }
.tut-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e8d4a8; border: 2px solid rgba(58, 29, 10, .4); }
.tut-dots i.done { background: var(--green-b); border-color: var(--green-c); }
.tut-dots i.on { width: 24px; border-radius: 6px; background: var(--green-b); border-color: var(--ink); }
.tut-text { min-height: 66px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-size: 17px; font-weight: 800; line-height: 1.3; text-align: center; color: var(--ink); }
.tut-note { font-size: 13px; }
.tut-btns .btn-sm { flex: 0 0 34%; }
.tut-btns .btn-go { min-height: 54px; font-size: 21px; animation: none; }

/* крестик в правом верхнем углу окна (обучение): закрыть и сразу играть */
.panel { position: relative; }
.panel-x { position: absolute; top: -14px; right: -14px; z-index: 2; width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(#fff8e7, #f0dcb0); color: var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.panel-x:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.panel-x * { pointer-events: none; }
.panel-tut .tut-cv { margin-top: 6px; }
/* рейтинг шире: после имени два столбца — «Победы» (всего) и «Очки» (за вкладку); подписи над списком (#lb-head) */
.panel-lb { width: 352px; padding-left: 14px; padding-right: 14px; }
.panel-lb .lb-row { gap: 6px; padding: 7px 8px 7px 6px; }
.panel-lb .lb-medal { width: 28px; }
.panel-lb .lb-medal.gold, .panel-lb .lb-medal.silver, .panel-lb .lb-medal.bronze { width: 28px; height: 28px; line-height: 24px; }
.panel-lb .lb-avatar { width: 32px; height: 32px; }
.panel-lb .lb-name { font-size: 15px; }
.lb-wins { flex-shrink: 0; width: 44px; text-align: center; font-size: 16px; font-weight: 900; color: var(--ink); }
.panel-lb .lb-score { width: 70px; text-align: right; font-size: 16px; }
/* вкладки «Победы онлайн / Очки» над вкладками дат; столбец, по которому места, — зелёный */
.by-wins .lb-wins { color: var(--green-c); }
/* своя строка внизу рейтинга (не в двадцатке): отступ сверху, место может быть длинным (#1234) */
.lb-row.tail { margin-top: 6px; }
.panel-lb #lb-list { padding: 3px 3px 4px; margin: 0 -3px; }   /* зелёная обводка своей строки не обрезается краем списка */
.panel-lb .lb-row.tail .lb-medal { width: auto; min-width: 28px; font-size: 14px; }
.by-wins .panel-lb .lb-score { color: var(--ink); }
/* «Победы online» и «Очки» — кнопки-заголовки над своими столбцами: выбранная (по ней места) зелёная, другая светлая */
.lb-head { display: flex; justify-content: flex-end; gap: 6px; margin: -2px 0 -1px; padding-right: 7px; }
.lb-hbtn { width: 66px; height: 40px; padding: 0 3px; border-radius: 14px; border: 3px solid var(--ink); font: inherit; font-size: 12px; line-height: 1.05; font-weight: 900; color: var(--brown); cursor: pointer;
  background: linear-gradient(#fffaf0, #f0e2c2); box-shadow: inset 0 -3px 0 rgba(58, 29, 10, .12), 0 3px 0 var(--ink); transition: transform .07s, box-shadow .07s; }
.lb-hbtn:first-child { width: auto; padding: 0 10px; white-space: nowrap; }   /* «Победы online» в одну строку */
#lb-sub { white-space: pre-line; }   /* «за эту неделю» и «сброс в понедельник» — двумя строками */
.lb-hbtn:last-child { font-size: 14px; }
.lb-hbtn.on { color: #fff; background: linear-gradient(#b8f56a, #5cc02e 55%, #3f9a1c); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 -3px 0 rgba(20, 70, 0, .35), 0 3px 0 var(--ink); }
.lb-hbtn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(58, 29, 10, .12), 0 0 0 var(--ink); }
/* окно «Задание дня»: текст, полоса прогресса, награда, статус */
.panel-quest { width: 330px; gap: 12px; }
.q-text { text-align: center; font-size: 21px; font-weight: 900; line-height: 1.2; color: var(--ink); padding: 4px 6px 0; }
.q-bar { position: relative; height: 30px; border-radius: 15px; border: 3px solid var(--ink); background: #f0e2c2; overflow: hidden; }
.q-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#b8f56a, #5cc02e 55%, #3f9a1c); transition: width .4s; }
.q-bar span { position: relative; display: block; text-align: center; line-height: 24px; font-size: 16px; font-weight: 900; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.q-rew { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 18px; font-weight: 800; color: var(--brown); }
.q-rew svg { width: 26px; height: 26px; }
.q-rew b { font-size: 22px; font-weight: 900; color: var(--ink); }
.q-rew b + svg { margin-left: 8px; }   /* монеты — после очков */
.q-status { text-align: center; font-size: 14px; font-weight: 700; color: var(--brown); }
#ov-quest.done .q-status { font-size: 17px; font-weight: 900; color: #2f8f0c; }
.panel-quest .btn-pair { display: flex; gap: 10px; width: 100%; }
.panel-quest .btn-pair .btn { flex: 1; }
/* окна снова светлые, кремовые (23.10.2026, просьба Ивана); тёмная тема окон — в копии style.dark-windows.css */
/* экран загрузки: дневное поле, название как в меню */
#scr-loading { color: #f3ecdc; }   /* фон — в index.html: картинка меню и её крошечная копия, пока грузится */
#scr-loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(2, 10, 7, .35), rgba(2, 10, 7, .55)); }
#load-title { -webkit-text-stroke: 0; text-shadow: none; color: inherit; margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; }
.load-sub { color: #23271f; background: #fffdf6; border: 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .4); font-weight: 700; }
.load-bar { background: rgba(0, 0, 0, .45); border: 2px solid rgba(232, 190, 96, .55); box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
#load-fill { background: linear-gradient(90deg, #ffb340, #ff8a14 50%, #6cc23e); }
.load-row { color: #f3ecdc; font-weight: 700; }
#load-tip { color: #c9b791; }
.res-title { line-height: 1; padding: 4px 0 6px; } .res-tt { font-size: 46px; }   /* «ПОБЕДА!» / «НЕ ВЫШЛО» — как «БИТВА» в меню */
.revive, .spect { z-index: 5; }   /* плашки «Тебя переехали» и «Ты выбыл» — поверх кнопки «Рывок» (она в разметке ниже) */
/* окно «Сложность ботов» перед тренировкой: пять кнопок, выбранная — с зелёной обводкой */
.panel-lv { width: 330px;}
.lv-list { display: flex; flex-direction: column;}
.lv-btn { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; width: 100%;
  border: 3px solid var(--ink); border-radius: 18px; font: inherit; color: #fff; text-align: left; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--ink);}
.lv-btn * { pointer-events: none; }
.lv-btn:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.lv-btn b { font-weight: 900;}
.lv-btn span { grid-column: 1; font-size: 12.5px; font-weight: 700; opacity: .95; }
.lv-btn i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 13px; font-weight: 900; padding: 4px 8px; border-radius: 10px; background: rgba(0, 0, 0, .22); white-space: nowrap; }
.lv-btn.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green-b), 0 4px 0 var(--ink); }
.lv-auto { background: linear-gradient(#a088f0, #6a48d0 60%, #4a2c9e); }   /* 24.10 (Иван): цвета глубже — белые подписи читаются */

   /* 25.10 (Иван): от зелёного к красному — средние жёлто-оливковые */

   /* «Все против тебя» — тёмно-красная, самая трудная (25.10) */
.panel-lv { gap: 8px; }  .lv-btn { padding: 6px 14px 7px; } .lv-btn b { font-size: 18px; }   /* шесть вариантов помещаются на низких экранах */
/* гараж, вкладка «Рисунок на крышу»: трактор носом вверх сверху, плитки по 3 в ряд */
.tl-top { gap: 6px; padding: 6px 10px; }
.tl-top .gar-pic { width: 80px; height: 80px; }
.gar-head .gar-tab.two { white-space: normal; line-height: 1.05; font-size: 11px; }   /* «Рисунок на крышу» — в две строки */
.gar-head .gar-tab { font-size: 12px; padding: 6px 1px; }   /* четыре вкладки в ряд */
.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tl-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px 6px; border-radius: 16px; background: #fff; border: 3px solid rgba(58, 29, 10, .2); text-align: center; }
.tl-tile.sel { border-color: var(--green-b); background: #f2ffe2; }
.tl-tile b { font-size: 13px; font-weight: 900; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; }
.tl-pic { width: 58px; height: 58px; padding: 6px; border-radius: 12px; background: linear-gradient(#c9eeff, #7fcaf5 55%, #4a9fd8); border: 2px solid #1d3f66; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }   /* голубая крыша */
.tl-pic img, .tl-pic canvas { width: 100%; height: 100%; display: block; }   /* 24.10: рисунки кодом — без пикселизации */
.tl-pic.none { font-size: 12px; font-weight: 900; color: #1d3f66; }
.tl-tile .gar-btn { min-height: 32px; font-size: 13px; padding: 0 8px 0 4px; border-radius: 12px; }
.tl-tile .gar-btn.pick { padding: 0 9px; }
.tl-tile .gar-btn svg { width: 17px; height: 17px; }
.tl-tile .gar-on { min-height: 32px; padding: 0 9px; font-size: 12px; border-radius: 12px; }
/* учётка браузерной версии (js/account.js): окно входа и строка в «Аватарах» */
.panel-login { width: 340px; gap: 6px; align-items: stretch; }
.lg-lab { font-size: 14px; font-weight: 900; color: var(--brown); margin-top: 4px; }
.lg-in { width: 100%; height: 46px; padding: 0 12px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); outline: none; box-sizing: border-box; }
.lg-in:focus { border-color: #2f8fe8; }
.lg-hint { min-height: 15px; font-size: 12px; font-weight: 700; color: var(--brown); line-height: 1.25; }
.lg-hint.good { color: #2f7a18; } .lg-hint.bad { color: #d8262c; }
.lg-check { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; }
.lg-check input { width: 22px; height: 22px; accent-color: #3aa01a; margin: 0; }
.lg-err { min-height: 18px; font-size: 14px; font-weight: 800; color: #d8262c; text-align: center; }
.panel-login .btn-pair { display: flex; gap: 10px; width: 100%; }
.panel-login .btn-pair .btn { flex: 1; min-height: 54px; font-size: 18px; }
.panel-login .btn[disabled] { opacity: .6; }
.lg-note { font-size: 12px; font-weight: 700; color: var(--brown); text-align: center; line-height: 1.3; }
.lg-note a, .cs-text a { color: #1b6fd0; font-weight: 900; }
/* вход через Google — белая кнопка с цветной «G», как просит Google */
.lg-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 4px; border-radius: 14px; border: 3px solid var(--ink); background: #fff;
  font: inherit; font-size: 17px; font-weight: 800; color: #1f1f1f; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.lg-google:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.lg-google[hidden], .lg-or[hidden] { display: none; }
/* 27.10: вход через Яндекс ID — белая, как кнопка Google (Сергей); значок — официальный, из документации Яндекс ID (login-with-yandex-8-2.svg) */
.lg-google:not([hidden]) + .lg-google { margin-top: 10px; }
.lg-or { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 12px; font-weight: 800; color: var(--brown); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 2px; background: rgba(58, 29, 10, .25); }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lg-row .lg-check { margin-top: 6px; }
.lg-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 800; color: #1b6fd0; text-decoration: underline; cursor: pointer; }
.lg-link[hidden] { display: none; }
.ac-nick { display: flex; gap: 8px; }
.ac-nick .lg-in { flex: 1 1 auto; width: auto; min-width: 0; }
.panel-login .ac-nick .ac-save { flex: 0 0 auto; width: auto; min-width: 0; min-height: 46px; margin: 0; padding: 0 14px; font-size: 16px; }
.ac-email { font-size: 16px; font-weight: 800; color: var(--ink); word-break: break-all; }
/* 27.10: галочка «Отображать фото профиля в рейтинге» под почтой */
.ac-photo { margin-top: 8px; font-size: 14px; line-height: 1.2; }
.ac-photo[hidden], .ac-photo-note[hidden] { display: none; }
.ac-photo-note { font-size: 12px; font-weight: 700; color: var(--brown); line-height: 1.25; margin-left: 30px; }
.lb-avatar img { border-radius: 50%; }
.ac-verify { font-size: 13px; font-weight: 700; color: #b5651d; line-height: 1.3; }
.ac-verify[hidden], #ac-main[hidden], #ac-delbox[hidden] { display: none; }
.ac-del { align-self: center; color: #c22; font-size: 13px; margin-top: 2px; }
/* 25.10 (Иван): «Аватары» + «Аккаунт» = одно окно «Аккаунт и аватары» (#ov-av): карточка учётки (вариант C), заголовок «Аватары», сетка — всё в одной прокрутке, «Готово» внизу */
.panel-acc [hidden] { display: none !important; }
.panel-acc .panel-title { font-size: 22px; padding: 9px 22px 10px; }   /* «Аккаунт и аватары» длиннее — чуть мельче, чтобы лента влезла */
.av-body { display: flex; flex-direction: column; max-height: 540px; margin: 0 -8px; padding: 2px 8px 4px; }
.av-body .av-grid { max-height: none; flex: none; }
.ac-card { flex: none; display: flex; flex-direction: column; padding: 12px; border-radius: 18px; background: #fff; border: 3px solid rgba(58, 29, 10, .2); }
.ac-card .acc-row { gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; }
.ac-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ac-card .acc-row .ac-who span { flex: none; }
.ac-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ac-name b { min-width: 0; font-size: 18px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-card .ac-email { font-size: 13px; font-weight: 700; color: var(--brown); word-break: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-guest { font-size: 15px; font-weight: 800; }
.ac-pen { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #f3ead6; box-shadow: 0 2px 0 rgba(58, 29, 10, .35); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ac-pen:active { transform: translateY(2px); box-shadow: none; }
.ac-pen * { pointer-events: none; }
.panel-acc .ac-btn { flex: none; width: auto; min-width: 0; height: 40px; min-height: 40px; margin: 0; padding: 0 14px; font-size: 15px; border-radius: 14px; animation: none; }
.panel-acc .btn[disabled] { opacity: .6; }
.ac-main { display: flex; flex-direction: column; gap: 4px; }
.ac-main .ac-nick { margin-top: 10px; }
.ac-main .lg-in { height: 40px; font-size: 16px; border-width: 2.5px; border-radius: 12px; padding: 0 10px; }
.ac-main .lg-hint:empty, .ac-main .lg-err:empty { min-height: 0; }
.ac-foot { display: flex; justify-content: center; margin-top: 8px; padding-top: 8px; border-top: 2px dashed rgba(58, 29, 10, .16); }
.ac-foot .ac-del { margin: 0; padding: 0; }
.av-head { flex: none; display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 19px; font-weight: 900; color: var(--brown); }
.av-head::before, .av-head::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: rgba(58, 29, 10, .18); }
#ac-delbox { display: flex; flex-direction: column; gap: 8px; }
#lg-pass2-box[hidden] { display: none; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 16px; background: #fff; border: 3px solid rgba(58, 29, 10, .2); font-size: 15px; font-weight: 700; color: var(--ink); box-sizing: border-box; }
.acc-row[hidden] { display: none; }
.acc-row b { font-weight: 900; }
.acc-row span { flex: 1; min-width: 0; }
.acc-row .acc-btn { flex: none; width: auto; min-width: 0; max-width: 150px; min-height: 40px; margin: 0; padding: 0 18px; font-size: 16px; }
/* бой на ПК в браузере (body.pcg, js/pc.js): время и сезон — вверху по центру, очки — вверху справа, у кнопки паузы */
body.pcg .hud-mid { display: contents; }
body.pcg .hud-time { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); }
body.pcg .hud-mode { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); }
body.pcg .hud-coins { position: absolute; right: 68px; top: 40px; }
/* наш аватар в кружке рейтинга (игроки из браузера, ui.js lbPhoto) */
.lb-avatar.pic { background: none; border: 0; overflow: visible; }
.lb-avatar.pic svg { display: block; width: 100%; height: 100%; }
/* гараж: подпись под монетами */
.gar-note { flex: 1 1 100%; margin-top: -2px; text-align: center; font-size: 13px; font-weight: 800; color: var(--brown); }
/* окно «Вы играете на телефоне / на компьютере» (js/account.js): учётка открыта на другом устройстве */
.panel-away { width: 340px; gap: 10px; align-items: center; text-align: center; }
.aw-ico { line-height: 0; }
.aw-text { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--brown); }
.panel-away .btn[disabled] { opacity: .6; }
/* окно «Ежедневный бонус» (js/daily.js): монета с лучами, +10, спасибо, «Продолжить» */
.panel-daily { width: 340px; gap: 6px; align-items: center; text-align: center; }
.dl-gift { position: relative; width: 150px; height: 128px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.dl-rays { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 210, 60, .55) 0 12deg, rgba(255, 210, 60, 0) 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: dlspin 9s linear infinite; }
@keyframes dlspin { to { transform: rotate(360deg); } }
.dl-coin { position: relative; width: 104px; height: 104px; filter: drop-shadow(0 4px 0 rgba(58, 29, 10, .35)); animation: dlbob 1.8s ease-in-out infinite; }
@keyframes dlbob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.dl-gift b { position: absolute; right: -8px; bottom: 4px; font-size: 38px; font-weight: 900; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; line-height: 1; }
.dl-sub { margin-top: -4px; font-size: 18px; font-weight: 900; color: #b8741a; }
.dl-text { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--brown); text-align: center; }   /* 25.10 (Сергей): текст во всех окнах — по центру */
.dl-note { font-size: 12.5px; font-weight: 700; color: #9a7a52; margin-bottom: 4px; }
.panel-daily .btn-go { align-self: stretch; }
/* 24.10: окно «Уровень игрока» — номер в звезде, полоса до следующего уровня */
.panel-level { width: 330px; gap: 8px; align-items: center; text-align: center; }
.lv-badge { position: relative; width: 120px; height: 120px; margin-top: 2px; }
.lv-badge svg { width: 120px; height: 120px; filter: drop-shadow(0 4px 0 rgba(58, 29, 10, .3)); }
.lv-badge b { position: absolute; left: 0; right: 0; top: 47px; font-size: 34px; font-weight: 900; line-height: 1; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.lv-cap { font-size: 22px; font-weight: 900; color: var(--ink); }
.lv-bar { position: relative; align-self: stretch; height: 26px; border-radius: 13px; border: 3px solid var(--ink); background: #f0e2c2; overflow: hidden; }
.lv-bar em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#b8f56a, #5cc02e 55%, #3f9a1c); }
.lv-bar span { position: relative; display: block; line-height: 20px; font-size: 13px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-next { font-size: 14px; font-weight: 800; color: #2f8f0c; }
.lv-text { font-size: 14px; }
.panel-level .btn-go { align-self: stretch; }
/* 24.10: окно «Новые достижения» — один раз старым игрокам после обновления (js/ach.js achNoteCheck) */
.an-pts { display: flex; align-items: center; gap: 6px; margin-top: -6px; font-size: 30px; font-weight: 900; color: var(--green-c); }
.an-pts svg { width: 34px; height: 34px; }
.panel-achnew .btn-pair { display: flex; gap: 8px; align-self: stretch; }
.panel-achnew .btn-pair .btn { flex: 1; min-width: 0; }
/* мягкий перезапуск сервера (js/game.js gameDrain): маленькая надпись в онлайн-бою */
.drain-note { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); display: none; z-index: 6; pointer-events: none;
  padding: 5px 12px; border-radius: 12px; background: rgba(255, 246, 220, .92); border: 2px solid var(--ink); font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.drain-note.show { display: block; }
@media (max-width: 600px) { .drain-note { left: auto; right: 10px; transform: none; font-size: 12px; } }   /* телефон: правее кнопки «Рывок» */
/* 24.10: загрузка на ПК (js/pc.js body.pcl) — на всё окно: тёмная пашня, как поле в меню ПК, без картинки-подложки; название и полоса крупнее */
html.pcload #scr-loading, body.pcl #scr-loading { background-color: #3a2416; background-repeat: repeat; background-position: 0 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 230, 190, .07) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, rgba(255, 230, 190, .06) 0 1px, transparent 1.5px),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .26) 0 5px, rgba(255, 255, 255, .02) 5px 9px, rgba(0, 0, 0, 0) 9px 18px);
  background-size: 23px 19px, 31px 27px, auto; }
html.pcload #scr-loading::before, body.pcl #scr-loading::before { background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55)); }
html.pcload .load-box, body.pcl .load-box { transform: scale(1.55); }
/* 24.10 (Иван): объём всем кнопкам с текстом, как в главном меню — белый блик сверху. isolation + z-index −1: блик над фоном кнопки, но под надписью и значками */
.btn, .gar-btn, .lv-btn, .bst-t { position: relative; isolation: isolate; }
.btn::before, .gar-btn::before, .lv-btn::before, .bst-t::before { content: ""; position: absolute; z-index: -1; left: 10px; right: 10px; top: 3px; height: 36%; border-radius: 10px;
  background: linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .1)); pointer-events: none; }
.gar-btn::before { left: 6px; right: 6px; top: 2px; border-radius: 9px; }
.bst-t::before { left: 4px; right: 4px; top: 1px; height: 42%; border-radius: 6px; }
.btn-grey::before { opacity: .7; }
/* итоги раунда (24.10, Иван): под «ПОБЕДА!» — сколько очков и монет принёс раунд, со значками звезды и монеты */
.res-earn { display: flex; justify-content: center; gap: 10px; margin: -4px 0 0; }
.res-earn > span { display: flex; align-items: center; gap: 4px; padding: 3px 12px 3px 5px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.res-earn svg { width: 32px; height: 32px; flex-shrink: 0; }
.res-earn b { font-size: 22px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.res-earn small { font-size: 12px; font-weight: 800; color: var(--brown); margin-left: 2px; }
.res-earn .re-pts b { color: #e08a00; } .res-earn .re-mon b { color: #b8741a; }
.res-title .tt { text-align: center; }   /* заголовок итогов по центру (Иван, 24.10) */
.res-tt.res-tt-lose { font-size: 38px; white-space: nowrap; }   /* «ПОРАЖЕНИЕ» длиннее «ПОБЕДА!» — чуть мельче, одной строкой */
#revive.tut [data-act="norevive"], #revive.tut .revive-bar { display: none; }   /* обучение: только «Вернуться» (Иван, 24.10) */
#revive:not(.tut) .rv-menu { display: none; }   /* 27.10 (Сергей): в обучении вторая кнопка — «В меню» */
/* 24.10 (Иван): «Сбросить весь прогресс» — маленькая кнопка под шкалой уровня и окно подтверждения */
.lv-reset { border: 0; background: none; padding: 2px 8px; font: inherit; font-size: 12px; font-weight: 800; color: #a0522d; text-decoration: underline; cursor: pointer; opacity: .85; }
.panel-reset { width: 320px; gap: 10px; align-items: stretch; text-align: center; }
.panel-reset .dl-text { font-size: 15px; }
.rs-warn { font-size: 16px; font-weight: 900; color: #c0392b; }
.rs-err { font-size: 14px; font-weight: 800; color: #c0392b; }
.rs-err:empty { display: none; }
.panel-reset .rs-go { background: linear-gradient(var(--red-a), var(--red-b)); color: #fff; }
.panel-reset .rs-go:disabled { opacity: .6; }
.ach-top + .ach-top { margin-top: -8px; }   /* «Всего побед онлайн» и «Достижений открыто» — две строки вплотную */
/* 24.10 (Иван): игра с друзьями — лобби, приглашение, пометка в итогах */
.panel-lobby { width: 320px; gap: 10px; align-items: stretch; text-align: center; }
.fr-text { font-size: 15px; }
.fr-people { display: flex; flex-direction: column; gap: 5px; }
.fr-p { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: 14px; background: #fff; border: 2px solid rgba(58, 29, 10, .18); font-size: 15px; font-weight: 800; color: var(--ink); }
.fr-p span { font-size: 12px; font-weight: 800; color: #b8741a; }
.fr-p.fr-empty { justify-content: center; background: rgba(255, 255, 255, .5); border-style: dashed; color: var(--brown); font-weight: 700; }
.fr-left { font-size: 12px; font-weight: 800; color: var(--brown); }
.fr-left:empty { display: none; }
.fr-note { font-size: 12px; font-weight: 800; color: #b8741a; }
.panel-lobby .fr-share { background: linear-gradient(var(--blue-a), var(--blue-b) 55%, var(--blue-c)); animation: none; }
.res-friend { text-align: center; font-size: 14px; font-weight: 800; color: #b8741a; }
.fr-link { padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px dashed rgba(58, 29, 10, .35); font-size: 13px; font-weight: 700; color: var(--blue-c); word-break: break-all; user-select: all; -webkit-user-select: all; }   /* ссылка-приглашение в лобби (Иван, 24.10) */
.panel-lobby .fr-share { min-height: 40px; height: 40px; margin-top: -4px; border-radius: 16px; font-size: 17px; white-space: nowrap; }   /* «Копировать ссылку» — сразу под ссылкой, пониже (Иван, 25.10) */
.panel-lobby #fr-start:disabled { filter: grayscale(.7); opacity: .6; animation: none; }   /* «Начать» в дуэли до прихода соперника */
.fr-p .fr-x { position: relative; flex-shrink: 0; width: 28px; height: 28px; margin-left: 8px; padding: 0; border-radius: 9px; border: 2px solid var(--ink); cursor: pointer;
  background: linear-gradient(#ff9a86, #e0432f); box-shadow: 0 2px 0 var(--ink); }   /* закрыть место / убрать друга — как плюсики у очков и побед в меню, только красный крестик (Иван, 25.10) */
.fr-p .fr-x::before, .fr-p .fr-x::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; }
.fr-p .fr-x::before { width: 14px; height: 4px; margin: -2px 0 0 -7px; } .fr-p .fr-x::after { width: 4px; height: 14px; margin: -7px 0 0 -2px; }
.fr-p .fr-x:not(.fr-plus)::before, .fr-p .fr-x:not(.fr-plus)::after { transform: rotate(45deg); }   /* крестик — повёрнутый плюс; сама кнопка — квадратная */
.fr-p .fr-x.fr-plus { background: linear-gradient(#b8ff6a, #3fae2a); }   /* открыть закрытое место — зелёный плюс */
.fr-p .fr-x:active { box-shadow: none; translate: 0 2px; }
.fr-p b { flex: 1; text-align: left; }
.fr-p.fr-empty b { text-align: center; }
.fr-p.fr-closed { justify-content: center; background: rgba(58, 29, 10, .12); border: 2px dashed rgba(58, 29, 10, .25); color: rgba(58, 29, 10, .5); font-weight: 700; }
.fr-p.fr-closed b { text-align: center; }
/* 25.10 (Иван): цвета сложности светлее — как кнопки паузы (светлый верх, яркая середина), от зелёного к красному */
.lv-easy { background: linear-gradient(#b8ff6a, #4cbb17 55%, #2f8f0c); }
.lv-mid { background: linear-gradient(#ffe27a, #f0b41a 55%, #c48a00); }
.lv-hard { background: linear-gradient(#ffc488, #f27e22 55%, #c8560c); }
.lv-master { background: linear-gradient(#ffa294, #ec4a3e 55%, #b42c22); }
.lv-gang { background: linear-gradient(#f4889a, #c8304a 55%, #8e1a2e); }
.lv-btn b { text-shadow: 0 2px 0 rgba(0, 0, 0, .38); }
.lv-btn span { text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
/* 25.10 (Иван): кнопки сложности — как кнопки паузы: крупные, рамка 3px, тень, название по центру; справа множитель очков */
.lv-list .lv-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 4px 0 rgba(255, 255, 255, .5), 0 5px 0 var(--ink), 0 8px 12px rgba(40, 20, 0, .25); }
.lv-list .lv-btn b { font-size: 21px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .38); }
.lv-list .lv-btn i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; padding: 3px 7px; }
.lv-list .lv-btn:active { transform: translateY(4px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.lv-list .lv-btn.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green-b), 0 5px 0 var(--ink); }
.lv-list { gap: 10px; }
/* 25.10 (Иван, таблица цветов кнопок): сложность ботов — Лёгкие синие, Средние зелёные, Сложные жёлтые, Мастер оранжевые, Все против тебя красные */
.lv-list .lv-easy { background: linear-gradient(#a8e0ff, #2f8fe8 55%, #1d64c0); }
.lv-list .lv-mid { background: linear-gradient(#b8ff6a, #4cbb17 55%, #2f8f0c); }
.lv-list .lv-hard { background: linear-gradient(#ffe27a, #f0b41a 55%, #c48a00); }
.lv-list .lv-master { background: linear-gradient(#ffb340, #ff8a14 55%, #e8600a); }   /* 25.10 (Иван): Мастер и «Все против тебя» поменялись цветами */
.lv-list .lv-gang { background: linear-gradient(#ff8f7a, #f4695a 55%, #e8433a); }
/* 25.10 (Иван): в окне паузы «В меню» — красная, отличается от синей «Заново» */
#ov-pause [data-act=tomenu] { background: linear-gradient(#ff8f7a, #f4695a 55%, #e8433a); }
/* окно согласия на данные (js/consent.js) */
.panel-consent .cs-text { font-size: 14px; text-align: center; margin: 0; }   /* 25.10 (Сергей): текст по центру */
.cs-opt[hidden] { display: none; }
.cs-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 800; }
.cs-links a { color: #1b6fd0; }
#cs-pair[hidden], #cs-save[hidden] { display: none; }
#cs-x[hidden], .lg-row[hidden], #lg-email-box[hidden], #lg-pass-box[hidden], #lg-nick-box[hidden], #lg-pass2-box[hidden], #lg-left[hidden] { display: none; }
/* 25.10 (Сергей, вариант B): «Принять все» — крупная кнопка сверху, «Только нужное» — подчёркнутой ссылкой под ней */
.panel-consent #cs-pair { flex-direction: column; align-items: center; gap: 8px; }
.panel-consent #cs-pair .btn { flex: none; align-self: stretch; min-height: 56px; font-size: 20px; }
.panel-consent .cs-nec { flex: none; background: none; border: 0; padding: 4px 8px; font: inherit; font-size: 15px; font-weight: 800; color: var(--brown); text-decoration: underline; cursor: pointer; }
/* почта не подтверждена (js/account.js): подпись в строке учётки, точка на «Аккаунте», значок письма в окне */
.acc-row .acc-warn { font-size: 12px; font-weight: 800; color: #c2410c; }
.acc-row .acc-btn { position: relative; }
.acc-row .acc-dot { position: absolute; right: -4px; top: -4px; }
.vf-ico { display: flex; justify-content: center; align-self: center; margin: 4px 0 2px; }   /* значок письма — по центру окна (25.10, Сергей) */
/* «Подтверди почту»: «Отправить ещё раз» не влезала в половину ширины — кнопки друг под другом, «Понятно» сверху */
#ov-verify .btn-pair { flex-direction: column-reverse; gap: 8px; }
#ov-verify .btn-pair .btn { flex: none; }
#ov-verify .btn-pair .btn-grey { min-height: 44px; font-size: 16px; }
#ov-verify .btn-pair .btn { font-size: 16px; }
body.pcm #m3-who { cursor: pointer; pointer-events: auto; }

.panel-acc .rs-go { background: linear-gradient(var(--red-a), var(--red-b)); color: #fff; }
.panel-acc .rs-go:disabled { opacity: .6; }
.panel-acc #ac-delbox .dl-text, .panel-acc #ac-delbox .rs-warn { text-align: center; }
/* 25.10 (Иван): номер версии в окнах «Аккаунт и аватары» и «Политика» — мелко в правом нижнем углу (js/ui.js) */
.win-ver { position: absolute; right: 18px; bottom: 4px; font: 800 12px/1 Rubik, Arial, sans-serif; font-style: normal; letter-spacing: .3px; color: rgba(58, 29, 10, .62); pointer-events: none; }
/* 25.10 (Сергей, вариант A1): окно «Игровые режимы» — две большие кнопки, значок слева, название и подпись внутри по центру */
.panel-modes { width: 330px; gap: 12px; }
.panel-modes .md-btn { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 8px 14px; animation: none; white-space: normal; }
.panel-modes .md-fr { background: linear-gradient(#8891f7, #5865f2 60%, #4752c4); border-color: #1e2266; }   /* 25.10 (Сергей): цвет как у кнопки Discord */
.panel-modes .md-btn svg { flex: none; }
.panel-modes .md-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.panel-modes .md-tx b { font-size: 21px; font-weight: 900; line-height: 1.05; }
.panel-modes .md-tx small { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.panel-modes .md-back { min-height: 46px; font-size: 18px; }
/* 28.10 (Сергей): ПК, бой — под «Рывком» плашка-клавиша «пробел» (рывок и с клавиатуры, js/main.js); кнопка чуть выше, чтобы плашка поместилась */
.dash-key { display: none; }
body.pcg .dash-btn { bottom: 46px; }
body.pcg .dash-btn.show + .dash-key { display: block; position: absolute; left: 59px; bottom: 12px; transform: translateX(-50%); padding: 1px 14px 2px; border-radius: 8px; border: 2px solid var(--ink);
  background: linear-gradient(#ffffff, #eadfca); box-shadow: inset 0 -3px 0 rgba(90, 50, 0, .15), 0 3px 0 var(--ink); font-style: normal; font-size: 13px; font-weight: 900; line-height: 1.35; color: var(--ink); white-space: nowrap; pointer-events: none; }
/* 28.10 (Сергей, вариант A): в окнах с монетой («Подарок новичку», «Добро пожаловать!», «Ежедневный бонус») «+N» — крупно под монетой по центру, а не на её краю; «монет» строкой ниже */
.dl-gift { height: 112px; }
.dl-gift b { right: auto; left: 50%; bottom: -30px; transform: translateX(-50%); font-size: 40px; }
.dl-sub { margin-top: 30px; }
/* 28.10 (Сергей): окно «Добро пожаловать!» — под «Забрать» вторая кнопка «В гараж» (коричневая, как «Гараж» в меню ПК), чуть ниже и без пульсации */
.btn-wgar { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 52px; font-size: 20px; gap: 10px; background: linear-gradient(#d99a6a, #a0592c 55%, #7a4220); animation: none; }
.btn-wgar svg { flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
/* 29.10 (Сергей): последние 5 с раунда — часы вспыхивают красным каждую секунду, в такт тику (js/game.js, класс warn ставится заново каждую секунду) */
.hud-time.warn { animation: hudwarn 1s ease-out; }
@keyframes hudwarn { 0% { background: #ff3b2a; color: #fff; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(255, 59, 42, .45), 0 0 18px rgba(255, 40, 20, .8); } 55% { background: #e8432a; color: #fff; transform: scale(1.04); } 100% { transform: scale(1); } }
body.pcg .hud-time.warn { animation-name: hudwarnpc; }
@keyframes hudwarnpc { 0% { background: #ff3b2a; color: #fff; transform: translateX(-50%) scale(1.18); box-shadow: 0 0 0 3px rgba(255, 59, 42, .45), 0 0 18px rgba(255, 40, 20, .8); } 55% { background: #e8432a; color: #fff; transform: translateX(-50%) scale(1.04); } 100% { transform: translateX(-50%) scale(1); } }
.hud-time.warn svg { color: #fff; }
/* 31.10 (Сергей): на экране итогов всплывашка («Новый рекорд в рейтинге!» и др.) — сверху, над заголовком, а не посередине: не закрывает «Ближайшую цель» и строку «не хватило» */
body:has(#ov-result.show) #toast { top: calc(env(safe-area-inset-top, 0px) + 4px); bottom: auto; }
/* 01.11 (Сергей): ПК, бой — кнопки реакций внизу, а системные сообщения («Игра обновится после этого раунда» и т. п.) над ними (было наоборот) */
body.pcg #rx-bar { bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }   /* id — чтобы перебить css/react.css (подключён позже) */
body.pcg .drain-note { bottom: calc(env(safe-area-inset-bottom, 0px) + 66px); }
/* 01.11 (Сергей): пока открыто любое окно («Добро пожаловать!» после обучения, итоги и т. п.), всплывашки («Новый рекорд в рейтинге!» и др.) — вверху экрана, а не поверх окна */
body:has(.overlay.show) #toast { top: calc(env(safe-area-inset-top, 0px) + 6px); bottom: auto; }
/* 01.11 (Сергей): пока внизу панель «Вернуться» (#revive) или «Новый бой / В меню» (#spect), «Игра обновится после этого раунда» — вверху под часами, а не поверх кнопок (ПК и телефон) */
body:has(#revive.show) .drain-note, body:has(#spect.show) .drain-note { top: calc(env(safe-area-inset-top, 0px) + 84px); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
body:has(#revive.show) .net-warn, body:has(#spect.show) .net-warn { top: calc(env(safe-area-inset-top, 0px) + 120px); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
/* телефон: вверху список игроков и мини-карта — сообщение не наверх, а прямо над панелью */
@media (max-width: 600px) {
  body:has(#revive.show) .drain-note { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 274px); }
  body:has(#spect.show) .drain-note { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 222px); }
  body:has(#revive.show) .net-warn { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 310px); }
  body:has(#spect.show) .net-warn { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 258px); }
}
/* ПК: ряд реакций при открытой панели — справа от неё, а не на её нижней кромке */
body.pcg:has(#revive.show) #rx-bar, body.pcg:has(#spect.show) #rx-bar { left: calc(50% + 270px); }
