/* Кейс-батлы (case picker .cs-case and rarity colours come from cases.css) */
.screen[data-screen="battles"] .g-bet { display: none; }
.g-battles .g-stage { position: relative; padding: 46px 12px 12px; background: radial-gradient(120% 60% at 50% 0%, rgba(139,123,255,.12), transparent 70%); }
.bt-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 28px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--fg2); white-space: nowrap; }
.bt-cs { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.bt-cs b { color: var(--fg); }
.bt-ci { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.bt-ci img { width: 22px; height: 22px; }
.bt-rd b { color: var(--fg); }
.bt-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.bt-teams[hidden] { display: none; }
.bt-teams span { height: 32px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; color: var(--fg2); white-space: nowrap; }
.bt-teams b { font-size: 14px; font-weight: 900; color: var(--fg); }
.bt-teams .a { background: rgba(139,123,255,.14); box-shadow: inset 0 0 0 1px rgba(139,123,255,.35); }
.bt-teams .b { background: rgba(255,93,99,.12); box-shadow: inset 0 0 0 1px rgba(255,93,99,.32); }
.bt-teams .lead b { color: var(--gold); }
.bt-teams .won { background: rgba(212,255,58,.16); box-shadow: inset 0 0 0 2px var(--win); }
.bt-teams .won b { color: var(--win); }

.bt-seats { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.bt-col { position: relative; min-width: 0; padding: 6px; border-radius: 12px; background: var(--s2); display: grid; gap: 4px; align-content: start; }
.bt-col.empty { opacity: .55; }
.bt-col.ta { box-shadow: inset 0 2px 0 var(--pick); }
.bt-col.tb { box-shadow: inset 0 2px 0 var(--loss); }
.bt-col.win { background: linear-gradient(180deg, rgba(212,255,58,.2), var(--s2) 62%); box-shadow: inset 0 0 0 2px var(--win), 0 0 22px rgba(212,255,58,.3); }
.bt-head { height: 26px; min-width: 0; display: flex; align-items: center; gap: 5px; }
.bt-head b { min-width: 0; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-ava { flex: none; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #0c0c11; }
.bt-ava.you { background: var(--accent); color: var(--on-accent); }
.bt-ava.wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg3); color: var(--fg3); }
.bt-tot { height: 20px; display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 900; }
.bt-tot img { width: 14px; height: 14px; }
.bt-tot.lead span { color: var(--gold); }
.bt-col.win .bt-tot span { color: var(--win); }
.bt-reel { position: relative; height: 140px; overflow: hidden; border-radius: 10px; background: rgba(0,0,0, .3);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.bt-reel::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--ch); transform: translateY(-50%); pointer-events: none; background: rgba(255,195,55,.06); box-shadow: inset 0 1px 0 rgba(255,195,55,.4), inset 0 -1px 0 rgba(255,195,55,.4); }
.bt-strip { position: absolute; left: 0; right: 0; top: 50%; will-change: transform; }
.bt-cell { position: relative; height: var(--ch); display: grid; place-items: center; }
.bt-cell::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--ci) * 1.35); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 46%, transparent), transparent); }
.bt-cell img { position: relative; width: var(--ci); height: var(--ci); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.bt-mk { position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; z-index: 2; }
.bt-mk.l { left: 0; border-left-color: var(--gold); border-right: 0; }
.bt-mk.r { right: 0; border-right-color: var(--gold); border-left: 0; }
.bt-last { position: absolute; left: 50%; bottom: 8px; z-index: 3; height: 20px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; transform: translateX(-50%); font-size: 12px; font-weight: 900; color: #fff; white-space: nowrap; background: color-mix(in srgb, var(--rc, #4b69ff) 75%, #0c0c11); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.bt-last[hidden] { display: none; }
.bt-drops { min-height: 48px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding-top: 2px; }
.bt-drop { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--rc) 28%, var(--s1)); box-shadow: inset 0 -2px 0 var(--rc); }
.bt-drop img { width: 18px; height: 18px; }
.bt-vs { position: absolute; top: 117px; z-index: 4; width: 26px; height: 26px; margin-left: -13px; border-radius: 13px; display: grid; place-items: center; background: #0f1016; box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0,0,0,.5); font-size: 10px; font-weight: 900; font-style: italic; color: #fff; }

/* controls */
.bt-step { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
.bt-step .btn { padding: 0; font-size: 20px; }
.bt-step .ro { justify-content: center; }

/* lobby tile */
.bt-tile { background: linear-gradient(118deg, #3f7bff 0%, #1b2f86 47%, #861b3a 53%, #ff4f6d 100%); overflow: hidden; }
.bt-tglow { position: absolute; left: 50%; top: 40cqw; width: 90cqw; height: 90cqw; margin: -45cqw 0 0 -45cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,120,.45), transparent); }
.bt-tl, .bt-tr { position: absolute; top: 14cqw; width: 52cqw; height: 52cqw; filter: drop-shadow(0 3cqw 4cqw rgba(0,0,0,.5)); }
.bt-tl { left: -3cqw; transform: rotate(-12deg); }
.bt-tr { right: -3cqw; transform: scaleX(-1) rotate(-12deg); }
.bt-tvs { position: absolute; left: 50%; top: 40cqw; width: 26cqw; height: 26cqw; margin: -13cqw 0 0 -13cqw; border-radius: 50%; display: grid; place-items: center; background: #0f1016; box-shadow: 0 0 0 1.6cqw #ffc337, 0 2cqw 6cqw rgba(0,0,0,.55); font-size: 10.5cqw; font-weight: 900; font-style: italic; color: #fff; }
.bt-col.empty .bt-tot { visibility: hidden; }
