/* =====================================================================
   Разделы «Профиль» (pf-) и «Лидеры» (ld-)
   ===================================================================== */

/* ---------- Профиль: каркас ---------- */
.pf { display: flex; flex-direction: column; gap: 12px; }
.pf .shead { margin-bottom: 2px; }
.pf-top { display: flex; flex-direction: column; gap: 12px; }

.pf-id { cursor: pointer; font-variant-numeric: tabular-nums; transition: transform var(--t-fast) var(--spring), border-color var(--t); }
.pf-id:active { transform: scale(0.92); }
.pf-id .ico svg { width: 14px; height: 14px; color: var(--violet-2); }

/* Карточка игрока */
.pf-card { display: flex; align-items: center; gap: 13px; overflow: hidden; }
.pf-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -18%;
  width: 72%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.24), transparent);
  pointer-events: none;
}
.pf-ava { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; }
.pf-ava::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ffd34d, #e14eca, #8b5cf6, #2fd9f5, #ffd34d);
  box-shadow: 0 0 22px rgba(225, 78, 202, 0.35);
  animation: spin 7s linear infinite;
}
.pf-ava::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: #1a1040; }
.pf-ava .avatar { position: relative; z-index: 1; box-shadow: none; }
.pf-who { position: relative; flex: 1; min-width: 0; }
.pf-name { font: 800 18px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-refs { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.pf-refs .ico { display: grid; }
.pf-refs .ico svg { width: 15px; height: 15px; color: var(--violet-2); }

.pf-soc { position: relative; display: flex; gap: 8px; flex: none; }
.pf-sq {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 17px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(var(--sq), 0.45);
  background: linear-gradient(160deg, rgba(var(--sq), 0.34), rgba(var(--sq), 0.08));
  color: #fff;
  font: 800 9.5px/1 var(--font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(var(--sq), 0.22), var(--hl);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t);
}
.pf-sq .ico { display: grid; }
.pf-sq .ico svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.pf-sq:active { transform: scale(0.9); }
.pf-sq-chat { --sq: 167, 139, 250; }
.pf-sq-channel { --sq: 47, 217, 245; }

/* Пополнить / Инвентарь */
.pf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-act { justify-content: flex-start; gap: 10px; min-width: 0; padding: 0 14px; font-size: 15px; }
.pf-act > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-act-ic {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--spring);
}
.pf-act-ic .ico { display: grid; }
.pf-act-ic .ico svg { width: 18px; height: 18px; stroke-width: 2.6; }
.pf-act:active .pf-act-ic { transform: rotate(-12deg) scale(0.9); }
.pf-act-inv {
  color: #fff;
  border: 1px solid rgba(47, 217, 245, 0.45);
  background: linear-gradient(135deg, rgba(47, 217, 245, 0.34), rgba(13, 148, 136, 0.26));
  box-shadow: 0 10px 26px rgba(8, 145, 178, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pf-act-inv::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: shine 4.2s var(--ease) 2.1s infinite;
  pointer-events: none;
}

/* Баланс | Игр сыграно */
.pf-stats { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 15px 10px; overflow: hidden; }
.pf-stats::before,
.pf-stats::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: #ffe9b3;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.pf-stats::before { top: 12px; left: 14%; }
.pf-stats::after { right: 12%; bottom: 13px; width: 7px; height: 7px; animation-delay: 1.3s; }
.pf-stat { display: grid; justify-items: center; gap: 7px; min-width: 0; text-align: center; }
.pf-stat small { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.pf-stat .amt { max-width: 100%; }
.pf-stat .amt b,
.pf-num { font: 800 clamp(16px, 5.2vw, 21px)/1.1 var(--font-d); font-variant-numeric: tabular-nums; }
.pf-stat .st { width: 21px; height: 21px; }
.pf-vsep { width: 1px; height: 40px; background: linear-gradient(transparent, var(--stroke-2), transparent); }

/* Меню */
.pf-menu { display: flex; flex-direction: column; gap: 10px; }
/* backwards, а не both: после появления анимация не держит transform, и нажатие с масштабом работает */
.pf-menu.stagger > * { animation: fadeUp 0.55s var(--ease) calc(var(--i, 0) * 55ms + 150ms) backwards; }
.pf-mi { position: relative; overflow: hidden; gap: 12px; min-height: 80px; padding: 12px 10px 12px 14px; }
.pf-mi::before {
  content: '';
  position: absolute;
  right: -34px;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(var(--dc), 0.2), transparent);
  pointer-events: none;
}
.pf-mi > * { position: relative; }
.pf-mi-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-mi-t b { font: 800 15.5px/1.2 var(--font); }
.pf-mi-t small { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; font: 700 12px/1.3 var(--font); color: var(--text-3); }
.pf-mi-t small .st { width: 13px; height: 13px; }
.pf-mi .chev { display: grid; flex: none; margin-left: 0; color: var(--text-3); transition: transform var(--t) var(--ease), color var(--t); }
.pf-mi .chev svg { width: 18px; height: 18px; }
.pf-mi:active .chev { transform: translateX(3px); color: var(--text); }

/* Декоративная 3D-композиция справа */
.pf-deco { flex: none; width: 82px; height: 58px; }
.pf-deco::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 2px;
  bottom: -3px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--dc), 0.5), transparent);
  filter: blur(2px);
}
.pf-deco img { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.45)); transition: transform 0.45s var(--spring); }
.pf-deco .pf-d1 { right: 4px; top: 4px; width: 50px; height: 50px; z-index: 1; animation: floatyRot 4.4s ease-in-out infinite; }
.pf-deco .pf-d2 { left: 4px; top: 0; width: 30px; height: 30px; animation: floaty 3.4s ease-in-out 0.4s infinite; }
.pf-deco .pf-d3 { left: 16px; bottom: 0; width: 20px; height: 20px; z-index: 2; animation: floaty 2.8s ease-in-out 0.9s infinite; }
.pf-mi-admin .pf-deco .pf-d1 { animation: spin 12s linear infinite; }
.pf-mi-promo .pf-deco .pf-d1 { width: 54px; height: 54px; top: 2px; }

/* Тестовый вход */
.pf-dev { display: flex; flex-direction: column; gap: 12px; border: 1.5px dashed rgba(255, 197, 61, 0.42); background: linear-gradient(160deg, rgba(255, 197, 61, 0.09), rgba(22, 13, 48, 0.72)); }
.pf-dev-h { display: flex; align-items: center; gap: 12px; }
.pf-dev-h img { width: 40px; height: 40px; flex: none; animation: floatyRot 3.6s ease-in-out infinite; }
.pf-dev-h b { display: block; font-size: 14.5px; }
.pf-dev-h small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pf-dev .input { flex: 1; min-width: 0; }
.pf-dev .btn { flex: none; height: 48px; }

.pf-foot { margin: 4px 16px 0; text-align: center; font-size: 11.5px; line-height: 1.5; font-weight: 600; color: var(--text-3); }
.pf-foot b { font: 800 11px/1.6 var(--font-d); letter-spacing: 0.14em; color: var(--text-2); }
.pf-legal { display: block; margin-top: 6px; }

/* Строка ставки (админка) */
.pf-bet .pf-bet-ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--gc);
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--gc) 16%, transparent);
  border: 1px solid var(--stroke-2);
  border-color: color-mix(in srgb, var(--gc) 35%, transparent);
}
.pf-bet .pf-bet-ic svg { width: 17px; height: 17px; }
.pf-bet b { display: block; font-size: 14px; }
.pf-bet small { display: block; font-size: 12px; }
.pf-bet-r { display: grid; justify-items: end; gap: 2px; text-align: right; }

/* ---------- Профиль: шторки ---------- */
.pf-sh { display: flex; flex-direction: column; gap: 12px; }
.pf-lead { text-align: center; color: var(--text-2); font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.pf-note { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); }
.pf-sh .empty { padding: 18px 10px; }

/* 3D-сцена в шапке шторки */
.pf-art { position: relative; width: 190px; height: 116px; margin: -6px auto 0; flex: none; }
.pf-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.pf-art .pf-a1 { left: 50%; top: 8px; width: 96px; height: 96px; margin-left: -48px; z-index: 1; animation: floatyRot 3.8s ease-in-out infinite; }
.pf-art .pf-a2 { left: 12px; top: 6px; width: 42px; height: 42px; animation: floaty 3s ease-in-out 0.5s infinite; }
.pf-art .pf-a3 { right: 14px; bottom: 4px; width: 36px; height: 36px; z-index: 2; animation: floaty 2.6s ease-in-out 1s infinite; }
.pf-glow { position: absolute; inset: -8% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--gc, 167, 139, 250), 0.42), transparent); animation: glow 2.8s ease-in-out infinite; }
.pf-art-promo { --gc: 255, 106, 213; }
.pf-art-ref { --gc: 61, 245, 194; }
.pf-art-fair { --gc: 70, 240, 143; }

/* Промокод */
.pf-code {
  height: 58px;
  text-align: center;
  font: 800 20px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px dashed rgba(255, 197, 61, 0.45);
  background: rgba(255, 197, 61, 0.05);
}
.pf-code::placeholder { font: 700 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.pf-code:focus { border-color: rgba(255, 197, 61, 0.85); box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.14); }
.pf-code.bad { border-color: rgba(255, 77, 109, 0.75); box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.14); animation: shake 0.45s var(--ease); }
.pf-err { margin-top: -4px; text-align: center; font-size: 13px; font-weight: 700; color: #ff8fa5; animation: fadeUp 0.3s var(--ease); }
.pf-err:empty { display: none; }
.pf-hint { align-self: center; gap: 6px; height: 34px; }
.pf-hint .ico svg { width: 15px; height: 15px; color: var(--pink); }
.pf-hint b { font: 800 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--gold); }

/* Успешная активация */
.pf-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: fadeIn 0.3s var(--ease); }
.pf-ok-art { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.pf-ok-art img { position: relative; width: 106px; height: 106px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5)); animation: pfPop 0.75s var(--spring) both, floaty 3.2s ease-in-out 0.8s infinite; }
.pf-ok-ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 197, 61, 0.7); animation: pfRing 1.1s var(--ease) both; }
.pf-ok-ring.r2 { border-color: rgba(167, 139, 250, 0.7); animation-delay: 0.18s; }
.pf-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pf-burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px currentColor;
  opacity: 0;
  animation: pfBurst 0.95s var(--ease) 0.08s forwards;
}
.pf-burst i:nth-child(3n + 1) { background: var(--mint); }
.pf-burst i:nth-child(3n + 2) { background: var(--pink); border-radius: 2px; }
.pf-ok-title { margin-top: 2px; font: 800 18px/1.2 var(--font-d); text-transform: uppercase; }
.pf-ok-amt { display: flex; align-items: center; gap: 6px; font: 800 40px/1 var(--font-d); font-variant-numeric: tabular-nums; animation: popIn 0.6s var(--spring) 0.15s both; }
.pf-ok-amt b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-ok-amt .st { width: 36px; height: 36px; }
.pf-ok-case { font: 800 19px/1.3 var(--font); color: var(--gold); animation: popIn 0.6s var(--spring) 0.15s both; }
.pf-ok .grid2 { width: 100%; margin-top: 8px; }

/* Рефералы */
.pf-skel-hero { height: 190px; border-radius: var(--r-l); }
.pf-rhero { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-rbonus { display: flex; align-items: center; gap: 8px; font: 800 34px/1 var(--font-d); animation: popIn 0.6s var(--spring) both; }
.pf-rbonus b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-rbonus .st { width: 30px; height: 30px; animation: wiggle 2.6s ease-in-out 0.6s infinite; }
.pf-link { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--stroke-2); }
.pf-link > .ico { display: grid; }
.pf-link > .ico svg { width: 18px; height: 18px; color: var(--violet-2); }
.pf-link-t { flex: 1; min-width: 0; font: 700 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-link.off { padding: 13px 14px; }
.pf-link.off .pf-link-t { white-space: normal; font: 700 13px/1.4 var(--font); color: var(--text-3); }
.pf-copy { width: 38px; height: 38px; border-radius: 12px; }
.pf-copy.ok { color: var(--green); border-color: rgba(70, 240, 143, 0.5); background: rgba(70, 240, 143, 0.12); }
.pf-copy.ok svg { animation: pop 0.4s var(--spring); }
.pf-rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-rtile { display: grid; justify-items: center; align-content: center; gap: 7px; min-width: 0; padding: 12px 6px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.pf-rtile small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-rtile b { font: 800 17px/1 var(--font-d); font-variant-numeric: tabular-nums; }
.pf-rtile .amt { max-width: 100%; }
.pf-rtile .amt b { font-size: 15px; }
.pf-steps { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--stroke); }
.pf-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.pf-step-n { width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 800 13px/1 var(--font-d); background: var(--grad-primary); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }
.pf-step-t { flex: 1; min-width: 0; }
.pf-step-t .amt { gap: 3px; vertical-align: -2px; }
.pf-step > .ico { display: grid; color: var(--text-3); }
.pf-step > .ico svg { width: 17px; height: 17px; }
.pf-sec { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font: 800 14px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.02em; }
.pf-friends { display: flex; flex-direction: column; gap: 8px; }
.pf-fr { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.pf-fr.done { border-color: rgba(70, 240, 143, 0.3); background: linear-gradient(90deg, rgba(70, 240, 143, 0.09), rgba(255, 255, 255, 0.03)); }
.pf-fr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-fr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pf-fr-top b { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fr-top small { flex: none; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.pf-fr-prog { display: flex; align-items: center; gap: 8px; }
.pf-fr-prog small { display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pf-fr-prog small .st { width: 12px; height: 12px; }
.pf-bar { position: relative; flex: 1; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pf-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #3df5c2);
  box-shadow: 0 0 10px rgba(61, 245, 194, 0.45);
  overflow: hidden;
  transition: width 1.1s var(--ease);
}
.pf-bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  background-size: 200% 100%;
  animation: skel 2s linear infinite;
}
.pf-fr-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--green); }
.pf-fr-ok .ico { display: grid; }
.pf-fr-ok .ico svg { width: 14px; height: 14px; stroke-width: 3; }

/* История действий */
.pf-hwrap { gap: 0; min-height: 56dvh; }
.pf-hist { display: flex; flex-direction: column; gap: 8px; }
.pf-day { display: flex; flex-direction: column; }
.pf-day-h {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px;
  padding: 9px 18px 7px;
  font: 800 11px/1.2 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(24, 15, 52, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.pf-hrow { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--stroke); animation: fadeUp 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.pf-day .pf-hrow:last-child { border-bottom: 0; }
.pf-hic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--rc), 0.14); border: 1px solid rgba(var(--rc), 0.32); }
.pf-hic .art { width: 30px; height: 30px; }
.pf-hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-hmain b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hmain small { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hamt { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.pf-hamt b { display: inline-flex; align-items: center; gap: 4px; font: 800 14.5px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.pf-hamt b .st { width: 15px; height: 15px; }
.pf-hamt small { font-size: 10.5px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-hfoot { padding: 12px 0 2px; }
.pf-hfoot:empty { padding: 0; }
.pf-end { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--text-3); }
.pf-end .ico { display: grid; }
.pf-end .ico svg { width: 14px; height: 14px; }
.pf-spin { width: 26px; height: 26px; margin: 4px auto; border-width: 2.5px; }
.pf-sentinel { height: 1px; }

/* Честная игра */
.pf-fbox { display: flex; flex-direction: column; gap: 10px; }
.pf-kv { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.pf-kv > small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pf-kv-v { display: flex; align-items: center; gap: 8px; }
.pf-kv-row { flex-direction: row; align-items: center; justify-content: space-between; }
.pf-kv-row b { font: 800 16px/1 var(--font-d); }
.pf-mono { flex: 1; min-width: 0; font: 600 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; color: var(--text); }
.pf-kv .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.pf-seed { flex: 1; min-width: 0; height: 44px; font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pf-dice:active svg { animation: spin 0.5s var(--ease); }
.pf-prev { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--stroke-2); }
.pf-prev.fresh { animation: fadeUp 0.5s var(--ease) both; }
.pf-prev .pf-kv:nth-child(2) { border-color: rgba(70, 240, 143, 0.35); background: rgba(70, 240, 143, 0.06); }

/* ---------- Лидеры ---------- */
.ld-seg { margin-bottom: 10px; }
.ld-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 4px 14px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); }
.ld-hint .ico { display: grid; flex: none; }
.ld-hint .ico svg { width: 14px; height: 14px; }
.ld-body { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.25s var(--ease), filter 0.25s var(--ease); }
.ld-body.dim { opacity: 0.45; filter: saturate(0.6); pointer-events: none; }
.ld-skel-pod { height: 250px; border-radius: var(--r-xl); }

/* Пьедестал */
.ld-podium {
  position: relative;
  overflow: hidden;
  padding: 18px 10px 0;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.45) 0%, rgba(49, 27, 104, 0.6) 46%, rgba(20, 11, 44, 0.88) 100%);
  border: 1px solid var(--stroke-2);
  box-shadow: var(--sh-1), var(--hl);
}
.ld-rays {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 360px;
  height: 360px;
  margin-left: -180px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 233, 179, 0.07) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 72%);
  mask: radial-gradient(closest-side, #000 25%, transparent 72%);
  animation: spin 50s linear infinite;
  pointer-events: none;
}
.ld-spot { position: absolute; left: 50%; top: -20px; width: 230px; height: 230px; margin-left: -115px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 197, 61, 0.32), transparent); animation: glow 3.2s ease-in-out infinite; pointer-events: none; }
.ld-twinkle i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 2.4s ease-in-out infinite; }
.ld-twinkle i:nth-child(1) { left: 9%; top: 14%; }
.ld-twinkle i:nth-child(2) { left: 24%; top: 6%; animation-delay: 0.7s; }
.ld-twinkle i:nth-child(3) { right: 10%; top: 10%; animation-delay: 1.2s; }
.ld-twinkle i:nth-child(4) { right: 26%; top: 24%; animation-delay: 0.3s; width: 2px; height: 2px; }
.ld-twinkle i:nth-child(5) { left: 6%; top: 40%; animation-delay: 1.6s; width: 2px; height: 2px; }
.ld-twinkle i:nth-child(6) { right: 5%; top: 38%; animation-delay: 0.9s; }
.ld-twinkle i:nth-child(7) { left: 36%; top: 3%; animation-delay: 2s; width: 2px; height: 2px; }

.ld-seats { position: relative; display: grid; grid-template-columns: 1fr 1.16fr 1fr; align-items: end; gap: 8px; }
.ld-seat { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ld-seat.s1 { --ph: 98px; --pd: 0.24s; --ad: 0.62s; --mc: 255, 197, 61; --medal: conic-gradient(from 210deg, #fff2a8, #ffc53d, #e08a00, #fff2a8); --ped: linear-gradient(180deg, #ffe78f 0%, #ffc53d 38%, #ef9a0a 100%); }
.ld-seat.s2 { --ph: 74px; --pd: 0.12s; --ad: 0.48s; --mc: 205, 214, 245; --medal: conic-gradient(from 210deg, #ffffff, #c9cfe6, #8d94b5, #ffffff); --ped: linear-gradient(180deg, #f3f5ff 0%, #c8cee6 40%, #949bbb 100%); }
.ld-seat.s3 { --ph: 58px; --pd: 0s; --ad: 0.36s; --mc: 231, 146, 90; --medal: conic-gradient(from 210deg, #ffd5b3, #e7925a, #a4521f, #ffd5b3); --ped: linear-gradient(180deg, #ffcfa8 0%, #e8935b 42%, #b4612c 100%); }
.ld-crown { position: relative; z-index: 2; width: 42px; height: 42px; margin-bottom: -12px; animation: ldCrown 0.75s var(--spring) 1s both; }
.ld-crown img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); animation: floatyRot 3.4s ease-in-out 1.8s infinite; }
.ld-pava { position: relative; padding: 3px; border-radius: 50%; background: var(--medal); box-shadow: 0 0 0 4px rgba(var(--mc), 0.14), 0 10px 26px rgba(var(--mc), 0.35); animation: popIn 0.6s var(--spring) var(--ad) both; }
.ld-pava .avatar { box-shadow: 0 0 0 2px rgba(10, 6, 26, 0.9); }
.ld-seat.me .ld-pava { box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.45), 0 10px 26px rgba(124, 58, 237, 0.5); }
.ld-pname { max-width: 100%; margin-top: 8px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeUp 0.5s var(--ease) var(--ad) both; }
.ld-seat .ld-you { margin: 4px 0 0; animation: fadeUp 0.5s var(--ease) var(--ad) both; }
.ld-pamt { max-width: 100%; margin: 5px 0 10px; animation: fadeUp 0.5s var(--ease) var(--ad) both; }
.ld-pamt .amt { gap: 4px; }
.ld-pamt .amt b { font: 800 13.5px/1 var(--font-d); }
.ld-pamt .st { width: 15px; height: 15px; }
.ld-seat.s1 .ld-pamt .amt b { font-size: 15.5px; color: var(--gold); }
.ld-ped {
  position: relative;
  width: 100%;
  height: var(--ph);
  padding-top: 10px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--ped);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -22px 30px rgba(0, 0, 0, 0.16);
  animation: ldRise 0.85s var(--ease) var(--pd) both;
}
.ld-ped::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 5s var(--ease) 1.5s infinite;
}
.ld-ped b { position: relative; font: 800 28px/1 var(--font-d); color: rgba(46, 24, 0, 0.72); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.ld-seat.s2 .ld-ped b { color: rgba(30, 34, 60, 0.7); }
.ld-seat.s3 .ld-ped b { color: rgba(60, 22, 0, 0.7); }
.ld-seat.free .ld-pava { background: none; box-shadow: none; padding: 0; }
.ld-free { display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--stroke-2); background: rgba(255, 255, 255, 0.04); color: var(--text-3); font: 800 20px/1 var(--font-d); }
.ld-seat.free .ld-pname { color: var(--text-3); font-weight: 700; }
.ld-seat.free .ld-ped { filter: saturate(0.35) brightness(0.7); }

.ld-you { display: inline-flex; align-items: center; flex: none; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 999px; font: 800 9.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--grad-primary); box-shadow: 0 3px 10px rgba(124, 58, 237, 0.45); }

/* Таблица мест 4–50 */
.ld-list { display: flex; flex-direction: column; gap: 8px; }
.ld-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 18px; background: var(--grad-card); border: 1px solid var(--stroke); box-shadow: var(--hl); }
.ld-rank { width: 28px; flex: none; text-align: center; font: 800 14px/1 var(--font-d); color: var(--text-3); font-variant-numeric: tabular-nums; }
.ld-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ld-who b { display: flex; align-items: center; min-width: 0; font-size: 14.5px; }
.ld-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-who small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.ld-row > .amt { flex: none; }
.ld-row > .amt b { font-size: 14.5px; }
.ld-row.me { border-color: rgba(167, 139, 250, 0.6); background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(30, 18, 62, 0.72)); box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 8px 24px rgba(124, 58, 237, 0.3); }
.ld-row.me .ld-rank { color: #e4d9ff; }

/* «Моё место» — липкая карточка над нижним меню */
.ld-me-wrap { position: sticky; bottom: calc(var(--tabbar-h) + 18px + var(--safe-b)); z-index: 6; margin-top: 12px; }
.ld-me-wrap:empty { display: none; }
.ld-me {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 9px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(70, 44, 140, 0.94), rgba(28, 17, 60, 0.95));
  border: 1px solid rgba(255, 197, 61, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 16px 36px rgba(3, 1, 12, 0.6), 0 0 0 1px rgba(255, 197, 61, 0.1), var(--hl);
  animation: ldMeIn 0.6s var(--spring) 0.3s both;
}
.ld-me-rank { flex: none; display: grid; justify-items: center; gap: 3px; min-width: 64px; padding: 7px 9px; border-radius: 14px; color: #3b2200; background: var(--grad-gold); box-shadow: 0 6px 16px rgba(255, 159, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.ld-me-rank small { font: 800 9px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.ld-me-rank b { font: 800 15px/1 var(--font-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-me > .amt { flex: none; }
.ld-me > .amt b { font-size: 15px; }
.ld-me.none { border-color: var(--stroke-2); }
.ld-me.none .ld-who b { font-size: 13.5px; }
.ld-me.none .ld-who small { line-height: 1.3; }
.ld-me.none .btn { flex: none; }

/* ---------- Анимации раздела ---------- */
@keyframes pfPop { 0% { opacity: 0; transform: scale(0.3) rotate(-16deg); } 60% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes pfRing { 0% { opacity: 1; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes pfBurst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(var(--s)); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.2); }
}
@keyframes ldRise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes ldCrown { 0% { opacity: 0; transform: translateY(-28px) scale(0.5) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
@keyframes ldMeIn { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Узкие экраны ---------- */
@media (max-width: 380px) {
  .pf-card { gap: 10px; padding: 12px; }
  .pf-ava { width: 58px; height: 58px; }
  .pf-ava .avatar { width: 52px !important; height: 52px !important; }
  .pf-name { font-size: 16px; }
  .pf-sq { width: 48px; height: 48px; border-radius: 15px; font-size: 8.5px; }
  .pf-sq .ico svg { width: 18px; height: 18px; }
  .pf-act { padding: 0 10px; gap: 8px; font-size: 14px; }
  .pf-act-ic { width: 28px; height: 28px; }
  .pf-deco { width: 64px; }
  .pf-deco .pf-d1 { width: 42px; height: 42px; right: 0; }
  .pf-deco .pf-d2 { width: 26px; height: 26px; left: 0; }
  .pf-deco .pf-d3 { left: 10px; }
  .pf-mi { gap: 10px; padding-left: 12px; }
  .pf-mi-t b { font-size: 14.5px; }
  .ld-seats { gap: 6px; }
  .ld-pamt .amt b { font-size: 12px; }
  .ld-seat.s1 .ld-pamt .amt b { font-size: 14px; }
  .ld-row { gap: 9px; padding: 9px 10px; }
  .ld-me-rank { min-width: 56px; padding: 7px 7px; }
}
