.app-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px 8px 8px;
  color: #f6ead0;
}

.app-topbar__left,
.app-topbar__right {
  display: flex;
  align-items: center;
}

.app-topbar__left {
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-topbar__back,
.app-topbar__add {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 240, 205, 0.22);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(90, 62, 29, 0.92), rgba(35, 24, 16, 0.92));
  color: #f7e3b2;
  font-size: 18px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  flex: 0 0 auto;
}

.app-topbar__avatar-frame {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.app-topbar__avatar-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.app-topbar__avatar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #3b2408;
  text-shadow: 0 1px 0 rgba(255, 250, 230, 0.3);
}

.app-topbar__user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
}

.app-topbar__nickname {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #fff2d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__player-id,
.app-topbar__subtitle {
  min-width: 0;
  font-size: 9px;
  color: rgba(236, 226, 202, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__subtitle {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 205, 0.12);
  background: rgba(14, 10, 10, 0.36);
  color: #f5dca0;
}

.app-topbar__right {
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.app-topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 205, 0.16);
  background: rgba(18, 14, 14, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.app-topbar__pill--coin .app-topbar__pill-label {
  color: #f2bf4c;
}

.app-topbar__pill--diamond .app-topbar__pill-label {
  color: #86d8ff;
}

.app-topbar__pill-value {
  color: #fff2d0;
}

.app-topbar__add {
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 380px) {
  .app-topbar {
    gap: 6px;
    padding-inline: 6px;
  }

  .app-topbar__pill {
    padding-inline: 7px;
  }

  .app-topbar__nickname {
    font-size: 11px;
  }
}
