/* ============================================================================
   ОБУЧЕНИЕ НОВИЧКА (08.10.2026) — слой подсветки поверх игры и его окошки (мешок, Бронзовая лига).
   Логика — js/31-obuchenie.js. Вид — как в утверждённом макете client/maket-obuchenie.html.
   ========================================================================== */
#tutLayer{ position:fixed; inset:0; z-index:9000; pointer-events:none; }
#tutLayer .tut-dim{ position:absolute; inset:0; width:100%; height:100%; }
.tut-ring{ position:absolute; border-radius:12px; border:2px solid #ffd76a; box-shadow:0 0 0 3px rgba(255,215,106,.25), 0 0 22px rgba(255,215,106,.75); animation:tutPulse 1.1s ease-in-out infinite; }
@keyframes tutPulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.06); opacity:.75; } }
.tut-ring.slim{ box-shadow:0 0 0 1px rgba(255,215,106,.3), 0 0 6px rgba(255,215,106,.7); animation:tutBlink 1.1s ease-in-out infinite; }   /* вплотную к соседу: без раздувания (его правка 53-й) */
@keyframes tutBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.55; } }
.tut-finger{ position:absolute; z-index:2; width:32px; height:49px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.85)) drop-shadow(0 0 6px rgba(255,200,60,.55)); animation:tutTap 1.1s ease-in-out infinite; }
.tut-finger img, .tut-hand img{ display:block; width:100%; height:100%; pointer-events:none; -webkit-user-drag:none; }   /* 75-я: золотая рука его листа (TUT_HAND в js/31) */
@keyframes tutTap{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-4px,-8px); } }
.tut-card{ position:absolute; max-width:300px; padding:9px 14px 10px; border-radius:11px; text-align:left; font:600 13px/1.35 'Inter',sans-serif; color:#efe2c4;
  background:linear-gradient(180deg,#2a1f30,#140e18); border:1px solid #caa44c; box-shadow:0 8px 24px rgba(0,0,0,.7), 0 0 14px rgba(202,164,76,.25); }
.tut-card b{ color:#ffd76a; }
/* шаги-показ (52-я): на табличке кнопка «ОК» — только её и можно нажать */
.tut-okrow{ display:flex; justify-content:flex-end; margin-top:7px; }
.tut-ok{ pointer-events:auto; min-width:76px; padding:5px 16px; border-radius:8px; font:800 12px 'Cinzel',serif; color:#2a1410; cursor:pointer;
  background:linear-gradient(180deg,#f0d060,#caa44c); border:1px solid #e6c976; box-shadow:0 0 0 2px rgba(255,215,106,.3), 0 0 12px rgba(255,215,106,.6); }
.tut-ok:active{ transform:scale(.95); }
/* мешок летит с босса на своё место (52-я) */
.tut-flybag{ position:fixed; z-index:9050; pointer-events:none; display:flex; filter:drop-shadow(0 0 10px rgba(255,215,106,.8)); }
.tut-steps{ position:absolute; left:50%; top:6px; transform:translateX(-50%); display:flex; gap:4px; }
.tut-steps i{ width:18px; height:4px; border-radius:2px; background:rgba(255,255,255,.18); }
.tut-steps i.on{ background:#ffd76a; box-shadow:0 0 6px rgba(255,215,106,.8); }
/* шаг «Тапы»: рука сама тапает, от тапа — золотая волна (его правка 08.10.2026) */
.tut-hand{ position:absolute; width:46px; height:71px; filter:drop-shadow(0 3px 5px rgba(0,0,0,.85)) drop-shadow(0 0 8px rgba(255,200,60,.6)); transform-origin:35% 3%; animation:tutHand 1.2s ease-in-out infinite; }
@keyframes tutHand{ 0%{ transform:translate(26px,30px) scale(1); } 40%{ transform:translate(0,0) scale(1); } 52%{ transform:translate(0,0) scale(.82); } 64%{ transform:translate(0,0) scale(1); } 100%{ transform:translate(26px,30px) scale(1); } }
.tut-ripple{ position:absolute; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; border:3px solid rgba(255,215,106,.9); opacity:0; animation:tutRip 1.2s ease-out infinite; }
@keyframes tutRip{ 0%,50%{ transform:scale(.2); opacity:0; } 54%{ opacity:1; } 100%{ transform:scale(3.6); opacity:0; } }
/* мешок обучения на сцене — тот же #lootBag, только с оружием */
.loot-bag.tut-bag{ display:flex !important; }
/* окошки обучения: мешок и Бронзовая лига */
#tutBag{ position:fixed; inset:0; z-index:9100; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; }
.tut-pop{ position:relative; width:380px; max-width:94vw; padding:0 16px 14px; text-align:center; border-radius:14px; border:1px solid #caa44c;
  background:linear-gradient(180deg,#2c2118,#18120d); box-shadow:0 14px 40px rgba(0,0,0,.8); overflow:hidden; }
.tut-rib{ display:inline-block; margin-top:-1px; padding:6px 30px; font:900 13.5px 'Cinzel',serif; letter-spacing:.14em; text-transform:uppercase; color:#2a1410;
  background:linear-gradient(180deg,#f0d060,#caa44c); border:1px solid #e6c976; border-top:0; border-radius:0 0 12px 12px; box-shadow:0 0 18px rgba(255,203,61,.35); position:relative; z-index:1; }
.tut-items{ display:flex; justify-content:center; gap:14px; margin:14px 0 12px; }
.tut-it{ width:86px; padding:8px 0 7px; border-radius:10px; background:radial-gradient(circle at 50% 35%,#3a2a3a,#140c12); border:1px solid #5a4630; display:flex; flex-direction:column; align-items:center; }
.tut-it span{ font-size:30px; line-height:36px; } .tut-it b{ font:700 13px 'JetBrains Mono',monospace; color:#ffd76a; } .tut-it small{ font-size:10px; color:#9a8c74; }
.tut-note{ font-size:11.5px; color:#9a8c74; margin-bottom:10px; position:relative; z-index:1; }
.tut-gbtn{ position:relative; z-index:1; min-width:170px; padding:8px 16px; border-radius:9px; font:800 12.5px 'Cinzel',serif; color:#2a1410; cursor:pointer;
  background:linear-gradient(180deg,#f0d060,#caa44c); border:1px solid #e6c976; box-shadow:0 0 0 2px rgba(255,215,106,.35), 0 0 18px rgba(255,215,106,.7); animation:tutPulse 1.1s ease-in-out infinite; }
.tut-lg{ width:430px; }
.tut-lg::before{ content:''; position:absolute; left:50%; top:46%; width:420px; height:420px; transform:translate(-50%,-50%); border-radius:50%; z-index:0;
  background:repeating-conic-gradient(from 0deg, rgba(214,138,68,.16) 0 8deg, transparent 8deg 20deg); animation:tutSpin 18s linear infinite; }
@keyframes tutSpin{ to{ transform:translate(-50%,-50%) rotate(360deg); } }
.tut-shield{ position:relative; z-index:1; display:block; margin:10px auto 2px; width:92px; height:100px; filter:drop-shadow(0 0 16px rgba(214,138,68,.7)); }
.tut-lgn{ position:relative; z-index:1; font:900 19px 'Cinzel',serif; color:#e8a868; letter-spacing:.06em; }
.tut-gain{ position:relative; z-index:1; display:flex; justify-content:center; gap:10px; margin:6px 0 12px; }
.tut-gc{ display:flex; align-items:center; gap:7px; padding:6px 11px; border-radius:9px; background:rgba(0,0,0,.35); border:1px solid #5a4630; font-size:11.5px; font-weight:700; text-align:left; color:#efe2c4; }
.tut-gc b{ font-family:'JetBrains Mono',monospace; color:#7ee0a0; } .tut-gc small{ display:block; font-size:9.5px; font-weight:500; color:#9a8c74; } .tut-gc > span:first-child{ font-size:20px; }
/* кнопка премиума в бою обучения — «Фараон · учебный удар» */
.tut-prem-t{ display:flex; flex-direction:column; font:800 11px 'Cinzel',serif; color:#ffd0d8; text-align:left; }
.tut-prem-t small{ font:600 9px 'Inter',sans-serif; color:#ff9ab0; }
/* учебный соперник в Лиге */
.la-row.tut-opp{ border-color:#ffd76a; box-shadow:0 0 12px rgba(255,215,106,.35); }
.la-row.tut-opp .lh-nm{ white-space:normal; overflow:visible; text-overflow:clip; line-height:1.1; }   /* «Владыка земель» целиком, в две строки */

/* 75-я, его слово «в этом окне в обучении сделай фон какой-то красивый»: «Первая победа в Лиге!» — рама Раскопок (как окно сундучка Лиги),
   внутри арена Лиги (img/liga/fon.webp) с затемнением к краям, бронзовое свечение и лучи за медалью, медаль крупнее. */
.tut-pop.tut-lg{ width:440px; border:0 solid transparent; border-width:16px; border-image:url(img/raskopki/nagrada.webp) 50 / 16px stretch; border-radius:0;
  background:radial-gradient(ellipse at 50% 38%, rgba(214,138,68,.38), rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(10,6,3,.35), rgba(10,6,3,.82)), url(img/liga/fon.webp) center/cover no-repeat;
  box-shadow:0 14px 40px rgba(0,0,0,.85), 0 0 30px rgba(214,138,68,.35); overflow:hidden; padding:0 16px 14px; }
.tut-lg::before{ background:repeating-conic-gradient(from 0deg, rgba(240,170,90,.22) 0 7deg, transparent 7deg 18deg);
  -webkit-mask:radial-gradient(circle, #000 20%, transparent 68%); mask:radial-gradient(circle, #000 20%, transparent 68%); }
.tut-lg img.tut-shield{ width:104px; height:104px; margin:12px auto 2px; filter:drop-shadow(0 0 18px rgba(240,160,80,.85)) drop-shadow(0 6px 8px rgba(0,0,0,.7)); }
.tut-lg .tut-lgn{ text-shadow:0 2px 4px #000, 0 0 12px rgba(214,138,68,.6); }
.tut-lg .tut-note{ color:#d8c8a8; text-shadow:0 1px 2px #000; }
.tut-lg .tut-gc{ background:rgba(12,8,4,.72); border-color:#8a6a3a; box-shadow:inset 0 0 10px rgba(214,138,68,.18); }
