/* refund-ui3.css (28.11): refund-ui2 + экран «Соперник найден» (макеты 20–21, SPEC3): дуэль, нити к контракту.
   Подключается вместо refund-ui2.css вместе с matchmaking42.js.
   refund-ui2.css (28.11): refund-ui1 + экран «Внеси депозит» (макеты 10–14, SPEC2) и нижний отступ
   экранов 05/06/07 над нижним меню. Подключается вместо refund-ui1.css вместе с matchmaking39.js.
   refund-ui1.css — блок «депозит → отмена → возврат» (дизайн утверждён владельцем 28.11,
   эталон: /root/design/refund-block). Подключается вместе с matchmaking36.js / pvp34.js /
   profile32.js. Все классы с префиксом rb- (в макете v-*, .cta, .kv, .sheet … — в приложении
   есть свои .red .ok .num .cap .r2, поэтому имена переименованы). Токены — только внутри .rb. */

.rb{--rb-bg:#080C09; --rb-t1:#F0F4F0; --rb-t2:rgba(240,244,240,.68); --rb-t3:rgba(240,244,240,.54);
  --rb-mint:#1FCFA1; --rb-gold:#EFC15A; --rb-red:#F2604F;
  --rb-line:rgba(255,255,255,.08); --rb-surf:rgba(255,255,255,.028);
  color:var(--rb-t1); font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif}
.rb, .rb *, .rb *::before, .rb *::after{box-sizing:border-box}
.rb button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit; -webkit-tap-highlight-color:transparent}
.rb .rb-num{font-variant-numeric:tabular-nums}
.rb .rb-mono{font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace; font-variant-numeric:tabular-nums}
.rb .rb-ic{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.rb .rb-cap{font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--rb-t2); white-space:nowrap}
.rb .rb-pulse{animation:rbSkp 1.4s ease-in-out infinite}
@keyframes rbSkp{0%,100%{opacity:.5} 50%{opacity:1}}

/* ───── кнопки ───── */
.rb .rb-cta{width:100%; height:54px; 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; text-align:center}
.rb .rb-cta .rb-ic{width:18px; height:18px}
.rb .rb-cta.rb-gh{background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); color:var(--rb-t1)}
.rb .rb-cta.rb-red{background:rgba(242,96,79,.08); border:1px solid rgba(242,96,79,.58); color:#FF9484; box-shadow:0 0 24px -8px rgba(242,96,79,.75)}
/* главная кнопка (neon-button.css): чёрный фон, неоновая рамка, бегущий блик */
.rb .rb-cta.rb-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)}
.rb .rb-cta.rb-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:rbSweep 3.4s ease-in-out infinite; pointer-events:none}
.rb .rb-cta.rb-go .rb-ic{filter:drop-shadow(0 0 4px rgba(46,240,180,.7))}
@keyframes rbSweep{0%,30%{left:-55%} 70%,100%{left:118%}}
.rb .rb-r2{align-self:stretch; display:flex; gap:10px}
.rb .rb-r2 .rb-cta{flex:1; min-width:0; font-size:12.5px; letter-spacing:1.1px}

/* ───── таблица ключ–значение ───── */
.rb .rb-kv{align-self:stretch; margin-top:14px; border-radius:16px; border:1px solid var(--rb-line); background:var(--rb-surf); text-align:left}
.rb .rb-kv-r{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:42px; padding:0 14px; font-size:13px; color:var(--rb-t2); white-space:nowrap}
.rb .rb-kv-r + .rb-kv-r{border-top:1px solid var(--rb-line)}
.rb .rb-kv-r b{font-weight:700; color:var(--rb-t1)}
.rb .rb-kv-r b.rb-kg{color:var(--rb-gold)}
.rb .rb-kv-r b.rb-km{color:var(--rb-mint)}
.rb .rb-kv-r .rb-lnk{display:flex; align-items:center; gap:6px; color:var(--rb-mint); font-size:12px; font-weight:600; cursor:pointer}
.rb .rb-kv-r .rb-lnk .rb-ic{width:13px; height:13px}

/* ───── аватар ───── */
.rb .rb-av{position:relative; overflow:hidden; width:28px; height:28px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; line-height:1; color:#04130E; background:linear-gradient(145deg,#1FCFA1,#127F66)}
.rb .rb-av.rb-c2{background:linear-gradient(145deg,#EFC15A,#B97A18); color:#1A1400}
.rb .rb-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%}

/* ───── часы: 60 делений, дуга прогресса, стрелка. Прогресс ставит JS (реальное окно) ───── */
.rb .rb-ck{position:relative; flex:none; width:156px; height:156px}
.rb .rb-ck svg{position:relative; z-index:1; width:100%; height:100%; display:block; overflow:visible}
.rb .rb-ck .rb-face{fill:url(#rbckf); stroke:rgba(239,193,90,.22); stroke-width:1}
.rb .rb-ck .rb-mn{stroke:rgba(239,193,90,.26); stroke-width:1; stroke-linecap:round}
.rb .rb-ck .rb-hr{stroke:rgba(239,193,90,.72); stroke-width:2; stroke-linecap:round}
.rb .rb-ck .rb-trk{fill:none; stroke:rgba(255,255,255,.07); stroke-width:3}
.rb .rb-ck .rb-arc{fill:none; stroke:var(--rb-gold); stroke-width:3; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100;
  transform:rotate(-90deg); transform-box:view-box; transform-origin:60px 60px; transition:stroke-dashoffset .5s linear}
.rb .rb-ck .rb-hand{transform-box:view-box; transform-origin:60px 60px; transition:transform .5s linear}
.rb .rb-ck .rb-hand line{stroke:var(--rb-gold); stroke-width:2.2; stroke-linecap:round}
.rb .rb-ck .rb-hand .rb-tl{stroke-width:3.4}
.rb .rb-ck .rb-hub{fill:var(--rb-gold)}
.rb .rb-ck .rb-hub2{fill:#070A08}
.rb .rb-ck::before{content:""; position:absolute; left:12%; top:12%; right:12%; bottom:12%; border-radius:50%; box-shadow:0 0 56px -8px rgba(239,193,90,.5)}
.rb .rb-ck.rb-fin .rb-arc{stroke-dashoffset:0}
.rb .rb-ck.rb-spin .rb-hand{transition:none; animation:rbHand 3s linear infinite}
.rb .rb-ck.rb-r .rb-arc{stroke:var(--rb-red)}
.rb .rb-ck.rb-r .rb-hand line{stroke:var(--rb-red)}
.rb .rb-ck.rb-r .rb-hub{fill:var(--rb-red)}
.rb .rb-ck.rb-r .rb-hr{stroke:rgba(242,96,79,.72)}
.rb .rb-ck.rb-r .rb-mn{stroke:rgba(242,96,79,.28)}
.rb .rb-ck.rb-r .rb-face{stroke:rgba(242,96,79,.28)}
.rb .rb-ck.rb-r::before{box-shadow:0 0 56px -8px rgba(242,96,79,.55)}
.rb .rb-ck.rb-m .rb-arc{stroke:var(--rb-mint)}
.rb .rb-ck.rb-m .rb-hand line{stroke:var(--rb-mint)}
.rb .rb-ck.rb-m .rb-hub{fill:var(--rb-mint)}
.rb .rb-ck.rb-m .rb-hr{stroke:rgba(31,207,161,.72)}
.rb .rb-ck.rb-m .rb-mn{stroke:rgba(31,207,161,.26)}
.rb .rb-ck.rb-m .rb-face{stroke:rgba(31,207,161,.26)}
.rb .rb-ck.rb-m::before{box-shadow:0 0 56px -8px rgba(31,207,161,.55)}
.rb .rb-ck.rb-beat::before{animation:rbBeat 1.8s ease-in-out infinite}
.rb .rb-ck.rb-sm{width:76px; height:76px}
.rb .rb-ck.rb-sm .rb-hr{stroke-width:2.6}
.rb .rb-ck.rb-sm .rb-mn{opacity:0}
.rb .rb-ck.rb-sm .rb-arc, .rb .rb-ck.rb-sm .rb-trk{stroke-width:4}
.rb .rb-ck.rb-sm::before{box-shadow:0 0 36px -6px rgba(239,193,90,.5)}
.rb .rb-ck.rb-gone{display:none}
@keyframes rbHand{from{transform:rotate(0deg)} to{transform:rotate(360deg)}}
@keyframes rbBeat{0%,100%{opacity:.55} 50%{opacity:1}}

/* мини-часы в карточке «Мои игры» */
.rb .rb-mck{width:44px; height:44px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center;
  background:rgba(239,193,90,.10); border:1px solid rgba(239,193,90,.34); color:var(--rb-gold)}
.rb .rb-mck svg{width:26px; height:26px; overflow:visible}
.rb .rb-mck circle{fill:none; stroke:currentColor; stroke-width:1.8}
.rb .rb-mck line{stroke:currentColor; stroke-width:2; stroke-linecap:round}
.rb .rb-mck .rb-h{transform-box:view-box; transform-origin:12px 12px; animation:rbHand 6s linear infinite}

/* ───── 01 экран депозита с часами: один центрированный столбец ───── */
.rb.rb-col{width:100%; max-width:380px; display:flex; flex-direction:column; align-items:center}
.rb-col > *{flex:none}
.rb .rb-t{margin-top:16px; font-size:24px; font-weight:700; letter-spacing:-.4px; text-align:center}
.rb .rb-s{margin-top:6px; max-width:300px; text-align:center; font-size:13px; line-height:1.5; color:var(--rb-t2)}
.rb .rb-capt{margin-top:16px; font-size:10px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:var(--rb-t3)}
.rb .rb-tm{margin-top:2px; font-size:34px; font-weight:700; letter-spacing:-.8px; line-height:1.1; color:var(--rb-gold); font-variant-numeric:tabular-nums}
.rb .rb-box{align-self:stretch; margin-top:16px; border-radius:16px; border:1px solid var(--rb-line); background:var(--rb-surf)}
.rb .rb-pr{display:flex; align-items:center; gap:10px; height:48px; padding:0 14px; font-size:13.5px}
.rb .rb-pr + .rb-pr{border-top:1px solid var(--rb-line)}
.rb .rb-nm{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rb .rb-st{flex:none; display:flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--rb-t3)}
.rb .rb-st .rb-ic{width:14px; height:14px}
.rb .rb-st.rb-y{color:var(--rb-mint)}
.rb .rb-st.rb-n{color:var(--rb-red)}
.rb .rb-kc{align-self:stretch; margin-top:10px; display:flex; align-items:center; justify-content:space-between; height:52px; padding:0 14px; border-radius:16px;
  border:1px solid rgba(239,193,90,.26); background:radial-gradient(140% 160% at 0% 0%, rgba(239,193,90,.09), rgba(239,193,90,0) 60%), var(--rb-surf)}
.rb .rb-kc b{font-size:20px; font-weight:700; color:var(--rb-gold); letter-spacing:-.3px; white-space:nowrap}
.rb .rb-kc b em{font-style:normal; color:rgba(239,193,90,.5)}
.rb .rb-kc b small{margin-left:5px; font-size:11px; letter-spacing:.8px; color:rgba(239,193,90,.78)}
.rb-col .rb-cta{margin-top:16px}
.rb .rb-note{margin-top:12px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; line-height:1.4; color:var(--rb-t3); text-align:center}
.rb .rb-note .rb-ic{width:13px; height:13px; color:var(--rb-mint)}

/* ───── всплывающие окна: по центру, фон размыт ───── */
.rb.rb-ov{position:fixed; inset:0; z-index:2147483646}
.rb .rb-scrim{position:absolute; inset:0; background:rgba(3,5,4,.58); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px)}
.rb .rb-sheet{position:absolute; left:16px; right:16px; top:50%; transform:translateY(-50%); max-width:420px; margin:0 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)}
.rb .rb-sh{display:flex; flex-direction:column; align-items:center; text-align:center}
.rb .rb-sh-t{margin-top:14px; font-size:22px; font-weight:700; letter-spacing:-.3px}
.rb .rb-sh-s{margin-top:8px; font-size:13.5px; line-height:1.5; color:var(--rb-t2)}
.rb .rb-sh-s b{color:var(--rb-gold); font-weight:700}
.rb .rb-sh-s b.rb-m{color:var(--rb-mint)}
.rb .rb-sh .rb-cta{margin-top:10px; letter-spacing:1.4px}
.rb .rb-sh .rb-kv + .rb-cta, .rb .rb-sh .rb-sh-s + .rb-cta{margin-top:16px}
.rb .rb-sh-f{margin-top:12px; display:flex; align-items:center; gap:2px; font-size:12px; color:var(--rb-t3)}
.rb .rb-dt{display:inline-flex; gap:4px; margin-left:6px}
.rb .rb-dt i{width:4px; height:4px; border-radius:50%; background:var(--rb-gold); animation:rbDot 1.2s ease-in-out infinite}
.rb .rb-dt i:nth-child(2){animation-delay:.15s}
.rb .rb-dt i:nth-child(3){animation-delay:.3s}
@keyframes rbDot{0%,80%,100%{opacity:.25; transform:translateY(0)} 40%{opacity:1; transform:translateY(-3px)}}

/* ───── медальоны: крестик (отмена) и галочка (вернулась). Один раз при открытии ───── */
.rb .rb-x{position:relative; width:88px; height:88px; flex:none; animation:rbShake 4.5s ease-in-out 1 both}
.rb .rb-x svg{position:relative; z-index:1; width:100%; height:100%; display:block; overflow:visible}
.rb .rb-x::before{content:""; position:absolute; left:12%; top:12%; right:12%; bottom:12%; border-radius:50%; box-shadow:0 0 46px -8px rgba(242,96,79,.6)}
.rb .rb-x .rb-rg{fill:none; stroke:rgba(242,96,79,.75); stroke-width:1.6; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:0;
  transform:rotate(-90deg); transform-box:view-box; transform-origin:60px 60px; animation:rbRing 4.5s cubic-bezier(.6,0,.3,1) 1 both}
.rb .rb-x .rb-pl{fill:rgba(242,96,79,.07); stroke:rgba(242,96,79,.26); stroke-width:1.2}
.rb .rb-x .rb-tk{stroke:rgba(242,96,79,.34); stroke-width:1.5; stroke-linecap:round}
.rb .rb-x .rb-fg{fill:none; stroke:var(--rb-red); stroke-width:5; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:0}
.rb .rb-x .rb-f1{animation:rbXa 4.5s ease-out 1 both}
.rb .rb-x .rb-f2{animation:rbXb 4.5s ease-out 1 both}
@keyframes rbRing{0%{stroke-dashoffset:100} 18%,100%{stroke-dashoffset:0}}
@keyframes rbXa{0%,16%{stroke-dashoffset:100} 26%,100%{stroke-dashoffset:0}}
@keyframes rbXb{0%,24%{stroke-dashoffset:100} 34%,100%{stroke-dashoffset:0}}
@keyframes rbShake{0%,34%,46%,100%{transform:translateX(0)} 37%{transform:translateX(-5px)} 40%{transform:translateX(4px)} 43%{transform:translateX(-2px)}}

.rb .rb-ok{position:relative; width:124px; height:124px; flex:none}
.rb .rb-ok svg{position:relative; z-index:2; width:100%; height:100%; display:block; overflow:visible}
.rb .rb-ok .rb-rg{fill:none; stroke:rgba(31,207,161,.8); stroke-width:1.6; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:0;
  transform:rotate(-90deg); transform-box:view-box; transform-origin:60px 60px; animation:rbOkRing 5s cubic-bezier(.6,0,.3,1) 1 both}
.rb .rb-ok .rb-tk{stroke:rgba(31,207,161,.36); stroke-width:1.5; stroke-linecap:round}
.rb .rb-ok .rb-pl{fill:url(#rbokg); stroke:rgba(31,207,161,.38); stroke-width:1.2; transform-box:view-box; transform-origin:60px 60px; animation:rbOkPop 5s cubic-bezier(.3,1.6,.5,1) 1 both}
.rb .rb-ok .rb-fg{fill:none; stroke:#04130E; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:100; stroke-dashoffset:0; animation:rbOkChk 5s ease-out 1 both}
.rb .rb-ok .rb-gl{position:absolute; z-index:0; left:8%; top:8%; right:8%; bottom:8%; border-radius:50%; box-shadow:0 0 64px -6px rgba(31,207,161,.75); opacity:.55; animation:rbOkGlow 5s ease-in-out 1 both}
.rb .rb-ok .rb-wv{position:absolute; z-index:1; left:50%; top:50%; width:96px; height:96px; margin:-48px 0 0 -48px; border-radius:50%; border:1.5px solid rgba(31,207,161,.55); opacity:0; animation:rbOkWave 5s ease-out 1 both}
.rb .rb-ok .rb-wv.rb-w2{animation-delay:.25s}
.rb .rb-ok .rb-sp{position:absolute; z-index:1; left:50%; top:50%; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:var(--rb-gold); opacity:0; animation:rbOkSpark 5s ease-out 1 both}
.rb .rb-ok .rb-sp:nth-of-type(odd){background:var(--rb-mint)}
@keyframes rbOkRing{0%{stroke-dashoffset:100} 14%,100%{stroke-dashoffset:0}}
@keyframes rbOkPop{0%,10%{transform:scale(.4); opacity:0} 20%{transform:scale(1.08); opacity:1} 26%,100%{transform:scale(1); opacity:1}}
@keyframes rbOkChk{0%,20%{stroke-dashoffset:100} 32%,100%{stroke-dashoffset:0}}
@keyframes rbOkGlow{0%,26%{opacity:0} 36%{opacity:1} 60%{opacity:.55} 80%{opacity:.85} 100%{opacity:.55}}
@keyframes rbOkWave{0%,30%{opacity:0; transform:scale(.7)} 33%{opacity:.9} 60%,100%{opacity:0; transform:scale(1.6)}}
@keyframes rbOkSpark{0%,31%{opacity:0; transform:rotate(var(--a)) translateY(0) scale(.4)} 36%{opacity:1} 58%,100%{opacity:0; transform:rotate(var(--a)) translateY(-66px) scale(1)}}

/* ───── 05/06 экран возврата ───── */
.rb.rb-rf{width:100%; max-width:380px; display:flex; flex-direction:column; align-items:center}
.rb-rf > *{flex:none}
.rb-rf .rb-ck{margin-top:10px; width:120px; height:120px}
.rb .rb-hc{margin-top:8px; font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--rb-t3); text-align:center}
.rb .rb-am{margin-top:12px; display:flex; align-items:baseline; gap:8px; font-size:38px; font-weight:700; letter-spacing:-1.2px; line-height:1.05; color:var(--rb-gold)}
.rb .rb-am small{font-size:14px; letter-spacing:1px; color:rgba(239,193,90,.8)}
.rb .rb-eta{margin-top:6px; font-size:13px; color:var(--rb-t2); text-align:center}
.rb .rb-eta b{color:var(--rb-t1); font-weight:700}
.rb .rb-eta.rb-m b{color:var(--rb-mint)}
.rb .rb-steps{align-self:stretch; margin-top:14px; padding:2px 14px; border-radius:18px; border:1px solid var(--rb-line); background:var(--rb-surf); text-align:left}
.rb .rb-step{position:relative; display:flex; align-items:flex-start; gap:12px; padding:10px 0}
.rb .rb-step:not(:last-child)::after{content:""; position:absolute; left:11px; top:35px; bottom:-9px; width:1px; background:var(--rb-line)}
.rb .rb-step.rb-done:not(:last-child)::after{background:rgba(31,207,161,.45)}
.rb .rb-dot{position:relative; width:23px; height:23px; flex:none; border-radius:50%; border:1.5px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; color:var(--rb-mint)}
.rb .rb-dot .rb-ic{width:13px; height:13px; stroke-width:2.6}
.rb .rb-step.rb-on .rb-dot{border-color:var(--rb-gold); box-shadow:0 0 0 4px rgba(239,193,90,.10)}
.rb .rb-step.rb-on .rb-dot::before{content:""; width:9px; height:9px; border-radius:50%; background:var(--rb-gold); animation:rbPulse 1.4s ease-in-out infinite}
.rb .rb-step.rb-done .rb-dot{border-color:rgba(31,207,161,.6); background:rgba(31,207,161,.13)}
@keyframes rbPulse{0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.35; transform:scale(.7)}}
.rb .rb-sx{flex:1; min-width:0; padding-top:3px}
.rb .rb-stt{font-size:14px; font-weight:600; line-height:1.25; color:var(--rb-t3)}
.rb .rb-step.rb-on .rb-stt{color:var(--rb-t1)}
.rb .rb-step.rb-done .rb-stt{color:var(--rb-t2)}
.rb .rb-sts{margin-top:3px; font-size:12px; line-height:1.4; color:var(--rb-t3); white-space:normal}
.rb .rb-act{align-self:stretch; margin-top:12px; border-radius:18px; border:1px solid var(--rb-line); background:var(--rb-surf); overflow:hidden}
.rb .rb-act a{display:flex; align-items:center; justify-content:space-between; gap:10px; height:44px; padding:0 14px; font-size:13px; color:var(--rb-t2); text-decoration:none; border-bottom:1px solid var(--rb-line); cursor:pointer}
.rb .rb-act a b{display:flex; align-items:center; gap:6px; font-weight:600; color:var(--rb-gold)}
.rb .rb-act a b .rb-ic{width:13px; height:13px}
.rb .rb-act a:last-child{border-bottom:0}
.rb .rb-tgb{align-self:stretch; width:100%; margin-top:14px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:9px;
  font-size:13px; font-weight:700; text-align:center; color:#8FD3FF; border:1px solid rgba(110,190,255,.36); background:rgba(110,190,255,.07)}
.rb .rb-tgb .rb-ic{width:16px; height:16px}
.rb .rb-tgb.rb-y{color:var(--rb-mint); border-color:rgba(31,207,161,.32); background:rgba(31,207,161,.06); cursor:default}
.rb-rf .rb-r2, .rb-done .rb-r2{margin-top:18px}
/* последняя кнопка целиком над нижним меню (меню 64 px + 16 px + safe-area, как .pad в index.html) */
.rb.rb-rf, .rb.rb-done{padding-bottom:calc(96px + max(env(safe-area-inset-bottom,0px), var(--tg-safe-bottom,0px)))}

/* ───── 07 итог возврата ───── */
.rb.rb-done{position:relative; width:100%; max-width:380px; display:flex; flex-direction:column; align-items:center}
.rb-done > *{flex:none}
.rb .rb-glow{position:absolute; left:50%; top:62px; width:380px; height:380px; margin:-190px 0 0 -190px; border-radius:50%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(31,207,161,.13), rgba(31,207,161,0) 72%)}
.rb .rb-hero{position:relative; display:flex; flex-direction:column; align-items:center}
.rb .rb-rwm{position:absolute; left:50%; top:-62px; width:252px; height:252px; margin-left:-126px; border-radius:50%; pointer-events:none; --q:rgba(31,207,161,.07);
  -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%)}
.rb .rb-rwm 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}
.rb .rb-rwm .rb-q1{left:0; top:0}
.rb .rb-rwm .rb-q2{right:0; bottom:0}
.rb .rb-okt{margin-top:12px; font-size:26px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--rb-mint); text-align:center}
.rb .rb-oka{margin-top:8px; display:flex; align-items:baseline; gap:9px; font-size:44px; font-weight:700; letter-spacing:-1.5px; line-height:1; color:var(--rb-gold); animation:rbAmt 5s ease-out 1 both}
.rb .rb-oka small{font-size:15px; letter-spacing:1px; color:rgba(239,193,90,.8)}
@keyframes rbAmt{0%,30%{opacity:0; transform:translateY(8px)} 40%,100%{opacity:1; transform:translateY(0)}}
.rb .rb-oks{margin-top:8px; max-width:310px; text-align:center; font-size:13px; line-height:1.5; color:var(--rb-t2)}
.rb-done .rb-kv{margin-top:16px}

/* ───── 08 карточка «Возврат ставки» в PvP → Мои игры ───── */
.rb.rb-bet{display:flex; align-items:center; gap:12px; margin-bottom:7px; padding:12px 12px 12px 14px; border-radius:18px; cursor:pointer;
  border:1px solid rgba(239,193,90,.42); background:radial-gradient(120% 160% at 0% 0%, rgba(239,193,90,.12), rgba(239,193,90,0) 58%), var(--rb-surf)}
.rb .rb-bet-x{flex:1; min-width:0; display:flex; flex-direction:column; gap:6px}
.rb .rb-bet-n{font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rb .rb-bet-s{display:flex; align-items:center; gap:6px; min-width:0; font-size:12px; color:var(--rb-t3); white-space:nowrap}
.rb .rb-bet-s > span{min-width:0; overflow:hidden; text-overflow:ellipsis}
.rb .rb-bet-s .rb-ic{width:13px; height:13px}
.rb .rb-bet-r{flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:5px}
.rb .rb-eta2{font-size:11px; font-weight:700; color:var(--rb-gold); white-space:nowrap}
.rb .rb-btn{height:40px; min-width:104px; padding:0 14px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; white-space:nowrap;
  border:1px solid rgba(239,193,90,.5); color:var(--rb-gold); background:rgba(239,193,90,.06)}

/* ───── 09 Профиль → Возвраты ───── */
.rb.rb-ls{display:flex; flex-direction:column; gap:8px; padding:0 14px}
.rb .rb-rl{padding:13px 14px; border-radius:18px; border:1px solid var(--rb-line); background:var(--rb-surf)}
.rb .rb-rl.rb-w{border-color:rgba(239,193,90,.42); background:radial-gradient(120% 160% at 0% 0%, rgba(239,193,90,.10), rgba(239,193,90,0) 60%), var(--rb-surf)}
.rb .rb-rlh{display:flex; align-items:center; gap:12px}
.rb .rb-rlx{flex:1; min-width:0}
.rb .rb-rla{display:flex; align-items:baseline; gap:5px; font-size:19px; font-weight:700; color:var(--rb-gold); white-space:nowrap}
.rb .rb-rla small{font-size:10px; letter-spacing:.8px; color:rgba(239,193,90,.78)}
.rb .rb-rls{margin-top:3px; font-size:12px; color:var(--rb-t3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rb .rb-rlst{flex:none; display:flex; align-items:center; gap:5px; height:24px; padding:0 9px; border-radius:12px; font-size:11px; font-weight:700; white-space:nowrap}
.rb .rb-rlst .rb-ic{width:12px; height:12px; stroke-width:2.4}
.rb .rb-rlst.rb-w{background:rgba(239,193,90,.12); color:var(--rb-gold)}
.rb .rb-rlst.rb-y{background:rgba(31,207,161,.12); color:var(--rb-mint)}
.rb .rb-rlst.rb-n{background:rgba(242,96,79,.12); color:#FF9484}
.rb .rb-rlm{margin-top:10px; padding-top:10px; border-top:1px solid var(--rb-line); display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; color:var(--rb-t2)}
.rb .rb-rll{display:flex; gap:14px}
.rb .rb-rll a{display:flex; align-items:center; gap:5px; min-height:24px; font-size:12px; font-weight:600; color:var(--rb-gold); text-decoration:none; cursor:pointer}
.rb .rb-rll a .rb-ic{width:12px; height:12px}
.rb .rb-rln{font-size:11.5px; line-height:1.45; color:var(--rb-t3); text-align:center; padding:4px 10px 0}

/* ───── 10–14 «Внеси депозит» ───── */
.rb.rb-col.rb-snd{padding-bottom:calc(96px + max(env(safe-area-inset-bottom,0px), var(--tg-safe-bottom,0px)))}
.rb-snd .rb-ck{width:128px; height:128px}
.rb-snd .rb-t{margin-top:12px}
.rb-snd .rb-capt{margin-top:12px}
.rb-snd .rb-box{margin-top:12px}
.rb-snd .rb-cta{margin-top:14px}
.rb-snd .rb-cta + .rb-cta, .rb-snd .rb-msg + .rb-cta{margin-top:10px}
.rb-snd .rb-note{margin-top:10px}
.rb .rb-amt{align-self:stretch; margin-top:10px; display:flex; align-items:center; justify-content:space-between; height:52px; padding:0 14px; border-radius:16px;
  border:1px solid rgba(239,193,90,.26); background:radial-gradient(140% 160% at 0% 0%, rgba(239,193,90,.09), rgba(239,193,90,0) 60%), var(--rb-surf)}
.rb .rb-amt b{font-size:20px; font-weight:700; color:var(--rb-gold); letter-spacing:-.3px; white-space:nowrap}
.rb .rb-amt b small{margin-left:5px; font-size:11px; letter-spacing:.8px; color:rgba(239,193,90,.78)}
.rb .rb-amt i{display:block; margin-top:1px; font-style:normal; font-size:11px; color:var(--rb-t3); text-align:right}
.rb .rb-msg{align-self:stretch; margin-top:10px; padding:0 4px; display:flex; align-items:flex-start; justify-content:center; gap:7px; font-size:12.5px; line-height:1.45; text-align:left; color:var(--rb-t2)}
.rb .rb-msg .rb-ic{flex:none; width:15px; height:15px; margin-top:1px}
.rb .rb-msg.rb-mm{color:var(--rb-mint)}
.rb .rb-msg.rb-mr{color:#FF9484}
.rb .rb-msg.rb-mr .rb-ic{color:var(--rb-red)}
.rb .rb-sp{flex:none; display:inline-block; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.14); border-top-color:var(--rb-t2); animation:rbSpin .9s linear infinite}
.rb .rb-st .rb-sp{width:13px; height:13px}
@keyframes rbSpin{to{transform:rotate(360deg)}}
.rb .rb-cta.rb-off{background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); color:var(--rb-t3); letter-spacing:1.6px; box-shadow:none; text-shadow:none}
.rb .rb-cta:disabled{cursor:not-allowed}

/* ───── 20–21 «Соперник найден» ───── */
.rb.rb-col.rb-fd{padding-bottom:calc(96px + max(env(safe-area-inset-bottom,0px), var(--tg-safe-bottom,0px)))}
.rb .rb-fd-t{font-size:26px; font-weight:700; letter-spacing:-.5px; color:var(--rb-mint); text-shadow:0 0 22px rgba(31,207,161,.35); text-align:center}
.rb .rb-fd-s{margin-top:4px; max-width:320px; min-height:2.9em; font-size:13px; line-height:1.45; color:var(--rb-t2); text-align:center} /* 2 строки: смена текста в 21 не сдвигает экран */
.rb-fd .rb-capt{margin-top:16px}
.rb-fd .rb-cta{margin-top:16px}
.rb .rb-duel{position:relative; align-self:stretch; height:176px; margin-top:22px}
.rb .rb-duel svg.rb-th{position:absolute; left:0; top:0; width:100%; height:120px; overflow:visible; pointer-events:none}
.rb .rb-th .rb-trk2{fill:none; stroke:rgba(255,255,255,.06); stroke-width:2}
/* нить растёт один раз (2.2 с); свойство задано всегда — смена состояния её не перезапускает */
.rb .rb-th .rb-grow{fill:none; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:0;
  filter:drop-shadow(0 0 4px rgba(239,193,90,.7)); animation:rbGrow 2.2s cubic-bezier(.45,.05,.3,1) 1 both}
.rb .rb-th .rb-pls{fill:none; stroke:#FFF3C9; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:3 14; opacity:0;
  animation:rbShow .3s ease-out 2.2s 1 forwards, rbFlow 1.6s linear 2.2s infinite}
.rb .rb-duel.rb-ok3 .rb-pls{animation-duration:.3s, .8s}
.rb .rb-duel.rb-ok3 .rb-grow{stroke:var(--rb-mint); filter:drop-shadow(0 0 5px rgba(31,207,161,.8))}
.rb .rb-pl2{position:absolute; top:22px; width:112px; display:flex; flex-direction:column; align-items:center; text-align:center}
.rb .rb-pl2.rb-l{left:0}
.rb .rb-pl2.rb-rt{right:0}
.rb .rb-pl2 .rb-av{width:76px; height:76px; font-size:28px; box-shadow:0 0 0 2px #070A08, 0 0 0 3.5px rgba(31,207,161,.75), 0 0 28px -4px rgba(31,207,161,.6)}
.rb .rb-pl2 .rb-av.rb-c2{box-shadow:0 0 0 2px #070A08, 0 0 0 3.5px rgba(239,193,90,.75), 0 0 28px -4px rgba(239,193,90,.55)}
.rb .rb-pl2 .rb-n2{margin-top:12px; max-width:112px; font-size:15px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rb .rb-pl2 .rb-lv{margin-top:3px; font-size:11.5px; color:var(--rb-t3)}
.rb .rb-pl2 .rb-lv b{color:var(--rb-gold); font-weight:700}
.rb .rb-pl2 .rb-you{margin-top:4px; font-size:9.5px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--rb-mint)}
.rb .rb-node{position:absolute; left:50%; top:60px; width:58px; height:58px; margin:-29px 0 0 -29px; display:flex; align-items:center; justify-content:center}
.rb .rb-node::before{content:""; position:absolute; inset:6px; transform:rotate(45deg); border-radius:12px; border:1.5px solid rgba(239,193,90,.6);
  background:radial-gradient(circle at 50% 35%, #22200F, #0B0D09); box-shadow:0 0 26px -6px rgba(239,193,90,.6); animation:rbNodeLit .9s ease-out 2.1s 1 both}
.rb .rb-node::after{content:""; position:absolute; inset:6px; transform:rotate(45deg); border-radius:12px; border:1.5px solid rgba(239,193,90,.55); opacity:0;
  animation:rbNodeRing 1.3s ease-out 2.1s 1 both}
.rb .rb-node .rb-ic{position:relative; width:22px; height:22px; color:var(--rb-gold)}
.rb .rb-ncap{position:absolute; left:50%; top:100px; transform:translateX(-50%); font-size:9.5px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:rgba(239,193,90,.75); white-space:nowrap}
.rb .rb-duel.rb-ok3 .rb-ncap{color:var(--rb-mint)}
.rb .rb-duel.rb-ok3 .rb-node .rb-ic{color:var(--rb-mint)}
.rb .rb-duel.rb-ok3 .rb-node::before{border-color:rgba(31,207,161,.85); box-shadow:0 0 30px -4px rgba(31,207,161,.75); background:radial-gradient(circle at 50% 35%, #0F2A22, #08100D)}
.rb .rb-duel.rb-ok3 .rb-node::after{border-color:rgba(31,207,161,.6); animation:rbNodeRing2 2.2s ease-out infinite}
.rb .rb-stat{display:flex; align-items:center; justify-content:center; gap:8px; margin-top:6px; height:36px; padding:0 14px; border-radius:999px; border:1px solid var(--rb-line); background:var(--rb-surf); font-size:12.5px; color:var(--rb-t2); white-space:nowrap}
.rb .rb-stat .rb-ic{width:15px; height:15px; color:var(--rb-mint)}
.rb .rb-stat .rb-num{color:var(--rb-mint)}
.rb .rb-bank{align-self:stretch; margin-top:16px; display:flex; align-items:center; justify-content:space-between; height:58px; padding:0 16px; border-radius:16px;
  border:1px solid rgba(239,193,90,.26); background:radial-gradient(140% 160% at 0% 0%, rgba(239,193,90,.09), rgba(239,193,90,0) 60%), var(--rb-surf)}
.rb .rb-bank b{font-size:22px; font-weight:700; color:var(--rb-gold); letter-spacing:-.3px}
.rb .rb-bank b small{margin-left:5px; font-size:11px; letter-spacing:.8px; color:rgba(239,193,90,.78)}
.rb .rb-bank i{display:block; margin-top:1px; font-style:normal; font-size:11px; color:var(--rb-t3); text-align:right}
@keyframes rbGrow{from{stroke-dashoffset:100} to{stroke-dashoffset:0}}
@keyframes rbShow{from{opacity:0} to{opacity:.9}}
@keyframes rbFlow{from{stroke-dashoffset:0} to{stroke-dashoffset:-34}}
@keyframes rbNodeLit{0%{box-shadow:0 0 18px -8px rgba(239,193,90,.4)} 45%{box-shadow:0 0 40px 0 rgba(239,193,90,.9)} 100%{box-shadow:0 0 26px -6px rgba(239,193,90,.6)}}
@keyframes rbNodeRing{0%{opacity:0; transform:rotate(45deg) scale(1)} 12%{opacity:.9} 100%{opacity:0; transform:rotate(45deg) scale(1.7)}}
@keyframes rbNodeRing2{0%{opacity:0; transform:rotate(45deg) scale(1)} 15%{opacity:.9} 100%{opacity:0; transform:rotate(45deg) scale(1.7)}}

/* без анимаций: сразу конечное состояние (часы стоят на реальном прогрессе — его ставит JS) */
@media (prefers-reduced-motion: reduce){
  .rb *, .rb *::before, .rb *::after, .rb.rb-ov *{animation:none !important; transition:none !important}
  .rb .rb-cta.rb-go::after{display:none}
  .rb .rb-ok .rb-gl{opacity:.55}
  /* нити сразу целые, без импульсов и вспышек */
  .rb .rb-th .rb-grow{stroke-dashoffset:0}
  .rb .rb-th .rb-pls{opacity:0}
  .rb .rb-node::after{opacity:0}
}
