/* 30.10 (Сергей): интерактивное обучение вернули (js/tut2.js, чат «Механики»). Стили — как были 24.10 в style.css */
/* ---- интерактивное обучение (js/tut2.js, 24.10): подсказка шага, стрелка на цель, жест пальцем, итоговое окно ---- */
body.tut2 .hud-mid, body.tut2 #hud-top, body.tut2 #hud-room, body.tut2 #rank-pop, body.tut2 #mile-pop { display: none !important; }
body.tut2:not(.t2-dash) #dash-btn { display: none !important; }
body.tut2 .feed { top: auto; bottom: 150px; }
.t2-card { position: absolute; left: 50%; top: 84px; width: min(360px, calc(100% - 20px)); transform: translateX(-50%); display: none; flex-direction: column; gap: 3px; padding: 8px 14px 10px;
  border-radius: 20px; background: linear-gradient(var(--cream), var(--cream2)); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 8px 14px rgba(20, 10, 0, .3); }
body.pcg .t2-card { top: 84px; }
.t2-card.show { display: flex; }
.t2-card.in { animation: t2in .45s cubic-bezier(.2, 1.5, .4, 1); }
.t2-card.ok { animation: t2ok .5s ease-out; background: linear-gradient(#efffd6, #c6f08a); }
.t2-card.ok .t2-title { color: #2f7d1a; }
.t2-head { display: flex; align-items: center; justify-content: space-between; }
.t2-n { font-size: 12px; font-weight: 800; color: var(--brown); text-transform: uppercase; letter-spacing: .5px; }
.hud .t2-skip { pointer-events: auto; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 800; color: var(--brown); text-decoration: underline; padding: 4px 0 4px 10px; cursor: pointer; }
.t2-card.ok .t2-skip { visibility: hidden; }
.t2-title { font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.t2-text { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.t2-note { font-size: 13px; font-weight: 800; line-height: 1.25; color: #c0392b; }
.t2-note:empty { display: none; }
.t2-bar { height: 8px; margin-top: 4px; border-radius: 5px; background: #e8d4a8; border: 2px solid var(--ink); overflow: hidden; }
.t2-bar i { display: block; height: 100%; background: linear-gradient(#9be15d, #5cb83a); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s; }
@keyframes t2in { from { transform: translateX(-50%) translateY(-30px) scale(.9); opacity: 0; } }
@keyframes t2ok { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.06); } 100% { transform: translateX(-50%) scale(1); } }
.t2-ptr { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; --rot: 0deg; }
.t2-ptr.show { display: block; }
.t2-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff2b0; box-shadow: 0 0 0 2px var(--ink); animation: t2ring 1.2s ease-out infinite; }
.t2-arr { position: absolute; left: -16px; top: -66px; width: 32px; height: 40px; overflow: visible; filter: drop-shadow(0 3px 0 rgba(58, 29, 10, .6)); animation: t2bob .6s ease-in-out infinite alternate; }
.t2-lab { position: absolute; left: 0; top: -100px; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 12px; background: var(--cream); border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink); font-size: 13px; font-weight: 900; color: var(--ink); }
.t2-ptr.edge .t2-ring { display: none; }
.t2-ptr.edge .t2-arr { top: -20px; animation: none; transform: rotate(var(--rot)); }
.t2-ptr.edge .t2-lab { top: 26px; }
.t2-ptr.tr:not(.edge) .t2-lab { display: none; }   /* цель — трактор: его имя и так подписано */
.t2-ptr.tr:not(.edge) .t2-arr { top: -100px; }   /* стрелка выше имени трактора */
@keyframes t2bob { to { transform: translateY(-9px); } }
@keyframes t2ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.t2-swipe { position: absolute; left: 50%; bottom: 130px; width: 220px; margin-left: -110px; height: 76px; display: none; }
.t2-swipe.show { display: block; }
.t2-dot { position: absolute; top: 4px; left: 88px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 3px solid var(--ink);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .3); animation: t2swipe 2.2s ease-in-out infinite; }
.t2-swipe span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(0, 0, 0, .5); }
@keyframes t2swipe { 0%, 100% { transform: translateX(-64px); } 50% { transform: translateX(64px); } }
#dash-btn.t2-pulse { animation: t2dash .8s ease-in-out infinite; }
@keyframes t2dash { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #ffd23f); } 50% { transform: scale(1.15); filter: drop-shadow(0 0 14px #ffd23f); } }
.panel-t2 { gap: 9px; }
.t2-win-h { text-align: center; font-size: 18px; font-weight: 900; color: var(--ink); }
.t2-win { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-size: 15px; font-weight: 700; line-height: 1.25; text-align: left; color: var(--ink); }
.t2-win svg { flex-shrink: 0; width: 34px; height: 34px; }
.t2-win b { font-weight: 900; }
.t2-win-sub { font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; color: var(--brown); }
/* 30.10: то, чего 24.10 ещё не было, — в обучении не нужно: эмоции (соперники — боты) и плашка «пробел» под скрытой кнопкой рывка */
body.tut2 #rx-bar { display: none !important; }
body.tut2:not(.t2-dash) .dash-key { display: none !important; }
/* 30.10 (Сергей): после отсчёта в обучении — «Пройди обучение!» вместо «Сей!»: длиннее, поэтому мельче и с переносом */
.banner.t2go { font-size: 58px; line-height: 1.05; text-align: center; white-space: normal; padding: 0 18px; }
/* 30.10 (Сергей): «Обучение» — ярлычок слева над «Шаг N из 7», на верхнем крае карточки */
.t2-card { margin-top: 12px; }
.t2-card::before { content: attr(data-lbl); position: absolute; left: 14px; top: -15px; padding: 2px 12px 3px; border-radius: 10px; border: 3px solid var(--ink);
  background: linear-gradient(#ff8a5c, #e2502a); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; line-height: 1.2;
  text-shadow: 0 1px 0 rgba(90, 20, 0, .5); box-shadow: 0 2px 0 var(--ink); }
/* 30.10 (Сергей): кнопка «Поменять язык» в паузе — только в обучении (js/tut2.js t2lang) */
#ov-pause .btn-plang { display: none; }
body.tut2 #ov-pause .btn-plang { display: block; }   /* как у остальных кнопок: текст по центру */
/* 01.11: шаг «Рывок» на ПК — посередине внизу мигает клавиша «Пробел» (js/tut2.js t2Key) */
.t2-key { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 130px); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 6; }
.t2-key.show { display: flex; }
.t2-key b { min-width: 230px; padding: 10px 26px 12px; border-radius: 14px; background: linear-gradient(#fffaf0, #ece2c8); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  font-size: 22px; font-weight: 900; text-align: center; color: var(--ink); animation: t2key 1s ease-in-out infinite; }
.t2-key span { font-size: 17px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(0, 0, 0, .5); }
@keyframes t2key { 0%, 100% { transform: translateY(0); box-shadow: 0 6px 0 var(--ink); } 50% { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); } }
/* 01.11 (Сергей, Дизайн): в обучении нет плашки «Щит» (мини-карта — тоже нет, js/render.js) */
body.tut2 #hud-fx .fx-s { display: none !important; }
