/* ───── «Семья» v4.2: кейсы, апгрейд, инвентарь, просмотр фото ───── */
.coin-ic.s { width: 10px; height: 10px; }
.cs-seg { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; background: #1f2229; border-radius: 14px; padding: 4px; }
.cs-seg button { position: relative; white-space: nowrap; height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--hint); font: 700 13px Inter, sans-serif; padding: 0 2px; }
.cs-seg button.on { background: #2b2f39; color: var(--gold); }
.cs-seg b { position: absolute; top: -5px; right: -2px; min-width: 17px; padding: 0 4px; border-radius: 9px; background: #3a3e49; color: var(--text); font-size: 10.5px; line-height: 17px; }
.cs-seg b.g { background: #8847ff; }
.cs-empty { grid-column: 1 / -1; padding: 22px; text-align: center; color: var(--hint); background: #1f2229; border-radius: 12px; }
.cs-free { margin: 14px 16px 0; border-radius: 18px; background: linear-gradient(150deg, #1d3b2a, #102419); box-shadow: inset 0 0 0 1px #2c8a5a; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.cs-free .t { font-weight: 800; font-size: 16px; } .cs-free .s { font-size: 12px; color: #b5e0c6; margin-top: 2px; }
.cs-free button { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #4cd471; color: #0f2a19; font: 800 14px Inter, sans-serif; }
.cs-free button:disabled { background: #2b3a31; color: #6f8a78; }
.cs-cases { margin: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.cs-case { position: relative; border: 0; border-radius: 16px; padding: 12px 10px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); font-family: inherit; }
.cs-case .t { font-weight: 800; font-size: 14px; margin-top: 6px; } .cs-case .s { font-size: 11px; color: var(--hint); margin-top: 2px; }
.cs-case .p { margin-top: 8px; width: 100%; height: 36px; border-radius: 10px; background: linear-gradient(#f8d454, #e0a91b); color: #2b1d00; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.cs-case .cr, .cs-top .cr { position: absolute; top: 8px; left: 8px; background: #8847ff; color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 8px; padding: 3px 6px; }
.cs-top { position: relative; display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; }
.cs-top b { font-size: 20px; font-weight: 800; flex: 1; } .cs-top .cr { position: static; }
.cs-back { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #22252c; color: var(--text); font-size: 24px; line-height: 1; padding-bottom: 3px; }
.cs-strip { margin: 14px 0 0; position: relative; height: 152px; background: linear-gradient(180deg, #1a1c22, #121318); border-top: 1px solid #2a2d35; border-bottom: 1px solid #2a2d35; overflow: hidden; }
.cs-strip.small { height: 112px; margin-top: 8px; }
.cs-reel { position: absolute; top: 12px; left: 0; display: flex; gap: 6px; will-change: transform; }
.cs-strip.small .cs-reel { top: 8px; }
.cs-reel .cs-it { width: 92px; height: 126px; flex: none; }
.cs-strip.small .cs-reel .cs-it { width: 70px; height: 94px; } .cs-strip.small .cs-reel .cs-it .nm { display: none; }
.cs-strip .fl, .cs-strip .fr { position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; }
.cs-strip .fl { left: 0; background: linear-gradient(90deg, #121318, transparent); } .cs-strip .fr { right: 0; background: linear-gradient(270deg, #121318, transparent); }
.cs-strip .mk { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.cs-row { margin: 14px 16px 0; display: flex; gap: 8px; }
.cs-btn { height: 48px; border: 0; border-radius: 14px; font: 800 15px Inter, sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); flex: 1; }
.cs-btn.gold { background: linear-gradient(#f8d454, #e0a91b); color: #2b1d00; }
.cs-btn.dark { background: #2b2f39; } .cs-btn.ghost { background: #22252c; font-weight: 700; font-size: 14px; }
.cs-btn:disabled { background: #2b2f39 !important; color: #6b6e78 !important; }
.cs-btn.cnt { height: 38px; } .cs-btn.cnt.on { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.cs-grid { margin: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.cs-it { position: relative; height: 122px; border-radius: 12px; border: 0; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--text); font-family: inherit; }
.cs-it .nm { font-size: 11px; font-weight: 700; line-height: 1.15; }
.cs-it .pr { font-size: 11px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 3px; }
.cs-it .ch { position: absolute; top: 6px; right: 7px; font-size: 10px; font-weight: 800; color: var(--hint); }
.cs-it.sel { box-shadow: 0 0 0 2px var(--gold); }
.cs-it .tick { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #2b1d00; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.cs-pair { margin: 16px 16px 0; display: grid; grid-template-columns: 1fr 26px 1fr; gap: 8px; align-items: end; }
.cs-pair .lbl { font-size: 12px; color: var(--hint); font-weight: 700; margin-bottom: 6px; letter-spacing: .3px; }
.cs-pair .arr { margin-bottom: 52px; }
.cs-slot { height: 132px; border-radius: 14px; background: #1f2229; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; border: 1.5px dashed #3a3e49; }
.cs-slot.full { border: 0; }
.cs-slot .nm { font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.cs-slot .pr { font-size: 12px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.cs-slot .ph { color: var(--hint); font-size: 12px; font-weight: 600; padding: 0 6px; }
.cs-slot .stack, .cs-res .stack { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 140px; }
.cs-slot .stack span { width: 30px; height: 30px; border-radius: 8px; background: #15171c; display: flex; align-items: center; justify-content: center; }
.cs-gauge { position: relative; width: 220px; height: 220px; margin: 14px auto 0; }
.cs-gauge svg { display: block; }
.cs-gauge .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cs-gauge .pct { font-size: 40px; font-weight: 900; } .cs-gauge .sub { font-size: 12px; color: var(--hint); font-weight: 700; }
.cs-gauge .ptr { transform-origin: 110px 110px; }
.cs-mults { margin: 6px 16px 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.cs-mults button { height: 36px; border: 0; border-radius: 10px; background: #1f2229; color: #c9c7c0; font: 800 13px Inter, sans-serif; }
.cs-mults button.on { background: #2b2f39; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.cs-coins { margin: 10px 16px 0; display: flex; gap: 8px; align-items: center; background: #1f2229; border-radius: 12px; padding: 6px 6px 6px 12px; }
.cs-coins label { font-size: 12.5px; color: var(--hint); font-weight: 700; white-space: nowrap; }
.cs-coins input { flex: 1; min-width: 0; height: 34px; padding: 0 10px !important; font: 800 15px Inter, sans-serif; border-radius: 9px !important; background: #15171c !important; margin: 0 !important; }
.cs-coins button { height: 34px; border: 0; border-radius: 9px; background: #2b2f39; color: var(--text); font: 700 12.5px Inter, sans-serif; padding: 0 10px; }
.cs-hint { margin: 10px 20px 0; font-size: 12.5px; color: var(--hint); text-align: center; min-height: 32px; text-wrap: balance; }
.cs-go { display: block; margin: 10px 16px 0; width: calc(100% - 32px); height: 52px; border: 0; border-radius: 14px; background: linear-gradient(#e86af5, #a51fc0); color: #fff; font: 800 16px Inter, sans-serif; }
.cs-go:disabled { background: #2b2f39; color: #6b6e78; }
.cs-sum { margin: 14px 16px 0; border-radius: 16px; background: #1f2229; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-sum .v { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cs-sum small { font-size: 12px; color: var(--hint); font-weight: 700; }
.cs-sum .cs-btn { flex: none; }
.cs-chips { margin: 12px 16px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chips button { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #1f2229; color: #c9c7c0; font: 700 12.5px Inter, sans-serif; }
.cs-chips button.on { background: var(--text); color: var(--bg); }
.cs-bar { position: fixed; left: 12px; right: 12px; bottom: calc(78px + var(--sab, 0px)); padding: 10px; border-radius: 18px; background: rgba(28,30,36,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #2a2d35; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: flex; flex-wrap: wrap; gap: 8px; z-index: 30; animation: csBarIn .18s ease-out; }
@keyframes csBarIn { from { transform: translateY(14px); opacity: 0; } }
.cs-bar-n { flex-basis: 100%; font: 700 12px Inter, sans-serif; color: #a5a39c; padding: 0 4px; }
.cs-bar .cs-btn { flex: 1; }
.cs-grid.padbar { padding-bottom: 120px; }
.cs-bar .cs-btn { height: 46px; font-size: 14px; }
.sec-row .lnk { border: 0; background: none; color: var(--gold); font: 700 12.5px Inter, sans-serif; padding: 0; }
.cs-res { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(10,11,14,.84); padding: 20px; animation: csFade .25s ease-out; }
.cs-res .box { width: 100%; max-width: 360px; max-height: 92vh; overflow-y: auto; background: #1c1e24; border-radius: 22px; padding: 22px 16px 16px; text-align: center; }
.cs-res .k { font-size: 12.5px; font-weight: 800; letter-spacing: 1px; }
.cs-res h2 { margin: 6px 0 0; font-size: 25px; font-weight: 900; line-height: 1.1; }
.cs-res .big { width: 150px; height: 150px; margin: 16px auto 0; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.cs-res p { color: #c9c7c0; margin: 12px 6px 0; font-size: 13.5px; line-height: 1.4; }
.cs-res .btns { display: flex; gap: 8px; margin-top: 14px; }
.cs-res .btns .cs-btn { height: 46px; font-size: 14px; }
.cs-res .multi { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.cs-res .multi .cs-it { height: 112px; }
.cs-res .burn { animation: csBurn 1s ease-out forwards; }
@keyframes csBurn { 40% { filter: brightness(2) saturate(0); transform: scale(1.06); } 100% { filter: grayscale(1) brightness(.4); transform: scale(.9); opacity: .5; } }
@keyframes csFade { from { opacity: 0; } }

/* ───── просмотр фото на весь экран ───── */
.pv { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; animation: csFade .2s ease-out; overflow: hidden; }
.pv img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.pv .x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; z-index: 2; }
.pv .cnt { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 700; pointer-events: none; }
.pv .nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; z-index: 2; }
.pv .nav.l { left: 10px; } .pv .nav.r { right: 10px; }
.post-photo, .ava-post img, .pgrid img, .ck-ans img, .wk-post img, .prof-hero .ava-xl img { cursor: zoom-in; }
