/* StarlitMoon — профиль игрока */

@font-face {
  font-family: "Minecraft";
  src: url("../font/minecraft.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minecraft Tab";
  src: url("../font/minecraft.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.page-player .player-main {
  padding: 0 0 4rem;
}

.player-page-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(520px, 55vh);
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(107, 92, 231, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(201, 162, 39, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.player-page-inner {
  position: relative;
  z-index: 1;
  padding-top: 5.75rem;
}

.player-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(120, 140, 220, 0.2);
  border-radius: 999px;
  background: rgba(12, 16, 32, 0.6);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.player-back:hover {
  color: var(--accent);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.12);
}

.player-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* —— Профиль: карточка как в списке игроков —— */
.player-profile-layout {
  display: grid;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.player-profile-card-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-profile-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem 1.1rem 1.15rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(24, 30, 52, 0.95) 0%, rgba(12, 16, 30, 0.92) 100%);
  border: 1px solid rgba(120, 140, 220, 0.18);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.player-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.1), transparent 55%);
  pointer-events: none;
}

.player-profile-card::after {
  content: "✦";
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  font-size: 0.55rem;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}

.player-profile-card > * {
  position: relative;
  z-index: 1;
}

.player-profile-card.online {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(74, 222, 128, 0.1);
}

.player-profile-card.online::after {
  color: var(--online);
  opacity: 0.7;
}

.player-profile-card.banned {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.1);
}

.player-profile-card.banned::after {
  content: "⛔";
  font-size: 0.65rem;
  opacity: 0.6;
}

.player-profile-card-avatar-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.player-profile-card-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  image-rendering: pixelated;
  border: 2px solid rgba(120, 140, 220, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.player-online-dot--profile {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.player-profile-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  word-break: break-word;
}

.player-profile-card .player-tags {
  margin-top: 0.35rem;
}

.player-profile-card-status {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.65rem;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
  background: rgba(12, 16, 32, 0.55);
  border: 1px solid rgba(120, 140, 220, 0.14);
  border-radius: 10px;
}

.player-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.65rem;
  max-width: 100%;
}

.player-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  max-width: 100%;
}

.player-profile-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.player-profile-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.player-profile-chip--discord {
  color: #c7d2fe;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.4);
}

.player-profile-chip--telegram {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.player-profile-clan {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(107, 92, 231, 0.35);
  background: rgba(12, 16, 32, 0.55);
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.player-profile-clan:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(18, 22, 40, 0.75);
}

.player-profile-clan-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.player-profile-clan-body {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.player-profile-clan-name {
  font-weight: 800;
  color: var(--text);
}

.player-profile-clan-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.player-profile-clan .player-clan-prefix-glyph,
.player-profile-clan .clan-java-prefix-glyph {
  font-family: "Minecraft Tab", "Minecraft", monospace;
  font-variant-emoji: text;
  -webkit-font-variant-emoji: text;
  font-size: 1.1rem;
  line-height: 1;
  font-synthesis: none;
  image-rendering: pixelated;
}

.player-profile-clan--aside {
  display: flex;
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}

.player-profile-clan--aside .player-profile-clan-body {
  display: flex;
  width: 100%;
}

.player-profile-chip--telegram:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #bae6fd;
}

.player-profile-card-activity {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.player-profile-card-activity--now {
  color: var(--online);
}

.player-profile-privacy-note {
  margin: 0.85rem 0 0;
  max-width: 320px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 10px;
}

.player-profile-privacy-note-icon {
  margin-right: 0.25rem;
  color: var(--accent);
}

.player-comments-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.player-comments-input {
  min-height: 92px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 220, 0.25);
  background: rgba(10, 14, 28, 0.78);
  color: var(--text);
  font-family: inherit;
  padding: 0.7rem 0.85rem;
  white-space: pre-wrap;
  line-height: 1.45;
}

.player-comments-list {
  display: grid;
  gap: 0.6rem;
}

.player-comment-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(120, 140, 220, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(10, 14, 28, 0.66);
}

.player-comment-avatar-link {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.player-comment-avatar-link:hover {
  opacity: 0.92;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45);
}

.player-comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  image-rendering: pixelated;
  display: block;
}

.player-comment-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.player-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.player-comment-author {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #eef2fc;
  text-decoration: none;
}

.player-comment-author:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.player-comment-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.92rem;
  color: #d8e0f5;
}

.player-comment-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.player-comment-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: #8b9bc4;
  line-height: 1.2;
  white-space: nowrap;
}

.player-comment-delete {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.player-comment-delete:hover {
  background: rgba(185, 28, 28, 0.35);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.player-comment-delete svg {
  width: 17px;
  height: 17px;
}

.player-profile-privacy-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.85;
}

.player-profile-privacy-hint code {
  font-size: 0.68rem;
  color: var(--accent);
}

.player-profile-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-profile-panel {
  padding: 1.15rem 1.2rem 1.2rem;
  background: rgba(14, 18, 34, 0.72);
  border: 1px solid rgba(120, 140, 220, 0.14);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.player-profile-panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  color: var(--text);
  border-bottom: 1px solid rgba(120, 140, 220, 0.12);
}

.player-profile-panel-title::before {
  content: "✦";
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.9;
}

.player-profile-panel-wrap .player-section {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.player-profile-panel-wrap .player-section-title {
  margin-top: 0;
}

.player-skin-stage--profile {
  width: 100%;
  max-width: 360px;
  height: 300px;
  margin: 0 auto;
}

.player-profile-panel--skin3d {
  text-align: center;
}

@media (min-width: 720px) {
  .player-profile-layout {
    grid-template-columns: minmax(280px, 320px) 1fr;
    align-items: start;
  }

  .player-profile-card-shell {
    position: sticky;
    top: 5.5rem;
  }
}

/* —— Шапка профиля (legacy) —— */
.player-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(155deg, rgba(28, 34, 58, 0.95) 0%, rgba(12, 16, 30, 0.92) 55%, rgba(18, 22, 42, 0.95) 100%);
  border: 1px solid rgba(120, 140, 220, 0.2);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.player-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(107, 92, 231, 0.12), transparent 50%);
  pointer-events: none;
}

.player-hero::after {
  content: "✦";
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.4;
  pointer-events: none;
}

.player-hero > * {
  position: relative;
  z-index: 1;
}

.player-hero.online {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(74, 222, 128, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-hero.online::after {
  color: var(--online);
  opacity: 0.75;
}

.player-hero.banned {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(248, 113, 113, 0.12);
}

.player-skin-stage {
  position: relative;
  width: min(300px, 100%);
  height: 340px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 65% at 50% 55%, rgba(201, 162, 39, 0.16), transparent 68%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(107, 92, 231, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 162, 39, 0.08);
}

.player-skin-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: pan-y;
}

.player-skin-canvas:active {
  cursor: grabbing;
}

.player-skin-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 128px;
  height: 128px;
  border-radius: 12px;
  image-rendering: pixelated;
}

.player-skin-stage.is-loading::after {
  content: "Загрузка 3D…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.player-skin-error {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2rem;
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: #fca5a5;
  pointer-events: none;
}

.player-skin-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.85;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.player-hero-info {
  flex: 1;
  min-width: 200px;
}

.player-hero-name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.player-custom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.14);
  color: #fde68a;
  vertical-align: middle;
}

.player-custom-badge--icon {
  margin-left: 0.35rem;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.95rem;
  line-height: 1;
  position: relative;
  overflow: visible;
}

.player-custom-badge--icon .player-custom-badge-tip {
  top: calc(100% + 9px);
  bottom: auto;
}

.player-custom-badge-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(10, 14, 28, 0.96);
  color: #f8f2d0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.player-custom-badge-tip strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fde68a;
}

.player-custom-badge-tip span {
  font-size: 0.76rem;
  color: #d1d9eb;
  line-height: 1.35;
}

.player-custom-badge:hover .player-custom-badge-tip,
.player-custom-badge:focus-visible .player-custom-badge-tip {
  opacity: 1;
  visibility: visible;
}

.player-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.player-badge--on {
  background: rgba(74, 222, 128, 0.15);
  color: var(--online);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.player-badge--off {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--bg-card-border);
}

.player-badge--ban {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.player-badge--ban-perm {
  color: #fee2e2;
  background: rgba(153, 27, 27, 0.6);
  border-color: #fca5a5;
}

.player-badge--ban-temp {
  color: #ffedd5;
  background: rgba(154, 52, 18, 0.5);
  border-color: #fb923c;
}

.player-badge--admin {
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(69, 10, 10, 0.95));
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

.player-badge--mod {
  color: #d9f99d;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.92), rgba(6, 78, 59, 0.95));
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.12), 0 0 8px rgba(74, 222, 128, 0.15);
}

.player-badge--sponsor {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
}

.player-badge--shine {
  color: #f5d0fe;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(217, 70, 239, 0.5);
}

.player-hero-info .player-badge + .player-badge {
  margin-left: 0.4rem;
}

.player-hero-contacts {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(120, 140, 220, 0.15);
}

.player-hero-contacts-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.player-hero-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.player-hero-contact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(12, 16, 32, 0.55);
  border: 1px solid rgba(120, 140, 220, 0.12);
}

.player-hero-contact .player-discord-handle,
.player-hero-contact .player-telegram-handle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-hero-contact .player-discord-copy,
.player-hero-contact .player-telegram-copy {
  flex-shrink: 0;
  margin-left: auto;
}

/* —— Секции профиля —— */
.player-section {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: rgba(14, 18, 34, 0.72);
  border: 1px solid rgba(120, 140, 220, 0.14);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.player-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  color: var(--text);
  border-bottom: 1px solid rgba(120, 140, 220, 0.12);
}

.player-section-title::before {
  content: "✦";
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.9;
}

.player-section--ban {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(40, 12, 12, 0.35);
}

.player-section--ban .player-section-title {
  color: #fca5a5;
}

.player-section--ban .player-section-title::before {
  content: "⛔";
  font-size: 0.75rem;
  color: #f87171;
}

.player-ban-details {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.player-ban-row {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
}

.player-ban-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-ban-row dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.player-ban-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.player-live {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.player-live-item {
  padding: 0.85rem 1rem;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.player-live-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.player-live-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--online);
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.player-stat {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(120, 140, 220, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.player-stat:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.08);
}

.player-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.player-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.player-empty-stats {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(120, 140, 220, 0.2);
  border-radius: var(--radius);
}

.player-privacy-note {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius);
}

.player-profile-status {
  position: relative;
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem 0.85rem;
  max-width: 36rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 14px;
}

.player-profile-status-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fde68a;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
}

.player-profile-status-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
  white-space: pre-line;
}

.player-pet-count {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--text-muted);
}

.player-pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.player-pet-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(120, 140, 220, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.player-pet-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.player-pet-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.player-pet-emoji {
  font-size: 2.35rem;
  line-height: 1;
  user-select: none;
}

.player-pet-info {
  min-width: 0;
}

.player-pet-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.player-pet-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-pet-status {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.player-discord-handle {
  font-size: 1.05rem;
  font-weight: 800;
  color: #eef2ff;
  letter-spacing: 0.01em;
}

.player-discord-copy {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.18);
  color: #e0e7ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.player-discord-copy:hover {
  background: rgba(88, 101, 242, 0.32);
  border-color: rgba(114, 137, 218, 0.75);
  color: #fff;
}

.player-discord-copy.is-copied {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.player-discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #949cf0;
}

.player-discord-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.player-telegram-handle {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e8f4fc;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.player-telegram-handle--link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.player-telegram-copy {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 171, 238, 0.55);
  background: rgba(42, 171, 238, 0.18);
  color: #e0f2fe;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.player-telegram-copy:hover {
  background: rgba(42, 171, 238, 0.32);
  border-color: rgba(56, 189, 248, 0.75);
  color: #fff;
}

.player-telegram-copy.is-copied {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.player-telegram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #38bdf8;
}

.player-telegram-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .player-hero:not(.player-hero--with-bank) {
    flex-direction: column;
    text-align: center;
  }

  .player-hero:not(.player-hero--with-bank) .player-hero-aside {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .player-hero:not(.player-hero--with-bank) .player-skin-stage {
    width: 100%;
    height: 300px;
  }

  .player-hero-info {
    width: 100%;
  }

  .player-hero-contacts-list {
    align-items: stretch;
  }

  .player-hero-contact {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .player-profile-status {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .player-section {
    padding: 1rem;
  }
}

/* —— Мини-карта банка под 3D-скином —— */
.player-hero--with-bank {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.player-hero--with-activity {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem 1.75rem;
}

.player-hero--with-bank.player-hero--with-activity {
  align-items: stretch;
}

.player-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  max-width: 300px;
}

.player-hero--with-bank .player-hero-aside {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.player-hero--with-bank .player-skin-stage {
  width: 100%;
}

.player-hero--with-bank .player-hero-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}

.player-hero-body {
  flex: 1;
  min-width: 0;
}

.player-hero-activity {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(120, 140, 220, 0.15);
  width: 100%;
}

.player-hero--with-activity .player-hero-contacts {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.player-hero--with-activity .player-profile-status {
  margin-top: 0.65rem;
  padding: 0.6rem 0.85rem 0.7rem;
}

.player-hero-activity-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.player-hero-activity .activity-summary {
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  gap: 0.15rem 0.85rem;
}

.player-hero--with-activity .player-hero-aside {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-height: 0;
}

.player-hero--with-activity .player-hero-body {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.player-hero--with-activity .player-skin-stage {
  flex: 1 1 0;
  width: 100%;
  min-height: 280px;
  height: auto;
  max-height: none;
}

.player-hero--with-activity .player-skin-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
}

.player-hero--with-activity .player-hero-bank {
  flex: 0 0 auto;
  margin-top: 0;
}

.player-hero-bank .player-bank-card-face {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
}

.player-hero-bank .player-bank-card-top {
  width: 100%;
}

.player-hero-bank .player-bank-card-top::after {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(145deg, #fde68a 0%, #ca8a04 55%, #a16207 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.player-hero-bank .player-bank-card-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 0;
}

.player-hero-bank .player-bank-code-row {
  width: 100%;
}

.player-hero-bank .player-bank-card-code {
  flex: 1;
}

.player-hero-bank .player-bank-balance {
  margin-top: auto;
}

.player-hero-bank .player-bank-card-logo {
  font-size: 0.72rem;
}

.player-hero-bank .player-bank-card-label {
  font-size: 0.66rem;
}

.player-hero-bank .player-bank-card-code {
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.player-hero-bank .player-bank-balance {
  font-size: 0.82rem;
}

.player-hero-bank .player-bank-balance strong {
  font-size: 1.08rem;
}

.player-hero-bank .player-bank-copy-btn {
  width: 28px;
  height: 28px;
}

.player-hero-bank .player-bank-copy-btn svg {
  width: 15px;
  height: 15px;
}

.player-hero-bank {
  flex-shrink: 0;
  width: 100%;
}

.player-bank-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(107, 92, 231, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.player-hero-bank:hover .player-bank-card {
  transform: translateY(-3px) rotateY(-4deg);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(201, 162, 39, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.player-bank-card-shine {
  position: absolute;
  inset: -80%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 46%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 54%,
    transparent 58%
  );
  animation: player-bank-shine 6s ease-in-out infinite;
}

@keyframes player-bank-shine {
  0%, 100% {
    transform: translateX(-30%) rotate(12deg);
  }
  50% {
    transform: translateX(30%) rotate(12deg);
  }
}

.player-bank-card-face {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0.72rem 0.82rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(56, 189, 248, 0.3), transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(201, 162, 39, 0.22), transparent 45%),
    linear-gradient(145deg, #1a0f3d 0%, #2d1f6e 40%, #163a5c 100%);
}

.player-bank-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.player-bank-card-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-bank-card-mark {
  flex-shrink: 0;
}

.player-bank-card-logo {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}

.player-bank-card-mid {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.player-bank-card-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.player-bank-code-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.player-bank-card-code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fde68a;
  background: none;
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-bank-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.player-bank-copy-btn svg {
  width: 14px;
  height: 14px;
}

.player-bank-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.player-bank-copy-btn.is-copied {
  background: rgba(74, 222, 128, 0.35);
}

.player-bank-balance {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

.player-bank-balance strong {
  font-size: 0.95rem;
  color: #fff;
}

.player-bank-balance small {
  font-size: 0.65rem;
  opacity: 0.75;
}

.player-bank-balance--hidden {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.player-bank-balance-label {
  font-weight: 700;
  margin-right: 0.2rem;
}

@media (max-width: 960px) {
  .player-hero--with-bank {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .player-hero--with-bank .player-hero-aside {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: 280px;
  }

  .player-hero--with-bank .player-hero-body {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .player-page-inner {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 5rem;
  }

  .player-back {
    min-height: 44px;
    padding: 0.55rem 1rem;
  }

  .player-hero--with-bank {
    text-align: center;
  }

  .player-hero--with-bank .player-hero-aside {
    max-width: min(300px, 100%);
  }

  .player-hero--with-bank .player-hero-contacts-list {
    align-items: center;
  }

  .player-hero--with-bank .player-profile-status {
    margin-left: auto;
    margin-right: auto;
  }

  .player-ban-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .player-contact-link {
    min-height: 44px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-bank-card-shine {
    animation: none;
  }

  .player-hero-bank:hover .player-bank-card {
    transform: none;
  }
}
