/* RELOAD23 — публичный профиль игрока. */

.profile-page.public-profile .pf-showcase,
.profile-page.public-profile .pf-public-extra {
  margin-bottom: 24px;
}

.pf-showcase[hidden],
.pf-public-extra[hidden] {
  display: none;
}

.pf-showcase {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #0e1511;
}

.pf-showcase-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #101812;
}

.pf-showcase-head::before {
  content: "";
  width: 3px;
  height: 20px;
  flex: 0 0 auto;
  background: #7cc242;
}

.pf-showcase-head h2 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-showcase-head span {
  margin-left: auto;
  color: #67707b;
  font-size: 11px;
}

.pf-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.pf-showcase-item {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  background: #141c17;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.pf-showcase-media {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2d25, #121a15);
}

.pf-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.42));
}

.pf-showcase-media .pf-showcase-fallback {
  color: #67707b;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-showcase-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(8, 12, 17, 0.82);
  color: #e6e9ec;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.pf-showcase-badge--st {
  right: auto;
  left: 4px;
  background: #cf6a32;
  color: #fff;
  text-transform: uppercase;
}

.pf-showcase-name {
  overflow: hidden;
  margin: 0;
  padding: 8px 9px 9px;
  border-top: 2px solid var(--rarity, #5e98d9);
  border-bottom: 0;
  color: #dcdedf;
  font-family: "Motiva Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-showcase-empty {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #67707b;
  font-size: 12px;
  text-align: center;
}

.pf-showcase-empty svg {
  width: 24px;
  height: 24px;
  color: rgba(124, 194, 66, 0.45);
}

/* Публичный заголовок */
.pf-public-kicker {
  margin: 0 0 4px;
  color: #7cc242;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pf-public-title {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.pf-public-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(124, 194, 66, 0.14);
  border-radius: 6px;
  background: #18241e;
  color: #dcdedf;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.pf-public-back:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #203028;
  color: #fff;
}

/* Достижения */
.pf-ach-category {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #0e1511;
}

.pf-ach-category:last-child {
  margin-bottom: 0;
}

.pf-ach-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #101812;
}

.pf-ach-cat-head h2 {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-ach-cat-head span {
  color: #7cc242;
  font-size: 11px;
  font-weight: 600;
}

.pf-ach-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-ach-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.pf-ach-row:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.045);
}

.pf-ach-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.pf-ach-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(124, 194, 66, 0.1);
  color: #9adf5a;
}

.pf-ach-icon svg {
  width: 17px;
  height: 17px;
}

.pf-ach-body {
  min-width: 0;
  flex: 1;
}

.pf-ach-body strong {
  display: block;
  color: #dcdedf;
  font-size: 12px;
  font-weight: 600;
}

.pf-ach-body p {
  margin: 2px 0 0;
  color: #8b929a;
  font-size: 11px;
  line-height: 1.45;
}

.pf-ach-date {
  display: block;
  margin-top: 5px;
  color: #67707b;
  font-size: 10px;
}

@media (max-width: 1024px) {
  .pf-ach-list {
    grid-template-columns: 1fr;
  }
  .pf-ach-row:nth-child(odd) {
    border-right: 0;
  }
  .pf-ach-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  }
  .pf-ach-row:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .pf-showcase-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
  .pf-showcase-name {
    padding: 7px 8px 8px;
    font-size: 11px;
  }
  .pf-showcase-media {
    padding: 2px;
  }
  .pf-public-title {
    font-size: 22px;
  }
}

@media (max-width: 460px) {
  .pf-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pf-showcase-empty-btn { margin-top: 4px; padding: 7px 12px; border: 1px solid rgba(124,194,66,.35); border-radius: 5px; background: rgba(124,194,66,.1); color: #9adf5a; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.pf-showcase-empty-btn:hover { background: rgba(124,194,66,.18); color: #fff; }

.pf-main .pf-showcase { margin-top: 16px; margin-bottom: 0; }

/* Публичный инвентарь */
.pf-inv-head { width: 100%; }
.pf-inv-back { display: inline-flex; align-items: center; gap: 6px; color: #6b7480; font-size: 12px; text-decoration: none; transition: color .15s ease; }
.pf-inv-back:hover { color: #fff; }
.pf-inv-title-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pf-inv-title-icon { display: flex; color: #7cc242; }
.pf-inv-title-icon svg { width: 28px; height: 28px; }
.pf-inv-title-row h1 { margin: 0; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.1; }
.pf-inv-count { color: #4e6b58; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-inv-search { display: flex; width: 320px; max-width: 100%; height: 38px; align-items: center; gap: 8px; margin-top: 18px; padding: 0 12px; border-radius: 6px; background: #131c17; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pf-inv-search:focus-within { box-shadow: inset 0 0 0 1px rgba(124,194,66,.6); }
.pf-inv-search svg { width: 15px; height: 15px; flex: 0 0 auto; color: #6b7480; }
.pf-inv-search input { min-width: 0; flex: 1; border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; outline: 0; }
.pf-inv-search input::placeholder { color: #5d6670; }
.pf-inv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pf-inv-card { min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #141c17; box-shadow: 0 0 0 1px rgba(255,255,255,.06); text-align: left; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.pf-inv-card:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 10px 24px rgba(0,0,0,.28); transform: translateY(-2px); }
.pf-inv-media { position: relative; display: flex; aspect-ratio: 4/3; align-items: center; justify-content: center; padding: 12px; background: linear-gradient(180deg,#1a2d25,#121a15); }
.pf-inv-media img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.pf-inv-card:hover .pf-inv-media img { transform: scale(1.05); }
.pf-inv-fallback { color: #35584a; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pf-inv-badge { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 2px; background: rgba(0,0,0,.5); color: #cfd3d8; font-size: 9px; font-weight: 700; line-height: 1.4; }
.pf-inv-badge--st { right: auto; left: 8px; background: #cf6a32; color: #fff; text-transform: uppercase; }
.pf-inv-name { display: block; overflow: hidden; padding: 10px 12px; border-top: 2px solid var(--rarity, #5e98d9); color: #cfd3d8; font-size: 12px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pf-inv-state { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; padding: 24px; border-radius: 12px; background: #141c17; box-shadow: 0 0 0 1px rgba(255,255,255,.06); color: #6b7480; font-size: 13px; text-align: center; }
.pf-inv-state svg { width: 34px; height: 34px; color: #4e6b58; }
.pf-inv-state--error { color: #de8877; }
.pf-inv-spinner { width: 24px; height: 24px; border: 2px solid rgba(124,194,66,.25); border-top-color: #7cc242; border-radius: 50%; animation: pf-spin .8s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-inv-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; color: #8b929a; font-size: 12px; }
.pf-inv-page { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: #18241e; color: #dcdedf; font-size: 14px; cursor: pointer; }
.pf-inv-page:hover:not(:disabled) { background: #203028; color: #fff; }
.pf-inv-page:disabled { opacity: .35; cursor: not-allowed; }

/* Модальное окно предмета */
.pf-inv-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.75); }
.pf-inv-modal[hidden] { display: none; }
.pf-inv-modal-card { position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #35584a; border-radius: 12px; background: linear-gradient(160deg, #16261f 0%, #13202a 100%); box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 34px -18px rgba(124,194,66,.55); }
.pf-inv-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: rgba(0,0,0,.35); color: #9db3a6; font-size: 20px; line-height: 1; cursor: pointer; }
.pf-inv-modal-close:hover { background: rgba(124,194,66,.18); color: #fff; }
.pf-inv-modal-media { display: flex; height: 240px; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg,#1a2d25,#101b1f); }
.pf-inv-modal-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-inv-modal-fallback { color: #67707b; font-size: 12px; text-transform: uppercase; }
.pf-inv-modal-body { padding: 18px 20px 20px; }
.pf-inv-modal-eyebrow { margin: 0; color: #7cc242; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pf-inv-modal-body h2 { margin: 5px 0 0; color: #fff; font-size: 20px; font-weight: 700; }
.pf-inv-modal-sub { margin: 2px 0 0; color: #8b929a; font-size: 12px; }
.pf-inv-modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 16px 0 0; font-size: 12px; }
.pf-inv-modal-meta div { padding-bottom: 8px; border-bottom: 1px solid #2d4a3d; }
.pf-inv-modal-meta dt { color: #8b929a; }
.pf-inv-modal-meta dd { margin: 4px 0 0; color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.pf-inv-modal-inspect { display: flex; width: 100%; min-height: 44px; margin-top: 16px; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: #3d9c4a; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(61,156,74,.7); transition: background .15s ease; }
.pf-inv-modal-inspect:hover { background: #46b356; }
.pf-inv-modal-inspect:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1024px) { .pf-inv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pf-inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pf-inv-title-row h1 { font-size: 26px; } .pf-inv-name { padding: 8px 9px; font-size: 11px; } }
@media (max-width: 460px) { .pf-inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
