/* Общая шапка: логотип CHESS */

@import url('cosmetics.css');

[hidden] {
  display: none !important;
}

/* Мат шапки — те же переменные используют карточки меню профиля (.profile-menu-card) */
:root {
  --ios-header-bg: rgba(30, 30, 30, 0.4);
  --ios-header-backdrop: blur(20px) saturate(180%);
  --ios-header-border: 1px solid rgba(255, 255, 255, 0.1);
  --ios-header-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.profile-body,
body.shop-body,
body.game-select-body,
body.social-page-body,
body.play-lobby-body {
  --ios-header-bg: rgba(30, 30, 30, 0.42);
  --ios-header-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.logo-chess-beta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 1.55rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 255, 255, 0.1);
}

a.logo-chess-beta:hover {
  color: #fafafa;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 0 22px rgba(130, 200, 255, 0.35);
}

span.logo-chess-beta.logo-chess-static {
  cursor: default;
  user-select: none;
}

.logo-wordmark {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  font-size: 1.45rem;
  color: #f2f7ff;
  text-decoration: none;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    165deg,
    rgba(92, 157, 237, 0.18),
    rgba(30, 30, 34, 0.6)
  );
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

a.logo-wordmark:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 181, 246, 0.45);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(100, 181, 246, 0.12);
}

.logo-wordmark--static {
  cursor: default;
  pointer-events: none;
}

.nav-content.nav-content--home,
.nav-content.nav-content--spread {
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

/* Логотип по центру полосы навигации */
.nav-content .logo-chess-beta.logo-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.nav-content--home .auth-bar,
.nav-content--home .header-trailing {
  position: relative;
  z-index: 1;
}

.nav-content--spread .logo-slot {
  display: inline-flex;
  align-items: center;
}

.header-trailing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.header-wallet-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffd77a;
  white-space: nowrap;
}

.header-wallet-compact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #e8e8e8;
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 180px;
  transition: border-color 0.15s ease;
}

.header-profile-chip:hover {
  border-color: rgba(100, 181, 246, 0.4);
  color: #fff;
}

.header-profile-chip .header-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-profile-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-chip .cosmetic-nick-stack {
  flex: 1;
  min-width: 0;
  max-width: 132px;
}

.header-profile-chip .cosmetic-title-line {
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  margin-top: 0;
  line-height: 1.1;
}
