/* Header — GP-DESIGN-002-A3
   Финнеты слева, заголовок центр, pixel-аватар справа.
   Зависит от design-tokens.css (A1) для CSS-переменных. */

.header {
  background: var(--surface);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Left: finnets icon + balance */
.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.finnets-icon {
  width: 22px;
  height: 22px;
  background: var(--xp-gold);
  border-radius: 50%;
  border: 2px solid var(--pixel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.finnets-icon img {
  image-rendering: pixelated;
}

.finnets-balance {
  font-size: 15px;
  font-weight: 700;
  color: var(--cta);
}

/* Center: screen title */
.header-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Right group: help button + avatar */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Help button: 56dp tap-zone around 32px visible circle */
.header-help {
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.header-help-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pixel-dark);
  background: var(--surface);
  color: var(--cta);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  user-select: none;
}

/* Right: avatar stub (colored circle with initial) */
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-initial {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
