/* ═══════════════════════════════════════════════════════════
   Liberty Basketball — профиль, паки и колоды карточек
   ═══════════════════════════════════════════════════════════ */

/* ─────────────── 1. Profile panel ─────────────── */
/* фон под окном: на компьютере — overflow у корня; на телефоне/планшете фон держит touch-tilt.js без пересчёта всей страницы */
@media (hover: hover) and (pointer: fine) { html.lbp-lock, html.lbp-lock body { overflow: hidden !important; } }
.lbp { position: fixed; inset: 0; z-index: 8500; display: none; }
.lbp.show { display: block; }
.lbp-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 32, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lbp-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1140px, 95vw);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-primary, #f6f8fc); border-radius: 28px 0 0 28px;
  box-shadow: -40px 0 90px rgba(8, 14, 32, .35);
}
.lbp-head {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 28px 18px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
}
.lbp-head::before { /* court arc */
  content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02);
}
.lbp-head::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, #f97316, transparent); opacity: .7;
}
.lbp-ava {
  position: relative; width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em;
  background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 24px rgba(37, 99, 235, .35), inset 0 0 0 2px rgba(255,255,255,.35);
}
.lbp-who { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lbp-who b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lbp-who small { font-size: .82rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-role { font-family: var(--font-body); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; color: #1c1917; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.lbp-head-btns { position: relative; display: flex; gap: 8px; align-items: center; }
.lbp-logout { padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .2s; }
.lbp-logout:hover { background: rgba(255,255,255,.18); }
.lbp-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0b1a3a; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .3s var(--ease); }
.lbp-x:hover { transform: rotate(90deg); }
.lbp-tabs { position: relative; display: flex; gap: 4px; padding: 6px; margin: 16px 28px 0; align-self: flex-start; border-radius: 99px; background: var(--white, #fff); box-shadow: 0 4px 18px rgba(15, 23, 42, .07); }
.lbp-tab { position: relative; z-index: 1; padding: 10px 20px; border: 0; background: none; border-radius: 99px; font-weight: 700; font-size: .9rem; color: var(--text-secondary); cursor: pointer; transition: color .3s; white-space: nowrap; }
.lbp-tab small { font-weight: 600; opacity: .6; margin-left: 4px; }
.lbp-tab.active { color: #fff; }
.lbp-pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; border-radius: 99px; background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); transition: transform .5s var(--ease), width .5s var(--ease); }
.lbp-body { flex: 1; overflow-y: auto; padding: 22px 28px 48px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#cardsApp.tab-mine .lbg-toolbar, #cardsApp.tab-mine #lbGallery { display: none !important; }
#cardsApp.tab-club #lbMyCard { display: none !important; }
.lbp #lbMyCard { margin-bottom: 0; }
@media (max-width: 760px) {
  .lbp-sheet { top: 3vh; left: 0; width: 100%; border-radius: 24px 24px 0 0; }
  .lbp-head { padding: 18px 16px 14px; gap: 12px; }
  .lbp-ava { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
  .lbp-who b { font-size: 1.08rem; }
  .lbp-logout { padding: 8px 12px; font-size: .78rem; }
  .lbp-x { width: 36px; height: 36px; }
  .lbp-tabs { margin: 12px 16px 0; align-self: stretch; }
  .lbp-tab { flex: 1; padding: 10px 8px; font-size: .84rem; }
  .lbp-body { padding: 16px 16px 40px; }
}

/* ─────────────── 2. Main page: packs + deck ─────────────── */
.dk { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; align-items: stretch; }
.dk-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dk-side-h { font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-600); padding-left: 4px; }
.dk-packs { display: flex; flex-direction: column; gap: 10px; }
.dk-pack {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; text-align: left; cursor: pointer;
  border-radius: 18px; border: 1px solid rgba(200, 210, 230, .55); background: rgba(255, 255, 255, .62);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.dk-pack:hover { transform: translateX(4px); background: #fff; }
.dk-pack.is-active { background: #fff; border-color: var(--blue-300); box-shadow: 0 12px 32px rgba(37, 99, 235, .16); }
.dk-pack.is-active::after { content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.dk-pack.is-locked { opacity: .78; }
.dk-pack-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 14px; }
.dk-pack-txt b { font-family: var(--font-display); font-weight: 800; font-size: .98rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-pack-txt small { font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* foil booster pack: a real sealed pack — crimped zig-zag ends, pillow-shaded foil, holo + shine */
.dk-foil {
  --p1: #93c5fd; --p2: #2563eb; --p3: #1e3a8a;
  position: relative; width: 58px; height: 82px; flex: none; display: block;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, .28)) drop-shadow(0 1px 1px rgba(15, 23, 42, .25));
  transform-origin: 50% 90%; transition: transform .45s var(--ease);
}
.dk-bag {
  --t: 7px;   /* teeth of the sealed ends */
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 0 11px;
  background:
    radial-gradient(90% 40% at 50% 8%, rgba(255,255,255,.55), transparent 70%),                        /* light on the puffy top */
    linear-gradient(90deg, rgba(0,0,0,.32), rgba(255,255,255,.12) 16%, transparent 34%, transparent 66%, rgba(255,255,255,.1) 84%, rgba(0,0,0,.32)),  /* pillow sides */
    linear-gradient(165deg, var(--p1) 0%, var(--p2) 46%, var(--p3) 100%);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--t) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--t) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--t) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--t) 51% repeat-x;
}
/* heat-sealed crimp bands */
.dk-crimp { position: absolute; left: 0; right: 0; top: 0; height: 10px; z-index: 2;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 1px, rgba(0,0,0,.16) 1px 2.5px), linear-gradient(180deg, rgba(0,0,0,.18), rgba(255,255,255,.18));
  box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.18); }
.dk-crimp.b { top: auto; bottom: 0; box-shadow: 0 -1px 0 rgba(255,255,255,.3), 0 -2px 3px rgba(0,0,0,.18); }
.dk-tear { position: absolute; left: 0; right: 0; top: 12px; height: 1px; z-index: 2; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 3px, transparent 3px 5px); }
.dk-bag-brand { position: relative; z-index: 2; font: 900 4.6px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: 2px; }
.dk-emb { position: relative; z-index: 2; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .62rem/1 var(--font-display); letter-spacing: -.03em; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%), linear-gradient(160deg, var(--p2), var(--p3));
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 3px rgba(0,0,0,.12), 0 3px 6px rgba(0,0,0,.3); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dk-bag-name { position: relative; z-index: 2; align-self: stretch; padding: 2px 3px; text-align: center; background: rgba(255,255,255,.92); color: var(--p3);
  font: 900 5.4px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.dk-bag-n { position: absolute; z-index: 2; right: 4px; bottom: 13px; font: 800 5px/1 var(--font-body); color: rgba(255,255,255,.8); }
/* holographic foil: rainbow that shifts like a real pack catching light */
.dk-holo { position: absolute; inset: -30%; z-index: 1; pointer-events: none; opacity: .38; mix-blend-mode: overlay;
  background: linear-gradient(125deg, #ff7ac6 0%, #ffd36e 18%, #7cf3c4 36%, #7ab8ff 54%, #c08bff 72%, #ff7ac6 90%);
  background-size: 220% 220%; background-position: 0% 50%; transition: opacity .4s; }
.dk-shine { position: absolute; inset: -40%; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.7) 49%, rgba(255,255,255,.15) 54%, transparent 60%);
  transform: translateX(-70%); transition: transform 1.1s var(--ease); }
.dk-pack:hover .dk-shine, .dk-pack.is-active .dk-shine { transform: translateX(70%); }
.dk-pack.is-active .dk-holo { opacity: .55; animation: dk-holo 5s linear infinite; }
@keyframes dk-holo { to { background-position: 220% 50%; } }
.dk-pack.is-active .dk-foil { animation: dk-foil-float 3.2s ease-in-out infinite; }
@keyframes dk-foil-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@media (hover: hover) { .dk-pack:hover .dk-foil { transform: translateY(-3px) rotate(-5deg) scale(1.04); } .dk-pack:hover .dk-holo { opacity: .6; } }
.dk-lock { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-size: 1.05rem; background: rgba(8, 14, 32, .45); }
.dk-pack--black .dk-foil  { --p1: #a1a1aa; --p2: #27272a; --p3: #050506; }
.dk-pack--orange .dk-foil { --p1: #fdba74; --p2: #ea580c; --p3: #431407; }
.dk-pack--hw-pumpkin .dk-foil { --p1: #ffd166; --p2: #ff7a18; --p3: #2a0845; }
.dk-pack--hw-witch .dk-foil   { --p1: #d9ff9e; --p2: #7e22ce; --p3: #1d0b3a; }
.dk-pack--hw-blood .dk-foil   { --p1: #fca5a5; --p2: #b91c1c; --p3: #0a0000; }
.dk-cta { margin-top: auto; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); display: flex; flex-direction: column; gap: 8px; }
.dk-cta p { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 2px; }
.dk-cta .btn { width: 100%; justify-content: center; }
.dk-new { font-size: .8rem; font-weight: 700; color: var(--orange-600); background: var(--orange-100); padding: 7px 10px; border-radius: 12px; animation: dk-pulse 2s ease-in-out infinite; }
@keyframes dk-pulse { 50% { box-shadow: 0 0 0 5px rgba(249, 115, 22, .12); } }

.dk-main { position: relative; min-width: 0; display: flex; flex-direction: column; }
.dk-stagebox {
  position: relative; height: 450px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 108%, rgba(249, 115, 22, .22), transparent 70%),
    radial-gradient(70% 70% at 50% 40%, rgba(37, 99, 235, .35), transparent 70%),
    linear-gradient(180deg, #0a1330 0%, #0d1a3f 60%, #0a1330 100%);
  box-shadow: 0 30px 60px -20px rgba(11, 26, 58, .45), inset 0 0 0 1px rgba(255,255,255,.06);
}
.dk-stagebox::before { /* court markings */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 50% 118%, transparent 0 158px, rgba(255,255,255,.07) 159px 161px, transparent 162px),
    radial-gradient(circle at 50% 118%, transparent 0 300px, rgba(255,255,255,.05) 301px 303px, transparent 304px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 64px);
}
.dk-glow { position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; margin: -240px 0 0 -220px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .32), rgba(96, 165, 250, .1) 45%, transparent 68%); pointer-events: none; }
@keyframes dk-breathe { 50% { transform: scale(1.12); opacity: .75; } }
#dkStage { position: absolute; inset: 0; }
.dk-stage { perspective: 1400px; touch-action: pan-y; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.dk-stage.is-drag { cursor: grabbing; }
.dk-stage:focus-visible { box-shadow: inset 0 0 0 3px rgba(96, 165, 250, .7); border-radius: inherit; }
.dk-layer { position: absolute; inset: 0; }
.dk-card { position: absolute; left: 50%; top: 50%; width: 220px; }
.dk-card .lbc { cursor: pointer; }
.dk-card::after { content: ''; position: absolute; inset: 0; border-radius: 6%; background: #050b1c; opacity: .22; pointer-events: none; transition: opacity .4s; z-index: 20; }
.dk-card.is-front::after { opacity: 0; }
.dk-card.is-front .lbc-face { box-shadow: 0 6cqw 14cqw rgba(0, 0, 0, .45), 0 0 0 .9cqw var(--frame2, #1e3a8a); }
.dk-stage.is-drag .dk-card .lbc-inner { transition: none; }
.dk-pilehint {
  position: absolute; left: 50%; bottom: 18px; z-index: 2000; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; white-space: nowrap;
  background: rgba(255,255,255,.12); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); pointer-events: none; transition: opacity .4s, transform .4s;
  animation: dk-hint 2.4s ease-in-out infinite;
}
.dk-pilehint:empty { display: none; }
@keyframes dk-hint { 50% { transform: translateX(-50%) translateY(-4px); } }
.dk-stage.is-open .dk-pilehint { opacity: 0; transform: translateX(-50%) translateY(10px); animation: none; }
.dk-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 0 4px; }
.dk-nav { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(200, 210, 230, .7); background: #fff; color: var(--text-primary); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s, color .2s; }
.dk-nav:hover { background: var(--blue-600); color: #fff; border-color: transparent; transform: scale(1.06); }
.dk-nav:active { transform: scale(.94); }
.dk-cap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-cap b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cap span { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-count { font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.dk-toggle { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .2s; }
.dk-toggle:hover { background: var(--blue-100); }
@media (max-width: 900px) {
  .dk { grid-template-columns: 1fr; gap: 14px; }
  .dk-side { display: contents; }
  .dk-side-h { order: 0; }
  .dk-packs { order: 1; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .dk-packs::-webkit-scrollbar { display: none; }
  .dk-pack { flex: 0 0 auto; width: auto; max-width: 230px; scroll-snap-align: start; padding: 8px 12px 8px 8px; gap: 10px; }
  .dk-pack:hover { transform: none; }
  .dk-pack.is-active::after { display: none; }
  .dk-foil { width: 44px; height: 62px; } .dk-bag { --t: 6px; padding: 10px 0 9px; } .dk-crimp { height: 8px; } .dk-tear { top: 10px; } .dk-emb { width: 21px; height: 21px; font-size: .52rem; } .dk-bag-brand, .dk-bag-n { display: none; } .dk-bag-name { font-size: 4.6px; }
  .dk-main { order: 2; }
  .dk-cta { order: 3; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dk-cta p { flex: 1 1 100%; }
  .dk-cta .btn { width: auto; flex: 1; }
  .dk-stagebox { height: 400px; border-radius: 22px; }
  .dk-toggle { display: none; }
}
@media (max-width: 480px) { .dk-stagebox { height: 370px; } .dk-glow { width: 300px; height: 300px; margin: -170px 0 0 -150px; } }

/* modal deck (player's cards) */
.dk-modal { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dk-mstage {
  position: relative; width: 100%; height: min(470px, 62vh); border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, rgba(37, 99, 235, .32), transparent 70%), linear-gradient(180deg, #1d4ed8, #2563eb);
}
.dk-mcap { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.dk-mcap b { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.dk-mcap span { font-size: .8rem; color: var(--text-muted); }
.dk-mhint { font-size: .76rem; color: var(--text-muted); }
.dk-mstage .dk-card.is-front .lbc-inner { transition-duration: .75s; }

/* ─────────────── 3. Player plaques: avatar with small cards peeking from under it ─────────────── */
.player-card.has-pc .player-top { align-items: flex-start; }
.pc-wrap { position: relative; display: block; flex: 0 0 64px; width: 64px; height: 64px; -webkit-tap-highlight-color: transparent; }
.pc-wrap .pc-av { position: absolute; left: 0; top: 0; z-index: 3; cursor: pointer; transform-origin: 50% 60%; transition: transform .5s cubic-bezier(.2, .9, .25, 1.3), box-shadow .4s; }
.pc-av > *:not(.pc-dot):not(.player-number):not(img) { position: relative; }
/* gloss sweep layer on the avatar */
.pc-gloss { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 1; }
.pc-gloss::before { content: ''; position: absolute; top: -30%; bottom: -30%; width: 40%; left: -70%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); }

/* avatar hover: pop + wobble + gloss, ring speeds up */
.pc-wrap:hover .pc-av, .pc-wrap:focus-within .pc-av { animation: pc-av-pop .7s cubic-bezier(.2, .9, .25, 1.2) both; box-shadow: 0 10px 26px rgba(37, 99, 235, .35); }
.pc-wrap:hover .pc-gloss::before { animation: pc-gloss .8s .1s ease-out both; }
.pc-wrap:hover .pc-av.pc-st-on::before { animation-duration: .9s; }
.pc-wrap:hover .pc-av.pc-st-away::before { animation-duration: 3s; }
.pc-wrap:hover .pc-av::after { box-shadow: 0 0 0 4px rgba(96, 165, 250, .18); transition: box-shadow .4s; }
@keyframes pc-av-pop {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.14) rotate(-7deg); }
  65% { transform: scale(1.07) rotate(4deg); }
  100% { transform: scale(1.09) rotate(0); }
}
@keyframes pc-gloss { to { left: 140%; } }

/* the cards: small, tilted, tucked behind the bottom-left of the avatar */
.pc-stack {
  position: absolute; left: -7px; top: 27px; width: 28px; height: 39px; z-index: 1; display: block; cursor: pointer; outline: none;
  transform-origin: 70% 100%; transition: transform .55s cubic-bezier(.2, .9, .25, 1.25), opacity .3s; opacity: .92;
}
.pc-edge, .pc-edge::after { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(160deg, #1d4ed8, #0b1a3a); box-shadow: 0 1px 4px rgba(15, 23, 42, .25); }
.pc-edge { transform: rotate(-30deg) translate(-3px, 1px); transform-origin: 70% 100%; opacity: .8; transition: transform .55s cubic-bezier(.2, .9, .25, 1.25); }
.pc-edge::after { content: ''; transform: rotate(-10deg) translate(-2px, 1px); opacity: .7; }
.pc-stack.has-eds .pc-edge { display: none; }
.pc-mini { position: absolute; inset: 0; transform-origin: 70% 100%; transition: transform .55s cubic-bezier(.2, .9, .25, 1.25), filter .3s; }
.pc-flip { display: block; width: 100%; height: 100%; }
.pc-mini .lbc { pointer-events: none; perspective: none; }
.pc-mini .lbc-face { box-shadow: 0 2px 6px rgba(15, 23, 42, .3), 0 0 0 .9cqw var(--frame2, #1e3a8a); }
.pc-mini--front { z-index: 3; transform: rotate(-17deg); filter: brightness(.95); }
.pc-mini--b1 { z-index: 2; transform: rotate(-31deg) translate(-2px, 1px); filter: brightness(.8); }
.pc-mini--b2 { z-index: 1; transform: rotate(-44deg) translate(-3px, 2px); filter: brightness(.7); }
/* hover: cards slide out a little further — still behind the avatar */
.pc-wrap:hover .pc-stack, .pc-stack:focus-visible { transform: translate(-6px, 6px); opacity: 1; }
.pc-wrap:hover .pc-mini--front, .pc-stack:focus-visible .pc-mini--front { transform: rotate(-24deg); filter: none; }
.pc-wrap:hover .pc-mini--b1, .pc-stack:focus-visible .pc-mini--b1 { transform: rotate(-40deg) translate(-4px, 2px); filter: brightness(.9); }
.pc-wrap:hover .pc-mini--b2, .pc-stack:focus-visible .pc-mini--b2 { transform: rotate(-56deg) translate(-6px, 4px); filter: brightness(.85); }
.pc-wrap:hover .pc-edge { transform: rotate(-38deg) translate(-5px, 2px); }
.pc-stack:hover { transform: translate(-9px, 9px) scale(1.12) !important; }
.pc-stack:active { transform: translate(-6px, 6px) scale(.95) !important; transition-duration: .12s; }
.pc-stack:focus-visible .lbc-face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-400); }
.pc-shine { position: absolute; inset: 0; z-index: 9; border-radius: 4px; overflow: hidden; pointer-events: none; }
.pc-shine::before { content: ''; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); }
.pc-stack:hover .pc-shine::before { animation: pc-shine .8s ease-out both; }
@keyframes pc-shine { to { left: 130%; } }
.pc-count { position: absolute; z-index: 10; left: -8px; bottom: -8px; padding: 1px 5px; border-radius: 99px; font-size: .55rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff7a18, #7c2d12); box-shadow: 0 2px 8px rgba(124, 45, 18, .4); white-space: nowrap; }

/* same avatar inside the player modal */
.fas-pl-head .pc-wrap { margin: 4px 4px 4px 8px; }

/* deal-in when the plaque scrolls into view */
.pc-stack .pc-flip, .pc-stack .pc-edge, .pc-stack .pc-count { opacity: 0; }
.pc-stack.pc-shown .pc-flip, .pc-stack.pc-shown .pc-edge, .pc-stack.pc-shown .pc-count { opacity: 1; }
.pc-stack.pc-deal .pc-flip { animation: pc-deal .9s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--d, 0ms) + var(--k, 0) * 110ms); }
.pc-stack.pc-deal .pc-edge { animation: pc-fade .5s ease-out both; animation-delay: calc(var(--d, 0ms) + 200ms); }
.pc-stack.pc-deal .pc-count { animation: pc-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d, 0ms) + 650ms); }
.pc-mini--front { --k: 2; } .pc-mini--b1 { --k: 1; } .pc-mini--b2 { --k: 0; }
.pc-stack:not(.has-eds) .pc-mini--front { --k: 0; }
@keyframes pc-deal {
  0% { opacity: 0; transform: translate(14px, -10px) rotate(30deg) scale(.4); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ── presence ring on the avatar ── */
.pc-av::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; padding: 3px; pointer-events: none;
  background: rgba(148, 163, 184, .45);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pc-av::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; }
.pc-av.pc-st-on::before { background: conic-gradient(from 0deg, #22c55e, #a3e635, #22d3ee, #22c55e 62%, transparent 62% 70%, #22c55e); animation: pc-spin 2.2s linear infinite; }
.pc-av.pc-st-on::after { animation: pc-ping 2.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.pc-av.pc-st-away::before { background: conic-gradient(#f59e0b 0 72%, rgba(245, 158, 11, .2) 72%); animation: pc-spin 9s linear infinite; }
.pc-av.pc-st-off::before { padding: 2px; }
.pc-av.pc-st-none::before { padding: 2px; background: repeating-conic-gradient(rgba(148, 163, 184, .5) 0 10deg, transparent 10deg 20deg); }
.pc-av.pc-st-off, .pc-av.pc-st-none { filter: saturate(.8); }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 80%, 100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } }
.pc-dot { position: absolute; right: -1px; bottom: 1px; z-index: 2; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #fff; background: #94a3b8; box-shadow: 0 1px 4px rgba(15, 23, 42, .25); }
.pc-st-on .pc-dot { background: #22c55e; }
.pc-st-on .pc-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #22c55e; animation: pc-dotping 1.6s ease-out infinite; }
.pc-st-away .pc-dot { background: #f59e0b; }
.pc-st-none .pc-dot { display: none; }
@keyframes pc-dotping { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.pc-st-txt { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.pc-st-txt::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-st-txt--on { color: #16a34a; }
.pc-st-txt--away { color: #d97706; }

/* profile: link the account to a roster player */
.lbp-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; align-self: flex-start; padding: 4px 6px 4px 10px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .74rem; color: rgba(255,255,255,.8); cursor: pointer; }
.lbp-link-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.lbp-link.is-linked .lbp-link-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pc-ping 2s infinite; }
.lbp-link select { max-width: 210px; padding: 4px 8px; border-radius: 99px; border: 0; background: #fff; color: #0b1a3a; font-size: .76rem; font-weight: 600; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .dk-foil, .dk-holo, .dk-glow, .dk-pilehint, .dk-new, .pc-stack.pc-deal .pc-flip, .pc-stack.pc-deal .pc-edge, .pc-stack.pc-deal .pc-count, .pc-av::before, .pc-av::after, .pc-dot::after { animation: none !important; }
  .pc-stack .pc-flip, .pc-stack .pc-edge, .pc-stack .pc-count { opacity: 1 !important; }
  .pc-mini, .pc-edge, .pc-stack, .pc-av { transition: none; }
}
.player-card.has-pc .player-meta { flex-wrap: wrap; row-gap: 2px; }
.player-card.has-pc .player-meta span { white-space: nowrap; }
/* offline / no account: no ring, no dot — just the avatar */
.pc-av.pc-st-off::before, .pc-av.pc-st-none::before, .pc-av.pc-st-off::after, .pc-av.pc-st-none::after { display: none; }
.pc-av.pc-st-off .pc-dot, .pc-av.pc-st-none .pc-dot { display: none; }
.pc-av.pc-st-off, .pc-av.pc-st-none { filter: none; }

/* performance: decorative loops stop when the deck is off-screen */
.dk.is-offscreen *, .dk.is-offscreen *::before, .dk.is-offscreen *::after { animation-play-state: paused !important; }

/* tiny card silhouettes in plaques */
.pcm { --a: #3b82f6; --b: #0b1a3a; --fr: #94a3b8; position: relative; display: block; width: 100%; height: 100%; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 2px 6px rgba(15, 23, 42, .3), inset 0 0 0 1.5px var(--fr); }
.pcm::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px); }
.pcm b { position: absolute; left: 3px; top: 2px; font-family: var(--font-display); font-weight: 900; font-size: 8px; line-height: 1; color: #fff; }
.pcm i { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: 11px; line-height: 1; color: rgba(255,255,255,.92); letter-spacing: -.03em; }
.pcm--t-orange { --a: #f97316; --b: #431407; } .pcm--t-black { --a: #52525b; --b: #050506; } .pcm--t-white { --a: #cbd5e1; --b: #1e293b; }
.pcm--bronze { --fr: #e7a873; } .pcm--silver { --fr: #e2e8f0; } .pcm--gold { --fr: #fbbf24; } .pcm--legend { --fr: #e879f9; }
.pcm--ev { --a: #ff7a18; --b: #2a0845; } .pcm--hw-witch { --a: #9dff4f; --b: #1d0b3a; } .pcm--hw-blood { --a: #ff3b3b; --b: #0a0000; }
.pcm--ev::after { content: '🎃'; position: absolute; right: 1px; bottom: 1px; font-size: 8px; line-height: 1; }

/* performance: heavy card effects only on the card in focus */
.dk-card:not(.is-front) .lbc-foil, .dk-card:not(.is-front) .lbc-glare, .dk-card:not(.is-front) .hw-sparkle, .dk-card:not(.is-front) .hw-fog { display: none; }
.dk-card:not(.is-front) .lbc-face::before, .dk-card:not(.is-front) .lbc-foil, .dk-card:not(.is-front) * { animation-play-state: paused !important; }
.lbc:not(.is-active) .lbc-glare { visibility: hidden; }
.lb-paused, .lb-paused * { animation-play-state: paused !important; }

/* ─────────────── «Показать ещё» (players, recordings) ─────────────── */
.lb-more-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; cursor: pointer; border: 2px dashed var(--blue-200) !important; background: linear-gradient(135deg, var(--blue-50), rgba(255,255,255,.7)) !important; color: var(--blue-700); font: inherit; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.lb-more-card:hover { border-color: var(--blue-400) !important; box-shadow: 0 18px 40px -20px rgba(37, 99, 235, .45); }
.lb-more-card b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.lb-more-card small { font-size: .82rem; color: var(--text-muted); }
.lb-more-peek { display: flex; margin-bottom: 4px; }
.lb-more-peek i { width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); box-shadow: 0 0 0 3px #fff; }
.lb-more-peek i:first-child { margin-left: 0; }
.lb-more-arrow { margin-top: 4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; animation: lb-bob 1.8s ease-in-out infinite; }
@keyframes lb-bob { 50% { transform: translateY(4px); } }
.lb-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 0; padding: 12px 22px; border-radius: 99px; border: 1.5px solid var(--blue-200); background: #fff; color: var(--blue-700); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, transform .2s; }
.lb-more:hover { background: var(--blue-50); transform: translateY(-1px); }
.lb-more i { font-style: normal; }

@media (prefers-reduced-motion: reduce) { .lb-more-arrow { animation: none; } }

/* стрелки «Показать ещё / Свернуть» — наша галочка, повёрнутая вниз / вверх */
.lb-chev-v { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; transform: rotate(90deg);
  -webkit-mask: var(--ic-chev) center / contain no-repeat; mask: var(--ic-chev) center / contain no-repeat; }
.lb-chev-v.up { transform: rotate(-90deg); }
.lb-more i.lb-chev-v { font-size: 0; }
.lb-more-arrow .lb-chev-v { width: 18px; height: 18px; color: #fff; }

/* иконки Lucide в меню и плашках (сборка 279) */
.lbp-ava-menu button { display: flex; align-items: center; gap: 10px; }
.lbp-ava-menu .luc-ic { width: 20px; height: 20px; color: #2563eb; }
.sh-drill i .luc-ic { width: 18px; height: 18px; color: #2563eb; }
.dj-sg .luc-ic, .lf-tab-h b .luc-ic, .evd-h b .luc-ic { width: 18px; height: 18px; vertical-align: -3px; }
.tr-how .luc-ic { width: 17px; height: 17px; vertical-align: -3px; color: #2563eb; }
.cr-pp-k i .luc-ic { width: 26px; height: 26px; color: #2563eb; }
.lbn-ico .luc-ic, .lbt-ico .luc-ic { width: 22px; height: 22px; color: #2563eb; }
.lbpu-row b .luc-ic, .lbpu-ann summary .luc-ic { width: 20px; height: 20px; vertical-align: -4px; color: #2563eb; }
.cr-card-h .luc-ic, .cr-li small .luc-ic, .club-news-tag .luc-ic, .cr-seg .luc-ic { width: 16px; height: 16px; vertical-align: -3px; }
.lf-tab-a .luc-ic { width: 16px; height: 16px; vertical-align: -3px; }
