/* wave19.css (03.12) = wave18.css + статусы выплаты (.pst, PAYOUT_STATES.md, блок в конце).
   wave18.css (03.12) = wave17.css + экран Кошелька (блок в конце).
   wave17.css (03.12) = wave16.css + окна POSTGAME2: реванш, «Поделиться победой» (блок в конце).
   wave16.css (02.12) = wave15.css + пульсация точки на чипе ставки (блок в конце).
   wave15.css (02.12) = wave14.css + экран результата партии по макету (блок в конце).
   wave14.css (02.12) = wave13.css + единая кнопка «назад» (блок в конце).
   wave13.css (02.12) = wave12.css + экран «Приготовься» и 6-секундный этап контракта (блок в конце).
   wave12.css (02.12) = wave11.css + часы окна депозита на CSS-анимации от дедлайна (блок в конце).
   wave11.css (02.12) = wave10.css + шлейф карты за лучом (маска с @property, блок в конце).
   wave10.css (02.12) = wave9.css + центр вращения радара на целых пикселях (блок в конце).
   wave9.css (30.11) = wave8.css + радар одним вращающимся слоем + единое окно «Создать ставку» (блоки в конце).
   wave8.css (30.11) = wave7.css + исправления «Поиска 4»: радар без рывков, прокрутка карусели (блок в конце).
   wave7.css (30.11) = wave6.css + радар-текстура окна поиска и топографический фон (блок в конце).
   wave6.css (29.11) = wave5.css + «Поиск 4» (.s4, s4-) и блоки «Главной 2.0» (.h2, h2-) из макетов search4_design (блоки в конце).
   wave5.css (29.11) = wave4.css + один источник верхнего отступа и фон на фиксированном слое (блок в конце).
   wave4.css (29.11) = wave3.css + шторка ежедневной награды (блок в конце, .w2-dl).
   wave3.css (29.11) = wave2.css + единые отступы экранов волны 2 (блок «Отступы» в конце).
   wave2.css (28.11) — перенос дизайна волны 2 (SPEC_WAVE2, макеты A_home_profile). Сгенерировано из таблицы
   стилей макетов: классы с префиксом w2-, стили Главной под .w2-home, Профиля под .w2-prof. Внизу — адаптация к приложению. */

/* ═══ w2-home (из HomeHowto.html; классов в макетах: 98) ═══ */
.w2-home{--bg:#070A08; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54);
  --mint:#1FCFA1; --mint-d:#17A882; --live:#159873; --gold:#EFC15A; --gold-d:#C88A20; --red:#F2604F;
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:relative; width:390px; height:844px; box-sizing:border-box; overflow:hidden;
  background:radial-gradient(130% 46% at 50% -8%, rgba(31,207,161,.075), rgba(31,207,161,0) 62%), var(--bg);
  color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  font-size:14px; line-height:1.25; -webkit-font-smoothing:antialiased; text-align:left;}
.w2-home *{box-sizing:border-box}
.w2-home button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit}
.w2-home .w2-num{font-variant-numeric:tabular-nums}
.w2-home .w2-mono{font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace; font-variant-numeric:tabular-nums}
.w2-home .w2-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.w2-home .w2-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.w2-home .w2-cap-d{color:var(--t3); letter-spacing:1.1px}
.w2-home .w2-cap-g{color:var(--gold)}
.w2-home .w2-ts{display:inline-block; width:.3em}
.w2-home .w2-bd{position:absolute; left:0; right:0; top:92px; bottom:0; padding:0 16px 226px; display:flex; flex-direction:column; gap:12px; overflow:hidden}
.w2-home .w2-hd{display:flex; align-items:center; justify-content:space-between; gap:8px; height:40px; flex:none}
.w2-home .w2-hd-l{display:flex; flex-direction:column; gap:6px; min-width:0}
.w2-home .w2-hd-t{font-size:11px; font-weight:700; letter-spacing:1.6px; line-height:13px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.w2-home .w2-hd-r{display:flex; align-items:center; gap:8px}
.w2-home .w2-live{display:flex; align-items:center; gap:5px; height:13px; font-size:11px; font-weight:600; color:var(--live); white-space:nowrap}
.w2-home .w2-live i{width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 8px rgba(31,207,161,.9)}
.w2-home .w2-live.w2-off{color:var(--t3)}
.w2-home .w2-live.w2-off i{background:var(--t3); box-shadow:none}
.w2-home .w2-lang{display:flex; gap:2px; padding:3px; height:36px; border-radius:12px; border:1px solid var(--line)}
.w2-home .w2-lang button{width:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; letter-spacing:.6px; color:var(--t3) !important}
.w2-home .w2-lang button.w2-on{background:rgba(31,207,161,.14) !important; color:var(--mint) !important}
.w2-home .w2-tile{width:32px; height:32px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--surf); color:var(--t2)}
.w2-home .w2-tile-m{background:rgba(31,207,161,.12); border-color:rgba(31,207,161,.30); color:var(--mint)}
.w2-home .w2-tile-r{background:rgba(242,96,79,.10); border-color:rgba(242,96,79,.34); color:var(--red)}
.w2-home .w2-wl{position:relative; flex:none; border-radius:20px; padding:14px 16px 16px; border:1px solid rgba(239,193,90,.38); background:radial-gradient(120% 150% at 100% 0%, rgba(239,193,90,.13), rgba(239,193,90,0) 56%), var(--surf)}
.w2-home .w2-wl-top{display:flex; align-items:center; justify-content:space-between; height:18px}
.w2-home .w2-addr{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--t2) !important}
.w2-home .w2-addr .w2-ic{width:13px; height:13px}
.w2-home .w2-wl-main{display:flex; align-items:flex-end; justify-content:space-between; margin-top:8px}
.w2-home .w2-bal{display:flex; align-items:baseline; gap:8px; height:38px}
.w2-home .w2-bal-n{font-size:32px; font-weight:700; letter-spacing:-1px; color:var(--gold); line-height:38px}
.w2-home .w2-bal-u{font-size:12px; font-weight:700; letter-spacing:1px; color:rgba(239,193,90,.78)}
.w2-home .w2-bal-n.w2-na{font-size:26px; font-weight:500; letter-spacing:0; color:var(--t3)}
.w2-home .w2-bal-usd{margin-top:2px; height:15px; font-size:12px; color:var(--t3)}
.w2-home .w2-wl-act{display:flex; gap:10px}
.w2-home .w2-rb{width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center}
.w2-home .w2-rb .w2-ic{width:18px; height:18px}
.w2-home .w2-rb-o{border:1px solid rgba(239,193,90,.42) !important; color:var(--gold) !important}
.w2-home .w2-rb-g{background:linear-gradient(145deg,#EFC15A,#C88A20) !important; color:#1A1400 !important; box-shadow:0 0 16px -4px rgba(239,193,90,.55)}
.w2-home .w2-dim{opacity:.38}
.w2-home .w2-wl-none{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 12px 14px 14px}
.w2-home .w2-wl-nl{display:flex; align-items:center; gap:10px; min-width:0}
.w2-home .w2-wl-nt{font-size:13px; font-weight:700; white-space:nowrap}
.w2-home .w2-wl-ns{margin-top:2px; font-size:11px; color:var(--t3)}
.w2-home .w2-btn-g{flex:none; height:44px; padding:0 13px !important; border-radius:13px; background:linear-gradient(145deg,#EFC15A,#C88A20) !important; color:#1A1400 !important; font-size:12px; font-weight:700; letter-spacing:.4px; display:flex; align-items:center}
.w2-home .w2-rt{flex:none; width:100%; height:58px; display:grid !important; grid-template-columns:1.25fr 1fr 1fr 16px; align-items:center; padding:0 12px !important; border-radius:18px; border:1px solid var(--line) !important; background:var(--surf) !important}
.w2-home .w2-rt-c{display:flex; align-items:center; gap:10px; height:34px; min-width:0}
.w2-home .w2-rt-c + .w2-rt-c{padding-left:12px; border-left:1px solid var(--line)}
.w2-home .w2-rt-x{display:flex; flex-direction:column; gap:3px; min-width:0}
.w2-home .w2-rt-l{font-size:9px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--t3)}
.w2-home .w2-rt-v{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--t1); white-space:nowrap; height:17px}
.w2-home .w2-rt-v b{font-weight:700}
.w2-home .w2-rt-v.w2-ok b{color:var(--mint)}
.w2-home .w2-rt-u{margin-left:-2px}
.w2-home .w2-sg{display:flex; gap:3px}
.w2-home .w2-sg i{width:12px; height:4px; border-radius:2px; background:rgba(255,255,255,.14)}
.w2-home .w2-sg i.w2-on{background:var(--mint)}
.w2-home .w2-rt > .w2-ic{width:14px; height:14px; color:var(--t3); justify-self:end}
.w2-home .w2-ac{width:100%; height:50px; display:flex !important; align-items:center; gap:12px; padding:0 14px 0 10px !important; border-radius:16px; border:1px solid var(--line) !important; background:var(--surf) !important}
.w2-home .w2-ac-x{flex:1; display:flex; flex-direction:column; gap:2px; min-width:0}
.w2-home .w2-ac-t{font-size:13px; font-weight:700}
.w2-home .w2-ac > .w2-ic{width:14px; height:14px; color:var(--t3)}
.w2-home .w2-gs{flex:none; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); height:48px; padding:4px; border-radius:14px; border:1.5px solid var(--line); background:rgba(255,255,255,.03)}
.w2-home .w2-gs-t{display:flex !important; align-items:center; justify-content:center; gap:8px; border-radius:10px; border:1px solid transparent !important; font-size:12px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--t3) !important}
.w2-home .w2-gs-t.w2-on{background:linear-gradient(135deg, rgba(31,207,161,.20), rgba(31,207,161,.08)) !important; border-color:rgba(31,207,161,.40) !important; color:var(--t1) !important}
.w2-home .w2-gs-t.w2-on .w2-ic{color:var(--mint)}
.w2-home .w2-sk-s{flex:none; display:flex; flex-direction:column; gap:10px}
.w2-home .w2-sk-h{display:flex; align-items:center; justify-content:space-between; padding:0 2px; height:14px}
.w2-home .w2-sk-w{position:relative; margin:0 -16px}
.w2-home .w2-sk-w::after{content:""; position:absolute; top:0; bottom:0; right:0; width:34px; pointer-events:none; background:linear-gradient(90deg, rgba(7,10,8,0), rgba(7,10,8,.92))}
.w2-home .w2-sk-w::before{content:""; position:absolute; z-index:1; top:0; bottom:0; left:0; width:34px; pointer-events:none; background:linear-gradient(270deg, rgba(7,10,8,0), rgba(7,10,8,.92)); display:none}
.w2-home .w2-sk-w.w2-mid::before,.w2-home .w2-sk-w.w2-end::before{display:block}
.w2-home .w2-sk-w.w2-end::after{display:none}
.w2-home .w2-sk{overflow-x:auto; overflow-y:hidden; padding:0 16px; scroll-padding-left:16px; scroll-snap-type:x mandatory; scrollbar-width:none}
.w2-home .w2-sk::-webkit-scrollbar{display:none}
.w2-home .w2-sk-w.w2-mid .w2-sk,.w2-home .w2-sk-w.w2-end .w2-sk{overflow:hidden}
.w2-home .w2-sk-tr{display:flex; gap:8px; width:max-content}
.w2-home .w2-chip{position:relative; flex:0 0 102px; height:118px; scroll-snap-align:start; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:5px; border-radius:16px; border:1.5px solid rgba(255,255,255,.075) !important; background:var(--surf) !important}
.w2-home .w2-coin{width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:19px; font-weight:700; margin-bottom:2px}
.w2-home .w2-c-free{font-size:12px; letter-spacing:.4px; color:#04130E; background:linear-gradient(145deg,#1FCFA1,#17A882); border:2.5px solid rgba(31,207,161,.45); box-shadow:0 3px 10px -3px rgba(31,207,161,.35)}
.w2-home .w2-c-dark{color:var(--t1); background:linear-gradient(145deg,#2A2F2B,#1A1F1B); border:2.5px solid rgba(255,255,255,.10); box-shadow:0 3px 8px -3px rgba(0,0,0,.5)}
.w2-home .w2-c-gold{color:#1A1400; background:linear-gradient(145deg,#EFC15A,#C88A20); border:2.5px solid rgba(239,193,90,.5); box-shadow:0 0 14px -3px rgba(239,193,90,.45)}
.w2-home .w2-c-sm{font-size:13px}
.w2-home .w2-chip-l{font-size:11px; font-weight:600; color:var(--t2)}
.w2-home .w2-chip-p{font-size:10px; color:var(--t3)}
.w2-home .w2-chip.w2-sel{border:2px solid rgba(239,193,90,.62) !important; background:rgba(239,193,90,.06) !important; box-shadow:0 0 0 1px rgba(239,193,90,.18), 0 4px 16px -5px rgba(239,193,90,.3)}
.w2-home .w2-chip.w2-sel .w2-chip-l{color:var(--gold)}
.w2-home .w2-chip.w2-sel .w2-chip-p{color:rgba(239,193,90,.78)}
.w2-home .w2-chip.w2-sel-m{border:2px solid rgba(31,207,161,.6) !important; background:rgba(31,207,161,.06) !important; box-shadow:0 0 0 1px rgba(31,207,161,.16), 0 4px 16px -5px rgba(31,207,161,.3)}
.w2-home .w2-chip.w2-sel-m .w2-chip-l{color:var(--mint)}
.w2-home .w2-chk{position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%; background:var(--gold); color:#1A1400; display:flex; align-items:center; justify-content:center}
.w2-home .w2-chip.w2-sel-m .w2-chk{background:var(--mint); color:#04130E}
.w2-home .w2-chk .w2-ic{width:11px; height:11px; stroke-width:3}
.w2-home .w2-er{flex:none; display:flex; align-items:center; gap:10px; padding:10px 10px 10px 12px; border-radius:16px; border:1px solid rgba(242,96,79,.36); background:rgba(242,96,79,.07)}
.w2-home .w2-er-x{flex:1; display:flex; flex-direction:column; gap:2px; min-width:0}
.w2-home .w2-er-t{font-size:13px; font-weight:700}
.w2-home .w2-er-s{font-size:11px; color:var(--t2)}
.w2-home .w2-er-b{flex:none; height:44px; padding:0 14px !important; border-radius:12px; border:1px solid rgba(242,96,79,.55) !important; color:#FF9484 !important; font-size:12px; font-weight:700; display:flex !important; align-items:center}
.w2-home .w2-skl{display:block; border-radius:7px; background:rgba(255,255,255,.085); animation:w2-home-skp 1.4s ease-in-out infinite}
@keyframes w2-home-skp{0%{opacity:.5}
  50%{opacity:1}
  100%{opacity:.5}}
.w2-home .w2-pulse{animation:w2-home-skp 1.4s ease-in-out infinite}
.w2-home .w2-dk{position:absolute; left:0; right:0; bottom:0; padding:30px 16px 50px; background:linear-gradient(180deg, rgba(7,10,8,0) 0, rgba(7,10,8,.95) 30px, #070A08 64px)}
.w2-home .w2-cta{width:100%; height:54px; border-radius:16px; display:flex !important; align-items:center; justify-content:center; gap:10px; font-size:14px; font-weight:700; letter-spacing:2.2px; text-transform:uppercase; white-space:nowrap}
.w2-home .w2-cta .w2-ic{width:18px; height:18px}
.w2-home .w2-cta.w2-go{background:linear-gradient(180deg,#2BDDB0,#17A882) !important; color:#04130E !important; box-shadow:0 12px 28px -12px rgba(31,207,161,.6), inset 0 1px 0 rgba(255,255,255,.28)}
.w2-home .w2-cta.w2-top{background:linear-gradient(180deg,#F3CB6B,#C88A20) !important; color:#1A1400 !important; letter-spacing:1.4px; box-shadow:0 12px 28px -12px rgba(239,193,90,.55), inset 0 1px 0 rgba(255,255,255,.3)}
.w2-home .w2-cta.w2-off{background:rgba(255,255,255,.04) !important; border:1px solid rgba(255,255,255,.10) !important; color:var(--t3) !important; letter-spacing:1.6px}
.w2-home .w2-cta-s{margin-top:8px; height:16px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--t2); white-space:nowrap}
.w2-home .w2-cta-s b{font-weight:700; color:var(--gold)}
.w2-home .w2-esc{display:flex; align-items:center; gap:5px; color:var(--t2)}
.w2-home .w2-esc .w2-ic{width:13px; height:13px; color:var(--mint)}
.w2-home .w2-hd-g{display:flex; align-items:center; gap:10px; min-width:0}
.w2-home .w2-gm{width:38px; height:38px; flex:none; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(31,207,161,.12); border:1px solid rgba(31,207,161,.34); color:var(--mint)}
.w2-home .w2-gm .w2-ic{width:22px; height:22px; stroke-width:1.7}
.w2-home .w2-gm.w2-chess{background:rgba(239,193,90,.11); border-color:rgba(239,193,90,.40); color:var(--gold)}
.w2-home .w2-gs-t.w2-on.w2-chess{background:linear-gradient(135deg, rgba(239,193,90,.22), rgba(239,193,90,.08)) !important; border-color:rgba(239,193,90,.45) !important}
.w2-home .w2-gs-t.w2-on.w2-chess .w2-ic{color:var(--gold)}
.w2-home .w2-ac2{flex:none; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px}
.w2-home .w2-ac2 .w2-ac{height:48px; gap:8px; padding:0 10px 0 12px !important}
.w2-home .w2-ac2 .w2-ac-t{font-size:12px; white-space:nowrap}
.w2-home .w2-ac > .w2-ic.w2-ic-l{width:16px; height:16px; color:var(--gold)}
.w2-home .w2-ac > .w2-ic.w2-ic-n{width:16px; height:16px; color:var(--t2)}
.w2-home .w2-bd{padding-bottom:230px}
.w2-home .w2-bd > .w2-cta{flex:none}
@keyframes w2-home-spin{to{transform:rotate(360deg)}}
.w2-home .w2-acs-o{flex:none; display:flex; flex-direction:column; gap:8px}
.w2-home .w2-acs-o .w2-ac{height:50px}
.w2-home .w2-aco{border-radius:16px; border:1px solid rgba(255,255,255,.11); background:var(--surf); overflow:hidden}
.w2-home .w2-aco .w2-ac{width:100%; border:0 !important; background:none !important; border-radius:0 !important}
.w2-home .w2-aco .w2-ac > .w2-ic{transform:rotate(180deg)}
.w2-home .w2-aco-b{padding:0 14px 12px}
.w2-home .w2-stp-r{display:flex; align-items:center; gap:12px; padding:10px 0}
.w2-home .w2-stp-r + .w2-stp-r{border-top:1px solid var(--line)}
.w2-home .w2-stp-r .w2-tile{width:28px; height:28px; border-radius:9px; background:rgba(255,255,255,.04)}
.w2-home .w2-stp-r .w2-ic{width:15px; height:15px}
.w2-home .w2-stp-t{flex:1; min-width:0; font-size:13px; line-height:1.4; color:var(--t2)}
.w2-home .w2-stp-t b{color:var(--t1); font-weight:600}
.w2-home .w2-aco-f{margin-top:10px; padding:10px 12px; border-radius:12px; border:1px solid rgba(239,193,90,.28); background:rgba(239,193,90,.06); font-size:12.5px; line-height:1.4; color:var(--gold); text-align:center}
.w2-home .w2-aco-p{padding:2px 0 4px; font-size:13px; line-height:1.5; color:var(--t2)}
.w2-home .w2-aco-p b{color:var(--t1)}
@keyframes w2-home-unl-pop{0%{transform:scale(.55); opacity:0} 60%{transform:scale(1.04); opacity:1} 100%{transform:scale(1)}}
@keyframes w2-home-unl-num{0%{transform:scale(1.7); opacity:0; filter:blur(6px)} 100%{transform:scale(1); opacity:1; filter:blur(0)}}
@keyframes w2-home-unl-flip{0%{transform:rotateY(90deg) scale(.85); opacity:0} 100%{transform:rotateY(0) scale(1); opacity:1}}
@keyframes w2-home-unl-shine{0%{transform:translateX(-130%)} 45%,100%{transform:translateX(130%)}}
@keyframes w2-home-unl-up{0%{transform:translateY(12px); opacity:0} 100%{transform:translateY(0); opacity:1}}
@keyframes w2-home-unl-fall{0%{transform:translateY(0) rotate(0); opacity:0} 8%{opacity:1} 100%{transform:translateY(880px) rotate(540deg); opacity:.9}}
.w2-home .w2-cta,.w2-home .w2-cta.w2-go,.w2-home .w2-cta.w2-top,.w2-home .w2-cta.w2-off{letter-spacing:1.6px}
.w2-home .w2-cta{font-size:13.5px; font-weight:700}
.w2-home .w2-cta.w2-go{position:relative; overflow:hidden; isolation:isolate; background:#040705 !important; border:1.5px solid rgba(46,240,180,.9) !important; color:#62FFCB !important; text-shadow:0 0 10px rgba(46,240,180,.5); box-shadow:0 0 22px -6px rgba(46,240,180,.7), 0 0 2px rgba(46,240,180,.6), inset 0 0 16px -8px rgba(46,240,180,.55) !important}
.w2-home .w2-cta.w2-go::after{content:""; position:absolute; z-index:-1; top:-2px; bottom:-2px; left:-55%; width:42%; background:linear-gradient(100deg, rgba(98,255,203,0) 0%, rgba(98,255,203,.26) 50%, rgba(98,255,203,0) 100%); transform:skewX(-20deg); animation:w2-home-goSweep 3.4s ease-in-out infinite; pointer-events:none}
.w2-home .w2-cta.w2-go .w2-ic{filter:drop-shadow(0 0 4px rgba(46,240,180,.7))}
@keyframes w2-home-goSweep{0%,30%{left:-55%} 70%,100%{left:118%}}
@media (prefers-reduced-motion: reduce){
.w2-home .w2-cta.w2-go::after{animation:none; display:none}
}
.w2-home .w2-esc .w2-ic{color:var(--t2)}
.w2-home .w2-ac > .w2-ic.w2-ic-n{color:var(--mint)}
.w2-home .w2-rt-c .w2-tile{background:rgba(255,138,61,.11); border-color:rgba(255,138,61,.36); color:#FF8A3D}
.w2-home .w2-gm,.w2-home .w2-gm.w2-chess{background:var(--surf); border-color:var(--line); color:var(--t2)}

/* ═══ w2-prof (из ProfileMain.html; классов в макетах: 92) ═══ */
.w2-prof{--bg:#070A08; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54);
  --mint:#1FCFA1; --mint-d:#17A882; --live:#159873; --gold:#EFC15A; --gold-d:#C88A20; --red:#F2604F;
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:relative; width:390px; height:844px; box-sizing:border-box; overflow:hidden;
  background:radial-gradient(130% 46% at 50% -8%, rgba(31,207,161,.075), rgba(31,207,161,0) 62%), var(--bg);
  color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  font-size:14px; line-height:1.25; -webkit-font-smoothing:antialiased; text-align:left;}
.w2-prof *{box-sizing:border-box}
.w2-prof button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit}
.w2-prof .w2-num{font-variant-numeric:tabular-nums}
.w2-prof .w2-mono{font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace; font-variant-numeric:tabular-nums}
.w2-prof .w2-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.w2-prof .w2-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.w2-prof .w2-cap-d{color:var(--t3); letter-spacing:1.1px}
.w2-prof .w2-cap-g{color:var(--gold)}
.w2-prof .w2-ts{display:inline-block; width:.3em}
.w2-prof .w2-bd{position:absolute; left:0; right:0; top:92px; bottom:0; padding:0 16px 226px; display:flex; flex-direction:column; gap:12px; overflow:hidden}
.w2-prof .w2-tile{width:32px; height:32px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--surf); color:var(--t2)}
.w2-prof .w2-tile-r{background:rgba(242,96,79,.10); border-color:rgba(242,96,79,.34); color:var(--red)}
.w2-prof .w2-wl{position:relative; flex:none; border-radius:20px; padding:14px 16px 16px; border:1px solid rgba(239,193,90,.38); background:radial-gradient(120% 150% at 100% 0%, rgba(239,193,90,.13), rgba(239,193,90,0) 56%), var(--surf)}
.w2-prof .w2-wl-top{display:flex; align-items:center; justify-content:space-between; height:18px}
.w2-prof .w2-addr{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--t2) !important}
.w2-prof .w2-addr .w2-ic{width:13px; height:13px}
.w2-prof .w2-wl-main{display:flex; align-items:flex-end; justify-content:space-between; margin-top:8px}
.w2-prof .w2-bal{display:flex; align-items:baseline; gap:8px; height:38px}
.w2-prof .w2-bal-n{font-size:32px; font-weight:700; letter-spacing:-1px; color:var(--gold); line-height:38px}
.w2-prof .w2-bal-u{font-size:12px; font-weight:700; letter-spacing:1px; color:rgba(239,193,90,.78)}
.w2-prof .w2-bal-n.w2-na{font-size:26px; font-weight:500; letter-spacing:0; color:var(--t3)}
.w2-prof .w2-bal-usd{margin-top:2px; height:15px; font-size:12px; color:var(--t3)}
.w2-prof .w2-wl-act{display:flex; gap:10px}
.w2-prof .w2-rb{width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center}
.w2-prof .w2-rb .w2-ic{width:18px; height:18px}
.w2-prof .w2-rb-o{border:1px solid rgba(239,193,90,.42) !important; color:var(--gold) !important}
.w2-prof .w2-rb-g{background:linear-gradient(145deg,#EFC15A,#C88A20) !important; color:#1A1400 !important; box-shadow:0 0 16px -4px rgba(239,193,90,.55)}
.w2-prof .w2-dim{opacity:.38}
.w2-prof .w2-wl-none{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 12px 14px 14px}
.w2-prof .w2-wl-nl{display:flex; align-items:center; gap:10px; min-width:0}
.w2-prof .w2-wl-nt{font-size:13px; font-weight:700; white-space:nowrap}
.w2-prof .w2-wl-ns{margin-top:2px; font-size:11px; color:var(--t3)}
.w2-prof .w2-btn-g{flex:none; height:44px; padding:0 13px !important; border-radius:13px; background:linear-gradient(145deg,#EFC15A,#C88A20) !important; color:#1A1400 !important; font-size:12px; font-weight:700; letter-spacing:.4px; display:flex; align-items:center}
.w2-prof .w2-er{flex:none; display:flex; align-items:center; gap:10px; padding:10px 10px 10px 12px; border-radius:16px; border:1px solid rgba(242,96,79,.36); background:rgba(242,96,79,.07)}
.w2-prof .w2-er-x{flex:1; display:flex; flex-direction:column; gap:2px; min-width:0}
.w2-prof .w2-er-t{font-size:13px; font-weight:700}
.w2-prof .w2-er-s{font-size:11px; color:var(--t2)}
.w2-prof .w2-er-b{flex:none; height:44px; padding:0 14px !important; border-radius:12px; border:1px solid rgba(242,96,79,.55) !important; color:#FF9484 !important; font-size:12px; font-weight:700; display:flex !important; align-items:center}
.w2-prof .w2-skl{display:block; border-radius:7px; background:rgba(255,255,255,.085); animation:w2-prof-skp 1.4s ease-in-out infinite}
@keyframes w2-prof-skp{0%{opacity:.5}
  50%{opacity:1}
  100%{opacity:.5}}
.w2-prof .w2-dk{position:absolute; left:0; right:0; bottom:0; padding:30px 16px 50px; background:linear-gradient(180deg, rgba(7,10,8,0) 0, rgba(7,10,8,.95) 30px, #070A08 64px)}
.w2-prof .w2-dk.w2-nav{padding-top:26px}
.w2-prof .w2-bd.w2-nav{padding-bottom:152px}
.w2-prof .w2-pill{display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px; border-radius:13px; font-size:12px; font-weight:600; white-space:nowrap; border:1px solid var(--line); color:var(--t2)}
.w2-prof .w2-pill .w2-ic{width:13px; height:13px}
.w2-prof .w2-pill-n{background:var(--surf)}
.w2-prof .w2-lv{display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:8px; font-size:12px; font-weight:700; color:#1A1400; background:linear-gradient(145deg,#EFC15A,#C88A20); white-space:nowrap}
.w2-prof .w2-xp-r{display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--t2)}
.w2-prof .w2-xp-r b{color:var(--t1); font-weight:700}
.w2-prof .w2-bar{position:relative; margin-top:8px; height:8px; border-radius:4px; background:rgba(255,255,255,.09); overflow:hidden; display:flex}
.w2-prof .w2-bar i{display:block; height:100%; background:linear-gradient(90deg,#C88A20,#EFC15A)}
.w2-prof .w2-bar.w2-m i{background:linear-gradient(90deg,#17A882,#2BDDB0)}
.w2-prof .w2-xp-h{margin-top:7px; font-size:12px; color:var(--t3)}
.w2-prof .w2-hero{position:relative; flex:none; overflow:hidden; border-radius:22px; padding:16px; border:1px solid rgba(255,255,255,.10); background:radial-gradient(120% 110% at 0% 0%, rgba(31,207,161,.11), rgba(31,207,161,0) 58%), var(--surf)}
.w2-prof .w2-wm{position:absolute; right:-36px; top:-46px; width:156px; height:156px; border-radius:50%; border:1px solid rgba(31,207,161,.17); pointer-events:none}
.w2-prof .w2-wm::before{content:""; position:absolute; left:50%; top:-14px; bottom:-14px; width:1px; background:rgba(31,207,161,.17)}
.w2-prof .w2-wm::after{content:""; position:absolute; top:50%; left:-14px; right:-14px; height:1px; background:rgba(31,207,161,.17)}
.w2-prof .w2-wm i{position:absolute; width:50%; height:50%; background:conic-gradient(rgba(31,207,161,.12) 25%, rgba(0,0,0,0) 0 50%, rgba(31,207,161,.12) 0 75%, rgba(0,0,0,0) 0) 0 0/26px 26px}
.w2-prof .w2-wm .w2-q1{left:0; top:0; border-radius:100% 0 0 0}
.w2-prof .w2-wm .w2-q2{right:0; bottom:0; border-radius:0 0 100% 0}
.w2-prof .w2-pf{position:relative; display:flex; align-items:center; gap:12px}
.w2-prof .w2-av{width:56px; height:56px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; line-height:1; color:#04130E; background:linear-gradient(145deg,#1FCFA1,#127F66)}
.w2-prof .w2-av.w2-ring{box-shadow:0 0 0 2px #070A08, 0 0 0 3.5px var(--gold)}
.w2-prof .w2-pf-x{flex:1; min-width:0}
.w2-prof .w2-pf-n{font-size:19px; font-weight:700; letter-spacing:-.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.w2-prof .w2-pf-u{margin-top:2px; font-size:12px; color:var(--t3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.w2-prof .w2-pf-c{position:relative; margin-top:12px; display:flex; gap:6px; flex-wrap:wrap}
.w2-prof .w2-xp{position:relative; margin-top:14px}
.w2-prof .w2-sts{position:relative; margin-top:14px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px}
.w2-prof .w2-st{border-radius:16px; border:1px solid var(--line); background:rgba(0,0,0,.28); padding:11px 12px 12px; min-width:0}
.w2-prof .w2-st-l{font-size:9px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--t3); white-space:nowrap}
.w2-prof .w2-st-n{margin-top:4px; font-size:26px; font-weight:700; letter-spacing:-.8px; line-height:1.15; white-space:nowrap}
.w2-prof .w2-st-n.w2-na{color:var(--t3); font-weight:500}
.w2-prof .w2-st-n small{font-size:14px; font-weight:500; color:var(--t3); letter-spacing:0}
.w2-prof .w2-st-s{margin-top:3px; font-size:12px; color:var(--t2); white-space:nowrap}
.w2-prof .w2-st-s b{color:var(--mint); font-weight:700}
.w2-prof .w2-wl-bar{margin-top:8px; height:5px; border-radius:3px; display:flex; gap:2px; overflow:hidden}
.w2-prof .w2-wl-bar i{display:block; height:100%; border-radius:3px}
.w2-prof .w2-wl-bar .w2-w{background:var(--mint)}
.w2-prof .w2-wl-bar .w2-l{background:rgba(255,255,255,.2)}
.w2-prof .w2-card{flex:none; border-radius:20px; border:1px solid var(--line); background:var(--surf); padding:14px}
.w2-prof .w2-card-h{display:flex; align-items:center; justify-content:space-between; height:14px}
.w2-prof .w2-fr{margin-top:12px; display:grid; grid-template-columns:repeat(10, minmax(0, 1fr)); gap:5px}
.w2-prof .w2-r{height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700}
.w2-prof .w2-r-w{background:var(--mint); color:#04130E}
.w2-prof .w2-r-l{background:rgba(242,96,79,.10); border:1px solid rgba(242,96,79,.5); color:#FF9484}
.w2-prof .w2-r-d{background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); color:var(--t2)}
.w2-prof .w2-sp{margin-top:12px; display:block; width:100%; height:48px}
.w2-prof .w2-sp-a{fill:rgba(31,207,161,.10); stroke:none}
.w2-prof .w2-sp-l{fill:none; stroke:#1FCFA1; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.w2-prof .w2-sp-d{fill:#1FCFA1; stroke:#070A08; stroke-width:2}
.w2-prof .w2-sp-f{margin-top:6px; display:flex; justify-content:space-between; font-size:12px; color:var(--t3)}
.w2-prof .w2-sp-f b{color:var(--mint); font-weight:700}
.w2-prof .w2-emp{margin-top:12px; display:flex; align-items:center; gap:12px; font-size:13px; line-height:1.4; color:var(--t2)}
.w2-prof .w2-mn{flex:none; border-radius:20px; border:1px solid var(--line); background:var(--surf); overflow:hidden}
.w2-prof .w2-mr{width:100%; min-height:60px; display:flex !important; align-items:center; gap:12px; padding:10px 14px 10px 12px !important}
.w2-prof .w2-mr + .w2-mr{border-top:1px solid var(--line) !important}
.w2-prof .w2-mr.w2-s{min-height:52px}
.w2-prof .w2-mr-x{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.w2-prof .w2-mr-t{font-size:14px; font-weight:600}
.w2-prof .w2-mr-s{display:flex; align-items:center; gap:7px; font-size:12px; color:var(--t2); white-space:nowrap}
.w2-prof .w2-mr-s b{font-weight:700; color:var(--t1)}
.w2-prof .w2-mr-v{font-size:13px; color:var(--t2)}
.w2-prof .w2-mr > .w2-ic{width:14px; height:14px; color:var(--t3)}
.w2-prof .w2-mr.w2-red .w2-mr-t{color:#FF9484}
.w2-prof .w2-dots{display:flex; gap:3px}
.w2-prof .w2-dots i{width:7px; height:7px; border-radius:50%}
.w2-prof .w2-dots .w2-w{background:var(--mint)}
.w2-prof .w2-dots .w2-l{border:1.5px solid #F2604F}
.w2-prof .w2-sw{position:relative; width:44px; height:26px; flex:none; border-radius:13px; background:rgba(255,255,255,.10); border:1px solid var(--line)}
.w2-prof .w2-sw i{position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:rgba(240,244,240,.6)}
.w2-prof .w2-sw.w2-on{background:rgba(31,207,161,.28); border-color:rgba(31,207,161,.5)}
.w2-prof .w2-sw.w2-on i{left:20px; background:var(--mint)}
.w2-prof .w2-bd{padding-bottom:230px}
.w2-prof .w2-bd.w2-nav{padding-bottom:156px}
@keyframes w2-prof-spin{to{transform:rotate(360deg)}}
@keyframes w2-prof-unl-pop{0%{transform:scale(.55); opacity:0} 60%{transform:scale(1.04); opacity:1} 100%{transform:scale(1)}}
@keyframes w2-prof-unl-num{0%{transform:scale(1.7); opacity:0; filter:blur(6px)} 100%{transform:scale(1); opacity:1; filter:blur(0)}}
@keyframes w2-prof-unl-flip{0%{transform:rotateY(90deg) scale(.85); opacity:0} 100%{transform:rotateY(0) scale(1); opacity:1}}
@keyframes w2-prof-unl-shine{0%{transform:translateX(-130%)} 45%,100%{transform:translateX(130%)}}
@keyframes w2-prof-unl-up{0%{transform:translateY(12px); opacity:0} 100%{transform:translateY(0); opacity:1}}
@keyframes w2-prof-unl-fall{0%{transform:translateY(0) rotate(0); opacity:0} 8%{opacity:1} 100%{transform:translateY(880px) rotate(540deg); opacity:.9}}
@keyframes w2-prof-bld-run{0%{height:0} 70%{height:var(--h)} 100%{height:calc(var(--h) * 1.06)}}
@keyframes w2-prof-bld-fall{0%{transform:translateY(0) rotate(-45deg); opacity:0} 10%{opacity:.95} 85%{opacity:.9} 100%{transform:translateY(880px) rotate(-45deg); opacity:0}}
@keyframes w2-prof-cde-rain{0%{transform:translateY(-100%)} 100%{transform:translateY(900px)}}
@keyframes w2-prof-cde-scan{0%{background-position:0 0} 100%{background-position:0 18px}}
@keyframes w2-prof-cde-build{0%{clip-path:inset(0 0 100% 0); opacity:1} 100%{clip-path:inset(0 0 0 0); opacity:1}}
@keyframes w2-prof-cde-sweep{0%{transform:translateY(-130%)} 50%,100%{transform:translateY(130%)}}
@keyframes w2-prof-cde-glitch{0%,92%,100%{transform:none; text-shadow:0 0 14px #00FF66, 0 0 2px #00FF66} 93%{transform:translate(-2px,1px); text-shadow:2px 0 #FF2E6A, -2px 0 #2EE6FF} 95%{transform:translate(2px,-1px); text-shadow:-2px 0 #FF2E6A, 2px 0 #2EE6FF} 97%{transform:translate(-1px,0)}}
@keyframes w2-prof-eye-open{0%{transform:scaleY(.04)} 100%{transform:scaleY(1)}}
@keyframes w2-prof-eye-blink{0%,40%,44%,82%,86%,100%{transform:scaleY(1)} 42%,84%{transform:scaleY(.06)}}
@keyframes w2-prof-eye-look{0%,10%{transform:translate(0,0)} 18%,30%{transform:translate(-9px,1px)} 38%,52%{transform:translate(9px,-1px)} 60%,70%{transform:translate(0,3px)} 78%,100%{transform:translate(0,0)}}
@keyframes w2-prof-eye-fade{0%{opacity:0} 100%{opacity:1}}
@keyframes w2-prof-eye-rise{0%{transform:translateY(0); opacity:0} 15%{opacity:.85} 85%{opacity:.6} 100%{transform:translateY(-880px); opacity:0}}
@keyframes w2-prof-goSweep{0%,30%{left:-55%} 70%,100%{left:118%}}
.w2-prof .w2-pill-f{background:rgba(255,138,61,.12); border-color:rgba(255,138,61,.38); color:#FF8A3D}

/* ═══ Адаптация к приложению (рукописная часть) ═══ */
/* Корень экрана: в макете — телефон 390×844 с абсолютными слоями; в приложении — поток внутри .scr */
.w2-home, .w2-prof { position:relative; width:auto; height:auto; min-height:100%; overflow:visible;
  font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; color:var(--t1) }
.w2-home { display:flex; flex-direction:column; min-height:100% }
.w2-home .w2-bd, .w2-prof .w2-bd { position:relative; top:auto; left:auto; right:auto; bottom:auto; overflow:visible;
  padding:max(18px, calc(10px + max(env(safe-area-inset-top,0px), var(--tg-safe-top,0px)))) 16px 16px }
.w2-home .w2-bd { flex:1 0 auto }
/* Нижний блок «Найти соперника»: прилипает к низу экрана над таббаром приложения (64 px + 16 px + safe-area) */
.w2-home .w2-dk { position:sticky; left:auto; right:auto; bottom:0; z-index:30; flex:none;
  padding:26px 16px calc(96px + max(env(safe-area-inset-bottom,0px), var(--tg-safe-bottom,0px))) }
.w2-prof .w2-bd { padding-bottom:calc(96px + max(env(safe-area-inset-bottom,0px), var(--tg-safe-bottom,0px))) }
/* Полоса без ячейки «Серия» (сервер не считает серию дней) */
.w2-home .w2-rt.w2-rt2 { grid-template-columns:1fr 1fr 16px }
/* Карусель ставок прокручивается пальцем */
.w2-home .w2-sk-w { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none }
.w2-home .w2-sk-w::-webkit-scrollbar { display:none }
/* Скелетон: мягкое мерцание, без анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .w2-home *, .w2-home *::before, .w2-home *::after, .w2-prof *, .w2-prof *::before, .w2-prof *::after { animation:none !important; transition:none !important }
}

/* ═══ Отступы экранов волны 2 — ЕДИНСТВЕННЫЙ источник (wave3.css, 29.11) ═══
   --tg-safe-top / --tg-safe-bottom выставляет index.html (Telegram safeAreaInset + contentSafeAreaInset).
   Верх: safe-area + 8 px. Низ: плавающая панель (64 px + 16 px зазор + 16 px воздуха) + safe-area.
   Контейнер экрана с собственным padding-top (#PRF, в будущем #RAT и др.) помечается .w2-host,
   и его собственный отступ снимается — иначе safe-area учитывается дважды. */
:root {
  --w2-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));
  --w2-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom, 0px));
  --w2-top-inset: calc(var(--w2-safe-top) + 8px);
  --w2-nav-space: 96px;
  --w2-bottom-inset: calc(var(--w2-nav-space) + var(--w2-safe-bottom));
}
.w2-host { padding-top: 0 !important }
.w2-host .PRF-CNT { padding-bottom: 0 !important }
.w2-home .w2-bd, .w2-prof .w2-bd, .w2-prof .w2-bd.w2-nav { padding-top: var(--w2-top-inset) }
.w2-prof .w2-bd, .w2-prof .w2-bd.w2-nav { padding-bottom: var(--w2-bottom-inset) }
.w2-home .w2-dk { padding-bottom: var(--w2-bottom-inset) }

/* ═══ Ежедневная награда — шторка (wave4.css, 29.11). Перенос из макетов Daily* (SPEC_DAILY):
   .sheet/.scrim и содержимое; классы макета с префиксом w2- под .w2-dl. Главная под шторкой — живая. ═══ */
.w2-dl { --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54); --mint:#1FCFA1; --gold:#EFC15A; --red:#F2604F;
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:fixed; inset:0; z-index:300; color:var(--t1);
  font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif; -webkit-font-smoothing:antialiased }
.w2-dl * { box-sizing:border-box }
.w2-dl button { font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit; -webkit-tap-highlight-color:transparent }
.w2-dl .w2-num { font-variant-numeric:tabular-nums }
.w2-dl .w2-ts { display:inline-block; width:.3em }
.w2-dl .w2-ic { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.w2-dl .w2-scrim { position:absolute; inset:0; background:rgba(3,5,4,.58); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px) }
.w2-dl .w2-sheet { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:calc(100% - 32px); max-width:448px;
  max-height:calc(100% - var(--w2-safe-top, 0px) - var(--w2-safe-bottom, 0px) - 24px); overflow-y:auto;
  padding:20px 20px 22px; border-radius:28px; background:#0C110E; border:1px solid rgba(255,255,255,.12);
  box-shadow:0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4) }
.w2-dl .w2-sh-h { display:flex; align-items:flex-start; justify-content:space-between; gap:12px }
.w2-dl .w2-sh-t { font-size:20px; font-weight:700; letter-spacing:-.2px; line-height:1.2 }
.w2-dl .w2-sh-s { margin-top:5px; font-size:13px; line-height:1.4; color:var(--t2) }
.w2-dl .w2-xb { width:36px; height:36px; flex:none; border-radius:12px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--t2) }
.w2-dl .w2-ld { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:5px; align-items:end; height:136px; margin-top:18px }
.w2-dl .w2-ld-c { display:flex; flex-direction:column; align-items:center; gap:7px }
.w2-dl .w2-ld-b { width:100%; border-radius:12px; border:1px solid var(--line); background:var(--surf); display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:8px 0 7px; color:var(--t3) }
.w2-dl .w2-ld-x { display:flex; flex-direction:column; align-items:center; gap:1px; font-size:13px; font-weight:700; line-height:1 }
.w2-dl .w2-ld-x small { font-size:8px; font-weight:700; letter-spacing:.8px; font-family:'Space Grotesk',sans-serif }
.w2-dl .w2-ld-b .w2-ic { width:12px; height:12px; stroke-width:2.2 }
.w2-dl .w2-ld-d { height:14px; font-size:11px; font-weight:600; color:var(--t3) }
.w2-dl .w2-ld-c.w2-done .w2-ld-b { background:rgba(31,207,161,.09); border-color:rgba(31,207,161,.26); color:#5FDDBC }
.w2-dl .w2-ld-c.w2-now .w2-ld-b { background:linear-gradient(180deg, rgba(31,207,161,.34), rgba(31,207,161,.10)); border:1.5px solid var(--mint); color:var(--t1); box-shadow:0 0 24px -6px rgba(31,207,161,.75) }
.w2-dl .w2-ld-c.w2-now .w2-ld-d { color:var(--mint); font-weight:700 }
.w2-dl .w2-ld-c.w2-gold .w2-ld-b { background:rgba(239,193,90,.07); border-color:rgba(239,193,90,.42); color:var(--gold) }
.w2-dl .w2-ld-c.w2-gold.w2-now .w2-ld-b { background:linear-gradient(180deg, rgba(239,193,90,.36), rgba(239,193,90,.10)); border:1.5px solid var(--gold); color:#FFF3D0; box-shadow:0 0 26px -6px rgba(239,193,90,.8) }
.w2-dl .w2-ld-c.w2-gold.w2-now .w2-ld-d { color:var(--gold) }
.w2-dl .w2-ld-c.w2-gold.w2-done .w2-ld-b { background:rgba(239,193,90,.12) }
.w2-dl .w2-ld-m { margin-top:14px; display:flex; align-items:center; justify-content:space-between; font-size:13px; color:var(--t2) }
.w2-dl .w2-ld-m b { color:var(--t1); font-weight:700 }
.w2-dl .w2-pill { display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px; border-radius:13px; font-size:12px; font-weight:600; white-space:nowrap; border:1px solid var(--line); color:var(--t2) }
.w2-dl .w2-pill .w2-ic { width:13px; height:13px }
.w2-dl .w2-pill-n { background:var(--surf) }
.w2-dl .w2-pill-f { background:rgba(255,138,61,.12); border-color:rgba(255,138,61,.38); color:#FF8A3D }
.w2-dl .w2-pill-q { background:var(--surf); border-color:var(--line); color:var(--t2) }
.w2-dl .w2-note { margin-top:14px; display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:var(--surf); font-size:12px; line-height:1.4; color:var(--t2) }
.w2-dl .w2-note.w2-red { border-color:rgba(242,96,79,.36); background:rgba(242,96,79,.07) }
.w2-dl .w2-note b { color:var(--t1) }
.w2-dl .w2-cta { width:100%; height:54px; margin-top:16px; border-radius:16px; display:flex; align-items:center; justify-content:center; gap:10px;
  font-size:13.5px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; white-space:nowrap }
.w2-dl .w2-cta .w2-ic { width:18px; height:18px }
.w2-dl .w2-cta.w2-go { position:relative; overflow:hidden; isolation:isolate; background:#040705; border:1.5px solid rgba(46,240,180,.9); color:#62FFCB;
  text-shadow:0 0 10px rgba(46,240,180,.5); box-shadow:0 0 22px -6px rgba(46,240,180,.7), 0 0 2px rgba(46,240,180,.6), inset 0 0 16px -8px rgba(46,240,180,.55) }
.w2-dl .w2-cta.w2-top { background:linear-gradient(180deg,#F3CB6B,#C88A20); color:#1A1400; box-shadow:0 12px 28px -12px rgba(239,193,90,.55), inset 0 1px 0 rgba(255,255,255,.3) }
.w2-dl .w2-cta.w2-off { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); color:var(--t3); cursor:default }
.w2-dl .w2-pulse { animation:w2-dl-skp 1.4s ease-in-out infinite }
@keyframes w2-dl-skp { 0% { opacity:.5 } 50% { opacity:1 } 100% { opacity:.5 } }
.w2-dl .w2-sh-f { margin-top:10px; min-height:16px; font-size:12px; line-height:1.35; color:var(--t3); text-align:center }
.w2-dl .w2-sh-f b { color:var(--t1); font-weight:700 }
.w2-dl .w2-rw { display:flex; flex-direction:column; align-items:center; text-align:center }
.w2-dl .w2-rw-i { width:56px; height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center; background:rgba(31,207,161,.13); border:1px solid rgba(31,207,161,.36); color:var(--mint) }
.w2-dl .w2-rw-i .w2-ic { width:26px; height:26px; stroke-width:2.2 }
.w2-dl .w2-rw-t { margin-top:14px; font-size:15px; font-weight:600; color:var(--t2) }
.w2-dl .w2-rw-n { margin-top:2px; font-size:46px; font-weight:700; letter-spacing:-1.5px; line-height:1.1; color:var(--gold) }
.w2-dl .w2-rw-n small { font-size:18px; letter-spacing:.5px; margin-left:6px }
.w2-dl .w2-rw-s { margin-top:6px }
.w2-dl .w2-xpc { align-self:stretch; margin-top:18px; padding:12px 14px 13px; border-radius:16px; border:1px solid var(--line); background:var(--surf); text-align:left }
.w2-dl .w2-lv { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:8px; font-size:12px; font-weight:700; color:#1A1400; background:linear-gradient(145deg,#EFC15A,#C88A20); white-space:nowrap }
.w2-dl .w2-xp-r { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--t2) }
.w2-dl .w2-xp-r b { color:var(--t1); font-weight:700 }
.w2-dl .w2-bar { position:relative; margin-top:8px; height:8px; border-radius:4px; background:rgba(255,255,255,.09); overflow:hidden; display:flex }
.w2-dl .w2-bar i { display:block; height:100%; background:linear-gradient(90deg,#C88A20,#EFC15A) }
.w2-dl .w2-bar i.w2-add { background:#FFF0BF }
.w2-dl .w2-xp-h { margin-top:7px; font-size:12px; color:var(--t3) }
.w2-dl .w2-xp-h b, .w2-dl .w2-lv-max b { color:var(--gold); font-weight:700 }
.w2-dl .w2-lv-max { margin-top:7px; font-size:12px; color:var(--t3) }

/* ═══ wave5.css (29.11): ОДИН источник верхнего отступа + фон на фиксированном слое ═══
   Причина двойного отступа в Профиле на iPhone: у контейнера #PRF собственный padding-top = safe-area
   (profile*.js), а карточки внутри уже получают --w2-top-inset. Снятие через класс .w2-host на устройстве
   не сработало (шов фона на y≈100 = контент начинается под padding #PRF). Теперь контейнеры экранов
   вообще без своего верхнего отступа, без зависимости от классов:
   · Главная, Профиль (главный) — отступ даёт .w2-bd (--w2-top-inset);
   · подразделы Профиля (История, Задания, Поддержка, Инфо, Возвраты…) — шапка #PRF-HDR (только когда не пустая);
   · Рейтинг (вкл. Рефералы), PvP — контейнер #RAT / #PVP, тем же --w2-top-inset.
   Итог: первый блок на y = --w2-top-inset (safe-area + 8) на всех экранах. */
#PRF { padding-top:0 !important; background:transparent !important }
#PRF-HDR:not(:empty) { padding-top:var(--w2-top-inset) }
#RAT, #PVP { padding-top:var(--w2-top-inset) !important }
/* Внешние .scr этих экранов не прокручиваются (прокрутка — внутри .PRF-CNT / .RCNT / .CNT):
   иначе над первым блоком можно «докрутить» лишнее. Без резинки над первым блоком. */
#scr-profile, #scr-rating, #scr-pvp { overflow:hidden }
.scr, .PRF-CNT, .RCNT, .CNT { overscroll-behavior-y:none }
/* Фон: один фиксированный слой под всем контентом, от y=0 (и под зоной Telegram), контейнеры прозрачные — без шва */
body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(130% 46% at 50% -8%, rgba(31,207,161,.075), rgba(31,207,161,0) 62%), #070A08 }
.w2-home, .w2-prof { background:transparent !important }

/* search4: перенос макетов «Поиск 4» (s4-, под .s4) и «Главная 2.0» (h2-, под .h2) из таблиц стилей досок (SPEC_SEARCH4). Сгенерировано port_css_s4.py */

/* ═══ s4 (из S4Disclaimer.html; классов в макетах: 92) ═══ */
.s4{--bg:#070A08; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54);
  --mint:#1FCFA1; --mint-d:#17A882; --live:#159873; --gold:#EFC15A; --gold-d:#C88A20; --red:#F2604F;
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:relative; width:390px; height:844px; box-sizing:border-box; overflow:hidden;
  background:radial-gradient(130% 46% at 50% -8%, rgba(31,207,161,.075), rgba(31,207,161,0) 62%), var(--bg);
  color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  font-size:14px; line-height:1.25; -webkit-font-smoothing:antialiased; text-align:left;}
.s4 *{box-sizing:border-box}
.s4 button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit}
.s4 .s4-num{font-variant-numeric:tabular-nums}
.s4 .s4-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.s4 .s4-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.s4-live{display:flex; align-items:center; gap:5px; height:13px; font-size:11px; font-weight:600; color:var(--live); white-space:nowrap}
.s4-live i{width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 8px rgba(31,207,161,.9)}
.s4-live.s4-off{color:var(--t3)}
.s4-live.s4-off i{background:var(--t3); box-shadow:none}
@keyframes s4-skp{0%{opacity:.5}
  50%{opacity:1}
  100%{opacity:.5}}
.s4-cta{width:100%; height:54px; border-radius:16px; display:flex !important; align-items:center; justify-content:center; gap:10px; font-size:14px; font-weight:700; letter-spacing:2.2px; text-transform:uppercase; white-space:nowrap}
.s4-cta .s4-ic{width:18px; height:18px}
.s4-cta.s4-go{background:linear-gradient(180deg,#2BDDB0,#17A882) !important; color:#04130E !important; box-shadow:0 12px 28px -12px rgba(31,207,161,.6), inset 0 1px 0 rgba(255,255,255,.28)}
.s4-cta.s4-off{background:rgba(255,255,255,.04) !important; border:1px solid rgba(255,255,255,.10) !important; color:var(--t3) !important; letter-spacing:1.6px}
.s4-cta-s{margin-top:8px; height:16px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--t2); white-space:nowrap}
.s4-cta-s b{font-weight:700; color:var(--gold)}
.s4-esc{display:flex; align-items:center; gap:5px; color:var(--t2)}
.s4-esc .s4-ic{width:13px; height:13px; color:var(--mint)}
.s4-xb{width:36px; height:36px; flex:none; border-radius:12px; border:1px solid var(--line) !important; display:flex !important; align-items:center; justify-content:center; color:var(--t2) !important}
.s4-av{width:56px; height:56px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; line-height:1; color:#04130E; background:linear-gradient(145deg,#1FCFA1,#127F66)}
.s4-av.s4-ring{box-shadow:0 0 0 2px #070A08, 0 0 0 3.5px var(--gold)}
.s4-av.s4-c2{background:linear-gradient(145deg,#EFC15A,#B97A18); color:#1A1400}
.s4-av.s4-c3{background:linear-gradient(145deg,#7E8CFF,#4B55C9); color:#0A0D2A}
.s4-av.s4-c4{background:linear-gradient(145deg,#FF8A7A,#C8483A); color:#2A0A06}
.s4-av.s4-c5{background:linear-gradient(145deg,#59C7D9,#22808F); color:#031A1F}
.s4-fr{margin-top:12px; display:grid; grid-template-columns:repeat(10, minmax(0, 1fr)); gap:5px}
.s4-lvs{flex:none; display:inline-flex; align-items:center; height:18px; padding:0 6px; border-radius:6px; font-size:10px; font-weight:700; color:var(--gold); background:rgba(239,193,90,.10); border:1px solid rgba(239,193,90,.28)}
.s4-kv{margin-top:14px; border-radius:16px; border:1px solid var(--line); background:var(--surf)}
.s4-kv-r{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:42px; padding:0 14px; font-size:13px; color:var(--t2); white-space:nowrap}
.s4-kv-r + .s4-kv-r{border-top:1px solid var(--line)}
.s4-kv-r b{font-weight:700; color:var(--t1)}
.s4-kv-r b.s4-kg{color:var(--gold)}
.s4-kv-r b.s4-km{color:var(--mint)}
.s4-av.s4-lg{width:64px; height:64px; border-radius:50%; font-size:26px}
.s4-rd{position:relative; flex:none; width:270px; height:270px; margin-top:28px; border-radius:50%}
.s4-rd i{position:absolute; border-radius:50%; border:1px solid rgba(31,207,161,.32); box-shadow:0 0 16px rgba(31,207,161,.20), inset 0 0 16px rgba(31,207,161,.10)}
.s4-rd .s4-r1{left:0; top:0; right:0; bottom:0}
.s4-rd .s4-r2{left:46px; top:46px; right:46px; bottom:46px; border-color:rgba(31,207,161,.24)}
.s4-rd .s4-r3{left:92px; top:92px; right:92px; bottom:92px; border-color:rgba(31,207,161,.18)}
.s4-rd::before{content:""; position:absolute; left:50%; top:-12px; bottom:-12px; width:1px; background:rgba(31,207,161,.16)}
.s4-rd::after{content:""; position:absolute; top:50%; left:-12px; right:-12px; height:1px; background:rgba(31,207,161,.16)}
.s4-rd .s4-bm{position:absolute; left:0; top:0; right:0; bottom:0; border-radius:50%; background:conic-gradient(from 0deg, rgba(31,207,161,0) 0deg, rgba(31,207,161,0) 285deg, rgba(31,207,161,.46) 360deg); animation:s4-spin 2.6s linear infinite}
@keyframes s4-spin{to{transform:rotate(360deg)}}
.s4-rd .s4-av{position:absolute; left:50%; top:50%; margin:-28px 0 0 -28px; z-index:1; box-shadow:0 0 0 4px #070A08}
.s4-cta.s4-red{background:rgba(242,96,79,.08) !important; border:1px solid rgba(242,96,79,.58) !important; color:#FF9484 !important; letter-spacing:1.6px; box-shadow:0 0 24px -8px rgba(242,96,79,.75)}
.s4-r2{display:flex; gap:10px}
.s4-r2 .s4-cta{flex:1; min-width:0}
.s4-cta.s4-gh{background:rgba(255,255,255,.05) !important; border:1px solid rgba(255,255,255,.14) !important; color:var(--t1) !important; letter-spacing:1.4px}
@keyframes s4-unl-pop{0%{transform:scale(.55); opacity:0} 60%{transform:scale(1.04); opacity:1} 100%{transform:scale(1)}}
@keyframes s4-unl-num{0%{transform:scale(1.7); opacity:0; filter:blur(6px)} 100%{transform:scale(1); opacity:1; filter:blur(0)}}
@keyframes s4-unl-flip{0%{transform:rotateY(90deg) scale(.85); opacity:0} 100%{transform:rotateY(0) scale(1); opacity:1}}
@keyframes s4-unl-shine{0%{transform:translateX(-130%)} 45%,100%{transform:translateX(130%)}}
@keyframes s4-unl-up{0%{transform:translateY(12px); opacity:0} 100%{transform:translateY(0); opacity:1}}
@keyframes s4-unl-fall{0%{transform:translateY(0) rotate(0); opacity:0} 8%{opacity:1} 100%{transform:translateY(880px) rotate(540deg); opacity:.9}}
.s4-cta,.s4-cta.s4-go,.s4-cta.s4-gh,.s4-cta.s4-red,.s4-cta.s4-off{letter-spacing:1.6px}
.s4-cta{font-size:13.5px; font-weight:700}
.s4-cta.s4-go{position:relative; overflow:hidden; isolation:isolate; background:#040705 !important; border:1.5px solid rgba(46,240,180,.9) !important; color:#62FFCB !important; text-shadow:0 0 10px rgba(46,240,180,.5); box-shadow:0 0 22px -6px rgba(46,240,180,.7), 0 0 2px rgba(46,240,180,.6), inset 0 0 16px -8px rgba(46,240,180,.55) !important}
.s4-cta.s4-go::after{content:""; position:absolute; z-index:-1; top:-2px; bottom:-2px; left:-55%; width:42%; background:linear-gradient(100deg, rgba(98,255,203,0) 0%, rgba(98,255,203,.26) 50%, rgba(98,255,203,0) 100%); transform:skewX(-20deg); animation:s4-goSweep 3.4s ease-in-out infinite; pointer-events:none}
.s4-cta.s4-go .s4-ic{filter:drop-shadow(0 0 4px rgba(46,240,180,.7))}
@keyframes s4-goSweep{0%,30%{left:-55%} 70%,100%{left:118%}}
@media (prefers-reduced-motion: reduce){
.s4-cta.s4-go::after{animation:none; display:none}
}
.s4-esc .s4-ic{color:var(--t2)}
.s4-s2-top{flex:none; display:flex; align-items:center; gap:10px; height:40px}
.s4-s2-top .s4-bk{width:40px; height:40px; border-radius:13px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--surf)}
.s4-s2-top .s4-bk .s4-ic{width:18px; height:18px}
.s4-s2-tt{flex:1; min-width:0}
.s4-s2-tt b{display:block; font-size:16px; font-weight:700; line-height:19px}
.s4-s2-gm{height:30px; padding:0 10px; border-radius:10px; display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--t2); border:1px solid var(--line); background:var(--surf)}
.s4-s2-gm .s4-ic{width:14px; height:14px}
@keyframes s4-s2blink{0%,100%{opacity:.15; transform:scale(.6)} 45%{opacity:1; transform:scale(1.15)} 60%{opacity:.85; transform:scale(1)}}
.s4-rd.s4-idle .s4-bm{opacity:.45}
.s4-ring{position:relative; width:132px; height:132px; flex:none}
.s4-ring svg{position:absolute; inset:0; width:132px; height:132px; transform:rotate(-90deg)}
.s4-ring .s4-av{position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; font-size:24px}
.s4-ring .s4-avw i{position:absolute}
.s4-amt{margin-top:16px; display:flex; align-items:center; justify-content:space-between; height:72px; padding:0 8px; border-radius:18px; border:1px solid rgba(239,193,90,.38); background:rgba(239,193,90,.05)}
.s4-amt button{width:44px; height:44px; border-radius:14px; display:flex !important; align-items:center; justify-content:center; border:1px solid var(--line) !important; background:rgba(255,255,255,.04) !important}
.s4-amt button .s4-ic{width:18px; height:18px}
.s4-amt b{font-size:34px; font-weight:700; color:var(--gold); letter-spacing:-1px}
.s4-amt b small{font-size:14px; letter-spacing:.5px; margin-left:6px}
.s4-qk{margin-top:10px; display:flex; gap:6px; overflow:hidden}
.s4-qk button{flex:none; height:32px; padding:0 11px !important; border-radius:10px; font-size:12.5px; font-weight:600; border:1px solid var(--line) !important; background:var(--surf) !important; color:var(--t2) !important}
.s4-qk button.s4-on{border-color:rgba(239,193,90,.5) !important; color:var(--gold) !important; background:rgba(239,193,90,.08) !important}
.s4-s3{position:absolute; left:0; right:0; top:92px; bottom:0; padding:0 16px 34px; display:flex; flex-direction:column; align-items:stretch}
.s4-s3 .s4-s2-top{margin-bottom:6px}
.s4-s3-rd{flex:none; align-self:center; position:relative}
.s4-rd.s4-big{width:192px; height:192px; margin:0}
.s4-rd.s4-big .s4-r2{left:32px; top:32px; right:32px; bottom:32px}
.s4-rd.s4-big .s4-r3{left:64px; top:64px; right:64px; bottom:64px}
.s4-rd.s4-big::before{top:-10px; bottom:-10px}
.s4-rd.s4-big::after{left:-10px; right:-10px}
.s4-rd.s4-big .s4-av{width:50px; height:50px; margin:-25px 0 0 -25px; font-size:20px}
.s4-rd .s4-q{position:absolute; z-index:2; left:50%; top:50%; width:7px; height:7px; margin:-3.5px 0 0 -3.5px; border-radius:50%; background:#62FFCB; box-shadow:0 0 10px rgba(98,255,203,.95), 0 0 2px #fff; opacity:0}
.s4-rd .s4-q.s4-g{background:#F3CB6B; box-shadow:0 0 10px rgba(239,193,90,.95)}
.s4-rd .s4-q1{animation:s4-qa 7.3s infinite}
.s4-rd .s4-q2{animation:s4-qb 9.1s infinite 1.7s}
.s4-rd .s4-q3{animation:s4-qc 6.4s infinite 3.1s}
.s4-rd .s4-q4{animation:s4-qd 11.2s infinite .6s}
.s4-rd .s4-q5{animation:s4-qe 8.6s infinite 4.4s}
@keyframes s4-qa{0%{transform:translate(-52px,-40px);opacity:0}6%{opacity:1}22%{opacity:.9}28%{opacity:0;transform:translate(-52px,-40px)}29%{transform:translate(60px,30px)}36%{opacity:1}52%{opacity:0}53%{transform:translate(18px,-78px)}62%{opacity:1}80%{opacity:0}100%{opacity:0;transform:translate(18px,-78px)}}
@keyframes s4-qb{0%{transform:translate(70px,-46px);opacity:0}8%{opacity:1}30%{opacity:0}31%{transform:translate(-30px,64px)}40%{opacity:1}58%{opacity:0}59%{transform:translate(-78px,8px)}70%{opacity:.9}88%{opacity:0}100%{opacity:0;transform:translate(-78px,8px)}}
@keyframes s4-qc{0%{transform:translate(34px,74px);opacity:0}10%{opacity:1}26%{opacity:0}27%{transform:translate(-64px,-62px)}38%{opacity:1}55%{opacity:0}100%{opacity:0;transform:translate(-64px,-62px)}}
@keyframes s4-qd{0%{transform:translate(-80px,34px);opacity:0}5%{opacity:.9}18%{opacity:0}19%{transform:translate(84px,-10px)}27%{opacity:1}42%{opacity:0}43%{transform:translate(4px,88px)}52%{opacity:1}66%{opacity:0}67%{transform:translate(44px,-58px)}75%{opacity:.9}90%{opacity:0}100%{opacity:0}}
@keyframes s4-qe{0%{transform:translate(-20px,-88px);opacity:0}9%{opacity:1}24%{opacity:0}25%{transform:translate(72px,56px)}36%{opacity:1}50%{opacity:0}100%{opacity:0;transform:translate(72px,56px)}}
.s4-s3-tm{flex:none; margin-top:8px; display:flex; flex-direction:column; align-items:center; gap:3px}
.s4-s3-tm .s4-cap{margin:0; color:var(--t3)}
.s4-s3-tm b{font-size:26px; font-weight:700; letter-spacing:-.5px; line-height:1.05}
.s4-cr{flex:none; margin:14px -16px 0; padding:2px 16px; display:flex; gap:8px; overflow:hidden}
.s4-cr button{flex:none; width:66px; height:58px; border-radius:15px; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:1px; position:relative; text-align:center !important; background:#050806 !important; border:1px solid rgba(255,255,255,.09) !important}
.s4-cr b{font-size:18px; font-weight:700; line-height:1.1}
.s4-cr small{font-size:9.5px; letter-spacing:.6px; color:var(--t3)}
.s4-cr .s4-fr b{font-size:13px; letter-spacing:.6px; color:var(--t2)}
.s4-cr .s4-sel{border:1.5px solid var(--gold) !important; background:linear-gradient(180deg, rgba(239,193,90,.15), rgba(239,193,90,.03)) !important; box-shadow:0 0 20px -8px rgba(239,193,90,.75)}
.s4-cr .s4-sel b{color:var(--gold)}
.s4-cr i.s4-w{position:absolute; top:7px; right:7px; width:6px; height:6px; border-radius:50%; background:#62FFCB; box-shadow:0 0 7px rgba(98,255,203,.9)}
.s4-s3-u{flex:none; margin-top:10px; display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--t2)}
.s4-s3-u button{display:flex !important; align-items:center; gap:5px; color:var(--t1) !important; font-weight:600; font-size:12.5px}
.s4-s3-u button .s4-ic{width:14px; height:14px; color:var(--mint)}
.s4-s3-u b{color:var(--gold); font-weight:700}
.s4-xpn{flex:none; margin-top:10px; display:flex; align-items:center; gap:10px; height:36px; padding:0 12px; border-radius:12px; border:1px solid rgba(239,193,90,.24); background:rgba(239,193,90,.045)}
.s4-xpn .s4-ic{flex:none; width:14px; height:14px; color:var(--gold)}
.s4-xpn span{flex:1; min-width:0; font-size:12px; color:var(--t2); white-space:nowrap}
.s4-xpn span b{color:var(--gold); font-weight:700}
.s4-xpn .s4-xb2{flex:none; width:64px; height:5px; border-radius:3px; background:rgba(255,255,255,.08); overflow:hidden}
.s4-xpn .s4-xb2 i{display:block; height:100%; width:45%; background:linear-gradient(90deg,#C88A20,#EFC15A)}
.s4-s3-h{flex:none; margin-top:14px; display:flex; align-items:center; justify-content:space-between}
.s4-s3-h .s4-cap{margin:0; display:flex; align-items:center; gap:7px}
.s4-s3-h .s4-cap em{font-style:normal; color:var(--t3)}
.s4-s3-h a{display:flex; align-items:center; gap:3px; font-size:12px; font-weight:600; color:var(--t2); text-decoration:none}
.s4-s3-h a .s4-ic{width:13px; height:13px}
.s4-s3-l{flex:none; margin-top:10px; display:flex; flex-direction:column; gap:7px}
.s4-bt{display:flex; align-items:center; gap:11px; height:52px; padding:0 8px 0 10px; border-radius:15px; background:#040605; border:1px solid rgba(46,240,180,.16); box-shadow:0 0 14px -10px rgba(46,240,180,.6)}
.s4-bt .s4-avw{position:relative; flex:none}
.s4-bt .s4-av{width:34px; height:34px; font-size:14px}
.s4-bt .s4-avw i{position:absolute; right:-1px; bottom:-1px; width:10px; height:10px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 2.5px #040605}
.s4-bt .s4-avw i.s4-off{background:#4B524E}
.s4-bt-x{flex:1; min-width:0}
.s4-bt-n{display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; white-space:nowrap}
.s4-bt-n .s4-lvs{height:16px; font-size:9.5px; padding:0 5px}
.s4-bt-s{margin-top:2px; display:flex; align-items:center; gap:4px; font-size:11px; color:var(--t3)}
.s4-bt-s .s4-ic{width:11px; height:11px}
.s4-bt-a{flex:none; font-size:16px; font-weight:700; color:var(--gold)}
.s4-bt-a small{font-size:9.5px; letter-spacing:.5px; margin-left:3px}
.s4-acc2{flex:none; height:36px; padding:0 14px !important; border-radius:11px; font-size:12px; font-weight:700; letter-spacing:.4px; background:#020403 !important; border:1px solid rgba(46,240,180,.5) !important; color:#62FFCB !important}
.s4-acc2.s4-p1{animation:s4-accp 4.7s ease-in-out infinite 1.3s}
.s4-acc2.s4-p2{animation:s4-accp 6.9s ease-in-out infinite 3.8s}
.s4-acc2.s4-p3{animation:s4-accp 5.6s ease-in-out infinite .4s}
@keyframes s4-accp{0%,70%,100%{box-shadow:none; border-color:rgba(46,240,180,.5)} 80%{box-shadow:0 0 18px -2px rgba(46,240,180,.75), inset 0 0 10px -4px rgba(46,240,180,.6); border-color:rgba(98,255,203,.95)} 90%{box-shadow:0 0 6px -2px rgba(46,240,180,.4)}}
.s4-s3-dk{flex:none; margin-top:auto; padding-top:10px}
.s4-s3-dk .s4-cta{height:50px}
.s4-cr{-webkit-mask-image:linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%)}
.s4-rd.s4-idle .s4-bm{animation-duration:5.5s; opacity:.35}
.s4-rd.s4-idle i{opacity:.7}
.s4-s3-tm span.s4-sub{font-size:12px; color:var(--t3)}
.s4-s3-tm b.s4-pick{font-size:22px; letter-spacing:0}
.s4-nl{flex:none; margin-top:10px; display:flex; align-items:center; gap:10px; height:40px; padding:0 6px 0 12px; border-radius:13px; border:1px solid var(--line); background:#050806}
.s4-nl .s4-ic{flex:none; width:15px; height:15px; color:var(--t3)}
.s4-nl span{flex:1; min-width:0; font-size:12px; color:var(--t2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.s4-nl button{flex:none; height:30px; padding:0 11px !important; border-radius:9px; font-size:11.5px; font-weight:700; color:#62FFCB !important; border:1px solid rgba(46,240,180,.45) !important; background:#020403 !important}
.s4-nl.s4-on .s4-ic{color:var(--mint)}
.s4-lg{flex:none; margin-top:12px; display:flex; align-items:center; gap:10px; height:46px; padding:0 6px 0 12px; border-radius:13px; border:1px solid rgba(239,193,90,.30); background:rgba(239,193,90,.05)}
.s4-lg span{flex:1; min-width:0; font-size:12px; line-height:1.3; color:var(--t2)}
.s4-lg span b{color:var(--gold); font-weight:700}
.s4-lg button{flex:none; height:34px; padding:0 12px !important; border-radius:10px; font-size:12px; font-weight:700; color:var(--gold) !important; border:1px solid rgba(239,193,90,.55) !important; background:#050403 !important}
.s4-bt.s4-my{border-color:rgba(239,193,90,.42); box-shadow:0 0 18px -10px rgba(239,193,90,.8)}
.s4-bt.s4-my .s4-av{box-shadow:0 0 0 2px #040605, 0 0 0 3.5px var(--gold)}
.s4-bt .s4-you{height:16px; padding:0 5px; border-radius:5px; font-size:9.5px; font-weight:700; letter-spacing:.5px; color:#1A1400; background:var(--gold)}
.s4-rm2{flex:none; height:36px; padding:0 13px !important; border-radius:11px; font-size:12px; font-weight:600; color:var(--t2) !important; border:1px solid rgba(255,255,255,.14) !important; background:#030504 !important}
.s4-blr{position:absolute; inset:0; z-index:5; background:rgba(3,5,4,.55); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px)}
.s4-mdl{position:absolute; z-index:6; left:16px; right:16px; top:50%; transform:translateY(-50%); padding:18px 16px 16px; border-radius:24px; border:1px solid rgba(255,255,255,.10); background:#0B100D; box-shadow:0 30px 80px -20px rgba(0,0,0,.9)}
.s4-mdl-h{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.s4-mdl-t{font-size:19px; font-weight:700}
.s4-mdl-s{margin-top:4px; font-size:12.5px; line-height:1.4; color:var(--t2)}
.s4-mdl .s4-xb{flex:none; width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line)}
.s4-mdl .s4-xb .s4-ic{width:16px; height:16px}
.s4-mdl .s4-amt{margin-top:16px; border-color:rgba(239,193,90,.34); background:#070906}
.s4-mdl .s4-amt-u{margin-top:4px; text-align:center; font-size:12px; color:var(--t3)}
.s4-mdl .s4-qk{margin-top:12px; justify-content:space-between}
.s4-mdl .s4-qk button{flex:1; padding:0 !important; text-align:center !important; justify-content:center; display:flex !important; align-items:center}
.s4-mdl .s4-qk button.s4-lk2{border-style:dashed !important; border-color:rgba(239,193,90,.42) !important; color:rgba(240,244,240,.35) !important; gap:3px; flex:1.35}
.s4-mdl .s4-qk button.s4-lk2 .s4-ic{width:10px; height:10px; color:var(--gold)}
.s4-mdl .s4-kv{margin-top:12px}
.s4-mdl .s4-kv-r{min-height:38px}
.s4-mdl .s4-xpn{margin-top:10px}
.s4-mdl .s4-xpn .s4-xb2{display:none}
.s4-mdl .s4-cta{margin-top:14px; height:52px}
.s4-mdl .s4-cta-s{margin-top:8px}
.s4-mdl .s4-lnk2{margin-top:10px; text-align:center; font-size:12px; color:var(--t3)}
.s4-mdl .s4-lnk2 a{color:var(--mint); text-decoration:none; font-weight:600}
.s4-rl-st{margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.s4-rl-st div{height:62px; border-radius:14px; border:1px solid var(--line); background:#060907; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px}
.s4-rl-st b{font-size:20px; font-weight:700; line-height:1.1}
.s4-rl-st b small{font-size:11px; margin-left:2px; color:var(--t2); font-weight:600}
.s4-rl-st span{font-size:10.5px; color:var(--t3)}
.s4-rl-st .s4-g b{color:var(--gold)}
.s4-rl{margin-top:12px; display:flex; flex-direction:column}
.s4-rl-r{display:flex; align-items:flex-start; gap:10px; padding:8px 0; font-size:12.5px; line-height:1.38; color:var(--t2)}
.s4-rl-r + .s4-rl-r{border-top:1px solid var(--line)}
.s4-rl-r .s4-ic{flex:none; width:15px; height:15px; margin-top:1px; color:var(--t3)}
.s4-rl-r .s4-ic.s4-m{color:var(--mint)}
.s4-rl-r b{color:var(--t1); font-weight:600}
.s4-rk{margin-top:10px; display:flex; gap:10px; padding:10px 12px; border-radius:13px; border:1px solid rgba(242,96,79,.30); background:rgba(242,96,79,.06); font-size:12px; line-height:1.4; color:var(--t2)}
.s4-rk .s4-ic{flex:none; width:16px; height:16px; color:#FF9484; margin-top:1px}
.s4-rk b{color:#FF9484; font-weight:700}
.s4-ag{margin-top:12px; display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--t1)}
.s4-ag i{flex:none; width:22px; height:22px; border-radius:7px; display:flex; align-items:center; justify-content:center; border:1.5px solid rgba(46,240,180,.8); background:rgba(31,207,161,.12); color:#62FFCB; box-shadow:0 0 10px -3px rgba(46,240,180,.7)}
.s4-ag i .s4-ic{width:14px; height:14px}
.s4-mdl.s4-rlm{padding-top:16px}
.s4-mdl.s4-rlm .s4-cta{margin-top:12px}

/* ═══ h2 (из S2Home.html; классов в макетах: 69) ═══ */
.h2{--bg:#070A08; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54);
  --mint:#1FCFA1; --mint-d:#17A882; --live:#159873; --gold:#EFC15A; --gold-d:#C88A20; --red:#F2604F;
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:relative; width:390px; height:844px; box-sizing:border-box; overflow:hidden;
  background:radial-gradient(130% 46% at 50% -8%, rgba(31,207,161,.075), rgba(31,207,161,0) 62%), var(--bg);
  color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  font-size:14px; line-height:1.25; -webkit-font-smoothing:antialiased; text-align:left;}
.h2 *{box-sizing:border-box}
.h2 button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit}
.h2 .h2-num{font-variant-numeric:tabular-nums}
.h2 .h2-mono{font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace; font-variant-numeric:tabular-nums}
.h2 .h2-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.h2 .h2-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.h2 .h2-cap-g{color:var(--gold)}
.h2-bd{position:absolute; left:0; right:0; top:92px; bottom:0; padding:0 16px 226px; display:flex; flex-direction:column; gap:12px; overflow:hidden}
.h2-hd{display:flex; align-items:center; justify-content:space-between; gap:8px; height:40px; flex:none}
.h2-hd-l{display:flex; flex-direction:column; gap:6px; min-width:0}
.h2-hd-t{font-size:11px; font-weight:700; letter-spacing:1.6px; line-height:13px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.h2-hd-r{display:flex; align-items:center; gap:8px}
.h2-live{display:flex; align-items:center; gap:5px; height:13px; font-size:11px; font-weight:600; color:var(--live); white-space:nowrap}
.h2-live i{width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 8px rgba(31,207,161,.9)}
.h2-live.h2-off{color:var(--t3)}
.h2-live.h2-off i{background:var(--t3); box-shadow:none}
.h2-lang{display:flex; gap:2px; padding:3px; height:36px; border-radius:12px; border:1px solid var(--line)}
.h2-lang button{width:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; letter-spacing:.6px; color:var(--t3) !important}
.h2-lang button.h2-on{background:rgba(31,207,161,.14) !important; color:var(--mint) !important}
.h2-tile{width:32px; height:32px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--surf); color:var(--t2)}
.h2-wl{position:relative; flex:none; border-radius:20px; padding:14px 16px 16px; border:1px solid rgba(239,193,90,.38); background:radial-gradient(120% 150% at 100% 0%, rgba(239,193,90,.13), rgba(239,193,90,0) 56%), var(--surf)}
.h2-wl-top{display:flex; align-items:center; justify-content:space-between; height:18px}
.h2-addr{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--t2) !important}
.h2-addr .h2-ic{width:13px; height:13px}
.h2-wl-main{display:flex; align-items:flex-end; justify-content:space-between; margin-top:8px}
.h2-bal{display:flex; align-items:baseline; gap:8px; height:38px}
.h2-bal-n{font-size:32px; font-weight:700; letter-spacing:-1px; color:var(--gold); line-height:38px}
.h2-bal-u{font-size:12px; font-weight:700; letter-spacing:1px; color:rgba(239,193,90,.78)}
.h2-bal-usd{margin-top:2px; height:15px; font-size:12px; color:var(--t3)}
.h2-wl-act{display:flex; gap:10px}
.h2-rb{width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center}
.h2-rb .h2-ic{width:18px; height:18px}
.h2-rb-g{background:linear-gradient(145deg,#EFC15A,#C88A20) !important; color:#1A1400 !important; box-shadow:0 0 16px -4px rgba(239,193,90,.55)}
.h2-rt{flex:none; width:100%; height:58px; display:grid !important; grid-template-columns:1.25fr 1fr 1fr 16px; align-items:center; padding:0 12px !important; border-radius:18px; border:1px solid var(--line) !important; background:var(--surf) !important}
.h2-rt-c{display:flex; align-items:center; gap:10px; height:34px; min-width:0}
.h2-rt-c + .h2-rt-c{padding-left:12px; border-left:1px solid var(--line)}
.h2-rt-x{display:flex; flex-direction:column; gap:3px; min-width:0}
.h2-rt-l{font-size:9px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--t3)}
.h2-rt-v{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--t1); white-space:nowrap; height:17px}
.h2-rt-v b{font-weight:700}
.h2-rt-u{margin-left:-2px}
.h2-sg{display:flex; gap:3px}
.h2-sg i{width:12px; height:4px; border-radius:2px; background:rgba(255,255,255,.14)}
.h2-sg i.h2-on{background:var(--mint)}
.h2-rt > .h2-ic{width:14px; height:14px; color:var(--t3); justify-self:end}
.h2-gs{flex:none; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); height:48px; padding:4px; border-radius:14px; border:1.5px solid var(--line); background:rgba(255,255,255,.03)}
.h2-gs-t{display:flex !important; align-items:center; justify-content:center; gap:8px; border-radius:10px; border:1px solid transparent !important; font-size:12px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--t3) !important}
.h2-gs-t.h2-on{background:linear-gradient(135deg, rgba(31,207,161,.20), rgba(31,207,161,.08)) !important; border-color:rgba(31,207,161,.40) !important; color:var(--t1) !important}
.h2-gs-t.h2-on .h2-ic{color:var(--mint)}
@keyframes h2-skp{0%{opacity:.5}
  50%{opacity:1}
  100%{opacity:.5}}
.h2-dk{position:absolute; left:0; right:0; bottom:0; padding:30px 16px 50px; background:linear-gradient(180deg, rgba(7,10,8,0) 0, rgba(7,10,8,.95) 30px, #070A08 64px)}
.h2-cta{width:100%; height:54px; border-radius:16px; display:flex !important; align-items:center; justify-content:center; gap:10px; font-size:14px; font-weight:700; letter-spacing:2.2px; text-transform:uppercase; white-space:nowrap}
.h2-cta .h2-ic{width:18px; height:18px}
.h2-cta.h2-go{background:linear-gradient(180deg,#2BDDB0,#17A882) !important; color:#04130E !important; box-shadow:0 12px 28px -12px rgba(31,207,161,.6), inset 0 1px 0 rgba(255,255,255,.28)}
.h2-cta.h2-off{background:rgba(255,255,255,.04) !important; border:1px solid rgba(255,255,255,.10) !important; color:var(--t3) !important; letter-spacing:1.6px}
.h2-cta-s{margin-top:8px; height:16px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--t2); white-space:nowrap}
.h2-cta-s b{font-weight:700; color:var(--gold)}
.h2-hd-g{display:flex; align-items:center; gap:10px; min-width:0}
.h2-gm{width:38px; height:38px; flex:none; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(31,207,161,.12); border:1px solid rgba(31,207,161,.34); color:var(--mint)}
.h2-gm .h2-ic{width:22px; height:22px; stroke-width:1.7}
.h2-av{width:56px; height:56px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; line-height:1; color:#04130E; background:linear-gradient(145deg,#1FCFA1,#127F66)}
.h2-av.h2-c2{background:linear-gradient(145deg,#EFC15A,#B97A18); color:#1A1400}
.h2-av.h2-c4{background:linear-gradient(145deg,#FF8A7A,#C8483A); color:#2A0A06}
.h2-av.h2-c5{background:linear-gradient(145deg,#59C7D9,#22808F); color:#031A1F}
.h2-bd{padding-bottom:230px}
.h2-stp{margin-top:18px; display:flex; align-items:center; justify-content:space-between}
.h2-bd > .h2-cta{flex:none}
@keyframes h2-spin{to{transform:rotate(360deg)}}
.h2-inf{flex:none; border-radius:20px; border:1px solid var(--line); background:var(--surf); padding:14px 16px}
@keyframes h2-unl-pop{0%{transform:scale(.55); opacity:0} 60%{transform:scale(1.04); opacity:1} 100%{transform:scale(1)}}
@keyframes h2-unl-num{0%{transform:scale(1.7); opacity:0; filter:blur(6px)} 100%{transform:scale(1); opacity:1; filter:blur(0)}}
@keyframes h2-unl-flip{0%{transform:rotateY(90deg) scale(.85); opacity:0} 100%{transform:rotateY(0) scale(1); opacity:1}}
@keyframes h2-unl-shine{0%{transform:translateX(-130%)} 45%,100%{transform:translateX(130%)}}
@keyframes h2-unl-up{0%{transform:translateY(12px); opacity:0} 100%{transform:translateY(0); opacity:1}}
@keyframes h2-unl-fall{0%{transform:translateY(0) rotate(0); opacity:0} 8%{opacity:1} 100%{transform:translateY(880px) rotate(540deg); opacity:.9}}
.h2-cta,.h2-cta.h2-go,.h2-cta.h2-off{letter-spacing:1.6px}
.h2-cta{font-size:13.5px; font-weight:700}
.h2-cta.h2-go{position:relative; overflow:hidden; isolation:isolate; background:#040705 !important; border:1.5px solid rgba(46,240,180,.9) !important; color:#62FFCB !important; text-shadow:0 0 10px rgba(46,240,180,.5); box-shadow:0 0 22px -6px rgba(46,240,180,.7), 0 0 2px rgba(46,240,180,.6), inset 0 0 16px -8px rgba(46,240,180,.55) !important}
.h2-cta.h2-go::after{content:""; position:absolute; z-index:-1; top:-2px; bottom:-2px; left:-55%; width:42%; background:linear-gradient(100deg, rgba(98,255,203,0) 0%, rgba(98,255,203,.26) 50%, rgba(98,255,203,0) 100%); transform:skewX(-20deg); animation:h2-goSweep 3.4s ease-in-out infinite; pointer-events:none}
.h2-cta.h2-go .h2-ic{filter:drop-shadow(0 0 4px rgba(46,240,180,.7))}
@keyframes h2-goSweep{0%,30%{left:-55%} 70%,100%{left:118%}}
@media (prefers-reduced-motion: reduce){
.h2-cta.h2-go::after{animation:none; display:none}
}
.h2-rt-c .h2-tile{background:rgba(255,138,61,.11); border-color:rgba(255,138,61,.36); color:#FF8A3D}
.h2-gm{background:var(--surf); border-color:var(--line); color:var(--t2)}
.h2-inf{flex:none; display:flex; align-items:center; gap:11px; height:50px; padding:0 12px 0 10px; border-radius:15px; border:1px solid var(--line); background:linear-gradient(90deg, rgba(31,207,161,.06), rgba(31,207,161,0) 55%), var(--surf); width:100%}
.h2-inf .h2-ti{flex:none; width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:rgba(31,207,161,.10); border:1px solid rgba(31,207,161,.30); color:var(--mint)}
.h2-inf .h2-ti .h2-ic{width:15px; height:15px}
.h2-inf-t{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:13.5px; font-weight:600; white-space:nowrap}
.h2-inf-t small{font-size:11px; font-weight:500; color:var(--t3)}
.h2-inf-g{display:flex; gap:6px; flex:none}
.h2-inf-g span{height:22px; padding:0 8px; border-radius:7px; display:flex; align-items:center; gap:4px; font-size:10.5px; font-weight:700; letter-spacing:.3px; color:var(--t2); background:rgba(255,255,255,.04); border:1px solid var(--line); white-space:nowrap}
.h2-inf-g span.h2-g{color:var(--gold); border-color:rgba(239,193,90,.30); background:rgba(239,193,90,.07)}
.h2-inf > .h2-ic{flex:none; width:16px; height:16px; color:var(--t3)}
.h2-inf.h2-open{border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom-color:transparent}
.h2-inf-b{flex:none; margin-top:-1px; padding:4px 14px 14px; border:1px solid var(--line); border-top:0; border-radius:0 0 15px 15px; background:var(--surf)}
.h2-stp{display:grid; grid-template-columns:1fr 18px 1fr 18px 1fr; align-items:start; padding:12px 0 14px; border-bottom:1px solid var(--line)}
.h2-stp-i{display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px}
.h2-stp-i .h2-ti{width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.04); border:1px solid var(--line); color:var(--t2)}
.h2-stp-i .h2-ti .h2-ic{width:17px; height:17px}
.h2-stp-i.h2-m .h2-ti{color:var(--mint); border-color:rgba(31,207,161,.34); background:rgba(31,207,161,.08)}
.h2-stp-i.h2-g .h2-ti{color:var(--gold); border-color:rgba(239,193,90,.34); background:rgba(239,193,90,.08)}
.h2-stp-i b{font-size:12px; font-weight:700}
.h2-stp-i small{font-size:10.5px; line-height:1.3; color:var(--t3)}
.h2-stp-a{margin-top:12px; height:12px; color:var(--t3); display:flex; justify-content:center}
.h2-stp-a .h2-ic{width:12px; height:12px}
.h2-inf-r{display:flex; align-items:center; gap:10px; min-height:40px; font-size:12.5px; color:var(--t2)}
.h2-inf-r + .h2-inf-r{border-top:1px solid var(--line)}
.h2-inf-r .h2-ic{flex:none; width:15px; height:15px; color:var(--t3)}
.h2-inf-r span{flex:1; min-width:0}
.h2-inf-r b{color:var(--t1); font-weight:700; white-space:nowrap}
.h2-inf-r b.h2-g{color:var(--gold)}
.h2-inf-r a{color:var(--mint); font-weight:600; display:flex; align-items:center; gap:4px; white-space:nowrap; text-decoration:none}
.h2-lw{flex:none; padding:14px; border-radius:18px; border:1px solid var(--line); background:radial-gradient(120% 140% at 100% 0%, rgba(31,207,161,.10), rgba(31,207,161,0) 60%), var(--surf); display:flex; flex-direction:column; gap:12px}
.h2-lw-h{display:flex; align-items:center; justify-content:space-between}
.h2-lw-h .h2-cap{margin:0}
.h2-lw-m{display:flex; align-items:center; gap:12px}
.h2-stk{display:flex; flex:none}
.h2-stk .h2-av{width:30px; height:30px; font-size:12px; box-shadow:0 0 0 2px #0B0F0D}
.h2-stk .h2-av + .h2-av{margin-left:-8px}
.h2-lw-x{flex:1; min-width:0}
.h2-lw-n{font-size:15px; font-weight:700}
.h2-lw-s{margin-top:2px; font-size:12px; color:var(--t2)}
.h2-lw-s b{color:var(--gold); font-weight:700}
.h2-lw-m > .h2-ic{flex:none; width:16px; height:16px; color:var(--t3)}
.h2-lw-r{display:flex; gap:6px; overflow:hidden}
.h2-lw-r span{flex:none; height:26px; padding:0 9px; border-radius:9px; display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--t2); background:rgba(255,255,255,.035); border:1px solid var(--line); white-space:nowrap}
.h2-lw-r span b{color:var(--gold); font-weight:700}
.h2-lw-r span i{width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 6px rgba(31,207,161,.9)}
.h2-lw-r span i.h2-off{background:var(--t3); box-shadow:none}
.h2-rep{display:flex; align-items:center; gap:6px; color:var(--mint) !important; font-weight:600}
.h2-rep .h2-ic{width:13px; height:13px}
@keyframes h2-s2blink{0%,100%{opacity:.15; transform:scale(.6)} 45%{opacity:1; transform:scale(1.15)} 60%{opacity:.85; transform:scale(1)}}

/* ═══ search4 — адаптация к приложению (wave6.css, 29.11) ═══ */
/* Окно поиска — полноэкранный слой поверх Главной (без таббара, как в макетах); фон от y=0 — без шва */
.s4 { position:fixed; inset:0; z-index:200; width:auto; height:auto; max-width:480px; margin:0 auto; overflow:hidden }
.s4 .s4-s3 { top:0; padding-top:var(--w2-top-inset); padding-bottom:calc(16px + var(--w2-safe-bottom));
  overflow-y:auto; overscroll-behavior-y:none; -webkit-overflow-scrolling:touch }
/* Радар: контейнер под растровую подложку (позже) — фон под кольцами, mix-blend-mode: screen */
.s4 .s4-rd-bg { position:absolute; inset:0; z-index:0; border-radius:50%; pointer-events:none; mix-blend-mode:screen; background:none center/cover no-repeat }
/* Окна по центру, с блюром; длинное окно правил прокручивается внутри, не выходя за безопасные зоны */
.s4 .s4-mdl { max-width:448px; margin:0 auto; max-height:calc(100% - var(--w2-top-inset) - var(--w2-safe-bottom) - 16px); overflow-y:auto; overscroll-behavior:contain }
.s4 .s4-cta[aria-disabled="true"] { cursor:default }
.s4 .s4-s2-gm[role="button"] { cursor:pointer }
.s4 .s4-s3-h a { cursor:pointer }
.s4 .s4-av img { pointer-events:none }
/* Главная 2.0: новые блоки (h2-) внутри .w2-home — обёртка .h2 даёт только область стилей */
.w2-home .h2 { display:contents }
/* c3 нет в досках Главной (переносчик его не взял) — тот же цвет, что в окне поиска */
.h2-av.h2-c3{background:linear-gradient(145deg,#7E8CFF,#4B55C9); color:#0A0D2A}

/* ════ wave7 (30.11) · радар-текстура (растр) + анимация кодом — RADAR_TEXTURE.md (CSS «актуальный, 30.11»)
   Перенос как есть; отличия только по схеме проекта: классы с префиксом s4- (окно поиска .s4),
   keyframes с префиксом s4-, url(/assets/…) → файлы веб-корня с хэшем в имени. ════ */
.s4-rd.s4-rx{width:212px; height:212px; margin:0; background:none; border:0; box-shadow:none; border-radius:50%; overflow:visible; --T:6s}
.s4-rd.s4-rx::before,.s4-rd.s4-rx::after,.s4-rd.s4-rx i{display:none}
.s4-rx .s4-cl{position:absolute; inset:0; border-radius:50%; overflow:hidden; isolation:isolate; clip-path:circle(50%); mix-blend-mode:screen; -webkit-mask-image:radial-gradient(circle closest-side,#000 95%,transparent 100%); mask-image:radial-gradient(circle closest-side,#000 95%,transparent 100%)}
.s4-rx .s4-tx,.s4-rx .s4-hi,.s4-rx .s4-sw{position:absolute; inset:0; border-radius:50%; pointer-events:none}
.s4-rx .s4-tx{background:#000 url(radar_green_640.b01e4f9c.webp) center/100% 100% no-repeat; opacity:.62}
.s4-rx .s4-hi{mix-blend-mode:screen; animation:s4-rxs var(--T) linear infinite; -webkit-mask-image:conic-gradient(from 0deg, transparent 0 250deg, #000 358deg, transparent 360deg); mask-image:conic-gradient(from 0deg, transparent 0 250deg, #000 358deg, transparent 360deg)}
.s4-rx .s4-hi::before{content:""; position:absolute; inset:0; border-radius:50%; background:url(radar_green_640.b01e4f9c.webp) center/100% 100% no-repeat; filter:brightness(1.75) saturate(1.15); animation:s4-rxs var(--T) linear infinite reverse}
.s4-rx .s4-sw{animation:s4-rxs var(--T) linear infinite; background:conic-gradient(from 0deg, transparent 0 300deg, rgba(34,227,107,.10) 335deg, rgba(120,255,168,.38) 358.5deg, rgba(200,255,220,.85) 360deg); mix-blend-mode:screen; -webkit-mask-image:radial-gradient(circle closest-side, #000 0 97%, transparent 100%); mask-image:radial-gradient(circle closest-side, #000 0 97%, transparent 100%)}
@keyframes s4-rxs{to{transform:rotate(360deg)}}
.s4-rd.s4-rx i.s4-nd{mix-blend-mode:screen; border:0; box-shadow:none; position:absolute; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; background:radial-gradient(circle, rgba(220,255,232,.95) 0 14%, rgba(98,255,160,.55) 34%, transparent 68%); opacity:0; transform:scale(.6); animation:s4-rxn var(--T) ease-out infinite}
@keyframes s4-rxn{0%{opacity:1; transform:scale(1.5)}22%{opacity:0; transform:scale(.8)}100%{opacity:0; transform:scale(.6)}}
.s4-rd.s4-rx .s4-q{z-index:3}
.s4-rd.s4-rx.s4-idle{--T:9s}
.s4-rd.s4-rx.s4-idle .s4-tx{opacity:.5}
.s4-rd.s4-rx.s4-idle .s4-sw{opacity:.55}
.s4-s3 .s4-s3-rd{margin-top:-2px}

/* ── дополнения к RADAR_TEXTURE.md (задача 30.11) ── */
/* узлы: правило «.rd.rx i{display:none}» из документа (для старых колец r1–r3) скрывает и i.nd — возвращаем показ только узлам */
.s4-rd.s4-rx i.s4-nd{display:block}
/* фон экрана поиска — только корень окна поиска .s4 (Главная и другие экраны не затронуты) */
.s4{background:#030504 url(bg_topo_780.edc18b67.webp) top center / 100% auto no-repeat}
/* экраны уже 360px — радар 190px */
@media (max-width:359px){ .s4-rd.s4-rx{width:190px; height:190px} }
/* уменьшение движения: без бликов, развёртки и узлов; текстура и точки остаются */
@media (prefers-reduced-motion: reduce){ .s4-rx .s4-hi, .s4-rx .s4-sw, .s4-rd.s4-rx i.s4-nd{display:none; animation:none} }

/* ════ wave8 (30.11) · исправления «Поиска 4» ════ */
/* Радар: период один — 6 с — и на «Выбери ставку», и в поиске (idle отличается только яркостью .tx/.sw).
   Общий сдвиг фазы --rxd (задаётся из search3.js только при повторном показе радара) — у .hi, .hi::before,
   .sw и узлов одинаковый: один старт, одна длительность, текстура не «плывёт». */
.s4-rd.s4-rx.s4-idle{--T:6s}
.s4-rx .s4-hi, .s4-rx .s4-hi::before, .s4-rx .s4-sw{animation-delay:var(--rxd, 0s); will-change:transform}
.s4-rd.s4-rx i.s4-nd{animation-delay:calc(var(--rxd, 0s) + var(--k, 0) * 0.75s)}
/* Карусель сумм: горизонтальная прокрутка (touch и колесо), мягкая привязка, жест не уходит родителю */
.s4 .s4-cr{overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  touch-action:pan-x; scroll-snap-type:x proximity; scrollbar-width:none; scroll-padding:0 16px}
.s4 .s4-cr::-webkit-scrollbar{display:none}
.s4 .s4-cr button{scroll-snap-align:start}

/* ════ wave9 (30.11) · радар: один вращающийся слой ════
   Вращающаяся маска .hi и контр-вращение .hi::before убраны: подсветка текстуры под лучом — тем же слоем
   развёртки .sw (conic-gradient, mix-blend-mode: plus-lighter) поверх статичной .tx. Один слой, без маски
   и без вложенной контр-анимации. Узлы — задержка через период: k · T / 8. */
.s4-rx .s4-hi{display:none}
.s4-rx .s4-sw{background:conic-gradient(from 0deg, transparent 0 250deg, rgba(34,227,107,.10) 290deg, rgba(60,240,130,.24) 320deg, rgba(120,255,168,.46) 345deg, rgba(170,255,205,.70) 357deg, rgba(225,255,236,.98) 360deg);
  mix-blend-mode:plus-lighter; will-change:transform; animation:s4-rxs var(--T) linear infinite; animation-delay:var(--rxd, 0s)}
@supports not (mix-blend-mode: plus-lighter){ .s4-rx .s4-sw{mix-blend-mode:screen} }
.s4-rd.s4-rx i.s4-nd{animation-delay:calc(var(--rxd, 0s) + var(--k, 0) * var(--T) / 8)}

/* ════ wave9 (30.11) · единое окно «Создать ставку» (BET_WINDOW.md, bet_window.css с префиксом s4-) ════ */
.s4-mdl.s4-bt2{padding:18px 16px 14px}
.s4-mdl.s4-bt2 .s4-mcap{margin-top:14px; font-size:10.5px; letter-spacing:2px; text-transform:uppercase; color:var(--t3); font-weight:700}
.s4-mdl.s4-bt2 .s4-amt{margin-top:8px}
.s4-mdl.s4-bt2 .s4-amt b{display:flex; align-items:baseline; gap:2px; padding-bottom:2px; border-bottom:1.5px dashed rgba(239,193,90,.35)}
.s4-mdl.s4-bt2 .s4-amt.s4-lkd{border-color:rgba(239,193,90,.34)}
.s4-mdl.s4-bt2 .s4-amt-u{display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap}
.s4-mdl.s4-bt2 .s4-amt-u .s4-ed{display:inline-flex; align-items:center; gap:5px; color:var(--t3)}
.s4-mdl.s4-bt2 .s4-amt-u .s4-ed .s4-ic{width:12px; height:12px}
.s4-mdl.s4-bt2 .s4-cr{margin-top:12px}
.s4-mdl.s4-bt2 .s4-cr button.s4-lk{border-style:dashed !important; border-color:rgba(239,193,90,.34) !important}
.s4-mdl.s4-bt2 .s4-cr button.s4-lk b{color:rgba(240,244,240,.42)}
.s4-mdl.s4-bt2 .s4-cr button.s4-lk small{color:rgba(240,244,240,.28)}
.s4-mdl.s4-bt2 .s4-cr button .s4-lc{position:absolute; top:4px; right:5px; width:9px; height:9px; color:var(--gold); display:flex}
.s4-mdl.s4-bt2 .s4-cr button .s4-lc .s4-ic{width:9px; height:9px}
.s4-mdl.s4-bt2 .s4-cr button.s4-sel.s4-lk{border:1.5px solid var(--gold) !important; border-style:dashed !important; background:linear-gradient(180deg, rgba(239,193,90,.12), rgba(239,193,90,.02)) !important}
.s4-mdl.s4-bt2 .s4-cr button.s4-sel.s4-lk b{color:var(--gold)}
.s4-mdl.s4-bt2 .s4-cr button.s4-sel.s4-lk small{color:rgba(239,193,90,.7)}
.s4-mdl.s4-bt2 .s4-kv-r b.s4-bad{color:#FF9484}
.s4-mdl.s4-bt2 .s4-kv-r b.s4-bad em{font-style:normal; font-size:11.5px; font-weight:600; margin-left:6px; color:#FF9484}
.s4-hn{margin-top:10px; display:flex; gap:10px; padding:11px 12px; border-radius:14px; border:1px solid rgba(239,193,90,.32); background:rgba(239,193,90,.06); font-size:12.5px; line-height:1.42; color:var(--t2)}
.s4-hn > .s4-ic{flex:none; width:16px; height:16px; color:var(--gold); margin-top:1px}
.s4-hn b{color:var(--t1); font-weight:700}
.s4-hn .s4-bar{display:block; margin-top:8px; height:4px; border-radius:3px; background:rgba(255,255,255,.08); overflow:hidden}
.s4-hn .s4-bar i{display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#EFC15A,#F6D98A)}
.s4-hn.s4-bad{border-color:rgba(242,96,79,.32); background:rgba(242,96,79,.06)}
.s4-hn.s4-bad > .s4-ic{color:#FF9484}
.s4-cta.s4-gd{background:#050704 !important; border:1.5px solid rgba(239,193,90,.85) !important; color:#F6D98A !important; text-shadow:0 0 10px rgba(239,193,90,.4); box-shadow:0 0 22px -7px rgba(239,193,90,.65), 0 0 2px rgba(239,193,90,.6), inset 0 0 16px -8px rgba(239,193,90,.5) !important}
.s4-mdl.s4-bt2 .s4-cta{margin-top:12px}
.s4-mdl.s4-bt2 .s4-lnk3{margin-top:8px; text-align:center; font-size:12.5px; color:var(--t2)}
.s4-mdl.s4-bt2 .s4-lnk3 a{color:var(--mint); font-weight:600; text-decoration:none}
.s4-mdl.s4-bt2 .s4-cta-s{margin-top:8px}
.s4-mdl.s4-bt2 .s4-cta.s4-go::after,.s4-mdl.s4-bt2 .s4-cta.s4-gd::after{content:""; display:block; position:absolute; z-index:-1; inset:0; left:0; top:0; bottom:0; width:auto; transform:none; border-radius:inherit; background:none; opacity:0; animation:s4-btPulse 2.4s ease-in-out infinite; pointer-events:none}
.s4-mdl.s4-bt2 .s4-cta.s4-go::after{box-shadow:inset 0 0 0 1.5px rgba(98,255,203,1), inset 0 0 22px -3px rgba(46,240,180,.75)}
.s4-mdl.s4-bt2 .s4-cta.s4-gd::after{box-shadow:inset 0 0 0 1.5px rgba(246,217,138,1), inset 0 0 22px -3px rgba(239,193,90,.7)}
.s4-mdl.s4-bt2 .s4-cta.s4-gd{position:relative; overflow:hidden; isolation:isolate}
.s4-mdl.s4-bt2 .s4-cta.s4-go{animation:s4-btGlowM 2.4s ease-in-out infinite}
.s4-mdl.s4-bt2 .s4-cta.s4-gd{animation:s4-btGlowG 2.4s ease-in-out infinite}
@keyframes s4-btPulse{0%,100%{opacity:0} 50%{opacity:1}}
@keyframes s4-btGlowM{0%,100%{filter:drop-shadow(0 0 3px rgba(46,240,180,.15))} 50%{filter:drop-shadow(0 0 11px rgba(46,240,180,.6))}}
@keyframes s4-btGlowG{0%,100%{filter:drop-shadow(0 0 3px rgba(239,193,90,.15))} 50%{filter:drop-shadow(0 0 11px rgba(239,193,90,.55))}}
@media (prefers-reduced-motion: reduce){.s4-mdl.s4-bt2 .s4-cta.s4-go,.s4-mdl.s4-bt2 .s4-cta.s4-gd,.s4-mdl.s4-bt2 .s4-cta.s4-go::after,.s4-mdl.s4-bt2 .s4-cta.s4-gd::after{animation:none}}
/* адаптация окна к приложению */
.s4.s4-bw{z-index:260; background:none}
.s4-mdl.s4-bt2 .s4-amt b[role="button"]{cursor:text}
.s4-mdl.s4-bt2 .s4-amt input{flex:1; min-width:0; width:100%; margin:0 8px; padding:0 0 2px; background:transparent; border:0; outline:0; border-bottom:1.5px dashed rgba(239,193,90,.6);
  color:var(--gold); font-family:inherit; font-size:34px; font-weight:700; letter-spacing:-1px; text-align:center}
.s4-mdl.s4-bt2 .s4-lnk3 a{cursor:pointer}
/* узкие экраны: «не хватает D» — под суммой, не выходит за край (360px) */
@media (max-width:389px){ .s4-mdl.s4-bt2 .s4-kv-r b.s4-bad{display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; padding:4px 0} .s4-mdl.s4-bt2 .s4-kv-r b.s4-bad em{margin-left:0} }

/* ════ wave10 (02.12) · центр вращения радара ════
   Место радара растягивается на ширину колонки, радар стоит слева с отступом, который search5.js (snapRadar)
   подбирает так, чтобы края и центр были на целых пикселях (без translate/left:50%). Вращающийся слой .sw —
   квадрат inset:0 без своих отступов, вращение строго вокруг центра, только rotate в анимации. */
.s4 .s4-s3 .s4-s3-rd{align-self:stretch; display:flex; justify-content:flex-start; align-items:flex-start}
.s4 .s4-s3 .s4-s3-rd > .s4-rd.s4-rx{flex:none; margin-left:auto; margin-right:auto}
.s4-rx .s4-sw{inset:0; margin:0; transform-origin:50% 50%; -webkit-backface-visibility:hidden; backface-visibility:hidden}

/* ════ wave11 (02.12) · шлейф карты за лучом без вращения карты ════
   .hi — статичная яркая копия текстуры под маской-сектором; вращается только угол маски --a (@property),
   тем же периодом var(--T) и с тем же стартом var(--rxd), что луч .sw, — шлейф идёт ровно за лучом.
   Включено только с классом .s4-prop на корне (есть CSS.registerProperty); без него — как раньше, только луч. */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg }
@keyframes s4-rxa { to { --a: 360deg } }
.s4.s4-prop .s4-rx .s4-hi{display:block; position:absolute; inset:0; border-radius:50%; pointer-events:none; transform:none; will-change:auto;
  background:url(radar_green_640.b01e4f9c.webp) center/100% 100% no-repeat; filter:brightness(1.75) saturate(1.15); mix-blend-mode:screen;
  --a:0deg; animation:s4-rxa var(--T) linear infinite; animation-delay:var(--rxd, 0s);
  -webkit-mask-image:conic-gradient(from var(--a), transparent 0 250deg, #000 358deg, transparent 360deg);
  mask-image:conic-gradient(from var(--a), transparent 0 250deg, #000 358deg, transparent 360deg)}
.s4.s4-prop .s4-rx .s4-hi::before{content:none; display:none; animation:none}
/* со шлейфом луч — как в RADAR_TEXTURE.md (screen, исходный градиент): подсветку карты даёт .hi, без двойной яркости */
.s4.s4-prop .s4-rx .s4-sw{mix-blend-mode:screen; background:conic-gradient(from 0deg, transparent 0 300deg, rgba(34,227,107,.10) 335deg, rgba(120,255,168,.38) 358.5deg, rgba(200,255,220,.85) 360deg)}
@media (prefers-reduced-motion: reduce){ .s4.s4-prop .s4-rx .s4-hi{display:none} }


/* ════ wave12 (02.12) · часы окна депозита: анимация от дедлайна ════
   --ck-dur = всё окно, --ck-del = −прошедшее (ставит matchmaking44.js). Переходы выключены, тик не пишет угол. */
@keyframes rbCkHand { from { transform:rotate(0deg) } to { transform:rotate(360deg) } }
@keyframes rbCkArc { from { stroke-dashoffset:100 } to { stroke-dashoffset:0 } }
.rb-ck.rb-live .rb-hand { transition:none; animation:rbCkHand var(--ck-dur, 480s) linear var(--ck-del, 0s) 1 forwards }
.rb .rb-ck.rb-live .rb-arc, .rb-ck.rb-live .rb-arc { transition:none; animation:rbCkArc var(--ck-dur, 480s) linear var(--ck-del, 0s) 1 forwards }

/* ════ wave13 (02.12) · «Приготовься» 5-4-3-2-1 (общий старт от сервера) — по READY_SCREEN.md / ready.css ════
   Отличия от макета: экран в потоке renderMM (там уже отступ под Telegram и центрирование), а не absolute 390×844;
   id градиентов rdyg/rdym; кольцо — CSS-анимация rdyRing от startAt (--rdy-dur, --rdy-del задаёт matchmaking45.js);
   «вбивание» цифры (rdyN) — на смене секунды (класс .hit), не бесконечный цикл. */
.rdy{position:relative; width:100%; max-width:380px; display:flex; flex-direction:column; align-items:center; text-align:center}
.rdy-top{font-size:11px; letter-spacing:2.4px; text-transform:uppercase; color:var(--t3, rgba(240,244,240,.42)); font-weight:700}
.rdy-t{margin-top:8px; font-size:28px; font-weight:800; letter-spacing:-.5px; color:#F0F4F0}
.rdy-ring{position:relative; margin-top:26px; width:200px; height:200px; flex:none}
.rdy-ring svg{position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg)}
.rdy-ring .bgc{fill:none; stroke:rgba(255,255,255,.06); stroke-width:6}
.rdy-ring .fg{fill:none; stroke:url(#rdyg); stroke-width:6; stroke-linecap:round; stroke-dasharray:565.5; stroke-dashoffset:0; filter:drop-shadow(0 0 8px rgba(239,193,90,.55))}
.rdy-ring.rdy-run .fg{animation:rdyRing var(--rdy-dur, 5000ms) linear var(--rdy-del, 0ms) 1 both}
@keyframes rdyRing{from{stroke-dashoffset:0} to{stroke-dashoffset:565.5}}
.rdy-ring .n{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:96px; font-weight:800; color:var(--gold, #EFC15A); letter-spacing:-3px; text-shadow:0 0 34px rgba(239,193,90,.45)}
.rdy-ring .n.hit{animation:rdyN 1s cubic-bezier(.2,.7,.2,1) 1}
.rdy-ring.fr .fg{stroke:url(#rdym); filter:drop-shadow(0 0 8px rgba(46,240,180,.55))}
.rdy-ring.fr .n{color:#62FFCB; text-shadow:0 0 34px rgba(46,240,180,.45)}
.rdy.rdy-wait .rdy-ring .fg{opacity:.35}
@keyframes rdyN{0%{transform:scale(1.18); opacity:.35} 22%{transform:scale(1); opacity:1} 100%{transform:scale(.97); opacity:1}}
.rdy-s{margin-top:22px; font-size:13px; color:var(--t2, rgba(240,244,240,.68)); line-height:1.45}
.rdy .vs{margin-top:22px; width:100%; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; padding:14px; border-radius:20px; border:1px solid var(--line, rgba(255,255,255,.08)); background:#0A0F0C}
.rdy .vs-p{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0}
.rdy .vs-p .av{position:relative; overflow:hidden; width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#F0F4F0; background:linear-gradient(140deg,#1E3A2E,#0D1A14); border:1.5px solid rgba(255,255,255,.14)}
.rdy .vs-p .av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%}
.rdy .vs-p.op .av{background:linear-gradient(140deg,#2C2440,#141020)}
.rdy .vs-p b{font-size:14px; font-weight:700; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#F0F4F0}
.rdy .vs-p span{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--t3, rgba(240,244,240,.42))}
.rdy .vs-p span i{width:10px; height:10px; border-radius:50%; background:#F1EEE6; box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.rdy .vs-p span i.bk{background:#151515; box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.rdy .vs-p.mv span{color:var(--mint, #1FCFA1)}
.rdy .vs-x{font-size:13px; font-weight:800; letter-spacing:2px; color:var(--t3, rgba(240,244,240,.42))}
.rdy .bk2{margin-top:12px; width:100%; display:flex; align-items:center; justify-content:space-between; padding:13px 16px; border-radius:16px; border:1px solid rgba(239,193,90,.30); background:linear-gradient(180deg,rgba(239,193,90,.07),rgba(239,193,90,.02))}
.rdy .bk2 > span{font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--t3, rgba(240,244,240,.42)); font-weight:700; display:flex; align-items:center; gap:7px}
.rdy .bk2 > span .ic{width:13px; height:13px; color:var(--mint, #1FCFA1); fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.rdy .bk2 b{font-size:20px; font-weight:800; color:var(--gold, #EFC15A)}
.rdy .bk2 b small{font-size:11px; margin-left:4px; letter-spacing:.6px; color:rgba(239,193,90,.75)}
.rdy .bk2.fr{border-color:rgba(46,240,180,.28); background:linear-gradient(180deg,rgba(46,240,180,.06),rgba(46,240,180,.015))}
.rdy .bk2.fr b{font-size:15px; color:#62FFCB}
.rdy-f{margin-top:26px; font-size:12px; color:var(--t3, rgba(240,244,240,.42)); display:flex; align-items:center; justify-content:center; gap:7px}
.rdy-f .ic{flex:none; width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.rdy-f b{color:#F0F4F0}
@media (prefers-reduced-motion: reduce){ .rdy-ring .n.hit{animation:none} }
/* этап «Создаём контракт»: нити растут 5 с (минимум этапа 6 с), поток — после роста */
.rb .rb-duel.rb-slow .rb-th .rb-grow{animation-duration:5s}
.rb .rb-duel.rb-slow .rb-th .rb-pls{animation-delay:5s, 5s}
/* невысокие экраны: кольцо и отступы компактнее, чтобы банк и строка часов не уходили под нижнюю панель */
@media (max-height: 800px){
  .rdy-t{font-size:24px; margin-top:6px}
  .rdy-ring{margin-top:16px; width:156px; height:156px}
  .rdy-ring .n{font-size:76px}
  .rdy-s{margin-top:14px}
  .rdy .vs{margin-top:14px; padding:10px 12px}
  .rdy .vs-p .av{width:44px; height:44px; font-size:17px}
  .rdy .bk2{margin-top:10px; padding:11px 14px}
  .rdy-f{margin-top:14px}
}
@media (max-height: 680px){
  .rdy-top{display:none}
  .rdy-t{font-size:21px; margin-top:0}
  .rdy-ring{margin-top:10px; width:124px; height:124px}
  .rdy-ring .n{font-size:60px; letter-spacing:-2px}
  .rdy-s{margin-top:10px; font-size:12px}
  .rdy .vs{margin-top:10px; padding:8px 10px; gap:6px}
  .rdy .vs-p{gap:4px}
  .rdy .vs-p .av{width:38px; height:38px; font-size:15px}
  .rdy .bk2{margin-top:8px; padding:9px 12px}
  .rdy .bk2 b{font-size:17px}
  .rdy-f{margin-top:10px}
}

/* ════ wave14 (02.12) · единая кнопка «назад» (nav1.js) ════
   Двойной шеврон, тонкая серая линия, скруглённая кнопка в стиле кнопки «назад» окна поиска (.s4-bk);
   видимая часть 40 px, зона нажатия 48 px (::after). В шапках Профиля / Рейтинга / PvP — в их слоте слева,
   на экранах без шапки (карточка возврата, результат) — плавающая #nav-fab с учётом верхнего safe-area Telegram. */
.nav-bk{position:relative; flex:none; width:40px; height:40px; padding:0; margin:0; border-radius:13px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.035); color:rgba(240,244,240,.62); cursor:pointer; -webkit-tap-highlight-color:transparent; font:inherit}
.nav-bk::after{content:""; position:absolute; inset:-4px}
.nav-bk svg{width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.nav-bk:active{background:rgba(255,255,255,.08); color:#F0F4F0}
/* слоты логотипа в шапках Рейтинга и PvP — та же кнопка вместо золотого логотипа */
.RH-LOGO.nav-bk, .PH-LOGO.nav-bk{display:flex; width:40px; height:40px; border-radius:13px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.035); color:rgba(240,244,240,.62); font-size:0}
.nav-fab{position:fixed; z-index:120; left:max(16px, calc(50% - 240px + 16px)); top:calc(var(--w2-top-inset, 8px) + 4px); background:rgba(8,12,9,.72); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px)}
.nav-fab[hidden]{display:none}
#app.in-game .nav-fab{display:none}

/* ════ wave15 (02.12) · экран результата партии по макету RESULTS.md (postgame24.js) ════
   Классы макета с префиксом rs- (общие .cta/.bar/.tile/.av не пересекаются со стилями приложения).
   Фон-сетка (.rs-wm) и медаль исхода (.rs-med) — отдельные слои: позже заменяются текстурой.
   Низ: место под плавающую панель — 96 px + safe-area (как в fix3). Анимации — только transform/opacity/stroke. */
.res{--gold:#EFC15A; --mint:#1FCFA1; --red:#F2604F; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54);
  --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:relative; min-height:100%; box-sizing:border-box; display:flex; flex-direction:column; align-items:stretch;
  max-width:440px; margin:0 auto; padding:calc(var(--w2-top-inset, 8px) + 12px) 16px calc(96px + var(--w2-safe-bottom, 0px));
  color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; font-size:14px; line-height:1.25; text-align:left}
.res *{box-sizing:border-box}
.res .rs-num{font-variant-numeric:tabular-nums}
.res .rs-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.res .rs-back{position:absolute; left:16px; top:calc(var(--w2-top-inset, 8px) + 4px); z-index:3}
/* шапка: фон-сетка, медаль, заголовок, подпись */
.rs-h{position:relative; display:flex; flex-direction:column; align-items:center; padding-top:2px}
.rs-wm{position:absolute; left:50%; top:-40px; width:252px; height:252px; margin-left:-126px; border-radius:50%; pointer-events:none; z-index:0; --q:rgba(239,193,90,.085);
  -webkit-mask-image:radial-gradient(closest-side, #000 48%, rgba(0,0,0,0) 100%); mask-image:radial-gradient(closest-side, #000 48%, rgba(0,0,0,0) 100%)}
.rs-wm i{position:absolute; width:50%; height:50%; background:conic-gradient(var(--q) 25%, rgba(0,0,0,0) 0 50%, var(--q) 0 75%, rgba(0,0,0,0) 0) 0 0/28px 28px}
.rs-wm .q1{left:0; top:0}
.rs-wm .q2{right:0; bottom:0}
.rs-wm.l{--q:rgba(242,96,79,.075)}
.rs-wm.d{--q:rgba(31,207,161,.07)}
.rs-med{position:relative; z-index:1; flex:none; width:88px; height:88px}
.rs-med svg{width:100%; height:100%; display:block; overflow:visible}
.rs-med .rg{fill:none; stroke-width:1.4; stroke-linecap:round}
.rs-med .tk{stroke-width:1.6; stroke-linecap:round}
.rs-med .fg{stroke-linejoin:round; stroke-linecap:round}
.rs-med .rays, .rs-med .fig{transform-box:view-box; transform-origin:60px 60px}
.rs-med.w{filter:drop-shadow(0 0 22px rgba(239,193,90,.42))}
.rs-med.w .rg, .rs-med.w .tk{stroke:rgba(239,193,90,.5)}
.rs-med.w .fg{fill:url(#rsgw); stroke:none}
.rs-med.w .pl{fill:rgba(239,193,90,.09); stroke:rgba(239,193,90,.3); stroke-width:1.2}
.rs-med.l .rg, .rs-med.l .tk{stroke:rgba(242,96,79,.42)}
.rs-med.l .fg{fill:none; stroke:rgba(242,96,79,.9); stroke-width:3.2}
.rs-med.l .pl{fill:rgba(242,96,79,.07); stroke:rgba(242,96,79,.26); stroke-width:1.2}
.rs-med.d .rg, .rs-med.d .tk{stroke:rgba(31,207,161,.42)}
.rs-med.d .fg{fill:none; stroke:rgba(31,207,161,.9); stroke-width:3.4}
.rs-med.d .pl{fill:rgba(31,207,161,.07); stroke:rgba(31,207,161,.26); stroke-width:1.2}
.rs-t{position:relative; z-index:1; margin-top:10px; font-size:30px; font-weight:700; letter-spacing:1.5px; line-height:1.05; text-transform:uppercase; text-align:center}
.rs-t.w{color:var(--gold)} .rs-t.l{color:var(--red)} .rs-t.d{color:var(--mint)}
.rs-s{position:relative; z-index:1; margin-top:7px; max-width:310px; text-align:center; font-size:12.5px; line-height:1.45; color:var(--t2)}
/* соперник */
.rs-opc{margin-top:12px; display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:16px; border:1px solid var(--line); background:var(--surf)}
.rs-av{position:relative; overflow:hidden; width:36px; height:36px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; color:#1A1400; background:linear-gradient(145deg,#EFC15A,#B97A18)}
.rs-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%}
.rs-opx{flex:1; min-width:0}
.rs-opn{font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rs-ops{margin-top:2px; font-size:12px; color:var(--t3)}
.rs-opt{flex:none; font-size:12px; font-weight:700; color:var(--t3)}
.rs-opt.l{color:var(--red)}
/* награды */
.rs-rwd{margin-top:10px; padding:11px 13px 12px; border-radius:18px; border:1px solid var(--line); background:var(--surf)}
.rs-rwh{display:flex; align-items:center; justify-content:space-between; gap:10px}
.rs-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2); white-space:nowrap}
.rs-rwn{font-size:21px; font-weight:700; color:var(--mint); line-height:1}
.rs-rwn small{font-size:15px}
.rs-row{display:flex; align-items:center; gap:10px; min-height:36px; font-size:13.5px; border-top:1px solid var(--line)}
.rs-rwh + .rs-row{margin-top:10px}
.rs-tile{width:28px; height:28px; flex:none; border-radius:9px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--surf); color:var(--t2)}
.rs-tile .rs-ic{width:15px; height:15px}
.rs-tile.m{background:rgba(31,207,161,.12); border-color:rgba(31,207,161,.30); color:var(--mint)}
.rs-tile.g{background:rgba(239,193,90,.10); border-color:rgba(239,193,90,.30); color:var(--gold)}
.rs-tile.r{background:rgba(242,96,79,.10); border-color:rgba(242,96,79,.34); color:var(--red)}
.rs-nm{flex:1; min-width:0}
.rs-v{flex:none; font-size:13.5px; font-weight:700; color:var(--mint); white-space:nowrap}
.rs-v.g{color:var(--gold)} .rs-v.r{color:var(--red)} .rs-v.n{color:var(--t3)}
.rs-lvl{margin-top:10px; display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px}
.rs-lvl b{color:var(--gold); font-weight:700; letter-spacing:.3px}
.rs-lvl span{color:var(--t3)}
.rs-bar{position:relative; margin-top:8px; height:8px; border-radius:4px; background:rgba(255,255,255,.09); overflow:hidden; display:flex}
.rs-bar i{display:block; height:100%; background:linear-gradient(90deg,#C88A20,#EFC15A)}
.rs-bar i.add{background:#9CF3DC; transform-origin:0 50%}
.rs-bar.rs-lvup::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,240,191,0),rgba(255,240,191,.85),rgba(255,240,191,0)); opacity:0; pointer-events:none}
.rs-foot{margin-top:6px; font-size:12px; color:var(--t3)}
/* кнопки */
.rs-dk{margin-top:auto; padding-top:22px}
.rs-r2{display:flex; gap:10px}
.rs-cta{position:relative; flex:1; min-width:0; width:100%; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center; gap:10px; font:inherit; font-size:13.5px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; white-space:nowrap; cursor:pointer; padding:0}
.rs-cta .rs-ic{width:18px; height:18px}
.rs-cta.go{overflow:hidden; isolation:isolate; background:#040705; border:1.5px solid rgba(46,240,180,.9); color:#62FFCB; text-shadow:0 0 10px rgba(46,240,180,.5); box-shadow:0 0 22px -6px rgba(46,240,180,.7), 0 0 2px rgba(46,240,180,.6), inset 0 0 16px -8px rgba(46,240,180,.55)}
.rs-cta.gh{background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); color:var(--t1); letter-spacing:1.4px}
.rs-cta.sh{margin-top:10px; height:44px; font-size:12.5px; letter-spacing:1.4px; background:rgba(31,207,161,.07); border:1px solid rgba(31,207,161,.34); color:var(--mint)}
/* пульс «Реванш» — как у кнопок окна ставки (filter + ::after, без бегущего блика) */
.rs-cta.go::after{content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1.5px rgba(98,255,203,1), inset 0 0 22px -3px rgba(46,240,180,.75); opacity:0; animation:rsPulse 2.4s ease-in-out infinite; pointer-events:none}
.rs-cta.go{animation:rsGlow 2.4s ease-in-out infinite}
@keyframes rsPulse{0%,100%{opacity:0} 50%{opacity:1}}
@keyframes rsGlow{0%,100%{filter:drop-shadow(0 0 3px rgba(46,240,180,.15))} 50%{filter:drop-shadow(0 0 11px rgba(46,240,180,.6))}}
/* появление исхода */
.res-w .rs-med{animation:rsHit .45s cubic-bezier(.2,.8,.3,1.2) both}
.res-w .rs-med .rays{animation:rsRays .6s cubic-bezier(.2,.7,.2,1) .12s both}
@keyframes rsHit{0%{transform:scale(.6); opacity:0} 65%{transform:scale(1.08); opacity:1} 100%{transform:scale(1)}}
@keyframes rsRays{0%{transform:scale(.72) rotate(-12deg); opacity:0} 100%{transform:scale(1) rotate(0); opacity:1}}
.res-l .rs-med .fg{stroke-dasharray:100; animation:rsDraw .4s ease-out both}
.res-l .rs-med .fg:nth-child(2){animation-delay:.08s}
.res-l .rs-med .fg:nth-child(3){animation-delay:.16s}
.res-l .rs-med{animation:rsShake .32s ease-in-out .42s both}
@keyframes rsDraw{from{stroke-dashoffset:100} to{stroke-dashoffset:0}}
@keyframes rsShake{0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 50%{transform:translateX(4px)} 75%{transform:translateX(-2px)}}
.res-d .rs-med .rs-d1{animation:rsInTop .5s cubic-bezier(.2,.7,.2,1) both}
.res-d .rs-med .rs-d2{animation:rsInBot .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes rsInTop{from{transform:translateY(-12px); opacity:0} to{transform:translateY(0); opacity:1}}
@keyframes rsInBot{from{transform:translateY(12px); opacity:0} to{transform:translateY(0); opacity:1}}
/* прогресс XP: добавленный опыт дорастает за 800 мс; новый уровень — вспышка */
.res .rs-bar i.add{animation:rsAdd .8s cubic-bezier(.2,.7,.2,1) .35s both}
.res .rs-bar.rs-lvup::after{animation:rsFlash .9s ease-out 1.15s both}
@keyframes rsAdd{from{transform:scaleX(0)} to{transform:scaleX(1)}}
@keyframes rsFlash{0%{opacity:0} 30%{opacity:1} 100%{opacity:0}}
@media (prefers-reduced-motion: reduce){
  .res *, .res *::after, .res .rs-cta.go{animation:none !important}
  .res .rs-cta.go::after{opacity:0}
}
/* невысокие экраны: компактнее, чтобы кнопки уходили выше панели без лишней прокрутки */
@media (max-height: 760px){
  .rs-med{width:72px; height:72px}
  .rs-t{font-size:26px; margin-top:8px}
  .rs-wm{top:-34px; width:210px; height:210px; margin-left:-105px}
  .rs-row{min-height:32px}
  .rs-cta{height:50px}
}

/* ════ wave16 (02.12) · точка «кто-то здесь» на чипе ставки — мягкая пульсация ════ */
.s4-cr i.s4-w{animation:s4wPulse 2.2s ease-in-out infinite}
@keyframes s4wPulse{0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.45; transform:scale(.72)}}
@media (prefers-reduced-motion: reduce){ .s4-cr i.s4-w{animation:none} }

/* ════ wave17 (03.12) · окна POSTGAME2: реванш (rematch1.js), «Поделиться победой» (share1.js), плашка Истории ════
   Окна по центру, фон размыт. Классы макета с префиксом pg2-. Таймеры — CSS-анимация от дедлайна сервера
   (--rm-dur = 3 мин, --rm-del = −прошедшее). */
.pg2{--gold:#EFC15A; --mint:#1FCFA1; --red:#F2604F; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54); --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  position:fixed; inset:0; z-index:270; font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:var(--t1); font-size:14px; line-height:1.25}
.pg2 *{box-sizing:border-box}
.pg2 button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer}
.pg2-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.pg2-si{width:20px; height:20px; flex:none; fill:currentColor}
.pg2-blr{position:absolute; inset:0; background:rgba(3,5,4,.55); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px)}
.pg2-m{position:absolute; left:16px; right:16px; top:50%; transform:translateY(-50%); max-width:440px; margin:0 auto; max-height:calc(100% - var(--w2-safe-top, 0px) - var(--w2-safe-bottom, 0px) - 24px); overflow-y:auto;
  padding:18px 16px 16px; border-radius:24px; border:1px solid rgba(255,255,255,.10); background:#0B100D; box-shadow:0 30px 80px -20px rgba(0,0,0,.9)}
.pg2-mh{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.pg2-mt{font-size:19px; font-weight:700}
.pg2-ms{margin-top:4px; font-size:12.5px; line-height:1.4; color:var(--t2)}
.pg2-xb{flex:none; width:36px; height:36px; border-radius:12px; display:flex !important; align-items:center; justify-content:center; border:1px solid var(--line) !important; color:var(--t2)}
.pg2-vs{margin-top:14px; display:flex; align-items:center; justify-content:center; gap:16px}
.pg2-vs span{position:relative; overflow:hidden; width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:19px; border:1.5px solid rgba(255,255,255,.14); background:linear-gradient(140deg,#1E3A2E,#0D1A14)}
.pg2-vs span.o{background:linear-gradient(140deg,#2C2440,#141020)}
.pg2-vs img, .pg2-op .pg2-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%}
.pg2-vs em{font-style:normal; font-size:12px; letter-spacing:2px; font-weight:800; color:var(--t3)}
.pg2-chips{margin:12px -16px 0; padding:2px 16px; display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; scroll-behavior:smooth; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%)}
.pg2-chips::-webkit-scrollbar{display:none}
.pg2-chips button{position:relative; flex:none; width:62px; height:54px; border-radius:14px; border:1px solid rgba(255,255,255,.09) !important; background:#050806 !important; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:1px}
.pg2-chips b{font-size:17px; font-weight:700}
.pg2-chips small{font-size:9px; letter-spacing:.6px; color:var(--t3)}
.pg2-chips .sel{border:1.5px solid var(--gold) !important; background:linear-gradient(180deg,rgba(239,193,90,.15),rgba(239,193,90,.03)) !important}
.pg2-chips .sel b{color:var(--gold)}
.pg2-chips .lk{border-style:dashed !important; border-color:rgba(239,193,90,.34) !important}
.pg2-chips .lk b{color:rgba(240,244,240,.4)}
.pg2-chips .sel.lk{border:1.5px dashed var(--gold) !important}
.pg2-lc{position:absolute; top:4px; right:5px; display:flex; color:var(--gold)}
.pg2-lc .pg2-ic{width:9px; height:9px}
.pg2-op{margin-top:14px; display:flex; align-items:center; gap:12px; padding:12px; border-radius:16px; border:1px solid var(--line); background:#070B09}
.pg2-op .pg2-av{position:relative; overflow:hidden; width:44px; height:44px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:17px; background:linear-gradient(140deg,#2C2440,#141020); border:1.5px solid rgba(255,255,255,.14)}
.pg2-op b{display:block; font-size:15px}
.pg2-op span{font-size:12px; color:var(--t3)}
.pg2-kv{margin-top:10px; border-radius:16px; border:1px solid var(--line); background:#0A0F0C}
.pg2-kv div{display:flex; justify-content:space-between; align-items:center; padding:0 14px; height:40px; font-size:13px; color:var(--t2)}
.pg2-kv div + div{border-top:1px solid var(--line)}
.pg2-kv b{color:var(--t1); font-weight:700}
.pg2-kv b.g{color:var(--gold)} .pg2-kv b.m{color:#3FE0B0} .pg2-kv b.r{color:#FF9484}
.pg2-tmr{margin-top:12px; display:flex; align-items:center; gap:10px; font-size:12px; color:var(--t3)}
.pg2-tb{flex:1; height:4px; border-radius:3px; background:rgba(255,255,255,.07); overflow:hidden}
.pg2-tb i{display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#1FCFA1,#62FFCB); transform-origin:0 50%; animation:pg2Bar var(--rm-dur,180000ms) linear var(--rm-del,0ms) 1 both}
@keyframes pg2Bar{from{transform:scaleX(1)} to{transform:scaleX(0)}}
.pg2-tmr b{color:var(--t1); font-weight:700; min-width:34px; text-align:right; font-variant-numeric:tabular-nums}
.pg2-wait{margin:14px auto 0; width:84px; height:84px; position:relative}
.pg2-wait svg{position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg)}
.pg2-wait .bg{fill:none; stroke:rgba(255,255,255,.07); stroke-width:4}
.pg2-wait .fg{fill:none; stroke:#3FE0B0; stroke-width:4; stroke-linecap:round; stroke-dasharray:238.8; filter:drop-shadow(0 0 6px rgba(46,240,180,.6)); animation:pg2Ring var(--rm-dur,180000ms) linear var(--rm-del,0ms) 1 both}
@keyframes pg2Ring{from{stroke-dashoffset:0} to{stroke-dashoffset:238.8}}
.pg2-wait b{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; font-variant-numeric:tabular-nums}
.pg2-r2{margin-top:14px; display:grid; grid-template-columns:1fr 1fr; gap:10px}
.pg2-c{height:52px; border-radius:16px !important; display:flex !important; align-items:center; justify-content:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:1.1px; text-transform:uppercase; padding:0 6px !important; min-width:0; white-space:nowrap}
.pg2-c .pg2-ic, .pg2-c .pg2-si{width:17px; height:17px}
.pg2-c.go{background:#040705 !important; border:1.5px solid rgba(46,240,180,.9) !important; color:#62FFCB !important; text-shadow:0 0 10px rgba(46,240,180,.5); animation:pg2Go 2.4s ease-in-out infinite}
.pg2-c.gd{background:#050704 !important; border:1.5px solid rgba(239,193,90,.85) !important; color:#F6D98A !important; animation:pg2Gd 2.4s ease-in-out infinite}
.pg2-c.gh{background:rgba(255,255,255,.04) !important; border:1px solid rgba(255,255,255,.10) !important; color:var(--t1) !important}
.pg2-c.dg{background:rgba(242,96,79,.06) !important; border:1px solid rgba(242,96,79,.45) !important; color:#FF9484 !important}
.pg2-c.lk{background:rgba(255,255,255,.03) !important; border:1px dashed rgba(239,193,90,.42) !important; color:rgba(240,244,240,.55) !important}
.pg2-c.lk .pg2-ic{color:var(--gold)}
.pg2-c[disabled]{opacity:.45; animation:none; pointer-events:none}
.pg2-w{width:100%; margin-top:12px}
@keyframes pg2Go{0%,100%{filter:drop-shadow(0 0 3px rgba(46,240,180,.15))} 50%{filter:drop-shadow(0 0 11px rgba(46,240,180,.6))}}
@keyframes pg2Gd{0%,100%{filter:drop-shadow(0 0 3px rgba(239,193,90,.15))} 50%{filter:drop-shadow(0 0 11px rgba(239,193,90,.55))}}
.pg2-hn{margin-top:10px; display:flex; gap:10px; padding:11px 12px; border-radius:14px; border:1px solid rgba(242,96,79,.32); background:rgba(242,96,79,.06); font-size:12.5px; line-height:1.42; color:var(--t2)}
.pg2-hn > .pg2-ic{color:#FF9484; margin-top:1px}
.pg2-hn b{color:var(--t1)}
.pg2-hn.g{border-color:rgba(46,240,180,.25); background:rgba(46,240,180,.05)} .pg2-hn.g > .pg2-ic{color:#3FE0B0}
.pg2-hn.gld{border-color:rgba(239,193,90,.32); background:rgba(239,193,90,.06)} .pg2-hn.gld > .pg2-ic{color:var(--gold)}
.pg2-bar{display:block; margin-top:8px; height:4px; border-radius:3px; background:rgba(255,255,255,.08); overflow:hidden}
.pg2-bar i{display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#EFC15A,#F6D98A)}
.pg2-f{margin-top:10px; font-size:12px; line-height:1.35; color:var(--t3); text-align:center}
.pg2-f a{color:var(--mint); font-weight:600; cursor:pointer}
.pg2-nt{margin-top:10px; display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:14px; border:1px solid var(--line); background:var(--surf); font-size:12px; color:var(--t2)}
.pg2-nt span{flex:1}
.pg2-nt button{flex:none; height:30px; padding:0 12px !important; border-radius:10px; border:1px solid rgba(46,240,180,.5) !important; color:#62FFCB; font-weight:700; font-size:12px}
/* «Поделиться победой» */
.pg2-card{position:relative; overflow:hidden; margin-top:14px; padding:16px 14px 14px; border-radius:20px; border:1px solid rgba(239,193,90,.38); text-align:center;
  background:conic-gradient(rgba(239,193,90,.05) 25%, rgba(0,0,0,0) 0 50%, rgba(239,193,90,.05) 0 75%, rgba(0,0,0,0) 0) 0 0/24px 24px, radial-gradient(120% 90% at 50% 0%, rgba(239,193,90,.12), rgba(239,193,90,0) 60%), #0A0E0B}
.pg2-card .br{font-size:11px; font-weight:800; letter-spacing:2.6px; text-transform:uppercase; color:var(--gold)}
.pg2-card .cw{margin:12px auto 0; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:1px solid rgba(239,193,90,.45); color:var(--gold); background:rgba(239,193,90,.07)}
.pg2-card .cw .pg2-ic{width:22px; height:22px}
.pg2-card .ct{margin-top:10px; font-size:24px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold)}
.pg2-card .cs{margin-top:2px; font-size:28px; font-weight:800; color:#3FE0B0; font-variant-numeric:tabular-nums}
.pg2-card .cs small{font-size:12px; margin-left:4px; letter-spacing:.6px}
.pg2-card .cs.fr{font-size:16px; letter-spacing:1px; text-transform:uppercase}
.pg2-card .cv{margin-top:6px; font-size:12.5px; color:var(--t2)}
.pg2-card .cl{margin:12px auto 0; display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:7px 12px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.35); font-size:12px; color:var(--t3); white-space:nowrap; overflow:hidden}
.pg2-card .cl b{color:var(--t1)} .pg2-card .cl span{overflow:hidden; text-overflow:ellipsis}
.pg2-sh4{margin-top:12px; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px}
.pg2-sh4 button{height:62px; border-radius:14px; border:1px solid var(--line) !important; background:#0A0F0C !important; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:6px; font-size:11.5px; color:var(--t2)}
.pg2-sh4 button.on{border-color:rgba(46,240,180,.45) !important; color:var(--t1)}
.pg2-sh4 button.on .pg2-si{color:#3FE0B0}
.pg2-sh4 button[hidden]{display:none !important}
.pg2-txt{display:block; width:100%; margin-top:14px; padding:12px 14px; border-radius:16px; border:1px solid var(--line); background:#0A0F0C; color:var(--t1); font:inherit; font-size:13px; line-height:1.45; resize:none; outline:none}
.pg2-txt:focus{border-color:rgba(46,240,180,.45)}
.pg2-txc{margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; color:var(--t3)}
.pg2-txc a{color:var(--mint); font-weight:700; cursor:pointer}
.pg2-scl{margin-top:10px; border-radius:16px; border:1px solid var(--line); background:#0A0F0C; overflow:hidden}
.pg2-sr{display:flex !important; align-items:center; gap:12px; width:100%; height:50px; padding:0 14px !important; text-align:left; font-size:14px}
.pg2-sr + .pg2-sr{border-top:1px solid var(--line)}
.pg2-sr i{width:32px; height:32px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); border:1px solid var(--line); color:var(--t1)}
.pg2-sr i .pg2-si{width:16px; height:16px}
.pg2-sr b{flex:1; font-weight:700}
.pg2-sr span{display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--t3)}
.pg2-sr span .pg2-ic{width:14px; height:14px}
.pg2-cpd{position:absolute; left:50%; transform:translateX(-50%); bottom:calc(var(--w2-safe-bottom, 0px) + 110px); display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:14px; background:#141A16; border:1px solid rgba(46,240,180,.35); font-size:13px; white-space:nowrap}
.pg2-cpd .pg2-ic{color:#3FE0B0}
.pg2-cpd[hidden]{display:none}
/* плашка в шапке Истории игр (ниже Lv.5) */
.pg2-plate{display:flex; align-items:center; gap:8px; margin:4px 0 12px; padding:9px 12px; border-radius:12px; border:1px dashed rgba(239,193,90,.38); background:rgba(239,193,90,.05); font-size:12px; color:rgba(240,244,240,.7)}
.pg2-plate .pg2-ic{width:14px; height:14px; color:#EFC15A}
/* кнопки POSTGAME2 внутри экранов приложения (деталь партии в Истории) */
#PRF .pg2-c{--t1:#F0F4F0; font-family:inherit; cursor:pointer; text-transform:uppercase}
#PRF .pg2-c .pg2-ic{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
#PRF .pg2-c.go{animation:pg2Go 2.4s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){ .pg2-c.go, .pg2-c.gd, #PRF .pg2-c.go{animation:none} }

/* ════ wave18 (03.12) · экран Кошелька по макетам POSTGAME2 (Wallet / WalletEmpty), profile44.js ════ */
#PRF .wl3{--gold:#EFC15A; --mint:#1FCFA1; --t1:#F0F4F0; --t2:rgba(240,244,240,.68); --t3:rgba(240,244,240,.54); --line:rgba(255,255,255,.08); --surf:rgba(255,255,255,.028);
  padding:14px 16px 0; color:var(--t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
#PRF .wl3 .pg2-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
#PRF .wl3 .pg2-c{font-family:inherit; cursor:pointer; text-transform:uppercase}
.wl3-card{padding:14px 16px 16px; border-radius:22px; border:1px solid rgba(239,193,90,.38); background:radial-gradient(120% 150% at 100% 0%, rgba(239,193,90,.13), rgba(239,193,90,0) 56%), var(--surf)}
.wl3-top{display:flex; align-items:center; gap:10px}
.wl3-tile{width:36px; height:36px; flex:none; border-radius:11px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(239,193,90,.3); background:rgba(239,193,90,.08); color:var(--gold)}
.wl3-ad{flex:1; min-width:0}
.wl3-ad b{display:block; font-family:'JetBrains Mono',ui-monospace,monospace; font-size:14px; font-weight:700}
.wl3-ad span{display:flex; align-items:center; gap:6px; margin-top:2px; font-size:12px; color:#3FE0B0}
.wl3-ad i{width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 6px rgba(31,207,161,.8)}
.wl3-cp{width:36px; height:36px; flex:none; border-radius:11px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:transparent; color:var(--t2); cursor:pointer}
.wl3-cap{margin-top:16px; font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2)}
.wl3-bal{display:flex; align-items:baseline; gap:8px; margin-top:4px}
.wl3-bal b{font-size:36px; font-weight:700; letter-spacing:-1px; color:var(--gold); font-variant-numeric:tabular-nums}
.wl3-bal small{font-size:13px; font-weight:700; letter-spacing:1px; color:rgba(239,193,90,.78)}
.wl3-bal em{margin-left:auto; font-style:normal; font-size:12px; color:var(--t3)}
.wl3-act{margin-top:14px; display:grid; grid-template-columns:1fr 1fr; gap:10px}
.wl3-act .pg2-c{height:48px}
.wl3-info{margin-top:12px; display:flex; gap:10px; padding:12px 14px; border-radius:16px; border:1px solid var(--line); background:var(--surf); font-size:12.5px; line-height:1.45; color:var(--t2)}
.wl3-info .pg2-ic{color:#3FE0B0; margin-top:1px}
.wl3-info b{color:var(--t1)}
.wl3-lh{margin:18px 2px 8px; display:flex; align-items:center; justify-content:space-between; font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--t2)}
.wl3-lh a{font-size:12px; letter-spacing:0; text-transform:none; font-weight:600; color:var(--t2); cursor:pointer}
.wl3-ops{border-radius:18px; border:1px solid var(--line); background:var(--surf); overflow:hidden}
.wl3-op{display:flex; align-items:center; gap:12px; padding:11px 14px}
.wl3-op + .wl3-op{border-top:1px solid var(--line)}
.wl3-oi{width:34px; height:34px; flex:none; border-radius:11px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); color:var(--t2)}
.wl3-oi.m{color:#3FE0B0; border-color:rgba(46,240,180,.3); background:rgba(46,240,180,.06)}
.wl3-oi.g{color:var(--gold); border-color:rgba(239,193,90,.3); background:rgba(239,193,90,.06)}
.wl3-ox{flex:1; min-width:0}
.wl3-ox b{display:block; font-size:13.5px; font-weight:600}
.wl3-ox span{display:block; font-size:11.5px; color:var(--t3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.wl3-ov{text-align:right; flex:none}
.wl3-ov b{display:block; font-size:14px; font-weight:700}
.wl3-ov b.p{color:#3FE0B0} .wl3-ov b.n{color:var(--t1)}
.wl3-ov span{display:inline-flex; gap:4px; align-items:center; font-size:11px; color:var(--t3)}
.wl3-ov span .pg2-ic{width:11px; height:11px}
.wl3-ov span.w{color:var(--gold)}
.wl3-ov span.lnk{cursor:pointer}
.wl3-none{padding:16px 14px; font-size:12.5px; line-height:1.45; color:var(--t3); text-align:center}
.wl3 > .pg2-c.dg{margin-top:16px}
.wl3-empty{display:flex; flex-direction:column; align-items:center; text-align:center; padding-top:30px}
.wl3-big{width:84px; height:84px; border-radius:24px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(239,193,90,.4); background:rgba(239,193,90,.07); color:var(--gold); box-shadow:0 0 40px -10px rgba(239,193,90,.5)}
.wl3-big .pg2-ic{width:34px !important; height:34px !important}
.wl3-et{margin-top:20px; font-size:22px; font-weight:800}
.wl3-es{margin-top:8px; max-width:320px; font-size:13px; line-height:1.45; color:var(--t2)}
.wl3-pts{align-self:stretch; margin-top:20px; text-align:left; border-radius:18px; border:1px solid var(--line); background:var(--surf)}
.wl3-pts div{display:flex; gap:12px; padding:12px 14px; font-size:13px; line-height:1.4; color:var(--t2)}
.wl3-pts div + div{border-top:1px solid var(--line)}
.wl3-pts .pg2-ic{color:#3FE0B0; margin-top:1px}
.wl3-pts b{color:var(--t1)}
.wl3-empty .pg2-c{align-self:stretch; margin-top:18px}
.wl3-fn{margin-top:10px; font-size:12px; color:var(--t3)}


/* ════ wave19 (03.12) · статусы выплаты (PAYOUT_STATES.md, postgame27.js / profile45.js) ════ */
#scr-postgame .pst, .pst-dt .pst{display:flex; align-items:center; gap:8px; margin:0 0 10px 38px; font-size:12px; line-height:1.35; color:rgba(240,244,240,.54)}
.pst .ic{width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}
.pst .pdot{flex:none; width:7px; height:7px; margin:0 3.5px; border-radius:50%; background:#3FE0B0; box-shadow:0 0 9px rgba(46,240,180,.85); animation:pstDot 1.3s ease-in-out infinite}
@keyframes pstDot{0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.3; transform:scale(.65)}}
.pst.ok{color:#3FE0B0}
.pst a{margin-left:auto; flex:none; display:inline-flex; align-items:center; gap:4px; font-weight:600; color:#3FE0B0; cursor:pointer; text-decoration:none; -webkit-tap-highlight-color:transparent}
.pst a .ic{width:13px; height:13px}
.pst.late a{color:#EFC15A}
.pst > span{min-width:0}
.pst.pin > .ic{animation:pstChk .5s cubic-bezier(.2,1.4,.4,1) both}
.pst.pin{animation:pstIn .35s ease-out both}
@keyframes pstChk{0%{transform:scale(.2); opacity:0} 100%{transform:scale(1); opacity:1}}
@keyframes pstIn{0%{opacity:.4} 100%{opacity:1}}
#scr-postgame #rs-money > .rs-row + .pst{margin-top:-2px}
.pst-dt{padding:8px 0 0; border-bottom:1px solid rgba(255,255,255,.06)}
.pst-dt .pst{margin:0 0 8px 0}
@media (prefers-reduced-motion: reduce){.pst .pdot, .pst.pin, .pst.pin > .ic{animation:none}}

/* ════ wave20 (04.12) · «Поделиться победой» по макету share3 ════ */
.pg2-card + .pg2-sh4.sh3-t{margin-top:14px; gap:10px}
.pg2-sh4.sh3-t button{height:76px; border-radius:15px; background:#070B09 !important; font-size:11px}
.pg2-sh4.sh3-t button .pg2-ic{width:20px; height:20px; color:var(--t1)}
.pg2-sh4.sh3-t button.on{border-color:rgba(46,240,180,.5) !important; color:var(--t2)}
.pg2-sh4.sh3-t button.on .pg2-ic{color:#62FFCB}
.pg2-mh.sh3 .sh3-hd{flex:1; min-width:0}
.pg2-mh.sh3 .sh3-bk{margin-right:2px}
.pg2-mh .sh3-bk .pg2-ic{width:18px; height:18px}
.pg2-sr i.b-tg{background:rgba(46,240,180,.08); border-color:rgba(46,240,180,.35); color:#62FFCB}
.pg2-sr i.b-tg .pg2-ic{width:17px; height:17px}
