:root {
  --bg: #110a28;
  --panel: #20164a;
  --panel2: #2c1f62;
  --line: #3a2b80;
  --wood: linear-gradient(180deg, rgba(42,26,98,.96) 0%, rgba(26,16,66,.96) 100%);
  --wood-edge: rgba(110,220,255,.22);
  --felt: radial-gradient(ellipse at 50% 38%, #4f2fae 0%, #2e1a78 52%, #160c40 100%);
  --gold: #6ee7ff;
  --gold2: #8b6cff;
  --pearl: linear-gradient(115deg, #fbf3ff 0%, #d9c8ff 28%, #a9e9ff 55%, #f1d6ff 80%, #fdf6ff 100%);
  --cyan: #45d9ff;
  --text: #f3f0ff;
  --muted: #a69cd6;
  --red: #ff5a7a;
  --green: #2fc6ff;
  --blue: #4c7dff;
  --card-w: 56px;
  --card-h: 80px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
body { user-select: none; -webkit-user-select: none; }
#app { display: flex; flex-direction: column; height: 100dvh; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; }
h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hidden { display: none !important; }

/* ---------- верхняя панель ---------- */
#topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(6px + var(--safe-top)) 10px 6px; background: var(--wood); border-bottom: 2px solid var(--wood-edge); box-shadow: 0 2px 8px rgba(0,0,0,.4); z-index: 5; }
.tb-user { display: flex; align-items: center; gap: 8px; }
.tb-name { line-height: 1.15; }
#tb-nick { font-weight: 700; font-size: 15px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-lvl { font-size: 11px; color: #c9c0f5; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.coins { display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.35); border: 1px solid var(--gold2); border-radius: 20px; padding: 4px 8px 4px 5px; font-size: 14px; }
.coins .plus { background: var(--gold); color: #2a1366; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; line-height: 1; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #f4fff8 0 28%, transparent 30% 42%, #1f8a4a 44% 70%, #0d5a30 72%); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #0d5a30; display: inline-block; flex: 0 0 auto; }
.coin.big { width: 22px; height: 22px; }
.online { font-size: 12px; color: #6ef0ff; }

/* ---------- аватары ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #2c1f62 center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 16px; position: relative; flex: 0 0 auto; border: 2px solid #5a4aa8; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; }

/* ---------- экраны ---------- */
#screens { flex: 1; position: relative; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; padding: 10px 12px 16px; display: none; -webkit-overflow-scrolling: touch; }
.screen.active { display: block; }
#s-game { padding: 0; overflow: hidden; }

/* ---------- кнопки ---------- */
.btn { border-radius: 12px; padding: 10px 14px; font-weight: 700; background: var(--panel2); color: var(--text); box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .08s; font-size: 14px; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn.big { padding: 14px; font-size: 16px; flex: 1; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.gold { background: linear-gradient(180deg, #ffd977, #e0a92e); color: #2a1366; }
.btn.green { background: linear-gradient(180deg, #4dbb6c, #2e8b48); }
.btn.red { background: linear-gradient(180deg, #e46a5e, #b93a2e); }
.btn.blue { background: linear-gradient(180deg, #5b9cff, #2c6fd6); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px #5a4aa8; }
.btn:disabled { opacity: .45; }
.link { color: var(--gold); font-size: 13px; }

/* ---------- лобби ---------- */
.lobby-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--panel); border: 1px solid #43338f; border-radius: 20px; padding: 6px 11px; font-size: 12px; white-space: nowrap; color: #e1dbff; }
.chip.on { background: #3b2f8f; border-color: #6ee7ff; color: #fff; }
.chip.reset { border-color: #8a3a6a; color: #ff9ec0; }
.list-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.rooms { display: flex; flex-direction: column; gap: 8px; }
.room { background: var(--panel); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; border: 1px solid #3a2b80; position: relative; }
.room.full { opacity: .6; }
.room .r-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.room .r-bet { display: flex; align-items: center; gap: 5px; font-weight: 800; color: var(--gold); font-size: 15px; justify-content: flex-end; }
.room .r-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { background: rgba(0,0,0,.3); border-radius: 6px; padding: 2px 6px; font-size: 11px; color: #d6ceff; }
.tag.t { background: #4a3a70; color: #e0d0ff; }
.tag.c { background: #6b2f2f; color: #ffd0d0; }
.room .r-seats { display: flex; gap: 3px; justify-content: flex-end; align-items: center; }
.seat { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.35); border: 1.5px dashed #6b5bd0; }
.seat.busy { border: 1.5px solid #6ef0ff; background: #3b2f8f center/cover; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }

/* ---------- модальные окна ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s; }
.modal-bg.center { align-items: center; padding: 16px; }
.modal { background: var(--panel); width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 14px 14px calc(14px + var(--safe-bottom)); border-top: 3px solid var(--gold2); }
.modal-bg.center .modal { border-radius: 18px; border: 2px solid var(--gold2); }
.modal h2 { margin: 0 0 12px; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.modal h2 .x { font-size: 22px; color: var(--muted); padding: 0 6px; }
.frow { margin-bottom: 12px; }
.frow label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; gap: 4px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { flex: 1; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #c3bcf0; min-width: 44px; }
.seg button.on { background: var(--green); color: #fff; }
.seg button.on.gold { background: var(--gold); color: #2a1366; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #3a2b80; font-size: 14px; }
.toggle small { display: block; color: var(--muted); font-size: 11px; }
.sw { width: 44px; height: 26px; border-radius: 13px; background: #3a4d42; position: relative; transition: .15s; flex: 0 0 auto; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.sw.on { background: var(--green); }
.sw.on::after { left: 21px; }
.inp { width: 100%; background: rgba(0,0,0,.3); border: 1px solid #43338f; border-radius: 10px; padding: 10px; color: var(--text); outline: none; }
.mrow { display: flex; gap: 8px; margin-top: 10px; }
.mrow .btn { flex: 1; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- тосты ---------- */
#toasts { position: fixed; top: calc(60px + var(--safe-top)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 100; pointer-events: none; }
.toast { background: rgba(20,30,25,.95); border: 1px solid var(--gold2); color: #fff; padding: 8px 14px; border-radius: 12px; font-size: 13px; max-width: 90%; animation: fade .2s; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.toast.err { border-color: var(--red); }
#connecting { position: fixed; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 200; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 4px solid #3a2b80; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- навигация ---------- */
#nav { display: flex; background: var(--wood); border-top: 2px solid var(--wood-edge); padding-bottom: var(--safe-bottom); }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 7px 0 5px; gap: 1px; color: #9d92d6; font-size: 10px; position: relative; }
.nav-btn i { font-style: normal; font-size: 20px; }
.nav-btn.active { color: var(--gold); }
.badge { position: absolute; top: 4px; right: calc(50% - 20px); background: var(--red); color: #fff; border-radius: 10px; font-size: 10px; padding: 1px 5px; font-style: normal; }

/* ---------- списки игроков ---------- */
.plist { display: flex; flex-direction: column; gap: 6px; }
.prow { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 8px 10px; }
.prow .pn { flex: 1; min-width: 0; }
.prow .pn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pn small { color: var(--muted); font-size: 11px; }
.prow .rank { width: 26px; text-align: center; font-weight: 800; color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #666; display: inline-block; margin-right: 4px; }
.dot.on { background: #4ade80; }

/* ---------- профиль ---------- */
.prof-head { display: flex; gap: 14px; align-items: center; background: var(--panel); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.prof-head .pi { flex: 1; min-width: 0; }
.prof-head .pi h1 { margin: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-head .pi .st { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.lvl-bar { height: 8px; background: rgba(0,0,0,.4); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.stat { background: var(--panel); border-radius: 12px; padding: 8px 4px; text-align: center; }
.stat b { display: block; font-size: 18px; }
.stat small { color: var(--muted); font-size: 10px; }

.prof-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.prof-actions .btn { flex: 1; min-width: 100px; }

/* ---------- магазин ---------- */
.tabs { display: flex; background: rgba(0,0,0,.3); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.tab { flex: 1; padding: 8px; border-radius: 9px; font-size: 13px; color: #c3bcf0; font-weight: 600; }
.tab.active { background: var(--panel2); color: #fff; }

.coin-pack { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 14px; padding: 12px; margin-bottom: 8px; }

.coin-pack .cp-b { color: #6ef0ff; font-size: 11px; }

/* ---------- карты ---------- */
.card { width: var(--card-w); height: var(--card-h); border-radius: 7px; background: #fff; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,.45); color: #111; font-weight: 800; flex: 0 0 auto; transition: transform .12s; overflow: hidden; }
.card.red { color: #d0202a; }
.card .tl, .card .br { position: absolute; font-size: 13px; line-height: 1; text-align: center; }
.card .tl { top: 4px; left: 4px; }
.card .br { bottom: 4px; right: 4px; transform: rotate(180deg); }
.card .ctr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.card .tl small, .card .br small { display: block; font-size: 11px; }
/* лицевые стили */

/* рубашки */
.card.back { background: #fff; padding: 4px; }
.card.back::before { content: ''; position: absolute; inset: 4px; border-radius: 4px; }
.back-classic::before { background: repeating-linear-gradient(45deg, #b83a2e 0 4px, #8e2a20 4px 8px), #b83a2e; border: 2px solid #f0e2c8; }

/* ---------- игровой стол ---------- */
#game-root { position: absolute; inset: 0; background: var(--felt); display: flex; flex-direction: column; overflow: hidden; }
.g-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(0,0,0,.35); font-size: 12px; }
.g-top .g-info { display: flex; gap: 8px; align-items: center; }
.g-top .g-bank { color: var(--gold); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.g-opps { display: flex; justify-content: space-around; align-items: flex-start; padding: 8px 6px 0; min-height: 88px; flex-wrap: wrap; gap: 4px; }
.opp { display: flex; flex-direction: column; align-items: center; width: 82px; position: relative; }
.opp .avatar { width: 46px; height: 46px; }
.opp .on { font-size: 11px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; text-align: center; }
.opp .oc { position: absolute; top: -4px; right: 8px; background: #fff; color: #111; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 5px; border: 1px solid #999; }
.opp .role { font-size: 9px; padding: 1px 6px; border-radius: 6px; margin-top: 2px; background: rgba(0,0,0,.4); color: #ddd; }
.opp .role.att { background: var(--red); color: #fff; }
.opp .role.def { background: var(--blue); color: #fff; }
.opp.out .avatar { opacity: .45; }

.opp.turn .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 14px var(--gold); }

.g-mid { flex: 1; display: flex; align-items: center; padding: 6px 8px; gap: 8px; min-height: 0; }
.g-deck { width: 74px; position: relative; height: 96px; flex: 0 0 auto; }
.g-deck .trump { position: absolute; left: 14px; top: 8px; transform: rotate(90deg) translate(0, -10px); }
.g-deck .pile { position: absolute; left: 0; top: 0; }
.g-deck .pile.p2 { transform: translate(2px, -2px); }
.g-deck .pile.p3 { transform: translate(4px, -4px); }
.g-deck .cnt { position: absolute; bottom: -18px; left: 0; width: 60px; text-align: center; font-size: 12px; color: #e4f8ff; }
.g-deck .trumpsuit { position: absolute; top: -22px; left: 0; width: 56px; text-align: center; font-size: 20px; }
.g-table { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-content: center; min-height: 100px; }
.pair { position: relative; width: calc(var(--card-w) + 18px); height: calc(var(--card-h) + 18px); }
.pair .card { position: absolute; }
.pair .a { top: 0; left: 0; }
.pair .d { top: 16px; left: 18px; }
.pair.target .a { box-shadow: 0 0 0 3px var(--gold), 0 0 12px var(--gold); }
.pair .cheat-q { position: absolute; top: -8px; right: -4px; background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.g-discard { width: 60px; position: relative; height: 96px; flex: 0 0 auto; }
.g-discard .card { position: absolute; left: 0; top: 4px; }
.g-discard .cnt { position: absolute; bottom: -18px; left: 0; width: 56px; text-align: center; font-size: 12px; color: #e4f8ff; }
.g-status { text-align: center; font-size: 13px; padding: 4px; color: #fff; text-shadow: 0 1px 2px #000; min-height: 24px; }
.g-status b { color: var(--gold); }
.g-actions { display: flex; gap: 8px; justify-content: center; padding: 4px 10px; min-height: 48px; align-items: center; }
.g-actions .btn { padding: 9px 16px; font-size: 14px; }
.g-me { display: flex; align-items: flex-end; padding: 4px 8px calc(6px + var(--safe-bottom)); gap: 6px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.g-me .me-info { display: flex; flex-direction: column; align-items: center; width: 56px; flex: 0 0 auto; font-size: 10px; gap: 2px; position: relative; }
.g-me .me-info .avatar { width: 40px; height: 40px; }
.me-timer { font-size: 13px; font-weight: 800; color: var(--gold); }
.me-timer.low { color: #ff6b5b; }
.hand { flex: 1; display: flex; justify-content: center; min-height: calc(var(--card-h) + 16px); align-items: flex-end; padding: 0 10px; overflow: visible; }
.hand .card { margin-left: var(--overlap, -18px); cursor: pointer; }
.hand .card:first-child { margin-left: 0; }
.hand .card.sel { transform: translateY(-16px); box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0,0,0,.5); z-index: 2; }
.hand .card.can { box-shadow: 0 0 0 2px #6ef0ff, 0 2px 5px rgba(0,0,0,.45); }
.hand .card.dim { opacity: .55; }
.hand .card.trump-mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.g-chat-btn { position: absolute; right: 8px; bottom: calc(130px + var(--safe-bottom)); background: rgba(0,0,0,.5); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 3; }
.g-chat-btn .badge { top: -2px; right: -2px; }
.g-emo { position: absolute; left: 8px; bottom: calc(130px + var(--safe-bottom)); background: rgba(0,0,0,.5); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 3; }
.bubble { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; border-radius: 10px; padding: 4px 8px; font-size: 12px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; z-index: 4; animation: fade .2s; }
.bubble::before { content: ''; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }

/* ожидание */
.wait { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 10px; overflow-y: auto; }
.wait .w-head { background: rgba(0,0,0,.35); border-radius: 14px; padding: 12px; }
.wait .w-head h2 { margin: 0 0 6px; font-size: 18px; }
.wait .w-seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wait .w-seat { background: rgba(0,0,0,.3); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; min-height: 96px; justify-content: center; border: 1.5px dashed #6b5bd0; }
.wait .w-seat.busy { border-style: solid; border-color: #6ef0ff; }
.wait .w-seat .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wait .w-seat small { color: #b9e9ff; }
.wait .w-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wait .w-actions .btn { flex: 1; }
.chat-box { background: rgba(0,0,0,.35); border-radius: 12px; padding: 8px; font-size: 13px; max-height: 140px; overflow-y: auto; }
.chat-box .cm b { color: var(--gold); }
.chat-box .cm.sys { color: #b9e9ff; font-style: italic; }
.chat-in { display: flex; gap: 6px; }
.chat-in input { flex: 1; background: rgba(0,0,0,.35); border: 1px solid #43338f; border-radius: 10px; padding: 8px; color: #fff; outline: none; }

/* результаты */
.res-title { font-size: 22px; text-align: center; margin: 6px 0 10px; }
.res-row { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid #3a2b80; font-size: 14px; }
.res-row.me { color: var(--gold); font-weight: 700; }
.res-delta.pos { color: #6ef0ff; } .res-delta.neg { color: #ff8b7b; }
.emo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emo-grid button { font-size: 26px; padding: 6px; background: rgba(0,0,0,.3); border-radius: 10px; }
.quick-phrases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-phrases button { background: rgba(0,0,0,.3); border-radius: 10px; padding: 6px 10px; font-size: 13px; }

@media (min-width: 480px) { :root { --card-w: 64px; --card-h: 92px; } }
@media (max-height: 640px) { :root { --card-w: 48px; --card-h: 70px; } .g-opps { min-height: 76px; } }

/* ---------- выбор игры (хаб) ---------- */
.game-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 8px; }
.gcard { position: relative; aspect-ratio: 1 / 1.05; border-radius: 22px; padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .12s; }
.gcard:active { transform: scale(.97); }

.gcard.green { background: radial-gradient(120% 90% at 50% 0%, #1b6b4c 0%, #124a36 55%, #0d3327 100%); }
.gcard .gc-icon { font-size: 64px; line-height: 1; margin: auto 0 10px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.gcard .gc-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.gcard .gc-sub { font-size: 12px; color: #cfd6ea; }
.gcard .gc-online { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.35); border-radius: 14px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #fff; }
.gcard .gc-online i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.lobby-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lobby-head .back { width: 38px; height: 38px; border-radius: 12px; background: var(--panel); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; color: var(--gold); padding-bottom: 4px; }
.lobby-head .lh-title b { display: block; font-size: 18px; }
.lobby-head .lh-title small { color: var(--muted); font-size: 12px; }

/* ---------- 21 ---------- */
.bj { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; overflow-y: auto; }
.bj-opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.bj-opp { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px; min-width: 110px; position: relative; }
.bj-opp.turn { box-shadow: 0 0 0 2px var(--gold); }
.bj-opp .bj-cards { display: flex; --card-w: 34px; --card-h: 48px; }
.bj-opp .bj-cards .card { margin-left: -12px; } .bj-opp .bj-cards .card:first-child { margin-left: 0; }
.bj-opp .bj-cards .card .ctr { font-size: 16px; } .bj-opp .bj-cards .card .tl, .bj-opp .bj-cards .card .br { font-size: 9px; }
.bj-score { font-weight: 800; font-size: 14px; color: var(--gold); }
.bj-score.bust { color: #ff8b7b; }
.bj-me { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; padding-bottom: calc(10px + var(--safe-bottom)); }
.bj-me .hand { --overlap: -20px; }
.bj-big { font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.bj-big.bust { color: #ff8b7b; }
.bj-big small { font-size: 13px; color: #d6ceff; font-weight: 500; display: block; }
.pill { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.4); color: #ddd; }
.pill.att { background: var(--red); color: #fff; } .pill.ok { background: var(--green); color: #fff; } .pill.bad { background: #7a2a2a; color: #ffd0d0; }

/* ---------- КНБ ---------- */
.rps { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; }
.rps-score { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.rps-score .big { font-size: 40px; font-weight: 900; color: var(--gold); }
.rps-score .who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; max-width: 100px; }
.rps-arena { display: flex; align-items: center; gap: 24px; min-height: 120px; }
.rps-hand { width: 96px; height: 96px; border-radius: 50%; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-size: 54px; border: 3px solid transparent; }
.rps-hand.win { border-color: var(--gold); box-shadow: 0 0 18px var(--gold); }
.rps-hand.lose { opacity: .55; }
.rps-hand.wait { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7 } }
.rps-pick { display: flex; gap: 10px; }
.rps-pick button { width: 92px; height: 92px; border-radius: 18px; background: var(--panel); font-size: 40px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid #3a2b80; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.rps-pick button span { font-size: 11px; color: #d6ceff; }
.rps-pick button.on { border-color: var(--gold); background: #3b2f8f; }
.rps-pick button:disabled { opacity: .5; }
.rps-hist { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.rps-hist span { background: rgba(0,0,0,.3); border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.rps-msg { font-size: 15px; text-align: center; min-height: 22px; }

/* ---------- морской бой ---------- */
.bs { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px calc(10px + var(--safe-bottom)); overflow-y: auto; }

.bs-board { --cell: min(30px, calc((100vw - 60px) / 10)); display: grid; grid-template-columns: repeat(10, var(--cell)); grid-auto-rows: var(--cell); gap: 1px; background: #13204f; border: 2px solid #5a7dff; border-radius: 6px; padding: 2px; position: relative; }
.bs-board.small { --cell: min(16px, calc((100vw - 60px) / 20)); }
.bs-board.active { border-color: var(--gold); box-shadow: 0 0 14px rgba(242,193,78,.5); }
.bs-cell { background: #1f3a86; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cell) * .6); position: relative; }
.bs-cell.ship { background: #7fb3d5; box-shadow: inset 0 0 0 2px #2d5f80; }
.bs-cell.miss::after { content: ''; width: 30%; height: 30%; border-radius: 50%; background: #e4f8ff; }
.bs-cell.hit { background: #c0392b; } .bs-cell.hit::after { content: '✕'; color: #fff; font-weight: 900; }
.bs-cell.last { outline: 2px solid var(--gold); z-index: 1; }
.bs-cell.can { cursor: pointer; }
.bs-cell.can:active { background: #2c56c9; }
.bs-label { display: flex; justify-content: space-between; width: 100%; max-width: 320px; font-size: 12px; color: #d6ceff; }
.bs-fleet { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bs-fleet i { display: inline-flex; gap: 1px; } .bs-fleet i b { width: 10px; height: 10px; background: #7fb3d5; border-radius: 1px; } .bs-fleet i.sunk b { background: #c0392b; }
.bs-hint { font-size: 13px; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; min-height: 20px; }

/* широкая карточка (дурак) */
.gcard.wide { grid-column: 1 / -1; aspect-ratio: auto; height: 150px; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 18px; }
.gcard.wide .gc-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.gcard.wide .gc-title { font-size: 28px; }
.gcard.wide .gc-icon { font-size: 84px; margin: 0; }
/* кубик */
.dice-arena { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; overflow-y: auto; }
.dice-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.dice-p { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px; min-width: 100px; }
.dice-p.win { box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--gold); }
.dice-p.out { opacity: .45; }
.dice-p .dn { font-size: 11px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dice-row { display: flex; gap: 6px; }
.die { width: 34px; height: 34px; border-radius: 8px; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 2px 5px rgba(0,0,0,.45); }
.die.big { width: 64px; height: 64px; font-size: 50px; border-radius: 14px; }
.die.q { background: rgba(255,255,255,.15); color: #fff; font-size: 20px; }
.dice-sum { font-weight: 800; color: var(--gold); font-size: 14px; }
.dice-me { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; padding-bottom: calc(10px + var(--safe-bottom)); }
.dice-me .btn.roll { padding: 16px 40px; font-size: 20px; }
@keyframes shake { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-12deg) } 75% { transform: rotate(12deg) } }

/* ---------- фишка (демо-валюта) ---------- */
.chip-ic { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: -2px; margin-left: 2px; background: radial-gradient(circle, #eaf7ff 0 30%, #2f8fd6 32% 62%, #eaf7ff 64% 70%, #2f8fd6 72%); box-shadow: inset 0 0 0 1px #16507e, 0 1px 2px rgba(0,0,0,.4); background-clip: padding-box; }
.chip-ic::before { content: ''; position: absolute; }
.chip-ic.lg { width: 22px; height: 22px; }


/* ---- значок «— PvP —» на играх против людей: золото, справа сверху, напротив счётчика онлайна ---- */
.gcard .gc-pvp { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(40,24,6,.72), rgba(20,10,2,.72)); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,214,120,.55), 0 0 14px rgba(255,190,60,.28), 0 4px 10px rgba(0,0,0,.35); }
.gcard .gc-pvp b { font-family: var(--f-display, inherit); font-size: 13px; font-weight: 800; letter-spacing: .08em; line-height: 1;
  background: linear-gradient(180deg, #fff6c8 0%, #ffd76a 45%, #e6a21f 75%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(90,50,0,.9)) drop-shadow(0 0 6px rgba(255,200,80,.45)); }
.gcard .gc-pvp i { width: 12px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,215,106,0), #ffd76a); }
.gcard .gc-pvp i:last-child { background: linear-gradient(90deg, #ffd76a, rgba(255,215,106,0)); }
.gcard:not(.wide) .gc-pvp { padding: 4px 8px; gap: 4px; }
.gcard:not(.wide) .gc-pvp b { font-size: 11px; }
.gcard:not(.wide) .gc-pvp i { width: 7px; }
/* ===== карточки игр: своя палитра и иллюстрация ===== */
.gcard { isolation: isolate; border: 1px solid rgba(255,255,255,.10); }
.gcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 50% 34%, rgba(255,255,255,.22), transparent 70%); }
.gcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 35%), var(--pat, none); opacity: 1; pointer-events: none; }
.gcard .gc-icon { width: 78%; max-width: 150px; margin: auto 0 8px; font-size: 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }

.gcard .gc-title { text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.gcard .gc-sub { color: rgba(255,255,255,.78); }
.gcard.wide .gc-icon { width: 48%; max-width: 200px; margin: 0 -4px -10px 0; align-self: flex-end; }
.gcard.wide::before { background: radial-gradient(45% 80% at 78% 50%, rgba(255,255,255,.22), transparent 70%); }

.gcard[data-g="durak"] { background: radial-gradient(130% 120% at 85% 10%, #d8445a 0%, #8e1a36 45%, #420b1f 100%); box-shadow: 0 10px 28px rgba(142,26,54,.45), inset 0 1px 0 rgba(255,255,255,.14);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ctext x='4' y='18' font-size='14' fill='white' fill-opacity='.06'%3E%E2%99%A0%3C/text%3E%3Ctext x='26' y='40' font-size='14' fill='white' fill-opacity='.06'%3E%E2%99%A5%3C/text%3E%3C/svg%3E"); }
.gcard[data-g="blackjack"] { background: radial-gradient(130% 110% at 50% 0%, #22c48f 0%, #0e7359 48%, #06362d 100%); box-shadow: 0 10px 28px rgba(14,115,89,.4), inset 0 1px 0 rgba(255,255,255,.14); }
.gcard[data-g="rps"] { background: radial-gradient(130% 110% at 50% 0%, #ffab40 0%, #d0621a 48%, #5a2308 100%); box-shadow: 0 10px 28px rgba(208,98,26,.4), inset 0 1px 0 rgba(255,255,255,.16); }
.gcard[data-g="battleship"] { background: radial-gradient(130% 110% at 50% 0%, #3aa0ff 0%, #1a5cae 48%, #0a2350 100%); box-shadow: 0 10px 28px rgba(26,92,174,.45), inset 0 1px 0 rgba(255,255,255,.14); }
.gcard[data-g="dice"] { background: radial-gradient(130% 110% at 50% 0%, #b36bff 0%, #6a25b8 48%, #2b0c5a 100%); box-shadow: 0 10px 28px rgba(106,37,184,.45), inset 0 1px 0 rgba(255,255,255,.14); }
.gcard[data-g="rps"] .gc-sub { color: rgba(255,245,230,.85); }

/* ---------- приветственный бонус (REAL) ---------- */
.welcome-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(100deg, #ffe08a 0%, #f2c14e 45%, #d1951f 100%); color: #2a1366; border: 1px solid #ffe9a8;
  box-shadow: 0 6px 18px rgba(242,193,78,.35), inset 0 1px 0 rgba(255,255,255,.6); position: relative; overflow: hidden; }
.welcome-banner::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: wbShine 3.2s ease-in-out infinite; }
@keyframes wbShine { 0%, 60% { left: -50% } 100% { left: 130% } }
.welcome-banner .wb-gift { font-size: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.welcome-banner .wb-text { flex: 1; min-width: 0; line-height: 1.2; }
.welcome-banner .wb-text b { display: block; font-size: 14px; font-weight: 800; }
.welcome-banner .wb-text small { font-size: 12px; color: #5a3500; font-weight: 600; }
.welcome-banner .wb-timer { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: .03em;
  color: #22e07a; background: #160d38; padding: 5px 9px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(34,224,122,.35), 0 0 10px rgba(34,224,122,.25); text-shadow: 0 0 6px rgba(34,224,122,.6); }
.welcome-banner .wb-timer.low { color: #ff6b5b; box-shadow: inset 0 0 0 1px rgba(255,107,91,.4); text-shadow: 0 0 6px rgba(255,107,91,.6); }
.wb-shop { margin-bottom: 10px; }

/* =====================================================================
   ТЕМА «Перламутр»: глубокий фиолетовый + голубой неон + перламутр
   ===================================================================== */
html, body { background: var(--bg); }
body { background:
  radial-gradient(70% 45% at 100% 0%, rgba(69,217,255,.16), transparent 70%),
  radial-gradient(80% 55% at 0% 100%, rgba(155,92,255,.22), transparent 70%),
  linear-gradient(180deg, #150c34 0%, #0e0824 100%) fixed; }
#app { background: transparent; }

/* верх и низ — стекло */
#topbar { background: var(--wood); border-bottom: 1px solid var(--wood-edge); box-shadow: 0 6px 24px rgba(10,4,40,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#nav { background: var(--wood); border-top: 1px solid var(--wood-edge); box-shadow: 0 -6px 24px rgba(10,4,40,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-btn { color: #9d92d6; }
.nav-btn.active { color: var(--cyan); text-shadow: 0 0 10px rgba(69,217,255,.6); }
.nav-btn.active i { filter: drop-shadow(0 0 8px rgba(69,217,255,.55)); }
.tb-lvl { color: #c9c0f5; }
.online { color: #6ef0ff; }
.avatar { border-color: #6b5bd0; background-color: #2c1f62; }

/* баланс */
.coins { background: rgba(10,4,40,.45); border: 1px solid rgba(110,220,255,.45); box-shadow: 0 0 12px rgba(69,217,255,.15); }
.coins .plus { background: var(--pearl); color: #2a1366; }

/* кнопки */
.btn { background: var(--panel2); box-shadow: 0 3px 0 rgba(8,3,30,.55); }
.btn.gold { background: var(--pearl); color: #2a1366; box-shadow: 0 3px 0 #7a63c9, 0 6px 18px rgba(201,182,255,.25); }
.btn.green { background: linear-gradient(180deg, #56e4ff 0%, #2a8cff 100%); color: #fff; box-shadow: 0 3px 0 #1d5bb8, 0 6px 18px rgba(69,217,255,.25); text-shadow: 0 1px 2px rgba(0,40,90,.35); }
.btn.blue { background: linear-gradient(180deg, #8f7bff, #5b3fe0); }
.btn.red { background: linear-gradient(180deg, #ff7a98, #d9375e); }
.btn.ghost { box-shadow: inset 0 0 0 1.5px #5a4aa8; }
.link { color: var(--cyan); }

/* панели и списки */
.room, .prow, .stat, .coin-pack, .chip, .gt { background: linear-gradient(180deg, rgba(48,33,110,.75), rgba(32,22,74,.75)); border: 1px solid rgba(124,104,230,.28); }
.room { box-shadow: 0 4px 16px rgba(8,3,30,.35); }
.chip.on { background: linear-gradient(180deg, #3e7fff, #2b4fd0); border-color: #6ee7ff; }
.tag { background: rgba(10,4,40,.45); color: #d6ceff; }
.tag.t { background: rgba(139,108,255,.35); color: #efe9ff; }
.r-bet { color: var(--cyan) !important; }
.seat.busy { border-color: #6ee7ff; background-color: #3b2f8f; }
.tabs { background: rgba(10,4,40,.45); }
.tab.active { background: var(--panel2); box-shadow: inset 0 0 0 1px rgba(110,220,255,.3); }

.lvl-bar i { background: linear-gradient(90deg, #8b6cff, #45d9ff); }
.modal { background: linear-gradient(180deg, #2a1d62 0%, #1c1348 100%); border-top-color: var(--cyan); }
.modal-bg.center .modal { border-color: rgba(110,220,255,.55); box-shadow: 0 0 30px rgba(69,217,255,.15); }
.seg { background: rgba(10,4,40,.5); }
.seg button.on { background: linear-gradient(180deg, #56e4ff, #2a8cff); color: #fff; }
.seg button.on.gold { background: var(--pearl); color: #2a1366; }
.sw.on { background: linear-gradient(90deg, #8b6cff, #45d9ff); }
.inp, .chat-in input { background: rgba(10,4,40,.45); border-color: #43338f; }
.toast { background: rgba(28,18,72,.96); border-color: var(--cyan); }
.toast.err { border-color: var(--red); }
#connecting { background: var(--bg); }
.spinner { border-color: #3a2b80; border-top-color: var(--cyan); }
.lobby-head .back { background: var(--panel2); color: var(--cyan); }

/* игровой стол */
#game-root { background: var(--felt); }
.g-top { background: rgba(10,4,40,.45); }
.g-top .g-bank { color: var(--cyan); }
.opp.turn .avatar, .bj-opp.turn { box-shadow: 0 0 0 3px var(--cyan), 0 0 14px var(--cyan); }
.hand .card.sel { box-shadow: 0 0 0 3px var(--cyan), 0 6px 14px rgba(0,0,0,.5); }
.hand .card.can { box-shadow: 0 0 0 2px #b59cff, 0 2px 5px rgba(0,0,0,.45); }
.hand .card.trump-mark::after { background: var(--cyan); }
.pair.target .a { box-shadow: 0 0 0 3px var(--cyan), 0 0 12px var(--cyan); }
.me-timer, .bj-score, .dice-sum, .rps-score .big { color: var(--cyan); }
.chat-box .cm b { color: var(--cyan); }
.wait .w-seat { border-color: #6b5bd0; } .wait .w-seat.busy { border-color: var(--cyan); }
.bs-board { background: #13204f; border-color: #5a7dff; }
.bs-board.active { border-color: var(--cyan); box-shadow: 0 0 14px rgba(69,217,255,.5); }

/* ---------- карточки игр в новой гамме ---------- */
.gcard[data-g="durak"] { background: radial-gradient(130% 130% at 85% 0%, #b98bff 0%, #6a35d8 40%, #2a1170 100%); box-shadow: 0 10px 30px rgba(106,53,216,.45), inset 0 1px 0 rgba(255,255,255,.22); }
.gcard[data-g="durak"]::after { background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.10) 38%, rgba(170,240,255,.12) 50%, transparent 66%), var(--pat, none); }
.gcard[data-g="blackjack"] { background: radial-gradient(130% 110% at 50% 0%, #4af0e0 0%, #1798c9 46%, #0c2c66 100%); box-shadow: 0 10px 28px rgba(23,152,201,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.gcard[data-g="rps"] { background: radial-gradient(130% 110% at 50% 0%, #ff8fe0 0%, #a53fe0 46%, #36106e 100%); box-shadow: 0 10px 28px rgba(165,63,224,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.gcard[data-g="rps"] .gc-sub { color: rgba(255,240,255,.85); }
.gcard[data-g="battleship"] { background: radial-gradient(130% 110% at 50% 0%, #52c8ff 0%, #2b5ee8 46%, #101d63 100%); box-shadow: 0 10px 28px rgba(43,94,232,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.gcard[data-g="dice"] { background: radial-gradient(130% 110% at 50% 0%, #a99bff 0%, #5a40e6 46%, #1c1366 100%); box-shadow: 0 10px 28px rgba(90,64,230,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.gcard { border: 1px solid rgba(200,220,255,.18); }
.gcard .gc-online { background: rgba(10,4,40,.4); backdrop-filter: blur(6px); }
.sw { background: #3a2f6e; }
.sw.on { background: linear-gradient(90deg, #8b6cff, #45d9ff); }
/* монета реального баланса — перламутрово-голубая */
.coin { background: radial-gradient(circle, #ffffff 0 26%, transparent 28% 40%, #45d9ff 42% 66%, #6a4fe0 70%); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #4b36b8, 0 0 6px rgba(69,217,255,.45); }

/* иллюстрации игр (сгенерированы GPT-Image 2.5) */
.gcard .gc-icon picture, .gcard .gc-icon img { display: block; width: 100%; height: auto; }
.gcard .gc-icon { width: 74%; max-width: 160px; filter: drop-shadow(0 12px 18px rgba(8,3,40,.55)); }
.gcard.wide .gc-icon { width: 44%; max-width: 210px; margin: -6px 0 -6px 0; align-self: center; }
.gcard .gc-online { z-index: 3; }

/* ===== графика v2 (GPT-Image 2.5 Sunburst) ===== */
.nav-btn i { display: flex; align-items: center; justify-content: center; height: 28px; }
.nav-ic { width: 30px; height: 30px; object-fit: contain; opacity: .7; filter: saturate(.75) brightness(.95); transition: .15s; }
.nav-btn.active .nav-ic { opacity: 1; filter: drop-shadow(0 0 8px rgba(69,217,255,.65)); transform: translateY(-1px) scale(1.08); }
.welcome-banner .wb-gift { display: flex; }
.welcome-banner .wb-gift img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(90,50,0,.35)); }
.coin { background: url(img/ui/chip.webp?v=9) center/contain no-repeat !important; box-shadow: none !important; border-radius: 50%; }
 .chip-ic { background: url(img/ui/chip.webp?v=9) center/contain no-repeat !important; box-shadow: none !important; }
.chip-ic { width: 16px; height: 16px; }
.chip-ic.lg { width: 24px; height: 24px; }
/* рубашки карт */
.card.back { padding: 0; background: #fff; }
.card.back::before { inset: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: inherit; background: var(--bk) center/cover no-repeat !important; }
.back-classic { --bk: url(img/backs/classic.webp); }  
  
 
.lh-ic { width: 30px; height: 30px; object-fit: contain; vertical-align: -7px; margin-right: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

/* ===== Дурак — рубиновый, в гармонии с фиолетово-голубой темой ===== */
.gcard[data-g="durak"] {
  background:
    radial-gradient(60% 90% at 82% 30%, rgba(255,140,170,.35), transparent 70%),
    radial-gradient(130% 140% at 85% 0%, #ff4d6d 0%, #d01f4b 34%, #8a1240 64%, #3a0b33 100%);
  border-color: rgba(255,170,195,.28);
  box-shadow: 0 12px 32px rgba(208,31,75,.42), 0 0 0 1px rgba(255,120,160,.08), inset 0 1px 0 rgba(255,255,255,.22);
}
.gcard[data-g="durak"]::after { background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.12) 36%, rgba(255,200,220,.10) 48%, transparent 64%), var(--pat, none); }
.gcard[data-g="durak"] .gc-sub { color: rgba(255,228,236,.85); }
.gcard[data-g="durak"] .gc-icon { filter: drop-shadow(0 12px 18px rgba(60,5,30,.6)) drop-shadow(0 0 18px rgba(255,120,160,.25)); }
/* КНБ чуть смещаем в маджента-фиолет, чтобы не спорил с красным */
.gcard[data-g="rps"] { background: radial-gradient(130% 110% at 50% 0%, #e98bff 0%, #9b3fe6 46%, #330f72 100%); box-shadow: 0 10px 28px rgba(155,63,230,.4), inset 0 1px 0 rgba(255,255,255,.2); }

/* ===== Квадратики: каждый своим драгоценным цветом, основа уходит в общий тёмный фиолет ===== */
.gcard[data-g="blackjack"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(140,255,210,.30), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #3dffb4 0%, #10b57e 32%, #0a6a5a 60%, #0d2a44 100%);
  border-color: rgba(150,255,215,.28);
  box-shadow: 0 12px 30px rgba(16,181,126,.38), inset 0 1px 0 rgba(255,255,255,.22);
}
.gcard[data-g="blackjack"] .gc-sub { color: rgba(225,255,242,.85); }
.gcard[data-g="rps"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255,225,140,.32), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #ffd45a 0%, #ff9124 32%, #d4442e 62%, #4a0f3c 100%);
  border-color: rgba(255,215,150,.30);
  box-shadow: 0 12px 30px rgba(255,145,36,.36), inset 0 1px 0 rgba(255,255,255,.25);
}
.gcard[data-g="rps"] .gc-sub { color: rgba(255,244,225,.9); }
.gcard[data-g="battleship"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(150,235,255,.32), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #5ee6ff 0%, #1e93ec 32%, #1d47b0 62%, #15124e 100%);
  border-color: rgba(160,230,255,.30);
  box-shadow: 0 12px 30px rgba(30,147,236,.4), inset 0 1px 0 rgba(255,255,255,.22);
}
.gcard[data-g="battleship"] .gc-sub { color: rgba(228,247,255,.88); }
.gcard[data-g="dice"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(225,190,255,.32), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #d39bff 0%, #9a48f2 32%, #5a22b8 62%, #1d0c4e 100%);
  border-color: rgba(220,190,255,.30);
  box-shadow: 0 12px 30px rgba(154,72,242,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
.gcard[data-g="dice"] .gc-sub { color: rgba(244,236,255,.88); }
.gcard:not(.wide)::after { background: linear-gradient(125deg, transparent 22%, rgba(255,255,255,.10) 40%, rgba(255,255,255,.04) 52%, transparent 66%); }

/* ===== Рулетка: золотая карточка ===== */
.gcard.gold { background:
    radial-gradient(55% 90% at 80% 35%, rgba(255,240,180,.45), transparent 70%),
    radial-gradient(130% 140% at 85% 0%, #ffe27a 0%, #f5b62a 30%, #c9761a 58%, #5a1f3c 100%);
  border-color: rgba(255,230,160,.45); box-shadow: 0 12px 34px rgba(245,182,42,.42), inset 0 1px 0 rgba(255,255,255,.4); }
.gcard.gold::after { background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.22) 36%, rgba(255,250,220,.12) 48%, transparent 64%); animation: goldShine 4s ease-in-out infinite; background-size: 220% 100%; }
@keyframes goldShine { 0%, 55% { background-position: 120% 0 } 100% { background-position: -120% 0 } }
.gcard.gold .gc-title { color: #fff; text-shadow: 0 2px 10px rgba(120,50,0,.55); }
.gcard.gold .gc-sub { color: rgba(255,248,225,.95); }
.gcard.gold .gc-tag { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5a2a00; background: linear-gradient(180deg, #fff6c9, #ffd45a); padding: 3px 9px; border-radius: 8px; box-shadow: 0 2px 6px rgba(120,60,0,.35); }
.gcard.gold .gc-icon { filter: drop-shadow(0 12px 18px rgba(90,30,0,.55)); }

/* ===== Экран рулетки ===== */
#s-roulette { --g1: #ffe27a; --g2: #f5b62a; --g3: #c9761a; }
#s-roulette .lh-title b { color: var(--g1); text-shadow: 0 0 12px rgba(255,200,80,.35); }
.rl-hist { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.rl-hist::-webkit-scrollbar { display: none; }
.rl-lbl { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rl-last { display: flex; gap: 6px; }
.rl-dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #1a0c3a; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.35); }
.rl-reel-wrap { position: relative; border-radius: 18px; padding: 18px 0; margin-bottom: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(40,24,90,.85), rgba(20,12,52,.9)); border: 1px solid rgba(255,210,120,.25); box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 8px 24px rgba(8,3,30,.45); }
.rl-reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rl-track { display: flex; gap: 8px; will-change: transform; padding: 0 4px; }
.rl-tile { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: radial-gradient(80% 80% at 30% 20%, rgba(255,255,255,.35), transparent 60%), var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.35); }
.rl-tile .ti { width: 46px; height: 46px; border-radius: 50%; background: rgba(15,8,40,.55) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 0 0 2px rgba(255,255,255,.65); }
.rl-tile.win { animation: rlWin 1s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #fff, 0 0 24px var(--c), 0 0 48px var(--c); z-index: 2; }
@keyframes rlWin { from { transform: scale(1) } to { transform: scale(1.1) } }
.rl-reel-wrap.dim .rl-tile:not(.win) { filter: brightness(.45) saturate(.6); }
.rl-marker { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, var(--g1), var(--g2)); box-shadow: 0 0 12px rgba(255,200,80,.9); border-radius: 2px; z-index: 3; pointer-events: none; }
.rl-marker::before, .rl-marker::after { content: ''; position: absolute; left: 50%; margin-left: -8px; border: 8px solid transparent; }
.rl-marker::before { top: -8px; border-top-color: var(--g1); }
.rl-marker::after { bottom: -8px; border-bottom-color: var(--g1); }
.rl-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 4; pointer-events: none; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.8); background: radial-gradient(40% 70% at 50% 50%, rgba(10,4,30,.75), transparent 75%); }
.rl-overlay.hide { display: none; }
.rl-overlay small { font-size: 14px; font-weight: 700; color: #fff; }
.rl-overlay b { font-size: 40px; font-weight: 900; color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rl-overlay .win-name { font-size: 22px; color: var(--g1); }
.rl-overlay .win-sub { font-size: 13px; color: #e8ddff; }
.rl-pot { background: linear-gradient(180deg, rgba(48,33,110,.75), rgba(32,22,74,.75)); border: 1px solid rgba(255,210,120,.22); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.rl-pot-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.rl-pot-row b { font-size: 22px; color: var(--g1); text-shadow: 0 0 10px rgba(255,200,80,.35); }
.rl-pot-row .rl-pc { margin-left: auto; }
.rl-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(10,4,40,.5); }
.rl-bar i { display: block; height: 100%; transition: width .4s; }
.rl-betbox { background: linear-gradient(180deg, rgba(70,45,20,.35), rgba(32,22,74,.7)); border: 1px solid rgba(255,210,120,.3); border-radius: 14px; padding: 10px; margin-bottom: 6px; }
.rl-inrow { display: flex; gap: 6px; margin-bottom: 8px; }
.rl-inrow input { flex: 1; min-width: 0; background: rgba(10,4,40,.55); border: 1px solid rgba(255,210,120,.35); border-radius: 10px; padding: 9px 10px; color: #fff; font-size: 16px; font-weight: 700; outline: none; }
.rl-inrow .btn { padding: 7px 9px; }
.rl-actrow { display: flex; gap: 8px; }
#rl-bet { background: linear-gradient(180deg, #ffe58a, #f5b62a 60%, #d98a1c); color: #3a1a00; box-shadow: 0 3px 0 #a65d0e, 0 6px 18px rgba(245,182,42,.3); }
#rl-bet:disabled { filter: grayscale(.6); }
.rl-hint { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; min-height: 16px; }
.rl-hint b { color: var(--g1); }
.rl-prow { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, rgba(48,33,110,.75), rgba(32,22,74,.75)); border: 1px solid rgba(124,104,230,.28); border-radius: 12px; padding: 8px 10px; position: relative; overflow: hidden; }
.rl-prow .sw-c { width: 6px; align-self: stretch; border-radius: 3px; }
.rl-prow .pn { flex: 1; min-width: 0; }
.rl-prow .pn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-prow .pn small { color: var(--muted); font-size: 11px; }
.rl-prow .pc { font-weight: 900; font-size: 16px; color: var(--g1); min-width: 56px; text-align: right; }
.rl-prow .fill { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c); opacity: .9; }
.rl-prow.me { border-color: rgba(255,210,120,.6); }
.rl-records { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-rec { background: linear-gradient(180deg, rgba(48,33,110,.75), rgba(32,22,74,.75)); border: 1px solid rgba(124,104,230,.28); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.rl-rec b { display: block; font-size: 18px; color: var(--g1); margin: 2px 0; }
.rl-fair { font-size: 10.5px; color: #8f86c2; margin: 12px 0 4px; word-break: break-all; line-height: 1.45; }
.rl-fair b { color: #c9c0f5; }

.rl-reel-wrap { padding-bottom: 46px; }
.rl-overlay { bottom: 28px; }
.rl-overlay.bottom { top: auto; bottom: 0; height: 50px; justify-content: center; background: linear-gradient(0deg, rgba(10,4,30,.85), transparent); flex-direction: row; gap: 10px; flex-wrap: wrap; padding: 0 10px; }
.rl-overlay.bottom .win-name { font-size: 17px; line-height: 1.1; }
.rl-overlay.bottom .win-sub { font-size: 12px; }
.rl-marker { top: 10px; bottom: 38px; }

/* ===================== ШРИФТЫ =====================
   Unbounded — заголовки и цифры, Rubik — основной текст */
:root { --f-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-display: 'Unbounded', 'Rubik', system-ui, sans-serif; }
html, body, button, input, textarea, select { font-family: var(--f-body); }
body { font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased; }

/* заголовки */
.gc-title, .lobby-head .lh-title b, .modal h2, .res-title, .prof-head .pi h1, .wait .w-head h2,
.rl-overlay small, .welcome-banner .wb-text b, #tb-nick { font-family: var(--f-display); letter-spacing: -.01em; }
.gc-title { font-weight: 800; }
.gcard:not(.wide) .gc-title { font-size: 19px; letter-spacing: -.02em; }
.gcard.wide .gc-title { font-size: 30px; font-weight: 900; }
.gcard .gc-sub { font-weight: 500; }
.gcard.gold .gc-tag { font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; }
.lobby-head .lh-title b { font-size: 19px; font-weight: 700; }
.modal h2 { font-size: 17px; font-weight: 700; }
#tb-nick { font-size: 14px; font-weight: 700; }
.welcome-banner .wb-text b { font-size: 13px; font-weight: 700; }

/* подписи разделов */
h3 { font-family: var(--f-display); font-weight: 600; font-size: 11.5px; letter-spacing: .12em; }

/* цифры: баланс, ставки, банк, счёт, таймеры, шансы */
#tb-coins-val, .r-bet, .g-bank, .bj-big, .rps-score .big, .dice-sum, .rl-overlay b, .rl-pot-row b, .rl-prow .pc,
.stat b, .rl-rec b, .me-timer, .res-delta, .opp .oc, .prow .rank, .rl-dot { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
#tb-coins-val { font-weight: 700; font-size: 14px; }
.stat b { font-weight: 700; font-size: 17px; }
.rl-overlay b { font-weight: 900; }
.bj-big, .rps-score .big { font-weight: 900; }

/* кнопки и переключатели */
.btn { font-weight: 600; letter-spacing: .01em; }
.btn.big, #rl-bet { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: 0; }

.tab, .seg button, .chip { font-weight: 500; }
.nav-btn span { font-weight: 500; font-size: 10.5px; }
.tag { font-weight: 500; }

/* игральные карты: чёткие индексы */
.card { font-family: var(--f-body); font-weight: 700; }
.card .tl, .card .br { font-weight: 800; letter-spacing: -.03em; }
:root { --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; --f-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif, var(--emoji); --f-display: 'Unbounded', 'Rubik', system-ui, sans-serif, var(--emoji); }
/* верхняя панель — компактнее */
#tb-nick { font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.tb-lvl { white-space: nowrap; font-size: 11px; }
#tb-coins-val { font-size: 13px; }

.online { white-space: nowrap; font-size: 11px; }
/* баннер бонуса — в одну строку */
.welcome-banner .wb-text b { font-family: var(--f-body); font-size: 14px; font-weight: 800; letter-spacing: 0; }
/* квадратные карточки — название в одну строку */
.gcard:not(.wide) .gc-title { font-size: 17px; white-space: nowrap; }

/* ===== ШРИФТЫ v2: Unbounded только в названиях игр, остальное — Rubik ===== */
#tb-coins-val, .r-bet, .g-bank, .bj-big, .rps-score .big, .dice-sum, .rl-overlay b, .rl-pot-row b, .rl-prow .pc,
.stat b, .rl-rec b, .me-timer, .res-delta, .opp .oc, .prow .rank, .rl-dot,
.lobby-head .lh-title b, .modal h2, .res-title, .prof-head .pi h1, .wait .w-head h2, .rl-overlay small,
.welcome-banner .wb-text b, #tb-nick, h3, .btn.big, #rl-bet, .gcard.gold .gc-tag { font-family: var(--f-body); letter-spacing: 0; }
#tb-coins-val { font-size: 15px; font-weight: 700; }

.welcome-banner .wb-text b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.welcome-banner .wb-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lobby-head .lh-title b { font-size: 18px; font-weight: 700; }
.modal h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.btn.big, #rl-bet { font-size: 16px; font-weight: 700; }
.stat b { font-size: 18px; font-weight: 700; }
.rl-pot-row b { font-size: 22px; font-weight: 800; }
.rl-prow .pc { font-size: 16px; font-weight: 800; }
.rl-overlay small { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.rl-overlay b { font-size: 38px; font-weight: 800; }
.rl-overlay.bottom .win-name { font-size: 17px; font-weight: 800; }
.bj-big, .rps-score .big { font-weight: 800; }
.gcard.gold .gc-tag { font-weight: 800; letter-spacing: .08em; }
/* названия игр — Unbounded, но аккуратнее */
.gc-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; }
.gcard.wide .gc-title { font-size: 26px; font-weight: 700; }
.gcard:not(.wide) .gc-title { font-size: 16px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.gcard .gc-sub { font-size: 12px; font-weight: 500; }
@media (max-width: 370px) { .gcard.wide .gc-title { font-size: 23px; } .gcard:not(.wide) .gc-title { font-size: 15px; }  }
/* узкие экраны (≤ 380px): ничего не переносится и не наезжает */
.welcome-banner .wb-text { min-width: 0; }
.welcome-banner .wb-text b { overflow: hidden; text-overflow: ellipsis; }
.gcard .gc-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 380px) {
  .online { display: none; }
  #topbar { padding-left: 8px; padding-right: 8px; }
  .tb-user { gap: 6px; } .avatar.sm { width: 32px; height: 32px; }
  
  #tb-coins-val { font-size: 14px; }
  .welcome-banner { gap: 8px; padding: 9px 10px; }
  .welcome-banner .wb-gift img { width: 32px; height: 32px; }
  .welcome-banner .wb-text b { font-size: 13px; }
  .welcome-banner .wb-text small { font-size: 11px; }
  .welcome-banner .wb-timer { font-size: 15px; padding: 4px 7px; }
  .gcard:not(.wide) .gc-sub { font-size: 11px; }
  .gcard.wide .gc-sub { font-size: 11.5px; }
}
.gcard .gc-sub { line-height: 1.35; padding-bottom: 1px; }
.gcard .gc-title { line-height: 1.2; }
@media (max-width: 380px) { .gcard:not(.wide) .gc-icon { width: 62%; margin-bottom: 6px; } .gcard:not(.wide) { padding: 12px 10px 12px; } }

/* ===== Звания ===== */
.rk { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; white-space: nowrap; }
.rk .rk-em { flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); overflow: visible; }
.rk b { font-weight: 700; font-size: inherit; letter-spacing: .01em; }
.rk-silver b { color: #dfe6f1; } .rk-selite b { color: #cfe0ff; } .rk-gold b { color: #ffd66b; } .rk-mg b { color: #8cc8ff; }
.rk-dmg b { color: #c6b0ff; } .rk-le b { color: #ffb27a; } .rk-smfc b { color: #ff9dcb; } .rk-ge b { color: #ffe27a; text-shadow: 0 0 8px rgba(255,200,60,.6); }
.tb-lvl { display: flex; align-items: center; font-size: 11.5px; max-width: 120px; overflow: hidden; }
.tb-lvl .rk b { overflow: hidden; text-overflow: ellipsis; }
.prof-rank { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 2px 0 2px; }
.prof-rank .prof-bal { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.rk-next { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rk-change { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 700; }
.rk-change.up { color: #6ef0b0; } .rk-change.down { color: #ff9eb0; }
.prow .pn small .rk { font-size: 11px; vertical-align: -3px; }
.w-seat small .rk { font-size: 11px; }
/* только значок звания, без подписи; онлайн сверху скрыт */
.online { display: none !important; }
.tb-lvl { margin-top: 2px; }
.prof-rank .rk-em { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

/* плашки званий */
.rk-img { display: block; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.tb-lvl { max-width: none; }

/* звание в профиле + список званий */
.rk-open { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: 10px; background: rgba(255,255,255,.04); max-width: 100%; text-align: left; }
.rk-open:active { background: rgba(255,255,255,.1); }
.rk-full { font-size: 13px; font-weight: 700; line-height: 1.15; color: #fff; }
.rk-chev { font-style: normal; color: var(--muted); font-size: 18px; margin-left: 2px; }
.prof-rank { align-items: center; }
.rkl-hint { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.rkl { display: flex; flex-direction: column; gap: 6px; }
.rkl-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(10,4,40,.35); border: 1px solid rgba(124,104,230,.2); }
.rkl-row img { height: 40px; width: 120px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.rkl-row:not(.done):not(.cur) img { filter: grayscale(.85) brightness(.7); }
.rkl-row:not(.done):not(.cur) .rkl-n b { color: var(--muted); }
.rkl-n { flex: 1; min-width: 0; }
.rkl-n b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.rkl-n small { font-size: 11px; color: var(--muted); }
.rkl-row.cur { border-color: var(--cyan); background: linear-gradient(90deg, rgba(69,217,255,.16), rgba(139,108,255,.12)); box-shadow: 0 0 14px rgba(69,217,255,.2); }
.rkl-row.cur small { color: var(--cyan); font-weight: 600; }
.rkl-k { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 18px; text-align: right; }

/* плашка звания: фиксированный размер, без сдвигов вёрстки */
.rk-img { object-fit: contain; flex: 0 0 auto; }
#tb-rank { height: 18px; width: 52px; flex: 0 0 auto; }
.rkl-row img { width: 114px; height: 40px; object-fit: fill; }

/* плюсик пополнения: зелёно-фиолетовый */
.coins .plus {
  width: 22px; height: 22px; font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #2ee59d 0%, #22c7a8 35%, #8b5cf6 75%, #a855f7 100%);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.35), 0 0 10px rgba(46,229,157,.45), 0 0 14px rgba(139,92,246,.45);
  text-shadow: 0 1px 2px rgba(20,0,60,.45);
}
/* плюсик — обратно компактный */
.coins .plus { width: 18px; height: 18px; font-size: 14px; line-height: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 6px rgba(46,229,157,.35), 0 0 8px rgba(139,92,246,.35); }
.coins .plus { width: 15px; height: 15px; font-size: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 0 5px rgba(46,229,157,.3), 0 0 6px rgba(139,92,246,.3); }
.coins .plus { width: 17px; height: 17px; font-size: 13px; }

/* ===== приглашение друзей ===== */
.friends-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 10px; padding: 10px 14px; background: linear-gradient(135deg, #5b3fe0, #2f8fd6); }
.friends-cta .fc-ic { font-size: 24px; }
.friends-cta span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.friends-cta b { font-size: 15px; } .friends-cta small { font-size: 11.5px; opacity: .85; font-weight: 500; }
.friends-cta i { font-style: normal; font-size: 22px; opacity: .8; }
.w-seat.free { cursor: pointer; border-color: rgba(69,217,255,.55); background: rgba(69,217,255,.06); }
.w-seat.free .w-plus { font-size: 28px; color: var(--cyan); line-height: 1; }
.w-seat.free small { color: var(--cyan); }
.w-seat.ghost { border-style: dashed; border-color: rgba(255,255,255,.35); opacity: .75; cursor: pointer; }
.w-seat.ghost .avatar { filter: grayscale(.4); animation: pulse 1.6s infinite; }
.fp-list { max-height: 40dvh; overflow-y: auto; margin: 10px 0 6px; }
.fp-list h3 { margin: 10px 0 6px; }
.fp-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; margin-bottom: 6px; background: rgba(10,4,40,.35); border: 1px solid rgba(124,104,230,.2); cursor: pointer; }
.fp-row .pn { flex: 1; min-width: 0; } .fp-row .pn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fp-row .pn small { color: var(--muted); font-size: 11px; }
.fp-row .fp-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #5a4aa8; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #06243a; flex: 0 0 auto; }
.fp-row.on { border-color: var(--cyan); background: rgba(69,217,255,.12); }
.fp-row.on .fp-chk { background: var(--cyan); border-color: var(--cyan); }
.fp-foot { display: flex; gap: 8px; } .fp-foot .btn.big { flex: 1.4; } .fp-foot .btn.ghost { flex: 1; font-size: 13px; padding: 10px 6px; }
.fp-hint { font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; }
.iv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.iv-head img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.iv-head small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.iv-head b { font-size: 20px; }
.gpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gpick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(10,4,40,.4); border: 1px solid rgba(124,104,230,.25); font-size: 12px; font-weight: 600; }
.gpick img { width: 56px; height: 56px; object-fit: contain; }
/* дурак: веер карт шире и левее */
.gcard.wide[data-g="durak"] .gc-icon { width: 54%; max-width: 236px; margin: -8px 10px -10px 0; }
.gcard.wide[data-g="durak"] { padding-right: 10px; }
/* КНБ: графит с серебром — под камень/бумагу/ножницы, нейтрально между рубином и изумрудом */
.gcard[data-g="rps"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #9aa3b8 0%, #4a5168 32%, #262a3f 62%, #120c2e 100%);
  border-color: rgba(220,228,245,.32);
  box-shadow: 0 12px 30px rgba(74,81,104,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.gcard[data-g="rps"] .gc-sub { color: rgba(226,230,242,.85); }
.gcard[data-g="rps"] .gc-icon { filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(170,140,255,.25)); }
/* КНБ: графит с фиолетовым отливом */
.gcard[data-g="rps"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(230,215,255,.24), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #a99ccb 0%, #5a4f86 32%, #332a5c 62%, #150d38 100%);
  border-color: rgba(214,200,245,.34);
  box-shadow: 0 12px 30px rgba(90,79,134,.48), inset 0 1px 0 rgba(255,255,255,.3);
}
.gcard[data-g="rps"] .gc-sub { color: rgba(232,224,250,.88); }

/* КНБ: тёмный графит под чёрно-бело-фиолетовую иконку */
.gcard[data-g="rps"] {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(170,140,255,.22), transparent 70%),
    radial-gradient(130% 130% at 70% 0%, #6b6a84 0%, #3a394f 32%, #22213a 62%, #120c2e 100%);
  border-color: rgba(200,190,235,.3);
  box-shadow: 0 12px 30px rgba(58,57,79,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.gcard[data-g="rps"] .gc-icon { filter: drop-shadow(0 12px 18px rgba(0,0,0,.65)) drop-shadow(0 0 18px rgba(124,58,237,.35)); }

/* КНБ: тёмная основа с красным и зелёным свечением */
.gcard[data-g="rps"] {
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(255,64,96,.55), transparent 70%),
    radial-gradient(60% 55% at 92% 30%, rgba(40,220,140,.45), transparent 70%),
    radial-gradient(70% 60% at 50% 32%, rgba(140,120,255,.22), transparent 70%),
    linear-gradient(180deg, #2a2440 0%, #1c1830 55%, #120c2e 100%);
  border-color: rgba(220,210,255,.28);
  box-shadow: 0 12px 30px rgba(20,12,50,.55), inset 0 1px 0 rgba(255,255,255,.22);
}

/* дурак: веер чуть ниже по высоте */
.gcard.wide[data-g="durak"] .gc-icon { width: 50%; max-width: 214px; margin: -2px 10px -4px 0; }

/* КНБ: красный, зелёный и фиолетовый снизу */
.gcard[data-g="rps"] {
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(255,64,96,.55), transparent 70%),
    radial-gradient(60% 55% at 92% 30%, rgba(40,220,140,.45), transparent 70%),
    radial-gradient(90% 55% at 50% 105%, rgba(150,80,255,.65), transparent 72%),
    radial-gradient(70% 60% at 50% 32%, rgba(140,120,255,.18), transparent 70%),
    linear-gradient(180deg, #2a2440 0%, #1c1830 55%, #160c3a 100%);
}

/* дурак: все 4 масти вразнобой на фоне, веер меньше и левее */
.gcard[data-g="durak"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Ctext x='8' y='20' font-size='13' fill='white' fill-opacity='.10' transform='rotate(-16 8 20)'%3E%E2%99%A6%3C/text%3E%3Ctext x='48' y='14' font-size='15' fill='white' fill-opacity='.10' transform='rotate(-21 48 14)'%3E%E2%99%A3%3C/text%3E%3Ctext x='92' y='26' font-size='15' fill='white' fill-opacity='.10' transform='rotate(-2 92 26)'%3E%E2%99%A6%3C/text%3E%3Ctext x='26' y='52' font-size='11' fill='white' fill-opacity='.10' transform='rotate(7 26 52)'%3E%E2%99%A5%3C/text%3E%3Ctext x='70' y='48' font-size='13' fill='white' fill-opacity='.10' transform='rotate(-20 70 48)'%3E%E2%99%A0%3C/text%3E%3Ctext x='112' y='58' font-size='11' fill='white' fill-opacity='.10' transform='rotate(-21 112 58)'%3E%E2%99%A6%3C/text%3E%3Ctext x='10' y='88' font-size='13' fill='white' fill-opacity='.10' transform='rotate(10 10 88)'%3E%E2%99%A6%3C/text%3E%3Ctext x='54' y='84' font-size='11' fill='white' fill-opacity='.10' transform='rotate(11 54 84)'%3E%E2%99%A5%3C/text%3E%3Ctext x='96' y='96' font-size='15' fill='white' fill-opacity='.10' transform='rotate(15 96 96)'%3E%E2%99%A5%3C/text%3E%3Ctext x='34' y='118' font-size='15' fill='white' fill-opacity='.10' transform='rotate(11 34 118)'%3E%E2%99%A3%3C/text%3E%3Ctext x='78' y='122' font-size='11' fill='white' fill-opacity='.10' transform='rotate(-22 78 122)'%3E%E2%99%A5%3C/text%3E%3Ctext x='118' y='112' font-size='11' fill='white' fill-opacity='.10' transform='rotate(10 118 112)'%3E%E2%99%A5%3C/text%3E%3C/svg%3E"); }
.gcard.wide[data-g="durak"] .gc-icon { width: 44%; max-width: 188px; margin: 0 34px 0 0; }

/* ===== ставки фишками ===== */
.bchips { display: flex; flex-wrap: wrap; gap: 10px 8px; justify-content: center; padding: 4px 0 2px; }
.bchip { --c: #2f7bf6; --t: #fff; --s: #fff; width: 54px; height: 54px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.4), transparent 46%), var(--c);
  box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 6px 12px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.25); transition: transform .14s, box-shadow .14s; }
.bchip::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(var(--s) 0 13deg, transparent 13deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 0 63%, #000 64% 100%); mask: radial-gradient(circle, transparent 0 63%, #000 64% 100%); opacity: .92; }
.bchip::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--s) 75%, transparent);
  background: radial-gradient(circle at 40% 32%, rgba(255,255,255,.25), transparent 62%), var(--c); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }
.bchip span { position: relative; z-index: 1; color: var(--t); font-weight: 800; font-size: 12.5px; letter-spacing: -.02em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.bchip.on { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px var(--cyan), 0 0 16px rgba(69,217,255,.55), 0 10px 18px rgba(0,0,0,.5); }
.bchip.dis { opacity: .35; filter: grayscale(.5); }
.bchip:active { transform: scale(.94); }
.bchip.pop { animation: chipPop .28s ease-out; }
@keyframes chipPop { 40% { transform: translateY(-8px) scale(1.12); } }
.rl-chips { margin: 2px 0 10px; }
.rl-chips .bchip { width: 46px; height: 46px; } .rl-chips .bchip::after { inset: 7px; } .rl-chips .bchip span { font-size: 11px; }
@media (max-width: 370px) { .bchip { width: 48px; height: 48px; } .bchip::after { inset: 8px; } .bchip span { font-size: 11px; } }
.rl-chips { flex-wrap: nowrap; gap: 5px; } .rl-chips .bchip { width: 42px; height: 42px; } .rl-chips .bchip::after { inset: 6px; } .rl-chips .bchip span { font-size: 10.5px; }

/* фишки — картинки Sunburst */
.bchip { background: var(--img) center/contain no-repeat !important; box-shadow: 0 6px 10px rgba(0,0,0,.4) !important; border-radius: 50%; }
.bchip::before, .bchip::after { display: none !important; }
.bchip span { color: var(--t); font-size: 13px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.bchip.on { box-shadow: 0 0 0 3px var(--cyan), 0 0 18px rgba(69,217,255,.6), 0 10px 18px rgba(0,0,0,.5) !important; }
.rl-chips .bchip span { font-size: 10.5px; }
/* ставки — все фишки в одну строку */
#c-bet, #fp-bet { flex-wrap: nowrap; gap: 4px; justify-content: space-between; padding: 6px 0 2px; }
#c-bet .bchip, #fp-bet .bchip { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 1; max-width: 50px; min-width: 0; }
#c-bet .bchip span, #fp-bet .bchip span { font-size: clamp(9px, 2.7vw, 12px); }
#c-bet .bchip.on, #fp-bet .bchip.on { transform: translateY(-4px) scale(1.06); }

/* ===== Пополнение: своя сумма ===== */
.dep-card { background: linear-gradient(180deg, rgba(48,33,110,.75), rgba(32,22,74,.75)); border: 1px solid rgba(124,104,230,.28); border-radius: 16px; padding: 14px; }
.dep-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.dep-input { display: flex; align-items: center; gap: 6px; background: rgba(10,6,30,.55); border: 1.5px solid rgba(160,140,255,.35); border-radius: 12px; padding: 0 14px; height: 54px; transition: border-color .15s, box-shadow .15s; }
.dep-input:focus-within { border-color: #8f7bff; box-shadow: 0 0 0 3px rgba(143,123,255,.2); }
.dep-input span { font-size: 24px; font-weight: 800; color: #f5d27a; }
.dep-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-family: inherit; font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dep-input input::placeholder { color: rgba(255,255,255,.25); }
.dep-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.dep-q { height: 34px; border-radius: 10px; border: 1px solid rgba(160,140,255,.3); background: rgba(124,104,230,.14); color: #e9e4ff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dep-q.on { background: linear-gradient(180deg, #f7d77e, #d9a63b); color: #2a1a00; border-color: transparent; }
.dep-sum { min-height: 20px; margin: 10px 2px 8px; font-size: 13px; color: #d9d2ff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dep-sum .cp-b { color: #6ef0ff; font-size: 12px; font-weight: 700; }
.dep-err { color: #ff7a8a; font-weight: 600; }
.dep-go { width: 100%; height: 46px; font-size: 15px; }
.dep-go:disabled { opacity: .45; filter: grayscale(.4); }

/* ===== Своя ставка в игре с друзьями ===== */
.fp-own { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fp-own > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fp-own-in { flex: 1; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(10,6,30,.55); border: 1.5px solid rgba(160,140,255,.3); transition: border-color .15s, box-shadow .15s; }
.fp-own-in:focus-within, .fp-own-in.on { border-color: #f2c96a; box-shadow: 0 0 0 3px rgba(242,201,106,.18); }
.fp-own-in b { color: #f5d27a; font-size: 17px; font-weight: 800; }
.fp-own-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fp-own-in input::placeholder { color: rgba(255,255,255,.22); }
.fp-own-err { min-height: 0; font-size: 12px; color: #ff7a8a; font-weight: 600; margin-top: 4px; }
.fp-own-err:empty { display: none; }
.fp-own-in { box-sizing: border-box; min-width: 0; }
.fp-own { width: 100%; box-sizing: border-box; padding-right: 2px; }

/* ===== Крупные карты: размер от ширины экрана ===== */
:root { --card-w: clamp(54px, 16.5vw, 84px); --card-h: calc(var(--card-w) * 1.42); --hand-w: clamp(62px, 20vw, 100px); --hand-h: calc(var(--hand-w) * 1.42); }
@media (max-height: 640px) { :root { --card-w: clamp(46px, 13vw, 64px); --hand-w: clamp(54px, 16vw, 76px); } }
.card { --w: var(--card-w); border-radius: calc(var(--w) * .12); }
.hand .card { --w: var(--hand-w); width: var(--hand-w); height: var(--hand-h); }
.hand { min-height: calc(var(--hand-h) + 16px); }
.card .tl, .card .br { font-size: calc(var(--w) * .26); }
.card .tl small, .card .br small { font-size: calc(var(--w) * .22); }
.card .tl { top: calc(var(--w) * .07); left: calc(var(--w) * .08); }
.card .br { bottom: calc(var(--w) * .07); right: calc(var(--w) * .08); }
.card .ctr { font-size: calc(var(--w) * .56); }

.pair { width: calc(var(--card-w) * 1.32); height: calc(var(--card-h) * 1.22); }
.pair .d { top: calc(var(--card-h) * .2); left: calc(var(--card-w) * .32); }
.g-deck { width: calc(var(--card-w) + 20px); height: calc(var(--card-h) + 16px); }
.g-deck .trump { left: calc(var(--card-w) * .28); top: calc(var(--card-h) * .1); transform: rotate(90deg) translate(0, calc(var(--card-w) * -.18)); }
.g-deck .cnt, .g-deck .trumpsuit { width: var(--card-w); }
.g-discard { width: calc(var(--card-w) + 6px); height: calc(var(--card-h) + 16px); }
.g-mid { padding: 6px 6px; gap: 6px; }
.g-table { gap: 10px 12px; }
.g-chat-btn { bottom: calc(var(--hand-h) + 70px + var(--safe-bottom)); }
.g-emo { bottom: calc(var(--hand-h) + 70px + var(--safe-bottom)); }
.hand { min-width: 0; }

/* ===== Серия «до N побед» ===== */
.match-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 10px 0; padding: 5px 10px; border-radius: 12px; background: rgba(20,12,52,.7); border: 1px solid rgba(160,140,255,.28); font-size: 12px; color: #cfc6ff; flex: 0 0 auto; position: relative; z-index: 3; }
.match-bar .mb-sc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.match-bar .mb-sc b { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 8px; border-radius: 9px; background: rgba(255,255,255,.06); color: #e9e4ff; font-weight: 600; white-space: nowrap; }
.match-bar .mb-sc b.me { background: rgba(110,240,255,.14); color: #fff; }
.match-bar .mb-sc b.left { opacity: .45; text-decoration: line-through; }
.match-bar .mb-sc em { font-style: normal; font-weight: 800; min-width: 20px; height: 20px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f7d77e, #d9a63b); color: #2a1a00; font-size: 12px; }
.match-bar .mb-t, .match-bar .mb-r { white-space: nowrap; opacity: .85; }
.match-next { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 20; min-width: 230px; text-align: center; padding: 16px 20px; border-radius: 18px; background: rgba(22,12,58,.94); border: 1.5px solid rgba(160,140,255,.45); box-shadow: 0 12px 40px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 6px; animation: mnIn .25s ease-out; }
.match-next b { font-size: 20px; color: #fff; }
.match-next.win b { color: #7dffb0; } .match-next.lose b { color: #ff9aa8; }
.match-next small { font-size: 13px; color: #cfc6ff; }
@keyframes mnIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ===== Друзья: новый экран ===== */
.fr-invite { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; margin-bottom: 12px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(110,240,255,.22), transparent 55%), linear-gradient(135deg, #5b3fd6 0%, #3a2a9a 55%, #2a1c70 100%);
  border: 1px solid rgba(190,170,255,.35); box-shadow: 0 10px 28px rgba(40,20,120,.45), inset 0 1px 0 rgba(255,255,255,.15); }

.fr-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 14px; background: rgba(10,6,30,.5); border: 1.5px solid rgba(160,140,255,.28); margin-bottom: 14px; transition: border-color .15s; }
.fr-search:focus-within { border-color: #8f7bff; }
.fr-search .frs-ic { font-size: 15px; opacity: .7; }
.fr-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-family: inherit; font-size: 14px; padding: 9px 0; }
.fr-search input::placeholder { color: rgba(255,255,255,.35); }
.fr-h { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; font-size: 13px; font-weight: 700; color: #cfc6ff; text-transform: uppercase; letter-spacing: .04em; }
.fr-h em { font-style: normal; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(160,140,255,.22); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fr-h em:empty { display: none; }
.fr-h .fr-on { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: #7dffb0; font-size: 12px; }
.fr-clear { margin-left: auto; background: none; border: 0; color: #cfc6ff; font-size: 14px; cursor: pointer; }
.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(48,33,110,.7), rgba(32,22,74,.7)); border: 1px solid rgba(124,104,230,.25); }
.fr-row.is-on { border-color: rgba(125,255,176,.28); }
.fr-av { position: relative; flex: 0 0 auto; }
.fr-av .avatar { width: 46px; height: 46px; }
.fr-dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #6b6590; border: 2px solid #22175a; }
.fr-row.is-on .fr-dot { background: #3ef08f; box-shadow: 0 0 8px rgba(62,240,143,.7); }
.fr-row .pn { flex: 1; min-width: 0; }
.fr-row .pn b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row .pn small { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: #a99fe0; }
.fr-row.is-on .fr-st { color: #7dffb0; }
.fr-act { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.fr-act .btn.small { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.fr-act .fr-ic, .fr-act .fr-x { padding: 7px 9px; }
.fr-tag { font-size: 11px; color: #cfc6ff; background: rgba(255,255,255,.08); padding: 5px 9px; border-radius: 9px; white-space: nowrap; }
.fr-empty { text-align: center; padding: 26px 16px; border-radius: 18px; border: 1.5px dashed rgba(160,140,255,.3); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cfc6ff; }
.fr-empty.small { padding: 14px; font-size: 13px; }
.fr-empty .fe-ic { font-size: 40px; }
.fr-empty b { color: #fff; font-size: 16px; }
.fr-empty small { font-size: 13px; max-width: 260px; }
.fr-empty .btn { margin-top: 8px; }

/* ===== Баннер «Пополнение через CryptoBot» ===== */

.cb-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #cfe8ff; background: rgba(0,0,0,.22); padding: 4px 9px; border-radius: 20px; }
.cb-kicker b { color: #fff; }

.cb-title { font-family: var(--f-title, inherit); font-size: 22px; font-weight: 800; color: #fff; margin: 7px 0 3px; text-shadow: 0 2px 8px rgba(0,0,40,.4); }
.cb-sub { font-size: 12px; color: #dfeaff; }

@keyframes cbFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

@media (max-width: 360px) {  .cb-title { font-size: 19px; } }

/* ===== Друзья: красочный баннер и счётчики ===== */
.fr-invite { display: none; }
.fr-banner { position: relative; display: flex; align-items: center; min-height: 150px; padding: 14px 6px 14px 16px; margin-bottom: 10px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 40%, rgba(255,140,220,.38), transparent 60%), linear-gradient(120deg, #7a2fd0 0%, #a23bc9 45%, #e0569f 100%);
  border: 1px solid rgba(255,190,240,.45); box-shadow: 0 12px 30px rgba(120,30,140,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.fr-banner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.frb-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.fr-banner .cb-kicker { color: #ffe3f6; }
.fr-banner .cb-sub { color: #ffe6f6; max-width: 210px; }
.frb-btns { display: flex; gap: 6px; margin-top: 11px; }
.frb-btns .btn.gold { padding: 9px 18px; font-size: 14px; }
.frb-copy { padding: 9px 12px; font-size: 13px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; }
.frb-art { position: relative; z-index: 1; width: 128px; height: 128px; object-fit: contain; flex: 0 0 auto; margin-right: -8px; filter: drop-shadow(0 8px 16px rgba(60,0,60,.45)); animation: cbFloat 3.4s ease-in-out infinite; }
.fr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fr-stats > div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.fr-stats b { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.fr-stats small { font-size: 11px; color: rgba(255,255,255,.75); }
.fr-stats .fs-a { background: linear-gradient(160deg, rgba(110,90,255,.55), rgba(60,40,160,.55)); }
.fr-stats .fs-b { background: linear-gradient(160deg, rgba(40,200,140,.5), rgba(20,110,90,.5)); }
.fr-stats .fs-c { background: linear-gradient(160deg, rgba(255,110,170,.5), rgba(150,40,110,.5)); }
.fr-h { color: #e9e4ff; }
.fr-h::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #6ef0ff, #b28cff); }
.fr-row { background: linear-gradient(120deg, rgba(70,48,160,.75), rgba(36,24,84,.8)); }
.fr-row.is-on { background: linear-gradient(120deg, rgba(40,120,120,.55), rgba(36,24,84,.85)); }
.fr-row .avatar { box-shadow: 0 0 0 2px rgba(178,140,255,.6); }
.fr-row.is-on .avatar { box-shadow: 0 0 0 2px rgba(62,240,143,.75), 0 0 12px rgba(62,240,143,.35); }
.fr-empty { background: linear-gradient(160deg, rgba(122,47,208,.25), rgba(224,86,159,.18)); border-color: rgba(255,190,240,.35); }

/* ===== Пополнение: низ ===== */
.dep-q { font-size: 14px; }

/* ===== Всплывающие уведомления ===== */
#toasts { top: calc(10px + var(--safe-top)); padding: 0 12px; gap: 8px; z-index: 200; }
.toast { --ac: #8f7bff; --ac2: #b9a8ff; position: relative; overflow: hidden; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 12px; width: min(420px, 100%); max-width: none; padding: 11px 14px 13px 12px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(40,26,96,.97), rgba(22,14,58,.97)); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: ttIn .32s cubic-bezier(.2,1.3,.4,1); }
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--ac2), var(--ac)); }
.toast .tt-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900;
  background: linear-gradient(160deg, var(--ac2), var(--ac)); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--ac) 45%, transparent); }
.toast .tt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.toast .tt-body b { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ac2); }
.toast .tt-body span { font-size: 14px; line-height: 1.3; color: #f2efff; word-wrap: break-word; }
.toast .tt-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--ac), var(--ac2)); opacity: .7; transform-origin: left; animation: ttBar linear forwards; }
.toast.t-err { --ac: #ff3d63; --ac2: #ff8aa0; }
.toast.t-ok { --ac: #19c37d; --ac2: #7dffb0; }
.toast.t-money { --ac: #e0a62a; --ac2: #ffd978; }
.toast.t-money .tt-ic { color: #3a2500; }
.toast.t-friend { --ac: #d04aa8; --ac2: #ff9ad8; }
.toast.t-gold { --ac: #c98a1a; --ac2: #ffe08a; }
.toast.t-info { --ac: #4f7cff; --ac2: #8fd8ff; }
.toast.err { border-color: rgba(255,255,255,.1); }
.toast.out { animation: ttOut .26s ease-in forwards; }
.toast.bump { animation: ttBump .3s ease; }
@keyframes ttIn { from { opacity: 0; transform: translateY(-24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ttOut { to { opacity: 0; transform: translateY(-20px) scale(.96); } }
@keyframes ttBump { 0%, 100% { transform: none; } 40% { transform: scale(1.03); } }
@keyframes ttBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.frb-art { width: 120px; height: 120px; margin-right: 12px; margin-left: -6px; }
.frb-text { z-index: 2; }
.fr-banner .cb-sub { max-width: 185px; }
.frb-copy { white-space: nowrap; }

/* ===== Рубашки, лицевые, рамки (новые рисунки) ===== */
.back-classic { --bk: url(img/backs/classic.webp?v=3); }  
  
  

/* рамки аватара — картинка-кольцо поверх аватарки */

/* лицевые стороны */

/* лицевые: чтобы стили заметно отличались */
.card .ctr .rk { display: none; }

/* ===== Лента акций на главной ===== */

.promo { margin: 0 0 12px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.promo-track::-webkit-scrollbar { display: none; }
.pslide { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 150px; display: flex; align-items: center; padding: 16px 6px 16px 18px; border-radius: 22px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.pslide::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.pslide::after { content: ''; position: absolute; right: -40px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
.p-gold { background: radial-gradient(90% 120% at 100% 40%, rgba(255,240,170,.45), transparent 60%), linear-gradient(120deg, #b8721a 0%, #e0a42e 45%, #ffd56b 100%); }
.p-blue { background: radial-gradient(90% 120% at 100% 50%, rgba(110,240,255,.35), transparent 60%), linear-gradient(120deg, #1f3fbf 0%, #3b2fc9 45%, #6a3bd6 100%); }
.p-orange { background: radial-gradient(90% 120% at 100% 50%, rgba(255,210,120,.4), transparent 60%), linear-gradient(120deg, #a2331a 0%, #e0682a 50%, #ffb347 100%); }
.p-pink { background: radial-gradient(90% 120% at 100% 40%, rgba(255,140,220,.38), transparent 60%), linear-gradient(120deg, #7a2fd0 0%, #a23bc9 45%, #e0569f 100%); }
.p-violet { background: radial-gradient(90% 120% at 100% 50%, rgba(190,150,255,.4), transparent 60%), linear-gradient(120deg, #2a1a7a 0%, #5a2fc9 55%, #8a52f0 100%); }
.p-cyan { background: radial-gradient(90% 120% at 100% 50%, rgba(160,255,240,.35), transparent 60%), linear-gradient(120deg, #0b5a7a 0%, #1a8fb0 50%, #3fd3c8 100%); }
.ps-text { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ps-kicker { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.22); padding: 4px 9px; border-radius: 20px; letter-spacing: .02em; }
.ps-title { font-family: var(--f-title, inherit); font-size: 26px; font-weight: 900; color: #fff; line-height: 1.05; margin-top: 4px; text-shadow: 0 2px 10px rgba(0,0,40,.35); }
.ps-sub { font-size: 13px; color: rgba(255,255,255,.88); }
.ps-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ps-btn { border: 0; border-radius: 14px; padding: 9px 16px; font-family: inherit; font-size: 14px; font-weight: 800; color: #2a1660; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e9e2ff); box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.25); }
.ps-btn i { font-style: normal; margin-left: 2px; }
.p-gold .ps-title, .p-gold .ps-sub { color: #2a1600; text-shadow: none; }
.p-gold .ps-kicker { color: #fff3c4; background: rgba(90,50,0,.35); }
.ps-timer { font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 15px; padding: 7px 10px; border-radius: 12px; background: #0e1a14; color: #4dff8f; box-shadow: inset 0 0 0 1px rgba(77,255,143,.35); }
.ps-art { position: relative; z-index: 2; width: 132px; height: 132px; object-fit: contain; flex: 0 0 auto; margin-right: 4px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.4)); animation: cbFloat 3.4s ease-in-out infinite; }
.ps-fan { position: relative; z-index: 2; width: 132px; height: 128px; flex: 0 0 auto; margin-right: 6px; }
.ps-fan i { position: absolute; left: 38px; top: 10px; width: 64px; height: 96px; border-radius: 8px; background: var(--bk) center/cover; border: 2px solid #fff; box-shadow: 0 8px 16px rgba(0,0,0,.4); transform-origin: 50% 110%; }
.ps-fan i:nth-child(1) { transform: rotate(-18deg) translateX(-8px); } .ps-fan i:nth-child(2) { transform: rotate(0deg) translateY(-6px); } .ps-fan i:nth-child(3) { transform: rotate(18deg) translateX(8px); }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.promo-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); transition: width .25s, background .25s; cursor: pointer; }
.promo-dots i.on { width: 20px; background: #fff; }
@media (max-width: 360px) { .ps-art, .ps-fan { width: 108px; height: 108px; } .ps-title { font-size: 22px; } }
.ps-btn { white-space: nowrap; }
.pslide { height: 156px; min-height: 0; } .ps-title { white-space: nowrap; }

/* онлайн над игрой — плашка «● 26 играют» слева сверху */
.gcard .gc-online { top: 10px; left: 10px; right: auto; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 16px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: rgba(14,8,40,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.gcard .gc-online i { width: 9px; height: 9px; background: #34e07a; box-shadow: 0 0 0 3px rgba(52,224,122,.18), 0 0 8px #34e07a; animation: onPulse 2s ease-in-out infinite; }
.gcard .gc-online b { font-weight: 600; }
@keyframes onPulse { 50% { box-shadow: 0 0 0 5px rgba(52,224,122,.06), 0 0 10px #34e07a; } }
.gcard.wide .gc-text { padding-top: 30px; }

/* ===== Главная: размеры карточек, компактный онлайн ===== */
.gcard .gc-online { top: 9px; left: 9px; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 12px; font-size: 11px; font-weight: 600; box-shadow: none; }
.gcard .gc-online i { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(52,224,122,.18), 0 0 6px #34e07a; }
/* квадратные карточки: картинка по центру под плашкой, текст внизу */
.gcard:not(.wide) { padding: 30px 10px 12px; justify-content: space-between; }
.gcard:not(.wide) .gc-icon { width: 70%; max-width: 150px; margin: 0 auto auto; flex: 0 0 auto; }
.gcard:not(.wide) .gc-title { margin-top: 4px; }
/* Дурак — крупный прямоугольник */
.gcard.wide[data-g="durak"] { height: 190px; padding: 18px 8px 18px 20px; }
.gcard.wide .gc-text { padding-top: 14px; }
.gcard.wide[data-g="durak"] .gc-title { font-size: 34px; }
.gcard.wide[data-g="durak"] .gc-sub { font-size: 13px; }
.gcard.wide[data-g="durak"] .gc-icon { width: 52%; max-width: 230px; margin: 0 6px 0 0; }
/* Рулетка */
.gcard.wide.gold { height: 170px; padding: 18px 8px 18px 20px; }
.gcard.wide.gold .gc-icon { width: 46%; max-width: 200px; margin: 0 4px 0 0; }
/* Лента акций — выше */
.pslide { height: 190px; padding: 18px 8px 18px 20px; }
.ps-title { font-size: 30px; }
.ps-sub { font-size: 14px; }
.ps-art { width: 160px; height: 160px; }
.ps-fan { width: 156px; height: 150px; }
.ps-fan i { left: 44px; top: 14px; width: 76px; height: 114px; }
@media (max-width: 370px) { .pslide { height: 176px; } .ps-art, .ps-fan { width: 128px; height: 128px; } .ps-title { font-size: 25px; } .gcard.wide[data-g="durak"] { height: 172px; } .gcard.wide[data-g="durak"] .gc-title { font-size: 28px; } }
.gcard:not(.wide) .gc-icon { width: 100%; max-width: none; height: 54%; margin: 2px 0 auto; display: flex; justify-content: center; align-items: center; }
.gcard:not(.wide) .gc-icon picture { height: 100%; display: flex; justify-content: center; }
.gcard:not(.wide) .gc-icon img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gcard:not(.wide) .gc-title { margin-top: 6px; }
.gcard:not(.wide) .gc-sub { margin-bottom: 0; }
.ps-art { width: 140px; height: 140px; margin-right: 0; }
.ps-text { padding-right: 4px; }
.ps-row { gap: 6px; }
.ps-timer { font-size: 13px; padding: 6px 8px; }
.ps-btn { padding: 9px 14px; }
.gcard:not(.wide) { padding: 28px 8px 10px; }
.gcard:not(.wide) .gc-icon { height: 66%; margin: 0 0 auto; }
.gcard:not(.wide) .gc-icon img { transform: scale(1.12); }
.gcard:not(.wide) .gc-title { margin-top: 2px; }

/* ===== LIVE-лента ===== */
.live { display: flex; align-items: stretch; gap: 8px; margin: 0 0 14px; }
.live-tag { flex: 0 0 auto; width: 30px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(48,33,110,.8), rgba(28,20,70,.8)); border: 1px solid rgba(160,140,255,.25); }
.live-tag span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 900; letter-spacing: .14em; color: #e9e4ff; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #34e07a; box-shadow: 0 0 8px #34e07a; animation: onPulse 1.6s ease-in-out infinite; }
.live-track { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 1px; }
.live-track::-webkit-scrollbar { display: none; }
.lv-card { --lc: #8f7bff; flex: 0 0 auto; width: 188px; height: 66px; display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(120deg, color-mix(in srgb, var(--lc) 28%, #1d1450), #160f3c); border: 1.5px solid color-mix(in srgb, var(--lc) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.lv-card.fresh { animation: lvIn .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes lvIn { from { opacity: 0; transform: translateX(-30px) scale(.9); } }
.lv-art { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--lc) 85%, #fff 0%), color-mix(in srgb, var(--lc) 55%, #000)); }
.lv-art img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.lv-art b { font-size: 28px; }
.lv-art .lv-back { display: block; width: 30px; height: 44px; border-radius: 4px; background: center/cover; border: 1.5px solid #fff; }
.lv-art .lv-rank { width: 48px; height: auto; }
.lv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-user { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #e9e4ff; min-width: 0; }
.lv-user span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-user .avatar { width: 18px; height: 18px; font-size: 9px; border-width: 1px; flex: 0 0 auto; }
.lv-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.lv-line em { font-style: normal; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-line small { font-size: 10px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-amt { color: #4dff8f; font-size: 17px; text-shadow: 0 0 10px rgba(77,255,143,.35); }
.lv-buy { color: #ffd978; font-size: 14px; }
.lv-rank-t { color: #9fe9ff; font-size: 13px; }
.lv-empty { font-size: 12px; color: #8f86c4; padding: 0 6px; display: flex; align-items: center; height: 66px; }
.lg-b-durak, .lg-durak { --lc: #ff4d6d; } .lg-b-blackjack, .lg-blackjack { --lc: #18c59a; } .lg-b-rps, .lg-rps { --lc: #a35cff; }
.lg-b-battleship, .lg-battleship { --lc: #2b9bff; } .lg-b-dice, .lg-dice { --lc: #8b6bff; } .lg-b-roulette, .lg-roulette { --lc: #f2b63b; }
.lk-buy { --lc: #e0a42e; } .lk-gift { --lc: #ff6bd5; } .lk-rank { --lc: #4fd3ff; }
.lv-card .lv-art { --lc: inherit; }
.lv-card { width: 196px; height: 74px; }
.lv-body { gap: 1px; }
.lv-line { flex-direction: column; align-items: flex-start; gap: 0; }
.lv-line em { max-width: 100%; line-height: 1.15; }
.lv-line small { max-width: 100%; line-height: 1.2; }
.lv-amt { font-size: 16px; }
.lv-art { width: 54px; height: 54px; }
.lv-art img { width: 50px; height: 50px; }
.lv-empty { height: 74px; }

/* ===== Кейсы ===== */
.nav-free { position: absolute; top: 1px; left: 50%; margin-left: 4px; font-style: normal; font-size: 8px; font-weight: 900; letter-spacing: .04em; padding: 2px 5px; border-radius: 6px; color: #2a1600; background: linear-gradient(180deg, #ffe08a, #f2b63b); box-shadow: 0 0 8px rgba(242,182,59,.6); }
.nav-btn { font-size: 9.5px; }
.cs-head { margin: 4px 2px 12px; display: flex; flex-direction: column; gap: 3px; }
.cs-head b { font-family: var(--f-display, inherit); font-size: 26px; color: #fff; }
.cs-head small { font-size: 12px; color: #a99fe0; }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 12px; }

/* окно кейса */
#case-m h2 { display: flex; align-items: center; justify-content: space-between; }
.cm-hero { display: flex; justify-content: center; padding: 6px 0 10px; background: radial-gradient(50% 60% at 50% 50%, color-mix(in srgb, var(--ca) 40%, transparent), transparent 70%); }

.cm-open { width: 100%; }
.cm-sub { margin: 14px 2px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #cfc6ff; }
.cm-note { font-size: 11px; color: #8f86c4; margin-top: 10px; text-align: center; }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pz { --rc: #6b6590; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, #1d1450), #140d36); border: 1.5px solid color-mix(in srgb, var(--rc) 70%, transparent); overflow: hidden; }
.pz::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.pz.r1 { --rc: #8fa0c8; } .pz.r2 { --rc: #4f9bff; } .pz.r3 { --rc: #a35cff; } .pz.r4 { --rc: #ff4fa8; } .pz.r5 { --rc: #ffc94a; }
.pz-art { height: 52px; display: flex; align-items: center; justify-content: center; }
.pz-chip { width: 46px; height: 46px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.pz-back { display: block; width: 34px; height: 50px; border-radius: 4px; background: center/cover; border: 1.5px solid #fff; box-shadow: 0 3px 6px rgba(0,0,0,.4); }
.pz-frame { width: 50px; height: 50px; object-fit: contain; }
.pz-face { display: flex; --card-w: 34px; --card-h: 48px; }
.pz-face .card { width: 34px; height: 48px; }
.pz b { font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pz small { font-size: 10px; color: rgba(255,255,255,.6); }
/* прокрутка */
.cs-strip-wrap { position: relative; overflow: hidden; margin: 8px -4px 12px; padding: 10px 0; border-radius: 16px; background: rgba(0,0,0,.25); -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.cs-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, #ffe08a, #f2b63b); box-shadow: 0 0 12px #f2b63b; z-index: 3; }
.cs-marker::before, .cs-marker::after { content: ''; position: absolute; left: 50%; margin-left: -7px; border: 7px solid transparent; }
.cs-marker::before { top: 0; border-top-color: #ffd56b; } .cs-marker::after { bottom: 0; border-bottom-color: #ffd56b; }
.cs-strip { display: flex; gap: 8px; will-change: transform; padding-left: 4px; }
.pz.st { flex: 0 0 96px; }
.pz.st small { display: none; }
.pz.st.win.lit { transform: scale(1.06); box-shadow: 0 0 22px var(--rc); transition: transform .3s, box-shadow .3s; }
.cs-result { min-height: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cs-result .csr-art { transform: scale(1.4); margin: 14px 0 10px; animation: pop .5s cubic-bezier(.2,1.5,.4,1); }
.cs-result b { font-size: 22px; color: #4dff8f; text-shadow: 0 0 14px rgba(77,255,143,.35); }
.cs-result small { font-size: 12px; color: #cfc6ff; }
.cs-result .btn { margin-top: 8px; min-width: 160px; }
.lk-case { --lc: #f2b63b; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

.pz-tg { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.05) 60%), color-mix(in srgb, var(--rc) 45%, #2a1c70); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 60%, transparent); }
.cs-result .pz-tg { --rc: #ffc94a; }

/* ===== Заработок ===== */
.nav-earn i { position: relative; }
.nav-earn .nav-ic { filter: drop-shadow(0 0 6px rgba(77,255,143,.5)); }
.nav-earn.active span { color: #4dff8f; }

.earn-bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-bottom: 10px;
  background: linear-gradient(120deg, rgba(48,33,110,.85), rgba(28,20,70,.85)); border: 1px solid rgba(77,255,143,.3); }
.earn-bal > div { display: flex; flex-direction: column; }
.earn-bal small { font-size: 12px; color: #a99fe0; }
.earn-bal b { font-size: 30px; font-weight: 900; color: #4dff8f; text-shadow: 0 0 14px rgba(77,255,143,.3); line-height: 1.1; }
.earn-bal span { font-size: 11px; color: #8f86c4; }
.earn-bal .btn { padding: 11px 22px; font-size: 15px; }

  
 

.et { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: linear-gradient(120deg, rgba(70,48,160,.6), rgba(36,24,84,.7)); border: 1px solid rgba(124,104,230,.25); }
.et.done { opacity: .6; }

.earn-rules { font-size: 11px; color: #8f86c4; margin: 14px 2px 10px; line-height: 1.4; }
 .earn-bal .btn:disabled { opacity: .4; filter: grayscale(.6); }

/* ===== Заработок v2 (как лента офферов) ===== */
.eo-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.eo { --oc: #8f7bff; display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 14px 14px 14px 16px; border-radius: 22px; cursor: pointer;
  background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--oc) 22%, transparent), transparent 70%), linear-gradient(120deg, #22195a, #170f3d);
  border: 1.5px solid color-mix(in srgb, var(--oc) 55%, transparent); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.eo:active { transform: scale(.985); }
.eo-ic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--oc) 90%, #fff 10%), color-mix(in srgb, var(--oc) 55%, #000)); box-shadow: 0 6px 14px color-mix(in srgb, var(--oc) 35%, transparent); }
.eo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eo-t b { font-family: var(--f-display, inherit); font-size: 19px; line-height: 1.12; color: #fff; }
.eo-t small { font-size: 12px; color: rgba(255,255,255,.6); }
.eo-pill { flex: 0 0 auto; padding: 8px 12px; border-radius: 14px; font-weight: 900; font-size: 18px; color: color-mix(in srgb, var(--oc) 60%, #fff); white-space: nowrap;
  background: color-mix(in srgb, var(--oc) 16%, rgba(0,0,0,.25)); border: 1px solid color-mix(in srgb, var(--oc) 45%, transparent); }
.eo-pill small { font-size: 12px; font-weight: 700; opacity: .85; }
.eo-pill.done { font-size: 13px; color: #4dff8f; border-color: rgba(77,255,143,.4); background: rgba(77,255,143,.08); }
.eo-tg { --oc: #2ea6ff; } .eo-ch { --oc: #ff4f7a; } .eo-ref { --oc: #f2b63b; } .eo-play { --oc: #a35cff; }
.ei-card { padding: 16px; border-radius: 22px; background: linear-gradient(170deg, #22195a, #170f3d); border: 1px solid rgba(160,140,255,.25); }
.ei-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ei-head img { width: 54px; height: 54px; object-fit: contain; }
.ei-head b { font-size: 20px; color: #fff; }
.ei-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ei-row span { font-size: 14px; color: #cfc6ff; }
.ei-row b { font-size: 17px; font-weight: 900; color: #a99bff; white-space: nowrap; }
.ei-row b.ok { color: #4dff8f; font-size: 14px; }
.ei-btns { display: flex; gap: 8px; margin-top: 14px; }
.ei-btns .btn.big { flex: 1; }
.ei-meta { font-size: 12px; color: #8f86c4; margin-top: 10px; text-align: center; } .ei-meta b { color: #fff; }
.earn-bal { margin-top: 12px; gap: 12px; }
.eb-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #4dff8f; background: rgba(77,255,143,.1); }
.earn-bal > div:nth-child(2) { flex: 1; min-width: 0; }
.earn-bal b { font-size: 26px; }
.eb-btns { display: flex; flex-direction: column; gap: 6px; }
.faq { border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, #22195a, #170f3d); border: 1px solid rgba(160,140,255,.2); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 15px; font-weight: 700; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '⌄'; font-size: 18px; color: #a99fe0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 16px 16px; font-size: 13px; line-height: 1.5; color: #cfc6ff; }
.eo-t b { font-size: 17px; }
.eo-t .eo-nick { font-size: 15px; font-weight: 800; color: #8fd0ff; }
@media (max-width: 370px) { .eo-pill { font-size: 15px; padding: 7px 9px; } .eo-ic { width: 48px; height: 48px; font-size: 26px; } }
.my-refs { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; cursor: pointer; text-align: left; font-family: inherit;
  background: linear-gradient(120deg, rgba(110,90,255,.45), rgba(40,26,110,.8)); border: 1px solid rgba(160,140,255,.45); color: #fff; }
.my-refs .mr-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,255,255,.12); flex: 0 0 auto; }
.my-refs div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.my-refs b { font-size: 16px; } .my-refs small { font-size: 12px; color: #cfc6ff; }
.my-refs i { font-style: normal; font-size: 26px; color: #cfc6ff; }
.mr-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mr-sum > div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: rgba(48,33,110,.6); border: 1px solid rgba(124,104,230,.25); }
.mr-sum b { font-size: 18px; color: #fff; } .mr-sum > div:last-child b { color: #4dff8f; }
.mr-sum small { font-size: 11px; color: #a99fe0; }
.mr-sort { margin-bottom: 10px; }
#mr-list { max-height: 52dvh; overflow-y: auto; }
.mr-earn { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.mr-earn b { color: #4dff8f; font-weight: 800; } .mr-earn small { font-size: 10px; color: #8f86c4; }

/* ===== Кейсы v2 ===== */
.cs-sec { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #cfc6ff; margin: 14px 2px 8px; display: flex; align-items: center; gap: 8px; }
.cs-sec::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #ffd56b, #ff6bd5); }
.cases-grid { display: block; }
.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

 
 
 

/* окно: витрина и плитки подарков в стиле Telegram */
.cm-subt { text-align: center; font-size: 12px; color: #a99fe0; margin: -4px 0 4px; }
.cm-hero { height: 150px; align-items: center; }
  
.pz-g { background: linear-gradient(180deg, #2c2366, #1a1244); }
.pz-g .pz-tg { width: auto; height: auto; background: none; box-shadow: none; font-size: 42px; border-radius: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.pz-star { font-size: 12px !important; font-weight: 800; color: #8a5a00 !important; padding: 2px 9px; border-radius: 10px; background: linear-gradient(180deg, #fff3c4, #ffd56b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.cs-result .pz-tg { font-size: 56px; width: auto; height: auto; background: none; box-shadow: none; }

/* кейсы: без постоянной анимации — спокойно для глаз */

/* ---- кейсы v3: группы и секретный кейс ---- */
.cs-sec small { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #9f94d8; margin-left: 2px; }

/* ---- кубик как 🎲 в Telegram ---- */
.d3 { --s: 84px; position: relative; width: var(--s); height: var(--s); perspective: 600px; }
.d3.sm { --s: 46px; } .d3.big { --s: 96px; }
.d3.empty { display: flex; align-items: center; justify-content: center; border-radius: 22%; border: 2px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.d3q { color: rgba(255,255,255,.6); font-weight: 900; font-size: calc(var(--s) * .42); }
.d3tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-28deg); }
.d3c { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.d3f { position: absolute; inset: 0; border-radius: 20%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 16%; gap: 4%;
  background: radial-gradient(120% 120% at 30% 25%, #ffffff 0%, #f3f1f8 45%, #d9d5e6 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 -3px 8px rgba(80,60,140,.18); backface-visibility: hidden; }
.d3f i { border-radius: 50%; place-self: center; width: 78%; height: 78%; }
.d3f i.on { background: radial-gradient(circle at 40% 35%, #4a4a58, #111118 70%); box-shadow: inset 0 2px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.7); }
.d3f.f1 { transform: translateZ(calc(var(--s) / 2)); }
.d3f.f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.d3f.f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.d3f.f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.d3f.f2 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.d3f.f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.d3shadow { position: absolute; left: 8%; right: 8%; bottom: -14%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.d3.roll .d3c { animation: d3spin 1.6s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--del, 0ms); }
.d3.roll .d3tilt { animation: d3hop 1.6s ease-out both; animation-delay: var(--del, 0ms); }
.d3.roll .d3shadow { animation: d3sh 1.6s ease-out both; animation-delay: var(--del, 0ms); }
@keyframes d3spin { from { transform: rotateX(calc(var(--rx) + 900deg)) rotateY(calc(var(--ry) + 720deg)) rotateZ(180deg); } to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0deg); } }
@keyframes d3hop { 0% { transform: translateY(-60%) rotateX(-22deg) rotateY(-28deg); } 35% { transform: translateY(0) rotateX(-22deg) rotateY(-28deg); } 55% { transform: translateY(-22%) rotateX(-22deg) rotateY(-28deg); } 75%, 100% { transform: translateY(0) rotateX(-22deg) rotateY(-28deg); } }
@keyframes d3sh { 0% { opacity: .2; transform: scale(.6); } 35% { opacity: 1; transform: scale(1); } 55% { opacity: .5; transform: scale(.8); } 75%, 100% { opacity: 1; transform: scale(1); } }
.dice-p .dice-row { min-height: 56px; align-items: center; justify-content: center; }
.dice-me .dice-row { min-height: 112px; align-items: center; justify-content: center; }
.d3core { position: absolute; inset: 3%; background: #d9d5e6; border-radius: 8%; }
.d3core.x { transform: rotateY(90deg); } .d3core.y { transform: rotateX(90deg); }
.dice-p .dice-row { margin: 8px 0 4px; }
.dice-p .dn { position: relative; z-index: 2; }
/* ================= КЕЙСЫ v4: премиальные карточки с отрисованными кейсами ================= */
#s-cases .cs-head b { font-size: 30px; letter-spacing: -.02em; background: linear-gradient(180deg, #fff 30%, #d9cbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#s-cases .cs-head small { color: #a99ee0; }
.cases-grid .cs-sec { margin: 18px 2px 10px; font-size: 12px; letter-spacing: .1em; color: #e6deff; }
.cases-grid .cs-sec::before { width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ffd56b, #ff6bd5); }
.cases-grid .cs-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.14), transparent); }
.cases-grid .cs-grid2, .cases-grid .cs-row { gap: 10px; }

/* приветственный — широкий баннер */

/* окно кейса */

.cs-hero-row { margin-top: 12px; }
/* кейсы-картинки */

.p-live { background: radial-gradient(80% 120% at 100% 50%, rgba(255,120,200,.35), transparent 60%), linear-gradient(120deg, #3b0d52 0%, #8a1a6e 55%, #d63a7a 100%); }
.p-live .ps-title { font-size: 21px; line-height: 1.08; max-width: 210px; }
.p-live .ps-kicker { background: rgba(61,255,138,.18); color: #7dffb0; }
.p-live .ps-kicker::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 6px #3dff8a; margin-right: 6px; vertical-align: 1px; }
.p-live .ps-text { position: relative; z-index: 2; max-width: 62%; }
.p-live .ps-title { white-space: normal; max-width: none; }
.p-live .ps-sub { white-space: normal; }
.p-live .ps-title { font-size: 19px; margin-top: 2px; } .p-live .ps-sub { font-size: 12px; }
/* баннер-картинка на весь слайд */
.pslide.ps-bg { background: var(--psbg) 72% 50% / cover no-repeat, #1a0b33 !important; }
.pslide.ps-bg::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(14,6,34,.92) 0%, rgba(14,6,34,.75) 38%, rgba(14,6,34,0) 66%); pointer-events: none; }
.pslide.ps-bg::after { display: none; }
.pslide.ps-bg .ps-text { position: relative; z-index: 1; max-width: 60%; }
.p-live.ps-bg .ps-kicker { background: rgba(61,255,138,.14); border: 1px solid rgba(61,255,138,.35); color: #8affb8; }
.p-live.ps-bg .ps-title { font-size: 21px; line-height: 1.06; background: linear-gradient(180deg, #ffffff 40%, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.p-live.ps-bg .ps-sub { color: #e6dcff; font-size: 12.5px; }
.p-live.ps-bg .ps-btn { background: linear-gradient(180deg, #ffe58a, #f2b63b); color: #2a1600; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(242,182,59,.35); }
.pslide.ps-bg { box-shadow: 0 0 0 1px rgba(255,214,110,.28), 0 12px 28px rgba(0,0,0,.45); }
/* выделение «живыми игроками» */
.p-live.ps-bg .ps-sub { display: inline-block; margin-top: 8px; padding: 7px 12px 7px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.25;
  background: linear-gradient(90deg, rgba(61,255,138,.16), rgba(61,214,255,.08) 70%, transparent); border-left: 3px solid #3dff8a; box-shadow: inset 0 0 0 1px rgba(61,255,138,.18); }
.ps-hl { font-style: normal; font-weight: 900; position: relative; white-space: nowrap;
  background: linear-gradient(90deg, #8affb8, #4de8ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(61,255,138,.45)); }
.ps-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #3dff8a, #4de8ff); box-shadow: 0 0 6px rgba(61,255,138,.7); }
/* ===== призы в кейсе v2 ===== */
.pz-grid { gap: 10px; }
.pz { --rc: #8fa0c8; aspect-ratio: .86; justify-content: space-between; padding: 10px 6px 9px; border-radius: 16px; gap: 4px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 40%, color-mix(in srgb, var(--rc) 38%, transparent), transparent 72%), linear-gradient(180deg, #241860, #150d3a) !important;
  border: 1px solid color-mix(in srgb, var(--rc) 45%, rgba(255,255,255,.06)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 14px rgba(0,0,0,.3); }
.pz::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rc), transparent); }
.pz::after { left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
.pz-art { height: 70px; width: 100%; flex: 1; }
.pz-gimg { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.pz-chip { width: 58px; height: 58px; }
.pz-back { width: 40px; height: 58px; }
.pz-frame { width: 62px; height: 62px; }
.pz b { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 10px; background: rgba(8,4,26,.55); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.pz .pz-star { font-size: 12px !important; color: #3a2400 !important; background: linear-gradient(180deg, #ffe58a, #f2b63b) !important; border: 0 !important; box-shadow: 0 2px 6px rgba(242,182,59,.35); }
.pz.st { flex: 0 0 96px; aspect-ratio: auto; height: 124px; }
.cm-sub { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #e6deff; display: flex; align-items: center; gap: 8px; margin: 14px 2px 10px; }
.cm-sub::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.16), transparent); }
.csr-art .pz-gimg { width: 84px; height: 84px; }

.lv-gift { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.pz .pz-star { color: #ffd45e !important; background: rgba(8,4,26,.6) !important; border: 1px solid rgba(255,212,94,.45) !important; box-shadow: 0 0 8px rgba(255,212,94,.18); }
/* ===== кошелёк: пополнение / вывод / история ===== */
.wl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 12px 0 10px; border-radius: 16px; background: rgba(8,4,26,.5); border: 1px solid rgba(255,255,255,.08); }
.wl-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; font-size: 14.5px; color: #b9b0e8; background: transparent; cursor: pointer; }
.wl-tabs button i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.08); }
.wl-tabs button.on[data-wt="dep"] { color: #062a1a; background: linear-gradient(180deg, #6dffb0, #22c77a); box-shadow: 0 4px 14px rgba(34,199,122,.35); }
.wl-tabs button.on[data-wt="wd"] { color: #fff; background: linear-gradient(180deg, #ff7ab0, #d0336f); box-shadow: 0 4px 14px rgba(208,51,111,.35); }
.wl-tabs button.on i { background: rgba(255,255,255,.35); }
.wl-mid { margin-bottom: 12px; }
.wl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.wl-s { position: relative; overflow: hidden; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #221656, #150d3a); border: 1px solid rgba(255,255,255,.08); }
.wl-s::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; }
.wl-s.dep::before { background: linear-gradient(90deg, transparent, #3dff8a, transparent); }
.wl-s.wd::before { background: linear-gradient(90deg, transparent, #ff6bab, transparent); }
.wl-s small { display: block; font-size: 11px; color: #a99ee0; }
.wl-s b { display: block; font-size: 20px; font-weight: 900; color: #fff; margin: 2px 0; font-variant-numeric: tabular-nums; }
.wl-s.dep b { color: #7dffb0; } .wl-s.wd b { color: #ff9cc6; }
.wl-s span { font-size: 11px; color: rgba(225,215,255,.55); }
.wl-list { border-radius: 16px; background: rgba(8,4,26,.4); border: 1px solid rgba(255,255,255,.07); padding: 4px 10px; }
.wl-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a99ee0; padding: 8px 2px 4px; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.wl-ic { font-style: normal; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.wl-row.dep .wl-ic { color: #3dff8a; background: rgba(61,255,138,.12); box-shadow: inset 0 0 0 1px rgba(61,255,138,.3); }
.wl-row.wd .wl-ic { color: #ff7ab0; background: rgba(255,107,171,.12); box-shadow: inset 0 0 0 1px rgba(255,107,171,.3); }
.wl-t { flex: 1; min-width: 0; }
.wl-t b { display: block; font-size: 13.5px; color: #fff; }
.wl-t small { font-size: 11px; color: rgba(225,215,255,.55); }
.wl-a { text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.wl-a small { display: block; font-size: 10px; font-weight: 600; color: #ffd45e; }
.wl-row.dep .wl-a { color: #7dffb0; } .wl-row.wd .wl-a { color: #ff9cc6; }
.wl-row.failed .wl-a { color: rgba(255,255,255,.35); text-decoration: line-through; }
.wl-st { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.wl-st.p { color: #ffd45e; background: rgba(255,212,94,.12); } .wl-st.f { color: #ff8a8a; background: rgba(255,90,90,.12); }
.wl-empty { padding: 14px 0 12px; text-align: center; font-size: 12.5px; color: rgba(225,215,255,.5); border-top: 1px solid rgba(255,255,255,.06); }

.wd-quick { grid-template-columns: repeat(3, 1fr) !important; display: grid; }

/* ===== кошелёк v2 ===== */
.wl-title { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--f-display, inherit); font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: #fff; margin: 6px 2px 12px; }
.wl-bal { font-size: 15px; font-weight: 800; color: #7dffb0; font-family: inherit; letter-spacing: 0; }
.wl-tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.wl-tabs3 button { height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: #c9c0f5; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.wl-tabs3 button.on { color: #fff; border-color: transparent; background: linear-gradient(90deg, #6d5cff, #a35cff); box-shadow: 0 6px 18px rgba(120,90,255,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.wm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.wm-grid.one { grid-template-columns: 1fr; }
.wm-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(180deg, #221656, #150d3a); border: 1px solid rgba(255,255,255,.08); }
.wm-tile.on { background: radial-gradient(90% 90% at 50% 20%, rgba(61,255,138,.22), transparent 70%), linear-gradient(160deg, #1f5a54, #3a2a8a); border-color: rgba(61,255,138,.6); box-shadow: 0 0 18px rgba(61,255,138,.25); }
.wm-grid.one .wm-tile { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; text-align: left; }
.wm-grid.one .wm-tile b { font-size: 16px; } .wm-grid.one .wm-tile small { margin-left: auto; }
.wm-tile b { font-size: 15px; font-weight: 800; }
.wm-tile small { font-size: 11px; color: rgba(225,215,255,.6); }
.wm-ics { display: flex; gap: 4px; align-items: center; height: 34px; }
.wm-coin { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.3), 0 4px 10px rgba(0,0,0,.3); }
.wm-coin.sm { width: 24px; height: 24px; font-size: 13px; margin-left: -10px; }
.c-usdt { background: linear-gradient(180deg, #3ad6a4, #138a66); } .c-ton { background: linear-gradient(180deg, #4fb5ff, #1a6fd6); font-size: 14px; }
.c-btc { background: linear-gradient(180deg, #ffb84a, #e07a0a); } .c-eth { background: linear-gradient(180deg, #a7a9ff, #5a5fd6); }
.wm-badge { position: absolute; top: -7px; right: 8px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 900; color: #062a1a; background: linear-gradient(180deg, #7dffb0, #2fd47e); box-shadow: 0 2px 8px rgba(47,212,126,.4); }

 

.wb-h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: #fff; margin: 18px 2px 10px; }
.wb-q { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 900; cursor: pointer; }
.wb-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -2px; scrollbar-width: none; }
.wb-track::-webkit-scrollbar { display: none; }
.wb-card { flex: 0 0 46%; scroll-snap-align: start; padding: 8px; border-radius: 20px; background: linear-gradient(180deg, #221656, #150d3a); border: 1px solid rgba(255,255,255,.08); }
.wb-art { position: relative; height: 120px; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding-bottom: 12px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(124,104,255,.45), transparent 70%), linear-gradient(180deg, #2c3a9a, #1d2470); border: 1px solid rgba(124,140,255,.35); }
.wb-art img { height: 80px; width: 80px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.wb-bar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.35); overflow: hidden; }
.wb-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6d8cff, #b07aff); min-width: 6px; }
.wb-card.got .wb-bar i { background: linear-gradient(90deg, #3dff8a, #22c77a); }
.wb-ok { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #062a1a; background: #3dff8a; }
.wb-at { font-size: 12px; color: rgba(225,215,255,.6); margin: 8px 4px 2px; }
.wb-at b { font-size: 20px; color: #fff; font-weight: 900; margin-left: 2px; }
.wb-rw { margin: 0 4px 4px; } .wb-rw b { display: block; font-size: 14px; color: #ffd45e; } .wb-rw small { font-size: 11px; color: rgba(225,215,255,.6); }
.wb-card.got { opacity: .75; }
.wb-help { font-size: 13.5px; line-height: 1.5; color: #e6deff; }
.wd-box { padding: 14px; border-radius: 22px; margin-bottom: 12px; background: linear-gradient(180deg, #1e1550, #140c36); border: 1px solid rgba(255,255,255,.08); }
.wd-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wd-top b { font-size: 18px; color: #fff; } .wd-top span { font-size: 13px; color: rgba(225,215,255,.65); } .wd-top em { font-style: normal; font-weight: 800; color: #7dffb0; }
.wd-input { display: flex; align-items: center; padding: 0 18px; height: 76px; border-radius: 20px; background: rgba(8,4,26,.55); border: 1px solid rgba(255,255,255,.1); }
.wd-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 38px; font-weight: 900; }
.wd-input input::placeholder { color: rgba(225,215,255,.35); }
.wd-input span { font-size: 34px; font-weight: 900; color: rgba(225,215,255,.6); }
.wd-quick { margin-top: 10px; }
.wd-state { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(8,4,26,.45); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: rgba(225,215,255,.75); }
.wd-state b { font-size: 16px; color: #fff; } .wd-state b.ok { color: #7dffb0; } .wd-state em { font-style: normal; font-weight: 900; color: #fff; }
.wd-state.ok { border-color: rgba(61,255,138,.35); }
.wd-fee { display: flex; justify-content: space-between; margin: 12px 2px 10px; font-size: 13px; color: rgba(225,215,255,.65); } .wd-fee b { color: #fff; }
.wd-go { width: 100%; height: 52px; border-radius: 18px; font-size: 16px; font-weight: 900; color: #fff; border: 0; background: linear-gradient(90deg, #6d5cff, #a35cff); box-shadow: 0 8px 20px rgba(120,90,255,.4); }
.wd-go:disabled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); box-shadow: none; }
.wl-wager { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; color: #ffe7a8; background: rgba(255,212,94,.1); border: 1px solid rgba(255,212,94,.3); }
/* эмодзи подарка, пока грузится оригинал из Telegram */

.wb-art .wb-img { height: 80px; width: 80px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

/* ================= КЕЙСЫ v5: каталог с разделами ================= */
.cs-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.cs-chips { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cs-chips::-webkit-scrollbar { display: none; }
.cs-chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: #c9c0f5; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cs-chip.on { color: #fff; border-color: transparent; background: linear-gradient(90deg, #6d5cff, #a35cff); box-shadow: 0 4px 12px rgba(120,90,255,.35); }
.cs-sort { flex: 0 0 34px; height: 34px; border-radius: 17px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: #c9c0f5; font: inherit; font-weight: 900; cursor: pointer; }
.cs-sort.on { color: #fff; background: rgba(120,90,255,.35); }
.cs-sec4 { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 10px; }
.cs-sec4 b { font-family: var(--f-display, inherit); font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.cs-sec4 small { font-size: 12px; color: rgba(225,215,255,.5); }
.cs-all { border: 0; background: none; color: #b9b0e8; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.cs-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc4 { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; isolation: isolate;
  background: linear-gradient(180deg, #221656, #150d3a); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.cc4:active { transform: scale(.97); }
.cc4-art { position: relative; height: 150px; margin: 8px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 30%, color-mix(in srgb, var(--ca) 55%, transparent), transparent 72%), linear-gradient(160deg, color-mix(in srgb, var(--ca) 35%, #1a1040), color-mix(in srgb, var(--cb) 70%, #0d0828)); }
.cc4-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 100%, rgba(0,0,0,.45), transparent 70%); }
.cc4-ic { position: absolute; left: 10px; top: 8px; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); z-index: 2; }
.cc4-p { position: absolute; display: grid; place-items: center; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.cc4-p .pz-gimg, .cc4-p .pz-chip { width: 100%; height: 100%; object-fit: contain; }

.cc4-p.p2 { width: 54px; height: 54px; right: 10px; bottom: 10px; transform: rotate(12deg); z-index: 2; opacity: .95; }
.cc4-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 12px 12px; }
.cc4-t { min-width: 0; }
.cc4-t b { display: block; font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc4-t small { display: block; font-size: 10.5px; color: rgba(225,215,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc4-price { flex: 0 0 auto; padding: 7px 10px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #6d5cff, #a35cff); box-shadow: 0 4px 10px rgba(120,90,255,.3); }
.cc4-price.free { background: linear-gradient(90deg, #3dff8a, #22c77a); color: #062a1a; }
.cc4-price.off { background: rgba(255,255,255,.08); color: #b9b0e8; box-shadow: none; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.cc4-tag { position: absolute; top: 14px; right: 14px; z-index: 4; font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border-radius: 8px; color: #2a1600; background: linear-gradient(180deg, #ffe58a, #f2b63b); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cc4-tag.t2 { color: #fff; background: linear-gradient(180deg, #ff6bd5, #a0237a); }
.cc4.locked .cc4-art { filter: saturate(.6) brightness(.8); }

 
.sub-m { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sub-m .sub-ic { font-size: 56px; line-height: 1; }
.sub-m h2 { margin: 0; } .sub-m p { margin: 0; color: #cfc6ff; font-size: 13.5px; line-height: 1.45; }
.sub-m .btn { width: 100%; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.cc4-t b { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; }

/* обложки кейсов v6 — тёмная карточка, обложка во всю ширину */
.cc4 { background: #1b1a26; border-color: rgba(255,255,255,.06); }
.cc4-art.cov { height: auto; aspect-ratio: 1; background: #16151f; }
.cc4-art.cov::before { display: none; }
.cc4-cov { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc4-foot { padding: 4px 12px 12px; }

.cc4-price.free { padding: 7px 9px; font-size: 12px; }

/* баннер «Бонусы к пополнению» */
.p-dep .ps-text { position: relative; z-index: 2; max-width: 60%; }
.p-dep .ps-kicker { background: rgba(255,214,90,.18); color: #ffd65a; }
.p-dep .ps-title { white-space: normal; max-width: none; font-size: 20px; line-height: 1.1; }
.p-dep .ps-sub { white-space: normal; font-size: 12px; }
.p-dep.ps-bg { background-position: 80% 50% !important; }

/* NFT-подарки в кейсах */
.pz.pz-n { position: relative; background: linear-gradient(180deg, rgba(64,190,255,.22), rgba(140,80,255,.18)); border-color: rgba(120,200,255,.55); }
.pz-nb { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 9px; font-weight: 900; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; color: #fff; background: linear-gradient(90deg, #2bb3ff, #8a5cff); }
.pz-nft { filter: drop-shadow(0 6px 12px rgba(80,160,255,.45)); }

/* робот выглядывает снизу баннера и машет рукой */
.ps-robot { position: absolute; z-index: 3; right: 8px; bottom: -14px; width: 58px; aspect-ratio: 835 / 980; pointer-events: none; animation: pr-peek 3.2s ease-in-out infinite; }
.ps-robot img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 12px rgba(10,0,30,.55)); }
.pr-arm { transform-origin: 50.4% 58.9%; animation: pr-wave 1.1s ease-in-out infinite; }
@keyframes pr-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
@keyframes pr-peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ps-robot, .pr-arm { animation: none; } }

/* баннер «Зови друзей» */
.p-fr .ps-text { position: relative; z-index: 2; max-width: 58%; }
.p-fr .ps-kicker { background: rgba(255,214,90,.18); color: #ffd65a; }
.p-fr .ps-title { white-space: normal; font-size: 24px; }
.p-fr .ps-sub { white-space: normal; font-size: 12px; }
.p-fr.ps-bg { background-position: 78% 50% !important; }

/* «Перестань проигрывать системе»: плашка с комиссией */
.ps-fee { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #2a1600; background: linear-gradient(180deg, #ffe58a, #f2b63b); box-shadow: 0 4px 12px rgba(242,182,59,.3); width: max-content; }
.ps-fee::before { content: '%'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2a1600; color: #ffd65a; font-size: 10px; }
.p-live.ps-bg .ps-title { font-size: 18px; }
.p-live.ps-bg .ps-sub { margin-top: 6px; padding: 5px 10px 5px 9px; font-size: 12px; }
.p-live .ps-fee { margin-top: 6px; font-size: 11.5px; padding: 3px 9px; }
.p-live .ps-kicker { margin-bottom: 2px; }
.p-live.ps-bg .ps-text { max-width: 54%; }
.p-live.ps-bg { background: var(--psbg) right -24px center / auto 100% no-repeat, #0f0a26 !important; }

/* ===== Карточки игр v3: арт Recraft V4.1 Pro во всю карточку, единый фиолетовый фон + свой акцент у каждой игры ===== */
.gcard.art { background: var(--art) center / cover no-repeat, #1a0f3d !important; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--acc) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.16) !important; }
.gcard.art::before { background: linear-gradient(180deg, transparent 45%, rgba(12,5,34,.85) 100%) !important; z-index: 0; }
.gcard.art::after { background: linear-gradient(125deg, transparent 25%, rgba(255,255,255,.08) 42%, transparent 60%) !important; z-index: 0; animation: none; }
.gcard.art .gc-icon { display: none; }
.gcard.art .gc-title, .gcard.art .gc-text, .gcard.art .gc-sub, .gcard.art .gc-tag { position: relative; z-index: 1; }
.gcard.art .gc-title { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.gcard.art.wide { background-position: right center !important; justify-content: flex-start; }
.gcard.art.wide::before { background: linear-gradient(90deg, rgba(12,5,34,.9) 0%, rgba(12,5,34,.55) 38%, transparent 62%) !important; }
.gcard.art.wide .gc-title { color: #fff; }
.gcard.art .gc-sub { color: rgba(240,232,255,.85); }
.gcard.art[data-g="durak"] { --art: url(img/games2/durak.webp?v=2); --acc: #4fd2ff; --bgc: #0b2a6b; }
.gcard.art[data-g="roulette"] { --art: url(img/games2/roulette.webp?v=2); --acc: #ffc94a; --bgc: #4a1580; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=3); --acc: #3ee6a0; --bgc: #0a3f2c; }
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=4); --acc: #ffa94a; --bgc: #6a2a20; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=3); --acc: #4fb8ff; --bgc: #0b2c6b; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=3); --acc: #3ef0d0; --bgc: #0a4a4a; }
.gcard.art .gc-title::after { content: ''; display: block; height: 3px; width: 28px; margin: 5px auto 0; border-radius: 3px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.gcard.art.wide .gc-title::after { margin-left: 0; }
.gcard.art.gold .gc-tag { margin-top: 6px; }
.gcard.art:not(.wide) { justify-content: flex-end !important; padding-bottom: 14px; } .gcard.art:not(.wide) .gc-title { margin-top: auto; }

/* баннер «Новые скины» */

/* v4: у каждой игры свой фон (зелёный, бирюзовый, синий — цвета доверия), затемнение под названием в цвет фона */
.gcard.art { background-color: var(--bgc) !important; }
.gcard.art::before { background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--bgc) 92%, #000) 100%) !important; }
.gcard.art.wide::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bgc) 88%, #000) 0%, color-mix(in srgb, var(--bgc) 50%, transparent) 36%, transparent 58%) !important; }
.gcard.art.wide { background-size: auto 100% !important; background-position: right -60px center !important; }
/* название вплотную к картинке: картинка крупнее и опущена к названию */
.gcard.art:not(.wide) { background-size: cover !important; background-position: center top !important; padding-bottom: 10px; }
.gcard.art:not(.wide)::before { background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bgc) 92%, #000) 100%) !important; }
.gcard.art .gc-title::after { margin-top: 3px; }
/* v5: палитра карточек — Дурак как баннеры (фиолетовый), 21 изумруд, КНБ маджента, Морской бой лазурь, Кубик бирюза, Рулетка янтарь */
.gcard.art[data-g="durak"] { --art: url(img/games2/durak.webp?v=5); --acc: #b98bff; --bgc: #2a1170; }
.gcard.art[data-g="roulette"] { --art: url(img/games2/roulette.webp?v=5); --acc: #ffd45a; --bgc: #6a2a05; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=5); --acc: #3ee6a0; --bgc: #064632; }
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=5); --acc: #ff6fd0; --bgc: #4a0f5e; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=5); --acc: #4fb8ff; --bgc: #0a2160; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=5); --acc: #3ef0d0; --bgc: #064848; }
.gcard.art.gold .gc-title { text-shadow: 0 2px 12px rgba(90,30,0,.7); }
.gcard.art.wide[data-g="roulette"] { background-position: right -10px center !important; }
/* v6: первые три игры в цвете баннеров (фиолетовый) с цветными акцентами */
.gcard.art[data-g="durak"] { --art: url(img/games2/durak.webp?v=7); --acc: #b98bff; --bgc: #22105e; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=6); --acc: #3ee6a0; --bgc: #22105e; }
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=6); --acc: #ff6fd0; --bgc: #22105e; }
.gcard.art.wide[data-g="durak"] { background-position: right -20px center !important; }
/* Дурак v8: половина красная, половина фиолетовая как баннеры, выделены масти */
.gcard.art[data-g="durak"] { --art: url(img/games2/durak.webp?v=8); --acc: #ff5a8a; --bgc: #6a0a24; }
.gcard.art.wide[data-g="durak"] { background-position: right -42px center !important; } .gcard.art.wide[data-g="durak"] .gc-sub { max-width: 150px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* КНБ v7: фиолетово-малиновый (между красно-фиолетовым Дураком и зелёным 21) */
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=7); --acc: #ff5fb0; --bgc: #3a1270; }
.gcard.art[data-g="rps"]:not(.wide) { background-size: cover !important; background-position: center top !important; }

/* ===== Ракета (crash) ===== */
.gcard.art[data-g="crash"] { --art: url(img/games2/crash.webp?v=4); --acc: #ffb14a; --bgc: #1a0b45; }
.gcard.art.wide[data-g="crash"] { background-position: right -30px center !important; }
.gcard.art[data-g="crash"] .gc-tag { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2a1600; background: linear-gradient(180deg, #ffe58a, #f2b63b); padding: 3px 9px; border-radius: 8px; }
.cr-hist { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.cr-hist::-webkit-scrollbar { display: none; }
.cr-hist span { flex: 0 0 auto; padding: 4px 9px; border-radius: 10px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.07); color: #cfc6ff; }
.cr-hist span.lo { color: #ff8aa0; background: rgba(255,80,120,.14); }
.cr-hist span.mid { color: #7dffb0; background: rgba(61,255,138,.14); }
.cr-hist span.hi { color: #ffd65a; background: rgba(255,214,90,.16); }
.cr-stage { position: relative; height: 230px; border-radius: 20px; overflow: hidden; background: radial-gradient(90% 80% at 70% 30%, rgba(120,80,255,.35), transparent 60%), linear-gradient(180deg, #1a0f45, #0e0828); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.35); }
#cr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cr-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 34px; pointer-events: none; text-align: center; }
.cr-mult { font-family: var(--f-display, inherit); font-size: 52px; font-weight: 900; color: #fff; letter-spacing: -.02em; text-shadow: 0 4px 18px rgba(0,0,0,.55), 0 0 24px rgba(160,120,255,.45); transition: color .2s; }
.cr-stage.flying .cr-mult { color: #fff; }
.cr-stage.crashed .cr-mult { color: #ff5a7a; text-shadow: 0 4px 18px rgba(0,0,0,.6), 0 0 28px rgba(255,80,120,.5); }
.cr-stage.betting .cr-mult { font-size: 34px; color: #cfc6ff; }
.cr-status { margin-top: 4px; font-size: 13px; font-weight: 700; color: rgba(230,222,255,.85); }
.cr-stage.crashed .cr-status { color: #ff9ab0; }
.cr-bank { position: absolute; left: 10px; top: 8px; font-size: 11px; font-weight: 700; color: rgba(225,215,255,.6); background: rgba(10,4,40,.45); padding: 3px 8px; border-radius: 8px; backdrop-filter: blur(6px); }
.cr-betbox { margin-top: 10px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.cr-autorow { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.cr-autorow label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #e6dcff; }
.cr-autorow input { width: 84px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-weight: 800; }
.cr-autohint { font-size: 11px; color: rgba(225,215,255,.5); line-height: 1.2; }
#cr-btn.cash { background: linear-gradient(180deg, #4dffa0, #19c46f); color: #04301a; box-shadow: 0 8px 22px rgba(25,196,111,.4); }
#cr-btn.cancel { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
#cr-btn[disabled] { opacity: .55; }
.cr-bets { display: flex; flex-direction: column; gap: 6px; }
.cr-row { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13px; }
.cr-row.me { background: rgba(120,90,255,.18); border: 1px solid rgba(160,130,255,.35); }
.cr-row.won { background: rgba(61,255,138,.1); }
.cr-row.lost { opacity: .55; }
.cr-row .av { width: 30px; height: 30px; border-radius: 50%; background: #3a2b7d center / cover; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.cr-row .nm { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-row .nm small { display: block; font-size: 10.5px; color: rgba(225,215,255,.5); font-weight: 600; }
.cr-row .bt { color: #cfc6ff; font-weight: 700; }
.cr-row .rs { font-weight: 800; min-width: 64px; text-align: right; }
.cr-row.won .rs { color: #7dffb0; } .cr-row.lost .rs { color: #ff8aa0; }
.cr-fair { margin-top: 10px; }
/* Ракета — того же размера и типографики, что Дурак */
.gcard.wide[data-g="crash"] { height: 190px; padding: 18px 8px 18px 20px; }
.gcard.wide[data-g="crash"] .gc-title { font-size: 34px; }
.gcard.wide[data-g="crash"] .gc-sub { font-size: 13px; max-width: 150px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
@media (max-width: 370px) { .gcard.wide[data-g="crash"] { height: 172px; } .gcard.wide[data-g="crash"] .gc-title { font-size: 28px; } }
/* Ракета: крупный бейдж «до ×100» */
.gcard.art[data-g="crash"] .gc-tag { font-size: 15px; padding: 5px 12px; border-radius: 10px; color: #04301a; background: linear-gradient(180deg, #8affc1, #2fe08a); box-shadow: 0 4px 14px rgba(47,224,138,.45); }
.gcard.art.wide[data-g="crash"] { background-position: right -20px center !important; }
.gcard.art.wide[data-g="crash"] .gc-sub { max-width: 140px; }
.gcard.art[data-g="crash"] { --acc: #ffd45a; }
.gcard.art[data-g="crash"] .gc-tag { color: #2a1600; background: linear-gradient(180deg, #fff1a8, #f2b63b); box-shadow: 0 4px 14px rgba(242,182,59,.5); }

/* «Мои призы» (NFT из кейсов) */

 

 
 .csr-nft .btn.small { padding: 7px 10px; font-size: 12px; }
 .csr-nft .btn[disabled] { opacity: .5; }
.csr-nft { display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px; }
.csr-note { display: block; opacity: .7; font-size: 11px; }

/* способы пополнения */
.dm-grid { grid-template-columns: 1fr 1fr !important; }
.dm-tile { position: relative; }
.dm-tile.locked { opacity: .55; filter: grayscale(.4); cursor: not-allowed; }
.dm-lock { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.45); color: #ffd65a; }
.dm-img { width: 30px; height: 30px; object-fit: contain; }
.wm-coin.c-star { background: linear-gradient(180deg, #ffe58a, #f2a23b); color: #5a2a00; }
.wm-coin.c-rub { background: linear-gradient(180deg, #7dffb0, #22c77a); color: #063a1e; }
.tp-m { display: flex; flex-direction: column; gap: 10px; }
.tp-sum { text-align: center; padding: 10px; border-radius: 14px; background: rgba(0,152,234,.12); border: 1px solid rgba(0,152,234,.35); }
.tp-sum b { display: block; font-size: 26px; color: #fff; } .tp-sum small { color: rgba(225,215,255,.7); }
.tp-or { text-align: center; font-size: 12px; color: rgba(225,215,255,.55); margin-top: 4px; }
.tp-f { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.tp-f span { grid-column: 1 / -1; font-size: 11px; color: rgba(225,215,255,.6); font-weight: 700; }
.tp-f code { font-size: 12px; color: #fff; word-break: break-all; }
.tp-f.warn { border: 1px solid rgba(255,214,90,.45); background: rgba(255,214,90,.08); } .tp-f.warn span { color: #ffd65a; }
.tp-f.warn code { font-size: 16px; font-weight: 800; letter-spacing: .06em; }
.tp-note { font-size: 11.5px; line-height: 1.4; color: rgba(225,215,255,.7); }

/* REAL-фишка (1 фишка = 1 ₽) */
.chip-ic.real { position: relative; width: 1em; height: 1em; min-width: 13px; min-height: 13px; margin: 0 0 0 .12em; vertical-align: -.14em; border-radius: 50%; background: url(img/chips/violet.webp) center / cover no-repeat; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.chip-ic.real.lg { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; }
.rate-strip { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(140,90,255,.22), rgba(60,200,255,.12)); border: 1px solid rgba(170,140,255,.35); }
.rate-strip .chip-ic { grid-row: 1 / 3; }
.rate-strip b { font-size: 15px; color: #fff; font-weight: 800; }
.rate-strip span { font-size: 11.5px; line-height: 1.3; color: rgba(230,222,255,.75); }
.csr-test { color: #ffd65a !important; font-weight: 700; }
#cr-bank[hidden] { display: none; }

/* LIVE: цвет по размеру выигрыша (1 — маленький … 5 — крупный) */
.lv-card.wt-1 { --lc: #2fe08a; } .lv-card.wt-2 { --lc: #3fb5ff; } .lv-card.wt-3 { --lc: #a46bff; } .lv-card.wt-4 { --lc: #ff4d6d; } .lv-card.wt-5 { --lc: #ffc94a; }
.lv-card[class*="wt-"] { border-color: color-mix(in srgb, var(--lc) 70%, transparent) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 26%, #160c3a), #120a30 70%) !important; box-shadow: 0 0 14px color-mix(in srgb, var(--lc) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.1) !important; }
.lv-card[class*="wt-"] .lv-amt { color: var(--lc) !important; text-shadow: 0 0 10px color-mix(in srgb, var(--lc) 55%, transparent) !important; }
.lv-card.wt-5 { animation: wtGold 2.2s ease-in-out infinite; }
@keyframes wtGold { 0%, 100% { box-shadow: 0 0 12px rgba(255,201,74,.35); } 50% { box-shadow: 0 0 22px rgba(255,201,74,.7); } }

/* бонус +5% к первому пополнению — компактная плашка над баннерами */
#welcome-banner { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 0 8px; padding: 0 8px 0 6px; border-radius: 12px; }
#welcome-banner.hidden { display: none !important; }
#welcome-banner .wb-gift { width: 30px; height: 30px; flex: 0 0 30px; }
#welcome-banner .wb-gift img { width: 100%; height: 100%; object-fit: contain; }
#welcome-banner .wb-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
#welcome-banner .wb-text b { font-size: 13px; }
#welcome-banner .wb-text small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
#welcome-banner .wb-timer { font-size: 13px; padding: 4px 7px; border-radius: 8px; }

/* v9: 21, Кубик, Морской бой, Рулетка — арт Higgsfield в стиле Дурака и Ракеты, у каждой игры свой цвет */
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=9); --acc: #3ee6a0; --bgc: #04261c; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=9); --acc: #c48bff; --bgc: #1c0a3a; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=9); --acc: #4fb8ff; --bgc: #061a45; }
.gcard.art[data-g="roulette"] { --art: url(img/games2/roulette.webp?v=9); --acc: #ffd45a; --bgc: #2a0c55; }
.gcard.art.wide[data-g="roulette"] { background-position: right -30px center !important; }

/* v10: квадратные карточки в единой фиолетово-золотой гамме (как Ракета/баннеры), картинка вплотную к названию */
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=10); --acc: #ff5fd0; --bgc: #1c0a45; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=10); --acc: #ffd45a; --bgc: #1c0a45; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=10); --acc: #c48bff; --bgc: #1c0a45; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=10); --acc: #6aa8ff; --bgc: #1c0a45; }
.gcard.art:not(.wide) { background-size: cover !important; background-position: center 30% !important; padding-bottom: 10px; }
.gcard.art:not(.wide)::before { background: linear-gradient(180deg, transparent 66%, color-mix(in srgb, var(--bgc) 94%, #000) 100%) !important; }
.gcard.art[data-g="rps"] .gc-text { display: none; }
/* v11: КНБ — красный, 21 — изумрудный */
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=11); --acc: #ff4d6a; --bgc: #3a0612; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=11); --acc: #3ee6a0; --bgc: #03261b; }
/* v12: последние 5 игр — спокойный арт, без «пестроты» */
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=12); --acc: #e0566c; --bgc: #2a070f; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=12); --acc: #3ccf92; --bgc: #031c14; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=12); --acc: #b48bff; --bgc: #150a2c; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=12); --acc: #5c9cff; --bgc: #061430; }
.gcard.art[data-g="roulette"] { --art: url(img/games2/roulette.webp?v=12); --acc: #f2c14e; --bgc: #170a2c; }
/* v13: КНБ/21/Кубик/Морской бой — средняя насыщенность; Рулетка — прежний кувшин */
.gcard.art[data-g="rps"] { --art: url(img/games2/rps.webp?v=13); --acc: #ff4d6a; --bgc: #3a0612; }
.gcard.art[data-g="blackjack"] { --art: url(img/games2/blackjack.webp?v=13); --acc: #3ee6a0; --bgc: #03261b; }
.gcard.art[data-g="dice"] { --art: url(img/games2/dice.webp?v=13); --acc: #c48bff; --bgc: #1c0a3a; }
.gcard.art[data-g="battleship"] { --art: url(img/games2/battleship.webp?v=13); --acc: #5cb0ff; --bgc: #061a45; }
.gcard.art[data-g="roulette"] { --art: url(img/games2/roulette.webp?v=13); --acc: #ffd45a; --bgc: #2a0c55; }

/* фишка REAL везде одна — голубая (img/ui/chip.webp?v=9), и в шапке слева от баланса тоже */
.chip-ic.real { background: url(img/ui/chip.webp?v=9) center / contain no-repeat !important; box-shadow: none !important; }

/* ===== Окно кейса v2: лента сверху (в покое и при прокрутке), «Что может выпасть» — плитки с названием и ценой в фишках ===== */
#case-m h2 { display: flex; align-items: center; gap: 10px; }
#case-m h2 .x { margin-left: auto; }
.cm-ic { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.cm-reel { position: relative; overflow: hidden; margin: 8px -6px 12px; padding: 12px 0; border-radius: 16px; background: rgba(0,0,0,.22);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cm-reel .cs-strip { display: flex; will-change: transform; }
.cm-reel .cs-marker { width: 0; margin-left: 0; background: none; box-shadow: none; }
.cm-reel .cs-marker::before, .cm-reel .cs-marker::after { border-width: 8px; margin-left: -8px; }
.cm-reel .cs-marker::before { border-top-color: #fff; } .cm-reel .cs-marker::after { border-bottom-color: #fff; }
.rt { position: relative; flex: 0 0 96px; margin: 0 4px; height: 112px; box-sizing: border-box; border-radius: 14px; padding: 6px 5px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.09); }
.rt.rare { background: linear-gradient(180deg, rgba(64,118,255,.42), rgba(38,58,170,.22)); border-color: rgba(120,165,255,.45); }
.rt.nft { background: linear-gradient(180deg, rgba(64,118,255,.55), rgba(38,58,170,.28)); border-color: rgba(140,185,255,.6); box-shadow: inset 0 0 18px rgba(120,170,255,.25); }
.rt-art { height: 66px; width: 100%; display: flex; align-items: center; justify-content: center; }
.rt-art img { max-height: 66px; max-width: 84px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.rt-art .pz-chip { width: 56px; height: 56px; }
.rt-n { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rt-p { font-size: 12.5px; font-weight: 800; color: #fff; }
.rt .pz-nb { position: absolute; top: 5px; left: 5px; z-index: 2; }
.rt.win.lit { box-shadow: 0 0 0 2px #ffd56b, 0 0 22px rgba(255,213,107,.55); transition: box-shadow .3s; }
.rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rt-grid .rt { margin: 0; height: 128px; align-items: flex-start; justify-content: flex-end; padding: 8px 9px; gap: 1px; }
.rt-grid .rt-art { position: absolute; left: 0; right: 0; top: 8px; height: 72px; }
.rt-grid .rt-art img { max-height: 72px; }
.cm-res .cs-result { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -4px 0 10px; text-align: center; }
.cm-res .cs-result b { font-size: 17px; }
.cm-res .cs-result small { color: rgba(255,255,255,.7); font-size: 12px; }

.rt-coin { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; }
.rt-coin img { width: 60px !important; height: 60px !important; max-width: none !important; max-height: none !important; }
.rt-coin b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; color: #1b4f86; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.cm-res .cs-result { min-height: 0 !important; padding: 0 !important; background: none !important; }
.cm-res:empty { display: none; }

/* ===== редкость призов (по шансу) и карточка приза ===== */
.rt.r1 { --rc: #8fa0c8; } .rt.r2 { --rc: #4f9bff; } .rt.r3 { --rc: #a35cff; } .rt.r4 { --rc: #ff4fa8; } .rt.r5 { --rc: #ffc94a; }
.rt.r2 { background: linear-gradient(180deg, rgba(64,118,255,.40), rgba(38,58,170,.20)); border-color: rgba(120,165,255,.45); }
.rt.r3 { background: linear-gradient(180deg, rgba(140,80,255,.42), rgba(70,30,160,.22)); border-color: rgba(170,120,255,.5); }
.rt.r4 { background: linear-gradient(180deg, rgba(255,80,170,.40), rgba(150,30,110,.22)); border-color: rgba(255,120,200,.5); }
.rt.r5 { background: linear-gradient(180deg, rgba(255,200,80,.40), rgba(150,100,20,.24)); border-color: rgba(255,215,120,.6); }
.rt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc, transparent); opacity: .9; }
.rt-grid .rt { height: 142px; cursor: pointer; }
.rt-grid .rt-n { white-space: normal; line-height: 1.15; max-height: 2.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-grid .rt-art { top: 6px; height: 68px; }
.rt-grid .rt-art img { max-height: 66px; }
.pm-top { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.pm-art { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.1); }
.pm-art img { max-width: 72px; max-height: 72px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.pm-art .rt-coin { width: 70px; height: 70px; } .pm-art .rt-coin img { width: 70px !important; height: 70px !important; } .pm-art .rt-coin b { font-size: 22px; }
.pm-name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.pm-name .pz-nb { position: static; display: inline-block; vertical-align: 2px; margin-left: 4px; }
.pm-rare { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 7px; }
.pm-rare i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, #8fa0c8); box-shadow: 0 0 8px var(--rc, #8fa0c8); }
.pm-rare.r1 { --rc: #8fa0c8; } .pm-rare.r2 { --rc: #4f9bff; } .pm-rare.r3 { --rc: #a35cff; } .pm-rare.r4 { --rc: #ff4fa8; } .pm-rare.r5 { --rc: #ffc94a; }
.pm-rows { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 4px 14px; }
.pm-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: 14px; }
.pm-rows > div:last-child { border-bottom: 0; }
.pm-rows span { color: rgba(255,255,255,.6); } .pm-rows b { font-size: 15px; text-align: right; }

/* ---------- профиль: подарки из кейсов и статистика по играм ---------- */
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-it { background: linear-gradient(180deg, rgba(60,36,140,.55), rgba(30,16,78,.75)); border: 1px solid rgba(160,130,255,.18); border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.pg-it img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.pg-it b { font-size: 11px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; }
.pg-it small { font-size: 11px; color: var(--gold, #ffd45e); font-weight: 700; }
.pg-act { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 4px; }
.pg-act .btn { width: 100%; padding: 5px 4px; font-size: 11px; }
.pg-act .btn[disabled] { opacity: .45; }
.gstats { display: flex; flex-direction: column; gap: 6px; }
.gs-row { display: grid; grid-template-columns: 34px 1fr auto auto 40px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(60,36,140,.5), rgba(30,16,78,.7)); border: 1px solid rgba(160,130,255,.15); font-size: 12px; }
.gs-row img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.gs-row b { font-size: 13px; color: #fff; }
.gs-row span { color: #cfc6ff; white-space: nowrap; }
.gs-row .gs-w { color: #7dffb0; }
.gs-row em { font-style: normal; font-weight: 800; color: var(--gold, #ffd45e); text-align: right; }

/* кнопка «Пополнить» в шапке вместо плюсика */
.coins .tb-dep { margin-left: 4px; padding: 5px 10px; border-radius: 14px; font-size: 12px; font-weight: 800; line-height: 1; color: #fff; white-space: nowrap; letter-spacing: .2px;
  background: linear-gradient(180deg, #34e89e, #12b878); box-shadow: 0 2px 8px rgba(18,184,120,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.coins:active .tb-dep { transform: scale(.96); }
@media (max-width: 360px) { .coins .tb-dep { padding: 5px 8px; font-size: 11px; } }

/* подробная статистика игры */
.gs-row { cursor: pointer; grid-template-columns: 34px 1fr auto auto 40px 10px; }
.gs-row:active { transform: scale(.985); }
.gs-chev { font-style: normal; color: #a99cff; font-size: 18px; line-height: 1; }
.gsm-ic { width: 28px; height: 28px; object-fit: contain; vertical-align: -6px; margin-right: 8px; border-radius: 6px; }
.gsm-grid { grid-template-columns: repeat(3, 1fr) !important; }
.gsm-grid .stat b { font-size: 15px; }
.gsm-grid .stat.pos b, .gl-list .pos { color: #4dffa6; }
.gsm-grid .stat.neg b, .gl-list .neg { color: #ff7a8a; }
.gl-list { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.gl-row { display: grid; grid-template-columns: 78px 74px 1fr auto; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(40,22,100,.55); font-size: 12px; }
.gl-t { color: #a99cff; font-size: 11px; }
.gl-r { font-weight: 700; }
.gl-x { color: #cfc6ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gl-row b { font-weight: 800; white-space: nowrap; }
.gsm-note { font-size: 11px; font-weight: 500; color: #a99cff; text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* непрочитанные личные сообщения */
.fr-av { position: relative; }
.fr-unread { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b6b; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #1b0c4a, 0 2px 8px rgba(255,59,107,.5); z-index: 2; }
.fr-row.has-unread { border-color: rgba(255,90,140,.55) !important; box-shadow: 0 0 0 1px rgba(255,90,140,.25), 0 4px 16px rgba(255,59,107,.18); }
.fr-last { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: #cfc6ff; }
.fr-last.new { color: #fff; font-weight: 700; }

/* подписи нижнего меню — белые; активная чуть ярче с мягким свечением */
.nav-btn { color: rgba(255,255,255,.82); }
.nav-btn span { font-weight: 600; }
.nav-btn.active { color: #fff; text-shadow: 0 0 10px rgba(69,217,255,.55); }

/* ===== «Привет, новичок!»: квадратное окно с заданиями ===== */
.modal-bg.center .modal:has(.wt-m) { width: min(92vw, 380px); max-width: min(92vw, 380px); min-height: min(92vw, 380px); box-sizing: border-box; display: flex; padding: 0; border-radius: 24px; overflow: hidden; }
.wt-m, .wt-m * { box-sizing: border-box; }
.wt-m { position: relative; flex: 1; min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 16px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, rgba(155,92,255,.45), transparent 70%), linear-gradient(180deg, #23125a, #120a30); }
.wt-m .x { position: absolute; top: 10px; right: 14px; font-size: 18px; color: #bfb5ea; cursor: pointer; }
.wt-head { font-size: 40px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(155,92,255,.6)); }
.wt-m h2 { margin: 0; font-size: 20px; }
.wt-m p { margin: 0; font-size: 12.5px; color: #cfc6ff; }
.wt-list { width: 100%; display: flex; flex-direction: column; gap: 7px; margin: 4px 0 auto; }
.wt-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: rgba(8,4,26,.45); box-shadow: inset 0 0 0 1px rgba(155,92,255,.3); text-align: left; }
.wt-row.done { box-shadow: inset 0 0 0 1px rgba(60,220,140,.45); background: rgba(20,60,40,.35); }
.wt-ic { font-size: 22px; width: 28px; text-align: center; flex: 0 0 auto; }
.wt-tx { flex: 1; min-width: 0; }
.wt-tx b { display: block; font-size: 13.5px; color: #fff; }
.wt-tx small { display: block; font-size: 11px; line-height: 1.3; color: #bfb5ea; }
.wt-row.done .wt-tx small { color: #7ff0b4; }
.wt-go { flex: 0 0 auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
.wt-ok { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #0b2a1a; background: linear-gradient(180deg, #7ff0b4, #2fcf7f); margin-right: 4px; }
.wt-m #wt-check { width: 100%; }
/* ===== Рейтинг: вкладки с иконками и пьедестал топ-3 (рисунок Higgsfield) ===== */
.rt-tabs .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; font-size: 12px; }
.rt-tabs .tab img { width: 34px; height: 34px; object-fit: contain; filter: saturate(.6) brightness(.8); transition: filter .2s, transform .2s; }
.rt-tabs .tab.active img { filter: none; transform: scale(1.08); }
.rt-podium { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-bottom: 10px; background: #150c34; box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(155,92,255,.25); }
.rt-podium .rt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-podium .rt-p { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 32%; transform: translateX(-50%); background: none; padding: 0; border: 0; box-shadow: none; }
.rt-podium .rt-p1 { left: 50%; bottom: 49%; }
.rt-podium .rt-p2 { left: 23%; bottom: 41%; }
.rt-podium .rt-p3 { left: 78%; bottom: 36%; }
.rt-podium .rt-av { order: 3; width: 46px; height: 46px; font-size: 18px; border: 2px solid #ffd76a; box-shadow: 0 0 18px rgba(255,215,106,.55), 0 6px 14px rgba(0,0,0,.5); }
.rt-podium .rt-p1 .rt-av { width: 56px; height: 56px; font-size: 22px; }
.rt-podium .rt-p2 .rt-av { border-color: #dfe6f2; box-shadow: 0 0 16px rgba(223,230,242,.45), 0 6px 14px rgba(0,0,0,.5); }
.rt-podium .rt-p3 .rt-av { border-color: #e2a06a; box-shadow: 0 0 16px rgba(226,160,106,.45), 0 6px 14px rgba(0,0,0,.5); }
.rt-podium .rt-name { order: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.9); display: flex; align-items: center; gap: 4px; }
.rt-podium .rt-val { order: 2; font-size: 11px; color: #ffe9a8; text-shadow: 0 1px 4px rgba(0,0,0,.9); white-space: nowrap; }
.rt-podium .rt-val b { font-family: var(--f-display); font-size: 13px; color: #fff; }
.rt-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d9d2ff; font-size: 13px; text-align: center; padding: 20px; }
.rt-rv { font-size: 12px; color: #d9d2ff; text-align: right; white-space: nowrap; }
.rt-rv b { font-family: var(--f-display); color: #fff; font-size: 14px; }
.prow .pn small .rk { vertical-align: middle; }
/* карточка недельного турнира */
.rt-week { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(90,50,170,.55), rgba(30,18,80,.75)); box-shadow: inset 0 0 0 1px rgba(255,215,106,.35), 0 6px 20px rgba(0,0,0,.35); }
.rt-week:empty { display: none; }
.rt-chest { width: 64px; height: 64px; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.rt-wi { flex: 1; min-width: 0; }
.rt-wt { font-weight: 800; font-size: 14px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rt-left { font-family: var(--f-display); font-size: 12px; color: #ffe9a8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-pz { font-size: 11px; color: #e9e3ff; margin-top: 3px; line-height: 1.35; }
.rt-my { font-size: 12px; color: #fff; margin-top: 4px; }
.rt-my b { color: #ffe9a8; }
.rt-prev { font-size: 11px; color: #bfb5ea; margin-top: 2px; }
.rt-podium .rt-prize { order: 0; font-size: 11px; font-weight: 800; color: #0b0620; background: linear-gradient(180deg, #ffe9a8, #ffc84a); border-radius: 999px; padding: 1px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.rt-rv small { display: block; color: #ffd76a; font-weight: 700; font-size: 11px; }
.prow.rt-paid { box-shadow: inset 0 0 0 1px rgba(255,215,106,.35); }
