.titlebar h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-pill {
  opacity: 0.9;
}

.card {
  overflow: hidden;
}
.grid > * {
  min-width: 0;
}

/* 4 карточки = 2x2 */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.nick,
.sub,
.value,
.stat .v {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* на всякий случай: аватар-картинка */
.avatar.has-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
}
/* =========================
   WALL (player profile)
========================= */

.wall-card {
  grid-column: 1 / -1; /* на десктопе красиво на всю ширину */
}

.wall-form {
  display: grid;
  gap: 10px;
}

.wall-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wall-respect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.respect-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);

  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 13px;

  cursor: pointer;
  user-select: none;
  transition: 0.16s ease;
}

.respect-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.respect-pill:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.respect-pill:active {
  transform: translateY(0) scale(0.99);
}

.respect-pill:has(input:checked) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.respect-pill.plus:has(input:checked) {
  border-color: rgba(120, 255, 180, 0.35);
  background: rgba(120, 255, 180, 0.12);
}

.respect-pill.minus:has(input:checked) {
  border-color: rgba(255, 80, 80, 0.35);
  background: rgba(255, 80, 80, 0.1);
}

.wall-textarea {
  width: 100%;
  resize: vertical;
  min-height: 86px;

  padding: 12px 12px;
  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);

  font-family: var(--main-font);
  font-weight: 650;

  outline: none;
  transition: 0.18s ease;
}

.wall-textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(109, 118, 255, 0.12);
}

.wall-error {
  color: rgba(255, 90, 90, 0.95);
}

.wall-list {
  display: grid;
}

.wall-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.wall-item:last-child {
  border-bottom: none;
}

.wall-ava {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 36px;
}

.wall-main {
  min-width: 0;
  display: grid;
  gap: 6px;
  width: 100%;
}

.wall-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wall-author {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.wall-author:hover {
  text-decoration: underline;
  opacity: 0.95;
}

.wall-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.wall-vote {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.wall-vote.plus {
  border-color: rgba(120, 255, 180, 0.28);
  background: rgba(120, 255, 180, 0.1);
  color: rgba(190, 255, 215, 0.95);
}

.wall-vote.minus {
  border-color: rgba(255, 80, 80, 0.28);
  background: rgba(255, 80, 80, 0.08);
  color: rgba(255, 160, 160, 0.95);
}

.wall-message {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .wall-controls .btn {
    width: 100%;
    justify-content: center;
  }
}
/* чуть крупнее шрифт в стене */
.wall-card {
  font-size: 15px;
}

/* дата крупнее */
.wall-time {
  font-size: 13px;
  font-weight: 800;
}

/* голос-плашка чуть плотнее */
.wall-vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* кнопка удаления */
.wall-del {
  display: inline-flex;
  margin: 0;
}

.wall-del-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 7px 10px;
  cursor: pointer;
  transition: 0.16s ease;
}

.wall-del-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 80, 80, 0.1);
  color: rgba(255, 210, 210, 0.95);
}

.wall-del-btn:active {
  transform: translateY(0);
}

.players-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .players-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .players-list {
    grid-template-columns: 1fr;
  }
}

/* Мобилка: в списке игроков убираем стекло у pill */
@media (max-width: 560px) {
  body.is-player-list .players-list .pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* оставь похожий вид, но без blur */
    background: rgba(0, 0, 0, 0.28) !important;
  }
}
body.is-player-list .player-row {
  content-visibility: auto;
  contain-intrinsic-size: 72px; /* примерная высота строки */
  contain: layout paint;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-search i {
  opacity: 0.8;
}

.faq-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.icon-btn {
  border: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.icon-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);

  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.pill-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}
.players-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.players-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
