/* ===== Профиль игрока (#profile) ===== */
.prof { display: none; --ease-out: cubic-bezier(0.230, 1, 0.320, 1); }
body.is-profile .prof { display: block; max-width: 880px; margin: 0 auto; animation: cview-in 0.400s var(--ease-out); }
body.is-profile .promo,
body.is-profile .cases,
body.is-profile .cview,
body.is-profile .inv,
body.is-profile .dep { display: none; }

/* ---------- обложка и аватар ---------- */
.pcover {
  position: relative;
  height: clamp(170px, 46vw, 300px);
  margin-top: 6px;
  border-radius: 26px;
  background: #18181c;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.pcover__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%);
  mask: linear-gradient(180deg, #000 55%, transparent 100%);
  pointer-events: none;
  user-select: none;
}
.pcover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 80% at 50% 100%, rgb(var(--accent-rgb) / 0.280), transparent 70%);
  pointer-events: none;
}
.pcover__btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgb(24 24 28 / 0.720);
  box-shadow: inset 0 1px 0 #ffffff2e, inset 0 0 0 1px #ffffff1f;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 800 14px/1 var(--font-title);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.200s;
}
.pcover__btn svg { width: 18px; height: 18px; fill: currentColor; }
.pcover__btn:hover { background: rgb(var(--accent-rgb) / 0.350); }
.pcover__ava {
  --lv: var(--accent);
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  translate: -50% 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), #b06bff, var(--lv), var(--accent));
  box-shadow: 0 0 0 5px #131316, 0 0 34px rgb(var(--accent-rgb) / 0.600), 0 14px 30px #000000b3;
}
.pcover__ava i {
  display: grid;
  place-items: center;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  background: linear-gradient(145deg, #8cc8ff, var(--accent) 45%, #7a3df0);
  box-shadow: inset 0 2px 0 #ffffff66, inset 0 -6px 14px #00000040;
  font: 900 44px/1 var(--font-title);
  font-style: normal;
  color: #fff;
  text-shadow: 0 2px 6px #00000059;
}

/* ---------- имя, ID, кнопки ---------- */
.pid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 0 4px; }
.pid__name { min-width: 0; font: 900 22px/1.100 var(--font-title); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pid__id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: 800 15px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.200s, background-color 0.200s;
}
.pid__id svg { width: 16px; height: 16px; fill: currentColor; }
.pid__id:hover { color: #fff; background: #ffffff0f; }
.pid__id.is-done { color: #6fe0a8; }
.pid__id:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pacts .cta { --h: var(--accent); width: 100%; height: 56px; margin: 0; border: 0; border-radius: 18px; }
.pacts .cta svg, .pbtn svg { width: 20px; height: 20px; fill: currentColor; }
.pbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #dcdce6);
  box-shadow: inset 0 -3px 0 #00000026, 0 8px 22px #0000004d;
  font: 900 15px/1 var(--font-title);
  color: #17171b;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.200s, transform 0.200s;
}
.pbtn:hover { filter: brightness(1.060); }
.pbtn:active { transform: translateY(1px); }
.pbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbtn--wide { width: 100%; margin-top: 12px; height: 50px; background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff1a; color: #fff; }

/* ---------- уровень и потрачено ---------- */
.pinfo { display: grid; gap: 10px; margin-top: 14px; }
.prow {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    radial-gradient(70% 140% at 0% 50%, rgb(var(--accent-rgb) / 0.120), transparent 60%),
    #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.prow__text { display: grid; gap: 6px; min-width: 0; }
.prow__text b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 900 22px/1 var(--font-title); font-variant-numeric: tabular-nums; color: #fff; }
.prow__text b svg { width: 20px; height: 20px; fill: #ffc83d; filter: drop-shadow(0 0 6px #ffc83d80); }
.prow__text b em { font-style: normal; color: var(--text-3); }
.prow__text small { font: 600 13px/1.300 var(--font-text); color: var(--text-2); }
.pring {
  --p: 0;
  --lv: #e08a4a;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #ffffff14 0);
  box-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.250);
}
.pring i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1f1f24;
  color: var(--lv);
}
.pring svg { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lv) 60%, transparent)); }
.prow__ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #26262c;
  color: #ffc83d;
}
.prow__ico svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- плитки статистики ---------- */
.pstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ptile {
  --c: var(--accent);
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 26px;
  min-height: 112px;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(90% 130% at 100% 100%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%),
    #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.ptile__k { position: relative; z-index: 1; max-width: 62%; font: 800 15px/1.200 var(--font-title); color: #fff; }
.ptile__v { position: relative; z-index: 1; font: 900 17px/1 var(--font-title); font-variant-numeric: tabular-nums; color: #fff; }
.ptile__img {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--c) 55%, transparent));
  transition: transform 0.350s var(--ease-out);
  pointer-events: none;
  user-select: none;
}
@media (hover: hover) { .ptile:hover .ptile__img { transform: scale(1.080) rotate(-4deg); } }

/* ---------- реквизиты ---------- */
.ptrade { margin-top: 14px; }
.ptrade .cta { --h: var(--accent); width: 100%; margin-top: 12px; border: 0; }
.ptrade .dd__msg:empty { display: none; }

/* ---------- вкладки «Инвентарь / Выводы» ---------- */
.ptabs { display: grid; grid-template-columns: 1.300fr 1fr; gap: 8px; margin-top: 22px; }
.ptabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
  font: 800 15px/1 var(--font-title);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.200s, box-shadow 0.200s, background-color 0.200s;
}
.ptabs__btn svg { width: 18px; height: 18px; fill: currentColor; }
.ptabs__btn:hover { color: #fff; }
.ptabs__btn.is-active { color: #fff; background: rgb(var(--accent-rgb) / 0.140); box-shadow: inset 0 0 0 1.500px var(--accent); }
.ptabs__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbox { margin-top: 10px; }
.pbox .wgrid { margin-top: 0; }
.pempty { display: grid; justify-items: center; gap: 10px; padding: 26px 8px 10px; text-align: center; }
.pempty b { font: 900 22px/1.150 var(--font-title); color: #fff; }
.pempty span { max-width: 30ch; font: 600 14px/1.450 var(--font-text); color: var(--text-2); }
.pempty .pbtn { margin-top: 6px; height: 48px; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff1f; color: #fff; }
.psuggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.plog { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plog li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #ffffff08;
  box-shadow: inset 0 0 0 1px #ffffff0f;
}
.plog__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #2b2b30; color: var(--accent-hi); }
.plog__ico svg { width: 22px; height: 22px; fill: currentColor; }
.plog__text { display: grid; gap: 5px; min-width: 0; }
.plog__text b { font: 800 15px/1.150 var(--font-title); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plog__text small { font: 600 12px/1 var(--font-text); color: var(--text-2); }
.plog__sum { font: 900 15px/1 var(--font-title); font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }

/* ---------- гость ---------- */
.pguest { position: relative; margin-top: 6px; overflow: hidden; border-radius: 26px; background: #18181c; box-shadow: inset 0 0 0 1px #ffffff14; }
.pguest__art { display: block; width: 100%; height: clamp(170px, 46vw, 300px); object-fit: cover; -webkit-mask: linear-gradient(180deg, #000 40%, transparent 100%); mask: linear-gradient(180deg, #000 40%, transparent 100%); }
.pguest__in { display: grid; justify-items: center; gap: 12px; padding: 0 18px 26px; margin-top: -30px; position: relative; text-align: center; }
.pguest__title { margin: 0; font: 900 30px/1 var(--font-title); color: #fff; }
.pguest__text { margin: 0; max-width: 32ch; font: 600 14px/1.450 var(--font-text); color: var(--text-2); }
.pguest .cta { --h: var(--accent); width: auto; min-width: 200px; margin: 0; border: 0; }

@media (min-width: 761px) {
  .pcover__ava { width: 128px; height: 128px; bottom: -40px; }
  .pcover__ava i { font-size: 52px; }
  .pid { margin-top: 56px; }
  .pid__name { font-size: 26px; }
  .pinfo { grid-template-columns: 1fr 1fr; }
  .pstats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ptile { min-height: 132px; }
  .ptabs { max-width: 460px; }
  .psuggest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  body.is-profile .prof { animation: none; }
  .ptile__img { transition: none; }
}

/* ===== Вторая версия: компактнее и ровнее, размеры кнопок и блоков как в образце ===== */
.pcover { height: clamp(150px, 42vw, 260px); border-radius: 20px; }
.pcover__btn { top: 10px; right: 10px; height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; background: rgb(22 22 26 / 0.780); }
.pcover__btn svg { width: 16px; height: 16px; }
/* аватар: ровное розовое кольцо, меньше размер */
.pcover__ava {
  width: 88px;
  height: 88px;
  bottom: -30px;
  background: var(--accent);
  box-shadow: 0 0 0 4px #131316, 0 0 22px rgb(var(--accent-rgb) / 0.650), 0 10px 22px #000000a6;
}
.pcover__ava i { width: calc(100% - 6px); height: calc(100% - 6px); font-size: 34px; }

.pid { margin-top: 42px; padding: 0 2px; }
.pid__name { font: 800 16px/1.200 var(--font-title); }
.pid__id { padding: 4px 6px; font-size: 15px; color: #6f7080; }
.pid__id svg { width: 14px; height: 14px; }

/* две главные кнопки: 44px, скругление 14 */
.pacts { gap: 8px; margin-top: 10px; }
.pacts .cta, .pbtn { height: 44px; border-radius: 14px; font: 800 14px/1 var(--font-title); gap: 8px; }
.pacts .cta { box-shadow: inset 0 1px 0 #ffffff66, 0 6px 20px rgb(var(--accent-rgb) / 0.450); }
.pacts .cta svg, .pbtn svg { width: 18px; height: 18px; }
.pbtn { background: linear-gradient(180deg, #ffffff, #d2d3dc); box-shadow: inset 0 1px 0 #fff, 0 6px 18px #00000059; }
.pbtn--wide { height: 44px; margin-top: 10px; background: #26262c; box-shadow: inset 0 0 0 1px #ffffff14; color: #fff; }
.pempty .pbtn { height: 42px; background: #2b2b31; box-shadow: none; }

/* уровень и потрачено: плоские тёмные строки с тонкой рамкой */
.pinfo { gap: 8px; margin-top: 12px; }
.prow {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #1a1b1e;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.prow__text { gap: 5px; }
.prow__text b { font-size: 17px; gap: 5px; }
.prow__text b svg { width: 16px; height: 16px; filter: none; }
.prow__text small { font-size: 12px; color: #6f7080; }
.pring { width: 48px; height: 48px; box-shadow: none; }
.pring i { width: 40px; height: 40px; background: #26272d; }
.pring svg { width: 24px; height: 24px; }
.prow__ico { width: 48px; height: 48px; background: #26272d; }
.prow__ico svg { width: 24px; height: 24px; }

/* плитки статистики: ниже, заголовок сверху, число снизу */
.pstats { gap: 6px; margin-top: 12px; }
.ptile { gap: 18px; min-height: 88px; padding: 12px 12px 12px 14px; border-radius: 16px; background: radial-gradient(100% 140% at 100% 100%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), #1a1b1e; box-shadow: none; }
.ptile__k { font-size: 13px; }
.ptile__v { font-size: 13px; font-weight: 800; }
.ptile__img { right: -8px; bottom: -10px; width: 84px; height: 84px; }

/* реквизиты: иконка слева от заголовка, поля и кнопка по 44px */
.ptrade { margin-top: 12px; padding: 16px 14px; border-radius: 20px; }
.ptrade__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px; }
.ptrade__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--accent-rgb) / 0.160); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.450); color: var(--accent-hi); }
.ptrade__ico svg { width: 22px; height: 22px; fill: currentColor; }
.ptrade .dcard__title { font-size: 17px; }
.ptrade .dcard__sub { margin-top: 4px; font-size: 12px; }
.ptrade .dfield { margin-top: 10px; padding: 9px 14px; gap: 4px; border-radius: 14px; background: #222327; box-shadow: inset 0 0 0 1px #ffffff14; }
.ptrade .dfield__cap { font-size: 11px; }
.ptrade .dfield__val--sm { font-size: 14px; }
.ptrade .cta { height: 44px; margin-top: 10px; border-radius: 14px; font-size: 14px; }

/* вкладки «Инвентарь / Выводы»: 40px */
.ptabs { gap: 6px; margin-top: 18px; }
.ptabs__btn { height: 40px; border-radius: 12px; font-size: 13px; background: #1a1b1e; }
.ptabs__btn svg { width: 16px; height: 16px; }
.pbox { margin-top: 8px; padding: 14px 12px; border-radius: 20px; }
.pempty b { font-size: 18px; }
.pempty span { font-size: 13px; }
.plog li { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 8px 12px 8px 8px; border-radius: 14px; }
.plog__ico { width: 38px; height: 38px; border-radius: 12px; }
.plog__ico svg { width: 18px; height: 18px; }
.plog__text b, .plog__sum { font-size: 14px; }

@media (min-width: 761px) {
  .pcover__ava { width: 104px; height: 104px; bottom: -36px; }
  .pcover__ava i { font-size: 40px; }
  .pid { margin-top: 48px; }
  .pid__name { font-size: 18px; }
  .pacts { max-width: 520px; }
  .ptile { min-height: 100px; }
}

/* ===== Третья версия: картинки уровня и кошелька, типографика ===== */
.prof { font-feature-settings: "tnum" 1, "lnum" 1; }
/* строки: картинка крупнее, вылезает за кольцо */
.prow { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 12px 16px 12px 12px; overflow: hidden; background: radial-gradient(60% 160% at 0% 50%, color-mix(in srgb, var(--lv, var(--accent)) 16%, transparent), transparent 65%), #1a1b1e; }
.pring { position: relative; width: 60px; height: 60px; background: conic-gradient(var(--lv) calc(var(--p) * 1%), #ffffff14 0); -webkit-mask: none; }
.pring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1f2024; }
.pring img { position: relative; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 8px #00000080) drop-shadow(0 0 10px color-mix(in srgb, var(--lv) 55%, transparent)); }
.prow__ico { width: 60px; height: 60px; background: none; }
.prow__ico img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px #00000080) drop-shadow(0 0 12px rgb(var(--accent-rgb) / 0.450)); }
.prow--spent { --lv: var(--accent); }
/* шрифты */
.pid__name { font: 900 19px/1.150 var(--font-title); letter-spacing: -0.010em; }
.pid__id { font: 800 14px/1 var(--font-title); letter-spacing: 0.020em; }
.prow__text { gap: 6px; }
.prow__text b { font: 900 21px/1 var(--font-title); letter-spacing: -0.010em; }
.prow__text b svg { width: 17px; height: 17px; }
.prow__text b em { margin: 0 1px; font-weight: 700; color: #54556a; }
.prow__text small { font: 600 12.500px/1.350 var(--font-text); color: #8587a0; }
.plv { font: 800 12.500px/1 var(--font-title); letter-spacing: 0.040em; text-transform: uppercase; color: var(--lv); text-shadow: 0 0 12px color-mix(in srgb, var(--lv) 55%, transparent); }
.ptile__k { font: 800 13px/1.200 var(--font-title); letter-spacing: 0.010em; color: #e9e9f2; }
.ptile__v { font: 900 16px/1 var(--font-title); letter-spacing: -0.010em; }
.pacts .cta, .pbtn { font: 900 14px/1 var(--font-title); letter-spacing: 0.010em; }
.ptrade .dcard__title { font: 900 17px/1.200 var(--font-title); letter-spacing: -0.010em; }
.ptrade .dfield__cap { font: 700 11px/1 var(--font-title); letter-spacing: 0.040em; text-transform: uppercase; color: #8587a0; }
.ptabs__btn { font: 800 13px/1 var(--font-title); letter-spacing: 0.010em; }

/* строка «Потрачено»: без розовой подсветки фона и без свечения у кошелька */
.prow--spent { background: #1a1b1e; }
.prow--spent .prow__ico img { filter: drop-shadow(0 6px 10px #00000080); }

/* строки уровня и трат: без цветной подсветки; значок — в тёмном круге, как в образце */
.prow { background: #1a1b1e; }
.pring img { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px #00000080); }
.prow__ico { width: 60px; height: 60px; border-radius: 50%; background: #26272d; }
.prow__ico img, .prow--spent .prow__ico img { width: 36px; height: 36px; filter: none; }
.plv { text-shadow: none; }

/* кошелёк — векторный значок */
.prow__ico svg { width: 34px; height: 34px; fill: none; }

/* кошелёк — снова картинка, крупнее в круге */
.prow__ico img, .prow--spent .prow__ico img { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px #00000073); }

/* кошелёк — плоский значок */
.prow__ico .pwallet { width: 30px; height: 30px; fill: none; }
